default_schema-1.2.sql 2.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876
  1. -- ==========================================
  2. -- Chado general module
  3. --
  4. -- ================================================
  5. -- TABLE: tableinfo
  6. -- ================================================
  7. create table tableinfo (
  8. tableinfo_id serial not null,
  9. primary key (tableinfo_id),
  10. name varchar(30) not null,
  11. primary_key_column varchar(30) null,
  12. is_view int not null default 0,
  13. view_on_table_id int null,
  14. superclass_table_id int null,
  15. is_updateable int not null default 1,
  16. modification_date date not null default now(),
  17. constraint tableinfo_c1 unique (name)
  18. );
  19. COMMENT ON TABLE tableinfo IS NULL;
  20. -- ================================================
  21. -- TABLE: db
  22. -- ================================================
  23. create table db (
  24. db_id serial not null,
  25. primary key (db_id),
  26. name varchar(255) not null,
  27. -- contact_id int,
  28. -- foreign key (contact_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  29. description varchar(255) null,
  30. urlprefix varchar(255) null,
  31. url varchar(255) null,
  32. constraint db_c1 unique (name)
  33. );
  34. COMMENT ON TABLE db IS 'A database authority. Typical databases in
  35. bioinformatics are FlyBase, GO, UniProt, NCBI, MGI, etc. The authority
  36. is generally known by this shortened form, which is unique within the
  37. bioinformatics and biomedical realm. To Do - add support for URIs,
  38. URNs (e.g. LSIDs). We can do this by treating the URL as a URI -
  39. however, some applications may expect this to be resolvable - to be
  40. decided.';
  41. -- ================================================
  42. -- TABLE: dbxref
  43. -- ================================================
  44. create table dbxref (
  45. dbxref_id serial not null,
  46. primary key (dbxref_id),
  47. db_id int not null,
  48. foreign key (db_id) references db (db_id) on delete cascade INITIALLY DEFERRED,
  49. accession varchar(255) not null,
  50. version varchar(255) not null default '',
  51. description text,
  52. constraint dbxref_c1 unique (db_id,accession,version)
  53. );
  54. create index dbxref_idx1 on dbxref (db_id);
  55. create index dbxref_idx2 on dbxref (accession);
  56. create index dbxref_idx3 on dbxref (version);
  57. 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>.';
  58. COMMENT ON COLUMN dbxref.accession IS 'The local part of the identifier. Guaranteed by the db authority to be unique for that db.';
  59. CREATE VIEW db_dbxref_count AS
  60. SELECT db.name,count(*) AS num_dbxrefs FROM db INNER JOIN dbxref USING (db_id) GROUP BY db.name;
  61. COMMENT ON VIEW db_dbxref_count IS 'per-db dbxref counts';
  62. CREATE OR REPLACE FUNCTION store_db (VARCHAR)
  63. RETURNS INT AS
  64. 'DECLARE
  65. v_name ALIAS FOR $1;
  66. v_db_id INTEGER;
  67. BEGIN
  68. SELECT INTO v_db_id db_id
  69. FROM db
  70. WHERE name=v_name;
  71. IF NOT FOUND THEN
  72. INSERT INTO db
  73. (name)
  74. VALUES
  75. (v_name);
  76. RETURN currval(''db_db_id_seq'');
  77. END IF;
  78. RETURN v_db_id;
  79. END;
  80. ' LANGUAGE 'plpgsql';
  81. CREATE OR REPLACE FUNCTION store_dbxref (VARCHAR,VARCHAR)
  82. RETURNS INT AS
  83. 'DECLARE
  84. v_dbname ALIAS FOR $1;
  85. v_accession ALIAS FOR $1;
  86. v_db_id INTEGER;
  87. v_dbxref_id INTEGER;
  88. BEGIN
  89. SELECT INTO v_db_id
  90. store_db(v_dbname);
  91. SELECT INTO v_dbxref_id dbxref_id
  92. FROM dbxref
  93. WHERE db_id=v_db_id AND
  94. accession=v_accession;
  95. IF NOT FOUND THEN
  96. INSERT INTO dbxref
  97. (db_id,accession)
  98. VALUES
  99. (v_db_id,v_accession);
  100. RETURN currval(''dbxref_dbxref_id_seq'');
  101. END IF;
  102. RETURN v_dbxref_id;
  103. END;
  104. ' LANGUAGE 'plpgsql';
  105. -- ==========================================
  106. -- Chado cv module
  107. --
  108. -- =================================================================
  109. -- Dependencies:
  110. --
  111. -- :import dbxref from general
  112. -- =================================================================
  113. -- ================================================
  114. -- TABLE: cv
  115. -- ================================================
  116. create table cv (
  117. cv_id serial not null,
  118. primary key (cv_id),
  119. name varchar(255) not null,
  120. definition text,
  121. constraint cv_c1 unique (name)
  122. );
  123. COMMENT ON TABLE cv IS 'A controlled vocabulary or ontology. A cv is
  124. composed of cvterms (AKA terms, classes, types, universals - relations
  125. and properties are also stored in cvterm) and the relationships
  126. between them.';
  127. COMMENT ON COLUMN cv.name IS 'The name of the ontology. This
  128. corresponds to the obo-format -namespace-. cv names uniquely identify
  129. the cv. In OBO file format, the cv.name is known as the namespace.';
  130. COMMENT ON COLUMN cv.definition IS 'A text description of the criteria for
  131. membership of this ontology.';
  132. -- ================================================
  133. -- TABLE: cvterm
  134. -- ================================================
  135. create table cvterm (
  136. cvterm_id serial not null,
  137. primary key (cvterm_id),
  138. cv_id int not null,
  139. foreign key (cv_id) references cv (cv_id) on delete cascade INITIALLY DEFERRED,
  140. name varchar(1024) not null,
  141. definition text,
  142. dbxref_id int not null,
  143. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  144. is_obsolete int not null default 0,
  145. is_relationshiptype int not null default 0,
  146. constraint cvterm_c1 unique (name,cv_id,is_obsolete),
  147. constraint cvterm_c2 unique (dbxref_id)
  148. );
  149. create index cvterm_idx1 on cvterm (cv_id);
  150. create index cvterm_idx2 on cvterm (name);
  151. create index cvterm_idx3 on cvterm (dbxref_id);
  152. COMMENT ON TABLE cvterm IS 'A term, class, universal or type within an
  153. ontology or controlled vocabulary. This table is also used for
  154. relations and properties. cvterms constitute nodes in the graph
  155. defined by the collection of cvterms and cvterm_relationships.';
  156. COMMENT ON COLUMN cvterm.cv_id IS 'The cv or ontology or namespace to which
  157. this cvterm belongs.';
  158. COMMENT ON COLUMN cvterm.name IS 'A concise human-readable name or
  159. label for the cvterm. Uniquely identifies a cvterm within a cv.';
  160. COMMENT ON COLUMN cvterm.definition IS 'A human-readable text
  161. definition.';
  162. COMMENT ON COLUMN cvterm.dbxref_id IS 'Primary identifier dbxref - The
  163. unique global OBO identifier for this cvterm. Note that a cvterm may
  164. have multiple secondary dbxrefs - see also table: cvterm_dbxref.';
  165. COMMENT ON COLUMN cvterm.is_obsolete IS 'Boolean 0=false,1=true; see
  166. GO documentation for details of obsoletion. Note that two terms with
  167. different primary dbxrefs may exist if one is obsolete.';
  168. COMMENT ON COLUMN cvterm.is_relationshiptype IS 'Boolean
  169. 0=false,1=true relations or relationship types (also known as Typedefs
  170. in OBO format, or as properties or slots) form a cv/ontology in
  171. themselves. We use this flag to indicate whether this cvterm is an
  172. actual term/class/universal or a relation. Relations may be drawn from
  173. the OBO Relations ontology, but are not exclusively drawn from there.';
  174. COMMENT ON INDEX cvterm_c1 IS 'A name can mean different things in
  175. different contexts; for example "chromosome" in SO and GO. A name
  176. should be unique within an ontology or cv. A name may exist twice in a
  177. cv, in both obsolete and non-obsolete forms - these will be for
  178. different cvterms with different OBO identifiers; so GO documentation
  179. for more details on obsoletion. Note that occasionally multiple
  180. obsolete terms with the same name will exist in the same cv. If this
  181. is a possibility for the ontology under consideration (e.g. GO) then the
  182. ID should be appended to the name to ensure uniqueness.';
  183. COMMENT ON INDEX cvterm_c2 IS 'The OBO identifier is globally unique.';
  184. -- ================================================
  185. -- TABLE: cvterm_relationship
  186. -- ================================================
  187. create table cvterm_relationship (
  188. cvterm_relationship_id serial not null,
  189. primary key (cvterm_relationship_id),
  190. type_id int not null,
  191. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  192. subject_id int not null,
  193. foreign key (subject_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  194. object_id int not null,
  195. foreign key (object_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  196. constraint cvterm_relationship_c1 unique (subject_id,object_id,type_id)
  197. );
  198. create index cvterm_relationship_idx1 on cvterm_relationship (type_id);
  199. create index cvterm_relationship_idx2 on cvterm_relationship (subject_id);
  200. create index cvterm_relationship_idx3 on cvterm_relationship (object_id);
  201. COMMENT ON TABLE cvterm_relationship IS 'A relationship linking two
  202. cvterms. Each cvterm_relationship constitutes an edge in the graph
  203. defined by the collection of cvterms and cvterm_relationships. The
  204. meaning of the cvterm_relationship depends on the definition of the
  205. cvterm R refered to by type_id. However, in general the definitions
  206. are such that the statement "all SUBJs REL some OBJ" is true. The
  207. cvterm_relationship statement is about the subject, not the
  208. object. For example "insect wing part_of thorax".';
  209. COMMENT ON COLUMN cvterm_relationship.subject_id IS 'The subject of
  210. the subj-predicate-obj sentence. The cvterm_relationship is about the
  211. subject. In a graph, this typically corresponds to the child node.';
  212. COMMENT ON COLUMN cvterm_relationship.object_id IS 'The object of the
  213. subj-predicate-obj sentence. The cvterm_relationship refers to the
  214. object. In a graph, this typically corresponds to the parent node.';
  215. COMMENT ON COLUMN cvterm_relationship.type_id IS 'The nature of the
  216. relationship between subject and object. Note that relations are also
  217. housed in the cvterm table, typically from the OBO relationship
  218. ontology, although other relationship types are allowed.';
  219. -- ================================================
  220. -- TABLE: cvtermpath
  221. -- ================================================
  222. create table cvtermpath (
  223. cvtermpath_id serial not null,
  224. primary key (cvtermpath_id),
  225. type_id int,
  226. foreign key (type_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  227. subject_id int not null,
  228. foreign key (subject_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  229. object_id int not null,
  230. foreign key (object_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  231. cv_id int not null,
  232. foreign key (cv_id) references cv (cv_id) on delete cascade INITIALLY DEFERRED,
  233. pathdistance int,
  234. constraint cvtermpath_c1 unique (subject_id,object_id,type_id,pathdistance)
  235. );
  236. create index cvtermpath_idx1 on cvtermpath (type_id);
  237. create index cvtermpath_idx2 on cvtermpath (subject_id);
  238. create index cvtermpath_idx3 on cvtermpath (object_id);
  239. create index cvtermpath_idx4 on cvtermpath (cv_id);
  240. COMMENT ON TABLE cvtermpath IS 'The reflexive transitive closure of
  241. the cvterm_relationship relation.';
  242. COMMENT ON COLUMN cvtermpath.type_id IS 'The relationship type that
  243. this is a closure over. If null, then this is a closure over ALL
  244. relationship types. If non-null, then this references a relationship
  245. cvterm - note that the closure will apply to both this relationship
  246. AND the OBO_REL:is_a (subclass) relationship.';
  247. COMMENT ON COLUMN cvtermpath.cv_id IS 'Closures will mostly be within
  248. one cv. If the closure of a relationship traverses a cv, then this
  249. refers to the cv of the object_id cvterm.';
  250. COMMENT ON COLUMN cvtermpath.pathdistance IS 'The number of steps
  251. required to get from the subject cvterm to the object cvterm, counting
  252. from zero (reflexive relationship).';
  253. -- ================================================
  254. -- TABLE: cvtermsynonym
  255. -- ================================================
  256. create table cvtermsynonym (
  257. cvtermsynonym_id serial not null,
  258. primary key (cvtermsynonym_id),
  259. cvterm_id int not null,
  260. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  261. synonym varchar(1024) not null,
  262. type_id int,
  263. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  264. constraint cvtermsynonym_c1 unique (cvterm_id,synonym)
  265. );
  266. create index cvtermsynonym_idx1 on cvtermsynonym (cvterm_id);
  267. COMMENT ON TABLE cvtermsynonym IS 'A cvterm actually represents a
  268. distinct class or concept. A concept can be refered to by different
  269. phrases or names. In addition to the primary name (cvterm.name) there
  270. can be a number of alternative aliases or synonyms. For example, "T
  271. cell" as a synonym for "T lymphocyte".';
  272. COMMENT ON COLUMN cvtermsynonym.type_id IS 'A synonym can be exact,
  273. narrower, or broader than.';
  274. -- ================================================
  275. -- TABLE: cvterm_dbxref
  276. -- ================================================
  277. create table cvterm_dbxref (
  278. cvterm_dbxref_id serial not null,
  279. primary key (cvterm_dbxref_id),
  280. cvterm_id int not null,
  281. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  282. dbxref_id int not null,
  283. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  284. is_for_definition int not null default 0,
  285. constraint cvterm_dbxref_c1 unique (cvterm_id,dbxref_id)
  286. );
  287. create index cvterm_dbxref_idx1 on cvterm_dbxref (cvterm_id);
  288. create index cvterm_dbxref_idx2 on cvterm_dbxref (dbxref_id);
  289. COMMENT ON TABLE cvterm_dbxref IS 'In addition to the primary
  290. identifier (cvterm.dbxref_id) a cvterm can have zero or more secondary
  291. identifiers/dbxrefs, which may refer to records in external
  292. databases. The exact semantics of cvterm_dbxref are not fixed. For
  293. example: the dbxref could be a pubmed ID that is pertinent to the
  294. cvterm, or it could be an equivalent or similar term in another
  295. ontology. For example, GO cvterms are typically linked to InterPro
  296. IDs, even though the nature of the relationship between them is
  297. largely one of statistical association. The dbxref may be have data
  298. records attached in the same database instance, or it could be a
  299. "hanging" dbxref pointing to some external database. NOTE: If the
  300. desired objective is to link two cvterms together, and the nature of
  301. the relation is known and holds for all instances of the subject
  302. cvterm then consider instead using cvterm_relationship together with a
  303. well-defined relation.';
  304. COMMENT ON COLUMN cvterm_dbxref.is_for_definition IS 'A
  305. cvterm.definition should be supported by one or more references. If
  306. this column is true, the dbxref is not for a term in an external database -
  307. it is a dbxref for provenance information for the definition.';
  308. -- ================================================
  309. -- TABLE: cvtermprop
  310. -- ================================================
  311. create table cvtermprop (
  312. cvtermprop_id serial not null,
  313. primary key (cvtermprop_id),
  314. cvterm_id int not null,
  315. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  316. type_id int not null,
  317. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  318. value text not null default '',
  319. rank int not null default 0,
  320. unique(cvterm_id, type_id, value, rank)
  321. );
  322. create index cvtermprop_idx1 on cvtermprop (cvterm_id);
  323. create index cvtermprop_idx2 on cvtermprop (type_id);
  324. COMMENT ON TABLE cvtermprop IS 'Additional extensible properties can be attached to a cvterm using this table. Corresponds to -AnnotationProperty- in W3C OWL format.';
  325. 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.';
  326. COMMENT ON COLUMN cvtermprop.value IS 'The value of the property, represented as text. Numeric values are converted to their text representation.';
  327. COMMENT ON COLUMN cvtermprop.rank IS 'Property-Value ordering. Any
  328. cvterm can have multiple values for any particular property type -
  329. these are ordered in a list using rank, counting from zero. For
  330. properties that are single-valued rather than multi-valued, the
  331. default 0 value should be used.';
  332. -- ================================================
  333. -- TABLE: dbxrefprop
  334. -- ================================================
  335. create table dbxrefprop (
  336. dbxrefprop_id serial not null,
  337. primary key (dbxrefprop_id),
  338. dbxref_id int not null,
  339. foreign key (dbxref_id) references dbxref (dbxref_id) INITIALLY DEFERRED,
  340. type_id int not null,
  341. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  342. value text not null default '',
  343. rank int not null default 0,
  344. constraint dbxrefprop_c1 unique (dbxref_id,type_id,rank)
  345. );
  346. create index dbxrefprop_idx1 on dbxrefprop (dbxref_id);
  347. create index dbxrefprop_idx2 on dbxrefprop (type_id);
  348. 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.';
  349. -- ================================================
  350. -- TABLE: cvprop
  351. -- ================================================
  352. create table cvprop (
  353. cvprop_id serial not null,
  354. primary key (cvprop_id),
  355. cv_id int not null,
  356. foreign key (cv_id) references cv (cv_id) INITIALLY DEFERRED,
  357. type_id int not null,
  358. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  359. value text,
  360. rank int not null default 0,
  361. constraint cvprop_c1 unique (cv_id,type_id,rank)
  362. );
  363. 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';
  364. 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.';
  365. COMMENT ON COLUMN cvprop.value IS 'The value of the property, represented as text. Numeric values are converted to their text representation.';
  366. COMMENT ON COLUMN cvprop.rank IS 'Property-Value ordering. Any
  367. cv can have multiple values for any particular property type -
  368. these are ordered in a list using rank, counting from zero. For
  369. properties that are single-valued rather than multi-valued, the
  370. default 0 value should be used.';
  371. -- ================================================
  372. -- TABLE: chadoprop
  373. -- ================================================
  374. create table chadoprop (
  375. chadoprop_id serial not null,
  376. primary key (chadoprop_id),
  377. type_id int not null,
  378. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  379. value text,
  380. rank int not null default 0,
  381. constraint chadoprop_c1 unique (type_id,rank)
  382. );
  383. 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';
  384. 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.';
  385. COMMENT ON COLUMN chadoprop.value IS 'The value of the property, represented as text. Numeric values are converted to their text representation.';
  386. COMMENT ON COLUMN chadoprop.rank IS 'Property-Value ordering. Any
  387. cv can have multiple values for any particular property type -
  388. these are ordered in a list using rank, counting from zero. For
  389. properties that are single-valued rather than multi-valued, the
  390. default 0 value should be used.';
  391. CREATE OR REPLACE VIEW cv_root AS
  392. SELECT
  393. cv_id,
  394. cvterm_id AS root_cvterm_id
  395. FROM cvterm
  396. WHERE
  397. cvterm_id NOT IN ( SELECT subject_id FROM cvterm_relationship) AND
  398. is_obsolete=0;
  399. COMMENT ON VIEW cv_root IS 'the roots of a cv are the set of terms
  400. which have no parents (terms that are not the subject of a
  401. relation). Most cvs will have a single root, some may have >1. All
  402. will have at least 1';
  403. CREATE OR REPLACE VIEW cv_leaf AS
  404. SELECT
  405. cv_id,
  406. cvterm_id
  407. FROM cvterm
  408. WHERE
  409. cvterm_id NOT IN ( SELECT object_id FROM cvterm_relationship);
  410. COMMENT ON VIEW cv_leaf IS 'the leaves of a cv are the set of terms
  411. which have no children (terms that are not the object of a
  412. relation). All cvs will have at least 1 leaf';
  413. CREATE OR REPLACE VIEW common_ancestor_cvterm AS
  414. SELECT
  415. p1.subject_id AS cvterm1_id,
  416. p2.subject_id AS cvterm2_id,
  417. p1.object_id AS ancestor_cvterm_id,
  418. p1.pathdistance AS pathdistance1,
  419. p2.pathdistance AS pathdistance2,
  420. p1.pathdistance + p2.pathdistance
  421. AS total_pathdistance
  422. FROM
  423. cvtermpath AS p1,
  424. cvtermpath AS p2
  425. WHERE
  426. p1.object_id = p2.object_id;
  427. COMMENT ON VIEW common_ancestor_cvterm IS 'The common ancestor of any
  428. two terms is the intersection of both terms ancestors. Two terms can
  429. have multiple common ancestors. Use total_pathdistance to get the
  430. least common ancestor';
  431. CREATE OR REPLACE VIEW common_descendant_cvterm AS
  432. SELECT
  433. p1.object_id AS cvterm1_id,
  434. p2.object_id AS cvterm2_id,
  435. p1.subject_id AS ancestor_cvterm_id,
  436. p1.pathdistance AS pathdistance1,
  437. p2.pathdistance AS pathdistance2,
  438. p1.pathdistance + p2.pathdistance
  439. AS total_pathdistance
  440. FROM
  441. cvtermpath AS p1,
  442. cvtermpath AS p2
  443. WHERE
  444. p1.subject_id = p2.subject_id;
  445. COMMENT ON VIEW common_descendant_cvterm IS 'The common descendant of
  446. any two terms is the intersection of both terms descendants. Two terms
  447. can have multiple common descendants. Use total_pathdistance to get
  448. the least common ancestor';
  449. CREATE OR REPLACE VIEW stats_paths_to_root AS
  450. SELECT
  451. subject_id AS cvterm_id,
  452. count(DISTINCT cvtermpath_id) AS total_paths,
  453. avg(pathdistance) AS avg_distance,
  454. min(pathdistance) AS min_distance,
  455. max(pathdistance) AS max_distance
  456. FROM cvtermpath INNER JOIN cv_root ON (object_id=root_cvterm_id)
  457. GROUP BY cvterm_id;
  458. COMMENT ON VIEW stats_paths_to_root IS 'per-cvterm statistics on its
  459. placement in the DAG relative to the root. There may be multiple paths
  460. from any term to the root. This gives the total number of paths, and
  461. the average minimum and maximum distances. Here distance is defined by
  462. cvtermpath.pathdistance';
  463. CREATE VIEW cv_cvterm_count AS
  464. 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;
  465. COMMENT ON VIEW cv_cvterm_count IS 'per-cv terms counts (excludes obsoletes)';
  466. CREATE VIEW cv_cvterm_count_with_obs AS
  467. SELECT cv.name,count(*) AS num_terms_incl_obs FROM cv INNER JOIN cvterm USING (cv_id) GROUP BY cv.name;
  468. COMMENT ON VIEW cv_cvterm_count_with_obs IS 'per-cv terms counts (includes obsoletes)';
  469. CREATE VIEW cv_link_count AS
  470. SELECT cv.name AS cv_name,
  471. relation.name AS relation_name,
  472. relation_cv.name AS relation_cv_name,
  473. count(*) AS num_links
  474. FROM cv
  475. INNER JOIN cvterm ON (cvterm.cv_id=cv.cv_id)
  476. INNER JOIN cvterm_relationship ON (cvterm.cvterm_id=subject_id)
  477. INNER JOIN cvterm AS relation ON (type_id=relation.cvterm_id)
  478. INNER JOIN cv AS relation_cv ON (relation.cv_id=relation_cv.cv_id)
  479. GROUP BY cv.name,relation.name,relation_cv.name;
  480. COMMENT ON VIEW cv_link_count IS 'per-cv summary of number of
  481. links (cvterm_relationships) broken down by
  482. relationship_type. num_links is the total # of links of the specified
  483. type in which the subject_id of the link is in the named cv';
  484. CREATE VIEW cv_path_count AS
  485. SELECT cv.name AS cv_name,
  486. relation.name AS relation_name,
  487. relation_cv.name AS relation_cv_name,
  488. count(*) AS num_paths
  489. FROM cv
  490. INNER JOIN cvterm ON (cvterm.cv_id=cv.cv_id)
  491. INNER JOIN cvtermpath ON (cvterm.cvterm_id=subject_id)
  492. INNER JOIN cvterm AS relation ON (type_id=relation.cvterm_id)
  493. INNER JOIN cv AS relation_cv ON (relation.cv_id=relation_cv.cv_id)
  494. GROUP BY cv.name,relation.name,relation_cv.name;
  495. COMMENT ON VIEW cv_path_count IS 'per-cv summary of number of
  496. paths (cvtermpaths) broken down by relationship_type. num_paths is the
  497. total # of paths of the specified type in which the subject_id of the
  498. path is in the named cv. See also: cv_distinct_relations';
  499. CREATE OR REPLACE FUNCTION _get_all_subject_ids(integer) RETURNS SETOF cvtermpath AS
  500. '
  501. DECLARE
  502. root alias for $1;
  503. cterm cvtermpath%ROWTYPE;
  504. cterm2 cvtermpath%ROWTYPE;
  505. BEGIN
  506. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = root LOOP
  507. RETURN NEXT cterm;
  508. FOR cterm2 IN SELECT * FROM _get_all_subject_ids(cterm.subject_id) LOOP
  509. RETURN NEXT cterm2;
  510. END LOOP;
  511. END LOOP;
  512. RETURN;
  513. END;
  514. '
  515. LANGUAGE 'plpgsql';
  516. ---arg: parent term id
  517. ---return: all children term id and their parent term id with relationship type id
  518. CREATE OR REPLACE FUNCTION get_all_subject_ids(integer) RETURNS SETOF cvtermpath AS
  519. '
  520. DECLARE
  521. root alias for $1;
  522. cterm cvtermpath%ROWTYPE;
  523. exist_c int;
  524. BEGIN
  525. SELECT INTO exist_c count(*) FROM cvtermpath WHERE object_id = root and pathdistance <= 0;
  526. IF (exist_c > 0) THEN
  527. FOR cterm IN SELECT * FROM cvtermpath WHERE object_id = root and pathdistance > 0 LOOP
  528. RETURN NEXT cterm;
  529. END LOOP;
  530. ELSE
  531. FOR cterm IN SELECT * FROM _get_all_subject_ids(root) LOOP
  532. RETURN NEXT cterm;
  533. END LOOP;
  534. END IF;
  535. RETURN;
  536. END;
  537. '
  538. LANGUAGE 'plpgsql';
  539. CREATE OR REPLACE FUNCTION get_graph_below(integer) RETURNS SETOF cvtermpath AS
  540. '
  541. DECLARE
  542. root alias for $1;
  543. cterm cvtermpath%ROWTYPE;
  544. cterm2 cvtermpath%ROWTYPE;
  545. BEGIN
  546. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = root LOOP
  547. RETURN NEXT cterm;
  548. FOR cterm2 IN SELECT * FROM get_all_subject_ids(cterm.subject_id) LOOP
  549. RETURN NEXT cterm2;
  550. END LOOP;
  551. END LOOP;
  552. RETURN;
  553. END;
  554. '
  555. LANGUAGE 'plpgsql';
  556. CREATE OR REPLACE FUNCTION get_graph_above(integer) RETURNS SETOF cvtermpath AS
  557. '
  558. DECLARE
  559. leaf alias for $1;
  560. cterm cvtermpath%ROWTYPE;
  561. cterm2 cvtermpath%ROWTYPE;
  562. BEGIN
  563. FOR cterm IN SELECT * FROM cvterm_relationship WHERE subject_id = leaf LOOP
  564. RETURN NEXT cterm;
  565. FOR cterm2 IN SELECT * FROM get_all_object_ids(cterm.object_id) LOOP
  566. RETURN NEXT cterm2;
  567. END LOOP;
  568. END LOOP;
  569. RETURN;
  570. END;
  571. '
  572. LANGUAGE 'plpgsql';
  573. CREATE OR REPLACE FUNCTION _get_all_object_ids(integer) RETURNS SETOF cvtermpath AS
  574. '
  575. DECLARE
  576. leaf alias for $1;
  577. cterm cvtermpath%ROWTYPE;
  578. cterm2 cvtermpath%ROWTYPE;
  579. BEGIN
  580. FOR cterm IN SELECT * FROM cvterm_relationship WHERE subject_id = leaf LOOP
  581. RETURN NEXT cterm;
  582. FOR cterm2 IN SELECT * FROM _get_all_object_ids(cterm.object_id) LOOP
  583. RETURN NEXT cterm2;
  584. END LOOP;
  585. END LOOP;
  586. RETURN;
  587. END;
  588. '
  589. LANGUAGE 'plpgsql';
  590. ---arg: child term id
  591. ---return: all parent term id and their childrent term id with relationship type id
  592. CREATE OR REPLACE FUNCTION get_all_object_ids(integer) RETURNS SETOF cvtermpath AS
  593. '
  594. DECLARE
  595. leaf alias for $1;
  596. cterm cvtermpath%ROWTYPE;
  597. exist_c int;
  598. BEGIN
  599. SELECT INTO exist_c count(*) FROM cvtermpath WHERE object_id = leaf and pathdistance <= 0;
  600. IF (exist_c > 0) THEN
  601. FOR cterm IN SELECT * FROM cvtermpath WHERE subject_id = leaf AND pathdistance > 0 LOOP
  602. RETURN NEXT cterm;
  603. END LOOP;
  604. ELSE
  605. FOR cterm IN SELECT * FROM _get_all_object_ids(leaf) LOOP
  606. RETURN NEXT cterm;
  607. END LOOP;
  608. END IF;
  609. RETURN;
  610. END;
  611. '
  612. LANGUAGE 'plpgsql';
  613. ---arg: sql statement which must be in the form of select cvterm_id from ...
  614. ---return: a set of cvterm ids that includes what is in sql statement and their children (subject ids)
  615. CREATE OR REPLACE FUNCTION get_it_sub_cvterm_ids(text) RETURNS SETOF cvterm AS
  616. '
  617. DECLARE
  618. query alias for $1;
  619. cterm cvterm%ROWTYPE;
  620. cterm2 cvterm%ROWTYPE;
  621. BEGIN
  622. FOR cterm IN EXECUTE query LOOP
  623. RETURN NEXT cterm;
  624. FOR cterm2 IN SELECT subject_id as cvterm_id FROM get_all_subject_ids(cterm.cvterm_id) LOOP
  625. RETURN NEXT cterm2;
  626. END LOOP;
  627. END LOOP;
  628. RETURN;
  629. END;
  630. '
  631. LANGUAGE 'plpgsql';
  632. --- example: select * from fill_cvtermpath(7); where 7 is cv_id for an ontology
  633. --- fill path from the node to its children and their children
  634. CREATE OR REPLACE FUNCTION _fill_cvtermpath4node(INTEGER, INTEGER, INTEGER, INTEGER, INTEGER) RETURNS INTEGER AS
  635. '
  636. DECLARE
  637. origin alias for $1;
  638. child_id alias for $2;
  639. cvid alias for $3;
  640. typeid alias for $4;
  641. depth alias for $5;
  642. cterm cvterm_relationship%ROWTYPE;
  643. exist_c int;
  644. BEGIN
  645. --- RAISE NOTICE ''depth=% root=%'', depth,child_id;
  646. --- not check type_id as it may be null and not very meaningful in cvtermpath when pathdistance > 1
  647. SELECT INTO exist_c count(*) FROM cvtermpath WHERE cv_id = cvid AND object_id = origin AND subject_id = child_id AND pathdistance = depth;
  648. IF (exist_c = 0) THEN
  649. INSERT INTO cvtermpath (object_id, subject_id, cv_id, type_id, pathdistance) VALUES(origin, child_id, cvid, typeid, depth);
  650. END IF;
  651. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = child_id LOOP
  652. PERFORM _fill_cvtermpath4node(origin, cterm.subject_id, cvid, cterm.type_id, depth+1);
  653. END LOOP;
  654. RETURN 1;
  655. END;
  656. '
  657. LANGUAGE 'plpgsql';
  658. CREATE OR REPLACE FUNCTION _fill_cvtermpath4root(INTEGER, INTEGER) RETURNS INTEGER AS
  659. '
  660. DECLARE
  661. rootid alias for $1;
  662. cvid alias for $2;
  663. ttype int;
  664. cterm cvterm_relationship%ROWTYPE;
  665. child cvterm_relationship%ROWTYPE;
  666. BEGIN
  667. SELECT INTO ttype cvterm_id FROM cvterm WHERE (name = ''isa'' OR name = ''is_a'');
  668. PERFORM _fill_cvtermpath4node(rootid, rootid, cvid, ttype, 0);
  669. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = rootid LOOP
  670. PERFORM _fill_cvtermpath4root(cterm.subject_id, cvid);
  671. -- RAISE NOTICE ''DONE for term, %'', cterm.subject_id;
  672. END LOOP;
  673. RETURN 1;
  674. END;
  675. '
  676. LANGUAGE 'plpgsql';
  677. CREATE OR REPLACE FUNCTION fill_cvtermpath(INTEGER) RETURNS INTEGER AS
  678. '
  679. DECLARE
  680. cvid alias for $1;
  681. root cvterm%ROWTYPE;
  682. BEGIN
  683. DELETE FROM cvtermpath WHERE cv_id = cvid;
  684. 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
  685. PERFORM _fill_cvtermpath4root(root.cvterm_id, root.cv_id);
  686. END LOOP;
  687. RETURN 1;
  688. END;
  689. '
  690. LANGUAGE 'plpgsql';
  691. CREATE OR REPLACE FUNCTION fill_cvtermpath(cv.name%TYPE) RETURNS INTEGER AS
  692. '
  693. DECLARE
  694. cvname alias for $1;
  695. cv_id int;
  696. rtn int;
  697. BEGIN
  698. SELECT INTO cv_id cv.cv_id from cv WHERE cv.name = cvname;
  699. SELECT INTO rtn fill_cvtermpath(cv_id);
  700. RETURN rtn;
  701. END;
  702. '
  703. LANGUAGE 'plpgsql';
  704. CREATE OR REPLACE FUNCTION _fill_cvtermpath4node2detect_cycle(INTEGER, INTEGER, INTEGER, INTEGER, INTEGER) RETURNS INTEGER AS
  705. '
  706. DECLARE
  707. origin alias for $1;
  708. child_id alias for $2;
  709. cvid alias for $3;
  710. typeid alias for $4;
  711. depth alias for $5;
  712. cterm cvterm_relationship%ROWTYPE;
  713. exist_c int;
  714. ccount int;
  715. ecount int;
  716. rtn int;
  717. BEGIN
  718. 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'';
  719. GET DIAGNOSTICS ccount = ROW_COUNT;
  720. IF (ccount > 0) THEN
  721. --RAISE EXCEPTION ''FOUND CYCLE: node % on cycle path'',origin;
  722. RETURN origin;
  723. END IF;
  724. EXECUTE ''SELECT * FROM tmpcvtermpath WHERE cv_id = '' || cvid || '' AND object_id = '' || origin || '' AND subject_id = '' || child_id || '' AND '' || origin || ''<>'' || child_id;
  725. GET DIAGNOSTICS ecount = ROW_COUNT;
  726. IF (ecount > 0) THEN
  727. --RAISE NOTICE ''FOUND TWICE (node), will check root obj % subj %'',origin, child_id;
  728. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(child_id, cvid);
  729. IF (rtn > 0) THEN
  730. RETURN rtn;
  731. END IF;
  732. END IF;
  733. EXECUTE ''SELECT * FROM tmpcvtermpath WHERE cv_id = '' || cvid || '' AND object_id = '' || origin || '' AND subject_id = '' || child_id || '' AND pathdistance = '' || depth;
  734. GET DIAGNOSTICS exist_c = ROW_COUNT;
  735. IF (exist_c = 0) THEN
  736. EXECUTE ''INSERT INTO tmpcvtermpath (object_id, subject_id, cv_id, type_id, pathdistance) VALUES('' || origin || '', '' || child_id || '', '' || cvid || '', '' || typeid || '', '' || depth || '')'';
  737. END IF;
  738. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = child_id LOOP
  739. --RAISE NOTICE ''DOING for node, % %'', origin, cterm.subject_id;
  740. SELECT INTO rtn _fill_cvtermpath4node2detect_cycle(origin, cterm.subject_id, cvid, cterm.type_id, depth+1);
  741. IF (rtn > 0) THEN
  742. RETURN rtn;
  743. END IF;
  744. END LOOP;
  745. RETURN 0;
  746. END;
  747. '
  748. LANGUAGE 'plpgsql';
  749. CREATE OR REPLACE FUNCTION _fill_cvtermpath4root2detect_cycle(INTEGER, INTEGER) RETURNS INTEGER AS
  750. '
  751. DECLARE
  752. rootid alias for $1;
  753. cvid alias for $2;
  754. ttype int;
  755. ccount int;
  756. cterm cvterm_relationship%ROWTYPE;
  757. child cvterm_relationship%ROWTYPE;
  758. rtn int;
  759. BEGIN
  760. SELECT INTO ttype cvterm_id FROM cvterm WHERE (name = ''isa'' OR name = ''is_a'');
  761. SELECT INTO rtn _fill_cvtermpath4node2detect_cycle(rootid, rootid, cvid, ttype, 0);
  762. IF (rtn > 0) THEN
  763. RETURN rtn;
  764. END IF;
  765. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = rootid LOOP
  766. 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;
  767. GET DIAGNOSTICS ccount = ROW_COUNT;
  768. IF (ccount > 0) THEN
  769. --RAISE NOTICE ''FOUND TWICE (root), will check root obj % subj %'',rootid,cterm.subject_id;
  770. SELECT INTO rtn _fill_cvtermpath4node2detect_cycle(rootid, cterm.subject_id, cvid, ttype, 0);
  771. IF (rtn > 0) THEN
  772. RETURN rtn;
  773. END IF;
  774. ELSE
  775. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(cterm.subject_id, cvid);
  776. IF (rtn > 0) THEN
  777. RETURN rtn;
  778. END IF;
  779. END IF;
  780. END LOOP;
  781. RETURN 0;
  782. END;
  783. '
  784. LANGUAGE 'plpgsql';
  785. CREATE OR REPLACE FUNCTION get_cycle_cvterm_id(INTEGER, INTEGER) RETURNS INTEGER AS
  786. '
  787. DECLARE
  788. cvid alias for $1;
  789. rootid alias for $2;
  790. rtn int;
  791. BEGIN
  792. CREATE TEMP TABLE tmpcvtermpath(object_id int, subject_id int, cv_id int, type_id int, pathdistance int);
  793. CREATE INDEX tmp_cvtpath1 ON tmpcvtermpath(object_id, subject_id);
  794. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(rootid, cvid);
  795. IF (rtn > 0) THEN
  796. DROP TABLE tmpcvtermpath;
  797. RETURN rtn;
  798. END IF;
  799. DROP TABLE tmpcvtermpath;
  800. RETURN 0;
  801. END;
  802. '
  803. LANGUAGE 'plpgsql';
  804. CREATE OR REPLACE FUNCTION get_cycle_cvterm_ids(INTEGER) RETURNS SETOF INTEGER AS
  805. '
  806. DECLARE
  807. cvid alias for $1;
  808. root cvterm%ROWTYPE;
  809. rtn int;
  810. BEGIN
  811. FOR root IN SELECT DISTINCT t.* from cvterm t WHERE cv_id = cvid LOOP
  812. SELECT INTO rtn get_cycle_cvterm_id(cvid,root.cvterm_id);
  813. IF (rtn > 0) THEN
  814. RETURN NEXT rtn;
  815. END IF;
  816. END LOOP;
  817. RETURN;
  818. END;
  819. '
  820. LANGUAGE 'plpgsql';
  821. CREATE OR REPLACE FUNCTION get_cycle_cvterm_id(INTEGER) RETURNS INTEGER AS
  822. '
  823. DECLARE
  824. cvid alias for $1;
  825. root cvterm%ROWTYPE;
  826. rtn int;
  827. BEGIN
  828. CREATE TEMP TABLE tmpcvtermpath(object_id int, subject_id int, cv_id int, type_id int, pathdistance int);
  829. CREATE INDEX tmp_cvtpath1 ON tmpcvtermpath(object_id, subject_id);
  830. 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
  831. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(root.cvterm_id, root.cv_id);
  832. IF (rtn > 0) THEN
  833. DROP TABLE tmpcvtermpath;
  834. RETURN rtn;
  835. END IF;
  836. END LOOP;
  837. DROP TABLE tmpcvtermpath;
  838. RETURN 0;
  839. END;
  840. '
  841. LANGUAGE 'plpgsql';
  842. CREATE OR REPLACE FUNCTION get_cycle_cvterm_id(cv.name%TYPE) RETURNS INTEGER AS
  843. '
  844. DECLARE
  845. cvname alias for $1;
  846. cv_id int;
  847. rtn int;
  848. BEGIN
  849. SELECT INTO cv_id cv.cv_id from cv WHERE cv.name = cvname;
  850. SELECT INTO rtn get_cycle_cvterm_id(cv_id);
  851. RETURN rtn;
  852. END;
  853. '
  854. LANGUAGE 'plpgsql';
  855. -- ==========================================
  856. -- Chado pub module
  857. --
  858. -- =================================================================
  859. -- Dependencies:
  860. --
  861. -- :import cvterm from cv
  862. -- :import dbxref from general
  863. -- =================================================================
  864. -- ================================================
  865. -- TABLE: pub
  866. -- ================================================
  867. create table pub (
  868. pub_id serial not null,
  869. primary key (pub_id),
  870. title text,
  871. volumetitle text,
  872. volume varchar(255),
  873. series_name varchar(255),
  874. issue varchar(255),
  875. pyear varchar(255),
  876. pages varchar(255),
  877. miniref varchar(255),
  878. uniquename text not null,
  879. type_id int not null,
  880. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  881. is_obsolete boolean default 'false',
  882. publisher varchar(255),
  883. pubplace varchar(255),
  884. constraint pub_c1 unique (uniquename)
  885. );
  886. CREATE INDEX pub_idx1 ON pub (type_id);
  887. COMMENT ON TABLE pub IS 'A documented provenance artefact - publications,
  888. documents, personal communication.';
  889. COMMENT ON COLUMN pub.title IS 'Descriptive general heading.';
  890. COMMENT ON COLUMN pub.volumetitle IS 'Title of part if one of a series.';
  891. COMMENT ON COLUMN pub.series_name IS 'Full name of (journal) series.';
  892. COMMENT ON COLUMN pub.pages IS 'Page number range[s], e.g. 457--459, viii + 664pp, lv--lvii.';
  893. COMMENT ON COLUMN pub.type_id IS 'The type of the publication (book, journal, poem, graffiti, etc). Uses pub cv.';
  894. -- ================================================
  895. -- TABLE: pub_relationship
  896. -- ================================================
  897. create table pub_relationship (
  898. pub_relationship_id serial not null,
  899. primary key (pub_relationship_id),
  900. subject_id int not null,
  901. foreign key (subject_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  902. object_id int not null,
  903. foreign key (object_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  904. type_id int not null,
  905. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  906. constraint pub_relationship_c1 unique (subject_id,object_id,type_id)
  907. );
  908. create index pub_relationship_idx1 on pub_relationship (subject_id);
  909. create index pub_relationship_idx2 on pub_relationship (object_id);
  910. create index pub_relationship_idx3 on pub_relationship (type_id);
  911. COMMENT ON TABLE pub_relationship IS 'Handle relationships between
  912. publications, e.g. when one publication makes others obsolete, when one
  913. publication contains errata with respect to other publication(s), or
  914. when one publication also appears in another pub.';
  915. -- ================================================
  916. -- TABLE: pub_dbxref
  917. -- ================================================
  918. create table pub_dbxref (
  919. pub_dbxref_id serial not null,
  920. primary key (pub_dbxref_id),
  921. pub_id int not null,
  922. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  923. dbxref_id int not null,
  924. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  925. is_current boolean not null default 'true',
  926. constraint pub_dbxref_c1 unique (pub_id,dbxref_id)
  927. );
  928. create index pub_dbxref_idx1 on pub_dbxref (pub_id);
  929. create index pub_dbxref_idx2 on pub_dbxref (dbxref_id);
  930. COMMENT ON TABLE pub_dbxref IS 'Handle links to repositories,
  931. e.g. Pubmed, Biosis, zoorec, OCLC, Medline, ISSN, coden...';
  932. -- ================================================
  933. -- TABLE: pubauthor
  934. -- ================================================
  935. create table pubauthor (
  936. pubauthor_id serial not null,
  937. primary key (pubauthor_id),
  938. pub_id int not null,
  939. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  940. rank int not null,
  941. editor boolean default 'false',
  942. surname varchar(100) not null,
  943. givennames varchar(100),
  944. suffix varchar(100),
  945. constraint pubauthor_c1 unique (pub_id, rank)
  946. );
  947. create index pubauthor_idx2 on pubauthor (pub_id);
  948. 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.';
  949. COMMENT ON COLUMN pubauthor.givennames IS 'First name, initials';
  950. COMMENT ON COLUMN pubauthor.suffix IS 'Jr., Sr., etc';
  951. COMMENT ON COLUMN pubauthor.rank IS 'Order of author in author list for this pub - order is important.';
  952. 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.';
  953. -- ================================================
  954. -- TABLE: pubprop
  955. -- ================================================
  956. create table pubprop (
  957. pubprop_id serial not null,
  958. primary key (pubprop_id),
  959. pub_id int not null,
  960. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  961. type_id int not null,
  962. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  963. value text not null,
  964. rank integer,
  965. constraint pubprop_c1 unique (pub_id,type_id,rank)
  966. );
  967. create index pubprop_idx1 on pubprop (pub_id);
  968. create index pubprop_idx2 on pubprop (type_id);
  969. COMMENT ON TABLE pubprop IS 'Property-value pairs for a pub. Follows standard chado pattern.';
  970. -- ==========================================
  971. -- Chado organism module
  972. --
  973. -- ============
  974. -- DEPENDENCIES
  975. -- ============
  976. -- :import cvterm from cv
  977. -- :import dbxref from general
  978. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  979. -- ================================================
  980. -- TABLE: organism
  981. -- ================================================
  982. create table organism (
  983. organism_id serial not null,
  984. primary key (organism_id),
  985. abbreviation varchar(255) null,
  986. genus varchar(255) not null,
  987. species varchar(255) not null,
  988. common_name varchar(255) null,
  989. comment text null,
  990. constraint organism_c1 unique (genus,species)
  991. );
  992. COMMENT ON TABLE organism IS 'The organismal taxonomic
  993. classification. Note that phylogenies are represented using the
  994. phylogeny module, and taxonomies can be represented using the cvterm
  995. module or the phylogeny module.';
  996. COMMENT ON COLUMN organism.species IS 'A type of organism is always
  997. uniquely identified by genus and species. When mapping from the NCBI
  998. taxonomy names.dmp file, this column must be used where it
  999. is present, as the common_name column is not always unique (e.g. environmental
  1000. samples). If a particular strain or subspecies is to be represented,
  1001. this is appended onto the species name. Follows standard NCBI taxonomy
  1002. pattern.';
  1003. -- ================================================
  1004. -- TABLE: organism_dbxref
  1005. -- ================================================
  1006. create table organism_dbxref (
  1007. organism_dbxref_id serial not null,
  1008. primary key (organism_dbxref_id),
  1009. organism_id int not null,
  1010. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  1011. dbxref_id int not null,
  1012. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  1013. constraint organism_dbxref_c1 unique (organism_id,dbxref_id)
  1014. );
  1015. create index organism_dbxref_idx1 on organism_dbxref (organism_id);
  1016. create index organism_dbxref_idx2 on organism_dbxref (dbxref_id);
  1017. -- ================================================
  1018. -- TABLE: organismprop
  1019. -- ================================================
  1020. create table organismprop (
  1021. organismprop_id serial not null,
  1022. primary key (organismprop_id),
  1023. organism_id int not null,
  1024. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  1025. type_id int not null,
  1026. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1027. value text null,
  1028. rank int not null default 0,
  1029. constraint organismprop_c1 unique (organism_id,type_id,rank)
  1030. );
  1031. create index organismprop_idx1 on organismprop (organism_id);
  1032. create index organismprop_idx2 on organismprop (type_id);
  1033. COMMENT ON TABLE organismprop IS 'Tag-value properties - follows standard chado model.';
  1034. CREATE OR REPLACE FUNCTION get_organism_id(VARCHAR,VARCHAR) RETURNS INT
  1035. AS '
  1036. SELECT organism_id
  1037. FROM organism
  1038. WHERE genus=$1
  1039. AND species=$2
  1040. ' LANGUAGE 'sql';
  1041. CREATE OR REPLACE FUNCTION get_organism_id(VARCHAR) RETURNS INT
  1042. AS '
  1043. SELECT organism_id
  1044. FROM organism
  1045. WHERE genus=substring($1,1,position('' '' IN $1)-1)
  1046. AND species=substring($1,position('' '' IN $1)+1)
  1047. ' LANGUAGE 'sql';
  1048. CREATE OR REPLACE FUNCTION get_organism_id_abbrev(VARCHAR) RETURNS INT
  1049. AS '
  1050. SELECT organism_id
  1051. FROM organism
  1052. WHERE substr(genus,1,1)=substring($1,1,1)
  1053. AND species=substring($1,position('' '' IN $1)+1)
  1054. ' LANGUAGE 'sql';
  1055. CREATE OR REPLACE FUNCTION store_organism (VARCHAR,VARCHAR,VARCHAR)
  1056. RETURNS INT AS
  1057. 'DECLARE
  1058. v_genus ALIAS FOR $1;
  1059. v_species ALIAS FOR $2;
  1060. v_common_name ALIAS FOR $3;
  1061. v_organism_id INTEGER;
  1062. BEGIN
  1063. SELECT INTO v_organism_id organism_id
  1064. FROM organism
  1065. WHERE genus=v_genus AND
  1066. species=v_species;
  1067. IF NOT FOUND THEN
  1068. INSERT INTO organism
  1069. (genus,species,common_name)
  1070. VALUES
  1071. (v_genus,v_species,v_common_name);
  1072. RETURN currval(''organism_organism_id_seq'');
  1073. ELSE
  1074. UPDATE organism
  1075. SET common_name=v_common_name
  1076. WHERE organism_id = v_organism_id;
  1077. END IF;
  1078. RETURN v_organism_id;
  1079. END;
  1080. ' LANGUAGE 'plpgsql';
  1081. -- ==========================================
  1082. -- Chado sequence module
  1083. --
  1084. -- =================================================================
  1085. -- Dependencies:
  1086. --
  1087. -- :import cvterm from cv
  1088. -- :import pub from pub
  1089. -- :import organism from organism
  1090. -- :import dbxref from general
  1091. -- =================================================================
  1092. -- ================================================
  1093. -- TABLE: feature
  1094. -- ================================================
  1095. create table feature (
  1096. feature_id serial not null,
  1097. primary key (feature_id),
  1098. dbxref_id int,
  1099. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  1100. organism_id int not null,
  1101. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  1102. name varchar(255),
  1103. uniquename text not null,
  1104. residues text,
  1105. seqlen int,
  1106. md5checksum char(32),
  1107. type_id int not null,
  1108. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1109. is_analysis boolean not null default 'false',
  1110. is_obsolete boolean not null default 'false',
  1111. timeaccessioned timestamp not null default current_timestamp,
  1112. timelastmodified timestamp not null default current_timestamp,
  1113. constraint feature_c1 unique (organism_id,uniquename,type_id)
  1114. );
  1115. create sequence feature_uniquename_seq;
  1116. create index feature_name_ind1 on feature(name);
  1117. create index feature_idx1 on feature (dbxref_id);
  1118. create index feature_idx2 on feature (organism_id);
  1119. create index feature_idx3 on feature (type_id);
  1120. create index feature_idx4 on feature (uniquename);
  1121. create index feature_idx5 on feature (lower(name));
  1122. ALTER TABLE feature ALTER residues SET STORAGE EXTERNAL;
  1123. COMMENT ON TABLE feature IS 'A feature is a biological sequence or a
  1124. section of a biological sequence, or a collection of such
  1125. sections. Examples include genes, exons, transcripts, regulatory
  1126. regions, polypeptides, protein domains, chromosome sequences, sequence
  1127. variations, cross-genome match regions such as hits and HSPs and so
  1128. on; see the Sequence Ontology for more. The combination of
  1129. organism_id, uniquename and type_id should be unique.';
  1130. COMMENT ON COLUMN feature.dbxref_id IS 'An optional primary public stable
  1131. identifier for this feature. Secondary identifiers and external
  1132. dbxrefs go in the table feature_dbxref.';
  1133. COMMENT ON COLUMN feature.organism_id IS 'The organism to which this feature
  1134. belongs. This column is mandatory.';
  1135. COMMENT ON COLUMN feature.name IS 'The optional human-readable common name for
  1136. a feature, for display purposes.';
  1137. COMMENT ON COLUMN feature.uniquename IS 'The unique name for a feature; may
  1138. not be necessarily be particularly human-readable, although this is
  1139. preferred. This name must be unique for this type of feature within
  1140. this organism.';
  1141. COMMENT ON COLUMN feature.residues IS 'A sequence of alphabetic characters
  1142. representing biological residues (nucleic acids, amino acids). This
  1143. column does not need to be manifested for all features; it is optional
  1144. for features such as exons where the residues can be derived from the
  1145. featureloc. It is recommended that the value for this column be
  1146. manifested for features which may may non-contiguous sublocations (e.g.
  1147. transcripts), since derivation at query time is non-trivial. For
  1148. expressed sequence, the DNA sequence should be used rather than the
  1149. RNA sequence. The default storage method for the residues column is
  1150. EXTERNAL, which will store it uncompressed to make substring operations
  1151. faster.';
  1152. COMMENT ON COLUMN feature.seqlen IS 'The length of the residue feature. See
  1153. column:residues. This column is partially redundant with the residues
  1154. column, and also with featureloc. This column is required because the
  1155. location may be unknown and the residue sequence may not be
  1156. manifested, yet it may be desirable to store and query the length of
  1157. the feature. The seqlen should always be manifested where the length
  1158. of the sequence is known.';
  1159. COMMENT ON COLUMN feature.md5checksum IS 'The 32-character checksum of the sequence,
  1160. calculated using the MD5 algorithm. This is practically guaranteed to
  1161. be unique for any feature. This column thus acts as a unique
  1162. identifier on the mathematical sequence.';
  1163. COMMENT ON COLUMN feature.type_id IS 'A required reference to a table:cvterm
  1164. giving the feature type. This will typically be a Sequence Ontology
  1165. identifier. This column is thus used to subclass the feature table.';
  1166. COMMENT ON COLUMN feature.is_analysis IS 'Boolean indicating whether this
  1167. feature is annotated or the result of an automated analysis. Analysis
  1168. results also use the companalysis module. Note that the dividing line
  1169. between analysis and annotation may be fuzzy, this should be determined on
  1170. a per-project basis in a consistent manner. One requirement is that
  1171. there should only be one non-analysis version of each wild-type gene
  1172. feature in a genome, whereas the same gene feature can be predicted
  1173. multiple times in different analyses.';
  1174. COMMENT ON COLUMN feature.is_obsolete IS 'Boolean indicating whether this
  1175. feature has been obsoleted. Some chado instances may choose to simply
  1176. remove the feature altogether, others may choose to keep an obsolete
  1177. row in the table.';
  1178. COMMENT ON COLUMN feature.timeaccessioned IS 'For handling object
  1179. accession or modification timestamps (as opposed to database auditing data,
  1180. handled elsewhere). The expectation is that these fields would be
  1181. available to software interacting with chado.';
  1182. COMMENT ON COLUMN feature.timelastmodified IS 'For handling object
  1183. accession or modification timestamps (as opposed to database auditing data,
  1184. handled elsewhere). The expectation is that these fields would be
  1185. available to software interacting with chado.';
  1186. --- COMMENT ON INDEX feature_c1 IS 'Any feature can be globally identified
  1187. --- by the combination of organism, uniquename and feature type';
  1188. -- ================================================
  1189. -- TABLE: featureloc
  1190. -- ================================================
  1191. create table featureloc (
  1192. featureloc_id serial not null,
  1193. primary key (featureloc_id),
  1194. feature_id int not null,
  1195. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1196. srcfeature_id int,
  1197. foreign key (srcfeature_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  1198. fmin int,
  1199. is_fmin_partial boolean not null default 'false',
  1200. fmax int,
  1201. is_fmax_partial boolean not null default 'false',
  1202. strand smallint,
  1203. phase int,
  1204. residue_info text,
  1205. locgroup int not null default 0,
  1206. rank int not null default 0,
  1207. constraint featureloc_c1 unique (feature_id,locgroup,rank),
  1208. constraint featureloc_c2 check (fmin <= fmax)
  1209. );
  1210. create index featureloc_idx1 on featureloc (feature_id);
  1211. create index featureloc_idx2 on featureloc (srcfeature_id);
  1212. create index featureloc_idx3 on featureloc (srcfeature_id,fmin,fmax);
  1213. COMMENT ON TABLE featureloc IS 'The location of a feature relative to
  1214. another feature. Important: interbase coordinates are used. This is
  1215. vital as it allows us to represent zero-length features e.g. splice
  1216. sites, insertion points without an awkward fuzzy system. Features
  1217. typically have exactly ONE location, but this need not be the
  1218. case. Some features may not be localized (e.g. a gene that has been
  1219. characterized genetically but no sequence or molecular information is
  1220. available). Note on multiple locations: Each feature can have 0 or
  1221. more locations. Multiple locations do NOT indicate non-contiguous
  1222. locations (if a feature such as a transcript has a non-contiguous
  1223. location, then the subfeatures such as exons should always be
  1224. manifested). Instead, multiple featurelocs for a feature designate
  1225. alternate locations or grouped locations; for instance, a feature
  1226. designating a blast hit or hsp will have two locations, one on the
  1227. query feature, one on the subject feature. Features representing
  1228. sequence variation could have alternate locations instantiated on a
  1229. feature on the mutant strain. The column:rank is used to
  1230. differentiate these different locations. Reflexive locations should
  1231. never be stored - this is for -proper- (i.e. non-self) locations only; nothing should be located relative to itself.';
  1232. COMMENT ON COLUMN featureloc.feature_id IS 'The feature that is being located. Any feature can have zero or more featurelocs.';
  1233. 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.';
  1234. 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.';
  1235. 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).';
  1236. COMMENT ON COLUMN featureloc.strand IS 'The orientation/directionality of the
  1237. location. Should be 0, -1 or +1.';
  1238. COMMENT ON COLUMN featureloc.rank IS 'Used when a feature has >1
  1239. location, otherwise the default rank 0 is used. Some features (e.g.
  1240. blast hits and HSPs) have two locations - one on the query and one on
  1241. the subject. Rank is used to differentiate these. Rank=0 is always
  1242. used for the query, Rank=1 for the subject. For multiple alignments,
  1243. assignment of rank is arbitrary. Rank is also used for
  1244. sequence_variant features, such as SNPs. Rank=0 indicates the wildtype
  1245. (or baseline) feature, Rank=1 indicates the mutant (or compared) feature.';
  1246. COMMENT ON COLUMN featureloc.locgroup IS 'This is used to manifest redundant,
  1247. derivable extra locations for a feature. The default locgroup=0 is
  1248. used for the DIRECT location of a feature. Important: most Chado users may
  1249. never use featurelocs WITH logroup > 0. Transitively derived locations
  1250. are indicated with locgroup > 0. For example, the position of an exon on
  1251. a BAC and in global chromosome coordinates. This column is used to
  1252. differentiate these groupings of locations. The default locgroup 0
  1253. is used for the main or primary location, from which the others can be
  1254. derived via coordinate transformations. Another example of redundant
  1255. locations is storing ORF coordinates relative to both transcript and
  1256. genome. Redundant locations open the possibility of the database
  1257. getting into inconsistent states; this schema gives us the flexibility
  1258. of both warehouse instantiations with redundant locations (easier for
  1259. querying) and management instantiations with no redundant
  1260. locations. An example of using both locgroup and rank: imagine a
  1261. feature indicating a conserved region between the chromosomes of two
  1262. different species. We may want to keep redundant locations on both
  1263. contigs and chromosomes. We would thus have 4 locations for the single
  1264. conserved region feature - two distinct locgroups (contig level and
  1265. chromosome level) and two distinct ranks (for the two species).';
  1266. COMMENT ON COLUMN featureloc.residue_info IS 'Alternative residues,
  1267. when these differ from feature.residues. For instance, a SNP feature
  1268. located on a wild and mutant protein would have different alternative residues.
  1269. for alignment/similarity features, the alternative residues is used to
  1270. represent the alignment string (CIGAR format). Note on variation
  1271. features; even if we do not want to instantiate a mutant
  1272. chromosome/contig feature, we can still represent a SNP etc with 2
  1273. locations, one (rank 0) on the genome, the other (rank 1) would have
  1274. most fields null, except for alternative residues.';
  1275. COMMENT ON COLUMN featureloc.phase IS 'Phase of translation with
  1276. respect to srcfeature_id.
  1277. Values are 0, 1, 2. It may not be possible to manifest this column for
  1278. some features such as exons, because the phase is dependant on the
  1279. spliceform (the same exon can appear in multiple spliceforms). This column is mostly useful for predicted exons and CDSs.';
  1280. COMMENT ON COLUMN featureloc.is_fmin_partial IS 'This is typically
  1281. false, but may be true if the value for column:fmin is inaccurate or
  1282. the leftmost part of the range is unknown/unbounded.';
  1283. COMMENT ON COLUMN featureloc.is_fmax_partial IS 'This is typically
  1284. false, but may be true if the value for column:fmax is inaccurate or
  1285. the rightmost part of the range is unknown/unbounded.';
  1286. --- COMMENT ON INDEX featureloc_c1 IS 'locgroup and rank serve to uniquely
  1287. --- partition locations for any one feature';
  1288. -- ================================================
  1289. -- TABLE: featureloc_pub
  1290. -- ================================================
  1291. create table featureloc_pub (
  1292. featureloc_pub_id serial not null,
  1293. primary key (featureloc_pub_id),
  1294. featureloc_id int not null,
  1295. foreign key (featureloc_id) references featureloc (featureloc_id) on delete cascade INITIALLY DEFERRED,
  1296. pub_id int not null,
  1297. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1298. constraint featureloc_pub_c1 unique (featureloc_id,pub_id)
  1299. );
  1300. create index featureloc_pub_idx1 on featureloc_pub (featureloc_id);
  1301. create index featureloc_pub_idx2 on featureloc_pub (pub_id);
  1302. COMMENT ON TABLE featureloc_pub IS 'Provenance of featureloc. Linking table between featurelocs and publications that mention them.';
  1303. -- ================================================
  1304. -- TABLE: feature_pub
  1305. -- ================================================
  1306. create table feature_pub (
  1307. feature_pub_id serial not null,
  1308. primary key (feature_pub_id),
  1309. feature_id int not null,
  1310. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1311. pub_id int not null,
  1312. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1313. constraint feature_pub_c1 unique (feature_id,pub_id)
  1314. );
  1315. create index feature_pub_idx1 on feature_pub (feature_id);
  1316. create index feature_pub_idx2 on feature_pub (pub_id);
  1317. COMMENT ON TABLE feature_pub IS 'Provenance. Linking table between features and publications that mention them.';
  1318. -- ================================================
  1319. -- TABLE: feature_pubprop
  1320. -- ================================================
  1321. create table feature_pubprop (
  1322. feature_pubprop_id serial not null,
  1323. primary key (feature_pubprop_id),
  1324. feature_pub_id int not null,
  1325. foreign key (feature_pub_id) references feature_pub (feature_pub_id) on delete cascade INITIALLY DEFERRED,
  1326. type_id int not null,
  1327. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1328. value text null,
  1329. rank int not null default 0,
  1330. constraint feature_pubprop_c1 unique (feature_pub_id,type_id,rank)
  1331. );
  1332. create index feature_pubprop_idx1 on feature_pubprop (feature_pub_id);
  1333. COMMENT ON TABLE feature_pubprop IS 'Property or attribute of a feature_pub link.';
  1334. -- ================================================
  1335. -- TABLE: featureprop
  1336. -- ================================================
  1337. create table featureprop (
  1338. featureprop_id serial not null,
  1339. primary key (featureprop_id),
  1340. feature_id int not null,
  1341. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1342. type_id int not null,
  1343. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1344. value text null,
  1345. rank int not null default 0,
  1346. constraint featureprop_c1 unique (feature_id,type_id,rank)
  1347. );
  1348. create index featureprop_idx1 on featureprop (feature_id);
  1349. create index featureprop_idx2 on featureprop (type_id);
  1350. 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.';
  1351. COMMENT ON COLUMN featureprop.type_id IS 'The name of the
  1352. property/slot is a cvterm. The meaning of the property is defined in
  1353. that cvterm. Certain property types will only apply to certain feature
  1354. types (e.g. the anticodon property will only apply to tRNA features) ;
  1355. the types here come from the sequence feature property ontology.';
  1356. 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.';
  1357. COMMENT ON COLUMN featureprop.rank IS 'Property-Value ordering. Any
  1358. feature can have multiple values for any particular property type -
  1359. these are ordered in a list using rank, counting from zero. For
  1360. properties that are single-valued rather than multi-valued, the
  1361. default 0 value should be used';
  1362. COMMENT ON INDEX featureprop_c1 IS 'For any one feature, multivalued
  1363. property-value pairs must be differentiated by rank.';
  1364. -- ================================================
  1365. -- TABLE: featureprop_pub
  1366. -- ================================================
  1367. create table featureprop_pub (
  1368. featureprop_pub_id serial not null,
  1369. primary key (featureprop_pub_id),
  1370. featureprop_id int not null,
  1371. foreign key (featureprop_id) references featureprop (featureprop_id) on delete cascade INITIALLY DEFERRED,
  1372. pub_id int not null,
  1373. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1374. constraint featureprop_pub_c1 unique (featureprop_id,pub_id)
  1375. );
  1376. create index featureprop_pub_idx1 on featureprop_pub (featureprop_id);
  1377. create index featureprop_pub_idx2 on featureprop_pub (pub_id);
  1378. COMMENT ON TABLE featureprop_pub IS 'Provenance. Any featureprop assignment can optionally be supported by a publication.';
  1379. -- ================================================
  1380. -- TABLE: feature_dbxref
  1381. -- ================================================
  1382. create table feature_dbxref (
  1383. feature_dbxref_id serial not null,
  1384. primary key (feature_dbxref_id),
  1385. feature_id int not null,
  1386. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1387. dbxref_id int not null,
  1388. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  1389. is_current boolean not null default 'true',
  1390. constraint feature_dbxref_c1 unique (feature_id,dbxref_id)
  1391. );
  1392. create index feature_dbxref_idx1 on feature_dbxref (feature_id);
  1393. create index feature_dbxref_idx2 on feature_dbxref (dbxref_id);
  1394. COMMENT ON TABLE feature_dbxref IS 'Links a feature to dbxrefs. This is for secondary identifiers; primary identifiers should use feature.dbxref_id.';
  1395. 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';
  1396. -- ================================================
  1397. -- TABLE: feature_relationship
  1398. -- ================================================
  1399. create table feature_relationship (
  1400. feature_relationship_id serial not null,
  1401. primary key (feature_relationship_id),
  1402. subject_id int not null,
  1403. foreign key (subject_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1404. object_id int not null,
  1405. foreign key (object_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1406. type_id int not null,
  1407. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1408. value text null,
  1409. rank int not null default 0,
  1410. constraint feature_relationship_c1 unique (subject_id,object_id,type_id,rank)
  1411. );
  1412. create index feature_relationship_idx1 on feature_relationship (subject_id);
  1413. create index feature_relationship_idx2 on feature_relationship (object_id);
  1414. create index feature_relationship_idx3 on feature_relationship (type_id);
  1415. COMMENT ON TABLE feature_relationship IS 'Features can be arranged in
  1416. graphs, e.g. "exon part_of transcript part_of gene"; If type is
  1417. thought of as a verb, the each arc or edge makes a statement
  1418. [Subject Verb Object]. The object can also be thought of as parent
  1419. (containing feature), and subject as child (contained feature or
  1420. subfeature). We include the relationship rank/order, because even
  1421. though most of the time we can order things implicitly by sequence
  1422. coordinates, we can not always do this - e.g. transpliced genes. It is also
  1423. useful for quickly getting implicit introns.';
  1424. COMMENT ON COLUMN feature_relationship.subject_id IS 'The subject of the subj-predicate-obj sentence. This is typically the subfeature.';
  1425. COMMENT ON COLUMN feature_relationship.object_id IS 'The object of the subj-predicate-obj sentence. This is typically the container feature.';
  1426. 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.';
  1427. 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.';
  1428. COMMENT ON COLUMN feature_relationship.value IS 'Additional notes or comments.';
  1429. -- ================================================
  1430. -- TABLE: feature_relationship_pub
  1431. -- ================================================
  1432. create table feature_relationship_pub (
  1433. feature_relationship_pub_id serial not null,
  1434. primary key (feature_relationship_pub_id),
  1435. feature_relationship_id int not null,
  1436. foreign key (feature_relationship_id) references feature_relationship (feature_relationship_id) on delete cascade INITIALLY DEFERRED,
  1437. pub_id int not null,
  1438. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1439. constraint feature_relationship_pub_c1 unique (feature_relationship_id,pub_id)
  1440. );
  1441. create index feature_relationship_pub_idx1 on feature_relationship_pub (feature_relationship_id);
  1442. create index feature_relationship_pub_idx2 on feature_relationship_pub (pub_id);
  1443. COMMENT ON TABLE feature_relationship_pub IS 'Provenance. Attach optional evidence to a feature_relationship in the form of a publication.';
  1444. -- ================================================
  1445. -- TABLE: feature_relationshipprop
  1446. -- ================================================
  1447. create table feature_relationshipprop (
  1448. feature_relationshipprop_id serial not null,
  1449. primary key (feature_relationshipprop_id),
  1450. feature_relationship_id int not null,
  1451. foreign key (feature_relationship_id) references feature_relationship (feature_relationship_id) on delete cascade,
  1452. type_id int not null,
  1453. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1454. value text null,
  1455. rank int not null default 0,
  1456. constraint feature_relationshipprop_c1 unique (feature_relationship_id,type_id,rank)
  1457. );
  1458. create index feature_relationshipprop_idx1 on feature_relationshipprop (feature_relationship_id);
  1459. create index feature_relationshipprop_idx2 on feature_relationshipprop (type_id);
  1460. COMMENT ON TABLE feature_relationshipprop IS 'Extensible properties
  1461. for feature_relationships. Analagous structure to featureprop. This
  1462. table is largely optional and not used with a high frequency. Typical
  1463. scenarios may be if one wishes to attach additional data to a
  1464. feature_relationship - for example to say that the
  1465. feature_relationship is only true in certain contexts.';
  1466. COMMENT ON COLUMN feature_relationshipprop.type_id IS 'The name of the
  1467. property/slot is a cvterm. The meaning of the property is defined in
  1468. that cvterm. Currently there is no standard ontology for
  1469. feature_relationship property types.';
  1470. COMMENT ON COLUMN feature_relationshipprop.value IS 'The value of the
  1471. property, represented as text. Numeric values are converted to their
  1472. text representation. This is less efficient than using native database
  1473. types, but is easier to query.';
  1474. COMMENT ON COLUMN feature_relationshipprop.rank IS 'Property-Value
  1475. ordering. Any feature_relationship can have multiple values for any particular
  1476. property type - these are ordered in a list using rank, counting from
  1477. zero. For properties that are single-valued rather than multi-valued,
  1478. the default 0 value should be used.';
  1479. -- ================================================
  1480. -- TABLE: feature_relationshipprop_pub
  1481. -- ================================================
  1482. create table feature_relationshipprop_pub (
  1483. feature_relationshipprop_pub_id serial not null,
  1484. primary key (feature_relationshipprop_pub_id),
  1485. feature_relationshipprop_id int not null,
  1486. foreign key (feature_relationshipprop_id) references feature_relationshipprop (feature_relationshipprop_id) on delete cascade INITIALLY DEFERRED,
  1487. pub_id int not null,
  1488. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1489. constraint feature_relationshipprop_pub_c1 unique (feature_relationshipprop_id,pub_id)
  1490. );
  1491. create index feature_relationshipprop_pub_idx1 on feature_relationshipprop_pub (feature_relationshipprop_id);
  1492. create index feature_relationshipprop_pub_idx2 on feature_relationshipprop_pub (pub_id);
  1493. COMMENT ON TABLE feature_relationshipprop_pub IS 'Provenance for feature_relationshipprop.';
  1494. -- ================================================
  1495. -- TABLE: feature_cvterm
  1496. -- ================================================
  1497. create table feature_cvterm (
  1498. feature_cvterm_id serial not null,
  1499. primary key (feature_cvterm_id),
  1500. feature_id int not null,
  1501. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1502. cvterm_id int not null,
  1503. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1504. pub_id int not null,
  1505. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1506. is_not boolean not null default false,
  1507. rank integer not null default 0,
  1508. constraint feature_cvterm_c1 unique (feature_id,cvterm_id,pub_id,rank)
  1509. );
  1510. create index feature_cvterm_idx1 on feature_cvterm (feature_id);
  1511. create index feature_cvterm_idx2 on feature_cvterm (cvterm_id);
  1512. create index feature_cvterm_idx3 on feature_cvterm (pub_id);
  1513. COMMENT ON TABLE feature_cvterm IS 'Associate a term from a cv with a feature, for example, GO annotation.';
  1514. 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.';
  1515. 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.';
  1516. -- ================================================
  1517. -- TABLE: feature_cvtermprop
  1518. -- ================================================
  1519. create table feature_cvtermprop (
  1520. feature_cvtermprop_id serial not null,
  1521. primary key (feature_cvtermprop_id),
  1522. feature_cvterm_id int not null,
  1523. foreign key (feature_cvterm_id) references feature_cvterm (feature_cvterm_id) on delete cascade,
  1524. type_id int not null,
  1525. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1526. value text null,
  1527. rank int not null default 0,
  1528. constraint feature_cvtermprop_c1 unique (feature_cvterm_id,type_id,rank)
  1529. );
  1530. create index feature_cvtermprop_idx1 on feature_cvtermprop (feature_cvterm_id);
  1531. create index feature_cvtermprop_idx2 on feature_cvtermprop (type_id);
  1532. COMMENT ON TABLE feature_cvtermprop IS 'Extensible properties for
  1533. feature to cvterm associations. Examples: GO evidence codes;
  1534. qualifiers; metadata such as the date on which the entry was curated
  1535. and the source of the association. See the featureprop table for
  1536. meanings of type_id, value and rank.';
  1537. COMMENT ON COLUMN feature_cvtermprop.type_id IS 'The name of the
  1538. property/slot is a cvterm. The meaning of the property is defined in
  1539. that cvterm. cvterms may come from the OBO evidence code cv.';
  1540. COMMENT ON COLUMN feature_cvtermprop.value IS 'The value of the
  1541. property, represented as text. Numeric values are converted to their
  1542. text representation. This is less efficient than using native database
  1543. types, but is easier to query.';
  1544. COMMENT ON COLUMN feature_cvtermprop.rank IS 'Property-Value
  1545. ordering. Any feature_cvterm can have multiple values for any particular
  1546. property type - these are ordered in a list using rank, counting from
  1547. zero. For properties that are single-valued rather than multi-valued,
  1548. the default 0 value should be used.';
  1549. -- ================================================
  1550. -- TABLE: feature_cvterm_dbxref
  1551. -- ================================================
  1552. create table feature_cvterm_dbxref (
  1553. feature_cvterm_dbxref_id serial not null,
  1554. primary key (feature_cvterm_dbxref_id),
  1555. feature_cvterm_id int not null,
  1556. foreign key (feature_cvterm_id) references feature_cvterm (feature_cvterm_id) on delete cascade,
  1557. dbxref_id int not null,
  1558. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  1559. constraint feature_cvterm_dbxref_c1 unique (feature_cvterm_id,dbxref_id)
  1560. );
  1561. create index feature_cvterm_dbxref_idx1 on feature_cvterm_dbxref (feature_cvterm_id);
  1562. create index feature_cvterm_dbxref_idx2 on feature_cvterm_dbxref (dbxref_id);
  1563. 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.';
  1564. -- ================================================
  1565. -- TABLE: feature_cvterm_pub
  1566. -- ================================================
  1567. create table feature_cvterm_pub (
  1568. feature_cvterm_pub_id serial not null,
  1569. primary key (feature_cvterm_pub_id),
  1570. feature_cvterm_id int not null,
  1571. foreign key (feature_cvterm_id) references feature_cvterm (feature_cvterm_id) on delete cascade,
  1572. pub_id int not null,
  1573. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1574. constraint feature_cvterm_pub_c1 unique (feature_cvterm_id,pub_id)
  1575. );
  1576. create index feature_cvterm_pub_idx1 on feature_cvterm_pub (feature_cvterm_id);
  1577. create index feature_cvterm_pub_idx2 on feature_cvterm_pub (pub_id);
  1578. COMMENT ON TABLE feature_cvterm_pub IS 'Secondary pubs for an
  1579. association. Each feature_cvterm association is supported by a single
  1580. primary publication. Additional secondary pubs can be added using this
  1581. linking table (in a GO gene association file, these corresponding to
  1582. any IDs after the pipe symbol in the publications column.';
  1583. -- ================================================
  1584. -- TABLE: synonym
  1585. -- ================================================
  1586. create table synonym (
  1587. synonym_id serial not null,
  1588. primary key (synonym_id),
  1589. name varchar(255) not null,
  1590. type_id int not null,
  1591. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1592. synonym_sgml varchar(255) not null,
  1593. constraint synonym_c1 unique (name,type_id)
  1594. );
  1595. create index synonym_idx1 on synonym (type_id);
  1596. create index synonym_idx2 on synonym ((lower(synonym_sgml)));
  1597. 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.';
  1598. COMMENT ON COLUMN synonym.name IS 'The synonym itself. Should be human-readable machine-searchable ascii text.';
  1599. COMMENT ON COLUMN synonym.synonym_sgml IS 'The fully specified synonym, with any non-ascii characters encoded in SGML.';
  1600. COMMENT ON COLUMN synonym.type_id IS 'Types would be symbol and fullname for now.';
  1601. -- ================================================
  1602. -- TABLE: feature_synonym
  1603. -- ================================================
  1604. create table feature_synonym (
  1605. feature_synonym_id serial not null,
  1606. primary key (feature_synonym_id),
  1607. synonym_id int not null,
  1608. foreign key (synonym_id) references synonym (synonym_id) on delete cascade INITIALLY DEFERRED,
  1609. feature_id int not null,
  1610. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1611. pub_id int not null,
  1612. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1613. is_current boolean not null default 'false',
  1614. is_internal boolean not null default 'false',
  1615. constraint feature_synonym_c1 unique (synonym_id,feature_id,pub_id)
  1616. );
  1617. create index feature_synonym_idx1 on feature_synonym (synonym_id);
  1618. create index feature_synonym_idx2 on feature_synonym (feature_id);
  1619. create index feature_synonym_idx3 on feature_synonym (pub_id);
  1620. COMMENT ON TABLE feature_synonym IS 'Linking table between feature and synonym.';
  1621. 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.';
  1622. 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.';
  1623. 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.';
  1624. CREATE VIEW type_feature_count AS
  1625. SELECT t.name AS type,count(*) AS num_features
  1626. FROM cvterm AS t INNER JOIN feature ON (type_id=t.cvterm_id)
  1627. GROUP BY t.name;
  1628. COMMENT ON VIEW type_feature_count IS 'per-feature-type feature counts';
  1629. CREATE SCHEMA genetic_code;
  1630. SET search_path = genetic_code,public,pg_catalog;
  1631. CREATE TABLE gencode (
  1632. gencode_id INTEGER PRIMARY KEY NOT NULL,
  1633. organismstr VARCHAR(512) NOT NULL
  1634. );
  1635. CREATE TABLE gencode_codon_aa (
  1636. gencode_id INTEGER NOT NULL REFERENCES gencode(gencode_id),
  1637. codon CHAR(3) NOT NULL,
  1638. aa CHAR(1) NOT NULL,
  1639. CONSTRAINT gencode_codon_unique UNIQUE( gencode_id, codon )
  1640. );
  1641. CREATE INDEX gencode_codon_aa_i1 ON gencode_codon_aa(gencode_id,codon,aa);
  1642. CREATE TABLE gencode_startcodon (
  1643. gencode_id INTEGER NOT NULL REFERENCES gencode(gencode_id),
  1644. codon CHAR(3),
  1645. CONSTRAINT gencode_startcodon_unique UNIQUE( gencode_id, codon )
  1646. );
  1647. SET search_path = public,pg_catalog;
  1648. --
  1649. -- functions operating on featureloc ranges
  1650. --
  1651. -- create a point
  1652. CREATE OR REPLACE FUNCTION create_point (int, int) RETURNS point AS
  1653. 'SELECT point ($1, $2)'
  1654. LANGUAGE 'sql';
  1655. -- create a range box
  1656. -- (make this immutable so we can index it)
  1657. CREATE OR REPLACE FUNCTION boxrange (int, int) RETURNS box AS
  1658. 'SELECT box (create_point(0, $1), create_point($2,500000000))'
  1659. LANGUAGE 'sql' IMMUTABLE;
  1660. -- create a query box
  1661. CREATE OR REPLACE FUNCTION boxquery (int, int) RETURNS box AS
  1662. 'SELECT box (create_point($1, $2), create_point($1, $2))'
  1663. LANGUAGE 'sql' IMMUTABLE;
  1664. --functional index that depends on the above functions
  1665. CREATE INDEX binloc_boxrange ON featureloc USING RTREE (boxrange(fmin, fmax));
  1666. CREATE OR REPLACE FUNCTION featureloc_slice(int, int) RETURNS setof featureloc AS
  1667. 'SELECT * from featureloc where boxquery($1, $2) @ boxrange(fmin,fmax)'
  1668. LANGUAGE 'sql';
  1669. CREATE OR REPLACE FUNCTION featureloc_slice(varchar, int, int)
  1670. RETURNS setof featureloc AS
  1671. 'SELECT featureloc.*
  1672. FROM featureloc
  1673. INNER JOIN feature AS srcf ON (srcf.feature_id = featureloc.srcfeature_id)
  1674. WHERE boxquery($2, $3) @ boxrange(fmin,fmax)
  1675. AND srcf.name = $1 '
  1676. LANGUAGE 'sql';
  1677. CREATE OR REPLACE FUNCTION featureloc_slice(int, int, int)
  1678. RETURNS setof featureloc AS
  1679. 'SELECT *
  1680. FROM featureloc
  1681. WHERE boxquery($2, $3) @ boxrange(fmin,fmax)
  1682. AND srcfeature_id = $1 '
  1683. LANGUAGE 'sql';
  1684. -- can we not just do these as views?
  1685. CREATE OR REPLACE FUNCTION feature_overlaps(int)
  1686. RETURNS setof feature AS
  1687. 'SELECT feature.*
  1688. FROM feature
  1689. INNER JOIN featureloc AS x ON (x.feature_id=feature.feature_id)
  1690. INNER JOIN featureloc AS y ON (y.feature_id = $1)
  1691. WHERE
  1692. x.srcfeature_id = y.srcfeature_id AND
  1693. ( x.fmax >= y.fmin AND x.fmin <= y.fmax ) '
  1694. LANGUAGE 'sql';
  1695. CREATE OR REPLACE FUNCTION feature_disjoint_from(int)
  1696. RETURNS setof feature AS
  1697. 'SELECT feature.*
  1698. FROM feature
  1699. INNER JOIN featureloc AS x ON (x.feature_id=feature.feature_id)
  1700. INNER JOIN featureloc AS y ON (y.feature_id = $1)
  1701. WHERE
  1702. x.srcfeature_id = y.srcfeature_id AND
  1703. ( x.fmax < y.fmin OR x.fmin > y.fmax ) '
  1704. LANGUAGE 'sql';
  1705. --Evolution of the methods found in range.plpgsql (C. Pommier)
  1706. --Goal : increase performances of segment fetching
  1707. -- Implies to optimise featureloc_slice
  1708. --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.
  1709. -- 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.
  1710. -- 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 :
  1711. -- boxrange : ((srcfeature_id,fmin),(srcfeature_id,fmax))
  1712. -- boxquery : ((srcfeature_id,fmin),(srcfeature_id,fmax))
  1713. CREATE OR REPLACE FUNCTION boxrange (int, int, int) RETURNS box AS
  1714. 'SELECT box (create_point($1, $2), create_point($1,$3))'
  1715. LANGUAGE 'sql' IMMUTABLE;
  1716. -- create a query box
  1717. CREATE OR REPLACE FUNCTION boxquery (int, int, int) RETURNS box AS
  1718. 'SELECT box (create_point($1, $2), create_point($1, $3))'
  1719. LANGUAGE 'sql' IMMUTABLE;
  1720. CREATE INDEX binloc_boxrange_src ON featureloc USING RTREE (boxrange(srcfeature_id,fmin, fmax));
  1721. CREATE OR REPLACE FUNCTION featureloc_slice(int, int, int)
  1722. RETURNS setof featureloc AS
  1723. 'SELECT *
  1724. FROM featureloc
  1725. WHERE boxquery($1, $2, $3) && boxrange(srcfeature_id,fmin,fmax)'
  1726. LANGUAGE 'sql';
  1727. -- reverse_string
  1728. CREATE OR REPLACE FUNCTION reverse_string(TEXT) RETURNS TEXT AS
  1729. '
  1730. DECLARE
  1731. reversed_string TEXT;
  1732. incoming ALIAS FOR $1;
  1733. BEGIN
  1734. reversed_string = '''';
  1735. FOR i IN REVERSE char_length(incoming)..1 loop
  1736. reversed_string = reversed_string || substring(incoming FROM i FOR 1);
  1737. END loop;
  1738. RETURN reversed_string;
  1739. END'
  1740. language plpgsql;
  1741. -- complements DNA
  1742. CREATE OR REPLACE FUNCTION complement_residues(text) RETURNS text AS
  1743. 'SELECT (translate($1,
  1744. ''acgtrymkswhbvdnxACGTRYMKSWHBVDNX'',
  1745. ''tgcayrkmswdvbhnxTGCAYRKMSWDVBHNX''))'
  1746. LANGUAGE 'sql';
  1747. -- revcomp
  1748. CREATE OR REPLACE FUNCTION reverse_complement(TEXT) RETURNS TEXT AS
  1749. 'SELECT reverse_string(complement_residues($1))'
  1750. LANGUAGE 'sql';
  1751. -- DNA to AA
  1752. CREATE OR REPLACE FUNCTION translate_dna(TEXT,INT) RETURNS TEXT AS
  1753. '
  1754. DECLARE
  1755. dnaseq ALIAS FOR $1;
  1756. gcode ALIAS FOR $2;
  1757. translation TEXT;
  1758. dnaseqlen INT;
  1759. codon CHAR(3);
  1760. aa CHAR(1);
  1761. i INT;
  1762. BEGIN
  1763. translation = '''';
  1764. dnaseqlen = char_length(dnaseq);
  1765. i=1;
  1766. WHILE i+1 < dnaseqlen loop
  1767. codon = substring(dnaseq,i,3);
  1768. aa = translate_codon(codon,gcode);
  1769. translation = translation || aa;
  1770. i = i+3;
  1771. END loop;
  1772. RETURN translation;
  1773. END'
  1774. language plpgsql;
  1775. -- DNA to AA, default genetic code
  1776. CREATE OR REPLACE FUNCTION translate_dna(TEXT) RETURNS TEXT AS
  1777. 'SELECT translate_dna($1,1)'
  1778. LANGUAGE 'sql';
  1779. CREATE OR REPLACE FUNCTION translate_codon(TEXT,INT) RETURNS CHAR AS
  1780. 'SELECT aa FROM genetic_code.gencode_codon_aa WHERE codon=$1 AND gencode_id=$2'
  1781. LANGUAGE 'sql';
  1782. CREATE OR REPLACE FUNCTION concat_pair (text, text) RETURNS text AS
  1783. 'SELECT $1 || $2'
  1784. LANGUAGE 'sql';
  1785. CREATE AGGREGATE concat (
  1786. sfunc = concat_pair,
  1787. basetype = text,
  1788. stype = text,
  1789. initcond = ''
  1790. );
  1791. --function to 'unshare' exons. It looks for exons that have the same fmin
  1792. --and fmax and belong to the same gene and only keeps one. The other,
  1793. --redundant exons are marked obsolete in the feature table. Nothing
  1794. --is done with those features' entries in the featureprop, feature_dbxref,
  1795. --feature_pub, or feature_cvterm tables. For the moment, I'm assuming
  1796. --that any annotations that they have when this script is run are
  1797. --identical to their non-obsoleted doppelgangers. If that's not the case,
  1798. --they could be merged via query.
  1799. --
  1800. --The bulk of this code was contributed by Robin Houston at
  1801. --GeneDB/Sanger Centre.
  1802. CREATE OR REPLACE FUNCTION share_exons () RETURNS void AS '
  1803. DECLARE
  1804. BEGIN
  1805. /* Generate a table of shared exons */
  1806. CREATE temporary TABLE shared_exons AS
  1807. SELECT gene.feature_id as gene_feature_id
  1808. , gene.uniquename as gene_uniquename
  1809. , transcript1.uniquename as transcript1
  1810. , exon1.feature_id as exon1_feature_id
  1811. , exon1.uniquename as exon1_uniquename
  1812. , transcript2.uniquename as transcript2
  1813. , exon2.feature_id as exon2_feature_id
  1814. , exon2.uniquename as exon2_uniquename
  1815. , exon1_loc.fmin /* = exon2_loc.fmin */
  1816. , exon1_loc.fmax /* = exon2_loc.fmax */
  1817. FROM feature gene
  1818. JOIN cvterm gene_type ON gene.type_id = gene_type.cvterm_id
  1819. JOIN cv gene_type_cv USING (cv_id)
  1820. JOIN feature_relationship gene_transcript1 ON gene.feature_id = gene_transcript1.object_id
  1821. JOIN feature transcript1 ON gene_transcript1.subject_id = transcript1.feature_id
  1822. JOIN cvterm transcript1_type ON transcript1.type_id = transcript1_type.cvterm_id
  1823. JOIN cv transcript1_type_cv ON transcript1_type.cv_id = transcript1_type_cv.cv_id
  1824. JOIN feature_relationship transcript1_exon1 ON transcript1_exon1.object_id = transcript1.feature_id
  1825. JOIN feature exon1 ON transcript1_exon1.subject_id = exon1.feature_id
  1826. JOIN cvterm exon1_type ON exon1.type_id = exon1_type.cvterm_id
  1827. JOIN cv exon1_type_cv ON exon1_type.cv_id = exon1_type_cv.cv_id
  1828. JOIN featureloc exon1_loc ON exon1_loc.feature_id = exon1.feature_id
  1829. JOIN feature_relationship gene_transcript2 ON gene.feature_id = gene_transcript2.object_id
  1830. JOIN feature transcript2 ON gene_transcript2.subject_id = transcript2.feature_id
  1831. JOIN cvterm transcript2_type ON transcript2.type_id = transcript2_type.cvterm_id
  1832. JOIN cv transcript2_type_cv ON transcript2_type.cv_id = transcript2_type_cv.cv_id
  1833. JOIN feature_relationship transcript2_exon2 ON transcript2_exon2.object_id = transcript2.feature_id
  1834. JOIN feature exon2 ON transcript2_exon2.subject_id = exon2.feature_id
  1835. JOIN cvterm exon2_type ON exon2.type_id = exon2_type.cvterm_id
  1836. JOIN cv exon2_type_cv ON exon2_type.cv_id = exon2_type_cv.cv_id
  1837. JOIN featureloc exon2_loc ON exon2_loc.feature_id = exon2.feature_id
  1838. WHERE gene_type_cv.name = ''sequence''
  1839. AND gene_type.name = ''gene''
  1840. AND transcript1_type_cv.name = ''sequence''
  1841. AND transcript1_type.name = ''mRNA''
  1842. AND transcript2_type_cv.name = ''sequence''
  1843. AND transcript2_type.name = ''mRNA''
  1844. AND exon1_type_cv.name = ''sequence''
  1845. AND exon1_type.name = ''exon''
  1846. AND exon2_type_cv.name = ''sequence''
  1847. AND exon2_type.name = ''exon''
  1848. AND exon1.feature_id < exon2.feature_id
  1849. AND exon1_loc.rank = 0
  1850. AND exon2_loc.rank = 0
  1851. AND exon1_loc.fmin = exon2_loc.fmin
  1852. AND exon1_loc.fmax = exon2_loc.fmax
  1853. ;
  1854. /* Choose one of the shared exons to be the canonical representative.
  1855. We pick the one with the smallest feature_id.
  1856. */
  1857. CREATE temporary TABLE canonical_exon_representatives AS
  1858. SELECT gene_feature_id, min(exon1_feature_id) AS canonical_feature_id, fmin
  1859. FROM shared_exons
  1860. GROUP BY gene_feature_id,fmin
  1861. ;
  1862. CREATE temporary TABLE exon_replacements AS
  1863. SELECT DISTINCT shared_exons.exon2_feature_id AS actual_feature_id
  1864. , canonical_exon_representatives.canonical_feature_id
  1865. , canonical_exon_representatives.fmin
  1866. FROM shared_exons
  1867. JOIN canonical_exon_representatives USING (gene_feature_id)
  1868. WHERE shared_exons.exon2_feature_id <> canonical_exon_representatives.canonical_feature_id
  1869. AND shared_exons.fmin = canonical_exon_representatives.fmin
  1870. ;
  1871. UPDATE feature_relationship
  1872. SET subject_id = (
  1873. SELECT canonical_feature_id
  1874. FROM exon_replacements
  1875. WHERE feature_relationship.subject_id = exon_replacements.actual_feature_id)
  1876. WHERE subject_id IN (
  1877. SELECT actual_feature_id FROM exon_replacements
  1878. );
  1879. UPDATE feature_relationship
  1880. SET object_id = (
  1881. SELECT canonical_feature_id
  1882. FROM exon_replacements
  1883. WHERE feature_relationship.subject_id = exon_replacements.actual_feature_id)
  1884. WHERE object_id IN (
  1885. SELECT actual_feature_id FROM exon_replacements
  1886. );
  1887. UPDATE feature
  1888. SET is_obsolete = true
  1889. WHERE feature_id IN (
  1890. SELECT actual_feature_id FROM exon_replacements
  1891. );
  1892. END;
  1893. ' LANGUAGE 'plpgsql';
  1894. --This is a function to seek out exons of transcripts and orders them,
  1895. --using feature_relationship.rank, in "transcript order" numbering
  1896. --from 0, taking strand into account. It will not touch transcripts that
  1897. --already have their exons ordered (in case they have a non-obvious
  1898. --ordering due to trans splicing). It takes as an argument the
  1899. --feature.type_id of the parent transcript type (typically, mRNA, although
  1900. --non coding transcript types should work too).
  1901. CREATE OR REPLACE FUNCTION order_exons (integer) RETURNS void AS '
  1902. DECLARE
  1903. parent_type ALIAS FOR $1;
  1904. exon_id int;
  1905. part_of int;
  1906. exon_type int;
  1907. strand int;
  1908. arow RECORD;
  1909. order_by varchar;
  1910. rowcount int;
  1911. exon_count int;
  1912. ordered_exons int;
  1913. transcript_id int;
  1914. transcript_row feature%ROWTYPE;
  1915. BEGIN
  1916. SELECT INTO part_of cvterm_id FROM cvterm WHERE name=''part_of''
  1917. AND cv_id IN (SELECT cv_id FROM cv WHERE name=''relationship'');
  1918. --SELECT INTO exon_type cvterm_id FROM cvterm WHERE name=''exon''
  1919. -- AND cv_id IN (SELECT cv_id FROM cv WHERE name=''sequence'');
  1920. --RAISE NOTICE ''part_of %, exon %'',part_of,exon_type;
  1921. FOR transcript_row IN
  1922. SELECT * FROM feature WHERE type_id = parent_type
  1923. LOOP
  1924. transcript_id = transcript_row.feature_id;
  1925. SELECT INTO rowcount count(*) FROM feature_relationship
  1926. WHERE object_id = transcript_id
  1927. AND rank = 0;
  1928. --Dont modify this transcript if there are already numbered exons or
  1929. --if there is only one exon
  1930. IF rowcount = 1 THEN
  1931. --RAISE NOTICE ''skipping transcript %, row count %'',transcript_id,rowcount;
  1932. CONTINUE;
  1933. END IF;
  1934. --need to reverse the order if the strand is negative
  1935. SELECT INTO strand strand FROM featureloc WHERE feature_id=transcript_id;
  1936. IF strand > 0 THEN
  1937. order_by = ''fl.fmin'';
  1938. ELSE
  1939. order_by = ''fl.fmax desc'';
  1940. END IF;
  1941. exon_count = 0;
  1942. FOR arow IN EXECUTE
  1943. ''SELECT fr.*, fl.fmin, fl.fmax
  1944. FROM feature_relationship fr, featureloc fl
  1945. WHERE fr.object_id = ''||transcript_id||''
  1946. AND fr.subject_id = fl.feature_id
  1947. AND fr.type_id = ''||part_of||''
  1948. ORDER BY ''||order_by
  1949. LOOP
  1950. --number the exons for a given transcript
  1951. UPDATE feature_relationship
  1952. SET rank = exon_count
  1953. WHERE feature_relationship_id = arow.feature_relationship_id;
  1954. exon_count = exon_count + 1;
  1955. END LOOP;
  1956. END LOOP;
  1957. END;
  1958. ' LANGUAGE 'plpgsql';
  1959. -- down the graph: eg from chromosome to contig
  1960. CREATE OR REPLACE FUNCTION project_point_up(int,int,int,int)
  1961. RETURNS int AS
  1962. 'SELECT
  1963. CASE WHEN $4<0
  1964. THEN $3-$1 -- rev strand
  1965. ELSE $1-$2 -- fwd strand
  1966. END AS p'
  1967. LANGUAGE 'sql';
  1968. -- down the graph: eg from contig to chromosome
  1969. CREATE OR REPLACE FUNCTION project_point_down(int,int,int,int)
  1970. RETURNS int AS
  1971. 'SELECT
  1972. CASE WHEN $4<0
  1973. THEN $3-$1
  1974. ELSE $1+$2
  1975. END AS p'
  1976. LANGUAGE 'sql';
  1977. CREATE OR REPLACE FUNCTION project_featureloc_up(int,int)
  1978. RETURNS featureloc AS
  1979. '
  1980. DECLARE
  1981. in_featureloc_id alias for $1;
  1982. up_srcfeature_id alias for $2;
  1983. in_featureloc featureloc%ROWTYPE;
  1984. up_featureloc featureloc%ROWTYPE;
  1985. nu_featureloc featureloc%ROWTYPE;
  1986. nu_fmin INT;
  1987. nu_fmax INT;
  1988. nu_strand INT;
  1989. BEGIN
  1990. SELECT INTO in_featureloc
  1991. featureloc.*
  1992. FROM featureloc
  1993. WHERE featureloc_id = in_featureloc_id;
  1994. SELECT INTO up_featureloc
  1995. up_fl.*
  1996. FROM featureloc AS in_fl
  1997. INNER JOIN featureloc AS up_fl
  1998. ON (in_fl.srcfeature_id = up_fl.feature_id)
  1999. WHERE
  2000. in_fl.featureloc_id = in_featureloc_id AND
  2001. up_fl.srcfeature_id = up_srcfeature_id;
  2002. IF up_featureloc.strand IS NULL
  2003. THEN RETURN NULL;
  2004. END IF;
  2005. IF up_featureloc.strand < 0
  2006. THEN
  2007. nu_fmin = project_point_up(in_featureloc.fmax,
  2008. up_featureloc.fmin,up_featureloc.fmax,-1);
  2009. nu_fmax = project_point_up(in_featureloc.fmin,
  2010. up_featureloc.fmin,up_featureloc.fmax,-1);
  2011. nu_strand = -in_featureloc.strand;
  2012. ELSE
  2013. nu_fmin = project_point_up(in_featureloc.fmin,
  2014. up_featureloc.fmin,up_featureloc.fmax,1);
  2015. nu_fmax = project_point_up(in_featureloc.fmax,
  2016. up_featureloc.fmin,up_featureloc.fmax,1);
  2017. nu_strand = in_featureloc.strand;
  2018. END IF;
  2019. in_featureloc.fmin = nu_fmin;
  2020. in_featureloc.fmax = nu_fmax;
  2021. in_featureloc.strand = nu_strand;
  2022. in_featureloc.srcfeature_id = up_featureloc.srcfeature_id;
  2023. RETURN in_featureloc;
  2024. END
  2025. '
  2026. LANGUAGE 'plpgsql';
  2027. CREATE OR REPLACE FUNCTION project_point_g2t(int,int,int)
  2028. RETURNS INT AS '
  2029. DECLARE
  2030. in_p alias for $1;
  2031. srcf_id alias for $2;
  2032. t_id alias for $3;
  2033. e_floc featureloc%ROWTYPE;
  2034. out_p INT;
  2035. exon_cvterm_id INT;
  2036. BEGIN
  2037. SELECT INTO exon_cvterm_id get_feature_type_id(''exon'');
  2038. SELECT INTO out_p
  2039. CASE
  2040. WHEN strand<0 THEN fmax-p
  2041. ELSE p-fmin
  2042. END AS p
  2043. FROM featureloc
  2044. INNER JOIN feature USING (feature_id)
  2045. INNER JOIN feature_relationship ON (feature.feature_id=subject_id)
  2046. WHERE
  2047. object_id = t_id AND
  2048. feature.type_id = exon_cvterm_id AND
  2049. featureloc.srcfeature_id = srcf_id AND
  2050. in_p >= fmin AND
  2051. in_p <= fmax;
  2052. RETURN in_featureloc;
  2053. END
  2054. '
  2055. LANGUAGE 'plpgsql';
  2056. CREATE OR REPLACE FUNCTION get_cv_id_for_feature() RETURNS INT
  2057. AS 'SELECT cv_id FROM cv WHERE name=''sequence''' LANGUAGE 'sql';
  2058. CREATE OR REPLACE FUNCTION get_cv_id_for_featureprop() RETURNS INT
  2059. AS 'SELECT cv_id FROM cv WHERE name=''feature_property''' LANGUAGE 'sql';
  2060. CREATE OR REPLACE FUNCTION get_cv_id_for_feature_relationsgip() RETURNS INT
  2061. AS 'SELECT cv_id FROM cv WHERE name=''relationship''' LANGUAGE 'sql';
  2062. CREATE OR REPLACE FUNCTION get_feature_type_id(VARCHAR) RETURNS INT
  2063. AS '
  2064. SELECT cvterm_id
  2065. FROM cv INNER JOIN cvterm USING (cv_id)
  2066. WHERE cvterm.name=$1 AND cv.name=''sequence''
  2067. ' LANGUAGE 'sql';
  2068. CREATE OR REPLACE FUNCTION get_featureprop_type_id(VARCHAR) RETURNS INT
  2069. AS '
  2070. SELECT cvterm_id
  2071. FROM cv INNER JOIN cvterm USING (cv_id)
  2072. WHERE cvterm.name=$1 AND cv.name=''feature_property''
  2073. ' LANGUAGE 'sql';
  2074. CREATE OR REPLACE FUNCTION get_feature_relationship_type_id(VARCHAR) RETURNS INT
  2075. AS '
  2076. SELECT cvterm_id
  2077. FROM cv INNER JOIN cvterm USING (cv_id)
  2078. WHERE cvterm.name=$1 AND cv.name=''relationship''
  2079. ' LANGUAGE 'sql';
  2080. -- depends on sequence-cv-helper
  2081. CREATE OR REPLACE FUNCTION get_feature_id(VARCHAR,VARCHAR,VARCHAR) RETURNS INT
  2082. AS '
  2083. SELECT feature_id
  2084. FROM feature
  2085. WHERE uniquename=$1
  2086. AND type_id=get_feature_type_id($2)
  2087. AND organism_id=get_organism_id($3)
  2088. ' LANGUAGE 'sql';
  2089. --This is an automatically generated file; do not edit it as changes will not
  2090. --be saved. Instead, modify bin/create-so-bridge.pl, which creates this file.
  2091. CREATE SCHEMA so;
  2092. SET search_path=so,public,pg_catalog;
  2093. --- ************************************************
  2094. --- *** relation: region ***
  2095. --- *** relation type: VIEW ***
  2096. --- *** ***
  2097. --- *** A sequence_feature with an extent greate ***
  2098. --- *** r than zero. A nucleotide region is comp ***
  2099. --- *** osed of bases and a polypeptide region i ***
  2100. --- *** s composed of amino acids. ***
  2101. --- ************************************************
  2102. ---
  2103. CREATE VIEW region AS
  2104. SELECT
  2105. feature_id AS region_id,
  2106. feature.*
  2107. FROM
  2108. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2109. 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';
  2110. --- ************************************************
  2111. --- *** relation: sequence_secondary_structure ***
  2112. --- *** relation type: VIEW ***
  2113. --- *** ***
  2114. --- *** A folded sequence. ***
  2115. --- ************************************************
  2116. ---
  2117. CREATE VIEW sequence_secondary_structure AS
  2118. SELECT
  2119. feature_id AS sequence_secondary_structure_id,
  2120. feature.*
  2121. FROM
  2122. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2123. 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';
  2124. --- ************************************************
  2125. --- *** relation: g_quartet ***
  2126. --- *** relation type: VIEW ***
  2127. --- *** ***
  2128. --- *** G-quartets are unusual nucleic acid stru ***
  2129. --- *** ctures consisting of a planar arrangemen ***
  2130. --- *** t where each guanine is hydrogen bonded ***
  2131. --- *** by hoogsteen pairing to another guanine ***
  2132. --- *** in the quartet. ***
  2133. --- ************************************************
  2134. ---
  2135. CREATE VIEW g_quartet AS
  2136. SELECT
  2137. feature_id AS g_quartet_id,
  2138. feature.*
  2139. FROM
  2140. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2141. WHERE cvterm.name = 'G_quartet';
  2142. --- ************************************************
  2143. --- *** relation: interior_coding_exon ***
  2144. --- *** relation type: VIEW ***
  2145. --- *** ***
  2146. --- ************************************************
  2147. ---
  2148. CREATE VIEW interior_coding_exon AS
  2149. SELECT
  2150. feature_id AS interior_coding_exon_id,
  2151. feature.*
  2152. FROM
  2153. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2154. WHERE cvterm.name = 'interior_coding_exon';
  2155. --- ************************************************
  2156. --- *** relation: satellite_dna ***
  2157. --- *** relation type: VIEW ***
  2158. --- *** ***
  2159. --- *** The many tandem repeats (identical or re ***
  2160. --- *** lated) of a short basic repeating unit; ***
  2161. --- *** many have a base composition or other pr ***
  2162. --- *** operty different from the genome average ***
  2163. --- *** that allows them to be separated from t ***
  2164. --- *** he bulk (main band) genomic DNA. ***
  2165. --- ************************************************
  2166. ---
  2167. CREATE VIEW satellite_dna AS
  2168. SELECT
  2169. feature_id AS satellite_dna_id,
  2170. feature.*
  2171. FROM
  2172. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2173. 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';
  2174. --- ************************************************
  2175. --- *** relation: pcr_product ***
  2176. --- *** relation type: VIEW ***
  2177. --- *** ***
  2178. --- *** A region amplified by a PCR reaction. ***
  2179. --- ************************************************
  2180. ---
  2181. CREATE VIEW pcr_product AS
  2182. SELECT
  2183. feature_id AS pcr_product_id,
  2184. feature.*
  2185. FROM
  2186. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2187. WHERE cvterm.name = 'RAPD' OR cvterm.name = 'PCR_product';
  2188. --- ************************************************
  2189. --- *** relation: read_pair ***
  2190. --- *** relation type: VIEW ***
  2191. --- *** ***
  2192. --- *** One of a pair of sequencing reads in whi ***
  2193. --- *** ch the two members of the pair are relat ***
  2194. --- *** ed by originating at either end of a clo ***
  2195. --- *** ne insert. ***
  2196. --- ************************************************
  2197. ---
  2198. CREATE VIEW read_pair AS
  2199. SELECT
  2200. feature_id AS read_pair_id,
  2201. feature.*
  2202. FROM
  2203. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2204. WHERE cvterm.name = 'read_pair';
  2205. --- ************************************************
  2206. --- *** relation: protein_coding ***
  2207. --- *** relation type: VIEW ***
  2208. --- *** ***
  2209. --- ************************************************
  2210. ---
  2211. CREATE VIEW protein_coding AS
  2212. SELECT
  2213. feature_id AS protein_coding_id,
  2214. feature.*
  2215. FROM
  2216. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2217. WHERE cvterm.name = 'intein_containing' OR cvterm.name = 'protein_coding';
  2218. --- ************************************************
  2219. --- *** relation: non_protein_coding ***
  2220. --- *** relation type: VIEW ***
  2221. --- *** ***
  2222. --- ************************************************
  2223. ---
  2224. CREATE VIEW non_protein_coding AS
  2225. SELECT
  2226. feature_id AS non_protein_coding_id,
  2227. feature.*
  2228. FROM
  2229. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2230. 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';
  2231. --- ************************************************
  2232. --- *** relation: scrna_primary_transcript ***
  2233. --- *** relation type: VIEW ***
  2234. --- *** ***
  2235. --- *** The primary transcript of any one of sev ***
  2236. --- *** eral small cytoplasmic RNA molecules pre ***
  2237. --- *** sent in the cytoplasm and sometimes nucl ***
  2238. --- *** eus of a eukaryote. ***
  2239. --- ************************************************
  2240. ---
  2241. CREATE VIEW scrna_primary_transcript AS
  2242. SELECT
  2243. feature_id AS scrna_primary_transcript_id,
  2244. feature.*
  2245. FROM
  2246. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2247. WHERE cvterm.name = 'scRNA_primary_transcript';
  2248. --- ************************************************
  2249. --- *** relation: scrna ***
  2250. --- *** relation type: VIEW ***
  2251. --- *** ***
  2252. --- *** A small non coding RNA sequence, present ***
  2253. --- *** in the cytoplasm. ***
  2254. --- ************************************************
  2255. ---
  2256. CREATE VIEW scrna AS
  2257. SELECT
  2258. feature_id AS scrna_id,
  2259. feature.*
  2260. FROM
  2261. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2262. WHERE cvterm.name = 'scRNA';
  2263. --- ************************************************
  2264. --- *** relation: inr_motif ***
  2265. --- *** relation type: VIEW ***
  2266. --- *** ***
  2267. --- *** A sequence element characteristic of som ***
  2268. --- *** e RNA polymerase II promoters required f ***
  2269. --- *** or the correct positioning of the polyme ***
  2270. --- *** rase for the start of transcription. Ove ***
  2271. --- *** rlaps the TSS. The mammalian consensus s ***
  2272. --- *** equence is YYAN(T|A)YY; the Drosophila c ***
  2273. --- *** onsensus sequence is TCA(G|T)t(T|C). In ***
  2274. --- *** each the A is at position +1 with respec ***
  2275. --- *** t to the TSS. Functionally similar to th ***
  2276. --- *** e TATA box element. ***
  2277. --- ************************************************
  2278. ---
  2279. CREATE VIEW inr_motif AS
  2280. SELECT
  2281. feature_id AS inr_motif_id,
  2282. feature.*
  2283. FROM
  2284. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2285. WHERE cvterm.name = 'INR_motif';
  2286. --- ************************************************
  2287. --- *** relation: dpe_motif ***
  2288. --- *** relation type: VIEW ***
  2289. --- *** ***
  2290. --- *** A sequence element characteristic of som ***
  2291. --- *** e RNA polymerase II promoters; Positione ***
  2292. --- *** d from +28 to +32 with respect to the TS ***
  2293. --- *** S (+1). Experimental results suggest tha ***
  2294. --- *** t the DPE acts in conjunction with the I ***
  2295. --- *** NR_motif to provide a binding site for T ***
  2296. --- *** FIID in the absence of a TATA box to med ***
  2297. --- *** iate transcription of TATA-less promoter ***
  2298. --- *** s. Consensus sequence (A|G)G(A|T)(C|T)(G ***
  2299. --- *** |A|C). ***
  2300. --- ************************************************
  2301. ---
  2302. CREATE VIEW dpe_motif AS
  2303. SELECT
  2304. feature_id AS dpe_motif_id,
  2305. feature.*
  2306. FROM
  2307. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2308. WHERE cvterm.name = 'DPE_motif';
  2309. --- ************************************************
  2310. --- *** relation: breu_motif ***
  2311. --- *** relation type: VIEW ***
  2312. --- *** ***
  2313. --- *** A sequence element characteristic of som ***
  2314. --- *** e RNA polymerase II promoters, located i ***
  2315. --- *** mmediately upstream of some TATA box ele ***
  2316. --- *** ments at -37 to -32 with respect to the ***
  2317. --- *** TSS (+1). Consensus sequence is (G|C)(G| ***
  2318. --- *** C)(G|A)CGCC. Binds TFIIB. ***
  2319. --- ************************************************
  2320. ---
  2321. CREATE VIEW breu_motif AS
  2322. SELECT
  2323. feature_id AS breu_motif_id,
  2324. feature.*
  2325. FROM
  2326. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2327. WHERE cvterm.name = 'BREu_motif';
  2328. --- ************************************************
  2329. --- *** relation: pse_motif ***
  2330. --- *** relation type: VIEW ***
  2331. --- *** ***
  2332. --- *** A sequence element characteristic of the ***
  2333. --- *** promoters of snRNA genes transcribed by ***
  2334. --- *** RNA polymerase II or by RNA polymerase ***
  2335. --- *** III. Located between -45 and -60 relativ ***
  2336. --- *** e to the TSS. The human PSE_motif consen ***
  2337. --- *** sus sequence is TCACCNTNA(C|G)TNAAAAG(T| ***
  2338. --- *** G). ***
  2339. --- ************************************************
  2340. ---
  2341. CREATE VIEW pse_motif AS
  2342. SELECT
  2343. feature_id AS pse_motif_id,
  2344. feature.*
  2345. FROM
  2346. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2347. WHERE cvterm.name = 'PSE_motif';
  2348. --- ************************************************
  2349. --- *** relation: linkage_group ***
  2350. --- *** relation type: VIEW ***
  2351. --- *** ***
  2352. --- *** A group of loci that can be grouped in a ***
  2353. --- *** linear order representing the different ***
  2354. --- *** degrees of linkage among the genes conc ***
  2355. --- *** erned. ***
  2356. --- ************************************************
  2357. ---
  2358. CREATE VIEW linkage_group AS
  2359. SELECT
  2360. feature_id AS linkage_group_id,
  2361. feature.*
  2362. FROM
  2363. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2364. WHERE cvterm.name = 'linkage_group';
  2365. --- ************************************************
  2366. --- *** relation: rna_internal_loop ***
  2367. --- *** relation type: VIEW ***
  2368. --- *** ***
  2369. --- *** A region of double stranded RNA where th ***
  2370. --- *** e bases do not conform to WC base pairin ***
  2371. --- *** g. The loop is closed on both sides by c ***
  2372. --- *** anonical base pairing. If the interrupti ***
  2373. --- *** on to base pairing occurs on one strand ***
  2374. --- *** only, it is known as a bulge. ***
  2375. --- ************************************************
  2376. ---
  2377. CREATE VIEW rna_internal_loop AS
  2378. SELECT
  2379. feature_id AS rna_internal_loop_id,
  2380. feature.*
  2381. FROM
  2382. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2383. 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';
  2384. --- ************************************************
  2385. --- *** relation: asymmetric_rna_internal_loop ***
  2386. --- *** relation type: VIEW ***
  2387. --- *** ***
  2388. --- *** An internal RNA loop where one of the st ***
  2389. --- *** rands includes more bases than the corre ***
  2390. --- *** sponding region on the other strand. ***
  2391. --- ************************************************
  2392. ---
  2393. CREATE VIEW asymmetric_rna_internal_loop AS
  2394. SELECT
  2395. feature_id AS asymmetric_rna_internal_loop_id,
  2396. feature.*
  2397. FROM
  2398. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2399. WHERE cvterm.name = 'K_turn_RNA_motif' OR cvterm.name = 'sarcin_like_RNA_motif' OR cvterm.name = 'asymmetric_RNA_internal_loop';
  2400. --- ************************************************
  2401. --- *** relation: a_minor_rna_motif ***
  2402. --- *** relation type: VIEW ***
  2403. --- *** ***
  2404. --- *** A region forming a motif, composed of ad ***
  2405. --- *** enines, where the minor groove edges are ***
  2406. --- *** inserted into the minor groove of anoth ***
  2407. --- *** er helix. ***
  2408. --- ************************************************
  2409. ---
  2410. CREATE VIEW a_minor_rna_motif AS
  2411. SELECT
  2412. feature_id AS a_minor_rna_motif_id,
  2413. feature.*
  2414. FROM
  2415. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2416. WHERE cvterm.name = 'A_minor_RNA_motif';
  2417. --- ************************************************
  2418. --- *** relation: k_turn_rna_motif ***
  2419. --- *** relation type: VIEW ***
  2420. --- *** ***
  2421. --- *** The kink turn (K-turn) is an RNA structu ***
  2422. --- *** ral motif that creates a sharp (~120 deg ***
  2423. --- *** ree) bend between two continuous helices ***
  2424. --- *** . ***
  2425. --- ************************************************
  2426. ---
  2427. CREATE VIEW k_turn_rna_motif AS
  2428. SELECT
  2429. feature_id AS k_turn_rna_motif_id,
  2430. feature.*
  2431. FROM
  2432. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2433. WHERE cvterm.name = 'K_turn_RNA_motif';
  2434. --- ************************************************
  2435. --- *** relation: sarcin_like_rna_motif ***
  2436. --- *** relation type: VIEW ***
  2437. --- *** ***
  2438. --- *** A loop in ribosomal RNA containing the s ***
  2439. --- *** ites of attack for ricin and sarcin. ***
  2440. --- ************************************************
  2441. ---
  2442. CREATE VIEW sarcin_like_rna_motif AS
  2443. SELECT
  2444. feature_id AS sarcin_like_rna_motif_id,
  2445. feature.*
  2446. FROM
  2447. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2448. WHERE cvterm.name = 'sarcin_like_RNA_motif';
  2449. --- ************************************************
  2450. --- *** relation: symmetric_rna_internal_loop ***
  2451. --- *** relation type: VIEW ***
  2452. --- *** ***
  2453. --- *** An internal RNA loop where the extent of ***
  2454. --- *** the loop on both stands is the same siz ***
  2455. --- *** e. ***
  2456. --- ************************************************
  2457. ---
  2458. CREATE VIEW symmetric_rna_internal_loop AS
  2459. SELECT
  2460. feature_id AS symmetric_rna_internal_loop_id,
  2461. feature.*
  2462. FROM
  2463. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2464. WHERE cvterm.name = 'symmetric_RNA_internal_loop';
  2465. --- ************************************************
  2466. --- *** relation: rna_junction_loop ***
  2467. --- *** relation type: VIEW ***
  2468. --- *** ***
  2469. --- ************************************************
  2470. ---
  2471. CREATE VIEW rna_junction_loop AS
  2472. SELECT
  2473. feature_id AS rna_junction_loop_id,
  2474. feature.*
  2475. FROM
  2476. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2477. WHERE cvterm.name = 'RNA_hook_turn' OR cvterm.name = 'RNA_junction_loop';
  2478. --- ************************************************
  2479. --- *** relation: rna_hook_turn ***
  2480. --- *** relation type: VIEW ***
  2481. --- *** ***
  2482. --- ************************************************
  2483. ---
  2484. CREATE VIEW rna_hook_turn AS
  2485. SELECT
  2486. feature_id AS rna_hook_turn_id,
  2487. feature.*
  2488. FROM
  2489. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2490. WHERE cvterm.name = 'RNA_hook_turn';
  2491. --- ************************************************
  2492. --- *** relation: base_pair ***
  2493. --- *** relation type: VIEW ***
  2494. --- *** ***
  2495. --- ************************************************
  2496. ---
  2497. CREATE VIEW base_pair AS
  2498. SELECT
  2499. feature_id AS base_pair_id,
  2500. feature.*
  2501. FROM
  2502. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2503. 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';
  2504. --- ************************************************
  2505. --- *** relation: wc_base_pair ***
  2506. --- *** relation type: VIEW ***
  2507. --- *** ***
  2508. --- *** The canonical base pair, where two bases ***
  2509. --- *** interact via WC edges, with glycosidic ***
  2510. --- *** bonds oriented cis relative to the axis ***
  2511. --- *** of orientation. ***
  2512. --- ************************************************
  2513. ---
  2514. CREATE VIEW wc_base_pair AS
  2515. SELECT
  2516. feature_id AS wc_base_pair_id,
  2517. feature.*
  2518. FROM
  2519. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2520. WHERE cvterm.name = 'WC_base_pair';
  2521. --- ************************************************
  2522. --- *** relation: sugar_edge_base_pair ***
  2523. --- *** relation type: VIEW ***
  2524. --- *** ***
  2525. --- *** A type of non-canonical base-pairing. ***
  2526. --- ************************************************
  2527. ---
  2528. CREATE VIEW sugar_edge_base_pair AS
  2529. SELECT
  2530. feature_id AS sugar_edge_base_pair_id,
  2531. feature.*
  2532. FROM
  2533. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2534. WHERE cvterm.name = 'sugar_edge_base_pair';
  2535. --- ************************************************
  2536. --- *** relation: aptamer ***
  2537. --- *** relation type: VIEW ***
  2538. --- *** ***
  2539. --- *** DNA or RNA molecules that have been sele ***
  2540. --- *** cted from random pools based on their ab ***
  2541. --- *** ility to bind other molecules. ***
  2542. --- ************************************************
  2543. ---
  2544. CREATE VIEW aptamer AS
  2545. SELECT
  2546. feature_id AS aptamer_id,
  2547. feature.*
  2548. FROM
  2549. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2550. WHERE cvterm.name = 'DNA_aptamer' OR cvterm.name = 'RNA_aptamer' OR cvterm.name = 'aptamer';
  2551. --- ************************************************
  2552. --- *** relation: dna_aptamer ***
  2553. --- *** relation type: VIEW ***
  2554. --- *** ***
  2555. --- *** DNA molecules that have been selected fr ***
  2556. --- *** om random pools based on their ability t ***
  2557. --- *** o bind other molecules. ***
  2558. --- ************************************************
  2559. ---
  2560. CREATE VIEW dna_aptamer AS
  2561. SELECT
  2562. feature_id AS dna_aptamer_id,
  2563. feature.*
  2564. FROM
  2565. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2566. WHERE cvterm.name = 'DNA_aptamer';
  2567. --- ************************************************
  2568. --- *** relation: rna_aptamer ***
  2569. --- *** relation type: VIEW ***
  2570. --- *** ***
  2571. --- *** RNA molecules that have been selected fr ***
  2572. --- *** om random pools based on their ability t ***
  2573. --- *** o bind other molecules. ***
  2574. --- ************************************************
  2575. ---
  2576. CREATE VIEW rna_aptamer AS
  2577. SELECT
  2578. feature_id AS rna_aptamer_id,
  2579. feature.*
  2580. FROM
  2581. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2582. WHERE cvterm.name = 'RNA_aptamer';
  2583. --- ************************************************
  2584. --- *** relation: morpholino_oligo ***
  2585. --- *** relation type: VIEW ***
  2586. --- *** ***
  2587. --- *** Morpholino oligos are synthesized from f ***
  2588. --- *** our different Morpholino subunits, each ***
  2589. --- *** of which contains one of the four geneti ***
  2590. --- *** c bases (A, C, G, T) linked to a 6-membe ***
  2591. --- *** red morpholine ring. Eighteen to 25 subu ***
  2592. --- *** nits of these four subunit types are joi ***
  2593. --- *** ned in a specific order by non-ionic pho ***
  2594. --- *** sphorodiamidate intersubunit linkages to ***
  2595. --- *** give a Morpholino. ***
  2596. --- ************************************************
  2597. ---
  2598. CREATE VIEW morpholino_oligo AS
  2599. SELECT
  2600. feature_id AS morpholino_oligo_id,
  2601. feature.*
  2602. FROM
  2603. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2604. WHERE cvterm.name = 'morpholino_oligo';
  2605. --- ************************************************
  2606. --- *** relation: riboswitch ***
  2607. --- *** relation type: VIEW ***
  2608. --- *** ***
  2609. --- *** A riboswitch is a part of an mRNA that c ***
  2610. --- *** an act as a direct sensor of small molec ***
  2611. --- *** ules to control their own expression. A ***
  2612. --- *** riboswitch is a cis element in the 5' en ***
  2613. --- *** d of an mRNA, that acts as a direct sens ***
  2614. --- *** or of metabolites. ***
  2615. --- ************************************************
  2616. ---
  2617. CREATE VIEW riboswitch AS
  2618. SELECT
  2619. feature_id AS riboswitch_id,
  2620. feature.*
  2621. FROM
  2622. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2623. WHERE cvterm.name = 'riboswitch';
  2624. --- ************************************************
  2625. --- *** relation: matrix_attachment_site ***
  2626. --- *** relation type: VIEW ***
  2627. --- *** ***
  2628. --- *** A DNA region that is required for the bi ***
  2629. --- *** nding of chromatin to the nuclear matrix ***
  2630. --- *** . ***
  2631. --- ************************************************
  2632. ---
  2633. CREATE VIEW matrix_attachment_site AS
  2634. SELECT
  2635. feature_id AS matrix_attachment_site_id,
  2636. feature.*
  2637. FROM
  2638. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2639. WHERE cvterm.name = 'matrix_attachment_site';
  2640. --- ************************************************
  2641. --- *** relation: locus_control_region ***
  2642. --- *** relation type: VIEW ***
  2643. --- *** ***
  2644. --- *** A DNA region that includes DNAse hyperse ***
  2645. --- *** nsitive sites located 5' to a gene that ***
  2646. --- *** confers the high-level, position-indepen ***
  2647. --- *** dent, and copy number-dependent expressi ***
  2648. --- *** on to that gene. ***
  2649. --- ************************************************
  2650. ---
  2651. CREATE VIEW locus_control_region AS
  2652. SELECT
  2653. feature_id AS locus_control_region_id,
  2654. feature.*
  2655. FROM
  2656. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2657. WHERE cvterm.name = 'locus_control_region';
  2658. --- ************************************************
  2659. --- *** relation: match_part ***
  2660. --- *** relation type: VIEW ***
  2661. --- *** ***
  2662. --- *** A part of a match, for example an hsp fr ***
  2663. --- *** om blast is a match_part. ***
  2664. --- ************************************************
  2665. ---
  2666. CREATE VIEW match_part AS
  2667. SELECT
  2668. feature_id AS match_part_id,
  2669. feature.*
  2670. FROM
  2671. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2672. WHERE cvterm.name = 'match_part';
  2673. --- ************************************************
  2674. --- *** relation: genomic_clone ***
  2675. --- *** relation type: VIEW ***
  2676. --- *** ***
  2677. --- *** A clone of a DNA region of a genome. ***
  2678. --- ************************************************
  2679. ---
  2680. CREATE VIEW genomic_clone AS
  2681. SELECT
  2682. feature_id AS genomic_clone_id,
  2683. feature.*
  2684. FROM
  2685. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2686. WHERE cvterm.name = 'genomic_clone';
  2687. --- ************************************************
  2688. --- *** relation: processed_pseudogene ***
  2689. --- *** relation type: VIEW ***
  2690. --- *** ***
  2691. --- *** A pseudogene where by an mRNA was retrot ***
  2692. --- *** ransposed. The mRNA sequence is transcri ***
  2693. --- *** bed back into the genome, lacking intron ***
  2694. --- *** s and promoters, but often including a p ***
  2695. --- *** olyA tail. ***
  2696. --- ************************************************
  2697. ---
  2698. CREATE VIEW processed_pseudogene AS
  2699. SELECT
  2700. feature_id AS processed_pseudogene_id,
  2701. feature.*
  2702. FROM
  2703. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2704. WHERE cvterm.name = 'processed_pseudogene';
  2705. --- ************************************************
  2706. --- *** relation: pseudogene_by_unequal_crossing_over ***
  2707. --- *** relation type: VIEW ***
  2708. --- *** ***
  2709. --- *** A pseudogene caused by unequal crossing ***
  2710. --- *** over at recombination. ***
  2711. --- ************************************************
  2712. ---
  2713. CREATE VIEW pseudogene_by_unequal_crossing_over AS
  2714. SELECT
  2715. feature_id AS pseudogene_by_unequal_crossing_over_id,
  2716. feature.*
  2717. FROM
  2718. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2719. WHERE cvterm.name = 'pseudogene_by_unequal_crossing_over';
  2720. --- ************************************************
  2721. --- *** relation: probe ***
  2722. --- *** relation type: VIEW ***
  2723. --- *** ***
  2724. --- *** A DNA sequence used experimentally to de ***
  2725. --- *** tect the presence or absence of a comple ***
  2726. --- *** mentary nucleic acid. ***
  2727. --- ************************************************
  2728. ---
  2729. CREATE VIEW probe AS
  2730. SELECT
  2731. feature_id AS probe_id,
  2732. feature.*
  2733. FROM
  2734. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2735. WHERE cvterm.name = 'microarray_oligo' OR cvterm.name = 'probe';
  2736. --- ************************************************
  2737. --- *** relation: aneuploid ***
  2738. --- *** relation type: VIEW ***
  2739. --- *** ***
  2740. --- *** A kind of chromosome variation where the ***
  2741. --- *** chromosome complement is not an exact m ***
  2742. --- *** ultiple of the haploid number. ***
  2743. --- ************************************************
  2744. ---
  2745. CREATE VIEW aneuploid AS
  2746. SELECT
  2747. feature_id AS aneuploid_id,
  2748. feature.*
  2749. FROM
  2750. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2751. WHERE cvterm.name = 'hyperploid' OR cvterm.name = 'hypoploid' OR cvterm.name = 'aneuploid';
  2752. --- ************************************************
  2753. --- *** relation: hyperploid ***
  2754. --- *** relation type: VIEW ***
  2755. --- *** ***
  2756. --- *** A kind of chromosome variation where the ***
  2757. --- *** chromosome complement is not an exact m ***
  2758. --- *** ultiple of the haploid number as extra c ***
  2759. --- *** hromosomes are present. ***
  2760. --- ************************************************
  2761. ---
  2762. CREATE VIEW hyperploid AS
  2763. SELECT
  2764. feature_id AS hyperploid_id,
  2765. feature.*
  2766. FROM
  2767. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2768. WHERE cvterm.name = 'hyperploid';
  2769. --- ************************************************
  2770. --- *** relation: hypoploid ***
  2771. --- *** relation type: VIEW ***
  2772. --- *** ***
  2773. --- *** A kind of chromosome variation where the ***
  2774. --- *** chromosome complement is not an exact m ***
  2775. --- *** ultiple of the haploid number as some ch ***
  2776. --- *** romosomes are missing. ***
  2777. --- ************************************************
  2778. ---
  2779. CREATE VIEW hypoploid AS
  2780. SELECT
  2781. feature_id AS hypoploid_id,
  2782. feature.*
  2783. FROM
  2784. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2785. WHERE cvterm.name = 'hypoploid';
  2786. --- ************************************************
  2787. --- *** relation: operator ***
  2788. --- *** relation type: VIEW ***
  2789. --- *** ***
  2790. --- *** A regulatory element of an operon to whi ***
  2791. --- *** ch activators or repressors bind thereby ***
  2792. --- *** effecting translation of genes in that ***
  2793. --- *** operon. ***
  2794. --- ************************************************
  2795. ---
  2796. CREATE VIEW operator AS
  2797. SELECT
  2798. feature_id AS operator_id,
  2799. feature.*
  2800. FROM
  2801. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2802. WHERE cvterm.name = 'operator';
  2803. --- ************************************************
  2804. --- *** relation: nuclease_binding_site ***
  2805. --- *** relation type: VIEW ***
  2806. --- *** ***
  2807. --- *** A binding site that, of a nucleotide mol ***
  2808. --- *** ecule, that interacts selectively and no ***
  2809. --- *** n-covalently with polypeptide residues o ***
  2810. --- *** f a nuclease. ***
  2811. --- ************************************************
  2812. ---
  2813. CREATE VIEW nuclease_binding_site AS
  2814. SELECT
  2815. feature_id AS nuclease_binding_site_id,
  2816. feature.*
  2817. FROM
  2818. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2819. 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';
  2820. --- ************************************************
  2821. --- *** relation: compound_chromosome_arm ***
  2822. --- *** relation type: VIEW ***
  2823. --- *** ***
  2824. --- ************************************************
  2825. ---
  2826. CREATE VIEW compound_chromosome_arm AS
  2827. SELECT
  2828. feature_id AS compound_chromosome_arm_id,
  2829. feature.*
  2830. FROM
  2831. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2832. WHERE cvterm.name = 'compound_chromosome_arm';
  2833. --- ************************************************
  2834. --- *** relation: restriction_enzyme_binding_site ***
  2835. --- *** relation type: VIEW ***
  2836. --- *** ***
  2837. --- *** A binding site that, in the nucleotide m ***
  2838. --- *** olecule, interacts selectively and non-c ***
  2839. --- *** ovalently with polypeptide residues of a ***
  2840. --- *** restriction enzyme. ***
  2841. --- ************************************************
  2842. ---
  2843. CREATE VIEW restriction_enzyme_binding_site AS
  2844. SELECT
  2845. feature_id AS restriction_enzyme_binding_site_id,
  2846. feature.*
  2847. FROM
  2848. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2849. WHERE cvterm.name = 'restriction_enzyme_binding_site';
  2850. --- ************************************************
  2851. --- *** relation: d_intrachr_transposition ***
  2852. --- *** relation type: VIEW ***
  2853. --- *** ***
  2854. --- *** An intrachromosomal transposition whereb ***
  2855. --- *** y a translocation in which one of the fo ***
  2856. --- *** ur broken ends loses a segment before re ***
  2857. --- *** -joining. ***
  2858. --- ************************************************
  2859. ---
  2860. CREATE VIEW d_intrachr_transposition AS
  2861. SELECT
  2862. feature_id AS d_intrachr_transposition_id,
  2863. feature.*
  2864. FROM
  2865. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2866. WHERE cvterm.name = 'deficient_intrachromosomal_transposition';
  2867. --- ************************************************
  2868. --- *** relation: d_interchr_transposition ***
  2869. --- *** relation type: VIEW ***
  2870. --- *** ***
  2871. --- *** An interchromosomal transposition whereb ***
  2872. --- *** y a translocation in which one of the fo ***
  2873. --- *** ur broken ends loses a segment before re ***
  2874. --- *** -joining. ***
  2875. --- ************************************************
  2876. ---
  2877. CREATE VIEW d_interchr_transposition AS
  2878. SELECT
  2879. feature_id AS d_interchr_transposition_id,
  2880. feature.*
  2881. FROM
  2882. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2883. WHERE cvterm.name = 'deficient_interchromosomal_transposition';
  2884. --- ************************************************
  2885. --- *** relation: free_chromosome_arm ***
  2886. --- *** relation type: VIEW ***
  2887. --- *** ***
  2888. --- *** A chromosome structure variation whereby ***
  2889. --- *** an arm exists as an individual chromoso ***
  2890. --- *** me element. ***
  2891. --- ************************************************
  2892. ---
  2893. CREATE VIEW free_chromosome_arm AS
  2894. SELECT
  2895. feature_id AS free_chromosome_arm_id,
  2896. feature.*
  2897. FROM
  2898. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2899. WHERE cvterm.name = 'free_chromosome_arm';
  2900. --- ************************************************
  2901. --- *** relation: gene_to_gene_feature ***
  2902. --- *** relation type: VIEW ***
  2903. --- *** ***
  2904. --- ************************************************
  2905. ---
  2906. CREATE VIEW gene_to_gene_feature AS
  2907. SELECT
  2908. feature_id AS gene_to_gene_feature_id,
  2909. feature.*
  2910. FROM
  2911. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2912. 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';
  2913. --- ************************************************
  2914. --- *** relation: overlapping ***
  2915. --- *** relation type: VIEW ***
  2916. --- *** ***
  2917. --- *** An attribute describing a gene that has ***
  2918. --- *** a sequence that overlaps the sequence of ***
  2919. --- *** another gene. ***
  2920. --- ************************************************
  2921. ---
  2922. CREATE VIEW overlapping AS
  2923. SELECT
  2924. feature_id AS overlapping_id,
  2925. feature.*
  2926. FROM
  2927. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2928. 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';
  2929. --- ************************************************
  2930. --- *** relation: inside_intron ***
  2931. --- *** relation type: VIEW ***
  2932. --- *** ***
  2933. --- *** An attribute to describe a gene when it ***
  2934. --- *** is located within the intron of another ***
  2935. --- *** gene. ***
  2936. --- ************************************************
  2937. ---
  2938. CREATE VIEW inside_intron AS
  2939. SELECT
  2940. feature_id AS inside_intron_id,
  2941. feature.*
  2942. FROM
  2943. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2944. WHERE cvterm.name = 'inside_intron_antiparallel' OR cvterm.name = 'inside_intron_parallel' OR cvterm.name = 'inside_intron';
  2945. --- ************************************************
  2946. --- *** relation: inside_intron_antiparallel ***
  2947. --- *** relation type: VIEW ***
  2948. --- *** ***
  2949. --- *** An attribute to describe a gene when it ***
  2950. --- *** is located within the intron of another ***
  2951. --- *** gene and on the opposite strand. ***
  2952. --- ************************************************
  2953. ---
  2954. CREATE VIEW inside_intron_antiparallel AS
  2955. SELECT
  2956. feature_id AS inside_intron_antiparallel_id,
  2957. feature.*
  2958. FROM
  2959. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2960. WHERE cvterm.name = 'inside_intron_antiparallel';
  2961. --- ************************************************
  2962. --- *** relation: inside_intron_parallel ***
  2963. --- *** relation type: VIEW ***
  2964. --- *** ***
  2965. --- *** An attribute to describe a gene when it ***
  2966. --- *** is located within the intron of another ***
  2967. --- *** gene and on the same strand. ***
  2968. --- ************************************************
  2969. ---
  2970. CREATE VIEW inside_intron_parallel AS
  2971. SELECT
  2972. feature_id AS inside_intron_parallel_id,
  2973. feature.*
  2974. FROM
  2975. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2976. WHERE cvterm.name = 'inside_intron_parallel';
  2977. --- ************************************************
  2978. --- *** relation: five_prime_three_prime_overlap ***
  2979. --- *** relation type: VIEW ***
  2980. --- *** ***
  2981. --- *** An attribute to describe a gene when the ***
  2982. --- *** five prime region overlaps with another ***
  2983. --- *** gene's 3' region. ***
  2984. --- ************************************************
  2985. ---
  2986. CREATE VIEW five_prime_three_prime_overlap AS
  2987. SELECT
  2988. feature_id AS five_prime_three_prime_overlap_id,
  2989. feature.*
  2990. FROM
  2991. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2992. WHERE cvterm.name = 'five_prime_three_prime_overlap';
  2993. --- ************************************************
  2994. --- *** relation: five_prime_five_prime_overlap ***
  2995. --- *** relation type: VIEW ***
  2996. --- *** ***
  2997. --- *** An attribute to describe a gene when the ***
  2998. --- *** five prime region overlaps with another ***
  2999. --- *** gene's five prime region. ***
  3000. --- ************************************************
  3001. ---
  3002. CREATE VIEW five_prime_five_prime_overlap AS
  3003. SELECT
  3004. feature_id AS five_prime_five_prime_overlap_id,
  3005. feature.*
  3006. FROM
  3007. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3008. WHERE cvterm.name = 'five_prime_five_prime_overlap';
  3009. --- ************************************************
  3010. --- *** relation: three_prime_three_prime_overlap ***
  3011. --- *** relation type: VIEW ***
  3012. --- *** ***
  3013. --- *** An attribute to describe a gene when the ***
  3014. --- *** 3' region overlaps with another gene's ***
  3015. --- *** 3' region. ***
  3016. --- ************************************************
  3017. ---
  3018. CREATE VIEW three_prime_three_prime_overlap AS
  3019. SELECT
  3020. feature_id AS three_prime_three_prime_overlap_id,
  3021. feature.*
  3022. FROM
  3023. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3024. WHERE cvterm.name = 'three_prime_three_prime_overlap';
  3025. --- ************************************************
  3026. --- *** relation: three_prime_five_prime_overlap ***
  3027. --- *** relation type: VIEW ***
  3028. --- *** ***
  3029. --- *** An attribute to describe a gene when the ***
  3030. --- *** 3' region overlaps with another gene's ***
  3031. --- *** 5' region. ***
  3032. --- ************************************************
  3033. ---
  3034. CREATE VIEW three_prime_five_prime_overlap AS
  3035. SELECT
  3036. feature_id AS three_prime_five_prime_overlap_id,
  3037. feature.*
  3038. FROM
  3039. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3040. WHERE cvterm.name = 'three_prime_five_prime_overlap';
  3041. --- ************************************************
  3042. --- *** relation: antisense ***
  3043. --- *** relation type: VIEW ***
  3044. --- *** ***
  3045. --- *** A region sequence that is complementary ***
  3046. --- *** to a sequence of messenger RNA. ***
  3047. --- ************************************************
  3048. ---
  3049. CREATE VIEW antisense AS
  3050. SELECT
  3051. feature_id AS antisense_id,
  3052. feature.*
  3053. FROM
  3054. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3055. WHERE cvterm.name = 'antisense';
  3056. --- ************************************************
  3057. --- *** relation: polycistronic_transcript ***
  3058. --- *** relation type: VIEW ***
  3059. --- *** ***
  3060. --- *** A transcript that is polycistronic. ***
  3061. --- ************************************************
  3062. ---
  3063. CREATE VIEW polycistronic_transcript AS
  3064. SELECT
  3065. feature_id AS polycistronic_transcript_id,
  3066. feature.*
  3067. FROM
  3068. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3069. 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';
  3070. --- ************************************************
  3071. --- *** relation: dicistronic_transcript ***
  3072. --- *** relation type: VIEW ***
  3073. --- *** ***
  3074. --- *** A transcript that is dicistronic. ***
  3075. --- ************************************************
  3076. ---
  3077. CREATE VIEW dicistronic_transcript AS
  3078. SELECT
  3079. feature_id AS dicistronic_transcript_id,
  3080. feature.*
  3081. FROM
  3082. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3083. WHERE cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'dicistronic_transcript';
  3084. --- ************************************************
  3085. --- *** relation: operon_member ***
  3086. --- *** relation type: VIEW ***
  3087. --- *** ***
  3088. --- ************************************************
  3089. ---
  3090. CREATE VIEW operon_member AS
  3091. SELECT
  3092. feature_id AS operon_member_id,
  3093. feature.*
  3094. FROM
  3095. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3096. WHERE cvterm.name = 'operon_member';
  3097. --- ************************************************
  3098. --- *** relation: gene_array_member ***
  3099. --- *** relation type: VIEW ***
  3100. --- *** ***
  3101. --- ************************************************
  3102. ---
  3103. CREATE VIEW gene_array_member AS
  3104. SELECT
  3105. feature_id AS gene_array_member_id,
  3106. feature.*
  3107. FROM
  3108. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3109. 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';
  3110. --- ************************************************
  3111. --- *** relation: macronuclear_sequence ***
  3112. --- *** relation type: VIEW ***
  3113. --- *** ***
  3114. --- ************************************************
  3115. ---
  3116. CREATE VIEW macronuclear_sequence AS
  3117. SELECT
  3118. feature_id AS macronuclear_sequence_id,
  3119. feature.*
  3120. FROM
  3121. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3122. WHERE cvterm.name = 'macronuclear_sequence';
  3123. --- ************************************************
  3124. --- *** relation: micronuclear_sequence ***
  3125. --- *** relation type: VIEW ***
  3126. --- *** ***
  3127. --- ************************************************
  3128. ---
  3129. CREATE VIEW micronuclear_sequence AS
  3130. SELECT
  3131. feature_id AS micronuclear_sequence_id,
  3132. feature.*
  3133. FROM
  3134. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3135. WHERE cvterm.name = 'micronuclear_sequence';
  3136. --- ************************************************
  3137. --- *** relation: nuclear_gene ***
  3138. --- *** relation type: VIEW ***
  3139. --- *** ***
  3140. --- *** A gene from nuclear sequence. ***
  3141. --- ************************************************
  3142. ---
  3143. CREATE VIEW nuclear_gene AS
  3144. SELECT
  3145. feature_id AS nuclear_gene_id,
  3146. feature.*
  3147. FROM
  3148. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3149. WHERE cvterm.name = 'nuclear_gene';
  3150. --- ************************************************
  3151. --- *** relation: mt_gene ***
  3152. --- *** relation type: VIEW ***
  3153. --- *** ***
  3154. --- *** A gene located in mitochondrial sequence ***
  3155. --- *** . ***
  3156. --- ************************************************
  3157. ---
  3158. CREATE VIEW mt_gene AS
  3159. SELECT
  3160. feature_id AS mt_gene_id,
  3161. feature.*
  3162. FROM
  3163. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3164. WHERE cvterm.name = 'kinetoplast_gene' OR cvterm.name = 'maxicircle_gene' OR cvterm.name = 'minicircle_gene' OR cvterm.name = 'cryptogene' OR cvterm.name = 'mt_gene';
  3165. --- ************************************************
  3166. --- *** relation: kinetoplast_gene ***
  3167. --- *** relation type: VIEW ***
  3168. --- *** ***
  3169. --- *** A gene located in kinetoplast sequence. ***
  3170. --- ************************************************
  3171. ---
  3172. CREATE VIEW kinetoplast_gene AS
  3173. SELECT
  3174. feature_id AS kinetoplast_gene_id,
  3175. feature.*
  3176. FROM
  3177. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3178. WHERE cvterm.name = 'maxicircle_gene' OR cvterm.name = 'minicircle_gene' OR cvterm.name = 'cryptogene' OR cvterm.name = 'kinetoplast_gene';
  3179. --- ************************************************
  3180. --- *** relation: plastid_gene ***
  3181. --- *** relation type: VIEW ***
  3182. --- *** ***
  3183. --- *** A gene from plastid sequence. ***
  3184. --- ************************************************
  3185. ---
  3186. CREATE VIEW plastid_gene AS
  3187. SELECT
  3188. feature_id AS plastid_gene_id,
  3189. feature.*
  3190. FROM
  3191. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3192. 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';
  3193. --- ************************************************
  3194. --- *** relation: apicoplast_gene ***
  3195. --- *** relation type: VIEW ***
  3196. --- *** ***
  3197. --- *** A gene from apicoplast sequence. ***
  3198. --- ************************************************
  3199. ---
  3200. CREATE VIEW apicoplast_gene AS
  3201. SELECT
  3202. feature_id AS apicoplast_gene_id,
  3203. feature.*
  3204. FROM
  3205. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3206. WHERE cvterm.name = 'apicoplast_gene';
  3207. --- ************************************************
  3208. --- *** relation: ct_gene ***
  3209. --- *** relation type: VIEW ***
  3210. --- *** ***
  3211. --- *** A gene from chloroplast sequence. ***
  3212. --- ************************************************
  3213. ---
  3214. CREATE VIEW ct_gene AS
  3215. SELECT
  3216. feature_id AS ct_gene_id,
  3217. feature.*
  3218. FROM
  3219. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3220. WHERE cvterm.name = 'ct_gene';
  3221. --- ************************************************
  3222. --- *** relation: chromoplast_gene ***
  3223. --- *** relation type: VIEW ***
  3224. --- *** ***
  3225. --- *** A gene from chromoplast_sequence. ***
  3226. --- ************************************************
  3227. ---
  3228. CREATE VIEW chromoplast_gene AS
  3229. SELECT
  3230. feature_id AS chromoplast_gene_id,
  3231. feature.*
  3232. FROM
  3233. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3234. WHERE cvterm.name = 'chromoplast_gene';
  3235. --- ************************************************
  3236. --- *** relation: cyanelle_gene ***
  3237. --- *** relation type: VIEW ***
  3238. --- *** ***
  3239. --- *** A gene from cyanelle sequence. ***
  3240. --- ************************************************
  3241. ---
  3242. CREATE VIEW cyanelle_gene AS
  3243. SELECT
  3244. feature_id AS cyanelle_gene_id,
  3245. feature.*
  3246. FROM
  3247. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3248. WHERE cvterm.name = 'cyanelle_gene';
  3249. --- ************************************************
  3250. --- *** relation: leucoplast_gene ***
  3251. --- *** relation type: VIEW ***
  3252. --- *** ***
  3253. --- *** A plastid gene from leucoplast sequence. ***
  3254. --- ************************************************
  3255. ---
  3256. CREATE VIEW leucoplast_gene AS
  3257. SELECT
  3258. feature_id AS leucoplast_gene_id,
  3259. feature.*
  3260. FROM
  3261. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3262. WHERE cvterm.name = 'leucoplast_gene';
  3263. --- ************************************************
  3264. --- *** relation: proplastid_gene ***
  3265. --- *** relation type: VIEW ***
  3266. --- *** ***
  3267. --- *** A gene from proplastid sequence. ***
  3268. --- ************************************************
  3269. ---
  3270. CREATE VIEW proplastid_gene AS
  3271. SELECT
  3272. feature_id AS proplastid_gene_id,
  3273. feature.*
  3274. FROM
  3275. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3276. WHERE cvterm.name = 'proplastid_gene';
  3277. --- ************************************************
  3278. --- *** relation: nucleomorph_gene ***
  3279. --- *** relation type: VIEW ***
  3280. --- *** ***
  3281. --- *** A gene from nucleomorph sequence. ***
  3282. --- ************************************************
  3283. ---
  3284. CREATE VIEW nucleomorph_gene AS
  3285. SELECT
  3286. feature_id AS nucleomorph_gene_id,
  3287. feature.*
  3288. FROM
  3289. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3290. WHERE cvterm.name = 'nucleomorph_gene';
  3291. --- ************************************************
  3292. --- *** relation: plasmid_gene ***
  3293. --- *** relation type: VIEW ***
  3294. --- *** ***
  3295. --- *** A gene from plasmid sequence. ***
  3296. --- ************************************************
  3297. ---
  3298. CREATE VIEW plasmid_gene AS
  3299. SELECT
  3300. feature_id AS plasmid_gene_id,
  3301. feature.*
  3302. FROM
  3303. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3304. WHERE cvterm.name = 'plasmid_gene';
  3305. --- ************************************************
  3306. --- *** relation: proviral_gene ***
  3307. --- *** relation type: VIEW ***
  3308. --- *** ***
  3309. --- *** A gene from proviral sequence. ***
  3310. --- ************************************************
  3311. ---
  3312. CREATE VIEW proviral_gene AS
  3313. SELECT
  3314. feature_id AS proviral_gene_id,
  3315. feature.*
  3316. FROM
  3317. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3318. WHERE cvterm.name = 'endogenous_retroviral_gene' OR cvterm.name = 'proviral_gene';
  3319. --- ************************************************
  3320. --- *** relation: endogenous_retroviral_gene ***
  3321. --- *** relation type: VIEW ***
  3322. --- *** ***
  3323. --- *** A proviral gene with origin endogenous r ***
  3324. --- *** etrovirus. ***
  3325. --- ************************************************
  3326. ---
  3327. CREATE VIEW endogenous_retroviral_gene AS
  3328. SELECT
  3329. feature_id AS endogenous_retroviral_gene_id,
  3330. feature.*
  3331. FROM
  3332. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3333. WHERE cvterm.name = 'endogenous_retroviral_gene';
  3334. --- ************************************************
  3335. --- *** relation: transposable_element ***
  3336. --- *** relation type: VIEW ***
  3337. --- *** ***
  3338. --- *** A transposon or insertion sequence. An e ***
  3339. --- *** lement that can insert in a variety of D ***
  3340. --- *** NA sequences. ***
  3341. --- ************************************************
  3342. ---
  3343. CREATE VIEW transposable_element AS
  3344. SELECT
  3345. feature_id AS transposable_element_id,
  3346. feature.*
  3347. FROM
  3348. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3349. 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';
  3350. --- ************************************************
  3351. --- *** relation: expressed_sequence_match ***
  3352. --- *** relation type: VIEW ***
  3353. --- *** ***
  3354. --- *** A match to an EST or cDNA sequence. ***
  3355. --- ************************************************
  3356. ---
  3357. CREATE VIEW expressed_sequence_match AS
  3358. SELECT
  3359. feature_id AS expressed_sequence_match_id,
  3360. feature.*
  3361. FROM
  3362. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3363. 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';
  3364. --- ************************************************
  3365. --- *** relation: clone_insert_end ***
  3366. --- *** relation type: VIEW ***
  3367. --- *** ***
  3368. --- *** The end of the clone insert. ***
  3369. --- ************************************************
  3370. ---
  3371. CREATE VIEW clone_insert_end AS
  3372. SELECT
  3373. feature_id AS clone_insert_end_id,
  3374. feature.*
  3375. FROM
  3376. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3377. WHERE cvterm.name = 'clone_insert_end';
  3378. --- ************************************************
  3379. --- *** relation: polypeptide ***
  3380. --- *** relation type: VIEW ***
  3381. --- *** ***
  3382. --- *** A sequence of amino acids linked by pept ***
  3383. --- *** ide bonds which may lack appreciable ter ***
  3384. --- *** tiary structure and may not be liable to ***
  3385. --- *** irreversible denaturation. ***
  3386. --- ************************************************
  3387. ---
  3388. CREATE VIEW polypeptide AS
  3389. SELECT
  3390. feature_id AS polypeptide_id,
  3391. feature.*
  3392. FROM
  3393. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3394. WHERE cvterm.name = 'polypeptide';
  3395. --- ************************************************
  3396. --- *** relation: chromosome_arm ***
  3397. --- *** relation type: VIEW ***
  3398. --- *** ***
  3399. --- *** A region of the chromosome between the c ***
  3400. --- *** entromere and the telomere. Human chromo ***
  3401. --- *** somes have two arms, the p arm (short) a ***
  3402. --- *** nd the q arm (long) which are separated ***
  3403. --- *** from each other by the centromere. ***
  3404. --- ************************************************
  3405. ---
  3406. CREATE VIEW chromosome_arm AS
  3407. SELECT
  3408. feature_id AS chromosome_arm_id,
  3409. feature.*
  3410. FROM
  3411. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3412. WHERE cvterm.name = 'chromosome_arm';
  3413. --- ************************************************
  3414. --- *** relation: sequencing_primer ***
  3415. --- *** relation type: VIEW ***
  3416. --- *** ***
  3417. --- ************************************************
  3418. ---
  3419. CREATE VIEW sequencing_primer AS
  3420. SELECT
  3421. feature_id AS sequencing_primer_id,
  3422. feature.*
  3423. FROM
  3424. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3425. WHERE cvterm.name = 'sequencing_primer';
  3426. --- ************************************************
  3427. --- *** relation: mrna_with_frameshift ***
  3428. --- *** relation type: VIEW ***
  3429. --- *** ***
  3430. --- *** An mRNA with a frameshift. ***
  3431. --- ************************************************
  3432. ---
  3433. CREATE VIEW mrna_with_frameshift AS
  3434. SELECT
  3435. feature_id AS mrna_with_frameshift_id,
  3436. feature.*
  3437. FROM
  3438. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3439. 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';
  3440. --- ************************************************
  3441. --- *** relation: sequence_feature ***
  3442. --- *** relation type: VIEW ***
  3443. --- *** ***
  3444. --- *** An extent of biological sequence. ***
  3445. --- ************************************************
  3446. ---
  3447. CREATE VIEW sequence_feature AS
  3448. SELECT
  3449. feature_id AS sequence_feature_id,
  3450. feature.*
  3451. FROM
  3452. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3453. 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';
  3454. --- ************************************************
  3455. --- *** relation: transposable_element_gene ***
  3456. --- *** relation type: VIEW ***
  3457. --- *** ***
  3458. --- *** A gene encoded within a transposable ele ***
  3459. --- *** ment. For example gag, int, env and pol ***
  3460. --- *** are the transposable element genes of th ***
  3461. --- *** e TY element in yeast. ***
  3462. --- ************************************************
  3463. ---
  3464. CREATE VIEW transposable_element_gene AS
  3465. SELECT
  3466. feature_id AS transposable_element_gene_id,
  3467. feature.*
  3468. FROM
  3469. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3470. WHERE cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'transposable_element_gene';
  3471. --- ************************************************
  3472. --- *** relation: primer ***
  3473. --- *** relation type: VIEW ***
  3474. --- *** ***
  3475. --- *** An oligo to which new deoxyribonucleotid ***
  3476. --- *** es can be added by DNA polymerase. ***
  3477. --- ************************************************
  3478. ---
  3479. CREATE VIEW primer AS
  3480. SELECT
  3481. feature_id AS primer_id,
  3482. feature.*
  3483. FROM
  3484. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3485. 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';
  3486. --- ************************************************
  3487. --- *** relation: proviral_region ***
  3488. --- *** relation type: VIEW ***
  3489. --- *** ***
  3490. --- *** A viral sequence which has integrated in ***
  3491. --- *** to a host genome. ***
  3492. --- ************************************************
  3493. ---
  3494. CREATE VIEW proviral_region AS
  3495. SELECT
  3496. feature_id AS proviral_region_id,
  3497. feature.*
  3498. FROM
  3499. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3500. WHERE cvterm.name = 'prophage' OR cvterm.name = 'proviral_region';
  3501. --- ************************************************
  3502. --- *** relation: methylated_c ***
  3503. --- *** relation type: VIEW ***
  3504. --- *** ***
  3505. --- *** A methylated deoxy-cytosine. ***
  3506. --- ************************************************
  3507. ---
  3508. CREATE VIEW methylated_c AS
  3509. SELECT
  3510. feature_id AS methylated_c_id,
  3511. feature.*
  3512. FROM
  3513. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3514. WHERE cvterm.name = 'methylated_C';
  3515. --- ************************************************
  3516. --- *** relation: edited ***
  3517. --- *** relation type: VIEW ***
  3518. --- *** ***
  3519. --- *** An attribute describing a sequence that ***
  3520. --- *** is modified by editing. ***
  3521. --- ************************************************
  3522. ---
  3523. CREATE VIEW edited AS
  3524. SELECT
  3525. feature_id AS edited_id,
  3526. feature.*
  3527. FROM
  3528. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3529. WHERE cvterm.name = 'edited';
  3530. --- ************************************************
  3531. --- *** relation: transcript_with_translational_frameshift ***
  3532. --- *** relation type: VIEW ***
  3533. --- *** ***
  3534. --- *** A transcript with a translational frames ***
  3535. --- *** hift. ***
  3536. --- ************************************************
  3537. ---
  3538. CREATE VIEW transcript_with_translational_frameshift AS
  3539. SELECT
  3540. feature_id AS transcript_with_translational_frameshift_id,
  3541. feature.*
  3542. FROM
  3543. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3544. WHERE cvterm.name = 'transcript_with_translational_frameshift';
  3545. --- ************************************************
  3546. --- *** relation: regulated ***
  3547. --- *** relation type: VIEW ***
  3548. --- *** ***
  3549. --- *** An attribute to describe a sequence that ***
  3550. --- *** is regulated. ***
  3551. --- ************************************************
  3552. ---
  3553. CREATE VIEW regulated AS
  3554. SELECT
  3555. feature_id AS regulated_id,
  3556. feature.*
  3557. FROM
  3558. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3559. 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';
  3560. --- ************************************************
  3561. --- *** relation: protein_coding_primary_transcript ***
  3562. --- *** relation type: VIEW ***
  3563. --- *** ***
  3564. --- *** A primary transcript that, at least in p ***
  3565. --- *** art, encodes one or more proteins. ***
  3566. --- ************************************************
  3567. ---
  3568. CREATE VIEW protein_coding_primary_transcript AS
  3569. SELECT
  3570. feature_id AS protein_coding_primary_transcript_id,
  3571. feature.*
  3572. FROM
  3573. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3574. WHERE cvterm.name = 'pre_edited_mRNA' OR cvterm.name = 'protein_coding_primary_transcript';
  3575. --- ************************************************
  3576. --- *** relation: forward_primer ***
  3577. --- *** relation type: VIEW ***
  3578. --- *** ***
  3579. --- *** A single stranded oligo used for polymer ***
  3580. --- *** ase chain reaction. ***
  3581. --- ************************************************
  3582. ---
  3583. CREATE VIEW forward_primer AS
  3584. SELECT
  3585. feature_id AS forward_primer_id,
  3586. feature.*
  3587. FROM
  3588. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3589. WHERE cvterm.name = 'forward_primer';
  3590. --- ************************************************
  3591. --- *** relation: rna_sequence_secondary_structure ***
  3592. --- *** relation type: VIEW ***
  3593. --- *** ***
  3594. --- *** A folded RNA sequence. ***
  3595. --- ************************************************
  3596. ---
  3597. CREATE VIEW rna_sequence_secondary_structure AS
  3598. SELECT
  3599. feature_id AS rna_sequence_secondary_structure_id,
  3600. feature.*
  3601. FROM
  3602. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3603. WHERE cvterm.name = 'stem_loop' OR cvterm.name = 'tetraloop' OR cvterm.name = 'RNA_sequence_secondary_structure';
  3604. --- ************************************************
  3605. --- *** relation: transcriptionally_regulated ***
  3606. --- *** relation type: VIEW ***
  3607. --- *** ***
  3608. --- *** An attribute describing a gene that is r ***
  3609. --- *** egulated at transcription. ***
  3610. --- ************************************************
  3611. ---
  3612. CREATE VIEW transcriptionally_regulated AS
  3613. SELECT
  3614. feature_id AS transcriptionally_regulated_id,
  3615. feature.*
  3616. FROM
  3617. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3618. 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';
  3619. --- ************************************************
  3620. --- *** relation: transcriptionally_constitutive ***
  3621. --- *** relation type: VIEW ***
  3622. --- *** ***
  3623. --- *** Expressed in relatively constant amounts ***
  3624. --- *** without regard to cellular environmenta ***
  3625. --- *** l conditions such as the concentration o ***
  3626. --- *** f a particular substrate. ***
  3627. --- ************************************************
  3628. ---
  3629. CREATE VIEW transcriptionally_constitutive AS
  3630. SELECT
  3631. feature_id AS transcriptionally_constitutive_id,
  3632. feature.*
  3633. FROM
  3634. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3635. WHERE cvterm.name = 'transcriptionally_constitutive';
  3636. --- ************************************************
  3637. --- *** relation: transcriptionally_induced ***
  3638. --- *** relation type: VIEW ***
  3639. --- *** ***
  3640. --- *** An inducer molecule is required for tran ***
  3641. --- *** scription to occur. ***
  3642. --- ************************************************
  3643. ---
  3644. CREATE VIEW transcriptionally_induced AS
  3645. SELECT
  3646. feature_id AS transcriptionally_induced_id,
  3647. feature.*
  3648. FROM
  3649. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3650. WHERE cvterm.name = 'positively_autoregulated' OR cvterm.name = 'transcriptionally_induced';
  3651. --- ************************************************
  3652. --- *** relation: transcriptionally_repressed ***
  3653. --- *** relation type: VIEW ***
  3654. --- *** ***
  3655. --- *** A repressor molecule is required for tra ***
  3656. --- *** nscription to stop. ***
  3657. --- ************************************************
  3658. ---
  3659. CREATE VIEW transcriptionally_repressed AS
  3660. SELECT
  3661. feature_id AS transcriptionally_repressed_id,
  3662. feature.*
  3663. FROM
  3664. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3665. 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';
  3666. --- ************************************************
  3667. --- *** relation: silenced_gene ***
  3668. --- *** relation type: VIEW ***
  3669. --- *** ***
  3670. --- *** A gene that is silenced. ***
  3671. --- ************************************************
  3672. ---
  3673. CREATE VIEW silenced_gene AS
  3674. SELECT
  3675. feature_id AS silenced_gene_id,
  3676. feature.*
  3677. FROM
  3678. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3679. 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';
  3680. --- ************************************************
  3681. --- *** relation: gene_silenced_by_dna_modification ***
  3682. --- *** relation type: VIEW ***
  3683. --- *** ***
  3684. --- *** A gene that is silenced by DNA modificat ***
  3685. --- *** ion. ***
  3686. --- ************************************************
  3687. ---
  3688. CREATE VIEW gene_silenced_by_dna_modification AS
  3689. SELECT
  3690. feature_id AS gene_silenced_by_dna_modification_id,
  3691. feature.*
  3692. FROM
  3693. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3694. WHERE cvterm.name = 'gene_silenced_by_DNA_methylation' OR cvterm.name = 'gene_silenced_by_DNA_modification';
  3695. --- ************************************************
  3696. --- *** relation: gene_silenced_by_dna_methylation ***
  3697. --- *** relation type: VIEW ***
  3698. --- *** ***
  3699. --- *** A gene that is silenced by DNA methylati ***
  3700. --- *** on. ***
  3701. --- ************************************************
  3702. ---
  3703. CREATE VIEW gene_silenced_by_dna_methylation AS
  3704. SELECT
  3705. feature_id AS gene_silenced_by_dna_methylation_id,
  3706. feature.*
  3707. FROM
  3708. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3709. WHERE cvterm.name = 'gene_silenced_by_DNA_methylation';
  3710. --- ************************************************
  3711. --- *** relation: post_translationally_regulated ***
  3712. --- *** relation type: VIEW ***
  3713. --- *** ***
  3714. --- *** An attribute describing a gene that is r ***
  3715. --- *** egulated after it has been translated. ***
  3716. --- ************************************************
  3717. ---
  3718. CREATE VIEW post_translationally_regulated AS
  3719. SELECT
  3720. feature_id AS post_translationally_regulated_id,
  3721. feature.*
  3722. FROM
  3723. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3724. WHERE cvterm.name = 'post_translationally_regulated_by_protein_stability' OR cvterm.name = 'post_translationally_regulated_by_protein_modification' OR cvterm.name = 'post_translationally_regulated';
  3725. --- ************************************************
  3726. --- *** relation: translationally_regulated ***
  3727. --- *** relation type: VIEW ***
  3728. --- *** ***
  3729. --- *** An attribute describing a gene that is r ***
  3730. --- *** egulated as it is translated. ***
  3731. --- ************************************************
  3732. ---
  3733. CREATE VIEW translationally_regulated AS
  3734. SELECT
  3735. feature_id AS translationally_regulated_id,
  3736. feature.*
  3737. FROM
  3738. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3739. WHERE cvterm.name = 'translationally_regulated';
  3740. --- ************************************************
  3741. --- *** relation: reverse_primer ***
  3742. --- *** relation type: VIEW ***
  3743. --- *** ***
  3744. --- *** A single stranded oligo used for polymer ***
  3745. --- *** ase chain reaction. ***
  3746. --- ************************************************
  3747. ---
  3748. CREATE VIEW reverse_primer AS
  3749. SELECT
  3750. feature_id AS reverse_primer_id,
  3751. feature.*
  3752. FROM
  3753. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3754. WHERE cvterm.name = 'reverse_primer';
  3755. --- ************************************************
  3756. --- *** relation: epigenetically_modified ***
  3757. --- *** relation type: VIEW ***
  3758. --- *** ***
  3759. --- *** This attribute describes a gene where he ***
  3760. --- *** ritable changes other than those in the ***
  3761. --- *** DNA sequence occur. These changes includ ***
  3762. --- *** e: modification to the DNA (such as DNA ***
  3763. --- *** methylation, the covalent modification o ***
  3764. --- *** f cytosine), and post-translational modi ***
  3765. --- *** fication of histones. ***
  3766. --- ************************************************
  3767. ---
  3768. CREATE VIEW epigenetically_modified AS
  3769. SELECT
  3770. feature_id AS epigenetically_modified_id,
  3771. feature.*
  3772. FROM
  3773. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3774. 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';
  3775. --- ************************************************
  3776. --- *** relation: imprinted ***
  3777. --- *** relation type: VIEW ***
  3778. --- *** ***
  3779. --- *** Imprinted genes are epigenetically modif ***
  3780. --- *** ied genes that are expressed monoallelic ***
  3781. --- *** ally according to their parent of origin ***
  3782. --- *** . ***
  3783. --- ************************************************
  3784. ---
  3785. CREATE VIEW imprinted AS
  3786. SELECT
  3787. feature_id AS imprinted_id,
  3788. feature.*
  3789. FROM
  3790. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3791. WHERE cvterm.name = 'maternally_imprinted' OR cvterm.name = 'paternally_imprinted' OR cvterm.name = 'imprinted';
  3792. --- ************************************************
  3793. --- *** relation: maternally_imprinted ***
  3794. --- *** relation type: VIEW ***
  3795. --- *** ***
  3796. --- *** The maternal copy of the gene is modifie ***
  3797. --- *** d, rendering it transcriptionally silent ***
  3798. --- *** . ***
  3799. --- ************************************************
  3800. ---
  3801. CREATE VIEW maternally_imprinted AS
  3802. SELECT
  3803. feature_id AS maternally_imprinted_id,
  3804. feature.*
  3805. FROM
  3806. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3807. WHERE cvterm.name = 'maternally_imprinted';
  3808. --- ************************************************
  3809. --- *** relation: paternally_imprinted ***
  3810. --- *** relation type: VIEW ***
  3811. --- *** ***
  3812. --- *** The paternal copy of the gene is modifie ***
  3813. --- *** d, rendering it transcriptionally silent ***
  3814. --- *** . ***
  3815. --- ************************************************
  3816. ---
  3817. CREATE VIEW paternally_imprinted AS
  3818. SELECT
  3819. feature_id AS paternally_imprinted_id,
  3820. feature.*
  3821. FROM
  3822. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3823. WHERE cvterm.name = 'paternally_imprinted';
  3824. --- ************************************************
  3825. --- *** relation: allelically_excluded ***
  3826. --- *** relation type: VIEW ***
  3827. --- *** ***
  3828. --- *** Allelic exclusion is a process occurring ***
  3829. --- *** in diploid organisms, where a gene is i ***
  3830. --- *** nactivated and not expressed in that cel ***
  3831. --- *** l. ***
  3832. --- ************************************************
  3833. ---
  3834. CREATE VIEW allelically_excluded AS
  3835. SELECT
  3836. feature_id AS allelically_excluded_id,
  3837. feature.*
  3838. FROM
  3839. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3840. WHERE cvterm.name = 'allelically_excluded';
  3841. --- ************************************************
  3842. --- *** relation: gene_rearranged_at_dna_level ***
  3843. --- *** relation type: VIEW ***
  3844. --- *** ***
  3845. --- *** An epigenetically modified gene, rearran ***
  3846. --- *** ged at the DNA level. ***
  3847. --- ************************************************
  3848. ---
  3849. CREATE VIEW gene_rearranged_at_dna_level AS
  3850. SELECT
  3851. feature_id AS gene_rearranged_at_dna_level_id,
  3852. feature.*
  3853. FROM
  3854. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3855. WHERE cvterm.name = 'gene_rearranged_at_DNA_level';
  3856. --- ************************************************
  3857. --- *** relation: ribosome_entry_site ***
  3858. --- *** relation type: VIEW ***
  3859. --- *** ***
  3860. --- *** Region in mRNA where ribosome assembles. ***
  3861. --- ************************************************
  3862. ---
  3863. CREATE VIEW ribosome_entry_site AS
  3864. SELECT
  3865. feature_id AS ribosome_entry_site_id,
  3866. feature.*
  3867. FROM
  3868. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3869. 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';
  3870. --- ************************************************
  3871. --- *** relation: attenuator ***
  3872. --- *** relation type: VIEW ***
  3873. --- *** ***
  3874. --- *** A sequence segment located within the fi ***
  3875. --- *** ve prime end of an mRNA that causes prem ***
  3876. --- *** ature termination of translation. ***
  3877. --- ************************************************
  3878. ---
  3879. CREATE VIEW attenuator AS
  3880. SELECT
  3881. feature_id AS attenuator_id,
  3882. feature.*
  3883. FROM
  3884. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3885. WHERE cvterm.name = 'attenuator';
  3886. --- ************************************************
  3887. --- *** relation: terminator ***
  3888. --- *** relation type: VIEW ***
  3889. --- *** ***
  3890. --- *** The sequence of DNA located either at th ***
  3891. --- *** e end of the transcript that causes RNA ***
  3892. --- *** polymerase to terminate transcription. ***
  3893. --- ************************************************
  3894. ---
  3895. CREATE VIEW terminator AS
  3896. SELECT
  3897. feature_id AS terminator_id,
  3898. feature.*
  3899. FROM
  3900. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3901. 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';
  3902. --- ************************************************
  3903. --- *** relation: dna_sequence_secondary_structure ***
  3904. --- *** relation type: VIEW ***
  3905. --- *** ***
  3906. --- *** A folded DNA sequence. ***
  3907. --- ************************************************
  3908. ---
  3909. CREATE VIEW dna_sequence_secondary_structure AS
  3910. SELECT
  3911. feature_id AS dna_sequence_secondary_structure_id,
  3912. feature.*
  3913. FROM
  3914. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3915. WHERE cvterm.name = 'i_motif' OR cvterm.name = 'DNA_sequence_secondary_structure';
  3916. --- ************************************************
  3917. --- *** relation: assembly_component ***
  3918. --- *** relation type: VIEW ***
  3919. --- *** ***
  3920. --- *** A region of known length which may be us ***
  3921. --- *** ed to manufacture a longer region. ***
  3922. --- ************************************************
  3923. ---
  3924. CREATE VIEW assembly_component AS
  3925. SELECT
  3926. feature_id AS assembly_component_id,
  3927. feature.*
  3928. FROM
  3929. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3930. 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';
  3931. --- ************************************************
  3932. --- *** relation: recoded_codon ***
  3933. --- *** relation type: VIEW ***
  3934. --- *** ***
  3935. --- *** A codon that has been redefined at trans ***
  3936. --- *** lation. The redefinition may be as a res ***
  3937. --- *** ult of translational bypass, translation ***
  3938. --- *** al frameshifting or stop codon readthrou ***
  3939. --- *** gh. ***
  3940. --- ************************************************
  3941. ---
  3942. CREATE VIEW recoded_codon AS
  3943. SELECT
  3944. feature_id AS recoded_codon_id,
  3945. feature.*
  3946. FROM
  3947. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3948. 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';
  3949. --- ************************************************
  3950. --- *** relation: capped ***
  3951. --- *** relation type: VIEW ***
  3952. --- *** ***
  3953. --- *** An attribute describing when a sequence, ***
  3954. --- *** usually an mRNA is capped by the additi ***
  3955. --- *** on of a modified guanine nucleotide at t ***
  3956. --- *** he 5' end. ***
  3957. --- ************************************************
  3958. ---
  3959. CREATE VIEW capped AS
  3960. SELECT
  3961. feature_id AS capped_id,
  3962. feature.*
  3963. FROM
  3964. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3965. WHERE cvterm.name = 'capped';
  3966. --- ************************************************
  3967. --- *** relation: exon ***
  3968. --- *** relation type: VIEW ***
  3969. --- *** ***
  3970. --- *** A region of the transcript sequence with ***
  3971. --- *** in a gene which is not removed from the ***
  3972. --- *** primary RNA transcript by RNA splicing. ***
  3973. --- ************************************************
  3974. ---
  3975. CREATE VIEW exon AS
  3976. SELECT
  3977. feature_id AS exon_id,
  3978. feature.*
  3979. FROM
  3980. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3981. 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';
  3982. --- ************************************************
  3983. --- *** relation: supercontig ***
  3984. --- *** relation type: VIEW ***
  3985. --- *** ***
  3986. --- *** One or more contigs that have been order ***
  3987. --- *** ed and oriented using end-read informati ***
  3988. --- *** on. Contains gaps that are filled with N ***
  3989. --- *** 's. ***
  3990. --- ************************************************
  3991. ---
  3992. CREATE VIEW supercontig AS
  3993. SELECT
  3994. feature_id AS supercontig_id,
  3995. feature.*
  3996. FROM
  3997. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3998. WHERE cvterm.name = 'supercontig';
  3999. --- ************************************************
  4000. --- *** relation: contig ***
  4001. --- *** relation type: VIEW ***
  4002. --- *** ***
  4003. --- *** A contiguous sequence derived from seque ***
  4004. --- *** nce assembly. Has no gaps, but may conta ***
  4005. --- *** in N's from unavailable bases. ***
  4006. --- ************************************************
  4007. ---
  4008. CREATE VIEW contig AS
  4009. SELECT
  4010. feature_id AS contig_id,
  4011. feature.*
  4012. FROM
  4013. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4014. WHERE cvterm.name = 'contig';
  4015. --- ************************************************
  4016. --- *** relation: read ***
  4017. --- *** relation type: VIEW ***
  4018. --- *** ***
  4019. --- *** A sequence obtained from a single sequen ***
  4020. --- *** cing experiment. Typically a read is pro ***
  4021. --- *** duced when a base calling program interp ***
  4022. --- *** rets information from a chromatogram tra ***
  4023. --- *** ce file produced from a sequencing machi ***
  4024. --- *** ne. ***
  4025. --- ************************************************
  4026. ---
  4027. CREATE VIEW read AS
  4028. SELECT
  4029. feature_id AS read_id,
  4030. feature.*
  4031. FROM
  4032. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4033. 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';
  4034. --- ************************************************
  4035. --- *** relation: clone ***
  4036. --- *** relation type: VIEW ***
  4037. --- *** ***
  4038. --- *** A piece of DNA that has been inserted in ***
  4039. --- *** a vector so that it can be propagated i ***
  4040. --- *** n a host bacterium or some other organis ***
  4041. --- *** m. ***
  4042. --- ************************************************
  4043. ---
  4044. CREATE VIEW clone AS
  4045. SELECT
  4046. feature_id AS clone_id,
  4047. feature.*
  4048. FROM
  4049. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4050. 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';
  4051. --- ************************************************
  4052. --- *** relation: yac ***
  4053. --- *** relation type: VIEW ***
  4054. --- *** ***
  4055. --- *** Yeast Artificial Chromosome, a vector co ***
  4056. --- *** nstructed from the telomeric, centromeri ***
  4057. --- *** c, and replication origin sequences need ***
  4058. --- *** ed for replication in yeast cells. ***
  4059. --- ************************************************
  4060. ---
  4061. CREATE VIEW yac AS
  4062. SELECT
  4063. feature_id AS yac_id,
  4064. feature.*
  4065. FROM
  4066. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4067. WHERE cvterm.name = 'YAC';
  4068. --- ************************************************
  4069. --- *** relation: bac ***
  4070. --- *** relation type: VIEW ***
  4071. --- *** ***
  4072. --- *** Bacterial Artificial Chromosome, a cloni ***
  4073. --- *** ng vector that can be propagated as mini ***
  4074. --- *** -chromosomes in a bacterial host. ***
  4075. --- ************************************************
  4076. ---
  4077. CREATE VIEW bac AS
  4078. SELECT
  4079. feature_id AS bac_id,
  4080. feature.*
  4081. FROM
  4082. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4083. WHERE cvterm.name = 'BAC';
  4084. --- ************************************************
  4085. --- *** relation: pac ***
  4086. --- *** relation type: VIEW ***
  4087. --- *** ***
  4088. --- *** The P1-derived artificial chromosome are ***
  4089. --- *** DNA constructs that are derived from th ***
  4090. --- *** e DNA of P1 bacteriophage. They can carr ***
  4091. --- *** y large amounts (about 100-300 kilobases ***
  4092. --- *** ) of other sequences for a variety of bi ***
  4093. --- *** oengineering purposes. It is one type of ***
  4094. --- *** vector used to clone DNA fragments (100 ***
  4095. --- *** - to 300-kb insert size; average, 150 kb ***
  4096. --- *** ) in Escherichia coli cells. ***
  4097. --- ************************************************
  4098. ---
  4099. CREATE VIEW pac AS
  4100. SELECT
  4101. feature_id AS pac_id,
  4102. feature.*
  4103. FROM
  4104. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4105. WHERE cvterm.name = 'PAC';
  4106. --- ************************************************
  4107. --- *** relation: plasmid ***
  4108. --- *** relation type: VIEW ***
  4109. --- *** ***
  4110. --- *** A self replicating, using the hosts cell ***
  4111. --- *** ular machinery, often circular nucleic a ***
  4112. --- *** cid molecule that is distinct from a chr ***
  4113. --- *** omosome in the organism. ***
  4114. --- ************************************************
  4115. ---
  4116. CREATE VIEW plasmid AS
  4117. SELECT
  4118. feature_id AS plasmid_id,
  4119. feature.*
  4120. FROM
  4121. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4122. 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';
  4123. --- ************************************************
  4124. --- *** relation: cosmid ***
  4125. --- *** relation type: VIEW ***
  4126. --- *** ***
  4127. --- *** A cloning vector that is a hybrid of lam ***
  4128. --- *** bda phages and a plasmid that can be pro ***
  4129. --- *** pagated as a plasmid or packaged as a ph ***
  4130. --- *** age,since they retain the lambda cos sit ***
  4131. --- *** es. ***
  4132. --- ************************************************
  4133. ---
  4134. CREATE VIEW cosmid AS
  4135. SELECT
  4136. feature_id AS cosmid_id,
  4137. feature.*
  4138. FROM
  4139. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4140. WHERE cvterm.name = 'cosmid';
  4141. --- ************************************************
  4142. --- *** relation: phagemid ***
  4143. --- *** relation type: VIEW ***
  4144. --- *** ***
  4145. --- *** A plasmid which carries within its seque ***
  4146. --- *** nce a bacteriophage replication origin. ***
  4147. --- *** When the host bacterium is infected with ***
  4148. --- *** "helper" phage, a phagemid is replicate ***
  4149. --- *** d along with the phage DNA and packaged ***
  4150. --- *** into phage capsids. ***
  4151. --- ************************************************
  4152. ---
  4153. CREATE VIEW phagemid AS
  4154. SELECT
  4155. feature_id AS phagemid_id,
  4156. feature.*
  4157. FROM
  4158. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4159. WHERE cvterm.name = 'phagemid';
  4160. --- ************************************************
  4161. --- *** relation: fosmid ***
  4162. --- *** relation type: VIEW ***
  4163. --- *** ***
  4164. --- *** A cloning vector that utilizes the E. co ***
  4165. --- *** li F factor. ***
  4166. --- ************************************************
  4167. ---
  4168. CREATE VIEW fosmid AS
  4169. SELECT
  4170. feature_id AS fosmid_id,
  4171. feature.*
  4172. FROM
  4173. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4174. WHERE cvterm.name = 'fosmid';
  4175. --- ************************************************
  4176. --- *** relation: deletion ***
  4177. --- *** relation type: VIEW ***
  4178. --- *** ***
  4179. --- *** The point at which one or more contiguou ***
  4180. --- *** s nucleotides were excised. ***
  4181. --- ************************************************
  4182. ---
  4183. CREATE VIEW deletion AS
  4184. SELECT
  4185. feature_id AS deletion_id,
  4186. feature.*
  4187. FROM
  4188. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4189. WHERE cvterm.name = 'deletion';
  4190. --- ************************************************
  4191. --- *** relation: methylated_a ***
  4192. --- *** relation type: VIEW ***
  4193. --- *** ***
  4194. --- *** A modified RNA base in which adenine has ***
  4195. --- *** been methylated. ***
  4196. --- ************************************************
  4197. ---
  4198. CREATE VIEW methylated_a AS
  4199. SELECT
  4200. feature_id AS methylated_a_id,
  4201. feature.*
  4202. FROM
  4203. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4204. WHERE cvterm.name = 'methylated_A';
  4205. --- ************************************************
  4206. --- *** relation: splice_site ***
  4207. --- *** relation type: VIEW ***
  4208. --- *** ***
  4209. --- *** Consensus region of primary transcript b ***
  4210. --- *** ordering junction of splicing. A region ***
  4211. --- *** that overlaps exactly 2 base and adjacen ***
  4212. --- *** t_to splice_junction. ***
  4213. --- ************************************************
  4214. ---
  4215. CREATE VIEW splice_site AS
  4216. SELECT
  4217. feature_id AS splice_site_id,
  4218. feature.*
  4219. FROM
  4220. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4221. 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';
  4222. --- ************************************************
  4223. --- *** relation: five_prime_cis_splice_site ***
  4224. --- *** relation type: VIEW ***
  4225. --- *** ***
  4226. --- *** Intronic 2 bp region bordering the exon, ***
  4227. --- *** at the 5' edge of the intron. A splice_ ***
  4228. --- *** site that is downstream_adjacent_to exon ***
  4229. --- *** and starts intron. ***
  4230. --- ************************************************
  4231. ---
  4232. CREATE VIEW five_prime_cis_splice_site AS
  4233. SELECT
  4234. feature_id AS five_prime_cis_splice_site_id,
  4235. feature.*
  4236. FROM
  4237. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4238. 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';
  4239. --- ************************************************
  4240. --- *** relation: three_prime_cis_splice_site ***
  4241. --- *** relation type: VIEW ***
  4242. --- *** ***
  4243. --- *** Intronic 2 bp region bordering the exon, ***
  4244. --- *** at the 3' edge of the intron. A splice_ ***
  4245. --- *** site that is upstream_adjacent_to exon a ***
  4246. --- *** nd finishes intron. ***
  4247. --- ************************************************
  4248. ---
  4249. CREATE VIEW three_prime_cis_splice_site AS
  4250. SELECT
  4251. feature_id AS three_prime_cis_splice_site_id,
  4252. feature.*
  4253. FROM
  4254. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4255. 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';
  4256. --- ************************************************
  4257. --- *** relation: enhancer ***
  4258. --- *** relation type: VIEW ***
  4259. --- *** ***
  4260. --- *** A cis-acting sequence that increases the ***
  4261. --- *** utilization of (some) eukaryotic promot ***
  4262. --- *** ers, and can function in either orientat ***
  4263. --- *** ion and in any location (upstream or dow ***
  4264. --- *** nstream) relative to the promoter. ***
  4265. --- ************************************************
  4266. ---
  4267. CREATE VIEW enhancer AS
  4268. SELECT
  4269. feature_id AS enhancer_id,
  4270. feature.*
  4271. FROM
  4272. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4273. WHERE cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' OR cvterm.name = 'enhancer';
  4274. --- ************************************************
  4275. --- *** relation: enhancer_bound_by_factor ***
  4276. --- *** relation type: VIEW ***
  4277. --- *** ***
  4278. --- *** An enhancer bound by a factor. ***
  4279. --- ************************************************
  4280. ---
  4281. CREATE VIEW enhancer_bound_by_factor AS
  4282. SELECT
  4283. feature_id AS enhancer_bound_by_factor_id,
  4284. feature.*
  4285. FROM
  4286. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4287. WHERE cvterm.name = 'enhancer_bound_by_factor';
  4288. --- ************************************************
  4289. --- *** relation: promoter ***
  4290. --- *** relation type: VIEW ***
  4291. --- *** ***
  4292. --- *** A regulatory_region composed of the TSS( ***
  4293. --- *** s) and binding sites for TF_complexes of ***
  4294. --- *** the basal transcription machinery. ***
  4295. --- ************************************************
  4296. ---
  4297. CREATE VIEW promoter AS
  4298. SELECT
  4299. feature_id AS promoter_id,
  4300. feature.*
  4301. FROM
  4302. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4303. 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';
  4304. --- ************************************************
  4305. --- *** relation: rnapol_i_promoter ***
  4306. --- *** relation type: VIEW ***
  4307. --- *** ***
  4308. --- *** A DNA sequence in eukaryotic DNA to whic ***
  4309. --- *** h RNA polymerase I binds, to begin trans ***
  4310. --- *** cription. ***
  4311. --- ************************************************
  4312. ---
  4313. CREATE VIEW rnapol_i_promoter AS
  4314. SELECT
  4315. feature_id AS rnapol_i_promoter_id,
  4316. feature.*
  4317. FROM
  4318. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4319. WHERE cvterm.name = 'RNApol_I_promoter';
  4320. --- ************************************************
  4321. --- *** relation: rnapol_ii_promoter ***
  4322. --- *** relation type: VIEW ***
  4323. --- *** ***
  4324. --- *** A DNA sequence in eukaryotic DNA to whic ***
  4325. --- *** h RNA polymerase II binds, to begin tran ***
  4326. --- *** scription. ***
  4327. --- ************************************************
  4328. ---
  4329. CREATE VIEW rnapol_ii_promoter AS
  4330. SELECT
  4331. feature_id AS rnapol_ii_promoter_id,
  4332. feature.*
  4333. FROM
  4334. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4335. WHERE cvterm.name = 'RNApol_II_core_promoter' OR cvterm.name = 'RNApol_II_promoter';
  4336. --- ************************************************
  4337. --- *** relation: rnapol_iii_promoter ***
  4338. --- *** relation type: VIEW ***
  4339. --- *** ***
  4340. --- *** A DNA sequence in eukaryotic DNA to whic ***
  4341. --- *** h RNA polymerase III binds, to begin tra ***
  4342. --- *** nscription. ***
  4343. --- ************************************************
  4344. ---
  4345. CREATE VIEW rnapol_iii_promoter AS
  4346. SELECT
  4347. feature_id AS rnapol_iii_promoter_id,
  4348. feature.*
  4349. FROM
  4350. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4351. 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';
  4352. --- ************************************************
  4353. --- *** relation: caat_signal ***
  4354. --- *** relation type: VIEW ***
  4355. --- *** ***
  4356. --- *** Part of a conserved sequence located abo ***
  4357. --- *** ut 75-bp upstream of the start point of ***
  4358. --- *** eukaryotic transcription units which may ***
  4359. --- *** be involved in RNA polymerase binding; ***
  4360. --- *** consensus=GG(C|T)CAATCT. ***
  4361. --- ************************************************
  4362. ---
  4363. CREATE VIEW caat_signal AS
  4364. SELECT
  4365. feature_id AS caat_signal_id,
  4366. feature.*
  4367. FROM
  4368. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4369. WHERE cvterm.name = 'CAAT_signal';
  4370. --- ************************************************
  4371. --- *** relation: gc_rich_promoter_region ***
  4372. --- *** relation type: VIEW ***
  4373. --- *** ***
  4374. --- *** A conserved GC-rich region located upstr ***
  4375. --- *** eam of the start point of eukaryotic tra ***
  4376. --- *** nscription units which may occur in mult ***
  4377. --- *** iple copies or in either orientation; co ***
  4378. --- *** nsensus=GGGCGG. ***
  4379. --- ************************************************
  4380. ---
  4381. CREATE VIEW gc_rich_promoter_region AS
  4382. SELECT
  4383. feature_id AS gc_rich_promoter_region_id,
  4384. feature.*
  4385. FROM
  4386. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4387. WHERE cvterm.name = 'GC_rich_promoter_region';
  4388. --- ************************************************
  4389. --- *** relation: tata_box ***
  4390. --- *** relation type: VIEW ***
  4391. --- *** ***
  4392. --- *** A conserved AT-rich septamer found about ***
  4393. --- *** 25-bp before the start point of many eu ***
  4394. --- *** karyotic RNA polymerase II transcript un ***
  4395. --- *** its; may be involved in positioning the ***
  4396. --- *** enzyme for correct initiation; consensus ***
  4397. --- *** =TATA(A|T)A(A|T). ***
  4398. --- ************************************************
  4399. ---
  4400. CREATE VIEW tata_box AS
  4401. SELECT
  4402. feature_id AS tata_box_id,
  4403. feature.*
  4404. FROM
  4405. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4406. WHERE cvterm.name = 'RNA_polymerase_II_TATA_box' OR cvterm.name = 'RNA_polymerase_III_TATA_box' OR cvterm.name = 'TATA_box';
  4407. --- ************************************************
  4408. --- *** relation: minus_10_signal ***
  4409. --- *** relation type: VIEW ***
  4410. --- *** ***
  4411. --- *** A conserved region about 10-bp upstream ***
  4412. --- *** of the start point of bacterial transcri ***
  4413. --- *** ption units which may be involved in bin ***
  4414. --- *** ding RNA polymerase; consensus=TAtAaT. T ***
  4415. --- *** his region is associated with sigma fact ***
  4416. --- *** or 70. ***
  4417. --- ************************************************
  4418. ---
  4419. CREATE VIEW minus_10_signal AS
  4420. SELECT
  4421. feature_id AS minus_10_signal_id,
  4422. feature.*
  4423. FROM
  4424. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4425. WHERE cvterm.name = 'minus_10_signal';
  4426. --- ************************************************
  4427. --- *** relation: minus_35_signal ***
  4428. --- *** relation type: VIEW ***
  4429. --- *** ***
  4430. --- *** A conserved hexamer about 35-bp upstream ***
  4431. --- *** of the start point of bacterial transcr ***
  4432. --- *** iption units; consensus=TTGACa or TGTTGA ***
  4433. --- *** CA. This region is associated with sigma ***
  4434. --- *** factor 70. ***
  4435. --- ************************************************
  4436. ---
  4437. CREATE VIEW minus_35_signal AS
  4438. SELECT
  4439. feature_id AS minus_35_signal_id,
  4440. feature.*
  4441. FROM
  4442. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4443. WHERE cvterm.name = 'minus_35_signal';
  4444. --- ************************************************
  4445. --- *** relation: cross_genome_match ***
  4446. --- *** relation type: VIEW ***
  4447. --- *** ***
  4448. --- *** A nucleotide match against a sequence fr ***
  4449. --- *** om another organism. ***
  4450. --- ************************************************
  4451. ---
  4452. CREATE VIEW cross_genome_match AS
  4453. SELECT
  4454. feature_id AS cross_genome_match_id,
  4455. feature.*
  4456. FROM
  4457. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4458. WHERE cvterm.name = 'cross_genome_match';
  4459. --- ************************************************
  4460. --- *** relation: operon ***
  4461. --- *** relation type: VIEW ***
  4462. --- *** ***
  4463. --- *** A group of contiguous genes transcribed ***
  4464. --- *** as a single (polycistronic) mRNA from a ***
  4465. --- *** single regulatory region. ***
  4466. --- ************************************************
  4467. ---
  4468. CREATE VIEW operon AS
  4469. SELECT
  4470. feature_id AS operon_id,
  4471. feature.*
  4472. FROM
  4473. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4474. WHERE cvterm.name = 'operon';
  4475. --- ************************************************
  4476. --- *** relation: clone_insert_start ***
  4477. --- *** relation type: VIEW ***
  4478. --- *** ***
  4479. --- *** The start of the clone insert. ***
  4480. --- ************************************************
  4481. ---
  4482. CREATE VIEW clone_insert_start AS
  4483. SELECT
  4484. feature_id AS clone_insert_start_id,
  4485. feature.*
  4486. FROM
  4487. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4488. WHERE cvterm.name = 'clone_insert_start';
  4489. --- ************************************************
  4490. --- *** relation: retrotransposon ***
  4491. --- *** relation type: VIEW ***
  4492. --- *** ***
  4493. --- *** A transposable element that is incorpora ***
  4494. --- *** ted into a chromosome by a mechanism tha ***
  4495. --- *** t requires reverse transcriptase. ***
  4496. --- ************************************************
  4497. ---
  4498. CREATE VIEW retrotransposon AS
  4499. SELECT
  4500. feature_id AS retrotransposon_id,
  4501. feature.*
  4502. FROM
  4503. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4504. 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';
  4505. --- ************************************************
  4506. --- *** relation: translated_nucleotide_match ***
  4507. --- *** relation type: VIEW ***
  4508. --- *** ***
  4509. --- *** A match against a translated sequence. ***
  4510. --- ************************************************
  4511. ---
  4512. CREATE VIEW translated_nucleotide_match AS
  4513. SELECT
  4514. feature_id AS translated_nucleotide_match_id,
  4515. feature.*
  4516. FROM
  4517. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4518. WHERE cvterm.name = 'translated_nucleotide_match';
  4519. --- ************************************************
  4520. --- *** relation: dna_transposon ***
  4521. --- *** relation type: VIEW ***
  4522. --- *** ***
  4523. --- *** A transposon where the mechanism of tran ***
  4524. --- *** sposition is via a DNA intermediate. ***
  4525. --- ************************************************
  4526. ---
  4527. CREATE VIEW dna_transposon AS
  4528. SELECT
  4529. feature_id AS dna_transposon_id,
  4530. feature.*
  4531. FROM
  4532. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4533. 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';
  4534. --- ************************************************
  4535. --- *** relation: non_transcribed_region ***
  4536. --- *** relation type: VIEW ***
  4537. --- *** ***
  4538. --- *** A region of the gene which is not transc ***
  4539. --- *** ribed. ***
  4540. --- ************************************************
  4541. ---
  4542. CREATE VIEW non_transcribed_region AS
  4543. SELECT
  4544. feature_id AS non_transcribed_region_id,
  4545. feature.*
  4546. FROM
  4547. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4548. WHERE cvterm.name = 'non_transcribed_region';
  4549. --- ************************************************
  4550. --- *** relation: u2_intron ***
  4551. --- *** relation type: VIEW ***
  4552. --- *** ***
  4553. --- *** A major type of spliceosomal intron spli ***
  4554. --- *** ced by the U2 spliceosome, that includes ***
  4555. --- *** U1, U2, U4/U6 and U5 snRNAs. ***
  4556. --- ************************************************
  4557. ---
  4558. CREATE VIEW u2_intron AS
  4559. SELECT
  4560. feature_id AS u2_intron_id,
  4561. feature.*
  4562. FROM
  4563. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4564. WHERE cvterm.name = 'U2_intron';
  4565. --- ************************************************
  4566. --- *** relation: primary_transcript ***
  4567. --- *** relation type: VIEW ***
  4568. --- *** ***
  4569. --- *** A transcript that in its initial state r ***
  4570. --- *** equires modification to be functional. ***
  4571. --- ************************************************
  4572. ---
  4573. CREATE VIEW primary_transcript AS
  4574. SELECT
  4575. feature_id AS primary_transcript_id,
  4576. feature.*
  4577. FROM
  4578. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4579. 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';
  4580. --- ************************************************
  4581. --- *** relation: ltr_retrotransposon ***
  4582. --- *** relation type: VIEW ***
  4583. --- *** ***
  4584. --- *** A retrotransposon flanked by long termin ***
  4585. --- *** al repeat sequences. ***
  4586. --- ************************************************
  4587. ---
  4588. CREATE VIEW ltr_retrotransposon AS
  4589. SELECT
  4590. feature_id AS ltr_retrotransposon_id,
  4591. feature.*
  4592. FROM
  4593. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4594. WHERE cvterm.name = 'LTR_retrotransposon';
  4595. --- ************************************************
  4596. --- *** relation: intron ***
  4597. --- *** relation type: VIEW ***
  4598. --- *** ***
  4599. --- *** A region of a primary transcript that is ***
  4600. --- *** transcribed, but removed from within th ***
  4601. --- *** e transcript by splicing together the se ***
  4602. --- *** quences (exons) on either side of it. ***
  4603. --- ************************************************
  4604. ---
  4605. CREATE VIEW intron AS
  4606. SELECT
  4607. feature_id AS intron_id,
  4608. feature.*
  4609. FROM
  4610. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4611. 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';
  4612. --- ************************************************
  4613. --- *** relation: non_ltr_retrotransposon ***
  4614. --- *** relation type: VIEW ***
  4615. --- *** ***
  4616. --- *** A retrotransposon without long terminal ***
  4617. --- *** repeat sequences. ***
  4618. --- ************************************************
  4619. ---
  4620. CREATE VIEW non_ltr_retrotransposon AS
  4621. SELECT
  4622. feature_id AS non_ltr_retrotransposon_id,
  4623. feature.*
  4624. FROM
  4625. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4626. WHERE cvterm.name = 'LINE_element' OR cvterm.name = 'SINE_element' OR cvterm.name = 'non_LTR_retrotransposon';
  4627. --- ************************************************
  4628. --- *** relation: five_prime_intron ***
  4629. --- *** relation type: VIEW ***
  4630. --- *** ***
  4631. --- ************************************************
  4632. ---
  4633. CREATE VIEW five_prime_intron AS
  4634. SELECT
  4635. feature_id AS five_prime_intron_id,
  4636. feature.*
  4637. FROM
  4638. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4639. WHERE cvterm.name = 'five_prime_intron';
  4640. --- ************************************************
  4641. --- *** relation: interior_intron ***
  4642. --- *** relation type: VIEW ***
  4643. --- *** ***
  4644. --- ************************************************
  4645. ---
  4646. CREATE VIEW interior_intron AS
  4647. SELECT
  4648. feature_id AS interior_intron_id,
  4649. feature.*
  4650. FROM
  4651. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4652. WHERE cvterm.name = 'interior_intron';
  4653. --- ************************************************
  4654. --- *** relation: three_prime_intron ***
  4655. --- *** relation type: VIEW ***
  4656. --- *** ***
  4657. --- ************************************************
  4658. ---
  4659. CREATE VIEW three_prime_intron AS
  4660. SELECT
  4661. feature_id AS three_prime_intron_id,
  4662. feature.*
  4663. FROM
  4664. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4665. WHERE cvterm.name = 'three_prime_intron';
  4666. --- ************************************************
  4667. --- *** relation: rflp_fragment ***
  4668. --- *** relation type: VIEW ***
  4669. --- *** ***
  4670. --- *** A DNA fragment used as a reagent to dete ***
  4671. --- *** ct the polymorphic genomic loci by hybri ***
  4672. --- *** dizing against the genomic DNA digested ***
  4673. --- *** with a given restriction enzyme. ***
  4674. --- ************************************************
  4675. ---
  4676. CREATE VIEW rflp_fragment AS
  4677. SELECT
  4678. feature_id AS rflp_fragment_id,
  4679. feature.*
  4680. FROM
  4681. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4682. WHERE cvterm.name = 'RFLP_fragment';
  4683. --- ************************************************
  4684. --- *** relation: line_element ***
  4685. --- *** relation type: VIEW ***
  4686. --- *** ***
  4687. --- *** A dispersed repeat family with many copi ***
  4688. --- *** es, each from 1 to 6 kb long. New elemen ***
  4689. --- *** ts are generated by retroposition of a t ***
  4690. --- *** ranscribed copy. Typically the LINE cont ***
  4691. --- *** ains 2 ORF's one of which is reverse tra ***
  4692. --- *** nscriptase, and 3'and 5' direct repeats. ***
  4693. --- ************************************************
  4694. ---
  4695. CREATE VIEW line_element AS
  4696. SELECT
  4697. feature_id AS line_element_id,
  4698. feature.*
  4699. FROM
  4700. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4701. WHERE cvterm.name = 'LINE_element';
  4702. --- ************************************************
  4703. --- *** relation: coding_exon ***
  4704. --- *** relation type: VIEW ***
  4705. --- *** ***
  4706. --- *** An exon whereby at least one base is par ***
  4707. --- *** t of a codon (here, 'codon' is inclusive ***
  4708. --- *** of the stop_codon). ***
  4709. --- ************************************************
  4710. ---
  4711. CREATE VIEW coding_exon AS
  4712. SELECT
  4713. feature_id AS coding_exon_id,
  4714. feature.*
  4715. FROM
  4716. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4717. 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';
  4718. --- ************************************************
  4719. --- *** relation: five_prime_coding_exon_coding_region ***
  4720. --- *** relation type: VIEW ***
  4721. --- *** ***
  4722. --- *** The sequence of the five_prime_coding_ex ***
  4723. --- *** on that codes for protein. ***
  4724. --- ************************************************
  4725. ---
  4726. CREATE VIEW five_prime_coding_exon_coding_region AS
  4727. SELECT
  4728. feature_id AS five_prime_coding_exon_coding_region_id,
  4729. feature.*
  4730. FROM
  4731. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4732. WHERE cvterm.name = 'five_prime_coding_exon_coding_region';
  4733. --- ************************************************
  4734. --- *** relation: three_prime_coding_exon_coding_region ***
  4735. --- *** relation type: VIEW ***
  4736. --- *** ***
  4737. --- *** The sequence of the three_prime_coding_e ***
  4738. --- *** xon that codes for protein. ***
  4739. --- ************************************************
  4740. ---
  4741. CREATE VIEW three_prime_coding_exon_coding_region AS
  4742. SELECT
  4743. feature_id AS three_prime_coding_exon_coding_region_id,
  4744. feature.*
  4745. FROM
  4746. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4747. WHERE cvterm.name = 'three_prime_coding_exon_coding_region';
  4748. --- ************************************************
  4749. --- *** relation: noncoding_exon ***
  4750. --- *** relation type: VIEW ***
  4751. --- *** ***
  4752. --- *** An exon that does not contain any codons ***
  4753. --- *** . ***
  4754. --- ************************************************
  4755. ---
  4756. CREATE VIEW noncoding_exon AS
  4757. SELECT
  4758. feature_id AS noncoding_exon_id,
  4759. feature.*
  4760. FROM
  4761. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4762. WHERE cvterm.name = 'three_prime_noncoding_exon' OR cvterm.name = 'five_prime_noncoding_exon' OR cvterm.name = 'noncoding_exon';
  4763. --- ************************************************
  4764. --- *** relation: translocation ***
  4765. --- *** relation type: VIEW ***
  4766. --- *** ***
  4767. --- *** A region of nucleotide sequence that has ***
  4768. --- *** translocated to a new position. ***
  4769. --- ************************************************
  4770. ---
  4771. CREATE VIEW translocation AS
  4772. SELECT
  4773. feature_id AS translocation_id,
  4774. feature.*
  4775. FROM
  4776. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4777. WHERE cvterm.name = 'translocation';
  4778. --- ************************************************
  4779. --- *** relation: five_prime_coding_exon ***
  4780. --- *** relation type: VIEW ***
  4781. --- *** ***
  4782. --- *** The 5' most coding exon. ***
  4783. --- ************************************************
  4784. ---
  4785. CREATE VIEW five_prime_coding_exon AS
  4786. SELECT
  4787. feature_id AS five_prime_coding_exon_id,
  4788. feature.*
  4789. FROM
  4790. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4791. WHERE cvterm.name = 'five_prime_coding_exon';
  4792. --- ************************************************
  4793. --- *** relation: interior_exon ***
  4794. --- *** relation type: VIEW ***
  4795. --- *** ***
  4796. --- *** An exon that is bounded by 5' and 3' spl ***
  4797. --- *** ice sites. ***
  4798. --- ************************************************
  4799. ---
  4800. CREATE VIEW interior_exon AS
  4801. SELECT
  4802. feature_id AS interior_exon_id,
  4803. feature.*
  4804. FROM
  4805. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4806. WHERE cvterm.name = 'interior_exon';
  4807. --- ************************************************
  4808. --- *** relation: three_prime_coding_exon ***
  4809. --- *** relation type: VIEW ***
  4810. --- *** ***
  4811. --- *** The coding exon that is most 3-prime on ***
  4812. --- *** a given transcript. ***
  4813. --- ************************************************
  4814. ---
  4815. CREATE VIEW three_prime_coding_exon AS
  4816. SELECT
  4817. feature_id AS three_prime_coding_exon_id,
  4818. feature.*
  4819. FROM
  4820. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4821. WHERE cvterm.name = 'three_prime_coding_exon';
  4822. --- ************************************************
  4823. --- *** relation: utr ***
  4824. --- *** relation type: VIEW ***
  4825. --- *** ***
  4826. --- *** Messenger RNA sequences that are untrans ***
  4827. --- *** lated and lie five prime or three prime ***
  4828. --- *** to sequences which are translated. ***
  4829. --- ************************************************
  4830. ---
  4831. CREATE VIEW utr AS
  4832. SELECT
  4833. feature_id AS utr_id,
  4834. feature.*
  4835. FROM
  4836. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4837. 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';
  4838. --- ************************************************
  4839. --- *** relation: five_prime_utr ***
  4840. --- *** relation type: VIEW ***
  4841. --- *** ***
  4842. --- *** A region at the 5' end of a mature trans ***
  4843. --- *** cript (preceding the initiation codon) t ***
  4844. --- *** hat is not translated into a protein. ***
  4845. --- ************************************************
  4846. ---
  4847. CREATE VIEW five_prime_utr AS
  4848. SELECT
  4849. feature_id AS five_prime_utr_id,
  4850. feature.*
  4851. FROM
  4852. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4853. WHERE cvterm.name = 'five_prime_UTR';
  4854. --- ************************************************
  4855. --- *** relation: three_prime_utr ***
  4856. --- *** relation type: VIEW ***
  4857. --- *** ***
  4858. --- *** A region at the 3' end of a mature trans ***
  4859. --- *** cript (following the stop codon) that is ***
  4860. --- *** not translated into a protein. ***
  4861. --- ************************************************
  4862. ---
  4863. CREATE VIEW three_prime_utr AS
  4864. SELECT
  4865. feature_id AS three_prime_utr_id,
  4866. feature.*
  4867. FROM
  4868. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4869. WHERE cvterm.name = 'three_prime_UTR';
  4870. --- ************************************************
  4871. --- *** relation: sine_element ***
  4872. --- *** relation type: VIEW ***
  4873. --- *** ***
  4874. --- *** A repetitive element, a few hundred base ***
  4875. --- *** pairs long, that is dispersed throughou ***
  4876. --- *** t the genome. A common human SINE is the ***
  4877. --- *** Alu element. ***
  4878. --- ************************************************
  4879. ---
  4880. CREATE VIEW sine_element AS
  4881. SELECT
  4882. feature_id AS sine_element_id,
  4883. feature.*
  4884. FROM
  4885. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4886. WHERE cvterm.name = 'SINE_element';
  4887. --- ************************************************
  4888. --- *** relation: simple_sequence_length_variation ***
  4889. --- *** relation type: VIEW ***
  4890. --- *** ***
  4891. --- ************************************************
  4892. ---
  4893. CREATE VIEW simple_sequence_length_variation AS
  4894. SELECT
  4895. feature_id AS simple_sequence_length_variation_id,
  4896. feature.*
  4897. FROM
  4898. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4899. WHERE cvterm.name = 'simple_sequence_length_variation';
  4900. --- ************************************************
  4901. --- *** relation: terminal_inverted_repeat_element ***
  4902. --- *** relation type: VIEW ***
  4903. --- *** ***
  4904. --- *** A DNA transposable element defined as ha ***
  4905. --- *** ving termini with perfect, or nearly per ***
  4906. --- *** fect short inverted repeats, generally 1 ***
  4907. --- *** 0 - 40 nucleotides long. ***
  4908. --- ************************************************
  4909. ---
  4910. CREATE VIEW terminal_inverted_repeat_element AS
  4911. SELECT
  4912. feature_id AS terminal_inverted_repeat_element_id,
  4913. feature.*
  4914. FROM
  4915. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4916. WHERE cvterm.name = 'MITE' OR cvterm.name = 'insertion_sequence' OR cvterm.name = 'polinton' OR cvterm.name = 'terminal_inverted_repeat_element';
  4917. --- ************************************************
  4918. --- *** relation: rrna_primary_transcript ***
  4919. --- *** relation type: VIEW ***
  4920. --- *** ***
  4921. --- *** A primary transcript encoding a ribosoma ***
  4922. --- *** l RNA. ***
  4923. --- ************************************************
  4924. ---
  4925. CREATE VIEW rrna_primary_transcript AS
  4926. SELECT
  4927. feature_id AS rrna_primary_transcript_id,
  4928. feature.*
  4929. FROM
  4930. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4931. WHERE cvterm.name = 'rRNA_small_subunit_primary_transcript' OR cvterm.name = 'rRNA_large_subunit_primary_transcript' OR cvterm.name = 'rRNA_primary_transcript';
  4932. --- ************************************************
  4933. --- *** relation: trna_primary_transcript ***
  4934. --- *** relation type: VIEW ***
  4935. --- *** ***
  4936. --- *** A primary transcript encoding a transfer ***
  4937. --- *** RNA (SO:0000253). ***
  4938. --- ************************************************
  4939. ---
  4940. CREATE VIEW trna_primary_transcript AS
  4941. SELECT
  4942. feature_id AS trna_primary_transcript_id,
  4943. feature.*
  4944. FROM
  4945. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4946. 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';
  4947. --- ************************************************
  4948. --- *** relation: alanine_trna_primary_transcript ***
  4949. --- *** relation type: VIEW ***
  4950. --- *** ***
  4951. --- *** A primary transcript encoding alanyl tRN ***
  4952. --- *** A. ***
  4953. --- ************************************************
  4954. ---
  4955. CREATE VIEW alanine_trna_primary_transcript AS
  4956. SELECT
  4957. feature_id AS alanine_trna_primary_transcript_id,
  4958. feature.*
  4959. FROM
  4960. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4961. WHERE cvterm.name = 'alanine_tRNA_primary_transcript';
  4962. --- ************************************************
  4963. --- *** relation: arg_trna_primary_transcript ***
  4964. --- *** relation type: VIEW ***
  4965. --- *** ***
  4966. --- *** A primary transcript encoding arginyl tR ***
  4967. --- *** NA (SO:0000255). ***
  4968. --- ************************************************
  4969. ---
  4970. CREATE VIEW arg_trna_primary_transcript AS
  4971. SELECT
  4972. feature_id AS arg_trna_primary_transcript_id,
  4973. feature.*
  4974. FROM
  4975. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4976. WHERE cvterm.name = 'arginine_tRNA_primary_transcript';
  4977. --- ************************************************
  4978. --- *** relation: asparagine_trna_primary_transcript ***
  4979. --- *** relation type: VIEW ***
  4980. --- *** ***
  4981. --- *** A primary transcript encoding asparaginy ***
  4982. --- *** l tRNA (SO:0000256). ***
  4983. --- ************************************************
  4984. ---
  4985. CREATE VIEW asparagine_trna_primary_transcript AS
  4986. SELECT
  4987. feature_id AS asparagine_trna_primary_transcript_id,
  4988. feature.*
  4989. FROM
  4990. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4991. WHERE cvterm.name = 'asparagine_tRNA_primary_transcript';
  4992. --- ************************************************
  4993. --- *** relation: aspartic_acid_trna_primary_transcript ***
  4994. --- *** relation type: VIEW ***
  4995. --- *** ***
  4996. --- *** A primary transcript encoding aspartyl t ***
  4997. --- *** RNA (SO:0000257). ***
  4998. --- ************************************************
  4999. ---
  5000. CREATE VIEW aspartic_acid_trna_primary_transcript AS
  5001. SELECT
  5002. feature_id AS aspartic_acid_trna_primary_transcript_id,
  5003. feature.*
  5004. FROM
  5005. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5006. WHERE cvterm.name = 'aspartic_acid_tRNA_primary_transcript';
  5007. --- ************************************************
  5008. --- *** relation: cysteine_trna_primary_transcript ***
  5009. --- *** relation type: VIEW ***
  5010. --- *** ***
  5011. --- *** A primary transcript encoding cysteinyl ***
  5012. --- *** tRNA (SO:0000258). ***
  5013. --- ************************************************
  5014. ---
  5015. CREATE VIEW cysteine_trna_primary_transcript AS
  5016. SELECT
  5017. feature_id AS cysteine_trna_primary_transcript_id,
  5018. feature.*
  5019. FROM
  5020. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5021. WHERE cvterm.name = 'cysteine_tRNA_primary_transcript';
  5022. --- ************************************************
  5023. --- *** relation: glutamic_acid_trna_primary_transcript ***
  5024. --- *** relation type: VIEW ***
  5025. --- *** ***
  5026. --- *** A primary transcript encoding glutaminyl ***
  5027. --- *** tRNA (SO:0000260). ***
  5028. --- ************************************************
  5029. ---
  5030. CREATE VIEW glutamic_acid_trna_primary_transcript AS
  5031. SELECT
  5032. feature_id AS glutamic_acid_trna_primary_transcript_id,
  5033. feature.*
  5034. FROM
  5035. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5036. WHERE cvterm.name = 'glutamic_acid_tRNA_primary_transcript';
  5037. --- ************************************************
  5038. --- *** relation: glutamine_trna_primary_transcript ***
  5039. --- *** relation type: VIEW ***
  5040. --- *** ***
  5041. --- *** A primary transcript encoding glutamyl t ***
  5042. --- *** RNA (SO:0000260). ***
  5043. --- ************************************************
  5044. ---
  5045. CREATE VIEW glutamine_trna_primary_transcript AS
  5046. SELECT
  5047. feature_id AS glutamine_trna_primary_transcript_id,
  5048. feature.*
  5049. FROM
  5050. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5051. WHERE cvterm.name = 'glutamine_tRNA_primary_transcript';
  5052. --- ************************************************
  5053. --- *** relation: glycine_trna_primary_transcript ***
  5054. --- *** relation type: VIEW ***
  5055. --- *** ***
  5056. --- *** A primary transcript encoding glycyl tRN ***
  5057. --- *** A (SO:0000263). ***
  5058. --- ************************************************
  5059. ---
  5060. CREATE VIEW glycine_trna_primary_transcript AS
  5061. SELECT
  5062. feature_id AS glycine_trna_primary_transcript_id,
  5063. feature.*
  5064. FROM
  5065. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5066. WHERE cvterm.name = 'glycine_tRNA_primary_transcript';
  5067. --- ************************************************
  5068. --- *** relation: histidine_trna_primary_transcript ***
  5069. --- *** relation type: VIEW ***
  5070. --- *** ***
  5071. --- *** A primary transcript encoding histidyl t ***
  5072. --- *** RNA (SO:0000262). ***
  5073. --- ************************************************
  5074. ---
  5075. CREATE VIEW histidine_trna_primary_transcript AS
  5076. SELECT
  5077. feature_id AS histidine_trna_primary_transcript_id,
  5078. feature.*
  5079. FROM
  5080. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5081. WHERE cvterm.name = 'histidine_tRNA_primary_transcript';
  5082. --- ************************************************
  5083. --- *** relation: isoleucine_trna_primary_transcript ***
  5084. --- *** relation type: VIEW ***
  5085. --- *** ***
  5086. --- *** A primary transcript encoding isoleucyl ***
  5087. --- *** tRNA (SO:0000263). ***
  5088. --- ************************************************
  5089. ---
  5090. CREATE VIEW isoleucine_trna_primary_transcript AS
  5091. SELECT
  5092. feature_id AS isoleucine_trna_primary_transcript_id,
  5093. feature.*
  5094. FROM
  5095. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5096. WHERE cvterm.name = 'isoleucine_tRNA_primary_transcript';
  5097. --- ************************************************
  5098. --- *** relation: leucine_trna_primary_transcript ***
  5099. --- *** relation type: VIEW ***
  5100. --- *** ***
  5101. --- *** A primary transcript encoding leucyl tRN ***
  5102. --- *** A (SO:0000264). ***
  5103. --- ************************************************
  5104. ---
  5105. CREATE VIEW leucine_trna_primary_transcript AS
  5106. SELECT
  5107. feature_id AS leucine_trna_primary_transcript_id,
  5108. feature.*
  5109. FROM
  5110. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5111. WHERE cvterm.name = 'leucine_tRNA_primary_transcript';
  5112. --- ************************************************
  5113. --- *** relation: lysine_trna_primary_transcript ***
  5114. --- *** relation type: VIEW ***
  5115. --- *** ***
  5116. --- *** A primary transcript encoding lysyl tRNA ***
  5117. --- *** (SO:0000265). ***
  5118. --- ************************************************
  5119. ---
  5120. CREATE VIEW lysine_trna_primary_transcript AS
  5121. SELECT
  5122. feature_id AS lysine_trna_primary_transcript_id,
  5123. feature.*
  5124. FROM
  5125. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5126. WHERE cvterm.name = 'lysine_tRNA_primary_transcript';
  5127. --- ************************************************
  5128. --- *** relation: methionine_trna_primary_transcript ***
  5129. --- *** relation type: VIEW ***
  5130. --- *** ***
  5131. --- *** A primary transcript encoding methionyl ***
  5132. --- *** tRNA (SO:0000266). ***
  5133. --- ************************************************
  5134. ---
  5135. CREATE VIEW methionine_trna_primary_transcript AS
  5136. SELECT
  5137. feature_id AS methionine_trna_primary_transcript_id,
  5138. feature.*
  5139. FROM
  5140. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5141. WHERE cvterm.name = 'methionine_tRNA_primary_transcript';
  5142. --- ************************************************
  5143. --- *** relation: phe_trna_primary_transcript ***
  5144. --- *** relation type: VIEW ***
  5145. --- *** ***
  5146. --- *** A primary transcript encoding phenylalan ***
  5147. --- *** yl tRNA (SO:0000267). ***
  5148. --- ************************************************
  5149. ---
  5150. CREATE VIEW phe_trna_primary_transcript AS
  5151. SELECT
  5152. feature_id AS phe_trna_primary_transcript_id,
  5153. feature.*
  5154. FROM
  5155. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5156. WHERE cvterm.name = 'phenylalanine_tRNA_primary_transcript';
  5157. --- ************************************************
  5158. --- *** relation: proline_trna_primary_transcript ***
  5159. --- *** relation type: VIEW ***
  5160. --- *** ***
  5161. --- *** A primary transcript encoding prolyl tRN ***
  5162. --- *** A (SO:0000268). ***
  5163. --- ************************************************
  5164. ---
  5165. CREATE VIEW proline_trna_primary_transcript AS
  5166. SELECT
  5167. feature_id AS proline_trna_primary_transcript_id,
  5168. feature.*
  5169. FROM
  5170. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5171. WHERE cvterm.name = 'proline_tRNA_primary_transcript';
  5172. --- ************************************************
  5173. --- *** relation: serine_trna_primary_transcript ***
  5174. --- *** relation type: VIEW ***
  5175. --- *** ***
  5176. --- *** A primary transcript encoding seryl tRNA ***
  5177. --- *** (SO:000269). ***
  5178. --- ************************************************
  5179. ---
  5180. CREATE VIEW serine_trna_primary_transcript AS
  5181. SELECT
  5182. feature_id AS serine_trna_primary_transcript_id,
  5183. feature.*
  5184. FROM
  5185. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5186. WHERE cvterm.name = 'serine_tRNA_primary_transcript';
  5187. --- ************************************************
  5188. --- *** relation: thr_trna_primary_transcript ***
  5189. --- *** relation type: VIEW ***
  5190. --- *** ***
  5191. --- *** A primary transcript encoding threonyl t ***
  5192. --- *** RNA (SO:000270). ***
  5193. --- ************************************************
  5194. ---
  5195. CREATE VIEW thr_trna_primary_transcript AS
  5196. SELECT
  5197. feature_id AS thr_trna_primary_transcript_id,
  5198. feature.*
  5199. FROM
  5200. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5201. WHERE cvterm.name = 'threonine_tRNA_primary_transcript';
  5202. --- ************************************************
  5203. --- *** relation: try_trna_primary_transcript ***
  5204. --- *** relation type: VIEW ***
  5205. --- *** ***
  5206. --- *** A primary transcript encoding tryptophan ***
  5207. --- *** yl tRNA (SO:000271). ***
  5208. --- ************************************************
  5209. ---
  5210. CREATE VIEW try_trna_primary_transcript AS
  5211. SELECT
  5212. feature_id AS try_trna_primary_transcript_id,
  5213. feature.*
  5214. FROM
  5215. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5216. WHERE cvterm.name = 'tryptophan_tRNA_primary_transcript';
  5217. --- ************************************************
  5218. --- *** relation: tyrosine_trna_primary_transcript ***
  5219. --- *** relation type: VIEW ***
  5220. --- *** ***
  5221. --- *** A primary transcript encoding tyrosyl tR ***
  5222. --- *** NA (SO:000272). ***
  5223. --- ************************************************
  5224. ---
  5225. CREATE VIEW tyrosine_trna_primary_transcript AS
  5226. SELECT
  5227. feature_id AS tyrosine_trna_primary_transcript_id,
  5228. feature.*
  5229. FROM
  5230. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5231. WHERE cvterm.name = 'tyrosine_tRNA_primary_transcript';
  5232. --- ************************************************
  5233. --- *** relation: valine_trna_primary_transcript ***
  5234. --- *** relation type: VIEW ***
  5235. --- *** ***
  5236. --- *** A primary transcript encoding valyl tRNA ***
  5237. --- *** (SO:000273). ***
  5238. --- ************************************************
  5239. ---
  5240. CREATE VIEW valine_trna_primary_transcript AS
  5241. SELECT
  5242. feature_id AS valine_trna_primary_transcript_id,
  5243. feature.*
  5244. FROM
  5245. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5246. WHERE cvterm.name = 'valine_tRNA_primary_transcript';
  5247. --- ************************************************
  5248. --- *** relation: snrna_primary_transcript ***
  5249. --- *** relation type: VIEW ***
  5250. --- *** ***
  5251. --- *** A primary transcript encoding a small nu ***
  5252. --- *** clear RNA (SO:0000274). ***
  5253. --- ************************************************
  5254. ---
  5255. CREATE VIEW snrna_primary_transcript AS
  5256. SELECT
  5257. feature_id AS snrna_primary_transcript_id,
  5258. feature.*
  5259. FROM
  5260. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5261. WHERE cvterm.name = 'snRNA_primary_transcript';
  5262. --- ************************************************
  5263. --- *** relation: snorna_primary_transcript ***
  5264. --- *** relation type: VIEW ***
  5265. --- *** ***
  5266. --- *** A primary transcript encoding a small nu ***
  5267. --- *** cleolar mRNA (SO:0000275). ***
  5268. --- ************************************************
  5269. ---
  5270. CREATE VIEW snorna_primary_transcript AS
  5271. SELECT
  5272. feature_id AS snorna_primary_transcript_id,
  5273. feature.*
  5274. FROM
  5275. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5276. 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';
  5277. --- ************************************************
  5278. --- *** relation: mature_transcript ***
  5279. --- *** relation type: VIEW ***
  5280. --- *** ***
  5281. --- *** A transcript which has undergone the nec ***
  5282. --- *** essary modifications, if any, for its fu ***
  5283. --- *** nction. In eukaryotes this includes, for ***
  5284. --- *** example, processing of introns, cleavag ***
  5285. --- *** e, base modification, and modifications ***
  5286. --- *** to the 5' and/or the 3' ends, other than ***
  5287. --- *** addition of bases. In bacteria function ***
  5288. --- *** al mRNAs are usually not modified. ***
  5289. --- ************************************************
  5290. ---
  5291. CREATE VIEW mature_transcript AS
  5292. SELECT
  5293. feature_id AS mature_transcript_id,
  5294. feature.*
  5295. FROM
  5296. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5297. 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';
  5298. --- ************************************************
  5299. --- *** relation: mrna ***
  5300. --- *** relation type: VIEW ***
  5301. --- *** ***
  5302. --- *** Messenger RNA is the intermediate molecu ***
  5303. --- *** le between DNA and protein. It includes ***
  5304. --- *** UTR and coding sequences. It does not co ***
  5305. --- *** ntain introns. ***
  5306. --- ************************************************
  5307. ---
  5308. CREATE VIEW mrna AS
  5309. SELECT
  5310. feature_id AS mrna_id,
  5311. feature.*
  5312. FROM
  5313. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5314. 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';
  5315. --- ************************************************
  5316. --- *** relation: tf_binding_site ***
  5317. --- *** relation type: VIEW ***
  5318. --- *** ***
  5319. --- *** A region of a nucleotide molecule that b ***
  5320. --- *** inds a Transcription Factor or Transcrip ***
  5321. --- *** tion Factor complex [GO:0005667]. ***
  5322. --- ************************************************
  5323. ---
  5324. CREATE VIEW tf_binding_site AS
  5325. SELECT
  5326. feature_id AS tf_binding_site_id,
  5327. feature.*
  5328. FROM
  5329. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5330. WHERE cvterm.name = 'TF_binding_site';
  5331. --- ************************************************
  5332. --- *** relation: orf ***
  5333. --- *** relation type: VIEW ***
  5334. --- *** ***
  5335. --- *** The in-frame interval between the stop c ***
  5336. --- *** odons of a reading frame which when read ***
  5337. --- *** as sequential triplets, has the potenti ***
  5338. --- *** al of encoding a sequential string of am ***
  5339. --- *** ino acids. TER(NNN)nTER. ***
  5340. --- ************************************************
  5341. ---
  5342. CREATE VIEW orf AS
  5343. SELECT
  5344. feature_id AS orf_id,
  5345. feature.*
  5346. FROM
  5347. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5348. WHERE cvterm.name = 'mini_gene' OR cvterm.name = 'rescue_mini_gene' OR cvterm.name = 'ORF';
  5349. --- ************************************************
  5350. --- *** relation: transcript_attribute ***
  5351. --- *** relation type: VIEW ***
  5352. --- *** ***
  5353. --- ************************************************
  5354. ---
  5355. CREATE VIEW transcript_attribute AS
  5356. SELECT
  5357. feature_id AS transcript_attribute_id,
  5358. feature.*
  5359. FROM
  5360. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5361. 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';
  5362. --- ************************************************
  5363. --- *** relation: foldback_element ***
  5364. --- *** relation type: VIEW ***
  5365. --- *** ***
  5366. --- *** A transposable element with extensive se ***
  5367. --- *** condary structure, characterized by larg ***
  5368. --- *** e modular imperfect long inverted repeat ***
  5369. --- *** s. ***
  5370. --- ************************************************
  5371. ---
  5372. CREATE VIEW foldback_element AS
  5373. SELECT
  5374. feature_id AS foldback_element_id,
  5375. feature.*
  5376. FROM
  5377. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5378. WHERE cvterm.name = 'foldback_element';
  5379. --- ************************************************
  5380. --- *** relation: flanking_region ***
  5381. --- *** relation type: VIEW ***
  5382. --- *** ***
  5383. --- *** The sequences extending on either side o ***
  5384. --- *** f a specific region. ***
  5385. --- ************************************************
  5386. ---
  5387. CREATE VIEW flanking_region AS
  5388. SELECT
  5389. feature_id AS flanking_region_id,
  5390. feature.*
  5391. FROM
  5392. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5393. 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';
  5394. --- ************************************************
  5395. --- *** relation: chromosome_variation ***
  5396. --- *** relation type: VIEW ***
  5397. --- *** ***
  5398. --- ************************************************
  5399. ---
  5400. CREATE VIEW chromosome_variation AS
  5401. SELECT
  5402. feature_id AS chromosome_variation_id,
  5403. feature.*
  5404. FROM
  5405. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5406. 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';
  5407. --- ************************************************
  5408. --- *** relation: internal_utr ***
  5409. --- *** relation type: VIEW ***
  5410. --- *** ***
  5411. --- *** A UTR bordered by the terminal and initi ***
  5412. --- *** al codons of two CDSs in a polycistronic ***
  5413. --- *** transcript. Every UTR is either 5', 3' ***
  5414. --- *** or internal. ***
  5415. --- ************************************************
  5416. ---
  5417. CREATE VIEW internal_utr AS
  5418. SELECT
  5419. feature_id AS internal_utr_id,
  5420. feature.*
  5421. FROM
  5422. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5423. WHERE cvterm.name = 'internal_UTR';
  5424. --- ************************************************
  5425. --- *** relation: untranslated_region_polycistronic_mrna ***
  5426. --- *** relation type: VIEW ***
  5427. --- *** ***
  5428. --- *** The untranslated sequence separating the ***
  5429. --- *** 'cistrons' of multicistronic mRNA. ***
  5430. --- ************************************************
  5431. ---
  5432. CREATE VIEW untranslated_region_polycistronic_mrna AS
  5433. SELECT
  5434. feature_id AS untranslated_region_polycistronic_mrna_id,
  5435. feature.*
  5436. FROM
  5437. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5438. WHERE cvterm.name = 'untranslated_region_polycistronic_mRNA';
  5439. --- ************************************************
  5440. --- *** relation: internal_ribosome_entry_site ***
  5441. --- *** relation type: VIEW ***
  5442. --- *** ***
  5443. --- *** Sequence element that recruits a ribosom ***
  5444. --- *** al subunit to internal mRNA for translat ***
  5445. --- *** ion initiation. ***
  5446. --- ************************************************
  5447. ---
  5448. CREATE VIEW internal_ribosome_entry_site AS
  5449. SELECT
  5450. feature_id AS internal_ribosome_entry_site_id,
  5451. feature.*
  5452. FROM
  5453. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5454. WHERE cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'internal_ribosome_entry_site';
  5455. --- ************************************************
  5456. --- *** relation: polyadenylated ***
  5457. --- *** relation type: VIEW ***
  5458. --- *** ***
  5459. --- *** A attribute describing the addition of a ***
  5460. --- *** poly A tail to the 3' end of a mRNA mol ***
  5461. --- *** ecule. ***
  5462. --- ************************************************
  5463. ---
  5464. CREATE VIEW polyadenylated AS
  5465. SELECT
  5466. feature_id AS polyadenylated_id,
  5467. feature.*
  5468. FROM
  5469. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5470. WHERE cvterm.name = 'polyadenylated';
  5471. --- ************************************************
  5472. --- *** relation: sequence_length_variation ***
  5473. --- *** relation type: VIEW ***
  5474. --- *** ***
  5475. --- ************************************************
  5476. ---
  5477. CREATE VIEW sequence_length_variation AS
  5478. SELECT
  5479. feature_id AS sequence_length_variation_id,
  5480. feature.*
  5481. FROM
  5482. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5483. WHERE cvterm.name = 'simple_sequence_length_variation' OR cvterm.name = 'sequence_length_variation';
  5484. --- ************************************************
  5485. --- *** relation: modified_rna_base_feature ***
  5486. --- *** relation type: VIEW ***
  5487. --- *** ***
  5488. --- *** A post_transcriptionally modified base. ***
  5489. --- ************************************************
  5490. ---
  5491. CREATE VIEW modified_rna_base_feature AS
  5492. SELECT
  5493. feature_id AS modified_rna_base_feature_id,
  5494. feature.*
  5495. FROM
  5496. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5497. 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';
  5498. --- ************************************************
  5499. --- *** relation: rrna ***
  5500. --- *** relation type: VIEW ***
  5501. --- *** ***
  5502. --- *** RNA that comprises part of a ribosome, a ***
  5503. --- *** nd that can provide both structural scaf ***
  5504. --- *** folding and catalytic activity. ***
  5505. --- ************************************************
  5506. ---
  5507. CREATE VIEW rrna AS
  5508. SELECT
  5509. feature_id AS rrna_id,
  5510. feature.*
  5511. FROM
  5512. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5513. 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';
  5514. --- ************************************************
  5515. --- *** relation: trna ***
  5516. --- *** relation type: VIEW ***
  5517. --- *** ***
  5518. --- *** Transfer RNA (tRNA) molecules are approx ***
  5519. --- *** imately 80 nucleotides in length. Their ***
  5520. --- *** secondary structure includes four short ***
  5521. --- *** double-helical elements and three loops ***
  5522. --- *** (D, anti-codon, and T loops). Further hy ***
  5523. --- *** drogen bonds mediate the characteristic ***
  5524. --- *** L-shaped molecular structure. Transfer R ***
  5525. --- *** NAs have two regions of fundamental func ***
  5526. --- *** tional importance: the anti-codon, which ***
  5527. --- *** is responsible for specific mRNA codon ***
  5528. --- *** recognition, and the 3' end, to which th ***
  5529. --- *** e tRNA's corresponding amino acid is att ***
  5530. --- *** ached (by aminoacyl-tRNA synthetases). T ***
  5531. --- *** ransfer RNAs cope with the degeneracy of ***
  5532. --- *** the genetic code in two manners: having ***
  5533. --- *** more than one tRNA (with a specific ant ***
  5534. --- *** i-codon) for a particular amino acid; an ***
  5535. --- *** d 'wobble' base-pairing, i.e. permitting ***
  5536. --- *** non-standard base-pairing at the 3rd an ***
  5537. --- *** ti-codon position. ***
  5538. --- ************************************************
  5539. ---
  5540. CREATE VIEW trna AS
  5541. SELECT
  5542. feature_id AS trna_id,
  5543. feature.*
  5544. FROM
  5545. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5546. 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';
  5547. --- ************************************************
  5548. --- *** relation: alanyl_trna ***
  5549. --- *** relation type: VIEW ***
  5550. --- *** ***
  5551. --- *** A tRNA sequence that has an alanine anti ***
  5552. --- *** codon, and a 3' alanine binding region. ***
  5553. --- ************************************************
  5554. ---
  5555. CREATE VIEW alanyl_trna AS
  5556. SELECT
  5557. feature_id AS alanyl_trna_id,
  5558. feature.*
  5559. FROM
  5560. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5561. WHERE cvterm.name = 'alanyl_tRNA';
  5562. --- ************************************************
  5563. --- *** relation: rrna_small_subunit_primary_transcript ***
  5564. --- *** relation type: VIEW ***
  5565. --- *** ***
  5566. --- *** A primary transcript encoding a small ri ***
  5567. --- *** bosomal subunit RNA. ***
  5568. --- ************************************************
  5569. ---
  5570. CREATE VIEW rrna_small_subunit_primary_transcript AS
  5571. SELECT
  5572. feature_id AS rrna_small_subunit_primary_transcript_id,
  5573. feature.*
  5574. FROM
  5575. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5576. WHERE cvterm.name = 'rRNA_small_subunit_primary_transcript';
  5577. --- ************************************************
  5578. --- *** relation: asparaginyl_trna ***
  5579. --- *** relation type: VIEW ***
  5580. --- *** ***
  5581. --- *** A tRNA sequence that has an asparagine a ***
  5582. --- *** nticodon, and a 3' asparagine binding re ***
  5583. --- *** gion. ***
  5584. --- ************************************************
  5585. ---
  5586. CREATE VIEW asparaginyl_trna AS
  5587. SELECT
  5588. feature_id AS asparaginyl_trna_id,
  5589. feature.*
  5590. FROM
  5591. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5592. WHERE cvterm.name = 'asparaginyl_tRNA';
  5593. --- ************************************************
  5594. --- *** relation: aspartyl_trna ***
  5595. --- *** relation type: VIEW ***
  5596. --- *** ***
  5597. --- *** A tRNA sequence that has an aspartic aci ***
  5598. --- *** d anticodon, and a 3' aspartic acid bind ***
  5599. --- *** ing region. ***
  5600. --- ************************************************
  5601. ---
  5602. CREATE VIEW aspartyl_trna AS
  5603. SELECT
  5604. feature_id AS aspartyl_trna_id,
  5605. feature.*
  5606. FROM
  5607. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5608. WHERE cvterm.name = 'aspartyl_tRNA';
  5609. --- ************************************************
  5610. --- *** relation: cysteinyl_trna ***
  5611. --- *** relation type: VIEW ***
  5612. --- *** ***
  5613. --- *** A tRNA sequence that has a cysteine anti ***
  5614. --- *** codon, and a 3' cysteine binding region. ***
  5615. --- ************************************************
  5616. ---
  5617. CREATE VIEW cysteinyl_trna AS
  5618. SELECT
  5619. feature_id AS cysteinyl_trna_id,
  5620. feature.*
  5621. FROM
  5622. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5623. WHERE cvterm.name = 'cysteinyl_tRNA';
  5624. --- ************************************************
  5625. --- *** relation: glutaminyl_trna ***
  5626. --- *** relation type: VIEW ***
  5627. --- *** ***
  5628. --- *** A tRNA sequence that has a glutamine ant ***
  5629. --- *** icodon, and a 3' glutamine binding regio ***
  5630. --- *** n. ***
  5631. --- ************************************************
  5632. ---
  5633. CREATE VIEW glutaminyl_trna AS
  5634. SELECT
  5635. feature_id AS glutaminyl_trna_id,
  5636. feature.*
  5637. FROM
  5638. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5639. WHERE cvterm.name = 'glutaminyl_tRNA';
  5640. --- ************************************************
  5641. --- *** relation: glutamyl_trna ***
  5642. --- *** relation type: VIEW ***
  5643. --- *** ***
  5644. --- *** A tRNA sequence that has a glutamic acid ***
  5645. --- *** anticodon, and a 3' glutamic acid bindi ***
  5646. --- *** ng region. ***
  5647. --- ************************************************
  5648. ---
  5649. CREATE VIEW glutamyl_trna AS
  5650. SELECT
  5651. feature_id AS glutamyl_trna_id,
  5652. feature.*
  5653. FROM
  5654. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5655. WHERE cvterm.name = 'glutamyl_tRNA';
  5656. --- ************************************************
  5657. --- *** relation: glycyl_trna ***
  5658. --- *** relation type: VIEW ***
  5659. --- *** ***
  5660. --- *** A tRNA sequence that has a glycine antic ***
  5661. --- *** odon, and a 3' glycine binding region. ***
  5662. --- ************************************************
  5663. ---
  5664. CREATE VIEW glycyl_trna AS
  5665. SELECT
  5666. feature_id AS glycyl_trna_id,
  5667. feature.*
  5668. FROM
  5669. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5670. WHERE cvterm.name = 'glycyl_tRNA';
  5671. --- ************************************************
  5672. --- *** relation: histidyl_trna ***
  5673. --- *** relation type: VIEW ***
  5674. --- *** ***
  5675. --- *** A tRNA sequence that has a histidine ant ***
  5676. --- *** icodon, and a 3' histidine binding regio ***
  5677. --- *** n. ***
  5678. --- ************************************************
  5679. ---
  5680. CREATE VIEW histidyl_trna AS
  5681. SELECT
  5682. feature_id AS histidyl_trna_id,
  5683. feature.*
  5684. FROM
  5685. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5686. WHERE cvterm.name = 'histidyl_tRNA';
  5687. --- ************************************************
  5688. --- *** relation: isoleucyl_trna ***
  5689. --- *** relation type: VIEW ***
  5690. --- *** ***
  5691. --- *** A tRNA sequence that has an isoleucine a ***
  5692. --- *** nticodon, and a 3' isoleucine binding re ***
  5693. --- *** gion. ***
  5694. --- ************************************************
  5695. ---
  5696. CREATE VIEW isoleucyl_trna AS
  5697. SELECT
  5698. feature_id AS isoleucyl_trna_id,
  5699. feature.*
  5700. FROM
  5701. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5702. WHERE cvterm.name = 'isoleucyl_tRNA';
  5703. --- ************************************************
  5704. --- *** relation: leucyl_trna ***
  5705. --- *** relation type: VIEW ***
  5706. --- *** ***
  5707. --- *** A tRNA sequence that has a leucine antic ***
  5708. --- *** odon, and a 3' leucine binding region. ***
  5709. --- ************************************************
  5710. ---
  5711. CREATE VIEW leucyl_trna AS
  5712. SELECT
  5713. feature_id AS leucyl_trna_id,
  5714. feature.*
  5715. FROM
  5716. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5717. WHERE cvterm.name = 'leucyl_tRNA';
  5718. --- ************************************************
  5719. --- *** relation: lysyl_trna ***
  5720. --- *** relation type: VIEW ***
  5721. --- *** ***
  5722. --- *** A tRNA sequence that has a lysine antico ***
  5723. --- *** don, and a 3' lysine binding region. ***
  5724. --- ************************************************
  5725. ---
  5726. CREATE VIEW lysyl_trna AS
  5727. SELECT
  5728. feature_id AS lysyl_trna_id,
  5729. feature.*
  5730. FROM
  5731. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5732. WHERE cvterm.name = 'lysyl_tRNA';
  5733. --- ************************************************
  5734. --- *** relation: methionyl_trna ***
  5735. --- *** relation type: VIEW ***
  5736. --- *** ***
  5737. --- *** A tRNA sequence that has a methionine an ***
  5738. --- *** ticodon, and a 3' methionine binding reg ***
  5739. --- *** ion. ***
  5740. --- ************************************************
  5741. ---
  5742. CREATE VIEW methionyl_trna AS
  5743. SELECT
  5744. feature_id AS methionyl_trna_id,
  5745. feature.*
  5746. FROM
  5747. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5748. WHERE cvterm.name = 'methionyl_tRNA';
  5749. --- ************************************************
  5750. --- *** relation: phenylalanyl_trna ***
  5751. --- *** relation type: VIEW ***
  5752. --- *** ***
  5753. --- *** A tRNA sequence that has a phenylalanine ***
  5754. --- *** anticodon, and a 3' phenylalanine bindi ***
  5755. --- *** ng region. ***
  5756. --- ************************************************
  5757. ---
  5758. CREATE VIEW phenylalanyl_trna AS
  5759. SELECT
  5760. feature_id AS phenylalanyl_trna_id,
  5761. feature.*
  5762. FROM
  5763. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5764. WHERE cvterm.name = 'phenylalanyl_tRNA';
  5765. --- ************************************************
  5766. --- *** relation: prolyl_trna ***
  5767. --- *** relation type: VIEW ***
  5768. --- *** ***
  5769. --- *** A tRNA sequence that has a proline antic ***
  5770. --- *** odon, and a 3' proline binding region. ***
  5771. --- ************************************************
  5772. ---
  5773. CREATE VIEW prolyl_trna AS
  5774. SELECT
  5775. feature_id AS prolyl_trna_id,
  5776. feature.*
  5777. FROM
  5778. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5779. WHERE cvterm.name = 'prolyl_tRNA';
  5780. --- ************************************************
  5781. --- *** relation: seryl_trna ***
  5782. --- *** relation type: VIEW ***
  5783. --- *** ***
  5784. --- *** A tRNA sequence that has a serine antico ***
  5785. --- *** don, and a 3' serine binding region. ***
  5786. --- ************************************************
  5787. ---
  5788. CREATE VIEW seryl_trna AS
  5789. SELECT
  5790. feature_id AS seryl_trna_id,
  5791. feature.*
  5792. FROM
  5793. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5794. WHERE cvterm.name = 'seryl_tRNA';
  5795. --- ************************************************
  5796. --- *** relation: threonyl_trna ***
  5797. --- *** relation type: VIEW ***
  5798. --- *** ***
  5799. --- *** A tRNA sequence that has a threonine ant ***
  5800. --- *** icodon, and a 3' threonine binding regio ***
  5801. --- *** n. ***
  5802. --- ************************************************
  5803. ---
  5804. CREATE VIEW threonyl_trna AS
  5805. SELECT
  5806. feature_id AS threonyl_trna_id,
  5807. feature.*
  5808. FROM
  5809. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5810. WHERE cvterm.name = 'threonyl_tRNA';
  5811. --- ************************************************
  5812. --- *** relation: tryptophanyl_trna ***
  5813. --- *** relation type: VIEW ***
  5814. --- *** ***
  5815. --- *** A tRNA sequence that has a tryptophan an ***
  5816. --- *** ticodon, and a 3' tryptophan binding reg ***
  5817. --- *** ion. ***
  5818. --- ************************************************
  5819. ---
  5820. CREATE VIEW tryptophanyl_trna AS
  5821. SELECT
  5822. feature_id AS tryptophanyl_trna_id,
  5823. feature.*
  5824. FROM
  5825. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5826. WHERE cvterm.name = 'tryptophanyl_tRNA';
  5827. --- ************************************************
  5828. --- *** relation: tyrosyl_trna ***
  5829. --- *** relation type: VIEW ***
  5830. --- *** ***
  5831. --- *** A tRNA sequence that has a tyrosine anti ***
  5832. --- *** codon, and a 3' tyrosine binding region. ***
  5833. --- ************************************************
  5834. ---
  5835. CREATE VIEW tyrosyl_trna AS
  5836. SELECT
  5837. feature_id AS tyrosyl_trna_id,
  5838. feature.*
  5839. FROM
  5840. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5841. WHERE cvterm.name = 'tyrosyl_tRNA';
  5842. --- ************************************************
  5843. --- *** relation: valyl_trna ***
  5844. --- *** relation type: VIEW ***
  5845. --- *** ***
  5846. --- *** A tRNA sequence that has a valine antico ***
  5847. --- *** don, and a 3' valine binding region. ***
  5848. --- ************************************************
  5849. ---
  5850. CREATE VIEW valyl_trna AS
  5851. SELECT
  5852. feature_id AS valyl_trna_id,
  5853. feature.*
  5854. FROM
  5855. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5856. WHERE cvterm.name = 'valyl_tRNA';
  5857. --- ************************************************
  5858. --- *** relation: snrna ***
  5859. --- *** relation type: VIEW ***
  5860. --- *** ***
  5861. --- *** A small nuclear RNA molecule involved in ***
  5862. --- *** pre-mRNA splicing and processing. ***
  5863. --- ************************************************
  5864. ---
  5865. CREATE VIEW snrna AS
  5866. SELECT
  5867. feature_id AS snrna_id,
  5868. feature.*
  5869. FROM
  5870. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5871. 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';
  5872. --- ************************************************
  5873. --- *** relation: snorna ***
  5874. --- *** relation type: VIEW ***
  5875. --- *** ***
  5876. --- *** A snoRNA (small nucleolar RNA) is any on ***
  5877. --- *** e of a class of small RNAs that are asso ***
  5878. --- *** ciated with the eukaryotic nucleus as co ***
  5879. --- *** mponents of small nucleolar ribonucleopr ***
  5880. --- *** oteins. They participate in the processi ***
  5881. --- *** ng or modifications of many RNAs, mostly ***
  5882. --- *** ribosomal RNAs (rRNAs) though snoRNAs a ***
  5883. --- *** re also known to target other classes of ***
  5884. --- *** RNA, including spliceosomal RNAs, tRNAs ***
  5885. --- *** , and mRNAs via a stretch of sequence th ***
  5886. --- *** at is complementary to a sequence in the ***
  5887. --- *** targeted RNA. ***
  5888. --- ************************************************
  5889. ---
  5890. CREATE VIEW snorna AS
  5891. SELECT
  5892. feature_id AS snorna_id,
  5893. feature.*
  5894. FROM
  5895. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5896. 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';
  5897. --- ************************************************
  5898. --- *** relation: mirna ***
  5899. --- *** relation type: VIEW ***
  5900. --- *** ***
  5901. --- *** Small, ~22-nt, RNA molecule that is the ***
  5902. --- *** endogenous transcript of a miRNA gene. M ***
  5903. --- *** icro RNAs are produced from precursor mo ***
  5904. --- *** lecules (SO:0000647) that can form local ***
  5905. --- *** hairpin structures, which ordinarily ar ***
  5906. --- *** e processed (via the Dicer pathway) such ***
  5907. --- *** that a single miRNA molecule accumulate ***
  5908. --- *** s from one arm of a hairpin precursor mo ***
  5909. --- *** lecule. Micro RNAs may trigger the cleav ***
  5910. --- *** age of their target molecules or act as ***
  5911. --- *** translational repressors. ***
  5912. --- ************************************************
  5913. ---
  5914. CREATE VIEW mirna AS
  5915. SELECT
  5916. feature_id AS mirna_id,
  5917. feature.*
  5918. FROM
  5919. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5920. WHERE cvterm.name = 'miRNA';
  5921. --- ************************************************
  5922. --- *** relation: bound_by_factor ***
  5923. --- *** relation type: VIEW ***
  5924. --- *** ***
  5925. --- *** An attribute describing a sequence that ***
  5926. --- *** is bound by another molecule. ***
  5927. --- ************************************************
  5928. ---
  5929. CREATE VIEW bound_by_factor AS
  5930. SELECT
  5931. feature_id AS bound_by_factor_id,
  5932. feature.*
  5933. FROM
  5934. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5935. WHERE cvterm.name = 'bound_by_protein' OR cvterm.name = 'bound_by_nucleic_acid' OR cvterm.name = 'bound_by_factor';
  5936. --- ************************************************
  5937. --- *** relation: transcript_bound_by_nucleic_acid ***
  5938. --- *** relation type: VIEW ***
  5939. --- *** ***
  5940. --- *** A transcript that is bound by a nucleic ***
  5941. --- *** acid. ***
  5942. --- ************************************************
  5943. ---
  5944. CREATE VIEW transcript_bound_by_nucleic_acid AS
  5945. SELECT
  5946. feature_id AS transcript_bound_by_nucleic_acid_id,
  5947. feature.*
  5948. FROM
  5949. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5950. WHERE cvterm.name = 'transcript_bound_by_nucleic_acid';
  5951. --- ************************************************
  5952. --- *** relation: transcript_bound_by_protein ***
  5953. --- *** relation type: VIEW ***
  5954. --- *** ***
  5955. --- *** A transcript that is bound by a protein. ***
  5956. --- ************************************************
  5957. ---
  5958. CREATE VIEW transcript_bound_by_protein AS
  5959. SELECT
  5960. feature_id AS transcript_bound_by_protein_id,
  5961. feature.*
  5962. FROM
  5963. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5964. WHERE cvterm.name = 'transcript_bound_by_protein';
  5965. --- ************************************************
  5966. --- *** relation: engineered_gene ***
  5967. --- *** relation type: VIEW ***
  5968. --- *** ***
  5969. --- *** A gene that is engineered. ***
  5970. --- ************************************************
  5971. ---
  5972. CREATE VIEW engineered_gene AS
  5973. SELECT
  5974. feature_id AS engineered_gene_id,
  5975. feature.*
  5976. FROM
  5977. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5978. 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';
  5979. --- ************************************************
  5980. --- *** relation: engineered_foreign_gene ***
  5981. --- *** relation type: VIEW ***
  5982. --- *** ***
  5983. --- *** A gene that is engineered and foreign. ***
  5984. --- ************************************************
  5985. ---
  5986. CREATE VIEW engineered_foreign_gene AS
  5987. SELECT
  5988. feature_id AS engineered_foreign_gene_id,
  5989. feature.*
  5990. FROM
  5991. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5992. WHERE cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_foreign_gene';
  5993. --- ************************************************
  5994. --- *** relation: mrna_with_minus_1_frameshift ***
  5995. --- *** relation type: VIEW ***
  5996. --- *** ***
  5997. --- *** An mRNA with a minus 1 frameshift. ***
  5998. --- ************************************************
  5999. ---
  6000. CREATE VIEW mrna_with_minus_1_frameshift AS
  6001. SELECT
  6002. feature_id AS mrna_with_minus_1_frameshift_id,
  6003. feature.*
  6004. FROM
  6005. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6006. WHERE cvterm.name = 'mRNA_with_minus_1_frameshift';
  6007. --- ************************************************
  6008. --- *** relation: engineered_foreign_transposable_element_gene ***
  6009. --- *** relation type: VIEW ***
  6010. --- *** ***
  6011. --- *** A transposable_element that is engineere ***
  6012. --- *** d and foreign. ***
  6013. --- ************************************************
  6014. ---
  6015. CREATE VIEW engineered_foreign_transposable_element_gene AS
  6016. SELECT
  6017. feature_id AS engineered_foreign_transposable_element_gene_id,
  6018. feature.*
  6019. FROM
  6020. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6021. WHERE cvterm.name = 'engineered_foreign_transposable_element_gene';
  6022. --- ************************************************
  6023. --- *** relation: foreign_gene ***
  6024. --- *** relation type: VIEW ***
  6025. --- *** ***
  6026. --- *** A gene that is foreign. ***
  6027. --- ************************************************
  6028. ---
  6029. CREATE VIEW foreign_gene AS
  6030. SELECT
  6031. feature_id AS foreign_gene_id,
  6032. feature.*
  6033. FROM
  6034. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6035. WHERE cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'foreign_gene';
  6036. --- ************************************************
  6037. --- *** relation: long_terminal_repeat ***
  6038. --- *** relation type: VIEW ***
  6039. --- *** ***
  6040. --- *** A sequence directly repeated at both end ***
  6041. --- *** s of a defined sequence, of the sort typ ***
  6042. --- *** ically found in retroviruses. ***
  6043. --- ************************************************
  6044. ---
  6045. CREATE VIEW long_terminal_repeat AS
  6046. SELECT
  6047. feature_id AS long_terminal_repeat_id,
  6048. feature.*
  6049. FROM
  6050. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6051. WHERE cvterm.name = 'five_prime_LTR' OR cvterm.name = 'three_prime_LTR' OR cvterm.name = 'solo_LTR' OR cvterm.name = 'long_terminal_repeat';
  6052. --- ************************************************
  6053. --- *** relation: fusion_gene ***
  6054. --- *** relation type: VIEW ***
  6055. --- *** ***
  6056. --- *** A gene that is a fusion. ***
  6057. --- ************************************************
  6058. ---
  6059. CREATE VIEW fusion_gene AS
  6060. SELECT
  6061. feature_id AS fusion_gene_id,
  6062. feature.*
  6063. FROM
  6064. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6065. WHERE cvterm.name = 'engineered_fusion_gene' OR cvterm.name = 'fusion_gene';
  6066. --- ************************************************
  6067. --- *** relation: engineered_fusion_gene ***
  6068. --- *** relation type: VIEW ***
  6069. --- *** ***
  6070. --- *** A fusion gene that is engineered. ***
  6071. --- ************************************************
  6072. ---
  6073. CREATE VIEW engineered_fusion_gene AS
  6074. SELECT
  6075. feature_id AS engineered_fusion_gene_id,
  6076. feature.*
  6077. FROM
  6078. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6079. WHERE cvterm.name = 'engineered_fusion_gene';
  6080. --- ************************************************
  6081. --- *** relation: microsatellite ***
  6082. --- *** relation type: VIEW ***
  6083. --- *** ***
  6084. --- *** A repeat_region containing repeat_units ***
  6085. --- *** (2 to 4 bp) that is repeated multiple ti ***
  6086. --- *** mes in tandem. ***
  6087. --- ************************************************
  6088. ---
  6089. CREATE VIEW microsatellite AS
  6090. SELECT
  6091. feature_id AS microsatellite_id,
  6092. feature.*
  6093. FROM
  6094. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6095. 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';
  6096. --- ************************************************
  6097. --- *** relation: dinucleotide_repeat_microsatellite_feature ***
  6098. --- *** relation type: VIEW ***
  6099. --- *** ***
  6100. --- ************************************************
  6101. ---
  6102. CREATE VIEW dinucleotide_repeat_microsatellite_feature AS
  6103. SELECT
  6104. feature_id AS dinucleotide_repeat_microsatellite_feature_id,
  6105. feature.*
  6106. FROM
  6107. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6108. WHERE cvterm.name = 'dinucleotide_repeat_microsatellite_feature';
  6109. --- ************************************************
  6110. --- *** relation: trinuc_repeat_microsat ***
  6111. --- *** relation type: VIEW ***
  6112. --- *** ***
  6113. --- ************************************************
  6114. ---
  6115. CREATE VIEW trinuc_repeat_microsat AS
  6116. SELECT
  6117. feature_id AS trinuc_repeat_microsat_id,
  6118. feature.*
  6119. FROM
  6120. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6121. WHERE cvterm.name = 'trinucleotide_repeat_microsatellite_feature';
  6122. --- ************************************************
  6123. --- *** relation: engineered_foreign_repetitive_element ***
  6124. --- *** relation type: VIEW ***
  6125. --- *** ***
  6126. --- *** A repetitive element that is engineered ***
  6127. --- *** and foreign. ***
  6128. --- ************************************************
  6129. ---
  6130. CREATE VIEW engineered_foreign_repetitive_element AS
  6131. SELECT
  6132. feature_id AS engineered_foreign_repetitive_element_id,
  6133. feature.*
  6134. FROM
  6135. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6136. WHERE cvterm.name = 'engineered_foreign_repetitive_element';
  6137. --- ************************************************
  6138. --- *** relation: inverted_repeat ***
  6139. --- *** relation type: VIEW ***
  6140. --- *** ***
  6141. --- *** The sequence is complementarily repeated ***
  6142. --- *** on the opposite strand. It is a palindr ***
  6143. --- *** ome, and it may, or may not be hyphenate ***
  6144. --- *** d. Examples: GCTGATCAGC, or GCTGA-----TC ***
  6145. --- *** AGC. ***
  6146. --- ************************************************
  6147. ---
  6148. CREATE VIEW inverted_repeat AS
  6149. SELECT
  6150. feature_id AS inverted_repeat_id,
  6151. feature.*
  6152. FROM
  6153. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6154. 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';
  6155. --- ************************************************
  6156. --- *** relation: u12_intron ***
  6157. --- *** relation type: VIEW ***
  6158. --- *** ***
  6159. --- *** A type of spliceosomal intron spliced by ***
  6160. --- *** the U12 spliceosome, that includes U11, ***
  6161. --- *** U12, U4atac/U6atac and U5 snRNAs. ***
  6162. --- ************************************************
  6163. ---
  6164. CREATE VIEW u12_intron AS
  6165. SELECT
  6166. feature_id AS u12_intron_id,
  6167. feature.*
  6168. FROM
  6169. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6170. WHERE cvterm.name = 'U12_intron';
  6171. --- ************************************************
  6172. --- *** relation: origin_of_replication ***
  6173. --- *** relation type: VIEW ***
  6174. --- *** ***
  6175. --- *** The origin of replication; starting site ***
  6176. --- *** for duplication of a nucleic acid molec ***
  6177. --- *** ule to give two identical copies. ***
  6178. --- ************************************************
  6179. ---
  6180. CREATE VIEW origin_of_replication AS
  6181. SELECT
  6182. feature_id AS origin_of_replication_id,
  6183. feature.*
  6184. FROM
  6185. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6186. 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';
  6187. --- ************************************************
  6188. --- *** relation: d_loop ***
  6189. --- *** relation type: VIEW ***
  6190. --- *** ***
  6191. --- *** Displacement loop; a region within mitoc ***
  6192. --- *** hondrial DNA in which a short stretch of ***
  6193. --- *** RNA is paired with one strand of DNA, d ***
  6194. --- *** isplacing the original partner DNA stran ***
  6195. --- *** d in this region; also used to describe ***
  6196. --- *** the displacement of a region of one stra ***
  6197. --- *** nd of duplex DNA by a single stranded in ***
  6198. --- *** vader in the reaction catalyzed by RecA ***
  6199. --- *** protein. ***
  6200. --- ************************************************
  6201. ---
  6202. CREATE VIEW d_loop AS
  6203. SELECT
  6204. feature_id AS d_loop_id,
  6205. feature.*
  6206. FROM
  6207. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6208. WHERE cvterm.name = 'D_loop';
  6209. --- ************************************************
  6210. --- *** relation: recombination_feature ***
  6211. --- *** relation type: VIEW ***
  6212. --- *** ***
  6213. --- ************************************************
  6214. ---
  6215. CREATE VIEW recombination_feature AS
  6216. SELECT
  6217. feature_id AS recombination_feature_id,
  6218. feature.*
  6219. FROM
  6220. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6221. 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';
  6222. --- ************************************************
  6223. --- *** relation: specific_recombination_site ***
  6224. --- *** relation type: VIEW ***
  6225. --- *** ***
  6226. --- ************************************************
  6227. ---
  6228. CREATE VIEW specific_recombination_site AS
  6229. SELECT
  6230. feature_id AS specific_recombination_site_id,
  6231. feature.*
  6232. FROM
  6233. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6234. 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';
  6235. --- ************************************************
  6236. --- *** relation: recombination_feature_of_rearranged_gene ***
  6237. --- *** relation type: VIEW ***
  6238. --- *** ***
  6239. --- ************************************************
  6240. ---
  6241. CREATE VIEW recombination_feature_of_rearranged_gene AS
  6242. SELECT
  6243. feature_id AS recombination_feature_of_rearranged_gene_id,
  6244. feature.*
  6245. FROM
  6246. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6247. 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';
  6248. --- ************************************************
  6249. --- *** relation: vertebrate_immune_system_gene_recombination_feature ***
  6250. --- *** relation type: VIEW ***
  6251. --- *** ***
  6252. --- ************************************************
  6253. ---
  6254. CREATE VIEW vertebrate_immune_system_gene_recombination_feature AS
  6255. SELECT
  6256. feature_id AS vertebrate_immune_system_gene_recombination_feature_id,
  6257. feature.*
  6258. FROM
  6259. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6260. 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';
  6261. --- ************************************************
  6262. --- *** relation: j_gene_recombination_feature ***
  6263. --- *** relation type: VIEW ***
  6264. --- *** ***
  6265. --- *** Recombination signal including J-heptame ***
  6266. --- *** r, J-spacer and J-nonamer in 5' of J-reg ***
  6267. --- *** ion of a J-gene or J-sequence. ***
  6268. --- ************************************************
  6269. ---
  6270. CREATE VIEW j_gene_recombination_feature AS
  6271. SELECT
  6272. feature_id AS j_gene_recombination_feature_id,
  6273. feature.*
  6274. FROM
  6275. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6276. WHERE cvterm.name = 'J_gene_recombination_feature';
  6277. --- ************************************************
  6278. --- *** relation: clip ***
  6279. --- *** relation type: VIEW ***
  6280. --- *** ***
  6281. --- *** Part of the primary transcript that is c ***
  6282. --- *** lipped off during processing. ***
  6283. --- ************************************************
  6284. ---
  6285. CREATE VIEW clip AS
  6286. SELECT
  6287. feature_id AS clip_id,
  6288. feature.*
  6289. FROM
  6290. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6291. WHERE cvterm.name = 'five_prime_clip' OR cvterm.name = 'three_prime_clip' OR cvterm.name = 'clip';
  6292. --- ************************************************
  6293. --- *** relation: modified_base ***
  6294. --- *** relation type: VIEW ***
  6295. --- *** ***
  6296. --- *** A modified nucleotide, i.e. a nucleotide ***
  6297. --- *** other than A, T, C. G. ***
  6298. --- ************************************************
  6299. ---
  6300. CREATE VIEW modified_base AS
  6301. SELECT
  6302. feature_id AS modified_base_id,
  6303. feature.*
  6304. FROM
  6305. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6306. WHERE cvterm.name = 'methylated_base_feature' OR cvterm.name = 'methylated_C' OR cvterm.name = 'methylated_A' OR cvterm.name = 'modified_base';
  6307. --- ************************************************
  6308. --- *** relation: methylated_base_feature ***
  6309. --- *** relation type: VIEW ***
  6310. --- *** ***
  6311. --- *** A nucleotide modified by methylation. ***
  6312. --- ************************************************
  6313. ---
  6314. CREATE VIEW methylated_base_feature AS
  6315. SELECT
  6316. feature_id AS methylated_base_feature_id,
  6317. feature.*
  6318. FROM
  6319. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6320. WHERE cvterm.name = 'methylated_C' OR cvterm.name = 'methylated_A' OR cvterm.name = 'methylated_base_feature';
  6321. --- ************************************************
  6322. --- *** relation: cpg_island ***
  6323. --- *** relation type: VIEW ***
  6324. --- *** ***
  6325. --- *** Regions of a few hundred to a few thousa ***
  6326. --- *** nd bases in vertebrate genomes that are ***
  6327. --- *** relatively GC and CpG rich; they are typ ***
  6328. --- *** ically unmethylated and often found near ***
  6329. --- *** the 5' ends of genes. ***
  6330. --- ************************************************
  6331. ---
  6332. CREATE VIEW cpg_island AS
  6333. SELECT
  6334. feature_id AS cpg_island_id,
  6335. feature.*
  6336. FROM
  6337. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6338. WHERE cvterm.name = 'CpG_island';
  6339. --- ************************************************
  6340. --- *** relation: experimentally_determined ***
  6341. --- *** relation type: VIEW ***
  6342. --- *** ***
  6343. --- *** Attribute to describe a feature that has ***
  6344. --- *** been experimentally verified. ***
  6345. --- ************************************************
  6346. ---
  6347. CREATE VIEW experimentally_determined AS
  6348. SELECT
  6349. feature_id AS experimentally_determined_id,
  6350. feature.*
  6351. FROM
  6352. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6353. WHERE cvterm.name = 'experimentally_determined';
  6354. --- ************************************************
  6355. --- *** relation: stem_loop ***
  6356. --- *** relation type: VIEW ***
  6357. --- *** ***
  6358. --- *** A double-helical region of nucleic acid ***
  6359. --- *** formed by base-pairing between adjacent ***
  6360. --- *** (inverted) complementary sequences. ***
  6361. --- ************************************************
  6362. ---
  6363. CREATE VIEW stem_loop AS
  6364. SELECT
  6365. feature_id AS stem_loop_id,
  6366. feature.*
  6367. FROM
  6368. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6369. WHERE cvterm.name = 'tetraloop' OR cvterm.name = 'stem_loop';
  6370. --- ************************************************
  6371. --- *** relation: direct_repeat ***
  6372. --- *** relation type: VIEW ***
  6373. --- *** ***
  6374. --- *** A repeat where the same sequence is repe ***
  6375. --- *** ated in the same direction. Example: GCT ***
  6376. --- *** GA-----GCTGA. ***
  6377. --- ************************************************
  6378. ---
  6379. CREATE VIEW direct_repeat AS
  6380. SELECT
  6381. feature_id AS direct_repeat_id,
  6382. feature.*
  6383. FROM
  6384. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6385. WHERE cvterm.name = 'target_site_duplication' OR cvterm.name = 'CRISPR' OR cvterm.name = 'direct_repeat';
  6386. --- ************************************************
  6387. --- *** relation: tss ***
  6388. --- *** relation type: VIEW ***
  6389. --- *** ***
  6390. --- *** The first base where RNA polymerase begi ***
  6391. --- *** ns to synthesize the RNA transcript. ***
  6392. --- ************************************************
  6393. ---
  6394. CREATE VIEW tss AS
  6395. SELECT
  6396. feature_id AS tss_id,
  6397. feature.*
  6398. FROM
  6399. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6400. WHERE cvterm.name = 'major_TSS' OR cvterm.name = 'minor_TSS' OR cvterm.name = 'TSS';
  6401. --- ************************************************
  6402. --- *** relation: cds ***
  6403. --- *** relation type: VIEW ***
  6404. --- *** ***
  6405. --- *** A contiguous sequence which begins with, ***
  6406. --- *** and includes, a start codon and ends wi ***
  6407. --- *** th, and includes, a stop codon. ***
  6408. --- ************************************************
  6409. ---
  6410. CREATE VIEW cds AS
  6411. SELECT
  6412. feature_id AS cds_id,
  6413. feature.*
  6414. FROM
  6415. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6416. 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';
  6417. --- ************************************************
  6418. --- *** relation: cdna_clone ***
  6419. --- *** relation type: VIEW ***
  6420. --- *** ***
  6421. --- *** Complementary DNA; A piece of DNA copied ***
  6422. --- *** from an mRNA and spliced into a vector ***
  6423. --- *** for propagation in a suitable host. ***
  6424. --- ************************************************
  6425. ---
  6426. CREATE VIEW cdna_clone AS
  6427. SELECT
  6428. feature_id AS cdna_clone_id,
  6429. feature.*
  6430. FROM
  6431. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6432. 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';
  6433. --- ************************************************
  6434. --- *** relation: start_codon ***
  6435. --- *** relation type: VIEW ***
  6436. --- *** ***
  6437. --- *** First codon to be translated by a riboso ***
  6438. --- *** me. ***
  6439. --- ************************************************
  6440. ---
  6441. CREATE VIEW start_codon AS
  6442. SELECT
  6443. feature_id AS start_codon_id,
  6444. feature.*
  6445. FROM
  6446. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6447. 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';
  6448. --- ************************************************
  6449. --- *** relation: stop_codon ***
  6450. --- *** relation type: VIEW ***
  6451. --- *** ***
  6452. --- *** In mRNA, a set of three nucleotides that ***
  6453. --- *** indicates the end of information for pr ***
  6454. --- *** otein synthesis. ***
  6455. --- ************************************************
  6456. ---
  6457. CREATE VIEW stop_codon AS
  6458. SELECT
  6459. feature_id AS stop_codon_id,
  6460. feature.*
  6461. FROM
  6462. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6463. WHERE cvterm.name = 'stop_codon';
  6464. --- ************************************************
  6465. --- *** relation: intronic_splice_enhancer ***
  6466. --- *** relation type: VIEW ***
  6467. --- *** ***
  6468. --- *** Sequences within the intron that modulat ***
  6469. --- *** e splice site selection for some introns ***
  6470. --- *** . ***
  6471. --- ************************************************
  6472. ---
  6473. CREATE VIEW intronic_splice_enhancer AS
  6474. SELECT
  6475. feature_id AS intronic_splice_enhancer_id,
  6476. feature.*
  6477. FROM
  6478. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6479. WHERE cvterm.name = 'intronic_splice_enhancer';
  6480. --- ************************************************
  6481. --- *** relation: mrna_with_plus_1_frameshift ***
  6482. --- *** relation type: VIEW ***
  6483. --- *** ***
  6484. --- *** An mRNA with a plus 1 frameshift. ***
  6485. --- ************************************************
  6486. ---
  6487. CREATE VIEW mrna_with_plus_1_frameshift AS
  6488. SELECT
  6489. feature_id AS mrna_with_plus_1_frameshift_id,
  6490. feature.*
  6491. FROM
  6492. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6493. WHERE cvterm.name = 'mRNA_with_plus_1_frameshift';
  6494. --- ************************************************
  6495. --- *** relation: nuclease_hypersensitive_site ***
  6496. --- *** relation type: VIEW ***
  6497. --- *** ***
  6498. --- ************************************************
  6499. ---
  6500. CREATE VIEW nuclease_hypersensitive_site AS
  6501. SELECT
  6502. feature_id AS nuclease_hypersensitive_site_id,
  6503. feature.*
  6504. FROM
  6505. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6506. WHERE cvterm.name = 'DNAseI_hypersensitive_site' OR cvterm.name = 'nuclease_hypersensitive_site';
  6507. --- ************************************************
  6508. --- *** relation: coding_start ***
  6509. --- *** relation type: VIEW ***
  6510. --- *** ***
  6511. --- *** The first base to be translated into pro ***
  6512. --- *** tein. ***
  6513. --- ************************************************
  6514. ---
  6515. CREATE VIEW coding_start AS
  6516. SELECT
  6517. feature_id AS coding_start_id,
  6518. feature.*
  6519. FROM
  6520. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6521. WHERE cvterm.name = 'coding_start';
  6522. --- ************************************************
  6523. --- *** relation: tag ***
  6524. --- *** relation type: VIEW ***
  6525. --- *** ***
  6526. --- *** A nucleotide sequence that may be used t ***
  6527. --- *** o identify a larger sequence. ***
  6528. --- ************************************************
  6529. ---
  6530. CREATE VIEW tag AS
  6531. SELECT
  6532. feature_id AS tag_id,
  6533. feature.*
  6534. FROM
  6535. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6536. 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';
  6537. --- ************************************************
  6538. --- *** relation: rrna_large_subunit_primary_transcript ***
  6539. --- *** relation type: VIEW ***
  6540. --- *** ***
  6541. --- *** A primary transcript encoding a large ri ***
  6542. --- *** bosomal subunit RNA. ***
  6543. --- ************************************************
  6544. ---
  6545. CREATE VIEW rrna_large_subunit_primary_transcript AS
  6546. SELECT
  6547. feature_id AS rrna_large_subunit_primary_transcript_id,
  6548. feature.*
  6549. FROM
  6550. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6551. WHERE cvterm.name = 'rRNA_large_subunit_primary_transcript';
  6552. --- ************************************************
  6553. --- *** relation: sage_tag ***
  6554. --- *** relation type: VIEW ***
  6555. --- *** ***
  6556. --- *** A short diagnostic sequence tag, serial ***
  6557. --- *** analysis of gene expression (SAGE), that ***
  6558. --- *** allows the quantitative and simultaneou ***
  6559. --- *** s analysis of a large number of transcri ***
  6560. --- *** pts. ***
  6561. --- ************************************************
  6562. ---
  6563. CREATE VIEW sage_tag AS
  6564. SELECT
  6565. feature_id AS sage_tag_id,
  6566. feature.*
  6567. FROM
  6568. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6569. WHERE cvterm.name = 'SAGE_tag';
  6570. --- ************************************************
  6571. --- *** relation: coding_end ***
  6572. --- *** relation type: VIEW ***
  6573. --- *** ***
  6574. --- *** The last base to be translated into prot ***
  6575. --- *** ein. It does not include the stop codon. ***
  6576. --- ************************************************
  6577. ---
  6578. CREATE VIEW coding_end AS
  6579. SELECT
  6580. feature_id AS coding_end_id,
  6581. feature.*
  6582. FROM
  6583. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6584. WHERE cvterm.name = 'coding_end';
  6585. --- ************************************************
  6586. --- *** relation: microarray_oligo ***
  6587. --- *** relation type: VIEW ***
  6588. --- *** ***
  6589. --- ************************************************
  6590. ---
  6591. CREATE VIEW microarray_oligo AS
  6592. SELECT
  6593. feature_id AS microarray_oligo_id,
  6594. feature.*
  6595. FROM
  6596. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6597. WHERE cvterm.name = 'microarray_oligo';
  6598. --- ************************************************
  6599. --- *** relation: mrna_with_plus_2_frameshift ***
  6600. --- *** relation type: VIEW ***
  6601. --- *** ***
  6602. --- *** An mRNA with a plus 2 frameshift. ***
  6603. --- ************************************************
  6604. ---
  6605. CREATE VIEW mrna_with_plus_2_frameshift AS
  6606. SELECT
  6607. feature_id AS mrna_with_plus_2_frameshift_id,
  6608. feature.*
  6609. FROM
  6610. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6611. WHERE cvterm.name = 'mRNA_with_plus_2_frameshift';
  6612. --- ************************************************
  6613. --- *** relation: conserved_region ***
  6614. --- *** relation type: VIEW ***
  6615. --- *** ***
  6616. --- *** Region of sequence similarity by descent ***
  6617. --- *** from a common ancestor. ***
  6618. --- ************************************************
  6619. ---
  6620. CREATE VIEW conserved_region AS
  6621. SELECT
  6622. feature_id AS conserved_region_id,
  6623. feature.*
  6624. FROM
  6625. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6626. 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';
  6627. --- ************************************************
  6628. --- *** relation: sts ***
  6629. --- *** relation type: VIEW ***
  6630. --- *** ***
  6631. --- *** Short (typically a few hundred base pair ***
  6632. --- *** s) DNA sequence that has a single occurr ***
  6633. --- *** ence in a genome and whose location and ***
  6634. --- *** base sequence are known. ***
  6635. --- ************************************************
  6636. ---
  6637. CREATE VIEW sts AS
  6638. SELECT
  6639. feature_id AS sts_id,
  6640. feature.*
  6641. FROM
  6642. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6643. WHERE cvterm.name = 'STS';
  6644. --- ************************************************
  6645. --- *** relation: coding_conserved_region ***
  6646. --- *** relation type: VIEW ***
  6647. --- *** ***
  6648. --- *** Coding region of sequence similarity by ***
  6649. --- *** descent from a common ancestor. ***
  6650. --- ************************************************
  6651. ---
  6652. CREATE VIEW coding_conserved_region AS
  6653. SELECT
  6654. feature_id AS coding_conserved_region_id,
  6655. feature.*
  6656. FROM
  6657. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6658. WHERE cvterm.name = 'coding_conserved_region';
  6659. --- ************************************************
  6660. --- *** relation: exon_junction ***
  6661. --- *** relation type: VIEW ***
  6662. --- *** ***
  6663. --- *** The boundary between two exons in a proc ***
  6664. --- *** essed transcript. ***
  6665. --- ************************************************
  6666. ---
  6667. CREATE VIEW exon_junction AS
  6668. SELECT
  6669. feature_id AS exon_junction_id,
  6670. feature.*
  6671. FROM
  6672. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6673. WHERE cvterm.name = 'exon_junction';
  6674. --- ************************************************
  6675. --- *** relation: nc_conserved_region ***
  6676. --- *** relation type: VIEW ***
  6677. --- *** ***
  6678. --- *** Non-coding region of sequence similarity ***
  6679. --- *** by descent from a common ancestor. ***
  6680. --- ************************************************
  6681. ---
  6682. CREATE VIEW nc_conserved_region AS
  6683. SELECT
  6684. feature_id AS nc_conserved_region_id,
  6685. feature.*
  6686. FROM
  6687. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6688. WHERE cvterm.name = 'nc_conserved_region';
  6689. --- ************************************************
  6690. --- *** relation: mrna_with_minus_2_frameshift ***
  6691. --- *** relation type: VIEW ***
  6692. --- *** ***
  6693. --- *** A mRNA with a minus 2 frameshift. ***
  6694. --- ************************************************
  6695. ---
  6696. CREATE VIEW mrna_with_minus_2_frameshift AS
  6697. SELECT
  6698. feature_id AS mrna_with_minus_2_frameshift_id,
  6699. feature.*
  6700. FROM
  6701. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6702. WHERE cvterm.name = 'mRNA_with_minus_2_frameshift';
  6703. --- ************************************************
  6704. --- *** relation: pseudogene ***
  6705. --- *** relation type: VIEW ***
  6706. --- *** ***
  6707. --- *** A sequence that closely resembles a know ***
  6708. --- *** n functional gene, at another locus with ***
  6709. --- *** in a genome, that is non-functional as a ***
  6710. --- *** consequence of (usually several) mutati ***
  6711. --- *** ons that prevent either its transcriptio ***
  6712. --- *** n or translation (or both). In general, ***
  6713. --- *** pseudogenes result from either reverse t ***
  6714. --- *** ranscription of a transcript of their "n ***
  6715. --- *** ormal" paralog (SO:0000043) (in which ca ***
  6716. --- *** se the pseudogene typically lacks intron ***
  6717. --- *** s and includes a poly(A) tail) or from r ***
  6718. --- *** ecombination (SO:0000044) (in which case ***
  6719. --- *** the pseudogene is typically a tandem du ***
  6720. --- *** plication of its "normal" paralog). ***
  6721. --- ************************************************
  6722. ---
  6723. CREATE VIEW pseudogene AS
  6724. SELECT
  6725. feature_id AS pseudogene_id,
  6726. feature.*
  6727. FROM
  6728. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6729. 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';
  6730. --- ************************************************
  6731. --- *** relation: rnai_reagent ***
  6732. --- *** relation type: VIEW ***
  6733. --- *** ***
  6734. --- *** A double stranded RNA duplex, at least 2 ***
  6735. --- *** 0bp long, used experimentally to inhibit ***
  6736. --- *** gene function by RNA interference. ***
  6737. --- ************************************************
  6738. ---
  6739. CREATE VIEW rnai_reagent AS
  6740. SELECT
  6741. feature_id AS rnai_reagent_id,
  6742. feature.*
  6743. FROM
  6744. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6745. WHERE cvterm.name = 'RNAi_reagent';
  6746. --- ************************************************
  6747. --- *** relation: mite ***
  6748. --- *** relation type: VIEW ***
  6749. --- *** ***
  6750. --- *** A highly repetitive and short (100-500 b ***
  6751. --- *** ase pair) transposable element with term ***
  6752. --- *** inal inverted repeats (TIR) and target s ***
  6753. --- *** ite duplication (TSD). MITEs do not enco ***
  6754. --- *** de proteins. ***
  6755. --- ************************************************
  6756. ---
  6757. CREATE VIEW mite AS
  6758. SELECT
  6759. feature_id AS mite_id,
  6760. feature.*
  6761. FROM
  6762. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6763. WHERE cvterm.name = 'MITE';
  6764. --- ************************************************
  6765. --- *** relation: recombination_hotspot ***
  6766. --- *** relation type: VIEW ***
  6767. --- *** ***
  6768. --- *** A region in a genome which promotes reco ***
  6769. --- *** mbination. ***
  6770. --- ************************************************
  6771. ---
  6772. CREATE VIEW recombination_hotspot AS
  6773. SELECT
  6774. feature_id AS recombination_hotspot_id,
  6775. feature.*
  6776. FROM
  6777. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6778. WHERE cvterm.name = 'recombination_hotspot';
  6779. --- ************************************************
  6780. --- *** relation: chromosome ***
  6781. --- *** relation type: VIEW ***
  6782. --- *** ***
  6783. --- *** Structural unit composed of a nucleic ac ***
  6784. --- *** id molecule which controls its own repli ***
  6785. --- *** cation through the interaction of specif ***
  6786. --- *** ic proteins at one or more origins of re ***
  6787. --- *** plication. ***
  6788. --- ************************************************
  6789. ---
  6790. CREATE VIEW chromosome AS
  6791. SELECT
  6792. feature_id AS chromosome_id,
  6793. feature.*
  6794. FROM
  6795. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6796. 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';
  6797. --- ************************************************
  6798. --- *** relation: chromosome_band ***
  6799. --- *** relation type: VIEW ***
  6800. --- *** ***
  6801. --- *** A cytologically distinguishable feature ***
  6802. --- *** of a chromosome, often made visible by s ***
  6803. --- *** taining, and usually alternating light a ***
  6804. --- *** nd dark. ***
  6805. --- ************************************************
  6806. ---
  6807. CREATE VIEW chromosome_band AS
  6808. SELECT
  6809. feature_id AS chromosome_band_id,
  6810. feature.*
  6811. FROM
  6812. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6813. WHERE cvterm.name = 'chromosome_band';
  6814. --- ************************************************
  6815. --- *** relation: site_specific_recombination_target_region ***
  6816. --- *** relation type: VIEW ***
  6817. --- *** ***
  6818. --- ************************************************
  6819. ---
  6820. CREATE VIEW site_specific_recombination_target_region AS
  6821. SELECT
  6822. feature_id AS site_specific_recombination_target_region_id,
  6823. feature.*
  6824. FROM
  6825. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6826. 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';
  6827. --- ************************************************
  6828. --- *** relation: match ***
  6829. --- *** relation type: VIEW ***
  6830. --- *** ***
  6831. --- *** A region of sequence, aligned to another ***
  6832. --- *** sequence with some statistical signific ***
  6833. --- *** ance, using an algorithm such as BLAST o ***
  6834. --- *** r SIM4. ***
  6835. --- ************************************************
  6836. ---
  6837. CREATE VIEW match AS
  6838. SELECT
  6839. feature_id AS match_id,
  6840. feature.*
  6841. FROM
  6842. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6843. 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';
  6844. --- ************************************************
  6845. --- *** relation: splice_enhancer ***
  6846. --- *** relation type: VIEW ***
  6847. --- *** ***
  6848. --- *** Region of a transcript that regulates sp ***
  6849. --- *** licing. ***
  6850. --- ************************************************
  6851. ---
  6852. CREATE VIEW splice_enhancer AS
  6853. SELECT
  6854. feature_id AS splice_enhancer_id,
  6855. feature.*
  6856. FROM
  6857. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6858. WHERE cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' OR cvterm.name = 'splice_enhancer';
  6859. --- ************************************************
  6860. --- *** relation: est ***
  6861. --- *** relation type: VIEW ***
  6862. --- *** ***
  6863. --- *** A tag produced from a single sequencing ***
  6864. --- *** read from a cDNA clone or PCR product; t ***
  6865. --- *** ypically a few hundred base pairs long. ***
  6866. --- ************************************************
  6867. ---
  6868. CREATE VIEW est AS
  6869. SELECT
  6870. feature_id AS est_id,
  6871. feature.*
  6872. FROM
  6873. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6874. 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';
  6875. --- ************************************************
  6876. --- *** relation: loxp_site ***
  6877. --- *** relation type: VIEW ***
  6878. --- *** ***
  6879. --- ************************************************
  6880. ---
  6881. CREATE VIEW loxp_site AS
  6882. SELECT
  6883. feature_id AS loxp_site_id,
  6884. feature.*
  6885. FROM
  6886. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6887. WHERE cvterm.name = 'loxP_site';
  6888. --- ************************************************
  6889. --- *** relation: nucleotide_match ***
  6890. --- *** relation type: VIEW ***
  6891. --- *** ***
  6892. --- *** A match against a nucleotide sequence. ***
  6893. --- ************************************************
  6894. ---
  6895. CREATE VIEW nucleotide_match AS
  6896. SELECT
  6897. feature_id AS nucleotide_match_id,
  6898. feature.*
  6899. FROM
  6900. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6901. 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';
  6902. --- ************************************************
  6903. --- *** relation: nucleic_acid ***
  6904. --- *** relation type: VIEW ***
  6905. --- *** ***
  6906. --- *** An attribute describing a sequence consi ***
  6907. --- *** sting of nucleobases bound to repeating ***
  6908. --- *** units. The forms found in nature are deo ***
  6909. --- *** xyribonucleic acid (DNA), where the repe ***
  6910. --- *** ating units are 2-deoxy-D-ribose rings c ***
  6911. --- *** onnected to a phosphate backbone, and ri ***
  6912. --- *** bonucleic acid (RNA), where the repeatin ***
  6913. --- *** g units are D-ribose rings connected to ***
  6914. --- *** a phosphate backbone. ***
  6915. --- ************************************************
  6916. ---
  6917. CREATE VIEW nucleic_acid AS
  6918. SELECT
  6919. feature_id AS nucleic_acid_id,
  6920. feature.*
  6921. FROM
  6922. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6923. 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';
  6924. --- ************************************************
  6925. --- *** relation: protein_match ***
  6926. --- *** relation type: VIEW ***
  6927. --- *** ***
  6928. --- *** A match against a protein sequence. ***
  6929. --- ************************************************
  6930. ---
  6931. CREATE VIEW protein_match AS
  6932. SELECT
  6933. feature_id AS protein_match_id,
  6934. feature.*
  6935. FROM
  6936. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6937. WHERE cvterm.name = 'protein_match';
  6938. --- ************************************************
  6939. --- *** relation: frt_site ***
  6940. --- *** relation type: VIEW ***
  6941. --- *** ***
  6942. --- *** An inversion site found on the Saccharom ***
  6943. --- *** yces cerevisiae 2 micron plasmid. ***
  6944. --- ************************************************
  6945. ---
  6946. CREATE VIEW frt_site AS
  6947. SELECT
  6948. feature_id AS frt_site_id,
  6949. feature.*
  6950. FROM
  6951. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6952. WHERE cvterm.name = 'FRT_site';
  6953. --- ************************************************
  6954. --- *** relation: synthetic_sequence ***
  6955. --- *** relation type: VIEW ***
  6956. --- *** ***
  6957. --- *** An attribute to decide a sequence of nuc ***
  6958. --- *** leotides, nucleotide analogs, or amino a ***
  6959. --- *** cids that has been designed by an experi ***
  6960. --- *** menter and which may, or may not, corres ***
  6961. --- *** pond with any natural sequence. ***
  6962. --- ************************************************
  6963. ---
  6964. CREATE VIEW synthetic_sequence AS
  6965. SELECT
  6966. feature_id AS synthetic_sequence_id,
  6967. feature.*
  6968. FROM
  6969. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6970. WHERE cvterm.name = 'random_sequence' OR cvterm.name = 'designed_sequence' OR cvterm.name = 'synthetic_sequence';
  6971. --- ************************************************
  6972. --- *** relation: dna ***
  6973. --- *** relation type: VIEW ***
  6974. --- *** ***
  6975. --- *** An attribute describing a sequence consi ***
  6976. --- *** sting of nucleobases bound to a repeatin ***
  6977. --- *** g unit made of a 2-deoxy-D-ribose ring c ***
  6978. --- *** onnected to a phosphate backbone. ***
  6979. --- ************************************************
  6980. ---
  6981. CREATE VIEW dna AS
  6982. SELECT
  6983. feature_id AS dna_id,
  6984. feature.*
  6985. FROM
  6986. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6987. 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';
  6988. --- ************************************************
  6989. --- *** relation: sequence_assembly ***
  6990. --- *** relation type: VIEW ***
  6991. --- *** ***
  6992. --- *** A sequence of nucleotides that has been ***
  6993. --- *** algorithmically derived from an alignmen ***
  6994. --- *** t of two or more different sequences. ***
  6995. --- ************************************************
  6996. ---
  6997. CREATE VIEW sequence_assembly AS
  6998. SELECT
  6999. feature_id AS sequence_assembly_id,
  7000. feature.*
  7001. FROM
  7002. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7003. 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';
  7004. --- ************************************************
  7005. --- *** relation: group_1_intron_homing_endonuclease_target_region ***
  7006. --- *** relation type: VIEW ***
  7007. --- *** ***
  7008. --- *** A region of intronic nucleotide sequence ***
  7009. --- *** targeted by a nuclease enzyme. ***
  7010. --- ************************************************
  7011. ---
  7012. CREATE VIEW group_1_intron_homing_endonuclease_target_region AS
  7013. SELECT
  7014. feature_id AS group_1_intron_homing_endonuclease_target_region_id,
  7015. feature.*
  7016. FROM
  7017. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7018. WHERE cvterm.name = 'group_1_intron_homing_endonuclease_target_region';
  7019. --- ************************************************
  7020. --- *** relation: haplotype_block ***
  7021. --- *** relation type: VIEW ***
  7022. --- *** ***
  7023. --- *** A region of the genome which is co-inher ***
  7024. --- *** ited as the result of the lack of histor ***
  7025. --- *** ic recombination within it. ***
  7026. --- ************************************************
  7027. ---
  7028. CREATE VIEW haplotype_block AS
  7029. SELECT
  7030. feature_id AS haplotype_block_id,
  7031. feature.*
  7032. FROM
  7033. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7034. WHERE cvterm.name = 'haplotype_block';
  7035. --- ************************************************
  7036. --- *** relation: rna ***
  7037. --- *** relation type: VIEW ***
  7038. --- *** ***
  7039. --- *** An attribute describing a sequence consi ***
  7040. --- *** sting of nucleobases bound to a repeatin ***
  7041. --- *** g unit made of a D-ribose ring connected ***
  7042. --- *** to a phosphate backbone. ***
  7043. --- ************************************************
  7044. ---
  7045. CREATE VIEW rna AS
  7046. SELECT
  7047. feature_id AS rna_id,
  7048. feature.*
  7049. FROM
  7050. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7051. WHERE cvterm.name = 'RNA';
  7052. --- ************************************************
  7053. --- *** relation: flanked ***
  7054. --- *** relation type: VIEW ***
  7055. --- *** ***
  7056. --- *** An attribute describing a region that is ***
  7057. --- *** bounded either side by a particular kin ***
  7058. --- *** d of region. ***
  7059. --- ************************************************
  7060. ---
  7061. CREATE VIEW flanked AS
  7062. SELECT
  7063. feature_id AS flanked_id,
  7064. feature.*
  7065. FROM
  7066. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7067. WHERE cvterm.name = 'floxed' OR cvterm.name = 'FRT_flanked' OR cvterm.name = 'flanked';
  7068. --- ************************************************
  7069. --- *** relation: floxed ***
  7070. --- *** relation type: VIEW ***
  7071. --- *** ***
  7072. --- *** An attribute describing sequence that is ***
  7073. --- *** flanked by Lox-P sites. ***
  7074. --- ************************************************
  7075. ---
  7076. CREATE VIEW floxed AS
  7077. SELECT
  7078. feature_id AS floxed_id,
  7079. feature.*
  7080. FROM
  7081. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7082. WHERE cvterm.name = 'floxed';
  7083. --- ************************************************
  7084. --- *** relation: codon ***
  7085. --- *** relation type: VIEW ***
  7086. --- *** ***
  7087. --- *** A set of (usually) three nucleotide base ***
  7088. --- *** s in a DNA or RNA sequence, which togeth ***
  7089. --- *** er code for a unique amino acid or the t ***
  7090. --- *** ermination of translation and are contai ***
  7091. --- *** ned within the CDS. ***
  7092. --- ************************************************
  7093. ---
  7094. CREATE VIEW codon AS
  7095. SELECT
  7096. feature_id AS codon_id,
  7097. feature.*
  7098. FROM
  7099. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7100. 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';
  7101. --- ************************************************
  7102. --- *** relation: frt_flanked ***
  7103. --- *** relation type: VIEW ***
  7104. --- *** ***
  7105. --- *** An attribute to describe sequence that i ***
  7106. --- *** s flanked by the FLP recombinase recogni ***
  7107. --- *** tion site, FRT. ***
  7108. --- ************************************************
  7109. ---
  7110. CREATE VIEW frt_flanked AS
  7111. SELECT
  7112. feature_id AS frt_flanked_id,
  7113. feature.*
  7114. FROM
  7115. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7116. WHERE cvterm.name = 'FRT_flanked';
  7117. --- ************************************************
  7118. --- *** relation: invalidated_by_chimeric_cdna ***
  7119. --- *** relation type: VIEW ***
  7120. --- *** ***
  7121. --- *** A cDNA clone constructed from more than ***
  7122. --- *** one mRNA. Usually an experimental artifa ***
  7123. --- *** ct. ***
  7124. --- ************************************************
  7125. ---
  7126. CREATE VIEW invalidated_by_chimeric_cdna AS
  7127. SELECT
  7128. feature_id AS invalidated_by_chimeric_cdna_id,
  7129. feature.*
  7130. FROM
  7131. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7132. WHERE cvterm.name = 'invalidated_by_chimeric_cDNA';
  7133. --- ************************************************
  7134. --- *** relation: floxed_gene ***
  7135. --- *** relation type: VIEW ***
  7136. --- *** ***
  7137. --- *** A transgene that is floxed. ***
  7138. --- ************************************************
  7139. ---
  7140. CREATE VIEW floxed_gene AS
  7141. SELECT
  7142. feature_id AS floxed_gene_id,
  7143. feature.*
  7144. FROM
  7145. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7146. WHERE cvterm.name = 'floxed_gene';
  7147. --- ************************************************
  7148. --- *** relation: transposable_element_flanking_region ***
  7149. --- *** relation type: VIEW ***
  7150. --- *** ***
  7151. --- *** The region of sequence surrounding a tra ***
  7152. --- *** nsposable element. ***
  7153. --- ************************************************
  7154. ---
  7155. CREATE VIEW transposable_element_flanking_region AS
  7156. SELECT
  7157. feature_id AS transposable_element_flanking_region_id,
  7158. feature.*
  7159. FROM
  7160. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7161. WHERE cvterm.name = 'transposable_element_flanking_region';
  7162. --- ************************************************
  7163. --- *** relation: integron ***
  7164. --- *** relation type: VIEW ***
  7165. --- *** ***
  7166. --- *** A region encoding an integrase which act ***
  7167. --- *** s at a site adjacent to it (attI_site) t ***
  7168. --- *** o insert DNA which must include but is n ***
  7169. --- *** ot limited to an attC_site. ***
  7170. --- ************************************************
  7171. ---
  7172. CREATE VIEW integron AS
  7173. SELECT
  7174. feature_id AS integron_id,
  7175. feature.*
  7176. FROM
  7177. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7178. WHERE cvterm.name = 'integron';
  7179. --- ************************************************
  7180. --- *** relation: insertion_site ***
  7181. --- *** relation type: VIEW ***
  7182. --- *** ***
  7183. --- *** The junction where an insertion occurred ***
  7184. --- *** . ***
  7185. --- ************************************************
  7186. ---
  7187. CREATE VIEW insertion_site AS
  7188. SELECT
  7189. feature_id AS insertion_site_id,
  7190. feature.*
  7191. FROM
  7192. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7193. WHERE cvterm.name = 'transposable_element_insertion_site' OR cvterm.name = 'insertion_site';
  7194. --- ************************************************
  7195. --- *** relation: atti_site ***
  7196. --- *** relation type: VIEW ***
  7197. --- *** ***
  7198. --- *** A region within an integron, adjacent to ***
  7199. --- *** an integrase, at which site specific re ***
  7200. --- *** combination involving an attC_site takes ***
  7201. --- *** place. ***
  7202. --- ************************************************
  7203. ---
  7204. CREATE VIEW atti_site AS
  7205. SELECT
  7206. feature_id AS atti_site_id,
  7207. feature.*
  7208. FROM
  7209. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7210. WHERE cvterm.name = 'attI_site';
  7211. --- ************************************************
  7212. --- *** relation: transposable_element_insertion_site ***
  7213. --- *** relation type: VIEW ***
  7214. --- *** ***
  7215. --- *** The junction in a genome where a transpo ***
  7216. --- *** sable_element has inserted. ***
  7217. --- ************************************************
  7218. ---
  7219. CREATE VIEW transposable_element_insertion_site AS
  7220. SELECT
  7221. feature_id AS transposable_element_insertion_site_id,
  7222. feature.*
  7223. FROM
  7224. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7225. WHERE cvterm.name = 'transposable_element_insertion_site';
  7226. --- ************************************************
  7227. --- *** relation: small_regulatory_ncrna ***
  7228. --- *** relation type: VIEW ***
  7229. --- *** ***
  7230. --- *** A non-coding RNA, usually with a specifi ***
  7231. --- *** c secondary structure, that acts to regu ***
  7232. --- *** late gene expression. ***
  7233. --- ************************************************
  7234. ---
  7235. CREATE VIEW small_regulatory_ncrna AS
  7236. SELECT
  7237. feature_id AS small_regulatory_ncrna_id,
  7238. feature.*
  7239. FROM
  7240. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7241. 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';
  7242. --- ************************************************
  7243. --- *** relation: conjugative_transposon ***
  7244. --- *** relation type: VIEW ***
  7245. --- *** ***
  7246. --- *** A transposon that encodes function requi ***
  7247. --- *** red for conjugation. ***
  7248. --- ************************************************
  7249. ---
  7250. CREATE VIEW conjugative_transposon AS
  7251. SELECT
  7252. feature_id AS conjugative_transposon_id,
  7253. feature.*
  7254. FROM
  7255. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7256. WHERE cvterm.name = 'conjugative_transposon';
  7257. --- ************************************************
  7258. --- *** relation: enzymatic_rna ***
  7259. --- *** relation type: VIEW ***
  7260. --- *** ***
  7261. --- *** An RNA sequence that has catalytic activ ***
  7262. --- *** ity with or without an associated ribonu ***
  7263. --- *** cleoprotein. ***
  7264. --- ************************************************
  7265. ---
  7266. CREATE VIEW enzymatic_rna AS
  7267. SELECT
  7268. feature_id AS enzymatic_rna_id,
  7269. feature.*
  7270. FROM
  7271. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7272. WHERE cvterm.name = 'ribozyme' OR cvterm.name = 'enzymatic_RNA';
  7273. --- ************************************************
  7274. --- *** relation: recombinationally_inverted_gene ***
  7275. --- *** relation type: VIEW ***
  7276. --- *** ***
  7277. --- *** A recombinationally rearranged gene by i ***
  7278. --- *** nversion. ***
  7279. --- ************************************************
  7280. ---
  7281. CREATE VIEW recombinationally_inverted_gene AS
  7282. SELECT
  7283. feature_id AS recombinationally_inverted_gene_id,
  7284. feature.*
  7285. FROM
  7286. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7287. WHERE cvterm.name = 'recombinationally_inverted_gene';
  7288. --- ************************************************
  7289. --- *** relation: ribozyme ***
  7290. --- *** relation type: VIEW ***
  7291. --- *** ***
  7292. --- *** An RNA with catalytic activity. ***
  7293. --- ************************************************
  7294. ---
  7295. CREATE VIEW ribozyme AS
  7296. SELECT
  7297. feature_id AS ribozyme_id,
  7298. feature.*
  7299. FROM
  7300. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7301. WHERE cvterm.name = 'ribozyme';
  7302. --- ************************************************
  7303. --- *** relation: rrna_5_8s ***
  7304. --- *** relation type: VIEW ***
  7305. --- *** ***
  7306. --- *** 5_8S ribosomal RNA (5. 8S rRNA) is a com ***
  7307. --- *** ponent of the large subunit of the eukar ***
  7308. --- *** yotic ribosome. It is transcribed by RNA ***
  7309. --- *** polymerase I as part of the 45S precurs ***
  7310. --- *** or that also contains 18S and 28S rRNA. ***
  7311. --- *** Functionally, it is thought that 5.8S rR ***
  7312. --- *** NA may be involved in ribosome transloca ***
  7313. --- *** tion. It is also known to form covalent ***
  7314. --- *** linkage to the p53 tumour suppressor pro ***
  7315. --- *** tein. 5_8S rRNA is also found in archaea ***
  7316. --- *** . ***
  7317. --- ************************************************
  7318. ---
  7319. CREATE VIEW rrna_5_8s AS
  7320. SELECT
  7321. feature_id AS rrna_5_8s_id,
  7322. feature.*
  7323. FROM
  7324. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7325. WHERE cvterm.name = 'rRNA_5_8S';
  7326. --- ************************************************
  7327. --- *** relation: rna_6s ***
  7328. --- *** relation type: VIEW ***
  7329. --- *** ***
  7330. --- *** A small (184-nt in E. coli) RNA that for ***
  7331. --- *** ms a hairpin type structure. 6S RNA asso ***
  7332. --- *** ciates with RNA polymerase in a highly s ***
  7333. --- *** pecific manner. 6S RNA represses express ***
  7334. --- *** ion from a sigma70-dependent promoter du ***
  7335. --- *** ring stationary phase. ***
  7336. --- ************************************************
  7337. ---
  7338. CREATE VIEW rna_6s AS
  7339. SELECT
  7340. feature_id AS rna_6s_id,
  7341. feature.*
  7342. FROM
  7343. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7344. WHERE cvterm.name = 'RNA_6S';
  7345. --- ************************************************
  7346. --- *** relation: csrb_rsmb_rna ***
  7347. --- *** relation type: VIEW ***
  7348. --- *** ***
  7349. --- *** An enterobacterial RNA that binds the Cs ***
  7350. --- *** rA protein. The CsrB RNAs contain a cons ***
  7351. --- *** erved motif CAGGXXG that is found in up ***
  7352. --- *** to 18 copies and has been suggested to b ***
  7353. --- *** ind CsrA. The Csr regulatory system has ***
  7354. --- *** a strong negative regulatory effect on g ***
  7355. --- *** lycogen biosynthesis, glyconeogenesis an ***
  7356. --- *** d glycogen catabolism and a positive reg ***
  7357. --- *** ulatory effect on glycolysis. In other b ***
  7358. --- *** acteria such as Erwinia caratovara the R ***
  7359. --- *** smA protein has been shown to regulate t ***
  7360. --- *** he production of virulence determinants, ***
  7361. --- *** such extracellular enzymes. RsmA binds ***
  7362. --- *** to RsmB regulatory RNA which is also a m ***
  7363. --- *** ember of this family. ***
  7364. --- ************************************************
  7365. ---
  7366. CREATE VIEW csrb_rsmb_rna AS
  7367. SELECT
  7368. feature_id AS csrb_rsmb_rna_id,
  7369. feature.*
  7370. FROM
  7371. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7372. WHERE cvterm.name = 'CsrB_RsmB_RNA';
  7373. --- ************************************************
  7374. --- *** relation: dsra_rna ***
  7375. --- *** relation type: VIEW ***
  7376. --- *** ***
  7377. --- *** DsrA RNA regulates both transcription, b ***
  7378. --- *** y overcoming transcriptional silencing b ***
  7379. --- *** y the nucleoid-associated H-NS protein, ***
  7380. --- *** and translation, by promoting efficient ***
  7381. --- *** translation of the stress sigma factor, ***
  7382. --- *** RpoS. These two activities of DsrA can b ***
  7383. --- *** e separated by mutation: the first of th ***
  7384. --- *** ree stem-loops of the 85 nucleotide RNA ***
  7385. --- *** is necessary for RpoS translation but no ***
  7386. --- *** t for anti-H-NS action, while the second ***
  7387. --- *** stem-loop is essential for antisilencin ***
  7388. --- *** g and less critical for RpoS translation ***
  7389. --- *** . The third stem-loop, which behaves as ***
  7390. --- *** a transcription terminator, can be subst ***
  7391. --- *** ituted by the trp transcription terminat ***
  7392. --- *** or without loss of either DsrA function. ***
  7393. --- *** The sequence of the first stem-loop of ***
  7394. --- *** DsrA is complementary with the upstream ***
  7395. --- *** leader portion of RpoS messenger RNA, su ***
  7396. --- *** ggesting that pairing of DsrA with the R ***
  7397. --- *** poS message might be important for trans ***
  7398. --- *** lational regulation. ***
  7399. --- ************************************************
  7400. ---
  7401. CREATE VIEW dsra_rna AS
  7402. SELECT
  7403. feature_id AS dsra_rna_id,
  7404. feature.*
  7405. FROM
  7406. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7407. WHERE cvterm.name = 'GcvB_RNA' OR cvterm.name = 'DsrA_RNA';
  7408. --- ************************************************
  7409. --- *** relation: gcvb_rna ***
  7410. --- *** relation type: VIEW ***
  7411. --- *** ***
  7412. --- *** A small untranslated RNA involved in exp ***
  7413. --- *** ression of the dipeptide and oligopeptid ***
  7414. --- *** e transport systems in Escherichia coli. ***
  7415. --- ************************************************
  7416. ---
  7417. CREATE VIEW gcvb_rna AS
  7418. SELECT
  7419. feature_id AS gcvb_rna_id,
  7420. feature.*
  7421. FROM
  7422. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7423. WHERE cvterm.name = 'GcvB_RNA';
  7424. --- ************************************************
  7425. --- *** relation: hammerhead_ribozyme ***
  7426. --- *** relation type: VIEW ***
  7427. --- *** ***
  7428. --- *** A small catalytic RNA motif that catalyz ***
  7429. --- *** es self-cleavage reaction. Its name come ***
  7430. --- *** s from its secondary structure which res ***
  7431. --- *** embles a carpenter's hammer. The hammerh ***
  7432. --- *** ead ribozyme is involved in the replicat ***
  7433. --- *** ion of some viroid and some satellite RN ***
  7434. --- *** As. ***
  7435. --- ************************************************
  7436. ---
  7437. CREATE VIEW hammerhead_ribozyme AS
  7438. SELECT
  7439. feature_id AS hammerhead_ribozyme_id,
  7440. feature.*
  7441. FROM
  7442. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7443. WHERE cvterm.name = 'hammerhead_ribozyme';
  7444. --- ************************************************
  7445. --- *** relation: group_iia_intron ***
  7446. --- *** relation type: VIEW ***
  7447. --- *** ***
  7448. --- ************************************************
  7449. ---
  7450. CREATE VIEW group_iia_intron AS
  7451. SELECT
  7452. feature_id AS group_iia_intron_id,
  7453. feature.*
  7454. FROM
  7455. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7456. WHERE cvterm.name = 'group_IIA_intron';
  7457. --- ************************************************
  7458. --- *** relation: group_iib_intron ***
  7459. --- *** relation type: VIEW ***
  7460. --- *** ***
  7461. --- ************************************************
  7462. ---
  7463. CREATE VIEW group_iib_intron AS
  7464. SELECT
  7465. feature_id AS group_iib_intron_id,
  7466. feature.*
  7467. FROM
  7468. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7469. WHERE cvterm.name = 'group_IIB_intron';
  7470. --- ************************************************
  7471. --- *** relation: micf_rna ***
  7472. --- *** relation type: VIEW ***
  7473. --- *** ***
  7474. --- *** A non-translated 93 nt antisense RNA tha ***
  7475. --- *** t binds its target ompF mRNA and regulat ***
  7476. --- *** es ompF expression by inhibiting transla ***
  7477. --- *** tion and inducing degradation of the mes ***
  7478. --- *** sage. ***
  7479. --- ************************************************
  7480. ---
  7481. CREATE VIEW micf_rna AS
  7482. SELECT
  7483. feature_id AS micf_rna_id,
  7484. feature.*
  7485. FROM
  7486. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7487. WHERE cvterm.name = 'MicF_RNA';
  7488. --- ************************************************
  7489. --- *** relation: oxys_rna ***
  7490. --- *** relation type: VIEW ***
  7491. --- *** ***
  7492. --- *** A small untranslated RNA which is induce ***
  7493. --- *** d in response to oxidative stress in Esc ***
  7494. --- *** herichia coli. Acts as a global regulato ***
  7495. --- *** r to activate or repress the expression ***
  7496. --- *** of as many as 40 genes, including the fh ***
  7497. --- *** lA-encoded transcriptional activator and ***
  7498. --- *** the rpoS-encoded sigma(s) subunit of RN ***
  7499. --- *** A polymerase. OxyS is bound by the Hfq p ***
  7500. --- *** rotein, that increases the OxyS RNA inte ***
  7501. --- *** raction with its target messages. ***
  7502. --- ************************************************
  7503. ---
  7504. CREATE VIEW oxys_rna AS
  7505. SELECT
  7506. feature_id AS oxys_rna_id,
  7507. feature.*
  7508. FROM
  7509. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7510. WHERE cvterm.name = 'OxyS_RNA';
  7511. --- ************************************************
  7512. --- *** relation: rnase_mrp_rna ***
  7513. --- *** relation type: VIEW ***
  7514. --- *** ***
  7515. --- *** The RNA molecule essential for the catal ***
  7516. --- *** ytic activity of RNase MRP, an enzymatic ***
  7517. --- *** ally active ribonucleoprotein with two d ***
  7518. --- *** istinct roles in eukaryotes. In mitochon ***
  7519. --- *** dria it plays a direct role in the initi ***
  7520. --- *** ation of mitochondrial DNA replication. ***
  7521. --- *** In the nucleus it is involved in precurs ***
  7522. --- *** or rRNA processing, where it cleaves the ***
  7523. --- *** internal transcribed spacer 1 between 1 ***
  7524. --- *** 8S and 5.8S rRNAs. ***
  7525. --- ************************************************
  7526. ---
  7527. CREATE VIEW rnase_mrp_rna AS
  7528. SELECT
  7529. feature_id AS rnase_mrp_rna_id,
  7530. feature.*
  7531. FROM
  7532. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7533. WHERE cvterm.name = 'RNase_MRP_RNA';
  7534. --- ************************************************
  7535. --- *** relation: rnase_p_rna ***
  7536. --- *** relation type: VIEW ***
  7537. --- *** ***
  7538. --- *** The RNA component of Ribonuclease P (RNa ***
  7539. --- *** se P), a ubiquitous endoribonuclease, fo ***
  7540. --- *** und in archaea, bacteria and eukarya as ***
  7541. --- *** well as chloroplasts and mitochondria. I ***
  7542. --- *** ts best characterized activity is the ge ***
  7543. --- *** neration of mature 5 prime ends of tRNAs ***
  7544. --- *** by cleaving the 5 prime leader elements ***
  7545. --- *** of precursor-tRNAs. Cellular RNase Ps a ***
  7546. --- *** re ribonucleoproteins. RNA from bacteria ***
  7547. --- *** l RNase Ps retains its catalytic activit ***
  7548. --- *** y in the absence of the protein subunit, ***
  7549. --- *** i.e. it is a ribozyme. Isolated eukaryo ***
  7550. --- *** tic and archaeal RNase P RNA has not bee ***
  7551. --- *** n shown to retain its catalytic function ***
  7552. --- *** , but is still essential for the catalyt ***
  7553. --- *** ic activity of the holoenzyme. Although ***
  7554. --- *** the archaeal and eukaryotic holoenzymes ***
  7555. --- *** have a much greater protein content than ***
  7556. --- *** the bacterial ones, the RNA cores from ***
  7557. --- *** all the three lineages are homologous. H ***
  7558. --- *** elices corresponding to P1, P2, P3, P4, ***
  7559. --- *** and P10/11 are common to all cellular RN ***
  7560. --- *** ase P RNAs. Yet, there is considerable s ***
  7561. --- *** equence variation, particularly among th ***
  7562. --- *** e eukaryotic RNAs. ***
  7563. --- ************************************************
  7564. ---
  7565. CREATE VIEW rnase_p_rna AS
  7566. SELECT
  7567. feature_id AS rnase_p_rna_id,
  7568. feature.*
  7569. FROM
  7570. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7571. WHERE cvterm.name = 'RNase_P_RNA';
  7572. --- ************************************************
  7573. --- *** relation: rpra_rna ***
  7574. --- *** relation type: VIEW ***
  7575. --- *** ***
  7576. --- *** Translational regulation of the stationa ***
  7577. --- *** ry phase sigma factor RpoS is mediated b ***
  7578. --- *** y the formation of a double-stranded RNA ***
  7579. --- *** stem-loop structure in the upstream reg ***
  7580. --- *** ion of the rpoS messenger RNA, occluding ***
  7581. --- *** the translation initiation site. Clones ***
  7582. --- *** carrying rprA (RpoS regulator RNA) incr ***
  7583. --- *** eased the translation of RpoS. The rprA ***
  7584. --- *** gene encodes a 106 nucleotide regulatory ***
  7585. --- *** RNA. As with DsrA Rfam:RF00014, RprA is ***
  7586. --- *** predicted to form three stem-loops. Thu ***
  7587. --- *** s, at least two small RNAs, DsrA and Rpr ***
  7588. --- *** A, participate in the positive regulatio ***
  7589. --- *** n of RpoS translation. Unlike DsrA, RprA ***
  7590. --- *** does not have an extensive region of co ***
  7591. --- *** mplementarity to the RpoS leader, leavin ***
  7592. --- *** g its mechanism of action unclear. RprA ***
  7593. --- *** is non-essential. ***
  7594. --- ************************************************
  7595. ---
  7596. CREATE VIEW rpra_rna AS
  7597. SELECT
  7598. feature_id AS rpra_rna_id,
  7599. feature.*
  7600. FROM
  7601. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7602. WHERE cvterm.name = 'RprA_RNA';
  7603. --- ************************************************
  7604. --- *** relation: rre_rna ***
  7605. --- *** relation type: VIEW ***
  7606. --- *** ***
  7607. --- *** The Rev response element (RRE) is encode ***
  7608. --- *** d within the HIV-env gene. Rev is an ess ***
  7609. --- *** ential regulatory protein of HIV that bi ***
  7610. --- *** nds an internal loop of the RRE leading, ***
  7611. --- *** encouraging further Rev-RRE binding. Th ***
  7612. --- *** is RNP complex is critical for mRNA expo ***
  7613. --- *** rt and hence for expression of the HIV s ***
  7614. --- *** tructural proteins. ***
  7615. --- ************************************************
  7616. ---
  7617. CREATE VIEW rre_rna AS
  7618. SELECT
  7619. feature_id AS rre_rna_id,
  7620. feature.*
  7621. FROM
  7622. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7623. WHERE cvterm.name = 'RRE_RNA';
  7624. --- ************************************************
  7625. --- *** relation: spot_42_rna ***
  7626. --- *** relation type: VIEW ***
  7627. --- *** ***
  7628. --- *** A 109-nucleotide RNA of E. coli that see ***
  7629. --- *** ms to have a regulatory role on the gala ***
  7630. --- *** ctose operon. Changes in Spot 42 levels ***
  7631. --- *** are implicated in affecting DNA polymera ***
  7632. --- *** se I levels. ***
  7633. --- ************************************************
  7634. ---
  7635. CREATE VIEW spot_42_rna AS
  7636. SELECT
  7637. feature_id AS spot_42_rna_id,
  7638. feature.*
  7639. FROM
  7640. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7641. WHERE cvterm.name = 'spot_42_RNA';
  7642. --- ************************************************
  7643. --- *** relation: telomerase_rna ***
  7644. --- *** relation type: VIEW ***
  7645. --- *** ***
  7646. --- *** The RNA component of telomerase, a rever ***
  7647. --- *** se transcriptase that synthesizes telome ***
  7648. --- *** ric DNA. ***
  7649. --- ************************************************
  7650. ---
  7651. CREATE VIEW telomerase_rna AS
  7652. SELECT
  7653. feature_id AS telomerase_rna_id,
  7654. feature.*
  7655. FROM
  7656. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7657. WHERE cvterm.name = 'telomerase_RNA';
  7658. --- ************************************************
  7659. --- *** relation: u1_snrna ***
  7660. --- *** relation type: VIEW ***
  7661. --- *** ***
  7662. --- *** U1 is a small nuclear RNA (snRNA) compon ***
  7663. --- *** ent of the spliceosome (involved in pre- ***
  7664. --- *** mRNA splicing). Its 5' end forms complem ***
  7665. --- *** entary base pairs with the 5' splice jun ***
  7666. --- *** ction, thus defining the 5' donor site o ***
  7667. --- *** f an intron. There are significant diffe ***
  7668. --- *** rences in sequence and secondary structu ***
  7669. --- *** re between metazoan and yeast U1 snRNAs, ***
  7670. --- *** the latter being much longer (568 nucle ***
  7671. --- *** otides as compared to 164 nucleotides in ***
  7672. --- *** human). Nevertheless, secondary structu ***
  7673. --- *** re predictions suggest that all U1 snRNA ***
  7674. --- *** s share a 'common core' consisting of he ***
  7675. --- *** lices I, II, the proximal region of III, ***
  7676. --- *** and IV. ***
  7677. --- ************************************************
  7678. ---
  7679. CREATE VIEW u1_snrna AS
  7680. SELECT
  7681. feature_id AS u1_snrna_id,
  7682. feature.*
  7683. FROM
  7684. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7685. WHERE cvterm.name = 'U1_snRNA';
  7686. --- ************************************************
  7687. --- *** relation: u2_snrna ***
  7688. --- *** relation type: VIEW ***
  7689. --- *** ***
  7690. --- *** U2 is a small nuclear RNA (snRNA) compon ***
  7691. --- *** ent of the spliceosome (involved in pre- ***
  7692. --- *** mRNA splicing). Complementary binding be ***
  7693. --- *** tween U2 snRNA (in an area lying towards ***
  7694. --- *** the 5' end but 3' to hairpin I) and the ***
  7695. --- *** branchpoint sequence (BPS) of the intro ***
  7696. --- *** n results in the bulging out of an unpai ***
  7697. --- *** red adenine, on the BPS, which initiates ***
  7698. --- *** a nucleophilic attack at the intronic 5 ***
  7699. --- *** ' splice site, thus starting the first o ***
  7700. --- *** f two transesterification reactions that ***
  7701. --- *** mediate splicing. ***
  7702. --- ************************************************
  7703. ---
  7704. CREATE VIEW u2_snrna AS
  7705. SELECT
  7706. feature_id AS u2_snrna_id,
  7707. feature.*
  7708. FROM
  7709. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7710. WHERE cvterm.name = 'U2_snRNA';
  7711. --- ************************************************
  7712. --- *** relation: u4_snrna ***
  7713. --- *** relation type: VIEW ***
  7714. --- *** ***
  7715. --- *** U4 small nuclear RNA (U4 snRNA) is a com ***
  7716. --- *** ponent of the major U2-dependent spliceo ***
  7717. --- *** some. It forms a duplex with U6, and wit ***
  7718. --- *** h each splicing round, it is displaced f ***
  7719. --- *** rom U6 (and the spliceosome) in an ATP-d ***
  7720. --- *** ependent manner, allowing U6 to refold a ***
  7721. --- *** nd create the active site for splicing c ***
  7722. --- *** atalysis. A recycling process involving ***
  7723. --- *** protein Prp24 re-anneals U4 and U6. ***
  7724. --- ************************************************
  7725. ---
  7726. CREATE VIEW u4_snrna AS
  7727. SELECT
  7728. feature_id AS u4_snrna_id,
  7729. feature.*
  7730. FROM
  7731. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7732. WHERE cvterm.name = 'U4_snRNA';
  7733. --- ************************************************
  7734. --- *** relation: u4atac_snrna ***
  7735. --- *** relation type: VIEW ***
  7736. --- *** ***
  7737. --- *** An snRNA required for the splicing of th ***
  7738. --- *** e minor U12-dependent class of eukaryoti ***
  7739. --- *** c nuclear introns. It forms a base paire ***
  7740. --- *** d complex with U6atac_snRNA (SO:0000397) ***
  7741. --- *** . ***
  7742. --- ************************************************
  7743. ---
  7744. CREATE VIEW u4atac_snrna AS
  7745. SELECT
  7746. feature_id AS u4atac_snrna_id,
  7747. feature.*
  7748. FROM
  7749. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7750. WHERE cvterm.name = 'U4atac_snRNA';
  7751. --- ************************************************
  7752. --- *** relation: u5_snrna ***
  7753. --- *** relation type: VIEW ***
  7754. --- *** ***
  7755. --- *** U5 RNA is a component of both types of k ***
  7756. --- *** nown spliceosome. The precise function o ***
  7757. --- *** f this molecule is unknown, though it is ***
  7758. --- *** known that the 5' loop is required for ***
  7759. --- *** splice site selection and p220 binding, ***
  7760. --- *** and that both the 3' stem-loop and the S ***
  7761. --- *** m site are important for Sm protein bind ***
  7762. --- *** ing and cap methylation. ***
  7763. --- ************************************************
  7764. ---
  7765. CREATE VIEW u5_snrna AS
  7766. SELECT
  7767. feature_id AS u5_snrna_id,
  7768. feature.*
  7769. FROM
  7770. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7771. WHERE cvterm.name = 'U5_snRNA';
  7772. --- ************************************************
  7773. --- *** relation: u6_snrna ***
  7774. --- *** relation type: VIEW ***
  7775. --- *** ***
  7776. --- *** U6 snRNA is a component of the spliceoso ***
  7777. --- *** me which is involved in splicing pre-mRN ***
  7778. --- *** A. The putative secondary structure cons ***
  7779. --- *** ensus base pairing is confined to a shor ***
  7780. --- *** t 5' stem loop, but U6 snRNA is thought ***
  7781. --- *** to form extensive base-pair interactions ***
  7782. --- *** with U4 snRNA. ***
  7783. --- ************************************************
  7784. ---
  7785. CREATE VIEW u6_snrna AS
  7786. SELECT
  7787. feature_id AS u6_snrna_id,
  7788. feature.*
  7789. FROM
  7790. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7791. WHERE cvterm.name = 'U6_snRNA';
  7792. --- ************************************************
  7793. --- *** relation: u6atac_snrna ***
  7794. --- *** relation type: VIEW ***
  7795. --- *** ***
  7796. --- *** U6atac_snRNA is an snRNA required for th ***
  7797. --- *** e splicing of the minor U12-dependent cl ***
  7798. --- *** ass of eukaryotic nuclear introns. It fo ***
  7799. --- *** rms a base paired complex with U4atac_sn ***
  7800. --- *** RNA (SO:0000394). ***
  7801. --- ************************************************
  7802. ---
  7803. CREATE VIEW u6atac_snrna AS
  7804. SELECT
  7805. feature_id AS u6atac_snrna_id,
  7806. feature.*
  7807. FROM
  7808. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7809. WHERE cvterm.name = 'U6atac_snRNA';
  7810. --- ************************************************
  7811. --- *** relation: u11_snrna ***
  7812. --- *** relation type: VIEW ***
  7813. --- *** ***
  7814. --- *** U11 snRNA plays a role in splicing of th ***
  7815. --- *** e minor U12-dependent class of eukaryoti ***
  7816. --- *** c nuclear introns, similar to U1 snRNA i ***
  7817. --- *** n the major class spliceosome it base pa ***
  7818. --- *** irs to the conserved 5' splice site sequ ***
  7819. --- *** ence. ***
  7820. --- ************************************************
  7821. ---
  7822. CREATE VIEW u11_snrna AS
  7823. SELECT
  7824. feature_id AS u11_snrna_id,
  7825. feature.*
  7826. FROM
  7827. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7828. WHERE cvterm.name = 'U11_snRNA';
  7829. --- ************************************************
  7830. --- *** relation: u12_snrna ***
  7831. --- *** relation type: VIEW ***
  7832. --- *** ***
  7833. --- *** The U12 small nuclear (snRNA), together ***
  7834. --- *** with U4atac/U6atac, U5, and U11 snRNAs a ***
  7835. --- *** nd associated proteins, forms a spliceos ***
  7836. --- *** ome that cleaves a divergent class of lo ***
  7837. --- *** w-abundance pre-mRNA introns. ***
  7838. --- ************************************************
  7839. ---
  7840. CREATE VIEW u12_snrna AS
  7841. SELECT
  7842. feature_id AS u12_snrna_id,
  7843. feature.*
  7844. FROM
  7845. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7846. WHERE cvterm.name = 'U12_snRNA';
  7847. --- ************************************************
  7848. --- *** relation: sequence_attribute ***
  7849. --- *** relation type: VIEW ***
  7850. --- *** ***
  7851. --- *** An attribute describes a quality of sequ ***
  7852. --- *** ence. ***
  7853. --- ************************************************
  7854. ---
  7855. CREATE VIEW sequence_attribute AS
  7856. SELECT
  7857. feature_id AS sequence_attribute_id,
  7858. feature.*
  7859. FROM
  7860. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7861. 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';
  7862. --- ************************************************
  7863. --- *** relation: gene_attribute ***
  7864. --- *** relation type: VIEW ***
  7865. --- *** ***
  7866. --- ************************************************
  7867. ---
  7868. CREATE VIEW gene_attribute AS
  7869. SELECT
  7870. feature_id AS gene_attribute_id,
  7871. feature.*
  7872. FROM
  7873. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7874. 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';
  7875. --- ************************************************
  7876. --- *** relation: u14_snorna ***
  7877. --- *** relation type: VIEW ***
  7878. --- *** ***
  7879. --- *** U14 small nucleolar RNA (U14 snoRNA) is ***
  7880. --- *** required for early cleavages of eukaryot ***
  7881. --- *** ic precursor rRNAs. In yeasts, this mole ***
  7882. --- *** cule possess a stem-loop region (known a ***
  7883. --- *** s the Y-domain) which is essential for f ***
  7884. --- *** unction. A similar structure, but with a ***
  7885. --- *** different consensus sequence, is found ***
  7886. --- *** in plants, but is absent in vertebrates. ***
  7887. --- ************************************************
  7888. ---
  7889. CREATE VIEW u14_snorna AS
  7890. SELECT
  7891. feature_id AS u14_snorna_id,
  7892. feature.*
  7893. FROM
  7894. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7895. WHERE cvterm.name = 'U14_snoRNA';
  7896. --- ************************************************
  7897. --- *** relation: vault_rna ***
  7898. --- *** relation type: VIEW ***
  7899. --- *** ***
  7900. --- *** A family of RNAs are found as part of th ***
  7901. --- *** e enigmatic vault ribonucleoprotein comp ***
  7902. --- *** lex. The complex consists of a major vau ***
  7903. --- *** lt protein (MVP), two minor vault protei ***
  7904. --- *** ns (VPARP and TEP1), and several small u ***
  7905. --- *** ntranslated RNA molecules. It has been s ***
  7906. --- *** uggested that the vault complex is invol ***
  7907. --- *** ved in drug resistance. ***
  7908. --- ************************************************
  7909. ---
  7910. CREATE VIEW vault_rna AS
  7911. SELECT
  7912. feature_id AS vault_rna_id,
  7913. feature.*
  7914. FROM
  7915. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7916. WHERE cvterm.name = 'vault_RNA';
  7917. --- ************************************************
  7918. --- *** relation: y_rna ***
  7919. --- *** relation type: VIEW ***
  7920. --- *** ***
  7921. --- *** Y RNAs are components of the Ro ribonucl ***
  7922. --- *** eoprotein particle (Ro RNP), in associat ***
  7923. --- *** ion with Ro60 and La proteins. The Y RNA ***
  7924. --- *** s and Ro60 and La proteins are well cons ***
  7925. --- *** erved, but the function of the Ro RNP is ***
  7926. --- *** not known. In humans the RNA component ***
  7927. --- *** can be one of four small RNAs: hY1, hY3, ***
  7928. --- *** hY4 and hY5. These small RNAs are predi ***
  7929. --- *** cted to fold into a conserved secondary ***
  7930. --- *** structure containing three stem structur ***
  7931. --- *** es. The largest of the four, hY1, contai ***
  7932. --- *** ns an additional hairpin. ***
  7933. --- ************************************************
  7934. ---
  7935. CREATE VIEW y_rna AS
  7936. SELECT
  7937. feature_id AS y_rna_id,
  7938. feature.*
  7939. FROM
  7940. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7941. WHERE cvterm.name = 'Y_RNA';
  7942. --- ************************************************
  7943. --- *** relation: twintron ***
  7944. --- *** relation type: VIEW ***
  7945. --- *** ***
  7946. --- *** An intron within an intron. Twintrons ar ***
  7947. --- *** e group II or III introns, into which an ***
  7948. --- *** other group II or III intron has been tr ***
  7949. --- *** ansposed. ***
  7950. --- ************************************************
  7951. ---
  7952. CREATE VIEW twintron AS
  7953. SELECT
  7954. feature_id AS twintron_id,
  7955. feature.*
  7956. FROM
  7957. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7958. WHERE cvterm.name = 'twintron';
  7959. --- ************************************************
  7960. --- *** relation: rrna_18s ***
  7961. --- *** relation type: VIEW ***
  7962. --- *** ***
  7963. --- *** A large polynucleotide in eukaryotes, wh ***
  7964. --- *** ich functions as the small subunit of th ***
  7965. --- *** e ribosome. ***
  7966. --- ************************************************
  7967. ---
  7968. CREATE VIEW rrna_18s AS
  7969. SELECT
  7970. feature_id AS rrna_18s_id,
  7971. feature.*
  7972. FROM
  7973. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7974. WHERE cvterm.name = 'rRNA_18S';
  7975. --- ************************************************
  7976. --- *** relation: binding_site ***
  7977. --- *** relation type: VIEW ***
  7978. --- *** ***
  7979. --- *** A biological_region of sequence that, in ***
  7980. --- *** the molecule, interacts selectively and ***
  7981. --- *** non-covalently with other molecules. A ***
  7982. --- *** region on the surface of a molecule that ***
  7983. --- *** may interact with another molecule. Whe ***
  7984. --- *** n applied to polypeptides: Amino acids i ***
  7985. --- *** nvolved in binding or interactions. It c ***
  7986. --- *** an also apply to an amino acid bond whic ***
  7987. --- *** h is represented by the positions of the ***
  7988. --- *** two flanking amino acids. ***
  7989. --- ************************************************
  7990. ---
  7991. CREATE VIEW binding_site AS
  7992. SELECT
  7993. feature_id AS binding_site_id,
  7994. feature.*
  7995. FROM
  7996. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7997. 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';
  7998. --- ************************************************
  7999. --- *** relation: protein_binding_site ***
  8000. --- *** relation type: VIEW ***
  8001. --- *** ***
  8002. --- *** A binding site that, in the molecule, in ***
  8003. --- *** teracts selectively and non-covalently w ***
  8004. --- *** ith polypeptide molecules. ***
  8005. --- ************************************************
  8006. ---
  8007. CREATE VIEW protein_binding_site AS
  8008. SELECT
  8009. feature_id AS protein_binding_site_id,
  8010. feature.*
  8011. FROM
  8012. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8013. 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';
  8014. --- ************************************************
  8015. --- *** relation: rescue_region ***
  8016. --- *** relation type: VIEW ***
  8017. --- *** ***
  8018. --- *** A region that rescues. ***
  8019. --- ************************************************
  8020. ---
  8021. CREATE VIEW rescue_region AS
  8022. SELECT
  8023. feature_id AS rescue_region_id,
  8024. feature.*
  8025. FROM
  8026. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8027. WHERE cvterm.name = 'engineered_rescue_region' OR cvterm.name = 'rescue_region';
  8028. --- ************************************************
  8029. --- *** relation: restriction_fragment ***
  8030. --- *** relation type: VIEW ***
  8031. --- *** ***
  8032. --- *** A region of polynucleotide sequence prod ***
  8033. --- *** uced by digestion with a restriction end ***
  8034. --- *** onuclease. ***
  8035. --- ************************************************
  8036. ---
  8037. CREATE VIEW restriction_fragment AS
  8038. SELECT
  8039. feature_id AS restriction_fragment_id,
  8040. feature.*
  8041. FROM
  8042. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8043. WHERE cvterm.name = 'RFLP_fragment' OR cvterm.name = 'restriction_fragment';
  8044. --- ************************************************
  8045. --- *** relation: sequence_difference ***
  8046. --- *** relation type: VIEW ***
  8047. --- *** ***
  8048. --- *** A region where the sequence differs from ***
  8049. --- *** that of a specified sequence. ***
  8050. --- ************************************************
  8051. ---
  8052. CREATE VIEW sequence_difference AS
  8053. SELECT
  8054. feature_id AS sequence_difference_id,
  8055. feature.*
  8056. FROM
  8057. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8058. 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';
  8059. --- ************************************************
  8060. --- *** relation: invalidated_by_genomic_contamination ***
  8061. --- *** relation type: VIEW ***
  8062. --- *** ***
  8063. --- *** An attribute to describe a feature that ***
  8064. --- *** is invalidated due to genomic contaminat ***
  8065. --- *** ion. ***
  8066. --- ************************************************
  8067. ---
  8068. CREATE VIEW invalidated_by_genomic_contamination AS
  8069. SELECT
  8070. feature_id AS invalidated_by_genomic_contamination_id,
  8071. feature.*
  8072. FROM
  8073. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8074. WHERE cvterm.name = 'invalidated_by_genomic_contamination';
  8075. --- ************************************************
  8076. --- *** relation: invalidated_by_genomic_polya_primed_cdna ***
  8077. --- *** relation type: VIEW ***
  8078. --- *** ***
  8079. --- *** An attribute to describe a feature that ***
  8080. --- *** is invalidated due to polyA priming. ***
  8081. --- ************************************************
  8082. ---
  8083. CREATE VIEW invalidated_by_genomic_polya_primed_cdna AS
  8084. SELECT
  8085. feature_id AS invalidated_by_genomic_polya_primed_cdna_id,
  8086. feature.*
  8087. FROM
  8088. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8089. WHERE cvterm.name = 'invalidated_by_genomic_polyA_primed_cDNA';
  8090. --- ************************************************
  8091. --- *** relation: invalidated_by_partial_processing ***
  8092. --- *** relation type: VIEW ***
  8093. --- *** ***
  8094. --- *** An attribute to describe a feature that ***
  8095. --- *** is invalidated due to partial processing ***
  8096. --- *** . ***
  8097. --- ************************************************
  8098. ---
  8099. CREATE VIEW invalidated_by_partial_processing AS
  8100. SELECT
  8101. feature_id AS invalidated_by_partial_processing_id,
  8102. feature.*
  8103. FROM
  8104. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8105. WHERE cvterm.name = 'invalidated_by_partial_processing';
  8106. --- ************************************************
  8107. --- *** relation: polypeptide_domain ***
  8108. --- *** relation type: VIEW ***
  8109. --- *** ***
  8110. --- *** A structurally or functionally defined p ***
  8111. --- *** rotein region. In proteins with multiple ***
  8112. --- *** domains, the combination of the domains ***
  8113. --- *** determines the function of the protein. ***
  8114. --- *** A region which has been shown to recur ***
  8115. --- *** throughout evolution. ***
  8116. --- ************************************************
  8117. ---
  8118. CREATE VIEW polypeptide_domain AS
  8119. SELECT
  8120. feature_id AS polypeptide_domain_id,
  8121. feature.*
  8122. FROM
  8123. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8124. WHERE cvterm.name = 'polypeptide_domain';
  8125. --- ************************************************
  8126. --- *** relation: signal_peptide ***
  8127. --- *** relation type: VIEW ***
  8128. --- *** ***
  8129. --- *** The signal_peptide is a short region of ***
  8130. --- *** the peptide located at the N-terminus th ***
  8131. --- *** at directs the protein to be secreted or ***
  8132. --- *** part of membrane components. ***
  8133. --- ************************************************
  8134. ---
  8135. CREATE VIEW signal_peptide AS
  8136. SELECT
  8137. feature_id AS signal_peptide_id,
  8138. feature.*
  8139. FROM
  8140. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8141. WHERE cvterm.name = 'signal_peptide';
  8142. --- ************************************************
  8143. --- *** relation: mature_protein_region ***
  8144. --- *** relation type: VIEW ***
  8145. --- *** ***
  8146. --- *** The polypeptide sequence that remains wh ***
  8147. --- *** en the cleaved peptide regions have been ***
  8148. --- *** cleaved from the immature peptide. ***
  8149. --- ************************************************
  8150. ---
  8151. CREATE VIEW mature_protein_region AS
  8152. SELECT
  8153. feature_id AS mature_protein_region_id,
  8154. feature.*
  8155. FROM
  8156. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8157. WHERE cvterm.name = 'active_peptide' OR cvterm.name = 'mature_protein_region';
  8158. --- ************************************************
  8159. --- *** relation: five_prime_terminal_inverted_repeat ***
  8160. --- *** relation type: VIEW ***
  8161. --- *** ***
  8162. --- ************************************************
  8163. ---
  8164. CREATE VIEW five_prime_terminal_inverted_repeat AS
  8165. SELECT
  8166. feature_id AS five_prime_terminal_inverted_repeat_id,
  8167. feature.*
  8168. FROM
  8169. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8170. WHERE cvterm.name = 'five_prime_terminal_inverted_repeat';
  8171. --- ************************************************
  8172. --- *** relation: three_prime_terminal_inverted_repeat ***
  8173. --- *** relation type: VIEW ***
  8174. --- *** ***
  8175. --- ************************************************
  8176. ---
  8177. CREATE VIEW three_prime_terminal_inverted_repeat AS
  8178. SELECT
  8179. feature_id AS three_prime_terminal_inverted_repeat_id,
  8180. feature.*
  8181. FROM
  8182. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8183. WHERE cvterm.name = 'three_prime_terminal_inverted_repeat';
  8184. --- ************************************************
  8185. --- *** relation: u5_ltr_region ***
  8186. --- *** relation type: VIEW ***
  8187. --- *** ***
  8188. --- ************************************************
  8189. ---
  8190. CREATE VIEW u5_ltr_region AS
  8191. SELECT
  8192. feature_id AS u5_ltr_region_id,
  8193. feature.*
  8194. FROM
  8195. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8196. WHERE cvterm.name = 'U5_five_prime_LTR_region' OR cvterm.name = 'U5_LTR_region';
  8197. --- ************************************************
  8198. --- *** relation: r_ltr_region ***
  8199. --- *** relation type: VIEW ***
  8200. --- *** ***
  8201. --- ************************************************
  8202. ---
  8203. CREATE VIEW r_ltr_region AS
  8204. SELECT
  8205. feature_id AS r_ltr_region_id,
  8206. feature.*
  8207. FROM
  8208. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8209. WHERE cvterm.name = 'R_five_prime_LTR_region' OR cvterm.name = 'R_LTR_region';
  8210. --- ************************************************
  8211. --- *** relation: u3_ltr_region ***
  8212. --- *** relation type: VIEW ***
  8213. --- *** ***
  8214. --- ************************************************
  8215. ---
  8216. CREATE VIEW u3_ltr_region AS
  8217. SELECT
  8218. feature_id AS u3_ltr_region_id,
  8219. feature.*
  8220. FROM
  8221. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8222. WHERE cvterm.name = 'U3_five_prime_LTR_region' OR cvterm.name = 'U3_LTR_region';
  8223. --- ************************************************
  8224. --- *** relation: five_prime_ltr ***
  8225. --- *** relation type: VIEW ***
  8226. --- *** ***
  8227. --- ************************************************
  8228. ---
  8229. CREATE VIEW five_prime_ltr AS
  8230. SELECT
  8231. feature_id AS five_prime_ltr_id,
  8232. feature.*
  8233. FROM
  8234. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8235. WHERE cvterm.name = 'five_prime_LTR';
  8236. --- ************************************************
  8237. --- *** relation: three_prime_ltr ***
  8238. --- *** relation type: VIEW ***
  8239. --- *** ***
  8240. --- ************************************************
  8241. ---
  8242. CREATE VIEW three_prime_ltr AS
  8243. SELECT
  8244. feature_id AS three_prime_ltr_id,
  8245. feature.*
  8246. FROM
  8247. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8248. WHERE cvterm.name = 'three_prime_LTR';
  8249. --- ************************************************
  8250. --- *** relation: r_five_prime_ltr_region ***
  8251. --- *** relation type: VIEW ***
  8252. --- *** ***
  8253. --- ************************************************
  8254. ---
  8255. CREATE VIEW r_five_prime_ltr_region AS
  8256. SELECT
  8257. feature_id AS r_five_prime_ltr_region_id,
  8258. feature.*
  8259. FROM
  8260. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8261. WHERE cvterm.name = 'R_five_prime_LTR_region';
  8262. --- ************************************************
  8263. --- *** relation: u5_five_prime_ltr_region ***
  8264. --- *** relation type: VIEW ***
  8265. --- *** ***
  8266. --- ************************************************
  8267. ---
  8268. CREATE VIEW u5_five_prime_ltr_region AS
  8269. SELECT
  8270. feature_id AS u5_five_prime_ltr_region_id,
  8271. feature.*
  8272. FROM
  8273. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8274. WHERE cvterm.name = 'U5_five_prime_LTR_region';
  8275. --- ************************************************
  8276. --- *** relation: u3_five_prime_ltr_region ***
  8277. --- *** relation type: VIEW ***
  8278. --- *** ***
  8279. --- ************************************************
  8280. ---
  8281. CREATE VIEW u3_five_prime_ltr_region AS
  8282. SELECT
  8283. feature_id AS u3_five_prime_ltr_region_id,
  8284. feature.*
  8285. FROM
  8286. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8287. WHERE cvterm.name = 'U3_five_prime_LTR_region';
  8288. --- ************************************************
  8289. --- *** relation: r_three_prime_ltr_region ***
  8290. --- *** relation type: VIEW ***
  8291. --- *** ***
  8292. --- ************************************************
  8293. ---
  8294. CREATE VIEW r_three_prime_ltr_region AS
  8295. SELECT
  8296. feature_id AS r_three_prime_ltr_region_id,
  8297. feature.*
  8298. FROM
  8299. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8300. WHERE cvterm.name = 'R_three_prime_LTR_region';
  8301. --- ************************************************
  8302. --- *** relation: u3_three_prime_ltr_region ***
  8303. --- *** relation type: VIEW ***
  8304. --- *** ***
  8305. --- ************************************************
  8306. ---
  8307. CREATE VIEW u3_three_prime_ltr_region AS
  8308. SELECT
  8309. feature_id AS u3_three_prime_ltr_region_id,
  8310. feature.*
  8311. FROM
  8312. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8313. WHERE cvterm.name = 'U3_three_prime_LTR_region';
  8314. --- ************************************************
  8315. --- *** relation: u5_three_prime_ltr_region ***
  8316. --- *** relation type: VIEW ***
  8317. --- *** ***
  8318. --- ************************************************
  8319. ---
  8320. CREATE VIEW u5_three_prime_ltr_region AS
  8321. SELECT
  8322. feature_id AS u5_three_prime_ltr_region_id,
  8323. feature.*
  8324. FROM
  8325. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8326. WHERE cvterm.name = 'U5_three_prime_LTR_region';
  8327. --- ************************************************
  8328. --- *** relation: non_ltr_retrotransposon_polymeric_tract ***
  8329. --- *** relation type: VIEW ***
  8330. --- *** ***
  8331. --- *** A polymeric tract, such as poly(dA), wit ***
  8332. --- *** hin a non_LTR_retrotransposon. ***
  8333. --- ************************************************
  8334. ---
  8335. CREATE VIEW non_ltr_retrotransposon_polymeric_tract AS
  8336. SELECT
  8337. feature_id AS non_ltr_retrotransposon_polymeric_tract_id,
  8338. feature.*
  8339. FROM
  8340. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8341. WHERE cvterm.name = 'non_LTR_retrotransposon_polymeric_tract';
  8342. --- ************************************************
  8343. --- *** relation: target_site_duplication ***
  8344. --- *** relation type: VIEW ***
  8345. --- *** ***
  8346. --- *** A sequence of the target DNA that is dup ***
  8347. --- *** licated when a transposable element or p ***
  8348. --- *** hage inserts; usually found at each end ***
  8349. --- *** the insertion. ***
  8350. --- ************************************************
  8351. ---
  8352. CREATE VIEW target_site_duplication AS
  8353. SELECT
  8354. feature_id AS target_site_duplication_id,
  8355. feature.*
  8356. FROM
  8357. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8358. WHERE cvterm.name = 'target_site_duplication';
  8359. --- ************************************************
  8360. --- *** relation: rr_tract ***
  8361. --- *** relation type: VIEW ***
  8362. --- *** ***
  8363. --- *** A polypurine tract within an LTR_retrotr ***
  8364. --- *** ansposon. ***
  8365. --- ************************************************
  8366. ---
  8367. CREATE VIEW rr_tract AS
  8368. SELECT
  8369. feature_id AS rr_tract_id,
  8370. feature.*
  8371. FROM
  8372. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8373. WHERE cvterm.name = 'RR_tract';
  8374. --- ************************************************
  8375. --- *** relation: ars ***
  8376. --- *** relation type: VIEW ***
  8377. --- *** ***
  8378. --- *** A sequence that can autonomously replica ***
  8379. --- *** te, as a plasmid, when transformed into ***
  8380. --- *** a bacterial host. ***
  8381. --- ************************************************
  8382. ---
  8383. CREATE VIEW ars AS
  8384. SELECT
  8385. feature_id AS ars_id,
  8386. feature.*
  8387. FROM
  8388. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8389. WHERE cvterm.name = 'ARS';
  8390. --- ************************************************
  8391. --- *** relation: inverted_ring_chromosome ***
  8392. --- *** relation type: VIEW ***
  8393. --- *** ***
  8394. --- ************************************************
  8395. ---
  8396. CREATE VIEW inverted_ring_chromosome AS
  8397. SELECT
  8398. feature_id AS inverted_ring_chromosome_id,
  8399. feature.*
  8400. FROM
  8401. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8402. WHERE cvterm.name = 'inverted_ring_chromosome';
  8403. --- ************************************************
  8404. --- *** relation: vector_replicon ***
  8405. --- *** relation type: VIEW ***
  8406. --- *** ***
  8407. --- *** A replicon that has been modified to act ***
  8408. --- *** as a vector for foreign sequence. ***
  8409. --- ************************************************
  8410. ---
  8411. CREATE VIEW vector_replicon AS
  8412. SELECT
  8413. feature_id AS vector_replicon_id,
  8414. feature.*
  8415. FROM
  8416. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8417. 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';
  8418. --- ************************************************
  8419. --- *** relation: ss_oligo ***
  8420. --- *** relation type: VIEW ***
  8421. --- *** ***
  8422. --- *** A single stranded oligonucleotide. ***
  8423. --- ************************************************
  8424. ---
  8425. CREATE VIEW ss_oligo AS
  8426. SELECT
  8427. feature_id AS ss_oligo_id,
  8428. feature.*
  8429. FROM
  8430. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8431. 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';
  8432. --- ************************************************
  8433. --- *** relation: ds_oligo ***
  8434. --- *** relation type: VIEW ***
  8435. --- *** ***
  8436. --- *** A double stranded oligonucleotide. ***
  8437. --- ************************************************
  8438. ---
  8439. CREATE VIEW ds_oligo AS
  8440. SELECT
  8441. feature_id AS ds_oligo_id,
  8442. feature.*
  8443. FROM
  8444. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8445. WHERE cvterm.name = 'RNAi_reagent' OR cvterm.name = 'DNA_constraint_sequence' OR cvterm.name = 'ds_oligo';
  8446. --- ************************************************
  8447. --- *** relation: polymer_attribute ***
  8448. --- *** relation type: VIEW ***
  8449. --- *** ***
  8450. --- *** An attribute to describe the kind of bio ***
  8451. --- *** logical sequence. ***
  8452. --- ************************************************
  8453. ---
  8454. CREATE VIEW polymer_attribute AS
  8455. SELECT
  8456. feature_id AS polymer_attribute_id,
  8457. feature.*
  8458. FROM
  8459. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8460. 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';
  8461. --- ************************************************
  8462. --- *** relation: three_prime_noncoding_exon ***
  8463. --- *** relation type: VIEW ***
  8464. --- *** ***
  8465. --- *** Non-coding exon in the 3' UTR. ***
  8466. --- ************************************************
  8467. ---
  8468. CREATE VIEW three_prime_noncoding_exon AS
  8469. SELECT
  8470. feature_id AS three_prime_noncoding_exon_id,
  8471. feature.*
  8472. FROM
  8473. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8474. WHERE cvterm.name = 'three_prime_noncoding_exon';
  8475. --- ************************************************
  8476. --- *** relation: five_prime_noncoding_exon ***
  8477. --- *** relation type: VIEW ***
  8478. --- *** ***
  8479. --- *** Non-coding exon in the 5' UTR. ***
  8480. --- ************************************************
  8481. ---
  8482. CREATE VIEW five_prime_noncoding_exon AS
  8483. SELECT
  8484. feature_id AS five_prime_noncoding_exon_id,
  8485. feature.*
  8486. FROM
  8487. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8488. WHERE cvterm.name = 'five_prime_noncoding_exon';
  8489. --- ************************************************
  8490. --- *** relation: utr_intron ***
  8491. --- *** relation type: VIEW ***
  8492. --- *** ***
  8493. --- *** Intron located in the untranslated regio ***
  8494. --- *** n. ***
  8495. --- ************************************************
  8496. ---
  8497. CREATE VIEW utr_intron AS
  8498. SELECT
  8499. feature_id AS utr_intron_id,
  8500. feature.*
  8501. FROM
  8502. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8503. WHERE cvterm.name = 'five_prime_UTR_intron' OR cvterm.name = 'three_prime_UTR_intron' OR cvterm.name = 'UTR_intron';
  8504. --- ************************************************
  8505. --- *** relation: five_prime_utr_intron ***
  8506. --- *** relation type: VIEW ***
  8507. --- *** ***
  8508. --- *** An intron located in the 5' UTR. ***
  8509. --- ************************************************
  8510. ---
  8511. CREATE VIEW five_prime_utr_intron AS
  8512. SELECT
  8513. feature_id AS five_prime_utr_intron_id,
  8514. feature.*
  8515. FROM
  8516. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8517. WHERE cvterm.name = 'five_prime_UTR_intron';
  8518. --- ************************************************
  8519. --- *** relation: three_prime_utr_intron ***
  8520. --- *** relation type: VIEW ***
  8521. --- *** ***
  8522. --- *** An intron located in the 3' UTR. ***
  8523. --- ************************************************
  8524. ---
  8525. CREATE VIEW three_prime_utr_intron AS
  8526. SELECT
  8527. feature_id AS three_prime_utr_intron_id,
  8528. feature.*
  8529. FROM
  8530. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8531. WHERE cvterm.name = 'three_prime_UTR_intron';
  8532. --- ************************************************
  8533. --- *** relation: random_sequence ***
  8534. --- *** relation type: VIEW ***
  8535. --- *** ***
  8536. --- *** A sequence of nucleotides or amino acids ***
  8537. --- *** which, by design, has a "random" order ***
  8538. --- *** of components, given a predetermined inp ***
  8539. --- *** ut frequency of these components. ***
  8540. --- ************************************************
  8541. ---
  8542. CREATE VIEW random_sequence AS
  8543. SELECT
  8544. feature_id AS random_sequence_id,
  8545. feature.*
  8546. FROM
  8547. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8548. WHERE cvterm.name = 'random_sequence';
  8549. --- ************************************************
  8550. --- *** relation: interband ***
  8551. --- *** relation type: VIEW ***
  8552. --- *** ***
  8553. --- *** A light region between two darkly staini ***
  8554. --- *** ng bands in a polytene chromosome. ***
  8555. --- ************************************************
  8556. ---
  8557. CREATE VIEW interband AS
  8558. SELECT
  8559. feature_id AS interband_id,
  8560. feature.*
  8561. FROM
  8562. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8563. WHERE cvterm.name = 'interband';
  8564. --- ************************************************
  8565. --- *** relation: gene_with_polyadenylated_mrna ***
  8566. --- *** relation type: VIEW ***
  8567. --- *** ***
  8568. --- *** A gene that encodes a polyadenylated mRN ***
  8569. --- *** A. ***
  8570. --- ************************************************
  8571. ---
  8572. CREATE VIEW gene_with_polyadenylated_mrna AS
  8573. SELECT
  8574. feature_id AS gene_with_polyadenylated_mrna_id,
  8575. feature.*
  8576. FROM
  8577. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8578. WHERE cvterm.name = 'gene_with_polyadenylated_mRNA';
  8579. --- ************************************************
  8580. --- *** relation: chromosomal_transposition ***
  8581. --- *** relation type: VIEW ***
  8582. --- *** ***
  8583. --- *** A chromosome structure variant whereby a ***
  8584. --- *** region of a chromosome has been transfe ***
  8585. --- *** rred to another position. Among interchr ***
  8586. --- *** omosomal rearrangements, the term transp ***
  8587. --- *** osition is reserved for that class in wh ***
  8588. --- *** ich the telomeres of the chromosomes inv ***
  8589. --- *** olved are coupled (that is to say, form ***
  8590. --- *** the two ends of a single DNA molecule) a ***
  8591. --- *** s in wild-type. ***
  8592. --- ************************************************
  8593. ---
  8594. CREATE VIEW chromosomal_transposition AS
  8595. SELECT
  8596. feature_id AS chromosomal_transposition_id,
  8597. feature.*
  8598. FROM
  8599. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8600. 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';
  8601. --- ************************************************
  8602. --- *** relation: rasirna ***
  8603. --- *** relation type: VIEW ***
  8604. --- *** ***
  8605. --- *** A 17-28-nt, small interfering RNA derive ***
  8606. --- *** d from transcripts of repetitive element ***
  8607. --- *** s. ***
  8608. --- ************************************************
  8609. ---
  8610. CREATE VIEW rasirna AS
  8611. SELECT
  8612. feature_id AS rasirna_id,
  8613. feature.*
  8614. FROM
  8615. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8616. WHERE cvterm.name = 'rasiRNA';
  8617. --- ************************************************
  8618. --- *** relation: gene_with_mrna_with_frameshift ***
  8619. --- *** relation type: VIEW ***
  8620. --- *** ***
  8621. --- *** A gene that encodes an mRNA with a frame ***
  8622. --- *** shift. ***
  8623. --- ************************************************
  8624. ---
  8625. CREATE VIEW gene_with_mrna_with_frameshift AS
  8626. SELECT
  8627. feature_id AS gene_with_mrna_with_frameshift_id,
  8628. feature.*
  8629. FROM
  8630. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8631. WHERE cvterm.name = 'gene_with_mRNA_with_frameshift';
  8632. --- ************************************************
  8633. --- *** relation: recombinationally_rearranged_gene ***
  8634. --- *** relation type: VIEW ***
  8635. --- *** ***
  8636. --- *** A gene that is recombinationally rearran ***
  8637. --- *** ged. ***
  8638. --- ************************************************
  8639. ---
  8640. CREATE VIEW recombinationally_rearranged_gene AS
  8641. SELECT
  8642. feature_id AS recombinationally_rearranged_gene_id,
  8643. feature.*
  8644. FROM
  8645. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8646. WHERE cvterm.name = 'recombinationally_inverted_gene' OR cvterm.name = 'recombinationally_rearranged_vertebrate_immune_system_gene' OR cvterm.name = 'recombinationally_rearranged_gene';
  8647. --- ************************************************
  8648. --- *** relation: interchromosomal_duplication ***
  8649. --- *** relation type: VIEW ***
  8650. --- *** ***
  8651. --- *** A chromosome duplication involving an in ***
  8652. --- *** sertion from another chromosome. ***
  8653. --- ************************************************
  8654. ---
  8655. CREATE VIEW interchromosomal_duplication AS
  8656. SELECT
  8657. feature_id AS interchromosomal_duplication_id,
  8658. feature.*
  8659. FROM
  8660. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8661. WHERE cvterm.name = 'interchromosomal_duplication';
  8662. --- ************************************************
  8663. --- *** relation: d_gene ***
  8664. --- *** relation type: VIEW ***
  8665. --- *** ***
  8666. --- *** Germline genomic DNA including D-region ***
  8667. --- *** with 5' UTR and 3' UTR, also designated ***
  8668. --- *** as D-segment. ***
  8669. --- ************************************************
  8670. ---
  8671. CREATE VIEW d_gene AS
  8672. SELECT
  8673. feature_id AS d_gene_id,
  8674. feature.*
  8675. FROM
  8676. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8677. WHERE cvterm.name = 'D_gene';
  8678. --- ************************************************
  8679. --- *** relation: gene_with_trans_spliced_transcript ***
  8680. --- *** relation type: VIEW ***
  8681. --- *** ***
  8682. --- *** A gene with a transcript that is trans-s ***
  8683. --- *** pliced. ***
  8684. --- ************************************************
  8685. ---
  8686. CREATE VIEW gene_with_trans_spliced_transcript AS
  8687. SELECT
  8688. feature_id AS gene_with_trans_spliced_transcript_id,
  8689. feature.*
  8690. FROM
  8691. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8692. WHERE cvterm.name = 'gene_with_trans_spliced_transcript';
  8693. --- ************************************************
  8694. --- *** relation: vertebrate_immunoglobulin_t_cell_receptor_segment ***
  8695. --- *** relation type: VIEW ***
  8696. --- *** ***
  8697. --- ************************************************
  8698. ---
  8699. CREATE VIEW vertebrate_immunoglobulin_t_cell_receptor_segment AS
  8700. SELECT
  8701. feature_id AS vertebrate_immunoglobulin_t_cell_receptor_segment_id,
  8702. feature.*
  8703. FROM
  8704. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8705. 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';
  8706. --- ************************************************
  8707. --- *** relation: inversion_derived_bipartite_deficiency ***
  8708. --- *** relation type: VIEW ***
  8709. --- *** ***
  8710. --- *** A chromosomal deletion whereby a chromos ***
  8711. --- *** ome generated by recombination between t ***
  8712. --- *** wo inversions; has a deficiency at each ***
  8713. --- *** end of the inversion. ***
  8714. --- ************************************************
  8715. ---
  8716. CREATE VIEW inversion_derived_bipartite_deficiency AS
  8717. SELECT
  8718. feature_id AS inversion_derived_bipartite_deficiency_id,
  8719. feature.*
  8720. FROM
  8721. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8722. WHERE cvterm.name = 'inversion_derived_bipartite_deficiency';
  8723. --- ************************************************
  8724. --- *** relation: pseudogenic_region ***
  8725. --- *** relation type: VIEW ***
  8726. --- *** ***
  8727. --- *** A non-functional descendent of a functio ***
  8728. --- *** nal entity. ***
  8729. --- ************************************************
  8730. ---
  8731. CREATE VIEW pseudogenic_region AS
  8732. SELECT
  8733. feature_id AS pseudogenic_region_id,
  8734. feature.*
  8735. FROM
  8736. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8737. 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';
  8738. --- ************************************************
  8739. --- *** relation: encodes_alternately_spliced_transcripts ***
  8740. --- *** relation type: VIEW ***
  8741. --- *** ***
  8742. --- *** A gene that encodes more than one transc ***
  8743. --- *** ript. ***
  8744. --- ************************************************
  8745. ---
  8746. CREATE VIEW encodes_alternately_spliced_transcripts AS
  8747. SELECT
  8748. feature_id AS encodes_alternately_spliced_transcripts_id,
  8749. feature.*
  8750. FROM
  8751. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8752. 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';
  8753. --- ************************************************
  8754. --- *** relation: decayed_exon ***
  8755. --- *** relation type: VIEW ***
  8756. --- *** ***
  8757. --- *** A non-functional descendant of an exon. ***
  8758. --- ************************************************
  8759. ---
  8760. CREATE VIEW decayed_exon AS
  8761. SELECT
  8762. feature_id AS decayed_exon_id,
  8763. feature.*
  8764. FROM
  8765. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8766. WHERE cvterm.name = 'decayed_exon';
  8767. --- ************************************************
  8768. --- *** relation: inversion_derived_deficiency_plus_duplication ***
  8769. --- *** relation type: VIEW ***
  8770. --- *** ***
  8771. --- *** A chromosome deletion whereby a chromoso ***
  8772. --- *** me is generated by recombination between ***
  8773. --- *** two inversions; there is a deficiency a ***
  8774. --- *** t one end of the inversion and a duplica ***
  8775. --- *** tion at the other end of the inversion. ***
  8776. --- ************************************************
  8777. ---
  8778. CREATE VIEW inversion_derived_deficiency_plus_duplication AS
  8779. SELECT
  8780. feature_id AS inversion_derived_deficiency_plus_duplication_id,
  8781. feature.*
  8782. FROM
  8783. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8784. WHERE cvterm.name = 'inversion_derived_deficiency_plus_duplication';
  8785. --- ************************************************
  8786. --- *** relation: v_gene ***
  8787. --- *** relation type: VIEW ***
  8788. --- *** ***
  8789. --- *** Germline genomic DNA including L-part1, ***
  8790. --- *** V-intron and V-exon, with the 5' UTR and ***
  8791. --- *** 3' UTR. ***
  8792. --- ************************************************
  8793. ---
  8794. CREATE VIEW v_gene AS
  8795. SELECT
  8796. feature_id AS v_gene_id,
  8797. feature.*
  8798. FROM
  8799. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8800. WHERE cvterm.name = 'V_gene';
  8801. --- ************************************************
  8802. --- *** relation: post_translationally_regulated_by_protein_stability ***
  8803. --- *** relation type: VIEW ***
  8804. --- *** ***
  8805. --- *** An attribute describing a gene sequence ***
  8806. --- *** where the resulting protein is regulated ***
  8807. --- *** by the stability of the resulting prote ***
  8808. --- *** in. ***
  8809. --- ************************************************
  8810. ---
  8811. CREATE VIEW post_translationally_regulated_by_protein_stability AS
  8812. SELECT
  8813. feature_id AS post_translationally_regulated_by_protein_stability_id,
  8814. feature.*
  8815. FROM
  8816. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8817. WHERE cvterm.name = 'post_translationally_regulated_by_protein_stability';
  8818. --- ************************************************
  8819. --- *** relation: golden_path_fragment ***
  8820. --- *** relation type: VIEW ***
  8821. --- *** ***
  8822. --- *** One of the pieces of sequence that make ***
  8823. --- *** up a golden path. ***
  8824. --- ************************************************
  8825. ---
  8826. CREATE VIEW golden_path_fragment AS
  8827. SELECT
  8828. feature_id AS golden_path_fragment_id,
  8829. feature.*
  8830. FROM
  8831. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8832. WHERE cvterm.name = 'golden_path_fragment';
  8833. --- ************************************************
  8834. --- *** relation: post_translationally_regulated_by_protein_modification ***
  8835. --- *** relation type: VIEW ***
  8836. --- *** ***
  8837. --- *** An attribute describing a gene sequence ***
  8838. --- *** where the resulting protein is modified ***
  8839. --- *** to regulate it. ***
  8840. --- ************************************************
  8841. ---
  8842. CREATE VIEW post_translationally_regulated_by_protein_modification AS
  8843. SELECT
  8844. feature_id AS post_translationally_regulated_by_protein_modification_id,
  8845. feature.*
  8846. FROM
  8847. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8848. WHERE cvterm.name = 'post_translationally_regulated_by_protein_modification';
  8849. --- ************************************************
  8850. --- *** relation: j_gene ***
  8851. --- *** relation type: VIEW ***
  8852. --- *** ***
  8853. --- *** Germline genomic DNA of an immunoglobuli ***
  8854. --- *** n/T-cell receptor gene including J-regio ***
  8855. --- *** n with 5' UTR (SO:0000204) and 3' UTR (S ***
  8856. --- *** O:0000205), also designated as J-segment ***
  8857. --- *** . ***
  8858. --- ************************************************
  8859. ---
  8860. CREATE VIEW j_gene AS
  8861. SELECT
  8862. feature_id AS j_gene_id,
  8863. feature.*
  8864. FROM
  8865. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8866. WHERE cvterm.name = 'J_gene';
  8867. --- ************************************************
  8868. --- *** relation: autoregulated ***
  8869. --- *** relation type: VIEW ***
  8870. --- *** ***
  8871. --- *** The gene product is involved in its own ***
  8872. --- *** transcriptional regulation. ***
  8873. --- ************************************************
  8874. ---
  8875. CREATE VIEW autoregulated AS
  8876. SELECT
  8877. feature_id AS autoregulated_id,
  8878. feature.*
  8879. FROM
  8880. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8881. WHERE cvterm.name = 'negatively_autoregulated' OR cvterm.name = 'positively_autoregulated' OR cvterm.name = 'autoregulated';
  8882. --- ************************************************
  8883. --- *** relation: tiling_path ***
  8884. --- *** relation type: VIEW ***
  8885. --- *** ***
  8886. --- *** A set of regions which overlap with mini ***
  8887. --- *** mal polymorphism to form a linear sequen ***
  8888. --- *** ce. ***
  8889. --- ************************************************
  8890. ---
  8891. CREATE VIEW tiling_path AS
  8892. SELECT
  8893. feature_id AS tiling_path_id,
  8894. feature.*
  8895. FROM
  8896. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8897. WHERE cvterm.name = 'tiling_path';
  8898. --- ************************************************
  8899. --- *** relation: negatively_autoregulated ***
  8900. --- *** relation type: VIEW ***
  8901. --- *** ***
  8902. --- *** The gene product is involved in its own ***
  8903. --- *** transcriptional regulation where it decr ***
  8904. --- *** eases transcription. ***
  8905. --- ************************************************
  8906. ---
  8907. CREATE VIEW negatively_autoregulated AS
  8908. SELECT
  8909. feature_id AS negatively_autoregulated_id,
  8910. feature.*
  8911. FROM
  8912. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8913. WHERE cvterm.name = 'negatively_autoregulated';
  8914. --- ************************************************
  8915. --- *** relation: tiling_path_fragment ***
  8916. --- *** relation type: VIEW ***
  8917. --- *** ***
  8918. --- *** A piece of sequence that makes up a tili ***
  8919. --- *** ng_path (SO:0000472). ***
  8920. --- ************************************************
  8921. ---
  8922. CREATE VIEW tiling_path_fragment AS
  8923. SELECT
  8924. feature_id AS tiling_path_fragment_id,
  8925. feature.*
  8926. FROM
  8927. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8928. WHERE cvterm.name = 'tiling_path_clone' OR cvterm.name = 'tiling_path_fragment';
  8929. --- ************************************************
  8930. --- *** relation: positively_autoregulated ***
  8931. --- *** relation type: VIEW ***
  8932. --- *** ***
  8933. --- *** The gene product is involved in its own ***
  8934. --- *** transcriptional regulation, where it inc ***
  8935. --- *** reases transcription. ***
  8936. --- ************************************************
  8937. ---
  8938. CREATE VIEW positively_autoregulated AS
  8939. SELECT
  8940. feature_id AS positively_autoregulated_id,
  8941. feature.*
  8942. FROM
  8943. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8944. WHERE cvterm.name = 'positively_autoregulated';
  8945. --- ************************************************
  8946. --- *** relation: contig_read ***
  8947. --- *** relation type: VIEW ***
  8948. --- *** ***
  8949. --- *** A DNA sequencer read which is part of a ***
  8950. --- *** contig. ***
  8951. --- ************************************************
  8952. ---
  8953. CREATE VIEW contig_read AS
  8954. SELECT
  8955. feature_id AS contig_read_id,
  8956. feature.*
  8957. FROM
  8958. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8959. WHERE cvterm.name = 'contig_read';
  8960. --- ************************************************
  8961. --- *** relation: c_gene ***
  8962. --- *** relation type: VIEW ***
  8963. --- *** ***
  8964. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  8965. --- *** eptor gene including C-region (and intro ***
  8966. --- *** ns if present) with 5' UTR (SO:0000204) ***
  8967. --- *** and 3' UTR (SO:0000205). ***
  8968. --- ************************************************
  8969. ---
  8970. CREATE VIEW c_gene AS
  8971. SELECT
  8972. feature_id AS c_gene_id,
  8973. feature.*
  8974. FROM
  8975. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8976. WHERE cvterm.name = 'C_gene';
  8977. --- ************************************************
  8978. --- *** relation: trans_spliced_transcript ***
  8979. --- *** relation type: VIEW ***
  8980. --- *** ***
  8981. --- *** A transcript that is trans-spliced. ***
  8982. --- ************************************************
  8983. ---
  8984. CREATE VIEW trans_spliced_transcript AS
  8985. SELECT
  8986. feature_id AS trans_spliced_transcript_id,
  8987. feature.*
  8988. FROM
  8989. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8990. WHERE cvterm.name = 'trans_spliced_mRNA' OR cvterm.name = 'trans_spliced_transcript';
  8991. --- ************************************************
  8992. --- *** relation: tiling_path_clone ***
  8993. --- *** relation type: VIEW ***
  8994. --- *** ***
  8995. --- *** A clone which is part of a tiling path. ***
  8996. --- *** A tiling path is a set of sequencing sub ***
  8997. --- *** strates, typically clones, which have be ***
  8998. --- *** en selected in order to efficiently cove ***
  8999. --- *** r a region of the genome in preparation ***
  9000. --- *** for sequencing and assembly. ***
  9001. --- ************************************************
  9002. ---
  9003. CREATE VIEW tiling_path_clone AS
  9004. SELECT
  9005. feature_id AS tiling_path_clone_id,
  9006. feature.*
  9007. FROM
  9008. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9009. WHERE cvterm.name = 'tiling_path_clone';
  9010. --- ************************************************
  9011. --- *** relation: terminal_inverted_repeat ***
  9012. --- *** relation type: VIEW ***
  9013. --- *** ***
  9014. --- *** An inverted repeat (SO:0000294) occurrin ***
  9015. --- *** g at the termini of a DNA transposon. ***
  9016. --- ************************************************
  9017. ---
  9018. CREATE VIEW terminal_inverted_repeat AS
  9019. SELECT
  9020. feature_id AS terminal_inverted_repeat_id,
  9021. feature.*
  9022. FROM
  9023. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9024. WHERE cvterm.name = 'five_prime_terminal_inverted_repeat' OR cvterm.name = 'three_prime_terminal_inverted_repeat' OR cvterm.name = 'terminal_inverted_repeat';
  9025. --- ************************************************
  9026. --- *** relation: vertebrate_immunoglobulin_t_cell_receptor_gene_cluster ***
  9027. --- *** relation type: VIEW ***
  9028. --- *** ***
  9029. --- ************************************************
  9030. ---
  9031. CREATE VIEW vertebrate_immunoglobulin_t_cell_receptor_gene_cluster AS
  9032. SELECT
  9033. feature_id AS vertebrate_immunoglobulin_t_cell_receptor_gene_cluster_id,
  9034. feature.*
  9035. FROM
  9036. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9037. 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';
  9038. --- ************************************************
  9039. --- *** relation: nc_primary_transcript ***
  9040. --- *** relation type: VIEW ***
  9041. --- *** ***
  9042. --- *** A primary transcript that is never trans ***
  9043. --- *** lated into a protein. ***
  9044. --- ************************************************
  9045. ---
  9046. CREATE VIEW nc_primary_transcript AS
  9047. SELECT
  9048. feature_id AS nc_primary_transcript_id,
  9049. feature.*
  9050. FROM
  9051. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9052. 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';
  9053. --- ************************************************
  9054. --- *** relation: three_prime_coding_exon_noncoding_region ***
  9055. --- *** relation type: VIEW ***
  9056. --- *** ***
  9057. --- *** The sequence of the 3' exon that is not ***
  9058. --- *** coding. ***
  9059. --- ************************************************
  9060. ---
  9061. CREATE VIEW three_prime_coding_exon_noncoding_region AS
  9062. SELECT
  9063. feature_id AS three_prime_coding_exon_noncoding_region_id,
  9064. feature.*
  9065. FROM
  9066. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9067. WHERE cvterm.name = 'three_prime_coding_exon_noncoding_region';
  9068. --- ************************************************
  9069. --- *** relation: dj_j_cluster ***
  9070. --- *** relation type: VIEW ***
  9071. --- *** ***
  9072. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9073. --- *** eptor gene in rearranged configuration i ***
  9074. --- *** ncluding at least one DJ-gene, and one J ***
  9075. --- *** -gene. ***
  9076. --- ************************************************
  9077. ---
  9078. CREATE VIEW dj_j_cluster AS
  9079. SELECT
  9080. feature_id AS dj_j_cluster_id,
  9081. feature.*
  9082. FROM
  9083. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9084. WHERE cvterm.name = 'DJ_J_cluster';
  9085. --- ************************************************
  9086. --- *** relation: five_prime_coding_exon_noncoding_region ***
  9087. --- *** relation type: VIEW ***
  9088. --- *** ***
  9089. --- *** The sequence of the 5' exon preceding th ***
  9090. --- *** e start codon. ***
  9091. --- ************************************************
  9092. ---
  9093. CREATE VIEW five_prime_coding_exon_noncoding_region AS
  9094. SELECT
  9095. feature_id AS five_prime_coding_exon_noncoding_region_id,
  9096. feature.*
  9097. FROM
  9098. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9099. WHERE cvterm.name = 'five_prime_coding_exon_noncoding_region';
  9100. --- ************************************************
  9101. --- *** relation: vdj_j_c_cluster ***
  9102. --- *** relation type: VIEW ***
  9103. --- *** ***
  9104. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9105. --- *** eptor gene in rearranged configuration i ***
  9106. --- *** ncluding at least one VDJ-gene, one J-ge ***
  9107. --- *** ne and one C-gene. ***
  9108. --- ************************************************
  9109. ---
  9110. CREATE VIEW vdj_j_c_cluster AS
  9111. SELECT
  9112. feature_id AS vdj_j_c_cluster_id,
  9113. feature.*
  9114. FROM
  9115. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9116. WHERE cvterm.name = 'VDJ_J_C_cluster';
  9117. --- ************************************************
  9118. --- *** relation: vdj_j_cluster ***
  9119. --- *** relation type: VIEW ***
  9120. --- *** ***
  9121. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9122. --- *** eptor gene in rearranged configuration i ***
  9123. --- *** ncluding at least one VDJ-gene and one J ***
  9124. --- *** -gene. ***
  9125. --- ************************************************
  9126. ---
  9127. CREATE VIEW vdj_j_cluster AS
  9128. SELECT
  9129. feature_id AS vdj_j_cluster_id,
  9130. feature.*
  9131. FROM
  9132. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9133. WHERE cvterm.name = 'VDJ_J_cluster';
  9134. --- ************************************************
  9135. --- *** relation: vj_c_cluster ***
  9136. --- *** relation type: VIEW ***
  9137. --- *** ***
  9138. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9139. --- *** eptor gene in rearranged configuration i ***
  9140. --- *** ncluding at least one VJ-gene and one C- ***
  9141. --- *** gene. ***
  9142. --- ************************************************
  9143. ---
  9144. CREATE VIEW vj_c_cluster AS
  9145. SELECT
  9146. feature_id AS vj_c_cluster_id,
  9147. feature.*
  9148. FROM
  9149. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9150. WHERE cvterm.name = 'VJ_C_cluster';
  9151. --- ************************************************
  9152. --- *** relation: vj_j_c_cluster ***
  9153. --- *** relation type: VIEW ***
  9154. --- *** ***
  9155. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9156. --- *** eptor gene in rearranged configuration i ***
  9157. --- *** ncluding at least one VJ-gene, one J-gen ***
  9158. --- *** e and one C-gene. ***
  9159. --- ************************************************
  9160. ---
  9161. CREATE VIEW vj_j_c_cluster AS
  9162. SELECT
  9163. feature_id AS vj_j_c_cluster_id,
  9164. feature.*
  9165. FROM
  9166. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9167. WHERE cvterm.name = 'VJ_J_C_cluster';
  9168. --- ************************************************
  9169. --- *** relation: vj_j_cluster ***
  9170. --- *** relation type: VIEW ***
  9171. --- *** ***
  9172. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9173. --- *** eptor gene in rearranged configuration i ***
  9174. --- *** ncluding at least one VJ-gene and one J- ***
  9175. --- *** gene. ***
  9176. --- ************************************************
  9177. ---
  9178. CREATE VIEW vj_j_cluster AS
  9179. SELECT
  9180. feature_id AS vj_j_cluster_id,
  9181. feature.*
  9182. FROM
  9183. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9184. WHERE cvterm.name = 'VJ_J_cluster';
  9185. --- ************************************************
  9186. --- *** relation: d_gene_recombination_feature ***
  9187. --- *** relation type: VIEW ***
  9188. --- *** ***
  9189. --- ************************************************
  9190. ---
  9191. CREATE VIEW d_gene_recombination_feature AS
  9192. SELECT
  9193. feature_id AS d_gene_recombination_feature_id,
  9194. feature.*
  9195. FROM
  9196. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9197. 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';
  9198. --- ************************************************
  9199. --- *** relation: three_prime_d_heptamer ***
  9200. --- *** relation type: VIEW ***
  9201. --- *** ***
  9202. --- *** 7 nucleotide recombination site like CAC ***
  9203. --- *** AGTG, part of a 3' D-recombination signa ***
  9204. --- *** l sequence of an immunoglobulin/T-cell r ***
  9205. --- *** eceptor gene. ***
  9206. --- ************************************************
  9207. ---
  9208. CREATE VIEW three_prime_d_heptamer AS
  9209. SELECT
  9210. feature_id AS three_prime_d_heptamer_id,
  9211. feature.*
  9212. FROM
  9213. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9214. WHERE cvterm.name = 'three_prime_D_heptamer';
  9215. --- ************************************************
  9216. --- *** relation: three_prime_d_nonamer ***
  9217. --- *** relation type: VIEW ***
  9218. --- *** ***
  9219. --- *** A 9 nucleotide recombination site (e.g. ***
  9220. --- *** ACAAAAACC), part of a 3' D-recombination ***
  9221. --- *** signal sequence of an immunoglobulin/T- ***
  9222. --- *** cell receptor gene. ***
  9223. --- ************************************************
  9224. ---
  9225. CREATE VIEW three_prime_d_nonamer AS
  9226. SELECT
  9227. feature_id AS three_prime_d_nonamer_id,
  9228. feature.*
  9229. FROM
  9230. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9231. WHERE cvterm.name = 'three_prime_D_nonamer';
  9232. --- ************************************************
  9233. --- *** relation: three_prime_d_spacer ***
  9234. --- *** relation type: VIEW ***
  9235. --- *** ***
  9236. --- *** A 12 or 23 nucleotide spacer between the ***
  9237. --- *** 3'D-HEPTAMER and 3'D-NONAMER of a 3'D-R ***
  9238. --- *** S. ***
  9239. --- ************************************************
  9240. ---
  9241. CREATE VIEW three_prime_d_spacer AS
  9242. SELECT
  9243. feature_id AS three_prime_d_spacer_id,
  9244. feature.*
  9245. FROM
  9246. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9247. WHERE cvterm.name = 'three_prime_D_spacer';
  9248. --- ************************************************
  9249. --- *** relation: five_prime_d_heptamer ***
  9250. --- *** relation type: VIEW ***
  9251. --- *** ***
  9252. --- *** 7 nucleotide recombination site (e.g. CA ***
  9253. --- *** CTGTG), part of a 5' D-recombination sig ***
  9254. --- *** nal sequence (SO:0000556) of an immunogl ***
  9255. --- *** obulin/T-cell receptor gene. ***
  9256. --- ************************************************
  9257. ---
  9258. CREATE VIEW five_prime_d_heptamer AS
  9259. SELECT
  9260. feature_id AS five_prime_d_heptamer_id,
  9261. feature.*
  9262. FROM
  9263. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9264. WHERE cvterm.name = 'five_prime_D_heptamer';
  9265. --- ************************************************
  9266. --- *** relation: five_prime_d_nonamer ***
  9267. --- *** relation type: VIEW ***
  9268. --- *** ***
  9269. --- *** 9 nucleotide recombination site (e.g. GG ***
  9270. --- *** TTTTTGT), part of a five_prime_D-recombi ***
  9271. --- *** nation signal sequence (SO:0000556) of a ***
  9272. --- *** n immunoglobulin/T-cell receptor gene. ***
  9273. --- ************************************************
  9274. ---
  9275. CREATE VIEW five_prime_d_nonamer AS
  9276. SELECT
  9277. feature_id AS five_prime_d_nonamer_id,
  9278. feature.*
  9279. FROM
  9280. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9281. WHERE cvterm.name = 'five_prime_D_nonamer';
  9282. --- ************************************************
  9283. --- *** relation: five_prime_d_spacer ***
  9284. --- *** relation type: VIEW ***
  9285. --- *** ***
  9286. --- *** 12 or 23 nucleotide spacer between the 5 ***
  9287. --- *** ' D-heptamer (SO:0000496) and 5' D-nonam ***
  9288. --- *** er (SO:0000497) of a 5' D-recombination ***
  9289. --- *** signal sequence (SO:0000556) of an immun ***
  9290. --- *** oglobulin/T-cell receptor gene. ***
  9291. --- ************************************************
  9292. ---
  9293. CREATE VIEW five_prime_d_spacer AS
  9294. SELECT
  9295. feature_id AS five_prime_d_spacer_id,
  9296. feature.*
  9297. FROM
  9298. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9299. WHERE cvterm.name = 'five_prime_D_spacer';
  9300. --- ************************************************
  9301. --- *** relation: virtual_sequence ***
  9302. --- *** relation type: VIEW ***
  9303. --- *** ***
  9304. --- *** A continuous piece of sequence similar t ***
  9305. --- *** o the 'virtual contig' concept of the En ***
  9306. --- *** sembl database. ***
  9307. --- ************************************************
  9308. ---
  9309. CREATE VIEW virtual_sequence AS
  9310. SELECT
  9311. feature_id AS virtual_sequence_id,
  9312. feature.*
  9313. FROM
  9314. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9315. WHERE cvterm.name = 'virtual_sequence';
  9316. --- ************************************************
  9317. --- *** relation: hoogsteen_base_pair ***
  9318. --- *** relation type: VIEW ***
  9319. --- *** ***
  9320. --- *** A type of non-canonical base-pairing. Th ***
  9321. --- *** is is less energetically favourable than ***
  9322. --- *** watson crick base pairing. Hoogsteen GC ***
  9323. --- *** base pairs only have two hydrogen bonds ***
  9324. --- *** . ***
  9325. --- ************************************************
  9326. ---
  9327. CREATE VIEW hoogsteen_base_pair AS
  9328. SELECT
  9329. feature_id AS hoogsteen_base_pair_id,
  9330. feature.*
  9331. FROM
  9332. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9333. WHERE cvterm.name = 'Hoogsteen_base_pair';
  9334. --- ************************************************
  9335. --- *** relation: reverse_hoogsteen_base_pair ***
  9336. --- *** relation type: VIEW ***
  9337. --- *** ***
  9338. --- *** A type of non-canonical base-pairing. ***
  9339. --- ************************************************
  9340. ---
  9341. CREATE VIEW reverse_hoogsteen_base_pair AS
  9342. SELECT
  9343. feature_id AS reverse_hoogsteen_base_pair_id,
  9344. feature.*
  9345. FROM
  9346. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9347. WHERE cvterm.name = 'reverse_Hoogsteen_base_pair';
  9348. --- ************************************************
  9349. --- *** relation: d_dj_c_cluster ***
  9350. --- *** relation type: VIEW ***
  9351. --- *** ***
  9352. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9353. --- *** eptor gene in rearranged configuration i ***
  9354. --- *** ncluding at least one D-gene, one DJ-gen ***
  9355. --- *** e and one C-gene. ***
  9356. --- ************************************************
  9357. ---
  9358. CREATE VIEW d_dj_c_cluster AS
  9359. SELECT
  9360. feature_id AS d_dj_c_cluster_id,
  9361. feature.*
  9362. FROM
  9363. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9364. WHERE cvterm.name = 'D_DJ_C_cluster';
  9365. --- ************************************************
  9366. --- *** relation: d_dj_cluster ***
  9367. --- *** relation type: VIEW ***
  9368. --- *** ***
  9369. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9370. --- *** eptor gene in rearranged configuration i ***
  9371. --- *** ncluding at least one D-gene and one DJ- ***
  9372. --- *** gene. ***
  9373. --- ************************************************
  9374. ---
  9375. CREATE VIEW d_dj_cluster AS
  9376. SELECT
  9377. feature_id AS d_dj_cluster_id,
  9378. feature.*
  9379. FROM
  9380. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9381. WHERE cvterm.name = 'D_DJ_cluster';
  9382. --- ************************************************
  9383. --- *** relation: d_dj_j_c_cluster ***
  9384. --- *** relation type: VIEW ***
  9385. --- *** ***
  9386. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9387. --- *** eptor gene in rearranged configuration i ***
  9388. --- *** ncluding at least one D-gene, one DJ-gen ***
  9389. --- *** e, one J-gene and one C-gene. ***
  9390. --- ************************************************
  9391. ---
  9392. CREATE VIEW d_dj_j_c_cluster AS
  9393. SELECT
  9394. feature_id AS d_dj_j_c_cluster_id,
  9395. feature.*
  9396. FROM
  9397. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9398. WHERE cvterm.name = 'D_DJ_J_C_cluster';
  9399. --- ************************************************
  9400. --- *** relation: pseudogenic_exon ***
  9401. --- *** relation type: VIEW ***
  9402. --- *** ***
  9403. --- *** A non functional descendant of an exon, ***
  9404. --- *** part of a pseudogene. ***
  9405. --- ************************************************
  9406. ---
  9407. CREATE VIEW pseudogenic_exon AS
  9408. SELECT
  9409. feature_id AS pseudogenic_exon_id,
  9410. feature.*
  9411. FROM
  9412. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9413. WHERE cvterm.name = 'pseudogenic_exon';
  9414. --- ************************************************
  9415. --- *** relation: d_dj_j_cluster ***
  9416. --- *** relation type: VIEW ***
  9417. --- *** ***
  9418. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9419. --- *** eptor gene in rearranged configuration i ***
  9420. --- *** ncluding at least one D-gene, one DJ-gen ***
  9421. --- *** e, and one J-gene. ***
  9422. --- ************************************************
  9423. ---
  9424. CREATE VIEW d_dj_j_cluster AS
  9425. SELECT
  9426. feature_id AS d_dj_j_cluster_id,
  9427. feature.*
  9428. FROM
  9429. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9430. WHERE cvterm.name = 'D_DJ_J_cluster';
  9431. --- ************************************************
  9432. --- *** relation: d_j_c_cluster ***
  9433. --- *** relation type: VIEW ***
  9434. --- *** ***
  9435. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9436. --- *** eptor gene in germline configuration inc ***
  9437. --- *** luding at least one D-gene, one J-gene a ***
  9438. --- *** nd one C-gene. ***
  9439. --- ************************************************
  9440. ---
  9441. CREATE VIEW d_j_c_cluster AS
  9442. SELECT
  9443. feature_id AS d_j_c_cluster_id,
  9444. feature.*
  9445. FROM
  9446. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9447. WHERE cvterm.name = 'D_J_C_cluster';
  9448. --- ************************************************
  9449. --- *** relation: vd_gene ***
  9450. --- *** relation type: VIEW ***
  9451. --- *** ***
  9452. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9453. --- *** eptor gene in partially rearranged genom ***
  9454. --- *** ic DNA including L-part1, V-intron and V ***
  9455. --- *** -D-exon, with the 5' UTR (SO:0000204) an ***
  9456. --- *** d 3' UTR (SO:0000205). ***
  9457. --- ************************************************
  9458. ---
  9459. CREATE VIEW vd_gene AS
  9460. SELECT
  9461. feature_id AS vd_gene_id,
  9462. feature.*
  9463. FROM
  9464. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9465. WHERE cvterm.name = 'VD_gene';
  9466. --- ************************************************
  9467. --- *** relation: j_c_cluster ***
  9468. --- *** relation type: VIEW ***
  9469. --- *** ***
  9470. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9471. --- *** eptor gene in germline configuration inc ***
  9472. --- *** luding at least one J-gene and one C-gen ***
  9473. --- *** e. ***
  9474. --- ************************************************
  9475. ---
  9476. CREATE VIEW j_c_cluster AS
  9477. SELECT
  9478. feature_id AS j_c_cluster_id,
  9479. feature.*
  9480. FROM
  9481. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9482. WHERE cvterm.name = 'J_C_cluster';
  9483. --- ************************************************
  9484. --- *** relation: inversion_derived_deficiency_plus_aneuploid ***
  9485. --- *** relation type: VIEW ***
  9486. --- *** ***
  9487. --- *** A chromosomal deletion whereby a chromos ***
  9488. --- *** ome generated by recombination between t ***
  9489. --- *** wo inversions; has a deficiency at one e ***
  9490. --- *** nd and presumed to have a deficiency or ***
  9491. --- *** duplication at the other end of the inve ***
  9492. --- *** rsion. ***
  9493. --- ************************************************
  9494. ---
  9495. CREATE VIEW inversion_derived_deficiency_plus_aneuploid AS
  9496. SELECT
  9497. feature_id AS inversion_derived_deficiency_plus_aneuploid_id,
  9498. feature.*
  9499. FROM
  9500. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9501. WHERE cvterm.name = 'inversion_derived_deficiency_plus_aneuploid';
  9502. --- ************************************************
  9503. --- *** relation: j_cluster ***
  9504. --- *** relation type: VIEW ***
  9505. --- *** ***
  9506. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9507. --- *** eptor gene in germline configuration inc ***
  9508. --- *** luding more than one J-gene. ***
  9509. --- ************************************************
  9510. ---
  9511. CREATE VIEW j_cluster AS
  9512. SELECT
  9513. feature_id AS j_cluster_id,
  9514. feature.*
  9515. FROM
  9516. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9517. WHERE cvterm.name = 'J_cluster';
  9518. --- ************************************************
  9519. --- *** relation: j_nonamer ***
  9520. --- *** relation type: VIEW ***
  9521. --- *** ***
  9522. --- *** 9 nucleotide recombination site (e.g. GG ***
  9523. --- *** TTTTTGT), part of a J-gene recombination ***
  9524. --- *** feature of an immunoglobulin/T-cell rec ***
  9525. --- *** eptor gene. ***
  9526. --- ************************************************
  9527. ---
  9528. CREATE VIEW j_nonamer AS
  9529. SELECT
  9530. feature_id AS j_nonamer_id,
  9531. feature.*
  9532. FROM
  9533. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9534. WHERE cvterm.name = 'J_nonamer';
  9535. --- ************************************************
  9536. --- *** relation: j_heptamer ***
  9537. --- *** relation type: VIEW ***
  9538. --- *** ***
  9539. --- *** 7 nucleotide recombination site (e.g. CA ***
  9540. --- *** CAGTG), part of a J-gene recombination f ***
  9541. --- *** eature of an immunoglobulin/T-cell recep ***
  9542. --- *** tor gene. ***
  9543. --- ************************************************
  9544. ---
  9545. CREATE VIEW j_heptamer AS
  9546. SELECT
  9547. feature_id AS j_heptamer_id,
  9548. feature.*
  9549. FROM
  9550. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9551. WHERE cvterm.name = 'J_heptamer';
  9552. --- ************************************************
  9553. --- *** relation: pseudogenic_transcript ***
  9554. --- *** relation type: VIEW ***
  9555. --- *** ***
  9556. --- *** A non functional descendant of a transcr ***
  9557. --- *** ipt, part of a pseudogene. ***
  9558. --- ************************************************
  9559. ---
  9560. CREATE VIEW pseudogenic_transcript AS
  9561. SELECT
  9562. feature_id AS pseudogenic_transcript_id,
  9563. feature.*
  9564. FROM
  9565. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9566. WHERE cvterm.name = 'pseudogenic_transcript';
  9567. --- ************************************************
  9568. --- *** relation: j_spacer ***
  9569. --- *** relation type: VIEW ***
  9570. --- *** ***
  9571. --- *** 12 or 23 nucleotide spacer between the J ***
  9572. --- *** -nonamer and the J-heptamer of a J-gene ***
  9573. --- *** recombination feature of an immunoglobul ***
  9574. --- *** in/T-cell receptor gene. ***
  9575. --- ************************************************
  9576. ---
  9577. CREATE VIEW j_spacer AS
  9578. SELECT
  9579. feature_id AS j_spacer_id,
  9580. feature.*
  9581. FROM
  9582. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9583. WHERE cvterm.name = 'J_spacer';
  9584. --- ************************************************
  9585. --- *** relation: v_dj_cluster ***
  9586. --- *** relation type: VIEW ***
  9587. --- *** ***
  9588. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9589. --- *** eptor gene in rearranged configuration i ***
  9590. --- *** ncluding at least one V-gene and one DJ- ***
  9591. --- *** gene. ***
  9592. --- ************************************************
  9593. ---
  9594. CREATE VIEW v_dj_cluster AS
  9595. SELECT
  9596. feature_id AS v_dj_cluster_id,
  9597. feature.*
  9598. FROM
  9599. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9600. WHERE cvterm.name = 'V_DJ_cluster';
  9601. --- ************************************************
  9602. --- *** relation: v_dj_j_cluster ***
  9603. --- *** relation type: VIEW ***
  9604. --- *** ***
  9605. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9606. --- *** eptor gene in rearranged configuration i ***
  9607. --- *** ncluding at least one V-gene, one DJ-gen ***
  9608. --- *** e and one J-gene. ***
  9609. --- ************************************************
  9610. ---
  9611. CREATE VIEW v_dj_j_cluster AS
  9612. SELECT
  9613. feature_id AS v_dj_j_cluster_id,
  9614. feature.*
  9615. FROM
  9616. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9617. WHERE cvterm.name = 'V_DJ_J_cluster';
  9618. --- ************************************************
  9619. --- *** relation: v_vdj_c_cluster ***
  9620. --- *** relation type: VIEW ***
  9621. --- *** ***
  9622. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9623. --- *** eptor gene in rearranged configuration i ***
  9624. --- *** ncluding at least one V-gene, one VDJ-ge ***
  9625. --- *** ne and one C-gene. ***
  9626. --- ************************************************
  9627. ---
  9628. CREATE VIEW v_vdj_c_cluster AS
  9629. SELECT
  9630. feature_id AS v_vdj_c_cluster_id,
  9631. feature.*
  9632. FROM
  9633. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9634. WHERE cvterm.name = 'V_VDJ_C_cluster';
  9635. --- ************************************************
  9636. --- *** relation: v_vdj_cluster ***
  9637. --- *** relation type: VIEW ***
  9638. --- *** ***
  9639. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9640. --- *** eptor gene in rearranged configuration i ***
  9641. --- *** ncluding at least one V-gene and one VDJ ***
  9642. --- *** -gene. ***
  9643. --- ************************************************
  9644. ---
  9645. CREATE VIEW v_vdj_cluster AS
  9646. SELECT
  9647. feature_id AS v_vdj_cluster_id,
  9648. feature.*
  9649. FROM
  9650. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9651. WHERE cvterm.name = 'V_VDJ_cluster';
  9652. --- ************************************************
  9653. --- *** relation: v_vdj_j_cluster ***
  9654. --- *** relation type: VIEW ***
  9655. --- *** ***
  9656. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9657. --- *** eptor gene in rearranged configuration i ***
  9658. --- *** ncluding at least one V-gene, one VDJ-ge ***
  9659. --- *** ne and one J-gene. ***
  9660. --- ************************************************
  9661. ---
  9662. CREATE VIEW v_vdj_j_cluster AS
  9663. SELECT
  9664. feature_id AS v_vdj_j_cluster_id,
  9665. feature.*
  9666. FROM
  9667. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9668. WHERE cvterm.name = 'V_VDJ_J_cluster';
  9669. --- ************************************************
  9670. --- *** relation: v_vj_c_cluster ***
  9671. --- *** relation type: VIEW ***
  9672. --- *** ***
  9673. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9674. --- *** eptor gene in rearranged configuration i ***
  9675. --- *** ncluding at least one V-gene, one VJ-gen ***
  9676. --- *** e and one C-gene. ***
  9677. --- ************************************************
  9678. ---
  9679. CREATE VIEW v_vj_c_cluster AS
  9680. SELECT
  9681. feature_id AS v_vj_c_cluster_id,
  9682. feature.*
  9683. FROM
  9684. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9685. WHERE cvterm.name = 'V_VJ_C_cluster';
  9686. --- ************************************************
  9687. --- *** relation: v_vj_cluster ***
  9688. --- *** relation type: VIEW ***
  9689. --- *** ***
  9690. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9691. --- *** eptor gene in rearranged configuration i ***
  9692. --- *** ncluding at least one V-gene and one VJ- ***
  9693. --- *** gene. ***
  9694. --- ************************************************
  9695. ---
  9696. CREATE VIEW v_vj_cluster AS
  9697. SELECT
  9698. feature_id AS v_vj_cluster_id,
  9699. feature.*
  9700. FROM
  9701. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9702. WHERE cvterm.name = 'V_VJ_cluster';
  9703. --- ************************************************
  9704. --- *** relation: v_vj_j_cluster ***
  9705. --- *** relation type: VIEW ***
  9706. --- *** ***
  9707. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9708. --- *** eptor gene in rearranged configuration i ***
  9709. --- *** ncluding at least one V-gene, one VJ-gen ***
  9710. --- *** e and one J-gene. ***
  9711. --- ************************************************
  9712. ---
  9713. CREATE VIEW v_vj_j_cluster AS
  9714. SELECT
  9715. feature_id AS v_vj_j_cluster_id,
  9716. feature.*
  9717. FROM
  9718. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9719. WHERE cvterm.name = 'V_VJ_J_cluster';
  9720. --- ************************************************
  9721. --- *** relation: v_cluster ***
  9722. --- *** relation type: VIEW ***
  9723. --- *** ***
  9724. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9725. --- *** eptor gene in germline configuration inc ***
  9726. --- *** luding more than one V-gene. ***
  9727. --- ************************************************
  9728. ---
  9729. CREATE VIEW v_cluster AS
  9730. SELECT
  9731. feature_id AS v_cluster_id,
  9732. feature.*
  9733. FROM
  9734. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9735. WHERE cvterm.name = 'V_cluster';
  9736. --- ************************************************
  9737. --- *** relation: v_d_dj_c_cluster ***
  9738. --- *** relation type: VIEW ***
  9739. --- *** ***
  9740. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9741. --- *** eptor gene in rearranged configuration i ***
  9742. --- *** ncluding at least one V-gene, one D-gene ***
  9743. --- *** , one DJ-gene and one C-gene. ***
  9744. --- ************************************************
  9745. ---
  9746. CREATE VIEW v_d_dj_c_cluster AS
  9747. SELECT
  9748. feature_id AS v_d_dj_c_cluster_id,
  9749. feature.*
  9750. FROM
  9751. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9752. WHERE cvterm.name = 'V_D_DJ_C_cluster';
  9753. --- ************************************************
  9754. --- *** relation: v_d_dj_cluster ***
  9755. --- *** relation type: VIEW ***
  9756. --- *** ***
  9757. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9758. --- *** eptor gene in rearranged configuration i ***
  9759. --- *** ncluding at least one V-gene, one D-gene ***
  9760. --- *** , one DJ-gene. ***
  9761. --- ************************************************
  9762. ---
  9763. CREATE VIEW v_d_dj_cluster AS
  9764. SELECT
  9765. feature_id AS v_d_dj_cluster_id,
  9766. feature.*
  9767. FROM
  9768. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9769. WHERE cvterm.name = 'V_D_DJ_cluster';
  9770. --- ************************************************
  9771. --- *** relation: v_d_dj_j_c_cluster ***
  9772. --- *** relation type: VIEW ***
  9773. --- *** ***
  9774. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9775. --- *** eptor gene in rearranged configuration i ***
  9776. --- *** ncluding at least one V-gene, one D-gene ***
  9777. --- *** , one DJ-gene, one J-gene and one C-gene ***
  9778. --- *** . ***
  9779. --- ************************************************
  9780. ---
  9781. CREATE VIEW v_d_dj_j_c_cluster AS
  9782. SELECT
  9783. feature_id AS v_d_dj_j_c_cluster_id,
  9784. feature.*
  9785. FROM
  9786. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9787. WHERE cvterm.name = 'V_D_DJ_J_C_cluster';
  9788. --- ************************************************
  9789. --- *** relation: v_d_dj_j_cluster ***
  9790. --- *** relation type: VIEW ***
  9791. --- *** ***
  9792. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9793. --- *** eptor gene in rearranged configuration i ***
  9794. --- *** ncluding at least one V-gene, one D-gene ***
  9795. --- *** , one DJ-gene and one J-gene. ***
  9796. --- ************************************************
  9797. ---
  9798. CREATE VIEW v_d_dj_j_cluster AS
  9799. SELECT
  9800. feature_id AS v_d_dj_j_cluster_id,
  9801. feature.*
  9802. FROM
  9803. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9804. WHERE cvterm.name = 'V_D_DJ_J_cluster';
  9805. --- ************************************************
  9806. --- *** relation: v_d_j_c_cluster ***
  9807. --- *** relation type: VIEW ***
  9808. --- *** ***
  9809. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9810. --- *** eptor gene in germline configuration inc ***
  9811. --- *** luding at least one V-gene, one D-gene a ***
  9812. --- *** nd one J-gene and one C-gene. ***
  9813. --- ************************************************
  9814. ---
  9815. CREATE VIEW v_d_j_c_cluster AS
  9816. SELECT
  9817. feature_id AS v_d_j_c_cluster_id,
  9818. feature.*
  9819. FROM
  9820. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9821. WHERE cvterm.name = 'V_D_J_C_cluster';
  9822. --- ************************************************
  9823. --- *** relation: v_d_j_cluster ***
  9824. --- *** relation type: VIEW ***
  9825. --- *** ***
  9826. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9827. --- *** eptor gene in germline configuration inc ***
  9828. --- *** luding at least one V-gene, one D-gene a ***
  9829. --- *** nd one J-gene. ***
  9830. --- ************************************************
  9831. ---
  9832. CREATE VIEW v_d_j_cluster AS
  9833. SELECT
  9834. feature_id AS v_d_j_cluster_id,
  9835. feature.*
  9836. FROM
  9837. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9838. WHERE cvterm.name = 'V_D_J_cluster';
  9839. --- ************************************************
  9840. --- *** relation: v_heptamer ***
  9841. --- *** relation type: VIEW ***
  9842. --- *** ***
  9843. --- *** 7 nucleotide recombination site (e.g. CA ***
  9844. --- *** CAGTG), part of V-gene recombination fea ***
  9845. --- *** ture of an immunoglobulin/T-cell recepto ***
  9846. --- *** r gene. ***
  9847. --- ************************************************
  9848. ---
  9849. CREATE VIEW v_heptamer AS
  9850. SELECT
  9851. feature_id AS v_heptamer_id,
  9852. feature.*
  9853. FROM
  9854. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9855. WHERE cvterm.name = 'V_heptamer';
  9856. --- ************************************************
  9857. --- *** relation: v_j_cluster ***
  9858. --- *** relation type: VIEW ***
  9859. --- *** ***
  9860. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9861. --- *** eptor gene in germline configuration inc ***
  9862. --- *** luding at least one V-gene and one J-gen ***
  9863. --- *** e. ***
  9864. --- ************************************************
  9865. ---
  9866. CREATE VIEW v_j_cluster AS
  9867. SELECT
  9868. feature_id AS v_j_cluster_id,
  9869. feature.*
  9870. FROM
  9871. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9872. WHERE cvterm.name = 'V_J_cluster';
  9873. --- ************************************************
  9874. --- *** relation: v_j_c_cluster ***
  9875. --- *** relation type: VIEW ***
  9876. --- *** ***
  9877. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9878. --- *** eptor gene in germline configuration inc ***
  9879. --- *** luding at least one V-gene, one J-gene a ***
  9880. --- *** nd one C-gene. ***
  9881. --- ************************************************
  9882. ---
  9883. CREATE VIEW v_j_c_cluster AS
  9884. SELECT
  9885. feature_id AS v_j_c_cluster_id,
  9886. feature.*
  9887. FROM
  9888. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9889. WHERE cvterm.name = 'V_J_C_cluster';
  9890. --- ************************************************
  9891. --- *** relation: v_nonamer ***
  9892. --- *** relation type: VIEW ***
  9893. --- *** ***
  9894. --- *** 9 nucleotide recombination site (e.g. AC ***
  9895. --- *** AAAAACC), part of V-gene recombination f ***
  9896. --- *** eature of an immunoglobulin/T-cell recep ***
  9897. --- *** tor gene. ***
  9898. --- ************************************************
  9899. ---
  9900. CREATE VIEW v_nonamer AS
  9901. SELECT
  9902. feature_id AS v_nonamer_id,
  9903. feature.*
  9904. FROM
  9905. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9906. WHERE cvterm.name = 'V_nonamer';
  9907. --- ************************************************
  9908. --- *** relation: v_spacer ***
  9909. --- *** relation type: VIEW ***
  9910. --- *** ***
  9911. --- *** 12 or 23 nucleotide spacer between the V ***
  9912. --- *** -heptamer and the V-nonamer of a V-gene ***
  9913. --- *** recombination feature of an immunoglobul ***
  9914. --- *** in/T-cell receptor gene. ***
  9915. --- ************************************************
  9916. ---
  9917. CREATE VIEW v_spacer AS
  9918. SELECT
  9919. feature_id AS v_spacer_id,
  9920. feature.*
  9921. FROM
  9922. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9923. WHERE cvterm.name = 'V_spacer';
  9924. --- ************************************************
  9925. --- *** relation: v_gene_recombination_feature ***
  9926. --- *** relation type: VIEW ***
  9927. --- *** ***
  9928. --- *** Recombination signal including V-heptame ***
  9929. --- *** r, V-spacer and V-nonamer in 3' of V-reg ***
  9930. --- *** ion of a V-gene or V-sequence of an immu ***
  9931. --- *** noglobulin/T-cell receptor gene. ***
  9932. --- ************************************************
  9933. ---
  9934. CREATE VIEW v_gene_recombination_feature AS
  9935. SELECT
  9936. feature_id AS v_gene_recombination_feature_id,
  9937. feature.*
  9938. FROM
  9939. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9940. WHERE cvterm.name = 'V_gene_recombination_feature';
  9941. --- ************************************************
  9942. --- *** relation: dj_c_cluster ***
  9943. --- *** relation type: VIEW ***
  9944. --- *** ***
  9945. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9946. --- *** eptor gene in rearranged configuration i ***
  9947. --- *** ncluding at least one DJ-gene and one C- ***
  9948. --- *** gene. ***
  9949. --- ************************************************
  9950. ---
  9951. CREATE VIEW dj_c_cluster AS
  9952. SELECT
  9953. feature_id AS dj_c_cluster_id,
  9954. feature.*
  9955. FROM
  9956. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9957. WHERE cvterm.name = 'DJ_C_cluster';
  9958. --- ************************************************
  9959. --- *** relation: dj_j_c_cluster ***
  9960. --- *** relation type: VIEW ***
  9961. --- *** ***
  9962. --- *** Genomic DNA in rearranged configuration ***
  9963. --- *** including at least one D-J-GENE, one J-G ***
  9964. --- *** ENE and one C-GENE. ***
  9965. --- ************************************************
  9966. ---
  9967. CREATE VIEW dj_j_c_cluster AS
  9968. SELECT
  9969. feature_id AS dj_j_c_cluster_id,
  9970. feature.*
  9971. FROM
  9972. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9973. WHERE cvterm.name = 'DJ_J_C_cluster';
  9974. --- ************************************************
  9975. --- *** relation: vdj_c_cluster ***
  9976. --- *** relation type: VIEW ***
  9977. --- *** ***
  9978. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9979. --- *** eptor gene in rearranged configuration i ***
  9980. --- *** ncluding at least one VDJ-gene and one C ***
  9981. --- *** -gene. ***
  9982. --- ************************************************
  9983. ---
  9984. CREATE VIEW vdj_c_cluster AS
  9985. SELECT
  9986. feature_id AS vdj_c_cluster_id,
  9987. feature.*
  9988. FROM
  9989. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9990. WHERE cvterm.name = 'VDJ_C_cluster';
  9991. --- ************************************************
  9992. --- *** relation: v_dj_c_cluster ***
  9993. --- *** relation type: VIEW ***
  9994. --- *** ***
  9995. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9996. --- *** eptor gene in rearranged configuration i ***
  9997. --- *** ncluding at least one V-gene, one DJ-gen ***
  9998. --- *** e and one C-gene. ***
  9999. --- ************************************************
  10000. ---
  10001. CREATE VIEW v_dj_c_cluster AS
  10002. SELECT
  10003. feature_id AS v_dj_c_cluster_id,
  10004. feature.*
  10005. FROM
  10006. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10007. WHERE cvterm.name = 'V_DJ_C_cluster';
  10008. --- ************************************************
  10009. --- *** relation: helitron ***
  10010. --- *** relation type: VIEW ***
  10011. --- *** ***
  10012. --- *** A rolling circle transposon. Autonomous ***
  10013. --- *** helitrons encode a 5'-to-3' DNA helicase ***
  10014. --- *** and nuclease/ligase similar to those en ***
  10015. --- *** coded by known rolling-circle replicons. ***
  10016. --- ************************************************
  10017. ---
  10018. CREATE VIEW helitron AS
  10019. SELECT
  10020. feature_id AS helitron_id,
  10021. feature.*
  10022. FROM
  10023. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10024. WHERE cvterm.name = 'helitron';
  10025. --- ************************************************
  10026. --- *** relation: recoding_pseudoknot ***
  10027. --- *** relation type: VIEW ***
  10028. --- *** ***
  10029. --- *** The pseudoknots involved in recoding are ***
  10030. --- *** unique in that, as they play their role ***
  10031. --- *** as a structure, they are immediately un ***
  10032. --- *** folded and their now linear sequence ser ***
  10033. --- *** ves as a template for decoding. ***
  10034. --- ************************************************
  10035. ---
  10036. CREATE VIEW recoding_pseudoknot AS
  10037. SELECT
  10038. feature_id AS recoding_pseudoknot_id,
  10039. feature.*
  10040. FROM
  10041. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10042. WHERE cvterm.name = 'recoding_pseudoknot';
  10043. --- ************************************************
  10044. --- *** relation: designed_sequence ***
  10045. --- *** relation type: VIEW ***
  10046. --- *** ***
  10047. --- ************************************************
  10048. ---
  10049. CREATE VIEW designed_sequence AS
  10050. SELECT
  10051. feature_id AS designed_sequence_id,
  10052. feature.*
  10053. FROM
  10054. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10055. WHERE cvterm.name = 'designed_sequence';
  10056. --- ************************************************
  10057. --- *** relation: inversion_derived_bipartite_duplication ***
  10058. --- *** relation type: VIEW ***
  10059. --- *** ***
  10060. --- *** A chromosome generated by recombination ***
  10061. --- *** between two inversions; there is a dupli ***
  10062. --- *** cation at each end of the inversion. ***
  10063. --- ************************************************
  10064. ---
  10065. CREATE VIEW inversion_derived_bipartite_duplication AS
  10066. SELECT
  10067. feature_id AS inversion_derived_bipartite_duplication_id,
  10068. feature.*
  10069. FROM
  10070. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10071. WHERE cvterm.name = 'inversion_derived_bipartite_duplication';
  10072. --- ************************************************
  10073. --- *** relation: gene_with_edited_transcript ***
  10074. --- *** relation type: VIEW ***
  10075. --- *** ***
  10076. --- *** A gene that encodes a transcript that is ***
  10077. --- *** edited. ***
  10078. --- ************************************************
  10079. ---
  10080. CREATE VIEW gene_with_edited_transcript AS
  10081. SELECT
  10082. feature_id AS gene_with_edited_transcript_id,
  10083. feature.*
  10084. FROM
  10085. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10086. WHERE cvterm.name = 'gene_with_edited_transcript';
  10087. --- ************************************************
  10088. --- *** relation: inversion_derived_duplication_plus_aneuploid ***
  10089. --- *** relation type: VIEW ***
  10090. --- *** ***
  10091. --- *** A chromosome generated by recombination ***
  10092. --- *** between two inversions; has a duplicatio ***
  10093. --- *** n at one end and presumed to have a defi ***
  10094. --- *** ciency or duplication at the other end o ***
  10095. --- *** f the inversion. ***
  10096. --- ************************************************
  10097. ---
  10098. CREATE VIEW inversion_derived_duplication_plus_aneuploid AS
  10099. SELECT
  10100. feature_id AS inversion_derived_duplication_plus_aneuploid_id,
  10101. feature.*
  10102. FROM
  10103. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10104. WHERE cvterm.name = 'inversion_derived_duplication_plus_aneuploid';
  10105. --- ************************************************
  10106. --- *** relation: aneuploid_chromosome ***
  10107. --- *** relation type: VIEW ***
  10108. --- *** ***
  10109. --- *** A chromosome structural variation whereb ***
  10110. --- *** y either a chromosome exists in addition ***
  10111. --- *** to the normal chromosome complement or ***
  10112. --- *** is lacking. ***
  10113. --- ************************************************
  10114. ---
  10115. CREATE VIEW aneuploid_chromosome AS
  10116. SELECT
  10117. feature_id AS aneuploid_chromosome_id,
  10118. feature.*
  10119. FROM
  10120. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10121. WHERE cvterm.name = 'inversion_derived_aneuploid_chromosome' OR cvterm.name = 'aneuploid_chromosome';
  10122. --- ************************************************
  10123. --- *** relation: polya_signal_sequence ***
  10124. --- *** relation type: VIEW ***
  10125. --- *** ***
  10126. --- *** The recognition sequence necessary for e ***
  10127. --- *** ndonuclease cleavage of an RNA transcrip ***
  10128. --- *** t that is followed by polyadenylation; c ***
  10129. --- *** onsensus=AATAAA. ***
  10130. --- ************************************************
  10131. ---
  10132. CREATE VIEW polya_signal_sequence AS
  10133. SELECT
  10134. feature_id AS polya_signal_sequence_id,
  10135. feature.*
  10136. FROM
  10137. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10138. WHERE cvterm.name = 'polyA_signal_sequence';
  10139. --- ************************************************
  10140. --- *** relation: shine_dalgarno_sequence ***
  10141. --- *** relation type: VIEW ***
  10142. --- *** ***
  10143. --- *** A region in the 5' UTR that pairs with t ***
  10144. --- *** he 16S rRNA during formation of the prei ***
  10145. --- *** nitiation complex. ***
  10146. --- ************************************************
  10147. ---
  10148. CREATE VIEW shine_dalgarno_sequence AS
  10149. SELECT
  10150. feature_id AS shine_dalgarno_sequence_id,
  10151. feature.*
  10152. FROM
  10153. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10154. WHERE cvterm.name = 'Shine_Dalgarno_sequence';
  10155. --- ************************************************
  10156. --- *** relation: polya_site ***
  10157. --- *** relation type: VIEW ***
  10158. --- *** ***
  10159. --- *** The site on an RNA transcript to which w ***
  10160. --- *** ill be added adenine residues by post-tr ***
  10161. --- *** anscriptional polyadenylation. The bound ***
  10162. --- *** ary between the UTR and the polyA sequen ***
  10163. --- *** ce. ***
  10164. --- ************************************************
  10165. ---
  10166. CREATE VIEW polya_site AS
  10167. SELECT
  10168. feature_id AS polya_site_id,
  10169. feature.*
  10170. FROM
  10171. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10172. WHERE cvterm.name = 'polyA_site';
  10173. --- ************************************************
  10174. --- *** relation: five_prime_clip ***
  10175. --- *** relation type: VIEW ***
  10176. --- *** ***
  10177. --- *** 5' most region of a precursor transcript ***
  10178. --- *** that is clipped off during processing. ***
  10179. --- ************************************************
  10180. ---
  10181. CREATE VIEW five_prime_clip AS
  10182. SELECT
  10183. feature_id AS five_prime_clip_id,
  10184. feature.*
  10185. FROM
  10186. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10187. WHERE cvterm.name = 'five_prime_clip';
  10188. --- ************************************************
  10189. --- *** relation: five_prime_d_recombination_signal_sequence ***
  10190. --- *** relation type: VIEW ***
  10191. --- *** ***
  10192. --- *** Recombination signal of an immunoglobuli ***
  10193. --- *** n/T-cell receptor gene, including the 5' ***
  10194. --- *** D-nonamer (SO:0000497), 5' D-spacer (SO ***
  10195. --- *** :0000498), and 5' D-heptamer (SO:0000396 ***
  10196. --- *** ) in 5' of the D-region of a D-gene, or ***
  10197. --- *** in 5' of the D-region of DJ-gene. ***
  10198. --- ************************************************
  10199. ---
  10200. CREATE VIEW five_prime_d_recombination_signal_sequence AS
  10201. SELECT
  10202. feature_id AS five_prime_d_recombination_signal_sequence_id,
  10203. feature.*
  10204. FROM
  10205. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10206. WHERE cvterm.name = 'five_prime_D_recombination_signal_sequence';
  10207. --- ************************************************
  10208. --- *** relation: three_prime_clip ***
  10209. --- *** relation type: VIEW ***
  10210. --- *** ***
  10211. --- *** 3'-most region of a precursor transcript ***
  10212. --- *** that is clipped off during processing. ***
  10213. --- ************************************************
  10214. ---
  10215. CREATE VIEW three_prime_clip AS
  10216. SELECT
  10217. feature_id AS three_prime_clip_id,
  10218. feature.*
  10219. FROM
  10220. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10221. WHERE cvterm.name = 'three_prime_clip';
  10222. --- ************************************************
  10223. --- *** relation: c_cluster ***
  10224. --- *** relation type: VIEW ***
  10225. --- *** ***
  10226. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10227. --- *** eptor gene including more than one C-gen ***
  10228. --- *** e. ***
  10229. --- ************************************************
  10230. ---
  10231. CREATE VIEW c_cluster AS
  10232. SELECT
  10233. feature_id AS c_cluster_id,
  10234. feature.*
  10235. FROM
  10236. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10237. WHERE cvterm.name = 'C_cluster';
  10238. --- ************************************************
  10239. --- *** relation: d_cluster ***
  10240. --- *** relation type: VIEW ***
  10241. --- *** ***
  10242. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10243. --- *** eptor gene in germline configuration inc ***
  10244. --- *** luding more than one D-gene. ***
  10245. --- ************************************************
  10246. ---
  10247. CREATE VIEW d_cluster AS
  10248. SELECT
  10249. feature_id AS d_cluster_id,
  10250. feature.*
  10251. FROM
  10252. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10253. WHERE cvterm.name = 'D_cluster';
  10254. --- ************************************************
  10255. --- *** relation: d_j_cluster ***
  10256. --- *** relation type: VIEW ***
  10257. --- *** ***
  10258. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10259. --- *** eptor gene in germline configuration inc ***
  10260. --- *** luding at least one D-gene and one J-gen ***
  10261. --- *** e. ***
  10262. --- ************************************************
  10263. ---
  10264. CREATE VIEW d_j_cluster AS
  10265. SELECT
  10266. feature_id AS d_j_cluster_id,
  10267. feature.*
  10268. FROM
  10269. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10270. WHERE cvterm.name = 'D_J_cluster';
  10271. --- ************************************************
  10272. --- *** relation: heptamer_of_recombination_feature_of_vertebrate_im_sys_gene ***
  10273. --- *** relation type: VIEW ***
  10274. --- *** ***
  10275. --- *** Seven nucleotide recombination site (e.g ***
  10276. --- *** . CACAGTG), part of V-gene, D-gene or J- ***
  10277. --- *** gene recombination feature of an immunog ***
  10278. --- *** lobulin or T-cell receptor gene. ***
  10279. --- ************************************************
  10280. ---
  10281. CREATE VIEW heptamer_of_recombination_feature_of_vertebrate_im_sys_gene AS
  10282. SELECT
  10283. feature_id AS heptamer_of_recombination_feature_of_vertebrate_im_sys_gene_id,
  10284. feature.*
  10285. FROM
  10286. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10287. 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';
  10288. --- ************************************************
  10289. --- *** relation: nonamer_of_recombination_feature_of_vertebrate_im_sys_gene ***
  10290. --- *** relation type: VIEW ***
  10291. --- *** ***
  10292. --- ************************************************
  10293. ---
  10294. CREATE VIEW nonamer_of_recombination_feature_of_vertebrate_im_sys_gene AS
  10295. SELECT
  10296. feature_id AS nonamer_of_recombination_feature_of_vertebrate_im_sys_gene_id,
  10297. feature.*
  10298. FROM
  10299. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10300. 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';
  10301. --- ************************************************
  10302. --- *** relation: vertebrate_immune_system_gene_recombination_spacer ***
  10303. --- *** relation type: VIEW ***
  10304. --- *** ***
  10305. --- ************************************************
  10306. ---
  10307. CREATE VIEW vertebrate_immune_system_gene_recombination_spacer AS
  10308. SELECT
  10309. feature_id AS vertebrate_immune_system_gene_recombination_spacer_id,
  10310. feature.*
  10311. FROM
  10312. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10313. 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';
  10314. --- ************************************************
  10315. --- *** relation: v_dj_j_c_cluster ***
  10316. --- *** relation type: VIEW ***
  10317. --- *** ***
  10318. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10319. --- *** eptor gene in rearranged configuration i ***
  10320. --- *** ncluding at least one V-gene, one DJ-gen ***
  10321. --- *** e, one J-gene and one C-gene. ***
  10322. --- ************************************************
  10323. ---
  10324. CREATE VIEW v_dj_j_c_cluster AS
  10325. SELECT
  10326. feature_id AS v_dj_j_c_cluster_id,
  10327. feature.*
  10328. FROM
  10329. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10330. WHERE cvterm.name = 'V_DJ_J_C_cluster';
  10331. --- ************************************************
  10332. --- *** relation: v_vdj_j_c_cluster ***
  10333. --- *** relation type: VIEW ***
  10334. --- *** ***
  10335. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10336. --- *** eptor gene in rearranged configuration i ***
  10337. --- *** ncluding at least one V-gene, one VDJ-ge ***
  10338. --- *** ne, one J-gene and one C-gene. ***
  10339. --- ************************************************
  10340. ---
  10341. CREATE VIEW v_vdj_j_c_cluster AS
  10342. SELECT
  10343. feature_id AS v_vdj_j_c_cluster_id,
  10344. feature.*
  10345. FROM
  10346. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10347. WHERE cvterm.name = 'V_VDJ_J_C_cluster';
  10348. --- ************************************************
  10349. --- *** relation: v_vj_j_c_cluster ***
  10350. --- *** relation type: VIEW ***
  10351. --- *** ***
  10352. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10353. --- *** eptor gene in rearranged configuration i ***
  10354. --- *** ncluding at least one V-gene, one VJ-gen ***
  10355. --- *** e, one J-gene and one C-gene. ***
  10356. --- ************************************************
  10357. ---
  10358. CREATE VIEW v_vj_j_c_cluster AS
  10359. SELECT
  10360. feature_id AS v_vj_j_c_cluster_id,
  10361. feature.*
  10362. FROM
  10363. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10364. WHERE cvterm.name = 'V_VJ_J_C_cluster';
  10365. --- ************************************************
  10366. --- *** relation: inversion_derived_aneuploid_chromosome ***
  10367. --- *** relation type: VIEW ***
  10368. --- *** ***
  10369. --- *** A chromosome may be generated by recombi ***
  10370. --- *** nation between two inversions; presumed ***
  10371. --- *** to have a deficiency or duplication at e ***
  10372. --- *** ach end of the inversion. ***
  10373. --- ************************************************
  10374. ---
  10375. CREATE VIEW inversion_derived_aneuploid_chromosome AS
  10376. SELECT
  10377. feature_id AS inversion_derived_aneuploid_chromosome_id,
  10378. feature.*
  10379. FROM
  10380. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10381. WHERE cvterm.name = 'inversion_derived_aneuploid_chromosome';
  10382. --- ************************************************
  10383. --- *** relation: bidirectional_promoter ***
  10384. --- *** relation type: VIEW ***
  10385. --- *** ***
  10386. --- ************************************************
  10387. ---
  10388. CREATE VIEW bidirectional_promoter AS
  10389. SELECT
  10390. feature_id AS bidirectional_promoter_id,
  10391. feature.*
  10392. FROM
  10393. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10394. WHERE cvterm.name = 'bidirectional_promoter';
  10395. --- ************************************************
  10396. --- *** relation: retrotransposed ***
  10397. --- *** relation type: VIEW ***
  10398. --- *** ***
  10399. --- *** An attribute of a feature that occurred ***
  10400. --- *** as the product of a reverse transcriptas ***
  10401. --- *** e mediated event. ***
  10402. --- ************************************************
  10403. ---
  10404. CREATE VIEW retrotransposed AS
  10405. SELECT
  10406. feature_id AS retrotransposed_id,
  10407. feature.*
  10408. FROM
  10409. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10410. WHERE cvterm.name = 'retrotransposed';
  10411. --- ************************************************
  10412. --- *** relation: three_prime_d_recombination_signal_sequence ***
  10413. --- *** relation type: VIEW ***
  10414. --- *** ***
  10415. --- *** Recombination signal of an immunoglobuli ***
  10416. --- *** n/T-cell receptor gene, including the 3' ***
  10417. --- *** D-heptamer (SO:0000493), 3' D-spacer, a ***
  10418. --- *** nd 3' D-nonamer (SO:0000494) in 3' of th ***
  10419. --- *** e D-region of a D-gene. ***
  10420. --- ************************************************
  10421. ---
  10422. CREATE VIEW three_prime_d_recombination_signal_sequence AS
  10423. SELECT
  10424. feature_id AS three_prime_d_recombination_signal_sequence_id,
  10425. feature.*
  10426. FROM
  10427. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10428. WHERE cvterm.name = 'three_prime_D_recombination_signal_sequence';
  10429. --- ************************************************
  10430. --- *** relation: mirna_encoding ***
  10431. --- *** relation type: VIEW ***
  10432. --- *** ***
  10433. --- ************************************************
  10434. ---
  10435. CREATE VIEW mirna_encoding AS
  10436. SELECT
  10437. feature_id AS mirna_encoding_id,
  10438. feature.*
  10439. FROM
  10440. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10441. WHERE cvterm.name = 'miRNA_encoding';
  10442. --- ************************************************
  10443. --- *** relation: dj_gene ***
  10444. --- *** relation type: VIEW ***
  10445. --- *** ***
  10446. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10447. --- *** eptor gene in partially rearranged genom ***
  10448. --- *** ic DNA including D-J-region with 5' UTR ***
  10449. --- *** and 3' UTR, also designated as D-J-segme ***
  10450. --- *** nt. ***
  10451. --- ************************************************
  10452. ---
  10453. CREATE VIEW dj_gene AS
  10454. SELECT
  10455. feature_id AS dj_gene_id,
  10456. feature.*
  10457. FROM
  10458. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10459. WHERE cvterm.name = 'DJ_gene';
  10460. --- ************************************************
  10461. --- *** relation: rrna_encoding ***
  10462. --- *** relation type: VIEW ***
  10463. --- *** ***
  10464. --- ************************************************
  10465. ---
  10466. CREATE VIEW rrna_encoding AS
  10467. SELECT
  10468. feature_id AS rrna_encoding_id,
  10469. feature.*
  10470. FROM
  10471. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10472. WHERE cvterm.name = 'rRNA_encoding';
  10473. --- ************************************************
  10474. --- *** relation: vdj_gene ***
  10475. --- *** relation type: VIEW ***
  10476. --- *** ***
  10477. --- *** Rearranged genomic DNA of immunoglobulin ***
  10478. --- *** /T-cell receptor gene including L-part1, ***
  10479. --- *** V-intron and V-D-J-exon, with the 5'UTR ***
  10480. --- *** (SO:0000204) and 3'UTR (SO:0000205). ***
  10481. --- ************************************************
  10482. ---
  10483. CREATE VIEW vdj_gene AS
  10484. SELECT
  10485. feature_id AS vdj_gene_id,
  10486. feature.*
  10487. FROM
  10488. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10489. WHERE cvterm.name = 'VDJ_gene';
  10490. --- ************************************************
  10491. --- *** relation: scrna_encoding ***
  10492. --- *** relation type: VIEW ***
  10493. --- *** ***
  10494. --- ************************************************
  10495. ---
  10496. CREATE VIEW scrna_encoding AS
  10497. SELECT
  10498. feature_id AS scrna_encoding_id,
  10499. feature.*
  10500. FROM
  10501. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10502. WHERE cvterm.name = 'scRNA_encoding';
  10503. --- ************************************************
  10504. --- *** relation: vj_gene ***
  10505. --- *** relation type: VIEW ***
  10506. --- *** ***
  10507. --- *** Rearranged genomic DNA of immunoglobulin ***
  10508. --- *** /T-cell receptor gene including L-part1, ***
  10509. --- *** V-intron and V-J-exon, with the 5'UTR ( ***
  10510. --- *** SO:0000204) and 3'UTR (SO:0000205). ***
  10511. --- ************************************************
  10512. ---
  10513. CREATE VIEW vj_gene AS
  10514. SELECT
  10515. feature_id AS vj_gene_id,
  10516. feature.*
  10517. FROM
  10518. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10519. WHERE cvterm.name = 'VJ_gene';
  10520. --- ************************************************
  10521. --- *** relation: centromere ***
  10522. --- *** relation type: VIEW ***
  10523. --- *** ***
  10524. --- *** A region of chromosome where the spindle ***
  10525. --- *** fibers attach during mitosis and meiosi ***
  10526. --- *** s. ***
  10527. --- ************************************************
  10528. ---
  10529. CREATE VIEW centromere AS
  10530. SELECT
  10531. feature_id AS centromere_id,
  10532. feature.*
  10533. FROM
  10534. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10535. WHERE cvterm.name = 'point_centromere' OR cvterm.name = 'regional_centromere' OR cvterm.name = 'centromere';
  10536. --- ************************************************
  10537. --- *** relation: snorna_encoding ***
  10538. --- *** relation type: VIEW ***
  10539. --- *** ***
  10540. --- ************************************************
  10541. ---
  10542. CREATE VIEW snorna_encoding AS
  10543. SELECT
  10544. feature_id AS snorna_encoding_id,
  10545. feature.*
  10546. FROM
  10547. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10548. WHERE cvterm.name = 'C_D_box_snoRNA_encoding' OR cvterm.name = 'H_ACA_box_snoRNA_encoding' OR cvterm.name = 'snoRNA_encoding';
  10549. --- ************************************************
  10550. --- *** relation: edited_transcript_feature ***
  10551. --- *** relation type: VIEW ***
  10552. --- *** ***
  10553. --- *** A locatable feature on a transcript that ***
  10554. --- *** is edited. ***
  10555. --- ************************************************
  10556. ---
  10557. CREATE VIEW edited_transcript_feature AS
  10558. SELECT
  10559. feature_id AS edited_transcript_feature_id,
  10560. feature.*
  10561. FROM
  10562. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10563. 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';
  10564. --- ************************************************
  10565. --- *** relation: methylation_guide_snorna_primary_transcript ***
  10566. --- *** relation type: VIEW ***
  10567. --- *** ***
  10568. --- *** A primary transcript encoding a methylat ***
  10569. --- *** ion guide small nucleolar RNA. ***
  10570. --- ************************************************
  10571. ---
  10572. CREATE VIEW methylation_guide_snorna_primary_transcript AS
  10573. SELECT
  10574. feature_id AS methylation_guide_snorna_primary_transcript_id,
  10575. feature.*
  10576. FROM
  10577. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10578. WHERE cvterm.name = 'methylation_guide_snoRNA_primary_transcript';
  10579. --- ************************************************
  10580. --- *** relation: cap ***
  10581. --- *** relation type: VIEW ***
  10582. --- *** ***
  10583. --- *** A structure consisting of a 7-methylguan ***
  10584. --- *** osine in 5'-5' triphosphate linkage with ***
  10585. --- *** the first nucleotide of an mRNA. It is ***
  10586. --- *** added post-transcriptionally, and is not ***
  10587. --- *** encoded in the DNA. ***
  10588. --- ************************************************
  10589. ---
  10590. CREATE VIEW cap AS
  10591. SELECT
  10592. feature_id AS cap_id,
  10593. feature.*
  10594. FROM
  10595. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10596. WHERE cvterm.name = 'cap';
  10597. --- ************************************************
  10598. --- *** relation: rrna_cleavage_snorna_primary_transcript ***
  10599. --- *** relation type: VIEW ***
  10600. --- *** ***
  10601. --- *** A primary transcript encoding an rRNA cl ***
  10602. --- *** eavage snoRNA. ***
  10603. --- ************************************************
  10604. ---
  10605. CREATE VIEW rrna_cleavage_snorna_primary_transcript AS
  10606. SELECT
  10607. feature_id AS rrna_cleavage_snorna_primary_transcript_id,
  10608. feature.*
  10609. FROM
  10610. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10611. WHERE cvterm.name = 'rRNA_cleavage_snoRNA_primary_transcript';
  10612. --- ************************************************
  10613. --- *** relation: pre_edited_region ***
  10614. --- *** relation type: VIEW ***
  10615. --- *** ***
  10616. --- *** The region of a transcript that will be ***
  10617. --- *** edited. ***
  10618. --- ************************************************
  10619. ---
  10620. CREATE VIEW pre_edited_region AS
  10621. SELECT
  10622. feature_id AS pre_edited_region_id,
  10623. feature.*
  10624. FROM
  10625. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10626. WHERE cvterm.name = 'pre_edited_region';
  10627. --- ************************************************
  10628. --- *** relation: tmrna ***
  10629. --- *** relation type: VIEW ***
  10630. --- *** ***
  10631. --- *** A tmRNA liberates a mRNA from a stalled ***
  10632. --- *** ribosome. To accomplish this part of the ***
  10633. --- *** tmRNA is used as a reading frame that e ***
  10634. --- *** nds in a translation stop signal. The br ***
  10635. --- *** oken mRNA is replaced in the ribosome by ***
  10636. --- *** the tmRNA and translation of the tmRNA ***
  10637. --- *** leads to addition of a proteolysis tag t ***
  10638. --- *** o the incomplete protein enabling recogn ***
  10639. --- *** ition by a protease. Recently a number o ***
  10640. --- *** f permuted tmRNAs genes have been found ***
  10641. --- *** encoded in two parts. TmRNAs have been i ***
  10642. --- *** dentified in eubacteria and some chlorop ***
  10643. --- *** lasts but are absent from archeal and Eu ***
  10644. --- *** karyote nuclear genomes. ***
  10645. --- ************************************************
  10646. ---
  10647. CREATE VIEW tmrna AS
  10648. SELECT
  10649. feature_id AS tmrna_id,
  10650. feature.*
  10651. FROM
  10652. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10653. WHERE cvterm.name = 'tmRNA';
  10654. --- ************************************************
  10655. --- *** relation: c_d_box_snorna_encoding ***
  10656. --- *** relation type: VIEW ***
  10657. --- *** ***
  10658. --- ************************************************
  10659. ---
  10660. CREATE VIEW c_d_box_snorna_encoding AS
  10661. SELECT
  10662. feature_id AS c_d_box_snorna_encoding_id,
  10663. feature.*
  10664. FROM
  10665. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10666. WHERE cvterm.name = 'C_D_box_snoRNA_encoding';
  10667. --- ************************************************
  10668. --- *** relation: tmrna_primary_transcript ***
  10669. --- *** relation type: VIEW ***
  10670. --- *** ***
  10671. --- *** A primary transcript encoding a tmRNA (S ***
  10672. --- *** O:0000584). ***
  10673. --- ************************************************
  10674. ---
  10675. CREATE VIEW tmrna_primary_transcript AS
  10676. SELECT
  10677. feature_id AS tmrna_primary_transcript_id,
  10678. feature.*
  10679. FROM
  10680. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10681. WHERE cvterm.name = 'tmRNA_primary_transcript';
  10682. --- ************************************************
  10683. --- *** relation: group_i_intron ***
  10684. --- *** relation type: VIEW ***
  10685. --- *** ***
  10686. --- *** Group I catalytic introns are large self ***
  10687. --- *** -splicing ribozymes. They catalyze their ***
  10688. --- *** own excision from mRNA, tRNA and rRNA p ***
  10689. --- *** recursors in a wide range of organisms. ***
  10690. --- *** The core secondary structure consists of ***
  10691. --- *** 9 paired regions (P1-P9). These fold to ***
  10692. --- *** essentially two domains, the P4-P6 doma ***
  10693. --- *** in (formed from the stacking of P5, P4, ***
  10694. --- *** P6 and P6a helices) and the P3-P9 domain ***
  10695. --- *** (formed from the P8, P3, P7 and P9 heli ***
  10696. --- *** ces). Group I catalytic introns often ha ***
  10697. --- *** ve long ORFs inserted in loop regions. ***
  10698. --- ************************************************
  10699. ---
  10700. CREATE VIEW group_i_intron AS
  10701. SELECT
  10702. feature_id AS group_i_intron_id,
  10703. feature.*
  10704. FROM
  10705. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10706. WHERE cvterm.name = 'group_I_intron';
  10707. --- ************************************************
  10708. --- *** relation: autocatalytically_spliced_intron ***
  10709. --- *** relation type: VIEW ***
  10710. --- *** ***
  10711. --- *** A self spliced intron. ***
  10712. --- ************************************************
  10713. ---
  10714. CREATE VIEW autocatalytically_spliced_intron AS
  10715. SELECT
  10716. feature_id AS autocatalytically_spliced_intron_id,
  10717. feature.*
  10718. FROM
  10719. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10720. 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';
  10721. --- ************************************************
  10722. --- *** relation: srp_rna_primary_transcript ***
  10723. --- *** relation type: VIEW ***
  10724. --- *** ***
  10725. --- *** A primary transcript encoding a signal r ***
  10726. --- *** ecognition particle RNA. ***
  10727. --- ************************************************
  10728. ---
  10729. CREATE VIEW srp_rna_primary_transcript AS
  10730. SELECT
  10731. feature_id AS srp_rna_primary_transcript_id,
  10732. feature.*
  10733. FROM
  10734. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10735. WHERE cvterm.name = 'SRP_RNA_primary_transcript';
  10736. --- ************************************************
  10737. --- *** relation: srp_rna ***
  10738. --- *** relation type: VIEW ***
  10739. --- *** ***
  10740. --- *** The signal recognition particle (SRP) is ***
  10741. --- *** a universally conserved ribonucleoprote ***
  10742. --- *** in. It is involved in the co-translation ***
  10743. --- *** al targeting of proteins to membranes. T ***
  10744. --- *** he eukaryotic SRP consists of a 300-nucl ***
  10745. --- *** eotide 7S RNA and six proteins: SRPs 72, ***
  10746. --- *** 68, 54, 19, 14, and 9. Archaeal SRP con ***
  10747. --- *** sists of a 7S RNA and homologues of the ***
  10748. --- *** eukaryotic SRP19 and SRP54 proteins. In ***
  10749. --- *** most eubacteria, the SRP consists of a 4 ***
  10750. --- *** .5S RNA and the Ffh protein (a homologue ***
  10751. --- *** of the eukaryotic SRP54 protein). Eukar ***
  10752. --- *** yotic and archaeal 7S RNAs have very sim ***
  10753. --- *** ilar secondary structures, with eight he ***
  10754. --- *** lical elements. These fold into the Alu ***
  10755. --- *** and S domains, separated by a long linke ***
  10756. --- *** r region. Eubacterial SRP is generally a ***
  10757. --- *** simpler structure, with the M domain of ***
  10758. --- *** Ffh bound to a region of the 4.5S RNA t ***
  10759. --- *** hat corresponds to helix 8 of the eukary ***
  10760. --- *** otic and archaeal SRP S domain. Some Gra ***
  10761. --- *** m-positive bacteria (e.g. Bacillus subti ***
  10762. --- *** lis), however, have a larger SRP RNA tha ***
  10763. --- *** t also has an Alu domain. The Alu domain ***
  10764. --- *** is thought to mediate the peptide chain ***
  10765. --- *** elongation retardation function of the ***
  10766. --- *** SRP. The universally conserved helix whi ***
  10767. --- *** ch interacts with the SRP54/Ffh M domain ***
  10768. --- *** mediates signal sequence recognition. I ***
  10769. --- *** n eukaryotes and archaea, the SRP19-heli ***
  10770. --- *** x 6 complex is thought to be involved in ***
  10771. --- *** SRP assembly and stabilizes helix 8 for ***
  10772. --- *** SRP54 binding. ***
  10773. --- ************************************************
  10774. ---
  10775. CREATE VIEW srp_rna AS
  10776. SELECT
  10777. feature_id AS srp_rna_id,
  10778. feature.*
  10779. FROM
  10780. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10781. WHERE cvterm.name = 'SRP_RNA';
  10782. --- ************************************************
  10783. --- *** relation: pseudoknot ***
  10784. --- *** relation type: VIEW ***
  10785. --- *** ***
  10786. --- *** A tertiary structure in RNA where nucleo ***
  10787. --- *** tides in a loop form base pairs with a r ***
  10788. --- *** egion of RNA downstream of the loop. ***
  10789. --- ************************************************
  10790. ---
  10791. CREATE VIEW pseudoknot AS
  10792. SELECT
  10793. feature_id AS pseudoknot_id,
  10794. feature.*
  10795. FROM
  10796. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10797. WHERE cvterm.name = 'recoding_pseudoknot' OR cvterm.name = 'H_pseudoknot' OR cvterm.name = 'pseudoknot';
  10798. --- ************************************************
  10799. --- *** relation: h_pseudoknot ***
  10800. --- *** relation type: VIEW ***
  10801. --- *** ***
  10802. --- *** A pseudoknot which contains two stems an ***
  10803. --- *** d at least two loops. ***
  10804. --- ************************************************
  10805. ---
  10806. CREATE VIEW h_pseudoknot AS
  10807. SELECT
  10808. feature_id AS h_pseudoknot_id,
  10809. feature.*
  10810. FROM
  10811. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10812. WHERE cvterm.name = 'H_pseudoknot';
  10813. --- ************************************************
  10814. --- *** relation: c_d_box_snorna ***
  10815. --- *** relation type: VIEW ***
  10816. --- *** ***
  10817. --- *** Most box C/D snoRNAs also contain long ( ***
  10818. --- *** >10 nt) sequences complementary to rRNA. ***
  10819. --- *** Boxes C and D, as well as boxes C' and ***
  10820. --- *** D', are usually located in close proximi ***
  10821. --- *** ty, and form a structure known as the bo ***
  10822. --- *** x C/D motif. This motif is important for ***
  10823. --- *** snoRNA stability, processing, nucleolar ***
  10824. --- *** targeting and function. A small number ***
  10825. --- *** of box C/D snoRNAs are involved in rRNA ***
  10826. --- *** processing; most, however, are known or ***
  10827. --- *** predicted to serve as guide RNAs in ribo ***
  10828. --- *** se methylation of rRNA. Targeting involv ***
  10829. --- *** es direct base pairing of the snoRNA at ***
  10830. --- *** the rRNA site to be modified and selecti ***
  10831. --- *** on of a rRNA nucleotide a fixed distance ***
  10832. --- *** from box D or D'. ***
  10833. --- ************************************************
  10834. ---
  10835. CREATE VIEW c_d_box_snorna AS
  10836. SELECT
  10837. feature_id AS c_d_box_snorna_id,
  10838. feature.*
  10839. FROM
  10840. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10841. WHERE cvterm.name = 'U14_snoRNA' OR cvterm.name = 'U3_snoRNA' OR cvterm.name = 'methylation_guide_snoRNA' OR cvterm.name = 'C_D_box_snoRNA';
  10842. --- ************************************************
  10843. --- *** relation: h_aca_box_snorna ***
  10844. --- *** relation type: VIEW ***
  10845. --- *** ***
  10846. --- *** Members of the box H/ACA family contain ***
  10847. --- *** an ACA triplet, exactly 3 nt upstream fr ***
  10848. --- *** om the 3' end and an H-box in a hinge re ***
  10849. --- *** gion that links two structurally similar ***
  10850. --- *** functional domains of the molecule. Bot ***
  10851. --- *** h boxes are important for snoRNA biosynt ***
  10852. --- *** hesis and function. A few box H/ACA snoR ***
  10853. --- *** NAs are involved in rRNA processing; mos ***
  10854. --- *** t others are known or predicted to parti ***
  10855. --- *** cipate in selection of uridine nucleosid ***
  10856. --- *** es in rRNA to be converted to pseudourid ***
  10857. --- *** ines. Site selection is mediated by dire ***
  10858. --- *** ct base pairing of the snoRNA with rRNA ***
  10859. --- *** through one or both targeting domains. ***
  10860. --- ************************************************
  10861. ---
  10862. CREATE VIEW h_aca_box_snorna AS
  10863. SELECT
  10864. feature_id AS h_aca_box_snorna_id,
  10865. feature.*
  10866. FROM
  10867. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10868. WHERE cvterm.name = 'pseudouridylation_guide_snoRNA' OR cvterm.name = 'H_ACA_box_snoRNA';
  10869. --- ************************************************
  10870. --- *** relation: c_d_box_snorna_primary_transcript ***
  10871. --- *** relation type: VIEW ***
  10872. --- *** ***
  10873. --- *** A primary transcript encoding a small nu ***
  10874. --- *** cleolar RNA of the box C/D family. ***
  10875. --- ************************************************
  10876. ---
  10877. CREATE VIEW c_d_box_snorna_primary_transcript AS
  10878. SELECT
  10879. feature_id AS c_d_box_snorna_primary_transcript_id,
  10880. feature.*
  10881. FROM
  10882. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10883. WHERE cvterm.name = 'C_D_box_snoRNA_primary_transcript';
  10884. --- ************************************************
  10885. --- *** relation: h_aca_box_snorna_primary_transcript ***
  10886. --- *** relation type: VIEW ***
  10887. --- *** ***
  10888. --- *** A primary transcript encoding a small nu ***
  10889. --- *** cleolar RNA of the box H/ACA family. ***
  10890. --- ************************************************
  10891. ---
  10892. CREATE VIEW h_aca_box_snorna_primary_transcript AS
  10893. SELECT
  10894. feature_id AS h_aca_box_snorna_primary_transcript_id,
  10895. feature.*
  10896. FROM
  10897. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10898. WHERE cvterm.name = 'H_ACA_box_snoRNA_primary_transcript';
  10899. --- ************************************************
  10900. --- *** relation: guide_rna ***
  10901. --- *** relation type: VIEW ***
  10902. --- *** ***
  10903. --- *** A short 3'-uridylated RNA that can form ***
  10904. --- *** a duplex (except for its post-transcript ***
  10905. --- *** ionally added oligo_U tail (SO:0000609)) ***
  10906. --- *** with a stretch of mature edited mRNA. ***
  10907. --- ************************************************
  10908. ---
  10909. CREATE VIEW guide_rna AS
  10910. SELECT
  10911. feature_id AS guide_rna_id,
  10912. feature.*
  10913. FROM
  10914. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10915. WHERE cvterm.name = 'guide_RNA';
  10916. --- ************************************************
  10917. --- *** relation: group_ii_intron ***
  10918. --- *** relation type: VIEW ***
  10919. --- *** ***
  10920. --- *** Group II introns are found in rRNA, tRNA ***
  10921. --- *** and mRNA of organelles in fungi, plants ***
  10922. --- *** and protists, and also in mRNA in bacte ***
  10923. --- *** ria. They are large self-splicing ribozy ***
  10924. --- *** mes and have 6 structural domains (usual ***
  10925. --- *** ly designated dI to dVI). A subset of gr ***
  10926. --- *** oup II introns also encode essential spl ***
  10927. --- *** icing proteins in intronic ORFs. The len ***
  10928. --- *** gth of these introns can therefore be up ***
  10929. --- *** to 3kb. Splicing occurs in almost ident ***
  10930. --- *** ical fashion to nuclear pre-mRNA splicin ***
  10931. --- *** g with two transesterification steps. Th ***
  10932. --- *** e 2' hydroxyl of a bulged adenosine in d ***
  10933. --- *** omain VI attacks the 5' splice site, fol ***
  10934. --- *** lowed by nucleophilic attack on the 3' s ***
  10935. --- *** plice site by the 3' OH of the upstream ***
  10936. --- *** exon. Protein machinery is required for ***
  10937. --- *** splicing in vivo, and long range intron- ***
  10938. --- *** intron and intron-exon interactions are ***
  10939. --- *** important for splice site positioning. G ***
  10940. --- *** roup II introns are further sub-classifi ***
  10941. --- *** ed into groups IIA and IIB which differ ***
  10942. --- *** in splice site consensus, distance of bu ***
  10943. --- *** lged A from 3' splice site, some tertiar ***
  10944. --- *** y interactions, and intronic ORF phyloge ***
  10945. --- *** ny. ***
  10946. --- ************************************************
  10947. ---
  10948. CREATE VIEW group_ii_intron AS
  10949. SELECT
  10950. feature_id AS group_ii_intron_id,
  10951. feature.*
  10952. FROM
  10953. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10954. WHERE cvterm.name = 'group_IIA_intron' OR cvterm.name = 'group_IIB_intron' OR cvterm.name = 'group_II_intron';
  10955. --- ************************************************
  10956. --- *** relation: editing_block ***
  10957. --- *** relation type: VIEW ***
  10958. --- *** ***
  10959. --- *** Edited mRNA sequence mediated by a singl ***
  10960. --- *** e guide RNA (SO:0000602). ***
  10961. --- ************************************************
  10962. ---
  10963. CREATE VIEW editing_block AS
  10964. SELECT
  10965. feature_id AS editing_block_id,
  10966. feature.*
  10967. FROM
  10968. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10969. WHERE cvterm.name = 'editing_block';
  10970. --- ************************************************
  10971. --- *** relation: intergenic_region ***
  10972. --- *** relation type: VIEW ***
  10973. --- *** ***
  10974. --- *** A region containing or overlapping no ge ***
  10975. --- *** nes that is bounded on either side by a ***
  10976. --- *** gene, or bounded by a gene and the end o ***
  10977. --- *** f the chromosome. ***
  10978. --- ************************************************
  10979. ---
  10980. CREATE VIEW intergenic_region AS
  10981. SELECT
  10982. feature_id AS intergenic_region_id,
  10983. feature.*
  10984. FROM
  10985. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10986. WHERE cvterm.name = 'intergenic_region';
  10987. --- ************************************************
  10988. --- *** relation: editing_domain ***
  10989. --- *** relation type: VIEW ***
  10990. --- *** ***
  10991. --- *** Edited mRNA sequence mediated by two or ***
  10992. --- *** more overlapping guide RNAs (SO:0000602) ***
  10993. --- *** . ***
  10994. --- ************************************************
  10995. ---
  10996. CREATE VIEW editing_domain AS
  10997. SELECT
  10998. feature_id AS editing_domain_id,
  10999. feature.*
  11000. FROM
  11001. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11002. WHERE cvterm.name = 'editing_domain';
  11003. --- ************************************************
  11004. --- *** relation: unedited_region ***
  11005. --- *** relation type: VIEW ***
  11006. --- *** ***
  11007. --- *** The region of an edited transcript that ***
  11008. --- *** will not be edited. ***
  11009. --- ************************************************
  11010. ---
  11011. CREATE VIEW unedited_region AS
  11012. SELECT
  11013. feature_id AS unedited_region_id,
  11014. feature.*
  11015. FROM
  11016. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11017. WHERE cvterm.name = 'unedited_region';
  11018. --- ************************************************
  11019. --- *** relation: h_aca_box_snorna_encoding ***
  11020. --- *** relation type: VIEW ***
  11021. --- *** ***
  11022. --- ************************************************
  11023. ---
  11024. CREATE VIEW h_aca_box_snorna_encoding AS
  11025. SELECT
  11026. feature_id AS h_aca_box_snorna_encoding_id,
  11027. feature.*
  11028. FROM
  11029. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11030. WHERE cvterm.name = 'H_ACA_box_snoRNA_encoding';
  11031. --- ************************************************
  11032. --- *** relation: oligo_u_tail ***
  11033. --- *** relation type: VIEW ***
  11034. --- *** ***
  11035. --- *** The string of non-encoded U's at the 3' ***
  11036. --- *** end of a guide RNA (SO:0000602). ***
  11037. --- ************************************************
  11038. ---
  11039. CREATE VIEW oligo_u_tail AS
  11040. SELECT
  11041. feature_id AS oligo_u_tail_id,
  11042. feature.*
  11043. FROM
  11044. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11045. WHERE cvterm.name = 'oligo_U_tail';
  11046. --- ************************************************
  11047. --- *** relation: polya_sequence ***
  11048. --- *** relation type: VIEW ***
  11049. --- *** ***
  11050. --- *** Sequence of about 100 nucleotides of A a ***
  11051. --- *** dded to the 3' end of most eukaryotic mR ***
  11052. --- *** NAs. ***
  11053. --- ************************************************
  11054. ---
  11055. CREATE VIEW polya_sequence AS
  11056. SELECT
  11057. feature_id AS polya_sequence_id,
  11058. feature.*
  11059. FROM
  11060. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11061. WHERE cvterm.name = 'polyA_sequence';
  11062. --- ************************************************
  11063. --- *** relation: branch_site ***
  11064. --- *** relation type: VIEW ***
  11065. --- *** ***
  11066. --- *** A pyrimidine rich sequence near the 3' e ***
  11067. --- *** nd of an intron to which the 5'end becom ***
  11068. --- *** es covalently bound during nuclear splic ***
  11069. --- *** ing. The resulting structure resembles a ***
  11070. --- *** lariat. ***
  11071. --- ************************************************
  11072. ---
  11073. CREATE VIEW branch_site AS
  11074. SELECT
  11075. feature_id AS branch_site_id,
  11076. feature.*
  11077. FROM
  11078. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11079. WHERE cvterm.name = 'branch_site';
  11080. --- ************************************************
  11081. --- *** relation: polypyrimidine_tract ***
  11082. --- *** relation type: VIEW ***
  11083. --- *** ***
  11084. --- *** The polypyrimidine tract is one of the c ***
  11085. --- *** is-acting sequence elements directing in ***
  11086. --- *** tron removal in pre-mRNA splicing. ***
  11087. --- ************************************************
  11088. ---
  11089. CREATE VIEW polypyrimidine_tract AS
  11090. SELECT
  11091. feature_id AS polypyrimidine_tract_id,
  11092. feature.*
  11093. FROM
  11094. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11095. WHERE cvterm.name = 'polypyrimidine_tract';
  11096. --- ************************************************
  11097. --- *** relation: bacterial_rnapol_promoter ***
  11098. --- *** relation type: VIEW ***
  11099. --- *** ***
  11100. --- *** A DNA sequence to which bacterial RNA po ***
  11101. --- *** lymerase binds, to begin transcription. ***
  11102. --- ************************************************
  11103. ---
  11104. CREATE VIEW bacterial_rnapol_promoter AS
  11105. SELECT
  11106. feature_id AS bacterial_rnapol_promoter_id,
  11107. feature.*
  11108. FROM
  11109. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11110. WHERE cvterm.name = 'bacterial_RNApol_promoter_sigma_70' OR cvterm.name = 'bacterial_RNApol_promoter_sigma54' OR cvterm.name = 'bacterial_RNApol_promoter';
  11111. --- ************************************************
  11112. --- *** relation: bacterial_terminator ***
  11113. --- *** relation type: VIEW ***
  11114. --- *** ***
  11115. --- *** A terminator signal for bacterial transc ***
  11116. --- *** ription. ***
  11117. --- ************************************************
  11118. ---
  11119. CREATE VIEW bacterial_terminator AS
  11120. SELECT
  11121. feature_id AS bacterial_terminator_id,
  11122. feature.*
  11123. FROM
  11124. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11125. WHERE cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'bacterial_terminator';
  11126. --- ************************************************
  11127. --- *** relation: terminator_of_type_2_rnapol_iii_promoter ***
  11128. --- *** relation type: VIEW ***
  11129. --- *** ***
  11130. --- *** A terminator signal for RNA polymerase I ***
  11131. --- *** II transcription. ***
  11132. --- ************************************************
  11133. ---
  11134. CREATE VIEW terminator_of_type_2_rnapol_iii_promoter AS
  11135. SELECT
  11136. feature_id AS terminator_of_type_2_rnapol_iii_promoter_id,
  11137. feature.*
  11138. FROM
  11139. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11140. WHERE cvterm.name = 'terminator_of_type_2_RNApol_III_promoter';
  11141. --- ************************************************
  11142. --- *** relation: transcription_end_site ***
  11143. --- *** relation type: VIEW ***
  11144. --- *** ***
  11145. --- *** The base where transcription ends. ***
  11146. --- ************************************************
  11147. ---
  11148. CREATE VIEW transcription_end_site AS
  11149. SELECT
  11150. feature_id AS transcription_end_site_id,
  11151. feature.*
  11152. FROM
  11153. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11154. WHERE cvterm.name = 'transcription_end_site';
  11155. --- ************************************************
  11156. --- *** relation: rnapol_iii_promoter_type_1 ***
  11157. --- *** relation type: VIEW ***
  11158. --- *** ***
  11159. --- ************************************************
  11160. ---
  11161. CREATE VIEW rnapol_iii_promoter_type_1 AS
  11162. SELECT
  11163. feature_id AS rnapol_iii_promoter_type_1_id,
  11164. feature.*
  11165. FROM
  11166. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11167. WHERE cvterm.name = 'RNApol_III_promoter_type_1';
  11168. --- ************************************************
  11169. --- *** relation: rnapol_iii_promoter_type_2 ***
  11170. --- *** relation type: VIEW ***
  11171. --- *** ***
  11172. --- ************************************************
  11173. ---
  11174. CREATE VIEW rnapol_iii_promoter_type_2 AS
  11175. SELECT
  11176. feature_id AS rnapol_iii_promoter_type_2_id,
  11177. feature.*
  11178. FROM
  11179. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11180. WHERE cvterm.name = 'RNApol_III_promoter_type_2';
  11181. --- ************************************************
  11182. --- *** relation: a_box ***
  11183. --- *** relation type: VIEW ***
  11184. --- *** ***
  11185. --- *** A variably distant linear promoter regio ***
  11186. --- *** n recognized by TFIIIC, with consensus s ***
  11187. --- *** equence TGGCnnAGTGG. ***
  11188. --- ************************************************
  11189. ---
  11190. CREATE VIEW a_box AS
  11191. SELECT
  11192. feature_id AS a_box_id,
  11193. feature.*
  11194. FROM
  11195. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11196. WHERE cvterm.name = 'A_box_type_1' OR cvterm.name = 'A_box_type_2' OR cvterm.name = 'A_box';
  11197. --- ************************************************
  11198. --- *** relation: b_box ***
  11199. --- *** relation type: VIEW ***
  11200. --- *** ***
  11201. --- *** A variably distant linear promoter regio ***
  11202. --- *** n recognized by TFIIIC, with consensus s ***
  11203. --- *** equence AGGTTCCAnnCC. ***
  11204. --- ************************************************
  11205. ---
  11206. CREATE VIEW b_box AS
  11207. SELECT
  11208. feature_id AS b_box_id,
  11209. feature.*
  11210. FROM
  11211. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11212. WHERE cvterm.name = 'B_box';
  11213. --- ************************************************
  11214. --- *** relation: rnapol_iii_promoter_type_3 ***
  11215. --- *** relation type: VIEW ***
  11216. --- *** ***
  11217. --- ************************************************
  11218. ---
  11219. CREATE VIEW rnapol_iii_promoter_type_3 AS
  11220. SELECT
  11221. feature_id AS rnapol_iii_promoter_type_3_id,
  11222. feature.*
  11223. FROM
  11224. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11225. WHERE cvterm.name = 'RNApol_III_promoter_type_3';
  11226. --- ************************************************
  11227. --- *** relation: c_box ***
  11228. --- *** relation type: VIEW ***
  11229. --- *** ***
  11230. --- *** An RNA polymerase III type 1 promoter wi ***
  11231. --- *** th consensus sequence CAnnCCn. ***
  11232. --- ************************************************
  11233. ---
  11234. CREATE VIEW c_box AS
  11235. SELECT
  11236. feature_id AS c_box_id,
  11237. feature.*
  11238. FROM
  11239. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11240. WHERE cvterm.name = 'C_box';
  11241. --- ************************************************
  11242. --- *** relation: snrna_encoding ***
  11243. --- *** relation type: VIEW ***
  11244. --- *** ***
  11245. --- ************************************************
  11246. ---
  11247. CREATE VIEW snrna_encoding AS
  11248. SELECT
  11249. feature_id AS snrna_encoding_id,
  11250. feature.*
  11251. FROM
  11252. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11253. WHERE cvterm.name = 'snRNA_encoding';
  11254. --- ************************************************
  11255. --- *** relation: telomere ***
  11256. --- *** relation type: VIEW ***
  11257. --- *** ***
  11258. --- *** A specific structure at the end of a lin ***
  11259. --- *** ear chromosome, required for the integri ***
  11260. --- *** ty and maintenance of the end. ***
  11261. --- ************************************************
  11262. ---
  11263. CREATE VIEW telomere AS
  11264. SELECT
  11265. feature_id AS telomere_id,
  11266. feature.*
  11267. FROM
  11268. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11269. WHERE cvterm.name = 'telomere';
  11270. --- ************************************************
  11271. --- *** relation: silencer ***
  11272. --- *** relation type: VIEW ***
  11273. --- *** ***
  11274. --- *** A regulatory region which upon binding o ***
  11275. --- *** f transcription factors, suppress the tr ***
  11276. --- *** anscription of the gene or genes they co ***
  11277. --- *** ntrol. ***
  11278. --- ************************************************
  11279. ---
  11280. CREATE VIEW silencer AS
  11281. SELECT
  11282. feature_id AS silencer_id,
  11283. feature.*
  11284. FROM
  11285. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11286. WHERE cvterm.name = 'silencer';
  11287. --- ************************************************
  11288. --- *** relation: chromosomal_regulatory_element ***
  11289. --- *** relation type: VIEW ***
  11290. --- *** ***
  11291. --- ************************************************
  11292. ---
  11293. CREATE VIEW chromosomal_regulatory_element AS
  11294. SELECT
  11295. feature_id AS chromosomal_regulatory_element_id,
  11296. feature.*
  11297. FROM
  11298. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11299. WHERE cvterm.name = 'matrix_attachment_site' OR cvterm.name = 'chromosomal_regulatory_element';
  11300. --- ************************************************
  11301. --- *** relation: insulator ***
  11302. --- *** relation type: VIEW ***
  11303. --- *** ***
  11304. --- *** A transcriptional cis regulatory region ***
  11305. --- *** that when located between a CM and a gen ***
  11306. --- *** e's promoter prevents the CRM from modul ***
  11307. --- *** ating that genes expression. ***
  11308. --- ************************************************
  11309. ---
  11310. CREATE VIEW insulator AS
  11311. SELECT
  11312. feature_id AS insulator_id,
  11313. feature.*
  11314. FROM
  11315. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11316. WHERE cvterm.name = 'insulator';
  11317. --- ************************************************
  11318. --- *** relation: chromosomal_structural_element ***
  11319. --- *** relation type: VIEW ***
  11320. --- *** ***
  11321. --- ************************************************
  11322. ---
  11323. CREATE VIEW chromosomal_structural_element AS
  11324. SELECT
  11325. feature_id AS chromosomal_structural_element_id,
  11326. feature.*
  11327. FROM
  11328. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11329. WHERE cvterm.name = 'centromere' OR cvterm.name = 'telomere' OR cvterm.name = 'point_centromere' OR cvterm.name = 'regional_centromere' OR cvterm.name = 'chromosomal_structural_element';
  11330. --- ************************************************
  11331. --- *** relation: five_prime_open_reading_frame ***
  11332. --- *** relation type: VIEW ***
  11333. --- *** ***
  11334. --- ************************************************
  11335. ---
  11336. CREATE VIEW five_prime_open_reading_frame AS
  11337. SELECT
  11338. feature_id AS five_prime_open_reading_frame_id,
  11339. feature.*
  11340. FROM
  11341. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11342. WHERE cvterm.name = 'five_prime_open_reading_frame';
  11343. --- ************************************************
  11344. --- *** relation: upstream_aug_codon ***
  11345. --- *** relation type: VIEW ***
  11346. --- *** ***
  11347. --- *** A start codon upstream of the ORF. ***
  11348. --- ************************************************
  11349. ---
  11350. CREATE VIEW upstream_aug_codon AS
  11351. SELECT
  11352. feature_id AS upstream_aug_codon_id,
  11353. feature.*
  11354. FROM
  11355. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11356. WHERE cvterm.name = 'upstream_AUG_codon';
  11357. --- ************************************************
  11358. --- *** relation: polycistronic_primary_transcript ***
  11359. --- *** relation type: VIEW ***
  11360. --- *** ***
  11361. --- *** A primary transcript encoding for more t ***
  11362. --- *** han one gene product. ***
  11363. --- ************************************************
  11364. ---
  11365. CREATE VIEW polycistronic_primary_transcript AS
  11366. SELECT
  11367. feature_id AS polycistronic_primary_transcript_id,
  11368. feature.*
  11369. FROM
  11370. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11371. WHERE cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'polycistronic_primary_transcript';
  11372. --- ************************************************
  11373. --- *** relation: monocistronic_primary_transcript ***
  11374. --- *** relation type: VIEW ***
  11375. --- *** ***
  11376. --- *** A primary transcript encoding for one ge ***
  11377. --- *** ne product. ***
  11378. --- ************************************************
  11379. ---
  11380. CREATE VIEW monocistronic_primary_transcript AS
  11381. SELECT
  11382. feature_id AS monocistronic_primary_transcript_id,
  11383. feature.*
  11384. FROM
  11385. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11386. WHERE cvterm.name = 'monocistronic_primary_transcript';
  11387. --- ************************************************
  11388. --- *** relation: monocistronic_mrna ***
  11389. --- *** relation type: VIEW ***
  11390. --- *** ***
  11391. --- *** An mRNA with either a single protein pro ***
  11392. --- *** duct, or for which the regions encoding ***
  11393. --- *** all its protein products overlap. ***
  11394. --- ************************************************
  11395. ---
  11396. CREATE VIEW monocistronic_mrna AS
  11397. SELECT
  11398. feature_id AS monocistronic_mrna_id,
  11399. feature.*
  11400. FROM
  11401. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11402. WHERE cvterm.name = 'monocistronic_mRNA';
  11403. --- ************************************************
  11404. --- *** relation: polycistronic_mrna ***
  11405. --- *** relation type: VIEW ***
  11406. --- *** ***
  11407. --- *** An mRNA that encodes multiple proteins f ***
  11408. --- *** rom at least two non-overlapping regions ***
  11409. --- *** . ***
  11410. --- ************************************************
  11411. ---
  11412. CREATE VIEW polycistronic_mrna AS
  11413. SELECT
  11414. feature_id AS polycistronic_mrna_id,
  11415. feature.*
  11416. FROM
  11417. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11418. WHERE cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'polycistronic_mRNA';
  11419. --- ************************************************
  11420. --- *** relation: mini_exon_donor_rna ***
  11421. --- *** relation type: VIEW ***
  11422. --- *** ***
  11423. --- *** A primary transcript that donates the sp ***
  11424. --- *** liced leader to other mRNA. ***
  11425. --- ************************************************
  11426. ---
  11427. CREATE VIEW mini_exon_donor_rna AS
  11428. SELECT
  11429. feature_id AS mini_exon_donor_rna_id,
  11430. feature.*
  11431. FROM
  11432. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11433. WHERE cvterm.name = 'mini_exon_donor_RNA';
  11434. --- ************************************************
  11435. --- *** relation: spliced_leader_rna ***
  11436. --- *** relation type: VIEW ***
  11437. --- *** ***
  11438. --- ************************************************
  11439. ---
  11440. CREATE VIEW spliced_leader_rna AS
  11441. SELECT
  11442. feature_id AS spliced_leader_rna_id,
  11443. feature.*
  11444. FROM
  11445. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11446. WHERE cvterm.name = 'spliced_leader_RNA';
  11447. --- ************************************************
  11448. --- *** relation: engineered_plasmid ***
  11449. --- *** relation type: VIEW ***
  11450. --- *** ***
  11451. --- *** A plasmid that is engineered. ***
  11452. --- ************************************************
  11453. ---
  11454. CREATE VIEW engineered_plasmid AS
  11455. SELECT
  11456. feature_id AS engineered_plasmid_id,
  11457. feature.*
  11458. FROM
  11459. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11460. 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';
  11461. --- ************************************************
  11462. --- *** relation: transcribed_spacer_region ***
  11463. --- *** relation type: VIEW ***
  11464. --- *** ***
  11465. --- *** Part of an rRNA transcription unit that ***
  11466. --- *** is transcribed but discarded during matu ***
  11467. --- *** ration, not giving rise to any part of r ***
  11468. --- *** RNA. ***
  11469. --- ************************************************
  11470. ---
  11471. CREATE VIEW transcribed_spacer_region AS
  11472. SELECT
  11473. feature_id AS transcribed_spacer_region_id,
  11474. feature.*
  11475. FROM
  11476. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11477. WHERE cvterm.name = 'internal_transcribed_spacer_region' OR cvterm.name = 'external_transcribed_spacer_region' OR cvterm.name = 'transcribed_spacer_region';
  11478. --- ************************************************
  11479. --- *** relation: internal_transcribed_spacer_region ***
  11480. --- *** relation type: VIEW ***
  11481. --- *** ***
  11482. --- *** Non-coding regions of DNA sequence that ***
  11483. --- *** separate genes coding for the 28S, 5.8S, ***
  11484. --- *** and 18S ribosomal RNAs. ***
  11485. --- ************************************************
  11486. ---
  11487. CREATE VIEW internal_transcribed_spacer_region AS
  11488. SELECT
  11489. feature_id AS internal_transcribed_spacer_region_id,
  11490. feature.*
  11491. FROM
  11492. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11493. WHERE cvterm.name = 'internal_transcribed_spacer_region';
  11494. --- ************************************************
  11495. --- *** relation: external_transcribed_spacer_region ***
  11496. --- *** relation type: VIEW ***
  11497. --- *** ***
  11498. --- *** Non-coding regions of DNA that precede t ***
  11499. --- *** he sequence that codes for the ribosomal ***
  11500. --- *** RNA. ***
  11501. --- ************************************************
  11502. ---
  11503. CREATE VIEW external_transcribed_spacer_region AS
  11504. SELECT
  11505. feature_id AS external_transcribed_spacer_region_id,
  11506. feature.*
  11507. FROM
  11508. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11509. WHERE cvterm.name = 'external_transcribed_spacer_region';
  11510. --- ************************************************
  11511. --- *** relation: tetranuc_repeat_microsat ***
  11512. --- *** relation type: VIEW ***
  11513. --- *** ***
  11514. --- ************************************************
  11515. ---
  11516. CREATE VIEW tetranuc_repeat_microsat AS
  11517. SELECT
  11518. feature_id AS tetranuc_repeat_microsat_id,
  11519. feature.*
  11520. FROM
  11521. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11522. WHERE cvterm.name = 'tetranucleotide_repeat_microsatellite_feature';
  11523. --- ************************************************
  11524. --- *** relation: srp_rna_encoding ***
  11525. --- *** relation type: VIEW ***
  11526. --- *** ***
  11527. --- ************************************************
  11528. ---
  11529. CREATE VIEW srp_rna_encoding AS
  11530. SELECT
  11531. feature_id AS srp_rna_encoding_id,
  11532. feature.*
  11533. FROM
  11534. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11535. WHERE cvterm.name = 'SRP_RNA_encoding';
  11536. --- ************************************************
  11537. --- *** relation: minisatellite ***
  11538. --- *** relation type: VIEW ***
  11539. --- *** ***
  11540. --- *** A repeat region containing tandemly repe ***
  11541. --- *** ated sequences having a unit length of 1 ***
  11542. --- *** 0 to 40 bp. ***
  11543. --- ************************************************
  11544. ---
  11545. CREATE VIEW minisatellite AS
  11546. SELECT
  11547. feature_id AS minisatellite_id,
  11548. feature.*
  11549. FROM
  11550. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11551. WHERE cvterm.name = 'minisatellite';
  11552. --- ************************************************
  11553. --- *** relation: antisense_rna ***
  11554. --- *** relation type: VIEW ***
  11555. --- *** ***
  11556. --- *** Antisense RNA is RNA that is transcribed ***
  11557. --- *** from the coding, rather than the templa ***
  11558. --- *** te, strand of DNA. It is therefore compl ***
  11559. --- *** ementary to mRNA. ***
  11560. --- ************************************************
  11561. ---
  11562. CREATE VIEW antisense_rna AS
  11563. SELECT
  11564. feature_id AS antisense_rna_id,
  11565. feature.*
  11566. FROM
  11567. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11568. WHERE cvterm.name = 'MicF_RNA' OR cvterm.name = 'antisense_RNA';
  11569. --- ************************************************
  11570. --- *** relation: antisense_primary_transcript ***
  11571. --- *** relation type: VIEW ***
  11572. --- *** ***
  11573. --- *** The reverse complement of the primary tr ***
  11574. --- *** anscript. ***
  11575. --- ************************************************
  11576. ---
  11577. CREATE VIEW antisense_primary_transcript AS
  11578. SELECT
  11579. feature_id AS antisense_primary_transcript_id,
  11580. feature.*
  11581. FROM
  11582. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11583. WHERE cvterm.name = 'antisense_primary_transcript';
  11584. --- ************************************************
  11585. --- *** relation: sirna ***
  11586. --- *** relation type: VIEW ***
  11587. --- *** ***
  11588. --- *** A small RNA molecule that is the product ***
  11589. --- *** of a longer exogenous or endogenous dsR ***
  11590. --- *** NA, which is either a bimolecular duplex ***
  11591. --- *** or very long hairpin, processed (via th ***
  11592. --- *** e Dicer pathway) such that numerous siRN ***
  11593. --- *** As accumulate from both strands of the d ***
  11594. --- *** sRNA. SRNAs trigger the cleavage of thei ***
  11595. --- *** r target molecules. ***
  11596. --- ************************************************
  11597. ---
  11598. CREATE VIEW sirna AS
  11599. SELECT
  11600. feature_id AS sirna_id,
  11601. feature.*
  11602. FROM
  11603. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11604. WHERE cvterm.name = 'siRNA';
  11605. --- ************************************************
  11606. --- *** relation: mirna_primary_transcript ***
  11607. --- *** relation type: VIEW ***
  11608. --- *** ***
  11609. --- *** A primary transcript encoding a micro RN ***
  11610. --- *** A. ***
  11611. --- ************************************************
  11612. ---
  11613. CREATE VIEW mirna_primary_transcript AS
  11614. SELECT
  11615. feature_id AS mirna_primary_transcript_id,
  11616. feature.*
  11617. FROM
  11618. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11619. WHERE cvterm.name = 'stRNA_primary_transcript' OR cvterm.name = 'miRNA_primary_transcript';
  11620. --- ************************************************
  11621. --- *** relation: strna_primary_transcript ***
  11622. --- *** relation type: VIEW ***
  11623. --- *** ***
  11624. --- *** A primary transcript encoding a small te ***
  11625. --- *** mporal mRNA (SO:0000649). ***
  11626. --- ************************************************
  11627. ---
  11628. CREATE VIEW strna_primary_transcript AS
  11629. SELECT
  11630. feature_id AS strna_primary_transcript_id,
  11631. feature.*
  11632. FROM
  11633. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11634. WHERE cvterm.name = 'stRNA_primary_transcript';
  11635. --- ************************************************
  11636. --- *** relation: strna ***
  11637. --- *** relation type: VIEW ***
  11638. --- *** ***
  11639. --- *** Non-coding RNAs of about 21 nucleotides ***
  11640. --- *** in length that regulate temporal develop ***
  11641. --- *** ment; first discovered in C. elegans. ***
  11642. --- ************************************************
  11643. ---
  11644. CREATE VIEW strna AS
  11645. SELECT
  11646. feature_id AS strna_id,
  11647. feature.*
  11648. FROM
  11649. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11650. WHERE cvterm.name = 'stRNA';
  11651. --- ************************************************
  11652. --- *** relation: small_subunit_rrna ***
  11653. --- *** relation type: VIEW ***
  11654. --- *** ***
  11655. --- *** Ribosomal RNA transcript that structures ***
  11656. --- *** the small subunit of the ribosome. ***
  11657. --- ************************************************
  11658. ---
  11659. CREATE VIEW small_subunit_rrna AS
  11660. SELECT
  11661. feature_id AS small_subunit_rrna_id,
  11662. feature.*
  11663. FROM
  11664. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11665. WHERE cvterm.name = 'rRNA_18S' OR cvterm.name = 'rRNA_16S' OR cvterm.name = 'small_subunit_rRNA';
  11666. --- ************************************************
  11667. --- *** relation: large_subunit_rrna ***
  11668. --- *** relation type: VIEW ***
  11669. --- *** ***
  11670. --- *** Ribosomal RNA transcript that structures ***
  11671. --- *** the large subunit of the ribosome. ***
  11672. --- ************************************************
  11673. ---
  11674. CREATE VIEW large_subunit_rrna AS
  11675. SELECT
  11676. feature_id AS large_subunit_rrna_id,
  11677. feature.*
  11678. FROM
  11679. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11680. 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';
  11681. --- ************************************************
  11682. --- *** relation: rrna_5s ***
  11683. --- *** relation type: VIEW ***
  11684. --- *** ***
  11685. --- *** 5S ribosomal RNA (5S rRNA) is a componen ***
  11686. --- *** t of the large ribosomal subunit in both ***
  11687. --- *** prokaryotes and eukaryotes. In eukaryot ***
  11688. --- *** es, it is synthesised by RNA polymerase ***
  11689. --- *** III (the other eukaryotic rRNAs are clea ***
  11690. --- *** ved from a 45S precursor synthesised by ***
  11691. --- *** RNA polymerase I). In Xenopus oocytes, i ***
  11692. --- *** t has been shown that fingers 4-7 of the ***
  11693. --- *** nine-zinc finger transcription factor T ***
  11694. --- *** FIIIA can bind to the central region of ***
  11695. --- *** 5S RNA. Thus, in addition to positively ***
  11696. --- *** regulating 5S rRNA transcription, TFIIIA ***
  11697. --- *** also stabilizes 5S rRNA until it is req ***
  11698. --- *** uired for transcription. ***
  11699. --- ************************************************
  11700. ---
  11701. CREATE VIEW rrna_5s AS
  11702. SELECT
  11703. feature_id AS rrna_5s_id,
  11704. feature.*
  11705. FROM
  11706. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11707. WHERE cvterm.name = 'rRNA_5S';
  11708. --- ************************************************
  11709. --- *** relation: rrna_28s ***
  11710. --- *** relation type: VIEW ***
  11711. --- *** ***
  11712. --- *** A component of the large ribosomal subun ***
  11713. --- *** it. ***
  11714. --- ************************************************
  11715. ---
  11716. CREATE VIEW rrna_28s AS
  11717. SELECT
  11718. feature_id AS rrna_28s_id,
  11719. feature.*
  11720. FROM
  11721. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11722. WHERE cvterm.name = 'rRNA_28S';
  11723. --- ************************************************
  11724. --- *** relation: maxicircle_gene ***
  11725. --- *** relation type: VIEW ***
  11726. --- *** ***
  11727. --- *** A mitochondrial gene located in a maxici ***
  11728. --- *** rcle. ***
  11729. --- ************************************************
  11730. ---
  11731. CREATE VIEW maxicircle_gene AS
  11732. SELECT
  11733. feature_id AS maxicircle_gene_id,
  11734. feature.*
  11735. FROM
  11736. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11737. WHERE cvterm.name = 'cryptogene' OR cvterm.name = 'maxicircle_gene';
  11738. --- ************************************************
  11739. --- *** relation: ncrna ***
  11740. --- *** relation type: VIEW ***
  11741. --- *** ***
  11742. --- *** An RNA transcript that does not encode f ***
  11743. --- *** or a protein rather the RNA molecule is ***
  11744. --- *** the gene product. ***
  11745. --- ************************************************
  11746. ---
  11747. CREATE VIEW ncrna AS
  11748. SELECT
  11749. feature_id AS ncrna_id,
  11750. feature.*
  11751. FROM
  11752. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11753. 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';
  11754. --- ************************************************
  11755. --- *** relation: strna_encoding ***
  11756. --- *** relation type: VIEW ***
  11757. --- *** ***
  11758. --- ************************************************
  11759. ---
  11760. CREATE VIEW strna_encoding AS
  11761. SELECT
  11762. feature_id AS strna_encoding_id,
  11763. feature.*
  11764. FROM
  11765. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11766. WHERE cvterm.name = 'stRNA_encoding';
  11767. --- ************************************************
  11768. --- *** relation: repeat_region ***
  11769. --- *** relation type: VIEW ***
  11770. --- *** ***
  11771. --- *** A region of sequence containing one or m ***
  11772. --- *** ore repeat units. ***
  11773. --- ************************************************
  11774. ---
  11775. CREATE VIEW repeat_region AS
  11776. SELECT
  11777. feature_id AS repeat_region_id,
  11778. feature.*
  11779. FROM
  11780. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11781. 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';
  11782. --- ************************************************
  11783. --- *** relation: dispersed_repeat ***
  11784. --- *** relation type: VIEW ***
  11785. --- *** ***
  11786. --- *** A repeat that is located at dispersed si ***
  11787. --- *** tes in the genome. ***
  11788. --- ************************************************
  11789. ---
  11790. CREATE VIEW dispersed_repeat AS
  11791. SELECT
  11792. feature_id AS dispersed_repeat_id,
  11793. feature.*
  11794. FROM
  11795. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11796. WHERE cvterm.name = 'dispersed_repeat';
  11797. --- ************************************************
  11798. --- *** relation: tmrna_encoding ***
  11799. --- *** relation type: VIEW ***
  11800. --- *** ***
  11801. --- ************************************************
  11802. ---
  11803. CREATE VIEW tmrna_encoding AS
  11804. SELECT
  11805. feature_id AS tmrna_encoding_id,
  11806. feature.*
  11807. FROM
  11808. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11809. WHERE cvterm.name = 'tmRNA_encoding';
  11810. --- ************************************************
  11811. --- *** relation: spliceosomal_intron ***
  11812. --- *** relation type: VIEW ***
  11813. --- *** ***
  11814. --- *** An intron which is spliced by the splice ***
  11815. --- *** osome. ***
  11816. --- ************************************************
  11817. ---
  11818. CREATE VIEW spliceosomal_intron AS
  11819. SELECT
  11820. feature_id AS spliceosomal_intron_id,
  11821. feature.*
  11822. FROM
  11823. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11824. WHERE cvterm.name = 'U2_intron' OR cvterm.name = 'U12_intron' OR cvterm.name = 'spliceosomal_intron';
  11825. --- ************************************************
  11826. --- *** relation: trna_encoding ***
  11827. --- *** relation type: VIEW ***
  11828. --- *** ***
  11829. --- ************************************************
  11830. ---
  11831. CREATE VIEW trna_encoding AS
  11832. SELECT
  11833. feature_id AS trna_encoding_id,
  11834. feature.*
  11835. FROM
  11836. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11837. WHERE cvterm.name = 'tRNA_encoding';
  11838. --- ************************************************
  11839. --- *** relation: introgressed_chromosome_region ***
  11840. --- *** relation type: VIEW ***
  11841. --- *** ***
  11842. --- ************************************************
  11843. ---
  11844. CREATE VIEW introgressed_chromosome_region AS
  11845. SELECT
  11846. feature_id AS introgressed_chromosome_region_id,
  11847. feature.*
  11848. FROM
  11849. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11850. WHERE cvterm.name = 'introgressed_chromosome_region';
  11851. --- ************************************************
  11852. --- *** relation: monocistronic_transcript ***
  11853. --- *** relation type: VIEW ***
  11854. --- *** ***
  11855. --- *** A transcript that is monocistronic. ***
  11856. --- ************************************************
  11857. ---
  11858. CREATE VIEW monocistronic_transcript AS
  11859. SELECT
  11860. feature_id AS monocistronic_transcript_id,
  11861. feature.*
  11862. FROM
  11863. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11864. WHERE cvterm.name = 'monocistronic_primary_transcript' OR cvterm.name = 'monocistronic_mRNA' OR cvterm.name = 'monocistronic_transcript';
  11865. --- ************************************************
  11866. --- *** relation: mobile_intron ***
  11867. --- *** relation type: VIEW ***
  11868. --- *** ***
  11869. --- *** An intron (mitochondrial, chloroplast, n ***
  11870. --- *** uclear or prokaryotic) that encodes a do ***
  11871. --- *** uble strand sequence specific endonuclea ***
  11872. --- *** se allowing for mobility. ***
  11873. --- ************************************************
  11874. ---
  11875. CREATE VIEW mobile_intron AS
  11876. SELECT
  11877. feature_id AS mobile_intron_id,
  11878. feature.*
  11879. FROM
  11880. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11881. WHERE cvterm.name = 'mobile_intron';
  11882. --- ************************************************
  11883. --- *** relation: insertion ***
  11884. --- *** relation type: VIEW ***
  11885. --- *** ***
  11886. --- *** The sequence of one or more nucleotides ***
  11887. --- *** added between two adjacent nucleotides i ***
  11888. --- *** n the sequence. ***
  11889. --- ************************************************
  11890. ---
  11891. CREATE VIEW insertion AS
  11892. SELECT
  11893. feature_id AS insertion_id,
  11894. feature.*
  11895. FROM
  11896. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11897. 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';
  11898. --- ************************************************
  11899. --- *** relation: est_match ***
  11900. --- *** relation type: VIEW ***
  11901. --- *** ***
  11902. --- *** A match against an EST sequence. ***
  11903. --- ************************************************
  11904. ---
  11905. CREATE VIEW est_match AS
  11906. SELECT
  11907. feature_id AS est_match_id,
  11908. feature.*
  11909. FROM
  11910. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11911. WHERE cvterm.name = 'EST_match';
  11912. --- ************************************************
  11913. --- *** relation: sequence_rearrangement_feature ***
  11914. --- *** relation type: VIEW ***
  11915. --- *** ***
  11916. --- ************************************************
  11917. ---
  11918. CREATE VIEW sequence_rearrangement_feature AS
  11919. SELECT
  11920. feature_id AS sequence_rearrangement_feature_id,
  11921. feature.*
  11922. FROM
  11923. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11924. 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';
  11925. --- ************************************************
  11926. --- *** relation: chromosome_breakage_sequence ***
  11927. --- *** relation type: VIEW ***
  11928. --- *** ***
  11929. --- *** A sequence within the micronuclear DNA o ***
  11930. --- *** f ciliates at which chromosome breakage ***
  11931. --- *** and telomere addition occurs during nucl ***
  11932. --- *** ear differentiation. ***
  11933. --- ************************************************
  11934. ---
  11935. CREATE VIEW chromosome_breakage_sequence AS
  11936. SELECT
  11937. feature_id AS chromosome_breakage_sequence_id,
  11938. feature.*
  11939. FROM
  11940. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11941. WHERE cvterm.name = 'chromosome_breakage_sequence';
  11942. --- ************************************************
  11943. --- *** relation: internal_eliminated_sequence ***
  11944. --- *** relation type: VIEW ***
  11945. --- *** ***
  11946. --- *** A sequence eliminated from the genome of ***
  11947. --- *** ciliates during nuclear differentiation ***
  11948. --- *** . ***
  11949. --- ************************************************
  11950. ---
  11951. CREATE VIEW internal_eliminated_sequence AS
  11952. SELECT
  11953. feature_id AS internal_eliminated_sequence_id,
  11954. feature.*
  11955. FROM
  11956. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11957. WHERE cvterm.name = 'internal_eliminated_sequence';
  11958. --- ************************************************
  11959. --- *** relation: macronucleus_destined_segment ***
  11960. --- *** relation type: VIEW ***
  11961. --- *** ***
  11962. --- *** A sequence that is conserved, although r ***
  11963. --- *** earranged relative to the micronucleus, ***
  11964. --- *** in the macronucleus of a ciliate genome. ***
  11965. --- ************************************************
  11966. ---
  11967. CREATE VIEW macronucleus_destined_segment AS
  11968. SELECT
  11969. feature_id AS macronucleus_destined_segment_id,
  11970. feature.*
  11971. FROM
  11972. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11973. WHERE cvterm.name = 'macronucleus_destined_segment';
  11974. --- ************************************************
  11975. --- *** relation: transcript ***
  11976. --- *** relation type: VIEW ***
  11977. --- *** ***
  11978. --- *** An RNA synthesized on a DNA or RNA templ ***
  11979. --- *** ate by an RNA polymerase. ***
  11980. --- ************************************************
  11981. ---
  11982. CREATE VIEW transcript AS
  11983. SELECT
  11984. feature_id AS transcript_id,
  11985. feature.*
  11986. FROM
  11987. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11988. 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';
  11989. --- ************************************************
  11990. --- *** relation: canonical_three_prime_splice_site ***
  11991. --- *** relation type: VIEW ***
  11992. --- *** ***
  11993. --- *** The canonical 3' splice site has the seq ***
  11994. --- *** uence "AG". ***
  11995. --- ************************************************
  11996. ---
  11997. CREATE VIEW canonical_three_prime_splice_site AS
  11998. SELECT
  11999. feature_id AS canonical_three_prime_splice_site_id,
  12000. feature.*
  12001. FROM
  12002. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12003. WHERE cvterm.name = 'canonical_three_prime_splice_site';
  12004. --- ************************************************
  12005. --- *** relation: canonical_five_prime_splice_site ***
  12006. --- *** relation type: VIEW ***
  12007. --- *** ***
  12008. --- *** The canonical 5' splice site has the seq ***
  12009. --- *** uence "GT". ***
  12010. --- ************************************************
  12011. ---
  12012. CREATE VIEW canonical_five_prime_splice_site AS
  12013. SELECT
  12014. feature_id AS canonical_five_prime_splice_site_id,
  12015. feature.*
  12016. FROM
  12017. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12018. WHERE cvterm.name = 'canonical_five_prime_splice_site';
  12019. --- ************************************************
  12020. --- *** relation: non_canonical_three_prime_splice_site ***
  12021. --- *** relation type: VIEW ***
  12022. --- *** ***
  12023. --- *** A 3' splice site that does not have the ***
  12024. --- *** sequence "AG". ***
  12025. --- ************************************************
  12026. ---
  12027. CREATE VIEW non_canonical_three_prime_splice_site AS
  12028. SELECT
  12029. feature_id AS non_canonical_three_prime_splice_site_id,
  12030. feature.*
  12031. FROM
  12032. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12033. WHERE cvterm.name = 'non_canonical_three_prime_splice_site';
  12034. --- ************************************************
  12035. --- *** relation: non_canonical_five_prime_splice_site ***
  12036. --- *** relation type: VIEW ***
  12037. --- *** ***
  12038. --- *** A 5' splice site which does not have the ***
  12039. --- *** sequence "GT". ***
  12040. --- ************************************************
  12041. ---
  12042. CREATE VIEW non_canonical_five_prime_splice_site AS
  12043. SELECT
  12044. feature_id AS non_canonical_five_prime_splice_site_id,
  12045. feature.*
  12046. FROM
  12047. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12048. WHERE cvterm.name = 'non_canonical_five_prime_splice_site';
  12049. --- ************************************************
  12050. --- *** relation: non_canonical_start_codon ***
  12051. --- *** relation type: VIEW ***
  12052. --- *** ***
  12053. --- *** A start codon that is not the usual AUG ***
  12054. --- *** sequence. ***
  12055. --- ************************************************
  12056. ---
  12057. CREATE VIEW non_canonical_start_codon AS
  12058. SELECT
  12059. feature_id AS non_canonical_start_codon_id,
  12060. feature.*
  12061. FROM
  12062. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12063. WHERE cvterm.name = 'four_bp_start_codon' OR cvterm.name = 'CTG_start_codon' OR cvterm.name = 'non_canonical_start_codon';
  12064. --- ************************************************
  12065. --- *** relation: aberrant_processed_transcript ***
  12066. --- *** relation type: VIEW ***
  12067. --- *** ***
  12068. --- *** A transcript that has been processed "in ***
  12069. --- *** correctly", for example by the failure o ***
  12070. --- *** f splicing of one or more exons. ***
  12071. --- ************************************************
  12072. ---
  12073. CREATE VIEW aberrant_processed_transcript AS
  12074. SELECT
  12075. feature_id AS aberrant_processed_transcript_id,
  12076. feature.*
  12077. FROM
  12078. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12079. WHERE cvterm.name = 'aberrant_processed_transcript';
  12080. --- ************************************************
  12081. --- *** relation: exonic_splice_enhancer ***
  12082. --- *** relation type: VIEW ***
  12083. --- *** ***
  12084. --- *** Exonic splicing enhancers (ESEs) facilit ***
  12085. --- *** ate exon definition by assisting in the ***
  12086. --- *** recruitment of splicing factors to the a ***
  12087. --- *** djacent intron. ***
  12088. --- ************************************************
  12089. ---
  12090. CREATE VIEW exonic_splice_enhancer AS
  12091. SELECT
  12092. feature_id AS exonic_splice_enhancer_id,
  12093. feature.*
  12094. FROM
  12095. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12096. WHERE cvterm.name = 'exonic_splice_enhancer';
  12097. --- ************************************************
  12098. --- *** relation: nuclease_sensitive_site ***
  12099. --- *** relation type: VIEW ***
  12100. --- *** ***
  12101. --- *** A region of nucleotide sequence targeted ***
  12102. --- *** by a nuclease enzyme. ***
  12103. --- ************************************************
  12104. ---
  12105. CREATE VIEW nuclease_sensitive_site AS
  12106. SELECT
  12107. feature_id AS nuclease_sensitive_site_id,
  12108. feature.*
  12109. FROM
  12110. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12111. 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';
  12112. --- ************************************************
  12113. --- *** relation: dnasei_hypersensitive_site ***
  12114. --- *** relation type: VIEW ***
  12115. --- *** ***
  12116. --- ************************************************
  12117. ---
  12118. CREATE VIEW dnasei_hypersensitive_site AS
  12119. SELECT
  12120. feature_id AS dnasei_hypersensitive_site_id,
  12121. feature.*
  12122. FROM
  12123. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12124. WHERE cvterm.name = 'DNAseI_hypersensitive_site';
  12125. --- ************************************************
  12126. --- *** relation: translocation_element ***
  12127. --- *** relation type: VIEW ***
  12128. --- *** ***
  12129. --- *** A chromosomal translocation whereby the ***
  12130. --- *** chromosomes carrying non-homologous cent ***
  12131. --- *** romeres may be recovered independently. ***
  12132. --- *** These chromosomes are described as trans ***
  12133. --- *** location elements. This occurs for some ***
  12134. --- *** translocations, particularly but not exc ***
  12135. --- *** lusively, reciprocal translocations. ***
  12136. --- ************************************************
  12137. ---
  12138. CREATE VIEW translocation_element AS
  12139. SELECT
  12140. feature_id AS translocation_element_id,
  12141. feature.*
  12142. FROM
  12143. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12144. WHERE cvterm.name = 'translocation_element';
  12145. --- ************************************************
  12146. --- *** relation: deletion_junction ***
  12147. --- *** relation type: VIEW ***
  12148. --- *** ***
  12149. --- *** The space between two bases in a sequenc ***
  12150. --- *** e which marks the position where a delet ***
  12151. --- *** ion has occurred. ***
  12152. --- ************************************************
  12153. ---
  12154. CREATE VIEW deletion_junction AS
  12155. SELECT
  12156. feature_id AS deletion_junction_id,
  12157. feature.*
  12158. FROM
  12159. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12160. WHERE cvterm.name = 'deletion_junction';
  12161. --- ************************************************
  12162. --- *** relation: golden_path ***
  12163. --- *** relation type: VIEW ***
  12164. --- *** ***
  12165. --- *** A set of subregions selected from sequen ***
  12166. --- *** ce contigs which when concatenated form ***
  12167. --- *** a nonredundant linear sequence. ***
  12168. --- ************************************************
  12169. ---
  12170. CREATE VIEW golden_path AS
  12171. SELECT
  12172. feature_id AS golden_path_id,
  12173. feature.*
  12174. FROM
  12175. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12176. WHERE cvterm.name = 'golden_path';
  12177. --- ************************************************
  12178. --- *** relation: cdna_match ***
  12179. --- *** relation type: VIEW ***
  12180. --- *** ***
  12181. --- *** A match against cDNA sequence. ***
  12182. --- ************************************************
  12183. ---
  12184. CREATE VIEW cdna_match AS
  12185. SELECT
  12186. feature_id AS cdna_match_id,
  12187. feature.*
  12188. FROM
  12189. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12190. WHERE cvterm.name = 'cDNA_match';
  12191. --- ************************************************
  12192. --- *** relation: gene_with_polycistronic_transcript ***
  12193. --- *** relation type: VIEW ***
  12194. --- *** ***
  12195. --- *** A gene that encodes a polycistronic tran ***
  12196. --- *** script. ***
  12197. --- ************************************************
  12198. ---
  12199. CREATE VIEW gene_with_polycistronic_transcript AS
  12200. SELECT
  12201. feature_id AS gene_with_polycistronic_transcript_id,
  12202. feature.*
  12203. FROM
  12204. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12205. 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';
  12206. --- ************************************************
  12207. --- *** relation: cleaved_initiator_methionine ***
  12208. --- *** relation type: VIEW ***
  12209. --- *** ***
  12210. --- *** The initiator methionine that has been c ***
  12211. --- *** leaved from a mature polypeptide sequenc ***
  12212. --- *** e. ***
  12213. --- ************************************************
  12214. ---
  12215. CREATE VIEW cleaved_initiator_methionine AS
  12216. SELECT
  12217. feature_id AS cleaved_initiator_methionine_id,
  12218. feature.*
  12219. FROM
  12220. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12221. WHERE cvterm.name = 'cleaved_initiator_methionine';
  12222. --- ************************************************
  12223. --- *** relation: gene_with_dicistronic_transcript ***
  12224. --- *** relation type: VIEW ***
  12225. --- *** ***
  12226. --- *** A gene that encodes a dicistronic transc ***
  12227. --- *** ript. ***
  12228. --- ************************************************
  12229. ---
  12230. CREATE VIEW gene_with_dicistronic_transcript AS
  12231. SELECT
  12232. feature_id AS gene_with_dicistronic_transcript_id,
  12233. feature.*
  12234. FROM
  12235. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12236. WHERE cvterm.name = 'gene_with_dicistronic_primary_transcript' OR cvterm.name = 'gene_with_dicistronic_mRNA' OR cvterm.name = 'gene_with_dicistronic_transcript';
  12237. --- ************************************************
  12238. --- *** relation: gene_with_recoded_mrna ***
  12239. --- *** relation type: VIEW ***
  12240. --- *** ***
  12241. --- *** A gene that encodes an mRNA that is reco ***
  12242. --- *** ded. ***
  12243. --- ************************************************
  12244. ---
  12245. CREATE VIEW gene_with_recoded_mrna AS
  12246. SELECT
  12247. feature_id AS gene_with_recoded_mrna_id,
  12248. feature.*
  12249. FROM
  12250. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12251. 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';
  12252. --- ************************************************
  12253. --- *** relation: snp ***
  12254. --- *** relation type: VIEW ***
  12255. --- *** ***
  12256. --- *** SNPs are single base pair positions in g ***
  12257. --- *** enomic DNA at which different sequence a ***
  12258. --- *** lternatives exist in normal individuals ***
  12259. --- *** in some population(s), wherein the least ***
  12260. --- *** frequent variant has an abundance of 1% ***
  12261. --- *** or greater. ***
  12262. --- ************************************************
  12263. ---
  12264. CREATE VIEW snp AS
  12265. SELECT
  12266. feature_id AS snp_id,
  12267. feature.*
  12268. FROM
  12269. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12270. WHERE cvterm.name = 'SNP';
  12271. --- ************************************************
  12272. --- *** relation: reagent ***
  12273. --- *** relation type: VIEW ***
  12274. --- *** ***
  12275. --- *** A sequence used in experiment. ***
  12276. --- ************************************************
  12277. ---
  12278. CREATE VIEW reagent AS
  12279. SELECT
  12280. feature_id AS reagent_id,
  12281. feature.*
  12282. FROM
  12283. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12284. 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';
  12285. --- ************************************************
  12286. --- *** relation: oligo ***
  12287. --- *** relation type: VIEW ***
  12288. --- *** ***
  12289. --- *** A short oligonucleotide sequence, of len ***
  12290. --- *** gth on the order of 10's of bases; eithe ***
  12291. --- *** r single or double stranded. ***
  12292. --- ************************************************
  12293. ---
  12294. CREATE VIEW oligo AS
  12295. SELECT
  12296. feature_id AS oligo_id,
  12297. feature.*
  12298. FROM
  12299. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12300. 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';
  12301. --- ************************************************
  12302. --- *** relation: gene_with_stop_codon_read_through ***
  12303. --- *** relation type: VIEW ***
  12304. --- *** ***
  12305. --- *** A gene that encodes a transcript with st ***
  12306. --- *** op codon readthrough. ***
  12307. --- ************************************************
  12308. ---
  12309. CREATE VIEW gene_with_stop_codon_read_through AS
  12310. SELECT
  12311. feature_id AS gene_with_stop_codon_read_through_id,
  12312. feature.*
  12313. FROM
  12314. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12315. 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';
  12316. --- ************************************************
  12317. --- *** relation: gene_with_stop_codon_redefined_as_pyrrolysine ***
  12318. --- *** relation type: VIEW ***
  12319. --- *** ***
  12320. --- *** A gene encoding an mRNA that has the sto ***
  12321. --- *** p codon redefined as pyrrolysine. ***
  12322. --- ************************************************
  12323. ---
  12324. CREATE VIEW gene_with_stop_codon_redefined_as_pyrrolysine AS
  12325. SELECT
  12326. feature_id AS gene_with_stop_codon_redefined_as_pyrrolysine_id,
  12327. feature.*
  12328. FROM
  12329. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12330. WHERE cvterm.name = 'gene_with_stop_codon_redefined_as_pyrrolysine';
  12331. --- ************************************************
  12332. --- *** relation: junction ***
  12333. --- *** relation type: VIEW ***
  12334. --- *** ***
  12335. --- *** A sequence_feature with an extent of zer ***
  12336. --- *** o. ***
  12337. --- ************************************************
  12338. ---
  12339. CREATE VIEW junction AS
  12340. SELECT
  12341. feature_id AS junction_id,
  12342. feature.*
  12343. FROM
  12344. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12345. 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';
  12346. --- ************************************************
  12347. --- *** relation: remark ***
  12348. --- *** relation type: VIEW ***
  12349. --- *** ***
  12350. --- *** A comment about the sequence. ***
  12351. --- ************************************************
  12352. ---
  12353. CREATE VIEW remark AS
  12354. SELECT
  12355. feature_id AS remark_id,
  12356. feature.*
  12357. FROM
  12358. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12359. 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';
  12360. --- ************************************************
  12361. --- *** relation: possible_base_call_error ***
  12362. --- *** relation type: VIEW ***
  12363. --- *** ***
  12364. --- *** A region of sequence where the validity ***
  12365. --- *** of the base calling is questionable. ***
  12366. --- ************************************************
  12367. ---
  12368. CREATE VIEW possible_base_call_error AS
  12369. SELECT
  12370. feature_id AS possible_base_call_error_id,
  12371. feature.*
  12372. FROM
  12373. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12374. WHERE cvterm.name = 'possible_base_call_error';
  12375. --- ************************************************
  12376. --- *** relation: possible_assembly_error ***
  12377. --- *** relation type: VIEW ***
  12378. --- *** ***
  12379. --- *** A region of sequence where there may hav ***
  12380. --- *** e been an error in the assembly. ***
  12381. --- ************************************************
  12382. ---
  12383. CREATE VIEW possible_assembly_error AS
  12384. SELECT
  12385. feature_id AS possible_assembly_error_id,
  12386. feature.*
  12387. FROM
  12388. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12389. WHERE cvterm.name = 'possible_assembly_error';
  12390. --- ************************************************
  12391. --- *** relation: experimental_result_region ***
  12392. --- *** relation type: VIEW ***
  12393. --- *** ***
  12394. --- *** A region of sequence implicated in an ex ***
  12395. --- *** perimental result. ***
  12396. --- ************************************************
  12397. ---
  12398. CREATE VIEW experimental_result_region AS
  12399. SELECT
  12400. feature_id AS experimental_result_region_id,
  12401. feature.*
  12402. FROM
  12403. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12404. WHERE cvterm.name = 'overlapping_feature_set' OR cvterm.name = 'no_output' OR cvterm.name = 'overlapping_EST_set' OR cvterm.name = 'experimental_result_region';
  12405. --- ************************************************
  12406. --- *** relation: gene ***
  12407. --- *** relation type: VIEW ***
  12408. --- *** ***
  12409. --- *** A region (or regions) that includes all ***
  12410. --- *** of the sequence elements necessary to en ***
  12411. --- *** code a functional transcript. A gene may ***
  12412. --- *** include regulatory regions, transcribed ***
  12413. --- *** regions and/or other functional sequenc ***
  12414. --- *** e regions. ***
  12415. --- ************************************************
  12416. ---
  12417. CREATE VIEW gene AS
  12418. SELECT
  12419. feature_id AS gene_id,
  12420. feature.*
  12421. FROM
  12422. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12423. 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';
  12424. --- ************************************************
  12425. --- *** relation: tandem_repeat ***
  12426. --- *** relation type: VIEW ***
  12427. --- *** ***
  12428. --- *** Two or more adjcent copies of a region ( ***
  12429. --- *** of length greater than 1). ***
  12430. --- ************************************************
  12431. ---
  12432. CREATE VIEW tandem_repeat AS
  12433. SELECT
  12434. feature_id AS tandem_repeat_id,
  12435. feature.*
  12436. FROM
  12437. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12438. 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';
  12439. --- ************************************************
  12440. --- *** relation: trans_splice_acceptor_site ***
  12441. --- *** relation type: VIEW ***
  12442. --- *** ***
  12443. --- *** The 3' splice site of the acceptor prima ***
  12444. --- *** ry transcript. ***
  12445. --- ************************************************
  12446. ---
  12447. CREATE VIEW trans_splice_acceptor_site AS
  12448. SELECT
  12449. feature_id AS trans_splice_acceptor_site_id,
  12450. feature.*
  12451. FROM
  12452. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12453. 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';
  12454. --- ************************************************
  12455. --- *** relation: trans_splice_donor_site ***
  12456. --- *** relation type: VIEW ***
  12457. --- *** ***
  12458. --- *** The 5' five prime splice site region of ***
  12459. --- *** the donor RNA. ***
  12460. --- ************************************************
  12461. ---
  12462. CREATE VIEW trans_splice_donor_site AS
  12463. SELECT
  12464. feature_id AS trans_splice_donor_site_id,
  12465. feature.*
  12466. FROM
  12467. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12468. WHERE cvterm.name = 'trans_splice_donor_site';
  12469. --- ************************************************
  12470. --- *** relation: sl1_acceptor_site ***
  12471. --- *** relation type: VIEW ***
  12472. --- *** ***
  12473. --- *** A trans_splicing_acceptor_site which app ***
  12474. --- *** ends the 22nt SL1 RNA leader sequence to ***
  12475. --- *** the 5' end of most mRNAs. ***
  12476. --- ************************************************
  12477. ---
  12478. CREATE VIEW sl1_acceptor_site AS
  12479. SELECT
  12480. feature_id AS sl1_acceptor_site_id,
  12481. feature.*
  12482. FROM
  12483. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12484. WHERE cvterm.name = 'SL1_acceptor_site';
  12485. --- ************************************************
  12486. --- *** relation: sl2_acceptor_site ***
  12487. --- *** relation type: VIEW ***
  12488. --- *** ***
  12489. --- *** A trans_splicing_acceptor_site which app ***
  12490. --- *** ends the 22nt SL2 RNA leader sequence to ***
  12491. --- *** the 5' end of mRNAs. SL2 acceptor sites ***
  12492. --- *** occur in genes in internal segments of ***
  12493. --- *** polycistronic transcripts. ***
  12494. --- ************************************************
  12495. ---
  12496. CREATE VIEW sl2_acceptor_site AS
  12497. SELECT
  12498. feature_id AS sl2_acceptor_site_id,
  12499. feature.*
  12500. FROM
  12501. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12502. 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';
  12503. --- ************************************************
  12504. --- *** relation: gene_with_stop_codon_redefined_as_selenocysteine ***
  12505. --- *** relation type: VIEW ***
  12506. --- *** ***
  12507. --- *** A gene encoding an mRNA that has the sto ***
  12508. --- *** p codon redefined as selenocysteine. ***
  12509. --- ************************************************
  12510. ---
  12511. CREATE VIEW gene_with_stop_codon_redefined_as_selenocysteine AS
  12512. SELECT
  12513. feature_id AS gene_with_stop_codon_redefined_as_selenocysteine_id,
  12514. feature.*
  12515. FROM
  12516. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12517. WHERE cvterm.name = 'gene_with_stop_codon_redefined_as_selenocysteine';
  12518. --- ************************************************
  12519. --- *** relation: gene_with_mrna_recoded_by_translational_bypass ***
  12520. --- *** relation type: VIEW ***
  12521. --- *** ***
  12522. --- *** A gene with mRNA recoded by translationa ***
  12523. --- *** l bypass. ***
  12524. --- ************************************************
  12525. ---
  12526. CREATE VIEW gene_with_mrna_recoded_by_translational_bypass AS
  12527. SELECT
  12528. feature_id AS gene_with_mrna_recoded_by_translational_bypass_id,
  12529. feature.*
  12530. FROM
  12531. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12532. WHERE cvterm.name = 'gene_with_mRNA_recoded_by_translational_bypass';
  12533. --- ************************************************
  12534. --- *** relation: gene_with_transcript_with_translational_frameshift ***
  12535. --- *** relation type: VIEW ***
  12536. --- *** ***
  12537. --- *** A gene encoding a transcript that has a ***
  12538. --- *** translational frameshift. ***
  12539. --- ************************************************
  12540. ---
  12541. CREATE VIEW gene_with_transcript_with_translational_frameshift AS
  12542. SELECT
  12543. feature_id AS gene_with_transcript_with_translational_frameshift_id,
  12544. feature.*
  12545. FROM
  12546. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12547. WHERE cvterm.name = 'gene_with_transcript_with_translational_frameshift';
  12548. --- ************************************************
  12549. --- *** relation: dna_motif ***
  12550. --- *** relation type: VIEW ***
  12551. --- *** ***
  12552. --- *** A motif that is active in the DNA form o ***
  12553. --- *** f the sequence. ***
  12554. --- ************************************************
  12555. ---
  12556. CREATE VIEW dna_motif AS
  12557. SELECT
  12558. feature_id AS dna_motif_id,
  12559. feature.*
  12560. FROM
  12561. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12562. 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';
  12563. --- ************************************************
  12564. --- *** relation: nucleotide_motif ***
  12565. --- *** relation type: VIEW ***
  12566. --- *** ***
  12567. --- *** A region of nucleotide sequence correspo ***
  12568. --- *** nding to a known motif. ***
  12569. --- ************************************************
  12570. ---
  12571. CREATE VIEW nucleotide_motif AS
  12572. SELECT
  12573. feature_id AS nucleotide_motif_id,
  12574. feature.*
  12575. FROM
  12576. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12577. 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';
  12578. --- ************************************************
  12579. --- *** relation: rna_motif ***
  12580. --- *** relation type: VIEW ***
  12581. --- *** ***
  12582. --- *** A motif that is active in RNA sequence. ***
  12583. --- ************************************************
  12584. ---
  12585. CREATE VIEW rna_motif AS
  12586. SELECT
  12587. feature_id AS rna_motif_id,
  12588. feature.*
  12589. FROM
  12590. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12591. 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';
  12592. --- ************************************************
  12593. --- *** relation: dicistronic_mrna ***
  12594. --- *** relation type: VIEW ***
  12595. --- *** ***
  12596. --- *** An mRNA that has the quality dicistronic ***
  12597. --- *** . ***
  12598. --- ************************************************
  12599. ---
  12600. CREATE VIEW dicistronic_mrna AS
  12601. SELECT
  12602. feature_id AS dicistronic_mrna_id,
  12603. feature.*
  12604. FROM
  12605. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12606. WHERE cvterm.name = 'dicistronic_mRNA';
  12607. --- ************************************************
  12608. --- *** relation: reading_frame ***
  12609. --- *** relation type: VIEW ***
  12610. --- *** ***
  12611. --- *** A nucleic acid sequence that when read a ***
  12612. --- *** s sequential triplets, has the potential ***
  12613. --- *** of encoding a sequential string of amin ***
  12614. --- *** o acids. It need not contain the start o ***
  12615. --- *** r stop codon. ***
  12616. --- ************************************************
  12617. ---
  12618. CREATE VIEW reading_frame AS
  12619. SELECT
  12620. feature_id AS reading_frame_id,
  12621. feature.*
  12622. FROM
  12623. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12624. 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';
  12625. --- ************************************************
  12626. --- *** relation: blocked_reading_frame ***
  12627. --- *** relation type: VIEW ***
  12628. --- *** ***
  12629. --- *** A reading_frame that is interrupted by o ***
  12630. --- *** ne or more stop codons; usually identifi ***
  12631. --- *** ed through intergenomic sequence compari ***
  12632. --- *** sons. ***
  12633. --- ************************************************
  12634. ---
  12635. CREATE VIEW blocked_reading_frame AS
  12636. SELECT
  12637. feature_id AS blocked_reading_frame_id,
  12638. feature.*
  12639. FROM
  12640. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12641. WHERE cvterm.name = 'blocked_reading_frame';
  12642. --- ************************************************
  12643. --- *** relation: ultracontig ***
  12644. --- *** relation type: VIEW ***
  12645. --- *** ***
  12646. --- *** An ordered and oriented set of scaffolds ***
  12647. --- *** based on somewhat weaker sets of infere ***
  12648. --- *** ntial evidence such as one set of mate p ***
  12649. --- *** air reads together with supporting evide ***
  12650. --- *** nce from ESTs or location of markers fro ***
  12651. --- *** m SNP or microsatellite maps, or cytogen ***
  12652. --- *** etic localization of contained markers. ***
  12653. --- ************************************************
  12654. ---
  12655. CREATE VIEW ultracontig AS
  12656. SELECT
  12657. feature_id AS ultracontig_id,
  12658. feature.*
  12659. FROM
  12660. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12661. WHERE cvterm.name = 'ultracontig';
  12662. --- ************************************************
  12663. --- *** relation: foreign_transposable_element ***
  12664. --- *** relation type: VIEW ***
  12665. --- *** ***
  12666. --- *** A transposable element that is foreign. ***
  12667. --- ************************************************
  12668. ---
  12669. CREATE VIEW foreign_transposable_element AS
  12670. SELECT
  12671. feature_id AS foreign_transposable_element_id,
  12672. feature.*
  12673. FROM
  12674. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12675. WHERE cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'foreign_transposable_element';
  12676. --- ************************************************
  12677. --- *** relation: gene_with_dicistronic_primary_transcript ***
  12678. --- *** relation type: VIEW ***
  12679. --- *** ***
  12680. --- *** A gene that encodes a dicistronic primar ***
  12681. --- *** y transcript. ***
  12682. --- ************************************************
  12683. ---
  12684. CREATE VIEW gene_with_dicistronic_primary_transcript AS
  12685. SELECT
  12686. feature_id AS gene_with_dicistronic_primary_transcript_id,
  12687. feature.*
  12688. FROM
  12689. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12690. WHERE cvterm.name = 'gene_with_dicistronic_primary_transcript';
  12691. --- ************************************************
  12692. --- *** relation: gene_with_dicistronic_mrna ***
  12693. --- *** relation type: VIEW ***
  12694. --- *** ***
  12695. --- *** A gene that encodes a polycistronic mRNA ***
  12696. --- *** . ***
  12697. --- ************************************************
  12698. ---
  12699. CREATE VIEW gene_with_dicistronic_mrna AS
  12700. SELECT
  12701. feature_id AS gene_with_dicistronic_mrna_id,
  12702. feature.*
  12703. FROM
  12704. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12705. WHERE cvterm.name = 'gene_with_dicistronic_mRNA';
  12706. --- ************************************************
  12707. --- *** relation: idna ***
  12708. --- *** relation type: VIEW ***
  12709. --- *** ***
  12710. --- *** Genomic sequence removed from the genome ***
  12711. --- *** , as a normal event, by a process of rec ***
  12712. --- *** ombination. ***
  12713. --- ************************************************
  12714. ---
  12715. CREATE VIEW idna AS
  12716. SELECT
  12717. feature_id AS idna_id,
  12718. feature.*
  12719. FROM
  12720. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12721. WHERE cvterm.name = 'iDNA';
  12722. --- ************************************************
  12723. --- *** relation: orit ***
  12724. --- *** relation type: VIEW ***
  12725. --- *** ***
  12726. --- *** A region of a DNA molecule where transfe ***
  12727. --- *** r is initiated during the process of con ***
  12728. --- *** jugation or mobilization. ***
  12729. --- ************************************************
  12730. ---
  12731. CREATE VIEW orit AS
  12732. SELECT
  12733. feature_id AS orit_id,
  12734. feature.*
  12735. FROM
  12736. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12737. WHERE cvterm.name = 'oriT';
  12738. --- ************************************************
  12739. --- *** relation: transit_peptide ***
  12740. --- *** relation type: VIEW ***
  12741. --- *** ***
  12742. --- *** The transit_peptide is a short region at ***
  12743. --- *** the N-terminus of the peptide that dire ***
  12744. --- *** cts the protein to an organelle (chlorop ***
  12745. --- *** last, mitochondrion, microbody or cyanel ***
  12746. --- *** le). ***
  12747. --- ************************************************
  12748. ---
  12749. CREATE VIEW transit_peptide AS
  12750. SELECT
  12751. feature_id AS transit_peptide_id,
  12752. feature.*
  12753. FROM
  12754. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12755. WHERE cvterm.name = 'transit_peptide';
  12756. --- ************************************************
  12757. --- *** relation: repeat_unit ***
  12758. --- *** relation type: VIEW ***
  12759. --- *** ***
  12760. --- *** The simplest repeated component of a rep ***
  12761. --- *** eat region. A single repeat. ***
  12762. --- ************************************************
  12763. ---
  12764. CREATE VIEW repeat_unit AS
  12765. SELECT
  12766. feature_id AS repeat_unit_id,
  12767. feature.*
  12768. FROM
  12769. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12770. WHERE cvterm.name = 'repeat_unit';
  12771. --- ************************************************
  12772. --- *** relation: crm ***
  12773. --- *** relation type: VIEW ***
  12774. --- *** ***
  12775. --- *** A regulatory_region where more than 1 TF ***
  12776. --- *** _binding_site together are regulatorily ***
  12777. --- *** active. ***
  12778. --- ************************************************
  12779. ---
  12780. CREATE VIEW crm AS
  12781. SELECT
  12782. feature_id AS crm_id,
  12783. feature.*
  12784. FROM
  12785. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12786. 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';
  12787. --- ************************************************
  12788. --- *** relation: intein ***
  12789. --- *** relation type: VIEW ***
  12790. --- *** ***
  12791. --- *** A region of a peptide that is able to ex ***
  12792. --- *** cise itself and rejoin the remaining por ***
  12793. --- *** tions with a peptide bond. ***
  12794. --- ************************************************
  12795. ---
  12796. CREATE VIEW intein AS
  12797. SELECT
  12798. feature_id AS intein_id,
  12799. feature.*
  12800. FROM
  12801. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12802. WHERE cvterm.name = 'intein';
  12803. --- ************************************************
  12804. --- *** relation: intein_containing ***
  12805. --- *** relation type: VIEW ***
  12806. --- *** ***
  12807. --- *** An attribute of protein-coding genes whe ***
  12808. --- *** re the initial protein product contains ***
  12809. --- *** an intein. ***
  12810. --- ************************************************
  12811. ---
  12812. CREATE VIEW intein_containing AS
  12813. SELECT
  12814. feature_id AS intein_containing_id,
  12815. feature.*
  12816. FROM
  12817. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12818. WHERE cvterm.name = 'intein_containing';
  12819. --- ************************************************
  12820. --- *** relation: gap ***
  12821. --- *** relation type: VIEW ***
  12822. --- *** ***
  12823. --- *** A gap in the sequence of known length. T ***
  12824. --- *** he unknown bases are filled in with N's. ***
  12825. --- ************************************************
  12826. ---
  12827. CREATE VIEW gap AS
  12828. SELECT
  12829. feature_id AS gap_id,
  12830. feature.*
  12831. FROM
  12832. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12833. WHERE cvterm.name = 'gap';
  12834. --- ************************************************
  12835. --- *** relation: fragmentary ***
  12836. --- *** relation type: VIEW ***
  12837. --- *** ***
  12838. --- *** An attribute to describe a feature that ***
  12839. --- *** is incomplete. ***
  12840. --- ************************************************
  12841. ---
  12842. CREATE VIEW fragmentary AS
  12843. SELECT
  12844. feature_id AS fragmentary_id,
  12845. feature.*
  12846. FROM
  12847. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12848. WHERE cvterm.name = 'fragmentary';
  12849. --- ************************************************
  12850. --- *** relation: predicted ***
  12851. --- *** relation type: VIEW ***
  12852. --- *** ***
  12853. --- *** An attribute describing an unverified re ***
  12854. --- *** gion. ***
  12855. --- ************************************************
  12856. ---
  12857. CREATE VIEW predicted AS
  12858. SELECT
  12859. feature_id AS predicted_id,
  12860. feature.*
  12861. FROM
  12862. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12863. 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';
  12864. --- ************************************************
  12865. --- *** relation: feature_attribute ***
  12866. --- *** relation type: VIEW ***
  12867. --- *** ***
  12868. --- *** An attribute describing a located_sequen ***
  12869. --- *** ce_feature. ***
  12870. --- ************************************************
  12871. ---
  12872. CREATE VIEW feature_attribute AS
  12873. SELECT
  12874. feature_id AS feature_attribute_id,
  12875. feature.*
  12876. FROM
  12877. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12878. 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';
  12879. --- ************************************************
  12880. --- *** relation: exemplar_mrna ***
  12881. --- *** relation type: VIEW ***
  12882. --- *** ***
  12883. --- *** An exemplar is a representative cDNA seq ***
  12884. --- *** uence for each gene. The exemplar approa ***
  12885. --- *** ch is a method that usually involves som ***
  12886. --- *** e initial clustering into gene groups an ***
  12887. --- *** d the subsequent selection of a represen ***
  12888. --- *** tative from each gene group. ***
  12889. --- ************************************************
  12890. ---
  12891. CREATE VIEW exemplar_mrna AS
  12892. SELECT
  12893. feature_id AS exemplar_mrna_id,
  12894. feature.*
  12895. FROM
  12896. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12897. WHERE cvterm.name = 'exemplar_mRNA';
  12898. --- ************************************************
  12899. --- *** relation: sequence_location ***
  12900. --- *** relation type: VIEW ***
  12901. --- *** ***
  12902. --- ************************************************
  12903. ---
  12904. CREATE VIEW sequence_location AS
  12905. SELECT
  12906. feature_id AS sequence_location_id,
  12907. feature.*
  12908. FROM
  12909. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12910. 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';
  12911. --- ************************************************
  12912. --- *** relation: organelle_sequence ***
  12913. --- *** relation type: VIEW ***
  12914. --- *** ***
  12915. --- ************************************************
  12916. ---
  12917. CREATE VIEW organelle_sequence AS
  12918. SELECT
  12919. feature_id AS organelle_sequence_id,
  12920. feature.*
  12921. FROM
  12922. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12923. 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';
  12924. --- ************************************************
  12925. --- *** relation: mitochondrial_sequence ***
  12926. --- *** relation type: VIEW ***
  12927. --- *** ***
  12928. --- ************************************************
  12929. ---
  12930. CREATE VIEW mitochondrial_sequence AS
  12931. SELECT
  12932. feature_id AS mitochondrial_sequence_id,
  12933. feature.*
  12934. FROM
  12935. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12936. WHERE cvterm.name = 'mitochondrial_DNA' OR cvterm.name = 'mitochondrial_sequence';
  12937. --- ************************************************
  12938. --- *** relation: nuclear_sequence ***
  12939. --- *** relation type: VIEW ***
  12940. --- *** ***
  12941. --- ************************************************
  12942. ---
  12943. CREATE VIEW nuclear_sequence AS
  12944. SELECT
  12945. feature_id AS nuclear_sequence_id,
  12946. feature.*
  12947. FROM
  12948. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12949. WHERE cvterm.name = 'nuclear_sequence';
  12950. --- ************************************************
  12951. --- *** relation: nucleomorphic_sequence ***
  12952. --- *** relation type: VIEW ***
  12953. --- *** ***
  12954. --- ************************************************
  12955. ---
  12956. CREATE VIEW nucleomorphic_sequence AS
  12957. SELECT
  12958. feature_id AS nucleomorphic_sequence_id,
  12959. feature.*
  12960. FROM
  12961. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12962. WHERE cvterm.name = 'nucleomorphic_sequence';
  12963. --- ************************************************
  12964. --- *** relation: plastid_sequence ***
  12965. --- *** relation type: VIEW ***
  12966. --- *** ***
  12967. --- ************************************************
  12968. ---
  12969. CREATE VIEW plastid_sequence AS
  12970. SELECT
  12971. feature_id AS plastid_sequence_id,
  12972. feature.*
  12973. FROM
  12974. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12975. 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';
  12976. --- ************************************************
  12977. --- *** relation: kinetoplast ***
  12978. --- *** relation type: VIEW ***
  12979. --- *** ***
  12980. --- *** A kinetoplast is an interlocked network ***
  12981. --- *** of thousands of minicircles and tens of ***
  12982. --- *** maxi circles, located near the base of t ***
  12983. --- *** he flagellum of some protozoan species. ***
  12984. --- ************************************************
  12985. ---
  12986. CREATE VIEW kinetoplast AS
  12987. SELECT
  12988. feature_id AS kinetoplast_id,
  12989. feature.*
  12990. FROM
  12991. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12992. WHERE cvterm.name = 'kinetoplast';
  12993. --- ************************************************
  12994. --- *** relation: maxicircle ***
  12995. --- *** relation type: VIEW ***
  12996. --- *** ***
  12997. --- *** A maxicircle is a replicon, part of a ki ***
  12998. --- *** netoplast, that contains open reading fr ***
  12999. --- *** ames and replicates via a rolling circle ***
  13000. --- *** method. ***
  13001. --- ************************************************
  13002. ---
  13003. CREATE VIEW maxicircle AS
  13004. SELECT
  13005. feature_id AS maxicircle_id,
  13006. feature.*
  13007. FROM
  13008. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13009. WHERE cvterm.name = 'maxicircle';
  13010. --- ************************************************
  13011. --- *** relation: apicoplast_sequence ***
  13012. --- *** relation type: VIEW ***
  13013. --- *** ***
  13014. --- ************************************************
  13015. ---
  13016. CREATE VIEW apicoplast_sequence AS
  13017. SELECT
  13018. feature_id AS apicoplast_sequence_id,
  13019. feature.*
  13020. FROM
  13021. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13022. WHERE cvterm.name = 'apicoplast_sequence';
  13023. --- ************************************************
  13024. --- *** relation: chromoplast_sequence ***
  13025. --- *** relation type: VIEW ***
  13026. --- *** ***
  13027. --- ************************************************
  13028. ---
  13029. CREATE VIEW chromoplast_sequence AS
  13030. SELECT
  13031. feature_id AS chromoplast_sequence_id,
  13032. feature.*
  13033. FROM
  13034. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13035. WHERE cvterm.name = 'chromoplast_sequence';
  13036. --- ************************************************
  13037. --- *** relation: chloroplast_sequence ***
  13038. --- *** relation type: VIEW ***
  13039. --- *** ***
  13040. --- ************************************************
  13041. ---
  13042. CREATE VIEW chloroplast_sequence AS
  13043. SELECT
  13044. feature_id AS chloroplast_sequence_id,
  13045. feature.*
  13046. FROM
  13047. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13048. WHERE cvterm.name = 'chloroplast_DNA' OR cvterm.name = 'chloroplast_sequence';
  13049. --- ************************************************
  13050. --- *** relation: cyanelle_sequence ***
  13051. --- *** relation type: VIEW ***
  13052. --- *** ***
  13053. --- ************************************************
  13054. ---
  13055. CREATE VIEW cyanelle_sequence AS
  13056. SELECT
  13057. feature_id AS cyanelle_sequence_id,
  13058. feature.*
  13059. FROM
  13060. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13061. WHERE cvterm.name = 'cyanelle_sequence';
  13062. --- ************************************************
  13063. --- *** relation: leucoplast_sequence ***
  13064. --- *** relation type: VIEW ***
  13065. --- *** ***
  13066. --- ************************************************
  13067. ---
  13068. CREATE VIEW leucoplast_sequence AS
  13069. SELECT
  13070. feature_id AS leucoplast_sequence_id,
  13071. feature.*
  13072. FROM
  13073. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13074. WHERE cvterm.name = 'leucoplast_sequence';
  13075. --- ************************************************
  13076. --- *** relation: proplastid_sequence ***
  13077. --- *** relation type: VIEW ***
  13078. --- *** ***
  13079. --- ************************************************
  13080. ---
  13081. CREATE VIEW proplastid_sequence AS
  13082. SELECT
  13083. feature_id AS proplastid_sequence_id,
  13084. feature.*
  13085. FROM
  13086. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13087. WHERE cvterm.name = 'proplastid_sequence';
  13088. --- ************************************************
  13089. --- *** relation: plasmid_location ***
  13090. --- *** relation type: VIEW ***
  13091. --- *** ***
  13092. --- ************************************************
  13093. ---
  13094. CREATE VIEW plasmid_location AS
  13095. SELECT
  13096. feature_id AS plasmid_location_id,
  13097. feature.*
  13098. FROM
  13099. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13100. WHERE cvterm.name = 'plasmid_location';
  13101. --- ************************************************
  13102. --- *** relation: amplification_origin ***
  13103. --- *** relation type: VIEW ***
  13104. --- *** ***
  13105. --- *** An origin_of_replication that is used fo ***
  13106. --- *** r the amplification of a chromosomal nuc ***
  13107. --- *** leic acid sequence. ***
  13108. --- ************************************************
  13109. ---
  13110. CREATE VIEW amplification_origin AS
  13111. SELECT
  13112. feature_id AS amplification_origin_id,
  13113. feature.*
  13114. FROM
  13115. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13116. WHERE cvterm.name = 'amplification_origin';
  13117. --- ************************************************
  13118. --- *** relation: proviral_location ***
  13119. --- *** relation type: VIEW ***
  13120. --- *** ***
  13121. --- ************************************************
  13122. ---
  13123. CREATE VIEW proviral_location AS
  13124. SELECT
  13125. feature_id AS proviral_location_id,
  13126. feature.*
  13127. FROM
  13128. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13129. WHERE cvterm.name = 'endogenous_retroviral_sequence' OR cvterm.name = 'proviral_location';
  13130. --- ************************************************
  13131. --- *** relation: gene_group_regulatory_region ***
  13132. --- *** relation type: VIEW ***
  13133. --- *** ***
  13134. --- ************************************************
  13135. ---
  13136. CREATE VIEW gene_group_regulatory_region AS
  13137. SELECT
  13138. feature_id AS gene_group_regulatory_region_id,
  13139. feature.*
  13140. FROM
  13141. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13142. 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';
  13143. --- ************************************************
  13144. --- *** relation: clone_insert ***
  13145. --- *** relation type: VIEW ***
  13146. --- *** ***
  13147. --- *** The region of sequence that has been ins ***
  13148. --- *** erted and is being propagated by the clo ***
  13149. --- *** ne. ***
  13150. --- ************************************************
  13151. ---
  13152. CREATE VIEW clone_insert AS
  13153. SELECT
  13154. feature_id AS clone_insert_id,
  13155. feature.*
  13156. FROM
  13157. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13158. 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';
  13159. --- ************************************************
  13160. --- *** relation: lambda_vector ***
  13161. --- *** relation type: VIEW ***
  13162. --- *** ***
  13163. --- *** The lambda bacteriophage is the vector f ***
  13164. --- *** or the linear lambda clone. The genes in ***
  13165. --- *** volved in the lysogenic pathway are remo ***
  13166. --- *** ved from the from the viral DNA. Up to 2 ***
  13167. --- *** 5 kb of foreign DNA can then be inserted ***
  13168. --- *** into the lambda genome. ***
  13169. --- ************************************************
  13170. ---
  13171. CREATE VIEW lambda_vector AS
  13172. SELECT
  13173. feature_id AS lambda_vector_id,
  13174. feature.*
  13175. FROM
  13176. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13177. WHERE cvterm.name = 'lambda_vector';
  13178. --- ************************************************
  13179. --- *** relation: plasmid_vector ***
  13180. --- *** relation type: VIEW ***
  13181. --- *** ***
  13182. --- ************************************************
  13183. ---
  13184. CREATE VIEW plasmid_vector AS
  13185. SELECT
  13186. feature_id AS plasmid_vector_id,
  13187. feature.*
  13188. FROM
  13189. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13190. WHERE cvterm.name = 'plasmid_vector';
  13191. --- ************************************************
  13192. --- *** relation: cdna ***
  13193. --- *** relation type: VIEW ***
  13194. --- *** ***
  13195. --- *** DNA synthesized by reverse transcriptase ***
  13196. --- *** using RNA as a template. ***
  13197. --- ************************************************
  13198. ---
  13199. CREATE VIEW cdna AS
  13200. SELECT
  13201. feature_id AS cdna_id,
  13202. feature.*
  13203. FROM
  13204. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13205. WHERE cvterm.name = 'single_stranded_cDNA' OR cvterm.name = 'double_stranded_cDNA' OR cvterm.name = 'cDNA';
  13206. --- ************************************************
  13207. --- *** relation: single_stranded_cdna ***
  13208. --- *** relation type: VIEW ***
  13209. --- *** ***
  13210. --- ************************************************
  13211. ---
  13212. CREATE VIEW single_stranded_cdna AS
  13213. SELECT
  13214. feature_id AS single_stranded_cdna_id,
  13215. feature.*
  13216. FROM
  13217. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13218. WHERE cvterm.name = 'single_stranded_cDNA';
  13219. --- ************************************************
  13220. --- *** relation: double_stranded_cdna ***
  13221. --- *** relation type: VIEW ***
  13222. --- *** ***
  13223. --- ************************************************
  13224. ---
  13225. CREATE VIEW double_stranded_cdna AS
  13226. SELECT
  13227. feature_id AS double_stranded_cdna_id,
  13228. feature.*
  13229. FROM
  13230. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13231. WHERE cvterm.name = 'double_stranded_cDNA';
  13232. --- ************************************************
  13233. --- *** relation: pyrrolysyl_trna ***
  13234. --- *** relation type: VIEW ***
  13235. --- *** ***
  13236. --- *** A tRNA sequence that has a pyrrolysine a ***
  13237. --- *** nticodon, and a 3' pyrrolysine binding r ***
  13238. --- *** egion. ***
  13239. --- ************************************************
  13240. ---
  13241. CREATE VIEW pyrrolysyl_trna AS
  13242. SELECT
  13243. feature_id AS pyrrolysyl_trna_id,
  13244. feature.*
  13245. FROM
  13246. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13247. WHERE cvterm.name = 'pyrrolysyl_tRNA';
  13248. --- ************************************************
  13249. --- *** relation: episome ***
  13250. --- *** relation type: VIEW ***
  13251. --- *** ***
  13252. --- *** A plasmid that may integrate with a chro ***
  13253. --- *** mosome. ***
  13254. --- ************************************************
  13255. ---
  13256. CREATE VIEW episome AS
  13257. SELECT
  13258. feature_id AS episome_id,
  13259. feature.*
  13260. FROM
  13261. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13262. WHERE cvterm.name = 'engineered_episome' OR cvterm.name = 'episome';
  13263. --- ************************************************
  13264. --- *** relation: tmrna_coding_piece ***
  13265. --- *** relation type: VIEW ***
  13266. --- *** ***
  13267. --- *** The region of a two-piece tmRNA that bea ***
  13268. --- *** rs the reading frame encoding the proteo ***
  13269. --- *** lysis tag. The tmRNA gene undergoes circ ***
  13270. --- *** ular permutation in some groups of bacte ***
  13271. --- *** ria. Processing of the transcripts from ***
  13272. --- *** such a gene leaves the mature tmRNA in t ***
  13273. --- *** wo pieces, base-paired together. ***
  13274. --- ************************************************
  13275. ---
  13276. CREATE VIEW tmrna_coding_piece AS
  13277. SELECT
  13278. feature_id AS tmrna_coding_piece_id,
  13279. feature.*
  13280. FROM
  13281. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13282. WHERE cvterm.name = 'tmRNA_coding_piece';
  13283. --- ************************************************
  13284. --- *** relation: tmrna_acceptor_piece ***
  13285. --- *** relation type: VIEW ***
  13286. --- *** ***
  13287. --- *** The acceptor region of a two-piece tmRNA ***
  13288. --- *** that when mature is charged at its 3' e ***
  13289. --- *** nd with alanine. The tmRNA gene undergoe ***
  13290. --- *** s circular permutation in some groups of ***
  13291. --- *** bacteria; processing of the transcripts ***
  13292. --- *** from such a gene leaves the mature tmRN ***
  13293. --- *** A in two pieces, base-paired together. ***
  13294. --- ************************************************
  13295. ---
  13296. CREATE VIEW tmrna_acceptor_piece AS
  13297. SELECT
  13298. feature_id AS tmrna_acceptor_piece_id,
  13299. feature.*
  13300. FROM
  13301. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13302. WHERE cvterm.name = 'tmRNA_acceptor_piece';
  13303. --- ************************************************
  13304. --- *** relation: qtl ***
  13305. --- *** relation type: VIEW ***
  13306. --- *** ***
  13307. --- *** A quantitative trait locus (QTL) is a po ***
  13308. --- *** lymorphic locus which contains alleles t ***
  13309. --- *** hat differentially affect the expression ***
  13310. --- *** of a continuously distributed phenotypi ***
  13311. --- *** c trait. Usually it is a marker describe ***
  13312. --- *** d by statistical association to quantita ***
  13313. --- *** tive variation in the particular phenoty ***
  13314. --- *** pic trait that is thought to be controll ***
  13315. --- *** ed by the cumulative action of alleles a ***
  13316. --- *** t multiple loci. ***
  13317. --- ************************************************
  13318. ---
  13319. CREATE VIEW qtl AS
  13320. SELECT
  13321. feature_id AS qtl_id,
  13322. feature.*
  13323. FROM
  13324. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13325. WHERE cvterm.name = 'QTL';
  13326. --- ************************************************
  13327. --- *** relation: genomic_island ***
  13328. --- *** relation type: VIEW ***
  13329. --- *** ***
  13330. --- *** A genomic island is an integrated mobile ***
  13331. --- *** genetic element, characterized by size ***
  13332. --- *** (over 10 Kb). It that has features that ***
  13333. --- *** suggest a foreign origin. These can incl ***
  13334. --- *** ude nucleotide distribution (oligonucleo ***
  13335. --- *** tides signature, CG content etc.) that d ***
  13336. --- *** iffers from the bulk of the chromosome a ***
  13337. --- *** nd/or genes suggesting DNA mobility. ***
  13338. --- ************************************************
  13339. ---
  13340. CREATE VIEW genomic_island AS
  13341. SELECT
  13342. feature_id AS genomic_island_id,
  13343. feature.*
  13344. FROM
  13345. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13346. 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';
  13347. --- ************************************************
  13348. --- *** relation: pathogenic_island ***
  13349. --- *** relation type: VIEW ***
  13350. --- *** ***
  13351. --- *** Mobile genetic elements that contribute ***
  13352. --- *** to rapid changes in virulence potential. ***
  13353. --- *** They are present on the genomes of path ***
  13354. --- *** ogenic strains but absent from the genom ***
  13355. --- *** es of non pathogenic members of the same ***
  13356. --- *** or related species. ***
  13357. --- ************************************************
  13358. ---
  13359. CREATE VIEW pathogenic_island AS
  13360. SELECT
  13361. feature_id AS pathogenic_island_id,
  13362. feature.*
  13363. FROM
  13364. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13365. WHERE cvterm.name = 'pathogenic_island';
  13366. --- ************************************************
  13367. --- *** relation: metabolic_island ***
  13368. --- *** relation type: VIEW ***
  13369. --- *** ***
  13370. --- *** A transmissible element containing genes ***
  13371. --- *** involved in metabolism, analogous to th ***
  13372. --- *** e pathogenicity islands of gram negative ***
  13373. --- *** bacteria. ***
  13374. --- ************************************************
  13375. ---
  13376. CREATE VIEW metabolic_island AS
  13377. SELECT
  13378. feature_id AS metabolic_island_id,
  13379. feature.*
  13380. FROM
  13381. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13382. WHERE cvterm.name = 'metabolic_island';
  13383. --- ************************************************
  13384. --- *** relation: adaptive_island ***
  13385. --- *** relation type: VIEW ***
  13386. --- *** ***
  13387. --- *** An adaptive island is a genomic island t ***
  13388. --- *** hat provides an adaptive advantage to th ***
  13389. --- *** e host. ***
  13390. --- ************************************************
  13391. ---
  13392. CREATE VIEW adaptive_island AS
  13393. SELECT
  13394. feature_id AS adaptive_island_id,
  13395. feature.*
  13396. FROM
  13397. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13398. WHERE cvterm.name = 'adaptive_island';
  13399. --- ************************************************
  13400. --- *** relation: symbiosis_island ***
  13401. --- *** relation type: VIEW ***
  13402. --- *** ***
  13403. --- *** A transmissible element containing genes ***
  13404. --- *** involved in symbiosis, analogous to the ***
  13405. --- *** pathogenicity islands of gram negative ***
  13406. --- *** bacteria. ***
  13407. --- ************************************************
  13408. ---
  13409. CREATE VIEW symbiosis_island AS
  13410. SELECT
  13411. feature_id AS symbiosis_island_id,
  13412. feature.*
  13413. FROM
  13414. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13415. WHERE cvterm.name = 'symbiosis_island';
  13416. --- ************************************************
  13417. --- *** relation: pseudogenic_rrna ***
  13418. --- *** relation type: VIEW ***
  13419. --- *** ***
  13420. --- *** A non functional descendent of an rRNA. ***
  13421. --- ************************************************
  13422. ---
  13423. CREATE VIEW pseudogenic_rrna AS
  13424. SELECT
  13425. feature_id AS pseudogenic_rrna_id,
  13426. feature.*
  13427. FROM
  13428. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13429. WHERE cvterm.name = 'pseudogenic_rRNA';
  13430. --- ************************************************
  13431. --- *** relation: pseudogenic_trna ***
  13432. --- *** relation type: VIEW ***
  13433. --- *** ***
  13434. --- *** A non functional descendent of a tRNA. ***
  13435. --- ************************************************
  13436. ---
  13437. CREATE VIEW pseudogenic_trna AS
  13438. SELECT
  13439. feature_id AS pseudogenic_trna_id,
  13440. feature.*
  13441. FROM
  13442. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13443. WHERE cvterm.name = 'pseudogenic_tRNA';
  13444. --- ************************************************
  13445. --- *** relation: engineered_episome ***
  13446. --- *** relation type: VIEW ***
  13447. --- *** ***
  13448. --- *** An episome that is engineered. ***
  13449. --- ************************************************
  13450. ---
  13451. CREATE VIEW engineered_episome AS
  13452. SELECT
  13453. feature_id AS engineered_episome_id,
  13454. feature.*
  13455. FROM
  13456. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13457. WHERE cvterm.name = 'engineered_episome';
  13458. --- ************************************************
  13459. --- *** relation: transgenic ***
  13460. --- *** relation type: VIEW ***
  13461. --- *** ***
  13462. --- *** Attribute describing sequence that has b ***
  13463. --- *** een integrated with foreign sequence. ***
  13464. --- ************************************************
  13465. ---
  13466. CREATE VIEW transgenic AS
  13467. SELECT
  13468. feature_id AS transgenic_id,
  13469. feature.*
  13470. FROM
  13471. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13472. WHERE cvterm.name = 'transgenic';
  13473. --- ************************************************
  13474. --- *** relation: so_natural ***
  13475. --- *** relation type: VIEW ***
  13476. --- *** ***
  13477. --- *** An attribute describing a feature that o ***
  13478. --- *** ccurs in nature. ***
  13479. --- ************************************************
  13480. ---
  13481. CREATE VIEW so_natural AS
  13482. SELECT
  13483. feature_id AS so_natural_id,
  13484. feature.*
  13485. FROM
  13486. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13487. WHERE cvterm.name = 'natural';
  13488. --- ************************************************
  13489. --- *** relation: engineered ***
  13490. --- *** relation type: VIEW ***
  13491. --- *** ***
  13492. --- *** An attribute to describe a region that w ***
  13493. --- *** as modified in vitro. ***
  13494. --- ************************************************
  13495. ---
  13496. CREATE VIEW engineered AS
  13497. SELECT
  13498. feature_id AS engineered_id,
  13499. feature.*
  13500. FROM
  13501. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13502. WHERE cvterm.name = 'engineered';
  13503. --- ************************************************
  13504. --- *** relation: so_foreign ***
  13505. --- *** relation type: VIEW ***
  13506. --- *** ***
  13507. --- *** An attribute to describe a region from a ***
  13508. --- *** nother species. ***
  13509. --- ************************************************
  13510. ---
  13511. CREATE VIEW so_foreign AS
  13512. SELECT
  13513. feature_id AS so_foreign_id,
  13514. feature.*
  13515. FROM
  13516. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13517. WHERE cvterm.name = 'foreign';
  13518. --- ************************************************
  13519. --- *** relation: cloned_region ***
  13520. --- *** relation type: VIEW ***
  13521. --- *** ***
  13522. --- ************************************************
  13523. ---
  13524. CREATE VIEW cloned_region AS
  13525. SELECT
  13526. feature_id AS cloned_region_id,
  13527. feature.*
  13528. FROM
  13529. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13530. WHERE cvterm.name = 'cloned_region';
  13531. --- ************************************************
  13532. --- *** relation: validated ***
  13533. --- *** relation type: VIEW ***
  13534. --- *** ***
  13535. --- *** An attribute to describe a feature that ***
  13536. --- *** has been proven. ***
  13537. --- ************************************************
  13538. ---
  13539. CREATE VIEW validated AS
  13540. SELECT
  13541. feature_id AS validated_id,
  13542. feature.*
  13543. FROM
  13544. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13545. WHERE cvterm.name = 'experimentally_determined' OR cvterm.name = 'validated';
  13546. --- ************************************************
  13547. --- *** relation: invalidated ***
  13548. --- *** relation type: VIEW ***
  13549. --- *** ***
  13550. --- *** An attribute describing a feature that i ***
  13551. --- *** s invalidated. ***
  13552. --- ************************************************
  13553. ---
  13554. CREATE VIEW invalidated AS
  13555. SELECT
  13556. feature_id AS invalidated_id,
  13557. feature.*
  13558. FROM
  13559. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13560. 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';
  13561. --- ************************************************
  13562. --- *** relation: engineered_rescue_region ***
  13563. --- *** relation type: VIEW ***
  13564. --- *** ***
  13565. --- *** A rescue region that is engineered. ***
  13566. --- ************************************************
  13567. ---
  13568. CREATE VIEW engineered_rescue_region AS
  13569. SELECT
  13570. feature_id AS engineered_rescue_region_id,
  13571. feature.*
  13572. FROM
  13573. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13574. WHERE cvterm.name = 'engineered_rescue_region';
  13575. --- ************************************************
  13576. --- *** relation: rescue_mini_gene ***
  13577. --- *** relation type: VIEW ***
  13578. --- *** ***
  13579. --- *** A mini_gene that rescues. ***
  13580. --- ************************************************
  13581. ---
  13582. CREATE VIEW rescue_mini_gene AS
  13583. SELECT
  13584. feature_id AS rescue_mini_gene_id,
  13585. feature.*
  13586. FROM
  13587. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13588. WHERE cvterm.name = 'rescue_mini_gene';
  13589. --- ************************************************
  13590. --- *** relation: transgenic_transposable_element ***
  13591. --- *** relation type: VIEW ***
  13592. --- *** ***
  13593. --- *** TE that has been modified in vitro, incl ***
  13594. --- *** uding insertion of DNA derived from a so ***
  13595. --- *** urce other than the originating TE. ***
  13596. --- ************************************************
  13597. ---
  13598. CREATE VIEW transgenic_transposable_element AS
  13599. SELECT
  13600. feature_id AS transgenic_transposable_element_id,
  13601. feature.*
  13602. FROM
  13603. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13604. WHERE cvterm.name = 'transgenic_transposable_element';
  13605. --- ************************************************
  13606. --- *** relation: natural_transposable_element ***
  13607. --- *** relation type: VIEW ***
  13608. --- *** ***
  13609. --- *** TE that exists (or existed) in nature. ***
  13610. --- ************************************************
  13611. ---
  13612. CREATE VIEW natural_transposable_element AS
  13613. SELECT
  13614. feature_id AS natural_transposable_element_id,
  13615. feature.*
  13616. FROM
  13617. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13618. WHERE cvterm.name = 'natural_transposable_element';
  13619. --- ************************************************
  13620. --- *** relation: engineered_transposable_element ***
  13621. --- *** relation type: VIEW ***
  13622. --- *** ***
  13623. --- *** TE that has been modified by manipulatio ***
  13624. --- *** ns in vitro. ***
  13625. --- ************************************************
  13626. ---
  13627. CREATE VIEW engineered_transposable_element AS
  13628. SELECT
  13629. feature_id AS engineered_transposable_element_id,
  13630. feature.*
  13631. FROM
  13632. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13633. WHERE cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_transposable_element';
  13634. --- ************************************************
  13635. --- *** relation: engineered_foreign_transposable_element ***
  13636. --- *** relation type: VIEW ***
  13637. --- *** ***
  13638. --- *** A transposable_element that is engineere ***
  13639. --- *** d and foreign. ***
  13640. --- ************************************************
  13641. ---
  13642. CREATE VIEW engineered_foreign_transposable_element AS
  13643. SELECT
  13644. feature_id AS engineered_foreign_transposable_element_id,
  13645. feature.*
  13646. FROM
  13647. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13648. WHERE cvterm.name = 'engineered_foreign_transposable_element';
  13649. --- ************************************************
  13650. --- *** relation: assortment_derived_duplication ***
  13651. --- *** relation type: VIEW ***
  13652. --- *** ***
  13653. --- *** A multi-chromosome duplication aberratio ***
  13654. --- *** n generated by reassortment of other abe ***
  13655. --- *** rration components. ***
  13656. --- ************************************************
  13657. ---
  13658. CREATE VIEW assortment_derived_duplication AS
  13659. SELECT
  13660. feature_id AS assortment_derived_duplication_id,
  13661. feature.*
  13662. FROM
  13663. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13664. WHERE cvterm.name = 'assortment_derived_duplication';
  13665. --- ************************************************
  13666. --- *** relation: assortment_derived_deficiency_plus_duplication ***
  13667. --- *** relation type: VIEW ***
  13668. --- *** ***
  13669. --- *** A multi-chromosome aberration generated ***
  13670. --- *** by reassortment of other aberration comp ***
  13671. --- *** onents; presumed to have a deficiency an ***
  13672. --- *** d a duplication. ***
  13673. --- ************************************************
  13674. ---
  13675. CREATE VIEW assortment_derived_deficiency_plus_duplication AS
  13676. SELECT
  13677. feature_id AS assortment_derived_deficiency_plus_duplication_id,
  13678. feature.*
  13679. FROM
  13680. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13681. WHERE cvterm.name = 'assortment_derived_deficiency_plus_duplication';
  13682. --- ************************************************
  13683. --- *** relation: assortment_derived_deficiency ***
  13684. --- *** relation type: VIEW ***
  13685. --- *** ***
  13686. --- *** A multi-chromosome deficiency aberration ***
  13687. --- *** generated by reassortment of other aber ***
  13688. --- *** ration components. ***
  13689. --- ************************************************
  13690. ---
  13691. CREATE VIEW assortment_derived_deficiency AS
  13692. SELECT
  13693. feature_id AS assortment_derived_deficiency_id,
  13694. feature.*
  13695. FROM
  13696. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13697. WHERE cvterm.name = 'assortment_derived_deficiency';
  13698. --- ************************************************
  13699. --- *** relation: assortment_derived_aneuploid ***
  13700. --- *** relation type: VIEW ***
  13701. --- *** ***
  13702. --- *** A multi-chromosome aberration generated ***
  13703. --- *** by reassortment of other aberration comp ***
  13704. --- *** onents; presumed to have a deficiency or ***
  13705. --- *** a duplication. ***
  13706. --- ************************************************
  13707. ---
  13708. CREATE VIEW assortment_derived_aneuploid AS
  13709. SELECT
  13710. feature_id AS assortment_derived_aneuploid_id,
  13711. feature.*
  13712. FROM
  13713. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13714. WHERE cvterm.name = 'assortment_derived_aneuploid';
  13715. --- ************************************************
  13716. --- *** relation: engineered_region ***
  13717. --- *** relation type: VIEW ***
  13718. --- *** ***
  13719. --- *** A region that is engineered. ***
  13720. --- ************************************************
  13721. ---
  13722. CREATE VIEW engineered_region AS
  13723. SELECT
  13724. feature_id AS engineered_region_id,
  13725. feature.*
  13726. FROM
  13727. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13728. 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';
  13729. --- ************************************************
  13730. --- *** relation: engineered_foreign_region ***
  13731. --- *** relation type: VIEW ***
  13732. --- *** ***
  13733. --- *** A region that is engineered and foreign. ***
  13734. --- ************************************************
  13735. ---
  13736. CREATE VIEW engineered_foreign_region AS
  13737. SELECT
  13738. feature_id AS engineered_foreign_region_id,
  13739. feature.*
  13740. FROM
  13741. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13742. 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';
  13743. --- ************************************************
  13744. --- *** relation: fusion ***
  13745. --- *** relation type: VIEW ***
  13746. --- *** ***
  13747. --- ************************************************
  13748. ---
  13749. CREATE VIEW fusion AS
  13750. SELECT
  13751. feature_id AS fusion_id,
  13752. feature.*
  13753. FROM
  13754. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13755. WHERE cvterm.name = 'fusion';
  13756. --- ************************************************
  13757. --- *** relation: engineered_tag ***
  13758. --- *** relation type: VIEW ***
  13759. --- *** ***
  13760. --- *** A tag that is engineered. ***
  13761. --- ************************************************
  13762. ---
  13763. CREATE VIEW engineered_tag AS
  13764. SELECT
  13765. feature_id AS engineered_tag_id,
  13766. feature.*
  13767. FROM
  13768. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13769. WHERE cvterm.name = 'engineered_tag';
  13770. --- ************************************************
  13771. --- *** relation: validated_cdna_clone ***
  13772. --- *** relation type: VIEW ***
  13773. --- *** ***
  13774. --- *** A cDNA clone that has been validated. ***
  13775. --- ************************************************
  13776. ---
  13777. CREATE VIEW validated_cdna_clone AS
  13778. SELECT
  13779. feature_id AS validated_cdna_clone_id,
  13780. feature.*
  13781. FROM
  13782. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13783. WHERE cvterm.name = 'validated_cDNA_clone';
  13784. --- ************************************************
  13785. --- *** relation: invalidated_cdna_clone ***
  13786. --- *** relation type: VIEW ***
  13787. --- *** ***
  13788. --- *** A cDNA clone that is invalid. ***
  13789. --- ************************************************
  13790. ---
  13791. CREATE VIEW invalidated_cdna_clone AS
  13792. SELECT
  13793. feature_id AS invalidated_cdna_clone_id,
  13794. feature.*
  13795. FROM
  13796. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13797. 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';
  13798. --- ************************************************
  13799. --- *** relation: chimeric_cdna_clone ***
  13800. --- *** relation type: VIEW ***
  13801. --- *** ***
  13802. --- *** A cDNA clone invalidated because it is c ***
  13803. --- *** himeric. ***
  13804. --- ************************************************
  13805. ---
  13806. CREATE VIEW chimeric_cdna_clone AS
  13807. SELECT
  13808. feature_id AS chimeric_cdna_clone_id,
  13809. feature.*
  13810. FROM
  13811. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13812. WHERE cvterm.name = 'chimeric_cDNA_clone';
  13813. --- ************************************************
  13814. --- *** relation: genomically_contaminated_cdna_clone ***
  13815. --- *** relation type: VIEW ***
  13816. --- *** ***
  13817. --- *** A cDNA clone invalidated by genomic cont ***
  13818. --- *** amination. ***
  13819. --- ************************************************
  13820. ---
  13821. CREATE VIEW genomically_contaminated_cdna_clone AS
  13822. SELECT
  13823. feature_id AS genomically_contaminated_cdna_clone_id,
  13824. feature.*
  13825. FROM
  13826. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13827. WHERE cvterm.name = 'genomically_contaminated_cDNA_clone';
  13828. --- ************************************************
  13829. --- *** relation: polya_primed_cdna_clone ***
  13830. --- *** relation type: VIEW ***
  13831. --- *** ***
  13832. --- *** A cDNA clone invalidated by polyA primin ***
  13833. --- *** g. ***
  13834. --- ************************************************
  13835. ---
  13836. CREATE VIEW polya_primed_cdna_clone AS
  13837. SELECT
  13838. feature_id AS polya_primed_cdna_clone_id,
  13839. feature.*
  13840. FROM
  13841. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13842. WHERE cvterm.name = 'polyA_primed_cDNA_clone';
  13843. --- ************************************************
  13844. --- *** relation: partially_processed_cdna_clone ***
  13845. --- *** relation type: VIEW ***
  13846. --- *** ***
  13847. --- *** A cDNA invalidated clone by partial proc ***
  13848. --- *** essing. ***
  13849. --- ************************************************
  13850. ---
  13851. CREATE VIEW partially_processed_cdna_clone AS
  13852. SELECT
  13853. feature_id AS partially_processed_cdna_clone_id,
  13854. feature.*
  13855. FROM
  13856. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13857. WHERE cvterm.name = 'partially_processed_cDNA_clone';
  13858. --- ************************************************
  13859. --- *** relation: rescue ***
  13860. --- *** relation type: VIEW ***
  13861. --- *** ***
  13862. --- *** An attribute describing a region's abili ***
  13863. --- *** ty, when introduced to a mutant organism ***
  13864. --- *** , to re-establish (rescue) a phenotype. ***
  13865. --- ************************************************
  13866. ---
  13867. CREATE VIEW rescue AS
  13868. SELECT
  13869. feature_id AS rescue_id,
  13870. feature.*
  13871. FROM
  13872. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13873. WHERE cvterm.name = 'rescue';
  13874. --- ************************************************
  13875. --- *** relation: mini_gene ***
  13876. --- *** relation type: VIEW ***
  13877. --- *** ***
  13878. --- *** By definition, minigenes are short open- ***
  13879. --- *** reading frames (ORF), usually encoding a ***
  13880. --- *** pproximately 9 to 20 amino acids, which ***
  13881. --- *** are expressed in vivo (as distinct from ***
  13882. --- *** being synthesized as peptide or protein ***
  13883. --- *** ex vivo and subsequently injected). The ***
  13884. --- *** in vivo synthesis confers a distinct adv ***
  13885. --- *** antage: the expressed sequences can ente ***
  13886. --- *** r both antigen presentation pathways, MH ***
  13887. --- *** C I (inducing CD8+ T- cells, which are u ***
  13888. --- *** sually cytotoxic T-lymphocytes (CTL)) an ***
  13889. --- *** d MHC II (inducing CD4+ T-cells, usually ***
  13890. --- *** 'T-helpers' (Th)); and can encounter B- ***
  13891. --- *** cells, inducing antibody responses. Thre ***
  13892. --- *** e main vector approaches have been used ***
  13893. --- *** to deliver minigenes: viral vectors, bac ***
  13894. --- *** terial vectors and plasmid DNA. ***
  13895. --- ************************************************
  13896. ---
  13897. CREATE VIEW mini_gene AS
  13898. SELECT
  13899. feature_id AS mini_gene_id,
  13900. feature.*
  13901. FROM
  13902. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13903. WHERE cvterm.name = 'rescue_mini_gene' OR cvterm.name = 'mini_gene';
  13904. --- ************************************************
  13905. --- *** relation: rescue_gene ***
  13906. --- *** relation type: VIEW ***
  13907. --- *** ***
  13908. --- *** A gene that rescues. ***
  13909. --- ************************************************
  13910. ---
  13911. CREATE VIEW rescue_gene AS
  13912. SELECT
  13913. feature_id AS rescue_gene_id,
  13914. feature.*
  13915. FROM
  13916. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13917. WHERE cvterm.name = 'wild_type_rescue_gene' OR cvterm.name = 'rescue_gene';
  13918. --- ************************************************
  13919. --- *** relation: wild_type ***
  13920. --- *** relation type: VIEW ***
  13921. --- *** ***
  13922. --- *** An attribute describing sequence with th ***
  13923. --- *** e genotype found in nature and/or standa ***
  13924. --- *** rd laboratory stock. ***
  13925. --- ************************************************
  13926. ---
  13927. CREATE VIEW wild_type AS
  13928. SELECT
  13929. feature_id AS wild_type_id,
  13930. feature.*
  13931. FROM
  13932. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13933. WHERE cvterm.name = 'wild_type';
  13934. --- ************************************************
  13935. --- *** relation: wild_type_rescue_gene ***
  13936. --- *** relation type: VIEW ***
  13937. --- *** ***
  13938. --- *** A gene that rescues. ***
  13939. --- ************************************************
  13940. ---
  13941. CREATE VIEW wild_type_rescue_gene AS
  13942. SELECT
  13943. feature_id AS wild_type_rescue_gene_id,
  13944. feature.*
  13945. FROM
  13946. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13947. WHERE cvterm.name = 'wild_type_rescue_gene';
  13948. --- ************************************************
  13949. --- *** relation: mitochondrial_chromosome ***
  13950. --- *** relation type: VIEW ***
  13951. --- *** ***
  13952. --- *** A chromosome originating in a mitochondr ***
  13953. --- *** ia. ***
  13954. --- ************************************************
  13955. ---
  13956. CREATE VIEW mitochondrial_chromosome AS
  13957. SELECT
  13958. feature_id AS mitochondrial_chromosome_id,
  13959. feature.*
  13960. FROM
  13961. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13962. WHERE cvterm.name = 'mitochondrial_chromosome';
  13963. --- ************************************************
  13964. --- *** relation: chloroplast_chromosome ***
  13965. --- *** relation type: VIEW ***
  13966. --- *** ***
  13967. --- *** A chromosome originating in a chloroplas ***
  13968. --- *** t. ***
  13969. --- ************************************************
  13970. ---
  13971. CREATE VIEW chloroplast_chromosome AS
  13972. SELECT
  13973. feature_id AS chloroplast_chromosome_id,
  13974. feature.*
  13975. FROM
  13976. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13977. WHERE cvterm.name = 'chloroplast_chromosome';
  13978. --- ************************************************
  13979. --- *** relation: chromoplast_chromosome ***
  13980. --- *** relation type: VIEW ***
  13981. --- *** ***
  13982. --- *** A chromosome originating in a chromoplas ***
  13983. --- *** t. ***
  13984. --- ************************************************
  13985. ---
  13986. CREATE VIEW chromoplast_chromosome AS
  13987. SELECT
  13988. feature_id AS chromoplast_chromosome_id,
  13989. feature.*
  13990. FROM
  13991. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13992. WHERE cvterm.name = 'chromoplast_chromosome';
  13993. --- ************************************************
  13994. --- *** relation: cyanelle_chromosome ***
  13995. --- *** relation type: VIEW ***
  13996. --- *** ***
  13997. --- *** A chromosome originating in a cyanelle. ***
  13998. --- ************************************************
  13999. ---
  14000. CREATE VIEW cyanelle_chromosome AS
  14001. SELECT
  14002. feature_id AS cyanelle_chromosome_id,
  14003. feature.*
  14004. FROM
  14005. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14006. WHERE cvterm.name = 'cyanelle_chromosome';
  14007. --- ************************************************
  14008. --- *** relation: leucoplast_chromosome ***
  14009. --- *** relation type: VIEW ***
  14010. --- *** ***
  14011. --- *** A chromosome with origin in a leucoplast ***
  14012. --- *** . ***
  14013. --- ************************************************
  14014. ---
  14015. CREATE VIEW leucoplast_chromosome AS
  14016. SELECT
  14017. feature_id AS leucoplast_chromosome_id,
  14018. feature.*
  14019. FROM
  14020. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14021. WHERE cvterm.name = 'leucoplast_chromosome';
  14022. --- ************************************************
  14023. --- *** relation: macronuclear_chromosome ***
  14024. --- *** relation type: VIEW ***
  14025. --- *** ***
  14026. --- *** A chromosome originating in a macronucle ***
  14027. --- *** us. ***
  14028. --- ************************************************
  14029. ---
  14030. CREATE VIEW macronuclear_chromosome AS
  14031. SELECT
  14032. feature_id AS macronuclear_chromosome_id,
  14033. feature.*
  14034. FROM
  14035. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14036. WHERE cvterm.name = 'macronuclear_chromosome';
  14037. --- ************************************************
  14038. --- *** relation: micronuclear_chromosome ***
  14039. --- *** relation type: VIEW ***
  14040. --- *** ***
  14041. --- *** A chromosome originating in a micronucle ***
  14042. --- *** us. ***
  14043. --- ************************************************
  14044. ---
  14045. CREATE VIEW micronuclear_chromosome AS
  14046. SELECT
  14047. feature_id AS micronuclear_chromosome_id,
  14048. feature.*
  14049. FROM
  14050. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14051. WHERE cvterm.name = 'micronuclear_chromosome';
  14052. --- ************************************************
  14053. --- *** relation: nuclear_chromosome ***
  14054. --- *** relation type: VIEW ***
  14055. --- *** ***
  14056. --- *** A chromosome originating in a nucleus. ***
  14057. --- ************************************************
  14058. ---
  14059. CREATE VIEW nuclear_chromosome AS
  14060. SELECT
  14061. feature_id AS nuclear_chromosome_id,
  14062. feature.*
  14063. FROM
  14064. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14065. WHERE cvterm.name = 'nuclear_chromosome';
  14066. --- ************************************************
  14067. --- *** relation: nucleomorphic_chromosome ***
  14068. --- *** relation type: VIEW ***
  14069. --- *** ***
  14070. --- *** A chromosome originating in a nucleomorp ***
  14071. --- *** h. ***
  14072. --- ************************************************
  14073. ---
  14074. CREATE VIEW nucleomorphic_chromosome AS
  14075. SELECT
  14076. feature_id AS nucleomorphic_chromosome_id,
  14077. feature.*
  14078. FROM
  14079. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14080. WHERE cvterm.name = 'nucleomorphic_chromosome';
  14081. --- ************************************************
  14082. --- *** relation: chromosome_part ***
  14083. --- *** relation type: VIEW ***
  14084. --- *** ***
  14085. --- *** A region of a chromosome. ***
  14086. --- ************************************************
  14087. ---
  14088. CREATE VIEW chromosome_part AS
  14089. SELECT
  14090. feature_id AS chromosome_part_id,
  14091. feature.*
  14092. FROM
  14093. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14094. 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';
  14095. --- ************************************************
  14096. --- *** relation: gene_member_region ***
  14097. --- *** relation type: VIEW ***
  14098. --- *** ***
  14099. --- *** A region of a gene. ***
  14100. --- ************************************************
  14101. ---
  14102. CREATE VIEW gene_member_region AS
  14103. SELECT
  14104. feature_id AS gene_member_region_id,
  14105. feature.*
  14106. FROM
  14107. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14108. 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';
  14109. --- ************************************************
  14110. --- *** relation: transcript_region ***
  14111. --- *** relation type: VIEW ***
  14112. --- *** ***
  14113. --- *** A region of a transcript. ***
  14114. --- ************************************************
  14115. ---
  14116. CREATE VIEW transcript_region AS
  14117. SELECT
  14118. feature_id AS transcript_region_id,
  14119. feature.*
  14120. FROM
  14121. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14122. 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';
  14123. --- ************************************************
  14124. --- *** relation: mature_transcript_region ***
  14125. --- *** relation type: VIEW ***
  14126. --- *** ***
  14127. --- *** A region of a mature transcript. ***
  14128. --- ************************************************
  14129. ---
  14130. CREATE VIEW mature_transcript_region AS
  14131. SELECT
  14132. feature_id AS mature_transcript_region_id,
  14133. feature.*
  14134. FROM
  14135. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14136. 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';
  14137. --- ************************************************
  14138. --- *** relation: primary_transcript_region ***
  14139. --- *** relation type: VIEW ***
  14140. --- *** ***
  14141. --- *** A part of a primary transcript. ***
  14142. --- ************************************************
  14143. ---
  14144. CREATE VIEW primary_transcript_region AS
  14145. SELECT
  14146. feature_id AS primary_transcript_region_id,
  14147. feature.*
  14148. FROM
  14149. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14150. 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';
  14151. --- ************************************************
  14152. --- *** relation: mrna_region ***
  14153. --- *** relation type: VIEW ***
  14154. --- *** ***
  14155. --- *** A region of an mRNA. ***
  14156. --- ************************************************
  14157. ---
  14158. CREATE VIEW mrna_region AS
  14159. SELECT
  14160. feature_id AS mrna_region_id,
  14161. feature.*
  14162. FROM
  14163. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14164. 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';
  14165. --- ************************************************
  14166. --- *** relation: utr_region ***
  14167. --- *** relation type: VIEW ***
  14168. --- *** ***
  14169. --- *** A region of UTR. ***
  14170. --- ************************************************
  14171. ---
  14172. CREATE VIEW utr_region AS
  14173. SELECT
  14174. feature_id AS utr_region_id,
  14175. feature.*
  14176. FROM
  14177. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14178. 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';
  14179. --- ************************************************
  14180. --- *** relation: rrna_primary_transcript_region ***
  14181. --- *** relation type: VIEW ***
  14182. --- *** ***
  14183. --- *** A region of an rRNA primary transcript. ***
  14184. --- ************************************************
  14185. ---
  14186. CREATE VIEW rrna_primary_transcript_region AS
  14187. SELECT
  14188. feature_id AS rrna_primary_transcript_region_id,
  14189. feature.*
  14190. FROM
  14191. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14192. 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';
  14193. --- ************************************************
  14194. --- *** relation: polypeptide_region ***
  14195. --- *** relation type: VIEW ***
  14196. --- *** ***
  14197. --- *** Biological sequence region that can be a ***
  14198. --- *** ssigned to a specific subsequence of a p ***
  14199. --- *** olypeptide. ***
  14200. --- ************************************************
  14201. ---
  14202. CREATE VIEW polypeptide_region AS
  14203. SELECT
  14204. feature_id AS polypeptide_region_id,
  14205. feature.*
  14206. FROM
  14207. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14208. 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';
  14209. --- ************************************************
  14210. --- *** relation: repeat_component ***
  14211. --- *** relation type: VIEW ***
  14212. --- *** ***
  14213. --- *** A region of a repeated sequence. ***
  14214. --- ************************************************
  14215. ---
  14216. CREATE VIEW repeat_component AS
  14217. SELECT
  14218. feature_id AS repeat_component_id,
  14219. feature.*
  14220. FROM
  14221. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14222. 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';
  14223. --- ************************************************
  14224. --- *** relation: spliceosomal_intron_region ***
  14225. --- *** relation type: VIEW ***
  14226. --- *** ***
  14227. --- *** A region within an intron. ***
  14228. --- ************************************************
  14229. ---
  14230. CREATE VIEW spliceosomal_intron_region AS
  14231. SELECT
  14232. feature_id AS spliceosomal_intron_region_id,
  14233. feature.*
  14234. FROM
  14235. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14236. WHERE cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'branch_site' OR cvterm.name = 'polypyrimidine_tract' OR cvterm.name = 'spliceosomal_intron_region';
  14237. --- ************************************************
  14238. --- *** relation: gene_component_region ***
  14239. --- *** relation type: VIEW ***
  14240. --- *** ***
  14241. --- ************************************************
  14242. ---
  14243. CREATE VIEW gene_component_region AS
  14244. SELECT
  14245. feature_id AS gene_component_region_id,
  14246. feature.*
  14247. FROM
  14248. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14249. 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';
  14250. --- ************************************************
  14251. --- *** relation: tmrna_region ***
  14252. --- *** relation type: VIEW ***
  14253. --- *** ***
  14254. --- *** A region of a tmRNA. ***
  14255. --- ************************************************
  14256. ---
  14257. CREATE VIEW tmrna_region AS
  14258. SELECT
  14259. feature_id AS tmrna_region_id,
  14260. feature.*
  14261. FROM
  14262. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14263. WHERE cvterm.name = 'tmRNA_coding_piece' OR cvterm.name = 'tmRNA_acceptor_piece' OR cvterm.name = 'tmRNA_region';
  14264. --- ************************************************
  14265. --- *** relation: ltr_component ***
  14266. --- *** relation type: VIEW ***
  14267. --- *** ***
  14268. --- ************************************************
  14269. ---
  14270. CREATE VIEW ltr_component AS
  14271. SELECT
  14272. feature_id AS ltr_component_id,
  14273. feature.*
  14274. FROM
  14275. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14276. 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';
  14277. --- ************************************************
  14278. --- *** relation: three_prime_ltr_component ***
  14279. --- *** relation type: VIEW ***
  14280. --- *** ***
  14281. --- ************************************************
  14282. ---
  14283. CREATE VIEW three_prime_ltr_component AS
  14284. SELECT
  14285. feature_id AS three_prime_ltr_component_id,
  14286. feature.*
  14287. FROM
  14288. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14289. 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';
  14290. --- ************************************************
  14291. --- *** relation: five_prime_ltr_component ***
  14292. --- *** relation type: VIEW ***
  14293. --- *** ***
  14294. --- ************************************************
  14295. ---
  14296. CREATE VIEW five_prime_ltr_component AS
  14297. SELECT
  14298. feature_id AS five_prime_ltr_component_id,
  14299. feature.*
  14300. FROM
  14301. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14302. 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';
  14303. --- ************************************************
  14304. --- *** relation: cds_region ***
  14305. --- *** relation type: VIEW ***
  14306. --- *** ***
  14307. --- *** A region of a CDS. ***
  14308. --- ************************************************
  14309. ---
  14310. CREATE VIEW cds_region AS
  14311. SELECT
  14312. feature_id AS cds_region_id,
  14313. feature.*
  14314. FROM
  14315. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14316. 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';
  14317. --- ************************************************
  14318. --- *** relation: exon_region ***
  14319. --- *** relation type: VIEW ***
  14320. --- *** ***
  14321. --- *** A region of an exon. ***
  14322. --- ************************************************
  14323. ---
  14324. CREATE VIEW exon_region AS
  14325. SELECT
  14326. feature_id AS exon_region_id,
  14327. feature.*
  14328. FROM
  14329. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14330. 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';
  14331. --- ************************************************
  14332. --- *** relation: homologous_region ***
  14333. --- *** relation type: VIEW ***
  14334. --- *** ***
  14335. --- *** A region that is homologous to another r ***
  14336. --- *** egion. ***
  14337. --- ************************************************
  14338. ---
  14339. CREATE VIEW homologous_region AS
  14340. SELECT
  14341. feature_id AS homologous_region_id,
  14342. feature.*
  14343. FROM
  14344. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14345. WHERE cvterm.name = 'paralogous_region' OR cvterm.name = 'orthologous_region' OR cvterm.name = 'homologous_region';
  14346. --- ************************************************
  14347. --- *** relation: paralogous_region ***
  14348. --- *** relation type: VIEW ***
  14349. --- *** ***
  14350. --- *** A homologous_region that is paralogous t ***
  14351. --- *** o another region. ***
  14352. --- ************************************************
  14353. ---
  14354. CREATE VIEW paralogous_region AS
  14355. SELECT
  14356. feature_id AS paralogous_region_id,
  14357. feature.*
  14358. FROM
  14359. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14360. WHERE cvterm.name = 'paralogous_region';
  14361. --- ************************************************
  14362. --- *** relation: orthologous_region ***
  14363. --- *** relation type: VIEW ***
  14364. --- *** ***
  14365. --- *** A homologous_region that is orthologous ***
  14366. --- *** to another region. ***
  14367. --- ************************************************
  14368. ---
  14369. CREATE VIEW orthologous_region AS
  14370. SELECT
  14371. feature_id AS orthologous_region_id,
  14372. feature.*
  14373. FROM
  14374. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14375. WHERE cvterm.name = 'orthologous_region';
  14376. --- ************************************************
  14377. --- *** relation: conserved ***
  14378. --- *** relation type: VIEW ***
  14379. --- *** ***
  14380. --- ************************************************
  14381. ---
  14382. CREATE VIEW conserved AS
  14383. SELECT
  14384. feature_id AS conserved_id,
  14385. feature.*
  14386. FROM
  14387. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14388. WHERE cvterm.name = 'homologous' OR cvterm.name = 'syntenic' OR cvterm.name = 'orthologous' OR cvterm.name = 'paralogous' OR cvterm.name = 'conserved';
  14389. --- ************************************************
  14390. --- *** relation: homologous ***
  14391. --- *** relation type: VIEW ***
  14392. --- *** ***
  14393. --- *** Similarity due to common ancestry. ***
  14394. --- ************************************************
  14395. ---
  14396. CREATE VIEW homologous AS
  14397. SELECT
  14398. feature_id AS homologous_id,
  14399. feature.*
  14400. FROM
  14401. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14402. WHERE cvterm.name = 'orthologous' OR cvterm.name = 'paralogous' OR cvterm.name = 'homologous';
  14403. --- ************************************************
  14404. --- *** relation: orthologous ***
  14405. --- *** relation type: VIEW ***
  14406. --- *** ***
  14407. --- *** An attribute describing a kind of homolo ***
  14408. --- *** gy where divergence occured after a spec ***
  14409. --- *** iation event. ***
  14410. --- ************************************************
  14411. ---
  14412. CREATE VIEW orthologous AS
  14413. SELECT
  14414. feature_id AS orthologous_id,
  14415. feature.*
  14416. FROM
  14417. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14418. WHERE cvterm.name = 'orthologous';
  14419. --- ************************************************
  14420. --- *** relation: paralogous ***
  14421. --- *** relation type: VIEW ***
  14422. --- *** ***
  14423. --- *** An attribute describing a kind of homolo ***
  14424. --- *** gy where divergence occurred after a dup ***
  14425. --- *** lication event. ***
  14426. --- ************************************************
  14427. ---
  14428. CREATE VIEW paralogous AS
  14429. SELECT
  14430. feature_id AS paralogous_id,
  14431. feature.*
  14432. FROM
  14433. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14434. WHERE cvterm.name = 'paralogous';
  14435. --- ************************************************
  14436. --- *** relation: syntenic ***
  14437. --- *** relation type: VIEW ***
  14438. --- *** ***
  14439. --- *** Attribute describing sequence regions oc ***
  14440. --- *** curring in same order on chromosome of d ***
  14441. --- *** ifferent species. ***
  14442. --- ************************************************
  14443. ---
  14444. CREATE VIEW syntenic AS
  14445. SELECT
  14446. feature_id AS syntenic_id,
  14447. feature.*
  14448. FROM
  14449. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14450. WHERE cvterm.name = 'syntenic';
  14451. --- ************************************************
  14452. --- *** relation: capped_primary_transcript ***
  14453. --- *** relation type: VIEW ***
  14454. --- *** ***
  14455. --- *** A primary transcript that is capped. ***
  14456. --- ************************************************
  14457. ---
  14458. CREATE VIEW capped_primary_transcript AS
  14459. SELECT
  14460. feature_id AS capped_primary_transcript_id,
  14461. feature.*
  14462. FROM
  14463. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14464. WHERE cvterm.name = 'capped_primary_transcript';
  14465. --- ************************************************
  14466. --- *** relation: capped_mrna ***
  14467. --- *** relation type: VIEW ***
  14468. --- *** ***
  14469. --- *** An mRNA that is capped. ***
  14470. --- ************************************************
  14471. ---
  14472. CREATE VIEW capped_mrna AS
  14473. SELECT
  14474. feature_id AS capped_mrna_id,
  14475. feature.*
  14476. FROM
  14477. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14478. WHERE cvterm.name = 'capped_mRNA';
  14479. --- ************************************************
  14480. --- *** relation: mrna_attribute ***
  14481. --- *** relation type: VIEW ***
  14482. --- *** ***
  14483. --- *** An attribute describing an mRNA feature. ***
  14484. --- ************************************************
  14485. ---
  14486. CREATE VIEW mrna_attribute AS
  14487. SELECT
  14488. feature_id AS mrna_attribute_id,
  14489. feature.*
  14490. FROM
  14491. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14492. 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';
  14493. --- ************************************************
  14494. --- *** relation: exemplar ***
  14495. --- *** relation type: VIEW ***
  14496. --- *** ***
  14497. --- *** An attribute describing a sequence is re ***
  14498. --- *** presentative of a class of similar seque ***
  14499. --- *** nces. ***
  14500. --- ************************************************
  14501. ---
  14502. CREATE VIEW exemplar AS
  14503. SELECT
  14504. feature_id AS exemplar_id,
  14505. feature.*
  14506. FROM
  14507. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14508. WHERE cvterm.name = 'exemplar';
  14509. --- ************************************************
  14510. --- *** relation: frameshift ***
  14511. --- *** relation type: VIEW ***
  14512. --- *** ***
  14513. --- *** An attribute describing a sequence that ***
  14514. --- *** contains a mutation involving the deleti ***
  14515. --- *** on or insertion of one or more bases, wh ***
  14516. --- *** ere this number is not divisible by 3. ***
  14517. --- ************************************************
  14518. ---
  14519. CREATE VIEW frameshift AS
  14520. SELECT
  14521. feature_id AS frameshift_id,
  14522. feature.*
  14523. FROM
  14524. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14525. 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';
  14526. --- ************************************************
  14527. --- *** relation: minus_1_frameshift ***
  14528. --- *** relation type: VIEW ***
  14529. --- *** ***
  14530. --- *** A frameshift caused by deleting one base ***
  14531. --- *** . ***
  14532. --- ************************************************
  14533. ---
  14534. CREATE VIEW minus_1_frameshift AS
  14535. SELECT
  14536. feature_id AS minus_1_frameshift_id,
  14537. feature.*
  14538. FROM
  14539. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14540. WHERE cvterm.name = 'minus_1_frameshift';
  14541. --- ************************************************
  14542. --- *** relation: minus_2_frameshift ***
  14543. --- *** relation type: VIEW ***
  14544. --- *** ***
  14545. --- *** A frameshift caused by deleting two base ***
  14546. --- *** s. ***
  14547. --- ************************************************
  14548. ---
  14549. CREATE VIEW minus_2_frameshift AS
  14550. SELECT
  14551. feature_id AS minus_2_frameshift_id,
  14552. feature.*
  14553. FROM
  14554. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14555. WHERE cvterm.name = 'minus_2_frameshift';
  14556. --- ************************************************
  14557. --- *** relation: plus_1_frameshift ***
  14558. --- *** relation type: VIEW ***
  14559. --- *** ***
  14560. --- *** A frameshift caused by inserting one bas ***
  14561. --- *** e. ***
  14562. --- ************************************************
  14563. ---
  14564. CREATE VIEW plus_1_frameshift AS
  14565. SELECT
  14566. feature_id AS plus_1_frameshift_id,
  14567. feature.*
  14568. FROM
  14569. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14570. WHERE cvterm.name = 'plus_1_frameshift';
  14571. --- ************************************************
  14572. --- *** relation: plus_2_framshift ***
  14573. --- *** relation type: VIEW ***
  14574. --- *** ***
  14575. --- *** A frameshift caused by inserting two bas ***
  14576. --- *** es. ***
  14577. --- ************************************************
  14578. ---
  14579. CREATE VIEW plus_2_framshift AS
  14580. SELECT
  14581. feature_id AS plus_2_framshift_id,
  14582. feature.*
  14583. FROM
  14584. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14585. WHERE cvterm.name = 'plus_2_framshift';
  14586. --- ************************************************
  14587. --- *** relation: trans_spliced ***
  14588. --- *** relation type: VIEW ***
  14589. --- *** ***
  14590. --- *** An attribute describing transcript seque ***
  14591. --- *** nce that is created by splicing exons fr ***
  14592. --- *** om diferent genes. ***
  14593. --- ************************************************
  14594. ---
  14595. CREATE VIEW trans_spliced AS
  14596. SELECT
  14597. feature_id AS trans_spliced_id,
  14598. feature.*
  14599. FROM
  14600. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14601. WHERE cvterm.name = 'trans_spliced';
  14602. --- ************************************************
  14603. --- *** relation: polyadenylated_mrna ***
  14604. --- *** relation type: VIEW ***
  14605. --- *** ***
  14606. --- *** An mRNA that is polyadenylated. ***
  14607. --- ************************************************
  14608. ---
  14609. CREATE VIEW polyadenylated_mrna AS
  14610. SELECT
  14611. feature_id AS polyadenylated_mrna_id,
  14612. feature.*
  14613. FROM
  14614. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14615. WHERE cvterm.name = 'polyadenylated_mRNA';
  14616. --- ************************************************
  14617. --- *** relation: trans_spliced_mrna ***
  14618. --- *** relation type: VIEW ***
  14619. --- *** ***
  14620. --- *** An mRNA that is trans-spliced. ***
  14621. --- ************************************************
  14622. ---
  14623. CREATE VIEW trans_spliced_mrna AS
  14624. SELECT
  14625. feature_id AS trans_spliced_mrna_id,
  14626. feature.*
  14627. FROM
  14628. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14629. WHERE cvterm.name = 'trans_spliced_mRNA';
  14630. --- ************************************************
  14631. --- *** relation: edited_transcript ***
  14632. --- *** relation type: VIEW ***
  14633. --- *** ***
  14634. --- *** A transcript that is edited. ***
  14635. --- ************************************************
  14636. ---
  14637. CREATE VIEW edited_transcript AS
  14638. SELECT
  14639. feature_id AS edited_transcript_id,
  14640. feature.*
  14641. FROM
  14642. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14643. WHERE cvterm.name = 'edited_transcript_by_A_to_I_substitution' OR cvterm.name = 'edited_mRNA' OR cvterm.name = 'edited_transcript';
  14644. --- ************************************************
  14645. --- *** relation: edited_transcript_by_a_to_i_substitution ***
  14646. --- *** relation type: VIEW ***
  14647. --- *** ***
  14648. --- *** A transcript that has been edited by A t ***
  14649. --- *** o I substitution. ***
  14650. --- ************************************************
  14651. ---
  14652. CREATE VIEW edited_transcript_by_a_to_i_substitution AS
  14653. SELECT
  14654. feature_id AS edited_transcript_by_a_to_i_substitution_id,
  14655. feature.*
  14656. FROM
  14657. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14658. WHERE cvterm.name = 'edited_transcript_by_A_to_I_substitution';
  14659. --- ************************************************
  14660. --- *** relation: bound_by_protein ***
  14661. --- *** relation type: VIEW ***
  14662. --- *** ***
  14663. --- *** An attribute describing a sequence that ***
  14664. --- *** is bound by a protein. ***
  14665. --- ************************************************
  14666. ---
  14667. CREATE VIEW bound_by_protein AS
  14668. SELECT
  14669. feature_id AS bound_by_protein_id,
  14670. feature.*
  14671. FROM
  14672. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14673. WHERE cvterm.name = 'bound_by_protein';
  14674. --- ************************************************
  14675. --- *** relation: bound_by_nucleic_acid ***
  14676. --- *** relation type: VIEW ***
  14677. --- *** ***
  14678. --- *** An attribute describing a sequence that ***
  14679. --- *** is bound by a nucleic acid. ***
  14680. --- ************************************************
  14681. ---
  14682. CREATE VIEW bound_by_nucleic_acid AS
  14683. SELECT
  14684. feature_id AS bound_by_nucleic_acid_id,
  14685. feature.*
  14686. FROM
  14687. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14688. WHERE cvterm.name = 'bound_by_nucleic_acid';
  14689. --- ************************************************
  14690. --- *** relation: alternatively_spliced ***
  14691. --- *** relation type: VIEW ***
  14692. --- *** ***
  14693. --- *** An attribute describing a situation wher ***
  14694. --- *** e a gene may encode for more than 1 tran ***
  14695. --- *** script. ***
  14696. --- ************************************************
  14697. ---
  14698. CREATE VIEW alternatively_spliced AS
  14699. SELECT
  14700. feature_id AS alternatively_spliced_id,
  14701. feature.*
  14702. FROM
  14703. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14704. WHERE cvterm.name = 'alternatively_spliced';
  14705. --- ************************************************
  14706. --- *** relation: monocistronic ***
  14707. --- *** relation type: VIEW ***
  14708. --- *** ***
  14709. --- *** An attribute describing a sequence that ***
  14710. --- *** contains the code for one gene product. ***
  14711. --- ************************************************
  14712. ---
  14713. CREATE VIEW monocistronic AS
  14714. SELECT
  14715. feature_id AS monocistronic_id,
  14716. feature.*
  14717. FROM
  14718. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14719. WHERE cvterm.name = 'monocistronic';
  14720. --- ************************************************
  14721. --- *** relation: dicistronic ***
  14722. --- *** relation type: VIEW ***
  14723. --- *** ***
  14724. --- *** An attribute describing a sequence that ***
  14725. --- *** contains the code for two gene products. ***
  14726. --- ************************************************
  14727. ---
  14728. CREATE VIEW dicistronic AS
  14729. SELECT
  14730. feature_id AS dicistronic_id,
  14731. feature.*
  14732. FROM
  14733. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14734. WHERE cvterm.name = 'dicistronic';
  14735. --- ************************************************
  14736. --- *** relation: polycistronic ***
  14737. --- *** relation type: VIEW ***
  14738. --- *** ***
  14739. --- *** An attribute describing a sequence that ***
  14740. --- *** contains the code for more than one gene ***
  14741. --- *** product. ***
  14742. --- ************************************************
  14743. ---
  14744. CREATE VIEW polycistronic AS
  14745. SELECT
  14746. feature_id AS polycistronic_id,
  14747. feature.*
  14748. FROM
  14749. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14750. WHERE cvterm.name = 'dicistronic' OR cvterm.name = 'polycistronic';
  14751. --- ************************************************
  14752. --- *** relation: recoded ***
  14753. --- *** relation type: VIEW ***
  14754. --- *** ***
  14755. --- *** An attribute describing an mRNA sequence ***
  14756. --- *** that has been reprogrammed at translati ***
  14757. --- *** on, causing localized alterations. ***
  14758. --- ************************************************
  14759. ---
  14760. CREATE VIEW recoded AS
  14761. SELECT
  14762. feature_id AS recoded_id,
  14763. feature.*
  14764. FROM
  14765. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14766. 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';
  14767. --- ************************************************
  14768. --- *** relation: codon_redefined ***
  14769. --- *** relation type: VIEW ***
  14770. --- *** ***
  14771. --- *** An attribute describing the alteration o ***
  14772. --- *** f codon meaning. ***
  14773. --- ************************************************
  14774. ---
  14775. CREATE VIEW codon_redefined AS
  14776. SELECT
  14777. feature_id AS codon_redefined_id,
  14778. feature.*
  14779. FROM
  14780. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14781. WHERE cvterm.name = 'codon_redefined';
  14782. --- ************************************************
  14783. --- *** relation: stop_codon_read_through ***
  14784. --- *** relation type: VIEW ***
  14785. --- *** ***
  14786. --- *** A stop codon redefined to be a new amino ***
  14787. --- *** acid. ***
  14788. --- ************************************************
  14789. ---
  14790. CREATE VIEW stop_codon_read_through AS
  14791. SELECT
  14792. feature_id AS stop_codon_read_through_id,
  14793. feature.*
  14794. FROM
  14795. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14796. WHERE cvterm.name = 'stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'stop_codon_read_through';
  14797. --- ************************************************
  14798. --- *** relation: stop_codon_redefined_as_pyrrolysine ***
  14799. --- *** relation type: VIEW ***
  14800. --- *** ***
  14801. --- *** A stop codon redefined to be the new ami ***
  14802. --- *** no acid, pyrrolysine. ***
  14803. --- ************************************************
  14804. ---
  14805. CREATE VIEW stop_codon_redefined_as_pyrrolysine AS
  14806. SELECT
  14807. feature_id AS stop_codon_redefined_as_pyrrolysine_id,
  14808. feature.*
  14809. FROM
  14810. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14811. WHERE cvterm.name = 'stop_codon_redefined_as_pyrrolysine';
  14812. --- ************************************************
  14813. --- *** relation: stop_codon_redefined_as_selenocysteine ***
  14814. --- *** relation type: VIEW ***
  14815. --- *** ***
  14816. --- *** A stop codon redefined to be the new ami ***
  14817. --- *** no acid, selenocysteine. ***
  14818. --- ************************************************
  14819. ---
  14820. CREATE VIEW stop_codon_redefined_as_selenocysteine AS
  14821. SELECT
  14822. feature_id AS stop_codon_redefined_as_selenocysteine_id,
  14823. feature.*
  14824. FROM
  14825. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14826. WHERE cvterm.name = 'stop_codon_redefined_as_selenocysteine';
  14827. --- ************************************************
  14828. --- *** relation: recoded_by_translational_bypass ***
  14829. --- *** relation type: VIEW ***
  14830. --- *** ***
  14831. --- *** Recoded mRNA where a block of nucleotide ***
  14832. --- *** s is not translated. ***
  14833. --- ************************************************
  14834. ---
  14835. CREATE VIEW recoded_by_translational_bypass AS
  14836. SELECT
  14837. feature_id AS recoded_by_translational_bypass_id,
  14838. feature.*
  14839. FROM
  14840. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14841. WHERE cvterm.name = 'recoded_by_translational_bypass';
  14842. --- ************************************************
  14843. --- *** relation: translationally_frameshifted ***
  14844. --- *** relation type: VIEW ***
  14845. --- *** ***
  14846. --- *** Recoding by frameshifting a particular s ***
  14847. --- *** ite. ***
  14848. --- ************************************************
  14849. ---
  14850. CREATE VIEW translationally_frameshifted AS
  14851. SELECT
  14852. feature_id AS translationally_frameshifted_id,
  14853. feature.*
  14854. FROM
  14855. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14856. WHERE cvterm.name = 'minus_1_translationally_frameshifted' OR cvterm.name = 'plus_1_translationally_frameshifted' OR cvterm.name = 'translationally_frameshifted';
  14857. --- ************************************************
  14858. --- *** relation: maternally_imprinted_gene ***
  14859. --- *** relation type: VIEW ***
  14860. --- *** ***
  14861. --- *** A gene that is maternally_imprinted. ***
  14862. --- ************************************************
  14863. ---
  14864. CREATE VIEW maternally_imprinted_gene AS
  14865. SELECT
  14866. feature_id AS maternally_imprinted_gene_id,
  14867. feature.*
  14868. FROM
  14869. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14870. WHERE cvterm.name = 'maternally_imprinted_gene';
  14871. --- ************************************************
  14872. --- *** relation: paternally_imprinted_gene ***
  14873. --- *** relation type: VIEW ***
  14874. --- *** ***
  14875. --- *** A gene that is paternally imprinted. ***
  14876. --- ************************************************
  14877. ---
  14878. CREATE VIEW paternally_imprinted_gene AS
  14879. SELECT
  14880. feature_id AS paternally_imprinted_gene_id,
  14881. feature.*
  14882. FROM
  14883. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14884. WHERE cvterm.name = 'paternally_imprinted_gene';
  14885. --- ************************************************
  14886. --- *** relation: post_translationally_regulated_gene ***
  14887. --- *** relation type: VIEW ***
  14888. --- *** ***
  14889. --- *** A gene that is post translationally regu ***
  14890. --- *** lated. ***
  14891. --- ************************************************
  14892. ---
  14893. CREATE VIEW post_translationally_regulated_gene AS
  14894. SELECT
  14895. feature_id AS post_translationally_regulated_gene_id,
  14896. feature.*
  14897. FROM
  14898. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14899. WHERE cvterm.name = 'post_translationally_regulated_gene';
  14900. --- ************************************************
  14901. --- *** relation: negatively_autoregulated_gene ***
  14902. --- *** relation type: VIEW ***
  14903. --- *** ***
  14904. --- *** A gene that is negatively autoreguated. ***
  14905. --- ************************************************
  14906. ---
  14907. CREATE VIEW negatively_autoregulated_gene AS
  14908. SELECT
  14909. feature_id AS negatively_autoregulated_gene_id,
  14910. feature.*
  14911. FROM
  14912. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14913. WHERE cvterm.name = 'negatively_autoregulated_gene';
  14914. --- ************************************************
  14915. --- *** relation: positively_autoregulated_gene ***
  14916. --- *** relation type: VIEW ***
  14917. --- *** ***
  14918. --- *** A gene that is positively autoregulated. ***
  14919. --- ************************************************
  14920. ---
  14921. CREATE VIEW positively_autoregulated_gene AS
  14922. SELECT
  14923. feature_id AS positively_autoregulated_gene_id,
  14924. feature.*
  14925. FROM
  14926. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14927. WHERE cvterm.name = 'positively_autoregulated_gene';
  14928. --- ************************************************
  14929. --- *** relation: silenced ***
  14930. --- *** relation type: VIEW ***
  14931. --- *** ***
  14932. --- *** An attribute describing an epigenetic pr ***
  14933. --- *** ocess where a gene is inactivated at tra ***
  14934. --- *** nscriptional or translational level. ***
  14935. --- ************************************************
  14936. ---
  14937. CREATE VIEW silenced AS
  14938. SELECT
  14939. feature_id AS silenced_id,
  14940. feature.*
  14941. FROM
  14942. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14943. 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';
  14944. --- ************************************************
  14945. --- *** relation: silenced_by_dna_modification ***
  14946. --- *** relation type: VIEW ***
  14947. --- *** ***
  14948. --- *** An attribute describing an epigenetic pr ***
  14949. --- *** ocess where a gene is inactivated by DNA ***
  14950. --- *** modifications, resulting in repression ***
  14951. --- *** of transcription. ***
  14952. --- ************************************************
  14953. ---
  14954. CREATE VIEW silenced_by_dna_modification AS
  14955. SELECT
  14956. feature_id AS silenced_by_dna_modification_id,
  14957. feature.*
  14958. FROM
  14959. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14960. WHERE cvterm.name = 'silenced_by_DNA_methylation' OR cvterm.name = 'silenced_by_DNA_modification';
  14961. --- ************************************************
  14962. --- *** relation: silenced_by_dna_methylation ***
  14963. --- *** relation type: VIEW ***
  14964. --- *** ***
  14965. --- *** An attribute describing an epigenetic pr ***
  14966. --- *** ocess where a gene is inactivated by DNA ***
  14967. --- *** methylation, resulting in repression of ***
  14968. --- *** transcription. ***
  14969. --- ************************************************
  14970. ---
  14971. CREATE VIEW silenced_by_dna_methylation AS
  14972. SELECT
  14973. feature_id AS silenced_by_dna_methylation_id,
  14974. feature.*
  14975. FROM
  14976. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14977. WHERE cvterm.name = 'silenced_by_DNA_methylation';
  14978. --- ************************************************
  14979. --- *** relation: translationally_regulated_gene ***
  14980. --- *** relation type: VIEW ***
  14981. --- *** ***
  14982. --- *** A gene that is translationally regulated ***
  14983. --- *** . ***
  14984. --- ************************************************
  14985. ---
  14986. CREATE VIEW translationally_regulated_gene AS
  14987. SELECT
  14988. feature_id AS translationally_regulated_gene_id,
  14989. feature.*
  14990. FROM
  14991. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14992. WHERE cvterm.name = 'translationally_regulated_gene';
  14993. --- ************************************************
  14994. --- *** relation: allelically_excluded_gene ***
  14995. --- *** relation type: VIEW ***
  14996. --- *** ***
  14997. --- *** A gene that is allelically_excluded. ***
  14998. --- ************************************************
  14999. ---
  15000. CREATE VIEW allelically_excluded_gene AS
  15001. SELECT
  15002. feature_id AS allelically_excluded_gene_id,
  15003. feature.*
  15004. FROM
  15005. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15006. WHERE cvterm.name = 'allelically_excluded_gene';
  15007. --- ************************************************
  15008. --- *** relation: epigenetically_modified_gene ***
  15009. --- *** relation type: VIEW ***
  15010. --- *** ***
  15011. --- *** A gene that is epigenetically modified. ***
  15012. --- ************************************************
  15013. ---
  15014. CREATE VIEW epigenetically_modified_gene AS
  15015. SELECT
  15016. feature_id AS epigenetically_modified_gene_id,
  15017. feature.*
  15018. FROM
  15019. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15020. 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';
  15021. --- ************************************************
  15022. --- *** relation: transgene ***
  15023. --- *** relation type: VIEW ***
  15024. --- *** ***
  15025. --- *** A transgene is a gene that has been tran ***
  15026. --- *** sferred naturally or by any of a number ***
  15027. --- *** of genetic engineering techniques from o ***
  15028. --- *** ne organism to another. ***
  15029. --- ************************************************
  15030. ---
  15031. CREATE VIEW transgene AS
  15032. SELECT
  15033. feature_id AS transgene_id,
  15034. feature.*
  15035. FROM
  15036. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15037. WHERE cvterm.name = 'floxed_gene' OR cvterm.name = 'transgene';
  15038. --- ************************************************
  15039. --- *** relation: endogenous_retroviral_sequence ***
  15040. --- *** relation type: VIEW ***
  15041. --- *** ***
  15042. --- ************************************************
  15043. ---
  15044. CREATE VIEW endogenous_retroviral_sequence AS
  15045. SELECT
  15046. feature_id AS endogenous_retroviral_sequence_id,
  15047. feature.*
  15048. FROM
  15049. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15050. WHERE cvterm.name = 'endogenous_retroviral_sequence';
  15051. --- ************************************************
  15052. --- *** relation: rearranged_at_dna_level ***
  15053. --- *** relation type: VIEW ***
  15054. --- *** ***
  15055. --- *** An attribute to describe the sequence of ***
  15056. --- *** a feature, where the DNA is rearranged. ***
  15057. --- ************************************************
  15058. ---
  15059. CREATE VIEW rearranged_at_dna_level AS
  15060. SELECT
  15061. feature_id AS rearranged_at_dna_level_id,
  15062. feature.*
  15063. FROM
  15064. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15065. WHERE cvterm.name = 'rearranged_at_DNA_level';
  15066. --- ************************************************
  15067. --- *** relation: status ***
  15068. --- *** relation type: VIEW ***
  15069. --- *** ***
  15070. --- *** An attribute describing the status of a ***
  15071. --- *** feature, based on the available evidence ***
  15072. --- *** . ***
  15073. --- ************************************************
  15074. ---
  15075. CREATE VIEW status AS
  15076. SELECT
  15077. feature_id AS status_id,
  15078. feature.*
  15079. FROM
  15080. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15081. 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';
  15082. --- ************************************************
  15083. --- *** relation: independently_known ***
  15084. --- *** relation type: VIEW ***
  15085. --- *** ***
  15086. --- *** Attribute to describe a feature that is ***
  15087. --- *** independently known - not predicted. ***
  15088. --- ************************************************
  15089. ---
  15090. CREATE VIEW independently_known AS
  15091. SELECT
  15092. feature_id AS independently_known_id,
  15093. feature.*
  15094. FROM
  15095. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15096. WHERE cvterm.name = 'independently_known';
  15097. --- ************************************************
  15098. --- *** relation: supported_by_sequence_similarity ***
  15099. --- *** relation type: VIEW ***
  15100. --- *** ***
  15101. --- *** An attribute to describe a feature that ***
  15102. --- *** has been predicted using sequence simila ***
  15103. --- *** rity techniques. ***
  15104. --- ************************************************
  15105. ---
  15106. CREATE VIEW supported_by_sequence_similarity AS
  15107. SELECT
  15108. feature_id AS supported_by_sequence_similarity_id,
  15109. feature.*
  15110. FROM
  15111. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15112. WHERE cvterm.name = 'supported_by_domain_match' OR cvterm.name = 'supported_by_EST_or_cDNA' OR cvterm.name = 'supported_by_sequence_similarity';
  15113. --- ************************************************
  15114. --- *** relation: supported_by_domain_match ***
  15115. --- *** relation type: VIEW ***
  15116. --- *** ***
  15117. --- *** An attribute to describe a feature that ***
  15118. --- *** has been predicted using sequence simila ***
  15119. --- *** rity of a known domain. ***
  15120. --- ************************************************
  15121. ---
  15122. CREATE VIEW supported_by_domain_match AS
  15123. SELECT
  15124. feature_id AS supported_by_domain_match_id,
  15125. feature.*
  15126. FROM
  15127. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15128. WHERE cvterm.name = 'supported_by_domain_match';
  15129. --- ************************************************
  15130. --- *** relation: supported_by_est_or_cdna ***
  15131. --- *** relation type: VIEW ***
  15132. --- *** ***
  15133. --- *** An attribute to describe a feature that ***
  15134. --- *** has been predicted using sequence simila ***
  15135. --- *** rity to EST or cDNA data. ***
  15136. --- ************************************************
  15137. ---
  15138. CREATE VIEW supported_by_est_or_cdna AS
  15139. SELECT
  15140. feature_id AS supported_by_est_or_cdna_id,
  15141. feature.*
  15142. FROM
  15143. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15144. WHERE cvterm.name = 'supported_by_EST_or_cDNA';
  15145. --- ************************************************
  15146. --- *** relation: orphan ***
  15147. --- *** relation type: VIEW ***
  15148. --- *** ***
  15149. --- ************************************************
  15150. ---
  15151. CREATE VIEW orphan AS
  15152. SELECT
  15153. feature_id AS orphan_id,
  15154. feature.*
  15155. FROM
  15156. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15157. WHERE cvterm.name = 'orphan';
  15158. --- ************************************************
  15159. --- *** relation: predicted_by_ab_initio_computation ***
  15160. --- *** relation type: VIEW ***
  15161. --- *** ***
  15162. --- *** An attribute describing a feature that i ***
  15163. --- *** s predicted by a computer program that d ***
  15164. --- *** id not rely on sequence similarity. ***
  15165. --- ************************************************
  15166. ---
  15167. CREATE VIEW predicted_by_ab_initio_computation AS
  15168. SELECT
  15169. feature_id AS predicted_by_ab_initio_computation_id,
  15170. feature.*
  15171. FROM
  15172. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15173. WHERE cvterm.name = 'predicted_by_ab_initio_computation';
  15174. --- ************************************************
  15175. --- *** relation: asx_turn ***
  15176. --- *** relation type: VIEW ***
  15177. --- *** ***
  15178. --- *** A motif of three consecutive residues an ***
  15179. --- *** d one H-bond in which: residue(i) is Asp ***
  15180. --- *** artate or Asparagine (Asx), the side-cha ***
  15181. --- *** in O of residue(i) is H-bonded to the ma ***
  15182. --- *** in-chain NH of residue(i+2). ***
  15183. --- ************************************************
  15184. ---
  15185. CREATE VIEW asx_turn AS
  15186. SELECT
  15187. feature_id AS asx_turn_id,
  15188. feature.*
  15189. FROM
  15190. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15191. 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';
  15192. --- ************************************************
  15193. --- *** relation: cloned_cdna_insert ***
  15194. --- *** relation type: VIEW ***
  15195. --- *** ***
  15196. --- *** A clone insert made from cDNA. ***
  15197. --- ************************************************
  15198. ---
  15199. CREATE VIEW cloned_cdna_insert AS
  15200. SELECT
  15201. feature_id AS cloned_cdna_insert_id,
  15202. feature.*
  15203. FROM
  15204. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15205. WHERE cvterm.name = 'cloned_cDNA_insert';
  15206. --- ************************************************
  15207. --- *** relation: cloned_genomic_insert ***
  15208. --- *** relation type: VIEW ***
  15209. --- *** ***
  15210. --- *** A clone insert made from genomic DNA. ***
  15211. --- ************************************************
  15212. ---
  15213. CREATE VIEW cloned_genomic_insert AS
  15214. SELECT
  15215. feature_id AS cloned_genomic_insert_id,
  15216. feature.*
  15217. FROM
  15218. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15219. WHERE cvterm.name = 'BAC_cloned_genomic_insert' OR cvterm.name = 'cloned_genomic_insert';
  15220. --- ************************************************
  15221. --- *** relation: engineered_insert ***
  15222. --- *** relation type: VIEW ***
  15223. --- *** ***
  15224. --- *** A clone insert that is engineered. ***
  15225. --- ************************************************
  15226. ---
  15227. CREATE VIEW engineered_insert AS
  15228. SELECT
  15229. feature_id AS engineered_insert_id,
  15230. feature.*
  15231. FROM
  15232. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15233. WHERE cvterm.name = 'engineered_insert';
  15234. --- ************************************************
  15235. --- *** relation: edited_mrna ***
  15236. --- *** relation type: VIEW ***
  15237. --- *** ***
  15238. --- *** An mRNA that is edited. ***
  15239. --- ************************************************
  15240. ---
  15241. CREATE VIEW edited_mrna AS
  15242. SELECT
  15243. feature_id AS edited_mrna_id,
  15244. feature.*
  15245. FROM
  15246. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15247. WHERE cvterm.name = 'edited_mRNA';
  15248. --- ************************************************
  15249. --- *** relation: guide_rna_region ***
  15250. --- *** relation type: VIEW ***
  15251. --- *** ***
  15252. --- *** A region of guide RNA. ***
  15253. --- ************************************************
  15254. ---
  15255. CREATE VIEW guide_rna_region AS
  15256. SELECT
  15257. feature_id AS guide_rna_region_id,
  15258. feature.*
  15259. FROM
  15260. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15261. WHERE cvterm.name = 'anchor_region' OR cvterm.name = 'template_region' OR cvterm.name = 'guide_RNA_region';
  15262. --- ************************************************
  15263. --- *** relation: anchor_region ***
  15264. --- *** relation type: VIEW ***
  15265. --- *** ***
  15266. --- *** A region of a guide_RNA that base-pairs ***
  15267. --- *** to a target mRNA. ***
  15268. --- ************************************************
  15269. ---
  15270. CREATE VIEW anchor_region AS
  15271. SELECT
  15272. feature_id AS anchor_region_id,
  15273. feature.*
  15274. FROM
  15275. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15276. WHERE cvterm.name = 'anchor_region';
  15277. --- ************************************************
  15278. --- *** relation: pre_edited_mrna ***
  15279. --- *** relation type: VIEW ***
  15280. --- *** ***
  15281. --- ************************************************
  15282. ---
  15283. CREATE VIEW pre_edited_mrna AS
  15284. SELECT
  15285. feature_id AS pre_edited_mrna_id,
  15286. feature.*
  15287. FROM
  15288. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15289. WHERE cvterm.name = 'pre_edited_mRNA';
  15290. --- ************************************************
  15291. --- *** relation: intermediate ***
  15292. --- *** relation type: VIEW ***
  15293. --- *** ***
  15294. --- *** An attribute to describe a feature betwe ***
  15295. --- *** en stages of processing. ***
  15296. --- ************************************************
  15297. ---
  15298. CREATE VIEW intermediate AS
  15299. SELECT
  15300. feature_id AS intermediate_id,
  15301. feature.*
  15302. FROM
  15303. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15304. WHERE cvterm.name = 'intermediate';
  15305. --- ************************************************
  15306. --- *** relation: mirna_target_site ***
  15307. --- *** relation type: VIEW ***
  15308. --- *** ***
  15309. --- *** A miRNA target site is a binding site wh ***
  15310. --- *** ere the molecule is a micro RNA. ***
  15311. --- ************************************************
  15312. ---
  15313. CREATE VIEW mirna_target_site AS
  15314. SELECT
  15315. feature_id AS mirna_target_site_id,
  15316. feature.*
  15317. FROM
  15318. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15319. WHERE cvterm.name = 'miRNA_target_site';
  15320. --- ************************************************
  15321. --- *** relation: edited_cds ***
  15322. --- *** relation type: VIEW ***
  15323. --- *** ***
  15324. --- *** A CDS that is edited. ***
  15325. --- ************************************************
  15326. ---
  15327. CREATE VIEW edited_cds AS
  15328. SELECT
  15329. feature_id AS edited_cds_id,
  15330. feature.*
  15331. FROM
  15332. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15333. WHERE cvterm.name = 'edited_CDS';
  15334. --- ************************************************
  15335. --- *** relation: vertebrate_immunoglobulin_t_cell_receptor_rearranged_segment ***
  15336. --- *** relation type: VIEW ***
  15337. --- *** ***
  15338. --- ************************************************
  15339. ---
  15340. CREATE VIEW vertebrate_immunoglobulin_t_cell_receptor_rearranged_segment AS
  15341. SELECT
  15342. feature_id AS vertebrate_immunoglobulin_t_cell_receptor_rearranged_segment_id,
  15343. feature.*
  15344. FROM
  15345. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15346. 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';
  15347. --- ************************************************
  15348. --- *** relation: vertebrate_ig_t_cell_receptor_rearranged_gene_cluster ***
  15349. --- *** relation type: VIEW ***
  15350. --- *** ***
  15351. --- ************************************************
  15352. ---
  15353. CREATE VIEW vertebrate_ig_t_cell_receptor_rearranged_gene_cluster AS
  15354. SELECT
  15355. feature_id AS vertebrate_ig_t_cell_receptor_rearranged_gene_cluster_id,
  15356. feature.*
  15357. FROM
  15358. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15359. 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';
  15360. --- ************************************************
  15361. --- *** relation: vertebrate_immune_system_gene_recombination_signal_feature ***
  15362. --- *** relation type: VIEW ***
  15363. --- *** ***
  15364. --- ************************************************
  15365. ---
  15366. CREATE VIEW vertebrate_immune_system_gene_recombination_signal_feature AS
  15367. SELECT
  15368. feature_id AS vertebrate_immune_system_gene_recombination_signal_feature_id,
  15369. feature.*
  15370. FROM
  15371. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15372. 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';
  15373. --- ************************************************
  15374. --- *** relation: recombinationally_rearranged ***
  15375. --- *** relation type: VIEW ***
  15376. --- *** ***
  15377. --- ************************************************
  15378. ---
  15379. CREATE VIEW recombinationally_rearranged AS
  15380. SELECT
  15381. feature_id AS recombinationally_rearranged_id,
  15382. feature.*
  15383. FROM
  15384. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15385. WHERE cvterm.name = 'recombinationally_rearranged';
  15386. --- ************************************************
  15387. --- *** relation: recombinationally_rearranged_vertebrate_immune_system_gene ***
  15388. --- *** relation type: VIEW ***
  15389. --- *** ***
  15390. --- *** A recombinationally rearranged gene of t ***
  15391. --- *** he vertebrate immune system. ***
  15392. --- ************************************************
  15393. ---
  15394. CREATE VIEW recombinationally_rearranged_vertebrate_immune_system_gene AS
  15395. SELECT
  15396. feature_id AS recombinationally_rearranged_vertebrate_immune_system_gene_id,
  15397. feature.*
  15398. FROM
  15399. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15400. WHERE cvterm.name = 'recombinationally_rearranged_vertebrate_immune_system_gene';
  15401. --- ************************************************
  15402. --- *** relation: attp_site ***
  15403. --- *** relation type: VIEW ***
  15404. --- *** ***
  15405. --- *** An integration/excision site of a phage ***
  15406. --- *** chromosome at which a recombinase acts t ***
  15407. --- *** o insert the phage DNA at a cognate inte ***
  15408. --- *** gration/excision site on a bacterial chr ***
  15409. --- *** omosome. ***
  15410. --- ************************************************
  15411. ---
  15412. CREATE VIEW attp_site AS
  15413. SELECT
  15414. feature_id AS attp_site_id,
  15415. feature.*
  15416. FROM
  15417. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15418. WHERE cvterm.name = 'attP_site';
  15419. --- ************************************************
  15420. --- *** relation: attb_site ***
  15421. --- *** relation type: VIEW ***
  15422. --- *** ***
  15423. --- *** An integration/excision site of a bacter ***
  15424. --- *** ial chromosome at which a recombinase ac ***
  15425. --- *** ts to insert foreign DNA containing a co ***
  15426. --- *** gnate integration/excision site. ***
  15427. --- ************************************************
  15428. ---
  15429. CREATE VIEW attb_site AS
  15430. SELECT
  15431. feature_id AS attb_site_id,
  15432. feature.*
  15433. FROM
  15434. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15435. WHERE cvterm.name = 'attB_site';
  15436. --- ************************************************
  15437. --- *** relation: attl_site ***
  15438. --- *** relation type: VIEW ***
  15439. --- *** ***
  15440. --- *** A region that results from recombination ***
  15441. --- *** between attP_site and attB_site, compos ***
  15442. --- *** ed of the 5' portion of attB_site and th ***
  15443. --- *** e 3' portion of attP_site. ***
  15444. --- ************************************************
  15445. ---
  15446. CREATE VIEW attl_site AS
  15447. SELECT
  15448. feature_id AS attl_site_id,
  15449. feature.*
  15450. FROM
  15451. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15452. WHERE cvterm.name = 'attL_site';
  15453. --- ************************************************
  15454. --- *** relation: attr_site ***
  15455. --- *** relation type: VIEW ***
  15456. --- *** ***
  15457. --- *** A region that results from recombination ***
  15458. --- *** between attP_site and attB_site, compos ***
  15459. --- *** ed of the 5' portion of attP_site and th ***
  15460. --- *** e 3' portion of attB_site. ***
  15461. --- ************************************************
  15462. ---
  15463. CREATE VIEW attr_site AS
  15464. SELECT
  15465. feature_id AS attr_site_id,
  15466. feature.*
  15467. FROM
  15468. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15469. WHERE cvterm.name = 'attR_site';
  15470. --- ************************************************
  15471. --- *** relation: integration_excision_site ***
  15472. --- *** relation type: VIEW ***
  15473. --- *** ***
  15474. --- *** A region specifically recognised by a re ***
  15475. --- *** combinase, which inserts or removes anot ***
  15476. --- *** her region marked by a distinct cognate ***
  15477. --- *** integration/excision site. ***
  15478. --- ************************************************
  15479. ---
  15480. CREATE VIEW integration_excision_site AS
  15481. SELECT
  15482. feature_id AS integration_excision_site_id,
  15483. feature.*
  15484. FROM
  15485. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15486. 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';
  15487. --- ************************************************
  15488. --- *** relation: resolution_site ***
  15489. --- *** relation type: VIEW ***
  15490. --- *** ***
  15491. --- *** A region specifically recognised by a re ***
  15492. --- *** combinase, which separates a physically ***
  15493. --- *** contiguous circle of DNA into two physic ***
  15494. --- *** ally separate circles. ***
  15495. --- ************************************************
  15496. ---
  15497. CREATE VIEW resolution_site AS
  15498. SELECT
  15499. feature_id AS resolution_site_id,
  15500. feature.*
  15501. FROM
  15502. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15503. WHERE cvterm.name = 'loxP_site' OR cvterm.name = 'dif_site' OR cvterm.name = 'resolution_site';
  15504. --- ************************************************
  15505. --- *** relation: inversion_site ***
  15506. --- *** relation type: VIEW ***
  15507. --- *** ***
  15508. --- *** A region specifically recognised by a re ***
  15509. --- *** combinase, which inverts the region flan ***
  15510. --- *** ked by a pair of sites. ***
  15511. --- ************************************************
  15512. ---
  15513. CREATE VIEW inversion_site AS
  15514. SELECT
  15515. feature_id AS inversion_site_id,
  15516. feature.*
  15517. FROM
  15518. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15519. WHERE cvterm.name = 'FRT_site' OR cvterm.name = 'inversion_site';
  15520. --- ************************************************
  15521. --- *** relation: dif_site ***
  15522. --- *** relation type: VIEW ***
  15523. --- *** ***
  15524. --- *** A site at which replicated bacterial cir ***
  15525. --- *** cular chromosomes are decatenated by sit ***
  15526. --- *** e specific resolvase. ***
  15527. --- ************************************************
  15528. ---
  15529. CREATE VIEW dif_site AS
  15530. SELECT
  15531. feature_id AS dif_site_id,
  15532. feature.*
  15533. FROM
  15534. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15535. WHERE cvterm.name = 'dif_site';
  15536. --- ************************************************
  15537. --- *** relation: attc_site ***
  15538. --- *** relation type: VIEW ***
  15539. --- *** ***
  15540. --- *** An attC site is a sequence required for ***
  15541. --- *** the integration of a DNA of an integron. ***
  15542. --- ************************************************
  15543. ---
  15544. CREATE VIEW attc_site AS
  15545. SELECT
  15546. feature_id AS attc_site_id,
  15547. feature.*
  15548. FROM
  15549. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15550. WHERE cvterm.name = 'attC_site';
  15551. --- ************************************************
  15552. --- *** relation: eukaryotic_terminator ***
  15553. --- *** relation type: VIEW ***
  15554. --- *** ***
  15555. --- ************************************************
  15556. ---
  15557. CREATE VIEW eukaryotic_terminator AS
  15558. SELECT
  15559. feature_id AS eukaryotic_terminator_id,
  15560. feature.*
  15561. FROM
  15562. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15563. WHERE cvterm.name = 'terminator_of_type_2_RNApol_III_promoter' OR cvterm.name = 'eukaryotic_terminator';
  15564. --- ************************************************
  15565. --- *** relation: oriv ***
  15566. --- *** relation type: VIEW ***
  15567. --- *** ***
  15568. --- *** An origin of vegetative replication in p ***
  15569. --- *** lasmids and phages. ***
  15570. --- ************************************************
  15571. ---
  15572. CREATE VIEW oriv AS
  15573. SELECT
  15574. feature_id AS oriv_id,
  15575. feature.*
  15576. FROM
  15577. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15578. WHERE cvterm.name = 'oriV';
  15579. --- ************************************************
  15580. --- *** relation: oric ***
  15581. --- *** relation type: VIEW ***
  15582. --- *** ***
  15583. --- *** An origin of bacterial chromosome replic ***
  15584. --- *** ation. ***
  15585. --- ************************************************
  15586. ---
  15587. CREATE VIEW oric AS
  15588. SELECT
  15589. feature_id AS oric_id,
  15590. feature.*
  15591. FROM
  15592. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15593. WHERE cvterm.name = 'oriC';
  15594. --- ************************************************
  15595. --- *** relation: dna_chromosome ***
  15596. --- *** relation type: VIEW ***
  15597. --- *** ***
  15598. --- *** Structural unit composed of a self-repli ***
  15599. --- *** cating, DNA molecule. ***
  15600. --- ************************************************
  15601. ---
  15602. CREATE VIEW dna_chromosome AS
  15603. SELECT
  15604. feature_id AS dna_chromosome_id,
  15605. feature.*
  15606. FROM
  15607. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15608. 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';
  15609. --- ************************************************
  15610. --- *** relation: double_stranded_dna_chromosome ***
  15611. --- *** relation type: VIEW ***
  15612. --- *** ***
  15613. --- *** Structural unit composed of a self-repli ***
  15614. --- *** cating, double-stranded DNA molecule. ***
  15615. --- ************************************************
  15616. ---
  15617. CREATE VIEW double_stranded_dna_chromosome AS
  15618. SELECT
  15619. feature_id AS double_stranded_dna_chromosome_id,
  15620. feature.*
  15621. FROM
  15622. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15623. WHERE cvterm.name = 'linear_double_stranded_DNA_chromosome' OR cvterm.name = 'circular_double_stranded_DNA_chromosome' OR cvterm.name = 'double_stranded_DNA_chromosome';
  15624. --- ************************************************
  15625. --- *** relation: single_stranded_dna_chromosome ***
  15626. --- *** relation type: VIEW ***
  15627. --- *** ***
  15628. --- *** Structural unit composed of a self-repli ***
  15629. --- *** cating, single-stranded DNA molecule. ***
  15630. --- ************************************************
  15631. ---
  15632. CREATE VIEW single_stranded_dna_chromosome AS
  15633. SELECT
  15634. feature_id AS single_stranded_dna_chromosome_id,
  15635. feature.*
  15636. FROM
  15637. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15638. WHERE cvterm.name = 'linear_single_stranded_DNA_chromosome' OR cvterm.name = 'circular_single_stranded_DNA_chromosome' OR cvterm.name = 'single_stranded_DNA_chromosome';
  15639. --- ************************************************
  15640. --- *** relation: linear_double_stranded_dna_chromosome ***
  15641. --- *** relation type: VIEW ***
  15642. --- *** ***
  15643. --- *** Structural unit composed of a self-repli ***
  15644. --- *** cating, double-stranded, linear DNA mole ***
  15645. --- *** cule. ***
  15646. --- ************************************************
  15647. ---
  15648. CREATE VIEW linear_double_stranded_dna_chromosome AS
  15649. SELECT
  15650. feature_id AS linear_double_stranded_dna_chromosome_id,
  15651. feature.*
  15652. FROM
  15653. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15654. WHERE cvterm.name = 'linear_double_stranded_DNA_chromosome';
  15655. --- ************************************************
  15656. --- *** relation: circular_double_stranded_dna_chromosome ***
  15657. --- *** relation type: VIEW ***
  15658. --- *** ***
  15659. --- *** Structural unit composed of a self-repli ***
  15660. --- *** cating, double-stranded, circular DNA mo ***
  15661. --- *** lecule. ***
  15662. --- ************************************************
  15663. ---
  15664. CREATE VIEW circular_double_stranded_dna_chromosome AS
  15665. SELECT
  15666. feature_id AS circular_double_stranded_dna_chromosome_id,
  15667. feature.*
  15668. FROM
  15669. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15670. WHERE cvterm.name = 'circular_double_stranded_DNA_chromosome';
  15671. --- ************************************************
  15672. --- *** relation: linear_single_stranded_dna_chromosome ***
  15673. --- *** relation type: VIEW ***
  15674. --- *** ***
  15675. --- *** Structural unit composed of a self-repli ***
  15676. --- *** cating, single-stranded, linear DNA mole ***
  15677. --- *** cule. ***
  15678. --- ************************************************
  15679. ---
  15680. CREATE VIEW linear_single_stranded_dna_chromosome AS
  15681. SELECT
  15682. feature_id AS linear_single_stranded_dna_chromosome_id,
  15683. feature.*
  15684. FROM
  15685. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15686. WHERE cvterm.name = 'linear_single_stranded_DNA_chromosome';
  15687. --- ************************************************
  15688. --- *** relation: circular_single_stranded_dna_chromosome ***
  15689. --- *** relation type: VIEW ***
  15690. --- *** ***
  15691. --- *** Structural unit composed of a self-repli ***
  15692. --- *** cating, single-stranded, circular DNA mo ***
  15693. --- *** lecule. ***
  15694. --- ************************************************
  15695. ---
  15696. CREATE VIEW circular_single_stranded_dna_chromosome AS
  15697. SELECT
  15698. feature_id AS circular_single_stranded_dna_chromosome_id,
  15699. feature.*
  15700. FROM
  15701. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15702. WHERE cvterm.name = 'circular_single_stranded_DNA_chromosome';
  15703. --- ************************************************
  15704. --- *** relation: rna_chromosome ***
  15705. --- *** relation type: VIEW ***
  15706. --- *** ***
  15707. --- *** Structural unit composed of a self-repli ***
  15708. --- *** cating, RNA molecule. ***
  15709. --- ************************************************
  15710. ---
  15711. CREATE VIEW rna_chromosome AS
  15712. SELECT
  15713. feature_id AS rna_chromosome_id,
  15714. feature.*
  15715. FROM
  15716. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15717. 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';
  15718. --- ************************************************
  15719. --- *** relation: single_stranded_rna_chromosome ***
  15720. --- *** relation type: VIEW ***
  15721. --- *** ***
  15722. --- *** Structural unit composed of a self-repli ***
  15723. --- *** cating, single-stranded RNA molecule. ***
  15724. --- ************************************************
  15725. ---
  15726. CREATE VIEW single_stranded_rna_chromosome AS
  15727. SELECT
  15728. feature_id AS single_stranded_rna_chromosome_id,
  15729. feature.*
  15730. FROM
  15731. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15732. WHERE cvterm.name = 'linear_single_stranded_RNA_chromosome' OR cvterm.name = 'circular_single_stranded_RNA_chromosome' OR cvterm.name = 'single_stranded_RNA_chromosome';
  15733. --- ************************************************
  15734. --- *** relation: linear_single_stranded_rna_chromosome ***
  15735. --- *** relation type: VIEW ***
  15736. --- *** ***
  15737. --- *** Structural unit composed of a self-repli ***
  15738. --- *** cating, single-stranded, linear RNA mole ***
  15739. --- *** cule. ***
  15740. --- ************************************************
  15741. ---
  15742. CREATE VIEW linear_single_stranded_rna_chromosome AS
  15743. SELECT
  15744. feature_id AS linear_single_stranded_rna_chromosome_id,
  15745. feature.*
  15746. FROM
  15747. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15748. WHERE cvterm.name = 'linear_single_stranded_RNA_chromosome';
  15749. --- ************************************************
  15750. --- *** relation: linear_double_stranded_rna_chromosome ***
  15751. --- *** relation type: VIEW ***
  15752. --- *** ***
  15753. --- *** Structural unit composed of a self-repli ***
  15754. --- *** cating, double-stranded, linear RNA mole ***
  15755. --- *** cule. ***
  15756. --- ************************************************
  15757. ---
  15758. CREATE VIEW linear_double_stranded_rna_chromosome AS
  15759. SELECT
  15760. feature_id AS linear_double_stranded_rna_chromosome_id,
  15761. feature.*
  15762. FROM
  15763. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15764. WHERE cvterm.name = 'linear_double_stranded_RNA_chromosome';
  15765. --- ************************************************
  15766. --- *** relation: double_stranded_rna_chromosome ***
  15767. --- *** relation type: VIEW ***
  15768. --- *** ***
  15769. --- *** Structural unit composed of a self-repli ***
  15770. --- *** cating, double-stranded RNA molecule. ***
  15771. --- ************************************************
  15772. ---
  15773. CREATE VIEW double_stranded_rna_chromosome AS
  15774. SELECT
  15775. feature_id AS double_stranded_rna_chromosome_id,
  15776. feature.*
  15777. FROM
  15778. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15779. WHERE cvterm.name = 'linear_double_stranded_RNA_chromosome' OR cvterm.name = 'circular_double_stranded_RNA_chromosome' OR cvterm.name = 'double_stranded_RNA_chromosome';
  15780. --- ************************************************
  15781. --- *** relation: circular_single_stranded_rna_chromosome ***
  15782. --- *** relation type: VIEW ***
  15783. --- *** ***
  15784. --- *** Structural unit composed of a self-repli ***
  15785. --- *** cating, single-stranded, circular DNA mo ***
  15786. --- *** lecule. ***
  15787. --- ************************************************
  15788. ---
  15789. CREATE VIEW circular_single_stranded_rna_chromosome AS
  15790. SELECT
  15791. feature_id AS circular_single_stranded_rna_chromosome_id,
  15792. feature.*
  15793. FROM
  15794. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15795. WHERE cvterm.name = 'circular_single_stranded_RNA_chromosome';
  15796. --- ************************************************
  15797. --- *** relation: circular_double_stranded_rna_chromosome ***
  15798. --- *** relation type: VIEW ***
  15799. --- *** ***
  15800. --- *** Structural unit composed of a self-repli ***
  15801. --- *** cating, double-stranded, circular RNA mo ***
  15802. --- *** lecule. ***
  15803. --- ************************************************
  15804. ---
  15805. CREATE VIEW circular_double_stranded_rna_chromosome AS
  15806. SELECT
  15807. feature_id AS circular_double_stranded_rna_chromosome_id,
  15808. feature.*
  15809. FROM
  15810. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15811. WHERE cvterm.name = 'circular_double_stranded_RNA_chromosome';
  15812. --- ************************************************
  15813. --- *** relation: insertion_sequence ***
  15814. --- *** relation type: VIEW ***
  15815. --- *** ***
  15816. --- *** A terminal_inverted_repeat_element that ***
  15817. --- *** is bacterial and only encodes the functi ***
  15818. --- *** ons required for its transposition betwe ***
  15819. --- *** en these inverted repeats. ***
  15820. --- ************************************************
  15821. ---
  15822. CREATE VIEW insertion_sequence AS
  15823. SELECT
  15824. feature_id AS insertion_sequence_id,
  15825. feature.*
  15826. FROM
  15827. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15828. WHERE cvterm.name = 'insertion_sequence';
  15829. --- ************************************************
  15830. --- *** relation: minicircle_gene ***
  15831. --- *** relation type: VIEW ***
  15832. --- *** ***
  15833. --- ************************************************
  15834. ---
  15835. CREATE VIEW minicircle_gene AS
  15836. SELECT
  15837. feature_id AS minicircle_gene_id,
  15838. feature.*
  15839. FROM
  15840. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15841. WHERE cvterm.name = 'minicircle_gene';
  15842. --- ************************************************
  15843. --- *** relation: cryptic ***
  15844. --- *** relation type: VIEW ***
  15845. --- *** ***
  15846. --- *** A feature_attribute describing a feature ***
  15847. --- *** that is not manifest under normal condi ***
  15848. --- *** tions. ***
  15849. --- ************************************************
  15850. ---
  15851. CREATE VIEW cryptic AS
  15852. SELECT
  15853. feature_id AS cryptic_id,
  15854. feature.*
  15855. FROM
  15856. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15857. WHERE cvterm.name = 'cryptic';
  15858. --- ************************************************
  15859. --- *** relation: anchor_binding_site ***
  15860. --- *** relation type: VIEW ***
  15861. --- *** ***
  15862. --- ************************************************
  15863. ---
  15864. CREATE VIEW anchor_binding_site AS
  15865. SELECT
  15866. feature_id AS anchor_binding_site_id,
  15867. feature.*
  15868. FROM
  15869. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15870. WHERE cvterm.name = 'anchor_binding_site';
  15871. --- ************************************************
  15872. --- *** relation: template_region ***
  15873. --- *** relation type: VIEW ***
  15874. --- *** ***
  15875. --- *** A region of a guide_RNA that specifies t ***
  15876. --- *** he insertions and deletions of bases in ***
  15877. --- *** the editing of a target mRNA. ***
  15878. --- ************************************************
  15879. ---
  15880. CREATE VIEW template_region AS
  15881. SELECT
  15882. feature_id AS template_region_id,
  15883. feature.*
  15884. FROM
  15885. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15886. WHERE cvterm.name = 'template_region';
  15887. --- ************************************************
  15888. --- *** relation: grna_encoding ***
  15889. --- *** relation type: VIEW ***
  15890. --- *** ***
  15891. --- *** A non-protein_coding gene that encodes a ***
  15892. --- *** guide_RNA. ***
  15893. --- ************************************************
  15894. ---
  15895. CREATE VIEW grna_encoding AS
  15896. SELECT
  15897. feature_id AS grna_encoding_id,
  15898. feature.*
  15899. FROM
  15900. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15901. WHERE cvterm.name = 'gRNA_encoding';
  15902. --- ************************************************
  15903. --- *** relation: minicircle ***
  15904. --- *** relation type: VIEW ***
  15905. --- *** ***
  15906. --- *** A minicircle is a replicon, part of a ki ***
  15907. --- *** netoplast, that encodes for guide RNAs. ***
  15908. --- ************************************************
  15909. ---
  15910. CREATE VIEW minicircle AS
  15911. SELECT
  15912. feature_id AS minicircle_id,
  15913. feature.*
  15914. FROM
  15915. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15916. WHERE cvterm.name = 'minicircle';
  15917. --- ************************************************
  15918. --- *** relation: rho_dependent_bacterial_terminator ***
  15919. --- *** relation type: VIEW ***
  15920. --- *** ***
  15921. --- ************************************************
  15922. ---
  15923. CREATE VIEW rho_dependent_bacterial_terminator AS
  15924. SELECT
  15925. feature_id AS rho_dependent_bacterial_terminator_id,
  15926. feature.*
  15927. FROM
  15928. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15929. WHERE cvterm.name = 'rho_dependent_bacterial_terminator';
  15930. --- ************************************************
  15931. --- *** relation: rho_independent_bacterial_terminator ***
  15932. --- *** relation type: VIEW ***
  15933. --- *** ***
  15934. --- ************************************************
  15935. ---
  15936. CREATE VIEW rho_independent_bacterial_terminator AS
  15937. SELECT
  15938. feature_id AS rho_independent_bacterial_terminator_id,
  15939. feature.*
  15940. FROM
  15941. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15942. WHERE cvterm.name = 'rho_independent_bacterial_terminator';
  15943. --- ************************************************
  15944. --- *** relation: strand_attribute ***
  15945. --- *** relation type: VIEW ***
  15946. --- *** ***
  15947. --- ************************************************
  15948. ---
  15949. CREATE VIEW strand_attribute AS
  15950. SELECT
  15951. feature_id AS strand_attribute_id,
  15952. feature.*
  15953. FROM
  15954. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15955. WHERE cvterm.name = 'single' OR cvterm.name = 'double' OR cvterm.name = 'strand_attribute';
  15956. --- ************************************************
  15957. --- *** relation: single ***
  15958. --- *** relation type: VIEW ***
  15959. --- *** ***
  15960. --- ************************************************
  15961. ---
  15962. CREATE VIEW single AS
  15963. SELECT
  15964. feature_id AS single_id,
  15965. feature.*
  15966. FROM
  15967. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15968. WHERE cvterm.name = 'single';
  15969. --- ************************************************
  15970. --- *** relation: double ***
  15971. --- *** relation type: VIEW ***
  15972. --- *** ***
  15973. --- ************************************************
  15974. ---
  15975. CREATE VIEW double AS
  15976. SELECT
  15977. feature_id AS double_id,
  15978. feature.*
  15979. FROM
  15980. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15981. WHERE cvterm.name = 'double';
  15982. --- ************************************************
  15983. --- *** relation: topology_attribute ***
  15984. --- *** relation type: VIEW ***
  15985. --- *** ***
  15986. --- ************************************************
  15987. ---
  15988. CREATE VIEW topology_attribute AS
  15989. SELECT
  15990. feature_id AS topology_attribute_id,
  15991. feature.*
  15992. FROM
  15993. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15994. WHERE cvterm.name = 'linear' OR cvterm.name = 'circular' OR cvterm.name = 'topology_attribute';
  15995. --- ************************************************
  15996. --- *** relation: linear ***
  15997. --- *** relation type: VIEW ***
  15998. --- *** ***
  15999. --- *** A quality of a nucleotide polymer that h ***
  16000. --- *** as a 3'-terminal residue and a 5'-termin ***
  16001. --- *** al residue. ***
  16002. --- ************************************************
  16003. ---
  16004. CREATE VIEW linear AS
  16005. SELECT
  16006. feature_id AS linear_id,
  16007. feature.*
  16008. FROM
  16009. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16010. WHERE cvterm.name = 'linear';
  16011. --- ************************************************
  16012. --- *** relation: circular ***
  16013. --- *** relation type: VIEW ***
  16014. --- *** ***
  16015. --- *** A quality of a nucleotide polymer that h ***
  16016. --- *** as no terminal nucleotide residues. ***
  16017. --- ************************************************
  16018. ---
  16019. CREATE VIEW circular AS
  16020. SELECT
  16021. feature_id AS circular_id,
  16022. feature.*
  16023. FROM
  16024. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16025. WHERE cvterm.name = 'circular';
  16026. --- ************************************************
  16027. --- *** relation: class_ii_rna ***
  16028. --- *** relation type: VIEW ***
  16029. --- *** ***
  16030. --- *** Small non-coding RNA (59-60 nt long) con ***
  16031. --- *** taining 5' and 3' ends that are predicte ***
  16032. --- *** d to come together to form a stem struct ***
  16033. --- *** ure. Identified in the social amoeba Dic ***
  16034. --- *** tyostelium discoideum and localized in t ***
  16035. --- *** he cytoplasm. ***
  16036. --- ************************************************
  16037. ---
  16038. CREATE VIEW class_ii_rna AS
  16039. SELECT
  16040. feature_id AS class_ii_rna_id,
  16041. feature.*
  16042. FROM
  16043. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16044. WHERE cvterm.name = 'class_II_RNA';
  16045. --- ************************************************
  16046. --- *** relation: class_i_rna ***
  16047. --- *** relation type: VIEW ***
  16048. --- *** ***
  16049. --- *** Small non-coding RNA (55-65 nt long) con ***
  16050. --- *** taining highly conserved 5' and 3' ends ***
  16051. --- *** (16 and 8 nt, respectively) that are pre ***
  16052. --- *** dicted to come together to form a stem s ***
  16053. --- *** tructure. Identified in the social amoeb ***
  16054. --- *** a Dictyostelium discoideum and localized ***
  16055. --- *** in the cytoplasm. ***
  16056. --- ************************************************
  16057. ---
  16058. CREATE VIEW class_i_rna AS
  16059. SELECT
  16060. feature_id AS class_i_rna_id,
  16061. feature.*
  16062. FROM
  16063. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16064. WHERE cvterm.name = 'class_I_RNA';
  16065. --- ************************************************
  16066. --- *** relation: genomic_dna ***
  16067. --- *** relation type: VIEW ***
  16068. --- *** ***
  16069. --- ************************************************
  16070. ---
  16071. CREATE VIEW genomic_dna AS
  16072. SELECT
  16073. feature_id AS genomic_dna_id,
  16074. feature.*
  16075. FROM
  16076. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16077. WHERE cvterm.name = 'genomic_DNA';
  16078. --- ************************************************
  16079. --- *** relation: bac_cloned_genomic_insert ***
  16080. --- *** relation type: VIEW ***
  16081. --- *** ***
  16082. --- ************************************************
  16083. ---
  16084. CREATE VIEW bac_cloned_genomic_insert AS
  16085. SELECT
  16086. feature_id AS bac_cloned_genomic_insert_id,
  16087. feature.*
  16088. FROM
  16089. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16090. WHERE cvterm.name = 'BAC_cloned_genomic_insert';
  16091. --- ************************************************
  16092. --- *** relation: consensus ***
  16093. --- *** relation type: VIEW ***
  16094. --- *** ***
  16095. --- ************************************************
  16096. ---
  16097. CREATE VIEW consensus AS
  16098. SELECT
  16099. feature_id AS consensus_id,
  16100. feature.*
  16101. FROM
  16102. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16103. WHERE cvterm.name = 'consensus';
  16104. --- ************************************************
  16105. --- *** relation: consensus_region ***
  16106. --- *** relation type: VIEW ***
  16107. --- *** ***
  16108. --- ************************************************
  16109. ---
  16110. CREATE VIEW consensus_region AS
  16111. SELECT
  16112. feature_id AS consensus_region_id,
  16113. feature.*
  16114. FROM
  16115. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16116. WHERE cvterm.name = 'consensus_mRNA' OR cvterm.name = 'consensus_region';
  16117. --- ************************************************
  16118. --- *** relation: consensus_mrna ***
  16119. --- *** relation type: VIEW ***
  16120. --- *** ***
  16121. --- ************************************************
  16122. ---
  16123. CREATE VIEW consensus_mrna AS
  16124. SELECT
  16125. feature_id AS consensus_mrna_id,
  16126. feature.*
  16127. FROM
  16128. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16129. WHERE cvterm.name = 'consensus_mRNA';
  16130. --- ************************************************
  16131. --- *** relation: predicted_gene ***
  16132. --- *** relation type: VIEW ***
  16133. --- *** ***
  16134. --- ************************************************
  16135. ---
  16136. CREATE VIEW predicted_gene AS
  16137. SELECT
  16138. feature_id AS predicted_gene_id,
  16139. feature.*
  16140. FROM
  16141. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16142. WHERE cvterm.name = 'predicted_gene';
  16143. --- ************************************************
  16144. --- *** relation: gene_fragment ***
  16145. --- *** relation type: VIEW ***
  16146. --- *** ***
  16147. --- ************************************************
  16148. ---
  16149. CREATE VIEW gene_fragment AS
  16150. SELECT
  16151. feature_id AS gene_fragment_id,
  16152. feature.*
  16153. FROM
  16154. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16155. WHERE cvterm.name = 'gene_fragment';
  16156. --- ************************************************
  16157. --- *** relation: recursive_splice_site ***
  16158. --- *** relation type: VIEW ***
  16159. --- *** ***
  16160. --- *** A recursive splice site is a splice site ***
  16161. --- *** which subdivides a large intron. Recurs ***
  16162. --- *** ive splicing is a mechanism that splices ***
  16163. --- *** large introns by sub dividing the intro ***
  16164. --- *** n at non exonic elements and alternate e ***
  16165. --- *** xons. ***
  16166. --- ************************************************
  16167. ---
  16168. CREATE VIEW recursive_splice_site AS
  16169. SELECT
  16170. feature_id AS recursive_splice_site_id,
  16171. feature.*
  16172. FROM
  16173. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16174. WHERE cvterm.name = 'recursive_splice_site';
  16175. --- ************************************************
  16176. --- *** relation: bac_end ***
  16177. --- *** relation type: VIEW ***
  16178. --- *** ***
  16179. --- *** A region of sequence from the end of a B ***
  16180. --- *** AC clone that may provide a highly speci ***
  16181. --- *** fic marker. ***
  16182. --- ************************************************
  16183. ---
  16184. CREATE VIEW bac_end AS
  16185. SELECT
  16186. feature_id AS bac_end_id,
  16187. feature.*
  16188. FROM
  16189. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16190. WHERE cvterm.name = 'BAC_end';
  16191. --- ************************************************
  16192. --- *** relation: rrna_16s ***
  16193. --- *** relation type: VIEW ***
  16194. --- *** ***
  16195. --- *** A large polynucleotide in Bacteria and A ***
  16196. --- *** rchaea, which functions as the small sub ***
  16197. --- *** unit of the ribosome. ***
  16198. --- ************************************************
  16199. ---
  16200. CREATE VIEW rrna_16s AS
  16201. SELECT
  16202. feature_id AS rrna_16s_id,
  16203. feature.*
  16204. FROM
  16205. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16206. WHERE cvterm.name = 'rRNA_16S';
  16207. --- ************************************************
  16208. --- *** relation: rrna_23s ***
  16209. --- *** relation type: VIEW ***
  16210. --- *** ***
  16211. --- *** A large polynucleotide in Bacteria and A ***
  16212. --- *** rchaea, which functions as the large sub ***
  16213. --- *** unit of the ribosome. ***
  16214. --- ************************************************
  16215. ---
  16216. CREATE VIEW rrna_23s AS
  16217. SELECT
  16218. feature_id AS rrna_23s_id,
  16219. feature.*
  16220. FROM
  16221. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16222. WHERE cvterm.name = 'rRNA_23S';
  16223. --- ************************************************
  16224. --- *** relation: rrna_25s ***
  16225. --- *** relation type: VIEW ***
  16226. --- *** ***
  16227. --- *** A large polynucleotide which functions a ***
  16228. --- *** s part of the large subunit of the ribos ***
  16229. --- *** ome in some eukaryotes. ***
  16230. --- ************************************************
  16231. ---
  16232. CREATE VIEW rrna_25s AS
  16233. SELECT
  16234. feature_id AS rrna_25s_id,
  16235. feature.*
  16236. FROM
  16237. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16238. WHERE cvterm.name = 'rRNA_25S';
  16239. --- ************************************************
  16240. --- *** relation: solo_ltr ***
  16241. --- *** relation type: VIEW ***
  16242. --- *** ***
  16243. --- *** A recombination product between the 2 LT ***
  16244. --- *** R of the same element. ***
  16245. --- ************************************************
  16246. ---
  16247. CREATE VIEW solo_ltr AS
  16248. SELECT
  16249. feature_id AS solo_ltr_id,
  16250. feature.*
  16251. FROM
  16252. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16253. WHERE cvterm.name = 'solo_LTR';
  16254. --- ************************************************
  16255. --- *** relation: low_complexity ***
  16256. --- *** relation type: VIEW ***
  16257. --- *** ***
  16258. --- ************************************************
  16259. ---
  16260. CREATE VIEW low_complexity AS
  16261. SELECT
  16262. feature_id AS low_complexity_id,
  16263. feature.*
  16264. FROM
  16265. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16266. WHERE cvterm.name = 'low_complexity';
  16267. --- ************************************************
  16268. --- *** relation: low_complexity_region ***
  16269. --- *** relation type: VIEW ***
  16270. --- *** ***
  16271. --- ************************************************
  16272. ---
  16273. CREATE VIEW low_complexity_region AS
  16274. SELECT
  16275. feature_id AS low_complexity_region_id,
  16276. feature.*
  16277. FROM
  16278. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16279. WHERE cvterm.name = 'low_complexity_region';
  16280. --- ************************************************
  16281. --- *** relation: prophage ***
  16282. --- *** relation type: VIEW ***
  16283. --- *** ***
  16284. --- *** A phage genome after it has established ***
  16285. --- *** in the host genome in a latent/immune st ***
  16286. --- *** ate either as a plasmid or as an integra ***
  16287. --- *** ted "island". ***
  16288. --- ************************************************
  16289. ---
  16290. CREATE VIEW prophage AS
  16291. SELECT
  16292. feature_id AS prophage_id,
  16293. feature.*
  16294. FROM
  16295. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16296. WHERE cvterm.name = 'prophage';
  16297. --- ************************************************
  16298. --- *** relation: cryptic_prophage ***
  16299. --- *** relation type: VIEW ***
  16300. --- *** ***
  16301. --- *** A remnant of an integrated prophage in t ***
  16302. --- *** he host genome or an "island" in the hos ***
  16303. --- *** t genome that includes phage like-genes. ***
  16304. --- ************************************************
  16305. ---
  16306. CREATE VIEW cryptic_prophage AS
  16307. SELECT
  16308. feature_id AS cryptic_prophage_id,
  16309. feature.*
  16310. FROM
  16311. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16312. WHERE cvterm.name = 'cryptic_prophage';
  16313. --- ************************************************
  16314. --- *** relation: tetraloop ***
  16315. --- *** relation type: VIEW ***
  16316. --- *** ***
  16317. --- *** A base-paired stem with loop of 4 non-hy ***
  16318. --- *** drogen bonded nucleotides. ***
  16319. --- ************************************************
  16320. ---
  16321. CREATE VIEW tetraloop AS
  16322. SELECT
  16323. feature_id AS tetraloop_id,
  16324. feature.*
  16325. FROM
  16326. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16327. WHERE cvterm.name = 'tetraloop';
  16328. --- ************************************************
  16329. --- *** relation: dna_constraint_sequence ***
  16330. --- *** relation type: VIEW ***
  16331. --- *** ***
  16332. --- *** A double-stranded DNA used to control ma ***
  16333. --- *** cromolecular structure and function. ***
  16334. --- ************************************************
  16335. ---
  16336. CREATE VIEW dna_constraint_sequence AS
  16337. SELECT
  16338. feature_id AS dna_constraint_sequence_id,
  16339. feature.*
  16340. FROM
  16341. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16342. WHERE cvterm.name = 'DNA_constraint_sequence';
  16343. --- ************************************************
  16344. --- *** relation: i_motif ***
  16345. --- *** relation type: VIEW ***
  16346. --- *** ***
  16347. --- *** A cytosine rich domain whereby strands a ***
  16348. --- *** ssociate both inter- and intramolecularl ***
  16349. --- *** y at moderately acidic pH. ***
  16350. --- ************************************************
  16351. ---
  16352. CREATE VIEW i_motif AS
  16353. SELECT
  16354. feature_id AS i_motif_id,
  16355. feature.*
  16356. FROM
  16357. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16358. WHERE cvterm.name = 'i_motif';
  16359. --- ************************************************
  16360. --- *** relation: pna_oligo ***
  16361. --- *** relation type: VIEW ***
  16362. --- *** ***
  16363. --- *** Peptide nucleic acid, is a chemical not ***
  16364. --- *** known to occur naturally but is artifici ***
  16365. --- *** ally synthesized and used in some biolog ***
  16366. --- *** ical research and medical treatments. Th ***
  16367. --- *** e PNA backbone is composed of repeating ***
  16368. --- *** N-(2-aminoethyl)-glycine units linked by ***
  16369. --- *** peptide bonds. The purine and pyrimidin ***
  16370. --- *** e bases are linked to the backbone by me ***
  16371. --- *** thylene carbonyl bonds. ***
  16372. --- ************************************************
  16373. ---
  16374. CREATE VIEW pna_oligo AS
  16375. SELECT
  16376. feature_id AS pna_oligo_id,
  16377. feature.*
  16378. FROM
  16379. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16380. WHERE cvterm.name = 'PNA_oligo';
  16381. --- ************************************************
  16382. --- *** relation: dnazyme ***
  16383. --- *** relation type: VIEW ***
  16384. --- *** ***
  16385. --- *** A DNA sequence with catalytic activity. ***
  16386. --- ************************************************
  16387. ---
  16388. CREATE VIEW dnazyme AS
  16389. SELECT
  16390. feature_id AS dnazyme_id,
  16391. feature.*
  16392. FROM
  16393. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16394. WHERE cvterm.name = 'DNAzyme';
  16395. --- ************************************************
  16396. --- *** relation: mnp ***
  16397. --- *** relation type: VIEW ***
  16398. --- *** ***
  16399. --- *** A multiple nucleotide polymorphism with ***
  16400. --- *** alleles of common length > 1, for exampl ***
  16401. --- *** e AAA/TTT. ***
  16402. --- ************************************************
  16403. ---
  16404. CREATE VIEW mnp AS
  16405. SELECT
  16406. feature_id AS mnp_id,
  16407. feature.*
  16408. FROM
  16409. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16410. WHERE cvterm.name = 'MNP';
  16411. --- ************************************************
  16412. --- *** relation: intron_domain ***
  16413. --- *** relation type: VIEW ***
  16414. --- *** ***
  16415. --- ************************************************
  16416. ---
  16417. CREATE VIEW intron_domain AS
  16418. SELECT
  16419. feature_id AS intron_domain_id,
  16420. feature.*
  16421. FROM
  16422. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16423. WHERE cvterm.name = 'internal_guide_sequence' OR cvterm.name = 'mirtron' OR cvterm.name = 'intron_domain';
  16424. --- ************************************************
  16425. --- *** relation: wobble_base_pair ***
  16426. --- *** relation type: VIEW ***
  16427. --- *** ***
  16428. --- *** A type of non-canonical base pairing, mo ***
  16429. --- *** st commonly between G and U, which is im ***
  16430. --- *** portant for the secondary structure of R ***
  16431. --- *** NAs. It has similar thermodynamic stabil ***
  16432. --- *** ity to the Watson-Crick pairing. Wobble ***
  16433. --- *** base pairs only have two hydrogen bonds. ***
  16434. --- *** Other wobble base pair possibilities ar ***
  16435. --- *** e I-A, I-U and I-C. ***
  16436. --- ************************************************
  16437. ---
  16438. CREATE VIEW wobble_base_pair AS
  16439. SELECT
  16440. feature_id AS wobble_base_pair_id,
  16441. feature.*
  16442. FROM
  16443. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16444. WHERE cvterm.name = 'wobble_base_pair';
  16445. --- ************************************************
  16446. --- *** relation: internal_guide_sequence ***
  16447. --- *** relation type: VIEW ***
  16448. --- *** ***
  16449. --- *** A purine-rich sequence in the group I in ***
  16450. --- *** trons which determines the locations of ***
  16451. --- *** the splice sites in group I intron splic ***
  16452. --- *** ing and has catalytic activity. ***
  16453. --- ************************************************
  16454. ---
  16455. CREATE VIEW internal_guide_sequence AS
  16456. SELECT
  16457. feature_id AS internal_guide_sequence_id,
  16458. feature.*
  16459. FROM
  16460. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16461. WHERE cvterm.name = 'internal_guide_sequence';
  16462. --- ************************************************
  16463. --- *** relation: silent_mutation ***
  16464. --- *** relation type: VIEW ***
  16465. --- *** ***
  16466. --- *** A sequence variant that does not affect ***
  16467. --- *** protein function. Silent mutations may o ***
  16468. --- *** ccur in genic ( CDS, UTR, intron etc) an ***
  16469. --- *** d intergenic regions. Silent mutations m ***
  16470. --- *** ay have affects on processes such as spl ***
  16471. --- *** icing and regulation. ***
  16472. --- ************************************************
  16473. ---
  16474. CREATE VIEW silent_mutation AS
  16475. SELECT
  16476. feature_id AS silent_mutation_id,
  16477. feature.*
  16478. FROM
  16479. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16480. WHERE cvterm.name = 'silent_mutation';
  16481. --- ************************************************
  16482. --- *** relation: epitope ***
  16483. --- *** relation type: VIEW ***
  16484. --- *** ***
  16485. --- *** A binding site that, in the molecule, in ***
  16486. --- *** teracts selectively and non-covalently w ***
  16487. --- *** ith antibodies, B cells or T cells. ***
  16488. --- ************************************************
  16489. ---
  16490. CREATE VIEW epitope AS
  16491. SELECT
  16492. feature_id AS epitope_id,
  16493. feature.*
  16494. FROM
  16495. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16496. WHERE cvterm.name = 'epitope';
  16497. --- ************************************************
  16498. --- *** relation: copy_number_variation ***
  16499. --- *** relation type: VIEW ***
  16500. --- *** ***
  16501. --- *** A variation that increases or decreases ***
  16502. --- *** the copy number of a given region. ***
  16503. --- ************************************************
  16504. ---
  16505. CREATE VIEW copy_number_variation AS
  16506. SELECT
  16507. feature_id AS copy_number_variation_id,
  16508. feature.*
  16509. FROM
  16510. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16511. WHERE cvterm.name = 'copy_number_gain' OR cvterm.name = 'copy_number_loss' OR cvterm.name = 'copy_number_variation';
  16512. --- ************************************************
  16513. --- *** relation: chromosome_breakpoint ***
  16514. --- *** relation type: VIEW ***
  16515. --- *** ***
  16516. --- ************************************************
  16517. ---
  16518. CREATE VIEW chromosome_breakpoint AS
  16519. SELECT
  16520. feature_id AS chromosome_breakpoint_id,
  16521. feature.*
  16522. FROM
  16523. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16524. 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';
  16525. --- ************************************************
  16526. --- *** relation: inversion_breakpoint ***
  16527. --- *** relation type: VIEW ***
  16528. --- *** ***
  16529. --- *** The point within a chromosome where an i ***
  16530. --- *** nversion begins or ends. ***
  16531. --- ************************************************
  16532. ---
  16533. CREATE VIEW inversion_breakpoint AS
  16534. SELECT
  16535. feature_id AS inversion_breakpoint_id,
  16536. feature.*
  16537. FROM
  16538. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16539. WHERE cvterm.name = 'inversion_breakpoint';
  16540. --- ************************************************
  16541. --- *** relation: allele ***
  16542. --- *** relation type: VIEW ***
  16543. --- *** ***
  16544. --- *** An allele is one of a set of coexisting ***
  16545. --- *** sequence variants of a gene. ***
  16546. --- ************************************************
  16547. ---
  16548. CREATE VIEW allele AS
  16549. SELECT
  16550. feature_id AS allele_id,
  16551. feature.*
  16552. FROM
  16553. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16554. WHERE cvterm.name = 'polymorphic_sequence_variant' OR cvterm.name = 'allele';
  16555. --- ************************************************
  16556. --- *** relation: haplotype ***
  16557. --- *** relation type: VIEW ***
  16558. --- *** ***
  16559. --- *** A haplotype is one of a set of coexistin ***
  16560. --- *** g sequence variants of a haplotype block ***
  16561. --- *** . ***
  16562. --- ************************************************
  16563. ---
  16564. CREATE VIEW haplotype AS
  16565. SELECT
  16566. feature_id AS haplotype_id,
  16567. feature.*
  16568. FROM
  16569. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16570. WHERE cvterm.name = 'haplotype';
  16571. --- ************************************************
  16572. --- *** relation: polymorphic_sequence_variant ***
  16573. --- *** relation type: VIEW ***
  16574. --- *** ***
  16575. --- *** A sequence variant that is segregating i ***
  16576. --- *** n one or more natural populations of a s ***
  16577. --- *** pecies. ***
  16578. --- ************************************************
  16579. ---
  16580. CREATE VIEW polymorphic_sequence_variant AS
  16581. SELECT
  16582. feature_id AS polymorphic_sequence_variant_id,
  16583. feature.*
  16584. FROM
  16585. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16586. WHERE cvterm.name = 'polymorphic_sequence_variant';
  16587. --- ************************************************
  16588. --- *** relation: genome ***
  16589. --- *** relation type: VIEW ***
  16590. --- *** ***
  16591. --- *** A genome is the sum of genetic material ***
  16592. --- *** within a cell or virion. ***
  16593. --- ************************************************
  16594. ---
  16595. CREATE VIEW genome AS
  16596. SELECT
  16597. feature_id AS genome_id,
  16598. feature.*
  16599. FROM
  16600. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16601. WHERE cvterm.name = 'kinetoplast' OR cvterm.name = 'reference_genome' OR cvterm.name = 'variant_genome' OR cvterm.name = 'chromosomally_aberrant_genome' OR cvterm.name = 'genome';
  16602. --- ************************************************
  16603. --- *** relation: so_genotype ***
  16604. --- *** relation type: VIEW ***
  16605. --- *** ***
  16606. --- *** A genotype is a variant genome, complete ***
  16607. --- *** or incomplete. ***
  16608. --- ************************************************
  16609. ---
  16610. CREATE VIEW so_genotype AS
  16611. SELECT
  16612. feature_id AS so_genotype_id,
  16613. feature.*
  16614. FROM
  16615. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16616. WHERE cvterm.name = 'genotype';
  16617. --- ************************************************
  16618. --- *** relation: diplotype ***
  16619. --- *** relation type: VIEW ***
  16620. --- *** ***
  16621. --- *** A diplotype is a pair of haplotypes from ***
  16622. --- *** a given individual. It is a genotype wh ***
  16623. --- *** ere the phase is known. ***
  16624. --- ************************************************
  16625. ---
  16626. CREATE VIEW diplotype AS
  16627. SELECT
  16628. feature_id AS diplotype_id,
  16629. feature.*
  16630. FROM
  16631. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16632. WHERE cvterm.name = 'diplotype';
  16633. --- ************************************************
  16634. --- *** relation: direction_attribute ***
  16635. --- *** relation type: VIEW ***
  16636. --- *** ***
  16637. --- ************************************************
  16638. ---
  16639. CREATE VIEW direction_attribute AS
  16640. SELECT
  16641. feature_id AS direction_attribute_id,
  16642. feature.*
  16643. FROM
  16644. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16645. WHERE cvterm.name = 'forward' OR cvterm.name = 'reverse' OR cvterm.name = 'direction_attribute';
  16646. --- ************************************************
  16647. --- *** relation: forward ***
  16648. --- *** relation type: VIEW ***
  16649. --- *** ***
  16650. --- *** Forward is an attribute of the feature, ***
  16651. --- *** where the feature is in the 5' to 3' dir ***
  16652. --- *** ection. ***
  16653. --- ************************************************
  16654. ---
  16655. CREATE VIEW forward AS
  16656. SELECT
  16657. feature_id AS forward_id,
  16658. feature.*
  16659. FROM
  16660. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16661. WHERE cvterm.name = 'forward';
  16662. --- ************************************************
  16663. --- *** relation: reverse ***
  16664. --- *** relation type: VIEW ***
  16665. --- *** ***
  16666. --- *** Reverse is an attribute of the feature, ***
  16667. --- *** where the feature is in the 3' to 5' dir ***
  16668. --- *** ection. Again could be applied to primer ***
  16669. --- *** . ***
  16670. --- ************************************************
  16671. ---
  16672. CREATE VIEW reverse AS
  16673. SELECT
  16674. feature_id AS reverse_id,
  16675. feature.*
  16676. FROM
  16677. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16678. WHERE cvterm.name = 'reverse';
  16679. --- ************************************************
  16680. --- *** relation: mitochondrial_dna ***
  16681. --- *** relation type: VIEW ***
  16682. --- *** ***
  16683. --- ************************************************
  16684. ---
  16685. CREATE VIEW mitochondrial_dna AS
  16686. SELECT
  16687. feature_id AS mitochondrial_dna_id,
  16688. feature.*
  16689. FROM
  16690. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16691. WHERE cvterm.name = 'mitochondrial_DNA';
  16692. --- ************************************************
  16693. --- *** relation: chloroplast_dna ***
  16694. --- *** relation type: VIEW ***
  16695. --- *** ***
  16696. --- ************************************************
  16697. ---
  16698. CREATE VIEW chloroplast_dna AS
  16699. SELECT
  16700. feature_id AS chloroplast_dna_id,
  16701. feature.*
  16702. FROM
  16703. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16704. WHERE cvterm.name = 'chloroplast_DNA';
  16705. --- ************************************************
  16706. --- *** relation: mirtron ***
  16707. --- *** relation type: VIEW ***
  16708. --- *** ***
  16709. --- *** A de-branched intron which mimics the st ***
  16710. --- *** ructure of pre-miRNA and enters the miRN ***
  16711. --- *** A processing pathway without Drosha medi ***
  16712. --- *** ated cleavage. ***
  16713. --- ************************************************
  16714. ---
  16715. CREATE VIEW mirtron AS
  16716. SELECT
  16717. feature_id AS mirtron_id,
  16718. feature.*
  16719. FROM
  16720. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16721. WHERE cvterm.name = 'mirtron';
  16722. --- ************************************************
  16723. --- *** relation: pirna ***
  16724. --- *** relation type: VIEW ***
  16725. --- *** ***
  16726. --- *** A small non coding RNA, part of a silenc ***
  16727. --- *** ing system that prevents the spreading o ***
  16728. --- *** f selfish genetic elements. ***
  16729. --- ************************************************
  16730. ---
  16731. CREATE VIEW pirna AS
  16732. SELECT
  16733. feature_id AS pirna_id,
  16734. feature.*
  16735. FROM
  16736. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16737. WHERE cvterm.name = 'piRNA';
  16738. --- ************************************************
  16739. --- *** relation: arginyl_trna ***
  16740. --- *** relation type: VIEW ***
  16741. --- *** ***
  16742. --- *** A tRNA sequence that has an arginine ant ***
  16743. --- *** icodon, and a 3' arginine binding region ***
  16744. --- *** . ***
  16745. --- ************************************************
  16746. ---
  16747. CREATE VIEW arginyl_trna AS
  16748. SELECT
  16749. feature_id AS arginyl_trna_id,
  16750. feature.*
  16751. FROM
  16752. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16753. WHERE cvterm.name = 'arginyl_tRNA';
  16754. --- ************************************************
  16755. --- *** relation: mobile_genetic_element ***
  16756. --- *** relation type: VIEW ***
  16757. --- *** ***
  16758. --- *** A nucleotide region with either intra-ge ***
  16759. --- *** nome or intracellular moblity, of varyin ***
  16760. --- *** g length, which often carry the informat ***
  16761. --- *** ion necessary for transfer and recombina ***
  16762. --- *** tion with the host genome. ***
  16763. --- ************************************************
  16764. ---
  16765. CREATE VIEW mobile_genetic_element AS
  16766. SELECT
  16767. feature_id AS mobile_genetic_element_id,
  16768. feature.*
  16769. FROM
  16770. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16771. 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';
  16772. --- ************************************************
  16773. --- *** relation: extrachromosomal_mobile_genetic_element ***
  16774. --- *** relation type: VIEW ***
  16775. --- *** ***
  16776. --- *** An MGE that is not integrated into the h ***
  16777. --- *** ost chromosome. ***
  16778. --- ************************************************
  16779. ---
  16780. CREATE VIEW extrachromosomal_mobile_genetic_element AS
  16781. SELECT
  16782. feature_id AS extrachromosomal_mobile_genetic_element_id,
  16783. feature.*
  16784. FROM
  16785. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16786. 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';
  16787. --- ************************************************
  16788. --- *** relation: integrated_mobile_genetic_element ***
  16789. --- *** relation type: VIEW ***
  16790. --- *** ***
  16791. --- *** An MGE that is integrated into the host ***
  16792. --- *** chromosome. ***
  16793. --- ************************************************
  16794. ---
  16795. CREATE VIEW integrated_mobile_genetic_element AS
  16796. SELECT
  16797. feature_id AS integrated_mobile_genetic_element_id,
  16798. feature.*
  16799. FROM
  16800. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16801. 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';
  16802. --- ************************************************
  16803. --- *** relation: integrated_plasmid ***
  16804. --- *** relation type: VIEW ***
  16805. --- *** ***
  16806. --- *** A plasmid sequence that is integrated wi ***
  16807. --- *** thin the host chromosome. ***
  16808. --- ************************************************
  16809. ---
  16810. CREATE VIEW integrated_plasmid AS
  16811. SELECT
  16812. feature_id AS integrated_plasmid_id,
  16813. feature.*
  16814. FROM
  16815. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16816. WHERE cvterm.name = 'integrated_plasmid';
  16817. --- ************************************************
  16818. --- *** relation: viral_sequence ***
  16819. --- *** relation type: VIEW ***
  16820. --- *** ***
  16821. --- *** The region of nucleotide sequence of a v ***
  16822. --- *** irus, a submicroscopic particle that rep ***
  16823. --- *** licates by infecting a host cell. ***
  16824. --- ************************************************
  16825. ---
  16826. CREATE VIEW viral_sequence AS
  16827. SELECT
  16828. feature_id AS viral_sequence_id,
  16829. feature.*
  16830. FROM
  16831. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16832. 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';
  16833. --- ************************************************
  16834. --- *** relation: phage_sequence ***
  16835. --- *** relation type: VIEW ***
  16836. --- *** ***
  16837. --- *** The nucleotide sequence of a virus that ***
  16838. --- *** infects bacteria. ***
  16839. --- ************************************************
  16840. ---
  16841. CREATE VIEW phage_sequence AS
  16842. SELECT
  16843. feature_id AS phage_sequence_id,
  16844. feature.*
  16845. FROM
  16846. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16847. WHERE cvterm.name = 'phage_sequence';
  16848. --- ************************************************
  16849. --- *** relation: attctn_site ***
  16850. --- *** relation type: VIEW ***
  16851. --- *** ***
  16852. --- *** An attachment site located on a conjugat ***
  16853. --- *** ive transposon and used for site-specifi ***
  16854. --- *** c integration of a conjugative transposo ***
  16855. --- *** n. ***
  16856. --- ************************************************
  16857. ---
  16858. CREATE VIEW attctn_site AS
  16859. SELECT
  16860. feature_id AS attctn_site_id,
  16861. feature.*
  16862. FROM
  16863. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16864. WHERE cvterm.name = 'attCtn_site';
  16865. --- ************************************************
  16866. --- *** relation: nuclear_mt_pseudogene ***
  16867. --- *** relation type: VIEW ***
  16868. --- *** ***
  16869. --- *** A nuclear pseudogene of either coding or ***
  16870. --- *** non-coding mitochondria derived sequenc ***
  16871. --- *** e. ***
  16872. --- ************************************************
  16873. ---
  16874. CREATE VIEW nuclear_mt_pseudogene AS
  16875. SELECT
  16876. feature_id AS nuclear_mt_pseudogene_id,
  16877. feature.*
  16878. FROM
  16879. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16880. WHERE cvterm.name = 'nuclear_mt_pseudogene';
  16881. --- ************************************************
  16882. --- *** relation: cointegrated_plasmid ***
  16883. --- *** relation type: VIEW ***
  16884. --- *** ***
  16885. --- *** A MGE region consisting of two fused pla ***
  16886. --- *** smids resulting from a replicative trans ***
  16887. --- *** position event. ***
  16888. --- ************************************************
  16889. ---
  16890. CREATE VIEW cointegrated_plasmid AS
  16891. SELECT
  16892. feature_id AS cointegrated_plasmid_id,
  16893. feature.*
  16894. FROM
  16895. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16896. WHERE cvterm.name = 'cointegrated_plasmid';
  16897. --- ************************************************
  16898. --- *** relation: irlinv_site ***
  16899. --- *** relation type: VIEW ***
  16900. --- *** ***
  16901. --- *** Component of the inversion site located ***
  16902. --- *** at the left of a region susceptible to s ***
  16903. --- *** ite-specific inversion. ***
  16904. --- ************************************************
  16905. ---
  16906. CREATE VIEW irlinv_site AS
  16907. SELECT
  16908. feature_id AS irlinv_site_id,
  16909. feature.*
  16910. FROM
  16911. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16912. WHERE cvterm.name = 'IRLinv_site';
  16913. --- ************************************************
  16914. --- *** relation: irrinv_site ***
  16915. --- *** relation type: VIEW ***
  16916. --- *** ***
  16917. --- *** Component of the inversion site located ***
  16918. --- *** at the right of a region susceptible to ***
  16919. --- *** site-specific inversion. ***
  16920. --- ************************************************
  16921. ---
  16922. CREATE VIEW irrinv_site AS
  16923. SELECT
  16924. feature_id AS irrinv_site_id,
  16925. feature.*
  16926. FROM
  16927. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16928. WHERE cvterm.name = 'IRRinv_site';
  16929. --- ************************************************
  16930. --- *** relation: inversion_site_part ***
  16931. --- *** relation type: VIEW ***
  16932. --- *** ***
  16933. --- *** A region located within an inversion sit ***
  16934. --- *** e. ***
  16935. --- ************************************************
  16936. ---
  16937. CREATE VIEW inversion_site_part AS
  16938. SELECT
  16939. feature_id AS inversion_site_part_id,
  16940. feature.*
  16941. FROM
  16942. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16943. WHERE cvterm.name = 'IRLinv_site' OR cvterm.name = 'IRRinv_site' OR cvterm.name = 'inversion_site_part';
  16944. --- ************************************************
  16945. --- *** relation: defective_conjugative_transposon ***
  16946. --- *** relation type: VIEW ***
  16947. --- *** ***
  16948. --- *** An island that contains genes for integr ***
  16949. --- *** ation/excision and the gene and site for ***
  16950. --- *** the initiation of intercellular transfe ***
  16951. --- *** r by conjugation. It can be complemented ***
  16952. --- *** for transfer by a conjugative transposo ***
  16953. --- *** n. ***
  16954. --- ************************************************
  16955. ---
  16956. CREATE VIEW defective_conjugative_transposon AS
  16957. SELECT
  16958. feature_id AS defective_conjugative_transposon_id,
  16959. feature.*
  16960. FROM
  16961. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16962. WHERE cvterm.name = 'defective_conjugative_transposon';
  16963. --- ************************************************
  16964. --- *** relation: repeat_fragment ***
  16965. --- *** relation type: VIEW ***
  16966. --- *** ***
  16967. --- *** A portion of a repeat, interrupted by th ***
  16968. --- *** e insertion of another element. ***
  16969. --- ************************************************
  16970. ---
  16971. CREATE VIEW repeat_fragment AS
  16972. SELECT
  16973. feature_id AS repeat_fragment_id,
  16974. feature.*
  16975. FROM
  16976. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16977. WHERE cvterm.name = 'repeat_fragment';
  16978. --- ************************************************
  16979. --- *** relation: transposon_fragment ***
  16980. --- *** relation type: VIEW ***
  16981. --- *** ***
  16982. --- *** A portion of a transposon, interrupted b ***
  16983. --- *** y the insertion of another element. ***
  16984. --- ************************************************
  16985. ---
  16986. CREATE VIEW transposon_fragment AS
  16987. SELECT
  16988. feature_id AS transposon_fragment_id,
  16989. feature.*
  16990. FROM
  16991. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16992. WHERE cvterm.name = 'transposon_fragment';
  16993. --- ************************************************
  16994. --- *** relation: transcriptional_cis_regulatory_region ***
  16995. --- *** relation type: VIEW ***
  16996. --- *** ***
  16997. --- *** A regulatory_region that modulates the t ***
  16998. --- *** ranscription of a gene or genes. ***
  16999. --- ************************************************
  17000. ---
  17001. CREATE VIEW transcriptional_cis_regulatory_region AS
  17002. SELECT
  17003. feature_id AS transcriptional_cis_regulatory_region_id,
  17004. feature.*
  17005. FROM
  17006. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17007. 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';
  17008. --- ************************************************
  17009. --- *** relation: splicing_regulatory_region ***
  17010. --- *** relation type: VIEW ***
  17011. --- *** ***
  17012. --- *** A regulatory_region that modulates splic ***
  17013. --- *** ing. ***
  17014. --- ************************************************
  17015. ---
  17016. CREATE VIEW splicing_regulatory_region AS
  17017. SELECT
  17018. feature_id AS splicing_regulatory_region_id,
  17019. feature.*
  17020. FROM
  17021. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17022. WHERE cvterm.name = 'splice_enhancer' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' OR cvterm.name = 'splicing_regulatory_region';
  17023. --- ************************************************
  17024. --- *** relation: promoter_targeting_sequence ***
  17025. --- *** relation type: VIEW ***
  17026. --- *** ***
  17027. --- *** A transcriptional_cis_regulatory_region ***
  17028. --- *** that restricts the activity of a CRM to ***
  17029. --- *** a single promoter and which functions on ***
  17030. --- *** ly when both itself and an insulator are ***
  17031. --- *** located between the CRM and the promote ***
  17032. --- *** r. ***
  17033. --- ************************************************
  17034. ---
  17035. CREATE VIEW promoter_targeting_sequence AS
  17036. SELECT
  17037. feature_id AS promoter_targeting_sequence_id,
  17038. feature.*
  17039. FROM
  17040. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17041. WHERE cvterm.name = 'promoter_targeting_sequence';
  17042. --- ************************************************
  17043. --- *** relation: sequence_alteration ***
  17044. --- *** relation type: VIEW ***
  17045. --- *** ***
  17046. --- *** A sequence_alteration is a sequence_feat ***
  17047. --- *** ure whose extent is the deviation from a ***
  17048. --- *** nother sequence. ***
  17049. --- ************************************************
  17050. ---
  17051. CREATE VIEW sequence_alteration AS
  17052. SELECT
  17053. feature_id AS sequence_alteration_id,
  17054. feature.*
  17055. FROM
  17056. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17057. 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';
  17058. --- ************************************************
  17059. --- *** relation: sequence_variant ***
  17060. --- *** relation type: VIEW ***
  17061. --- *** ***
  17062. --- *** A sequence_variant is a non exact copy o ***
  17063. --- *** f a sequence_feature or genome exhibitin ***
  17064. --- *** g one or more sequence_alteration. ***
  17065. --- ************************************************
  17066. ---
  17067. CREATE VIEW sequence_variant AS
  17068. SELECT
  17069. feature_id AS sequence_variant_id,
  17070. feature.*
  17071. FROM
  17072. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17073. 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';
  17074. --- ************************************************
  17075. --- *** relation: propeptide_cleavage_site ***
  17076. --- *** relation type: VIEW ***
  17077. --- *** ***
  17078. --- *** The propeptide_cleavage_site is the argi ***
  17079. --- *** nine/lysine boundary on a propeptide whe ***
  17080. --- *** re cleavage occurs. ***
  17081. --- ************************************************
  17082. ---
  17083. CREATE VIEW propeptide_cleavage_site AS
  17084. SELECT
  17085. feature_id AS propeptide_cleavage_site_id,
  17086. feature.*
  17087. FROM
  17088. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17089. WHERE cvterm.name = 'propeptide_cleavage_site';
  17090. --- ************************************************
  17091. --- *** relation: propeptide ***
  17092. --- *** relation type: VIEW ***
  17093. --- *** ***
  17094. --- *** Part of a peptide chain which is cleaved ***
  17095. --- *** off during the formation of the mature ***
  17096. --- *** protein. ***
  17097. --- ************************************************
  17098. ---
  17099. CREATE VIEW propeptide AS
  17100. SELECT
  17101. feature_id AS propeptide_id,
  17102. feature.*
  17103. FROM
  17104. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17105. WHERE cvterm.name = 'propeptide';
  17106. --- ************************************************
  17107. --- *** relation: immature_peptide_region ***
  17108. --- *** relation type: VIEW ***
  17109. --- *** ***
  17110. --- *** An immature_peptide_region is the extent ***
  17111. --- *** of the peptide after it has been transl ***
  17112. --- *** ated and before any processing occurs. ***
  17113. --- ************************************************
  17114. ---
  17115. CREATE VIEW immature_peptide_region AS
  17116. SELECT
  17117. feature_id AS immature_peptide_region_id,
  17118. feature.*
  17119. FROM
  17120. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17121. WHERE cvterm.name = 'immature_peptide_region';
  17122. --- ************************************************
  17123. --- *** relation: active_peptide ***
  17124. --- *** relation type: VIEW ***
  17125. --- *** ***
  17126. --- *** Active peptides are proteins which are b ***
  17127. --- *** iologically active, released from a prec ***
  17128. --- *** ursor molecule. ***
  17129. --- ************************************************
  17130. ---
  17131. CREATE VIEW active_peptide AS
  17132. SELECT
  17133. feature_id AS active_peptide_id,
  17134. feature.*
  17135. FROM
  17136. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17137. WHERE cvterm.name = 'active_peptide';
  17138. --- ************************************************
  17139. --- *** relation: compositionally_biased_region_of_peptide ***
  17140. --- *** relation type: VIEW ***
  17141. --- *** ***
  17142. --- *** Polypeptide region that is rich in a par ***
  17143. --- *** ticular amino acid or homopolymeric and ***
  17144. --- *** greater than three residues in length. ***
  17145. --- ************************************************
  17146. ---
  17147. CREATE VIEW compositionally_biased_region_of_peptide AS
  17148. SELECT
  17149. feature_id AS compositionally_biased_region_of_peptide_id,
  17150. feature.*
  17151. FROM
  17152. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17153. WHERE cvterm.name = 'compositionally_biased_region_of_peptide';
  17154. --- ************************************************
  17155. --- *** relation: polypeptide_motif ***
  17156. --- *** relation type: VIEW ***
  17157. --- *** ***
  17158. --- *** A sequence motif is a short (up to 20 am ***
  17159. --- *** ino acids) region of biological interest ***
  17160. --- *** . Such motifs, although they are too sho ***
  17161. --- *** rt to constitute functional domains, sha ***
  17162. --- *** re sequence similarities and are conserv ***
  17163. --- *** ed in different proteins. They display a ***
  17164. --- *** common function (protein-binding, subce ***
  17165. --- *** llular location etc.). ***
  17166. --- ************************************************
  17167. ---
  17168. CREATE VIEW polypeptide_motif AS
  17169. SELECT
  17170. feature_id AS polypeptide_motif_id,
  17171. feature.*
  17172. FROM
  17173. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17174. 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';
  17175. --- ************************************************
  17176. --- *** relation: polypeptide_repeat ***
  17177. --- *** relation type: VIEW ***
  17178. --- *** ***
  17179. --- *** A polypeptide_repeat is a single copy of ***
  17180. --- *** an internal sequence repetition. ***
  17181. --- ************************************************
  17182. ---
  17183. CREATE VIEW polypeptide_repeat AS
  17184. SELECT
  17185. feature_id AS polypeptide_repeat_id,
  17186. feature.*
  17187. FROM
  17188. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17189. WHERE cvterm.name = 'polypeptide_repeat';
  17190. --- ************************************************
  17191. --- *** relation: polypeptide_structural_region ***
  17192. --- *** relation type: VIEW ***
  17193. --- *** ***
  17194. --- *** Region of polypeptide with a given struc ***
  17195. --- *** tural property. ***
  17196. --- ************************************************
  17197. ---
  17198. CREATE VIEW polypeptide_structural_region AS
  17199. SELECT
  17200. feature_id AS polypeptide_structural_region_id,
  17201. feature.*
  17202. FROM
  17203. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17204. 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';
  17205. --- ************************************************
  17206. --- *** relation: membrane_structure ***
  17207. --- *** relation type: VIEW ***
  17208. --- *** ***
  17209. --- *** Arrangement of the polypeptide with resp ***
  17210. --- *** ect to the lipid bilayer. ***
  17211. --- ************************************************
  17212. ---
  17213. CREATE VIEW membrane_structure AS
  17214. SELECT
  17215. feature_id AS membrane_structure_id,
  17216. feature.*
  17217. FROM
  17218. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17219. WHERE cvterm.name = 'membrane_structure';
  17220. --- ************************************************
  17221. --- *** relation: extramembrane_polypeptide_region ***
  17222. --- *** relation type: VIEW ***
  17223. --- *** ***
  17224. --- *** Polypeptide region that is localized out ***
  17225. --- *** side of a lipid bilayer. ***
  17226. --- ************************************************
  17227. ---
  17228. CREATE VIEW extramembrane_polypeptide_region AS
  17229. SELECT
  17230. feature_id AS extramembrane_polypeptide_region_id,
  17231. feature.*
  17232. FROM
  17233. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17234. WHERE cvterm.name = 'cytoplasmic_polypeptide_region' OR cvterm.name = 'non_cytoplasmic_polypeptide_region' OR cvterm.name = 'extramembrane_polypeptide_region';
  17235. --- ************************************************
  17236. --- *** relation: cytoplasmic_polypeptide_region ***
  17237. --- *** relation type: VIEW ***
  17238. --- *** ***
  17239. --- *** Polypeptide region that is localized ins ***
  17240. --- *** ide the cytoplasm. ***
  17241. --- ************************************************
  17242. ---
  17243. CREATE VIEW cytoplasmic_polypeptide_region AS
  17244. SELECT
  17245. feature_id AS cytoplasmic_polypeptide_region_id,
  17246. feature.*
  17247. FROM
  17248. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17249. WHERE cvterm.name = 'cytoplasmic_polypeptide_region';
  17250. --- ************************************************
  17251. --- *** relation: non_cytoplasmic_polypeptide_region ***
  17252. --- *** relation type: VIEW ***
  17253. --- *** ***
  17254. --- *** Polypeptide region that is localized out ***
  17255. --- *** side of a lipid bilayer and outside of t ***
  17256. --- *** he cytoplasm. ***
  17257. --- ************************************************
  17258. ---
  17259. CREATE VIEW non_cytoplasmic_polypeptide_region AS
  17260. SELECT
  17261. feature_id AS non_cytoplasmic_polypeptide_region_id,
  17262. feature.*
  17263. FROM
  17264. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17265. WHERE cvterm.name = 'non_cytoplasmic_polypeptide_region';
  17266. --- ************************************************
  17267. --- *** relation: intramembrane_polypeptide_region ***
  17268. --- *** relation type: VIEW ***
  17269. --- *** ***
  17270. --- *** Polypeptide region present in the lipid ***
  17271. --- *** bilayer. ***
  17272. --- ************************************************
  17273. ---
  17274. CREATE VIEW intramembrane_polypeptide_region AS
  17275. SELECT
  17276. feature_id AS intramembrane_polypeptide_region_id,
  17277. feature.*
  17278. FROM
  17279. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17280. WHERE cvterm.name = 'membrane_peptide_loop' OR cvterm.name = 'transmembrane_polypeptide_region' OR cvterm.name = 'intramembrane_polypeptide_region';
  17281. --- ************************************************
  17282. --- *** relation: membrane_peptide_loop ***
  17283. --- *** relation type: VIEW ***
  17284. --- *** ***
  17285. --- *** Polypeptide region localized within the ***
  17286. --- *** lipid bilayer where both ends traverse t ***
  17287. --- *** he same membrane. ***
  17288. --- ************************************************
  17289. ---
  17290. CREATE VIEW membrane_peptide_loop AS
  17291. SELECT
  17292. feature_id AS membrane_peptide_loop_id,
  17293. feature.*
  17294. FROM
  17295. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17296. WHERE cvterm.name = 'membrane_peptide_loop';
  17297. --- ************************************************
  17298. --- *** relation: transmembrane_polypeptide_region ***
  17299. --- *** relation type: VIEW ***
  17300. --- *** ***
  17301. --- *** Polypeptide region traversing the lipid ***
  17302. --- *** bilayer. ***
  17303. --- ************************************************
  17304. ---
  17305. CREATE VIEW transmembrane_polypeptide_region AS
  17306. SELECT
  17307. feature_id AS transmembrane_polypeptide_region_id,
  17308. feature.*
  17309. FROM
  17310. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17311. WHERE cvterm.name = 'transmembrane_polypeptide_region';
  17312. --- ************************************************
  17313. --- *** relation: polypeptide_secondary_structure ***
  17314. --- *** relation type: VIEW ***
  17315. --- *** ***
  17316. --- *** A region of peptide with secondary struc ***
  17317. --- *** ture has hydrogen bonding along the pept ***
  17318. --- *** ide chain that causes a defined conforma ***
  17319. --- *** tion of the chain. ***
  17320. --- ************************************************
  17321. ---
  17322. CREATE VIEW polypeptide_secondary_structure AS
  17323. SELECT
  17324. feature_id AS polypeptide_secondary_structure_id,
  17325. feature.*
  17326. FROM
  17327. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17328. 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';
  17329. --- ************************************************
  17330. --- *** relation: polypeptide_structural_motif ***
  17331. --- *** relation type: VIEW ***
  17332. --- *** ***
  17333. --- *** Motif is a three-dimensional structural ***
  17334. --- *** element within the chain, which appears ***
  17335. --- *** also in a variety of other molecules. Un ***
  17336. --- *** like a domain, a motif does not need to ***
  17337. --- *** form a stable globular unit. ***
  17338. --- ************************************************
  17339. ---
  17340. CREATE VIEW polypeptide_structural_motif AS
  17341. SELECT
  17342. feature_id AS polypeptide_structural_motif_id,
  17343. feature.*
  17344. FROM
  17345. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17346. WHERE cvterm.name = 'coiled_coil' OR cvterm.name = 'helix_turn_helix' OR cvterm.name = 'polypeptide_structural_motif';
  17347. --- ************************************************
  17348. --- *** relation: coiled_coil ***
  17349. --- *** relation type: VIEW ***
  17350. --- *** ***
  17351. --- *** A coiled coil is a structural motif in p ***
  17352. --- *** roteins, in which alpha-helices are coil ***
  17353. --- *** ed together like the strands of a rope. ***
  17354. --- ************************************************
  17355. ---
  17356. CREATE VIEW coiled_coil AS
  17357. SELECT
  17358. feature_id AS coiled_coil_id,
  17359. feature.*
  17360. FROM
  17361. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17362. WHERE cvterm.name = 'coiled_coil';
  17363. --- ************************************************
  17364. --- *** relation: helix_turn_helix ***
  17365. --- *** relation type: VIEW ***
  17366. --- *** ***
  17367. --- *** A motif comprising two helices separated ***
  17368. --- *** by a turn. ***
  17369. --- ************************************************
  17370. ---
  17371. CREATE VIEW helix_turn_helix AS
  17372. SELECT
  17373. feature_id AS helix_turn_helix_id,
  17374. feature.*
  17375. FROM
  17376. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17377. WHERE cvterm.name = 'helix_turn_helix';
  17378. --- ************************************************
  17379. --- *** relation: polypeptide_sequencing_information ***
  17380. --- *** relation type: VIEW ***
  17381. --- *** ***
  17382. --- *** Incompatibility in the sequence due to s ***
  17383. --- *** ome experimental problem. ***
  17384. --- ************************************************
  17385. ---
  17386. CREATE VIEW polypeptide_sequencing_information AS
  17387. SELECT
  17388. feature_id AS polypeptide_sequencing_information_id,
  17389. feature.*
  17390. FROM
  17391. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17392. 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';
  17393. --- ************************************************
  17394. --- *** relation: non_adjacent_residues ***
  17395. --- *** relation type: VIEW ***
  17396. --- *** ***
  17397. --- *** Indicates that two consecutive residues ***
  17398. --- *** in a fragment sequence are not consecuti ***
  17399. --- *** ve in the full-length protein and that t ***
  17400. --- *** here are a number of unsequenced residue ***
  17401. --- *** s between them. ***
  17402. --- ************************************************
  17403. ---
  17404. CREATE VIEW non_adjacent_residues AS
  17405. SELECT
  17406. feature_id AS non_adjacent_residues_id,
  17407. feature.*
  17408. FROM
  17409. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17410. WHERE cvterm.name = 'non_adjacent_residues';
  17411. --- ************************************************
  17412. --- *** relation: non_terminal_residue ***
  17413. --- *** relation type: VIEW ***
  17414. --- *** ***
  17415. --- *** The residue at an extremity of the seque ***
  17416. --- *** nce is not the terminal residue. ***
  17417. --- ************************************************
  17418. ---
  17419. CREATE VIEW non_terminal_residue AS
  17420. SELECT
  17421. feature_id AS non_terminal_residue_id,
  17422. feature.*
  17423. FROM
  17424. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17425. WHERE cvterm.name = 'non_terminal_residue';
  17426. --- ************************************************
  17427. --- *** relation: sequence_conflict ***
  17428. --- *** relation type: VIEW ***
  17429. --- *** ***
  17430. --- *** Different sources report differing seque ***
  17431. --- *** nces. ***
  17432. --- ************************************************
  17433. ---
  17434. CREATE VIEW sequence_conflict AS
  17435. SELECT
  17436. feature_id AS sequence_conflict_id,
  17437. feature.*
  17438. FROM
  17439. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17440. WHERE cvterm.name = 'contig_collection' OR cvterm.name = 'sequence_conflict';
  17441. --- ************************************************
  17442. --- *** relation: sequence_uncertainty ***
  17443. --- *** relation type: VIEW ***
  17444. --- *** ***
  17445. --- *** Describes the positions in a sequence wh ***
  17446. --- *** ere the authors are unsure about the seq ***
  17447. --- *** uence assignment. ***
  17448. --- ************************************************
  17449. ---
  17450. CREATE VIEW sequence_uncertainty AS
  17451. SELECT
  17452. feature_id AS sequence_uncertainty_id,
  17453. feature.*
  17454. FROM
  17455. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17456. WHERE cvterm.name = 'sequence_uncertainty';
  17457. --- ************************************************
  17458. --- *** relation: post_translationally_modified_region ***
  17459. --- *** relation type: VIEW ***
  17460. --- *** ***
  17461. --- *** A region where a transformation occurs i ***
  17462. --- *** n a protein after it has been synthesize ***
  17463. --- *** d. This which may regulate, stabilize, c ***
  17464. --- *** rosslink or introduce new chemical funct ***
  17465. --- *** ionalities in the protein. ***
  17466. --- ************************************************
  17467. ---
  17468. CREATE VIEW post_translationally_modified_region AS
  17469. SELECT
  17470. feature_id AS post_translationally_modified_region_id,
  17471. feature.*
  17472. FROM
  17473. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17474. 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';
  17475. --- ************************************************
  17476. --- *** relation: polypeptide_metal_contact ***
  17477. --- *** relation type: VIEW ***
  17478. --- *** ***
  17479. --- *** A binding site that, in the polypeptide ***
  17480. --- *** molecule, interacts selectively and non- ***
  17481. --- *** covalently with metal ions. ***
  17482. --- ************************************************
  17483. ---
  17484. CREATE VIEW polypeptide_metal_contact AS
  17485. SELECT
  17486. feature_id AS polypeptide_metal_contact_id,
  17487. feature.*
  17488. FROM
  17489. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17490. 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';
  17491. --- ************************************************
  17492. --- *** relation: protein_protein_contact ***
  17493. --- *** relation type: VIEW ***
  17494. --- *** ***
  17495. --- *** A binding site that, in the protein mole ***
  17496. --- *** cule, interacts selectively and non-cova ***
  17497. --- *** lently with polypeptide residues. ***
  17498. --- ************************************************
  17499. ---
  17500. CREATE VIEW protein_protein_contact AS
  17501. SELECT
  17502. feature_id AS protein_protein_contact_id,
  17503. feature.*
  17504. FROM
  17505. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17506. WHERE cvterm.name = 'protein_protein_contact';
  17507. --- ************************************************
  17508. --- *** relation: polypeptide_calcium_ion_contact_site ***
  17509. --- *** relation type: VIEW ***
  17510. --- *** ***
  17511. --- *** A binding site that, in the polypeptide ***
  17512. --- *** molecule, interacts selectively and non- ***
  17513. --- *** covalently with calcium ions. ***
  17514. --- ************************************************
  17515. ---
  17516. CREATE VIEW polypeptide_calcium_ion_contact_site AS
  17517. SELECT
  17518. feature_id AS polypeptide_calcium_ion_contact_site_id,
  17519. feature.*
  17520. FROM
  17521. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17522. WHERE cvterm.name = 'polypeptide_calcium_ion_contact_site';
  17523. --- ************************************************
  17524. --- *** relation: polypeptide_cobalt_ion_contact_site ***
  17525. --- *** relation type: VIEW ***
  17526. --- *** ***
  17527. --- *** A binding site that, in the polypeptide ***
  17528. --- *** molecule, interacts selectively and non- ***
  17529. --- *** covalently with cobalt ions. ***
  17530. --- ************************************************
  17531. ---
  17532. CREATE VIEW polypeptide_cobalt_ion_contact_site AS
  17533. SELECT
  17534. feature_id AS polypeptide_cobalt_ion_contact_site_id,
  17535. feature.*
  17536. FROM
  17537. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17538. WHERE cvterm.name = 'polypeptide_cobalt_ion_contact_site';
  17539. --- ************************************************
  17540. --- *** relation: polypeptide_copper_ion_contact_site ***
  17541. --- *** relation type: VIEW ***
  17542. --- *** ***
  17543. --- *** A binding site that, in the polypeptide ***
  17544. --- *** molecule, interacts selectively and non- ***
  17545. --- *** covalently with copper ions. ***
  17546. --- ************************************************
  17547. ---
  17548. CREATE VIEW polypeptide_copper_ion_contact_site AS
  17549. SELECT
  17550. feature_id AS polypeptide_copper_ion_contact_site_id,
  17551. feature.*
  17552. FROM
  17553. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17554. WHERE cvterm.name = 'polypeptide_copper_ion_contact_site';
  17555. --- ************************************************
  17556. --- *** relation: polypeptide_iron_ion_contact_site ***
  17557. --- *** relation type: VIEW ***
  17558. --- *** ***
  17559. --- *** A binding site that, in the polypeptide ***
  17560. --- *** molecule, interacts selectively and non- ***
  17561. --- *** covalently with iron ions. ***
  17562. --- ************************************************
  17563. ---
  17564. CREATE VIEW polypeptide_iron_ion_contact_site AS
  17565. SELECT
  17566. feature_id AS polypeptide_iron_ion_contact_site_id,
  17567. feature.*
  17568. FROM
  17569. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17570. WHERE cvterm.name = 'polypeptide_iron_ion_contact_site';
  17571. --- ************************************************
  17572. --- *** relation: polypeptide_magnesium_ion_contact_site ***
  17573. --- *** relation type: VIEW ***
  17574. --- *** ***
  17575. --- *** A binding site that, in the polypeptide ***
  17576. --- *** molecule, interacts selectively and non- ***
  17577. --- *** covalently with magnesium ions. ***
  17578. --- ************************************************
  17579. ---
  17580. CREATE VIEW polypeptide_magnesium_ion_contact_site AS
  17581. SELECT
  17582. feature_id AS polypeptide_magnesium_ion_contact_site_id,
  17583. feature.*
  17584. FROM
  17585. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17586. WHERE cvterm.name = 'polypeptide_magnesium_ion_contact_site';
  17587. --- ************************************************
  17588. --- *** relation: polypeptide_manganese_ion_contact_site ***
  17589. --- *** relation type: VIEW ***
  17590. --- *** ***
  17591. --- *** A binding site that, in the polypeptide ***
  17592. --- *** molecule, interacts selectively and non- ***
  17593. --- *** covalently with manganese ions. ***
  17594. --- ************************************************
  17595. ---
  17596. CREATE VIEW polypeptide_manganese_ion_contact_site AS
  17597. SELECT
  17598. feature_id AS polypeptide_manganese_ion_contact_site_id,
  17599. feature.*
  17600. FROM
  17601. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17602. WHERE cvterm.name = 'polypeptide_manganese_ion_contact_site';
  17603. --- ************************************************
  17604. --- *** relation: polypeptide_molybdenum_ion_contact_site ***
  17605. --- *** relation type: VIEW ***
  17606. --- *** ***
  17607. --- *** A binding site that, in the polypeptide ***
  17608. --- *** molecule, interacts selectively and non- ***
  17609. --- *** covalently with molybdenum ions. ***
  17610. --- ************************************************
  17611. ---
  17612. CREATE VIEW polypeptide_molybdenum_ion_contact_site AS
  17613. SELECT
  17614. feature_id AS polypeptide_molybdenum_ion_contact_site_id,
  17615. feature.*
  17616. FROM
  17617. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17618. WHERE cvterm.name = 'polypeptide_molybdenum_ion_contact_site';
  17619. --- ************************************************
  17620. --- *** relation: polypeptide_nickel_ion_contact_site ***
  17621. --- *** relation type: VIEW ***
  17622. --- *** ***
  17623. --- *** A binding site that, in the polypeptide ***
  17624. --- *** molecule, interacts selectively and non- ***
  17625. --- *** covalently with nickel ions. ***
  17626. --- ************************************************
  17627. ---
  17628. CREATE VIEW polypeptide_nickel_ion_contact_site AS
  17629. SELECT
  17630. feature_id AS polypeptide_nickel_ion_contact_site_id,
  17631. feature.*
  17632. FROM
  17633. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17634. WHERE cvterm.name = 'polypeptide_nickel_ion_contact_site';
  17635. --- ************************************************
  17636. --- *** relation: polypeptide_tungsten_ion_contact_site ***
  17637. --- *** relation type: VIEW ***
  17638. --- *** ***
  17639. --- *** A binding site that, in the polypeptide ***
  17640. --- *** molecule, interacts selectively and non- ***
  17641. --- *** covalently with tungsten ions. ***
  17642. --- ************************************************
  17643. ---
  17644. CREATE VIEW polypeptide_tungsten_ion_contact_site AS
  17645. SELECT
  17646. feature_id AS polypeptide_tungsten_ion_contact_site_id,
  17647. feature.*
  17648. FROM
  17649. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17650. WHERE cvterm.name = 'polypeptide_tungsten_ion_contact_site';
  17651. --- ************************************************
  17652. --- *** relation: polypeptide_zinc_ion_contact_site ***
  17653. --- *** relation type: VIEW ***
  17654. --- *** ***
  17655. --- *** A binding site that, in the polypeptide ***
  17656. --- *** molecule, interacts selectively and non- ***
  17657. --- *** covalently with zinc ions. ***
  17658. --- ************************************************
  17659. ---
  17660. CREATE VIEW polypeptide_zinc_ion_contact_site AS
  17661. SELECT
  17662. feature_id AS polypeptide_zinc_ion_contact_site_id,
  17663. feature.*
  17664. FROM
  17665. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17666. WHERE cvterm.name = 'polypeptide_zinc_ion_contact_site';
  17667. --- ************************************************
  17668. --- *** relation: catalytic_residue ***
  17669. --- *** relation type: VIEW ***
  17670. --- *** ***
  17671. --- *** Amino acid involved in the activity of a ***
  17672. --- *** n enzyme. ***
  17673. --- ************************************************
  17674. ---
  17675. CREATE VIEW catalytic_residue AS
  17676. SELECT
  17677. feature_id AS catalytic_residue_id,
  17678. feature.*
  17679. FROM
  17680. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17681. WHERE cvterm.name = 'catalytic_residue';
  17682. --- ************************************************
  17683. --- *** relation: polypeptide_ligand_contact ***
  17684. --- *** relation type: VIEW ***
  17685. --- *** ***
  17686. --- *** Residues which interact with a ligand. ***
  17687. --- ************************************************
  17688. ---
  17689. CREATE VIEW polypeptide_ligand_contact AS
  17690. SELECT
  17691. feature_id AS polypeptide_ligand_contact_id,
  17692. feature.*
  17693. FROM
  17694. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17695. WHERE cvterm.name = 'polypeptide_ligand_contact';
  17696. --- ************************************************
  17697. --- *** relation: asx_motif ***
  17698. --- *** relation type: VIEW ***
  17699. --- *** ***
  17700. --- *** A motif of five consecutive residues and ***
  17701. --- *** two H-bonds in which: Residue(i) is Asp ***
  17702. --- *** artate or Asparagine (Asx), side-chain O ***
  17703. --- *** of residue(i) is H-bonded to the main-c ***
  17704. --- *** hain NH of residue(i+2) or (i+3), main-c ***
  17705. --- *** hain CO of residue(i) is H-bonded to the ***
  17706. --- *** main-chain NH of residue(i+3) or (i+4). ***
  17707. --- ************************************************
  17708. ---
  17709. CREATE VIEW asx_motif AS
  17710. SELECT
  17711. feature_id AS asx_motif_id,
  17712. feature.*
  17713. FROM
  17714. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17715. WHERE cvterm.name = 'asx_motif';
  17716. --- ************************************************
  17717. --- *** relation: beta_bulge ***
  17718. --- *** relation type: VIEW ***
  17719. --- *** ***
  17720. --- *** A motif of three residues within a beta- ***
  17721. --- *** sheet in which the main chains of two co ***
  17722. --- *** nsecutive residues are H-bonded to that ***
  17723. --- *** of the third, and in which the dihedral ***
  17724. --- *** angles are as follows: Residue(i): -140 ***
  17725. --- *** degrees < phi(l) -20 degrees , -90 degre ***
  17726. --- *** es < psi(l) < 40 degrees. Residue (i+1): ***
  17727. --- *** -180 degrees < phi < -25 degrees or +12 ***
  17728. --- *** 0 degrees < phi < +180 degrees, +40 degr ***
  17729. --- *** ees < psi < +180 degrees or -180 degrees ***
  17730. --- *** < psi < -120 degrees. ***
  17731. --- ************************************************
  17732. ---
  17733. CREATE VIEW beta_bulge AS
  17734. SELECT
  17735. feature_id AS beta_bulge_id,
  17736. feature.*
  17737. FROM
  17738. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17739. WHERE cvterm.name = 'beta_bulge';
  17740. --- ************************************************
  17741. --- *** relation: beta_bulge_loop ***
  17742. --- *** relation type: VIEW ***
  17743. --- *** ***
  17744. --- *** A motif of three residues within a beta- ***
  17745. --- *** sheet consisting of two H-bonds. Beta bu ***
  17746. --- *** lge loops often occur at the loop ends o ***
  17747. --- *** f beta-hairpins. ***
  17748. --- ************************************************
  17749. ---
  17750. CREATE VIEW beta_bulge_loop AS
  17751. SELECT
  17752. feature_id AS beta_bulge_loop_id,
  17753. feature.*
  17754. FROM
  17755. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17756. WHERE cvterm.name = 'beta_bulge_loop_five' OR cvterm.name = 'beta_bulge_loop_six' OR cvterm.name = 'beta_bulge_loop';
  17757. --- ************************************************
  17758. --- *** relation: beta_bulge_loop_five ***
  17759. --- *** relation type: VIEW ***
  17760. --- *** ***
  17761. --- *** A motif of three residues within a beta- ***
  17762. --- *** sheet consisting of two H-bonds in which ***
  17763. --- *** : the main-chain NH of residue(i) is H-b ***
  17764. --- *** onded to the main-chain CO of residue(i+ ***
  17765. --- *** 4), the main-chain CO of residue i is H- ***
  17766. --- *** bonded to the main-chain NH of residue(i ***
  17767. --- *** +3), these loops have an RL nest at resi ***
  17768. --- *** dues i+2 and i+3. ***
  17769. --- ************************************************
  17770. ---
  17771. CREATE VIEW beta_bulge_loop_five AS
  17772. SELECT
  17773. feature_id AS beta_bulge_loop_five_id,
  17774. feature.*
  17775. FROM
  17776. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17777. WHERE cvterm.name = 'beta_bulge_loop_five';
  17778. --- ************************************************
  17779. --- *** relation: beta_bulge_loop_six ***
  17780. --- *** relation type: VIEW ***
  17781. --- *** ***
  17782. --- *** A motif of three residues within a beta- ***
  17783. --- *** sheet consisting of two H-bonds in which ***
  17784. --- *** : the main-chain NH of residue(i) is H-b ***
  17785. --- *** onded to the main-chain CO of residue(i+ ***
  17786. --- *** 5), the main-chain CO of residue i is H- ***
  17787. --- *** bonded to the main-chain NH of residue(i ***
  17788. --- *** +4), these loops have an RL nest at resi ***
  17789. --- *** dues i+3 and i+4. ***
  17790. --- ************************************************
  17791. ---
  17792. CREATE VIEW beta_bulge_loop_six AS
  17793. SELECT
  17794. feature_id AS beta_bulge_loop_six_id,
  17795. feature.*
  17796. FROM
  17797. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17798. WHERE cvterm.name = 'beta_bulge_loop_six';
  17799. --- ************************************************
  17800. --- *** relation: beta_strand ***
  17801. --- *** relation type: VIEW ***
  17802. --- *** ***
  17803. --- *** A beta strand describes a single length ***
  17804. --- *** of polypeptide chain that forms part of ***
  17805. --- *** a beta sheet. A single continuous stretc ***
  17806. --- *** h of amino acids adopting an extended co ***
  17807. --- *** nformation of hydrogen bonds between the ***
  17808. --- *** N-O and the C=O of another part of the ***
  17809. --- *** peptide. This forms a secondary protein ***
  17810. --- *** structure in which two or more extended ***
  17811. --- *** polypeptide regions are hydrogen-bonded ***
  17812. --- *** to one another in a planar array. ***
  17813. --- ************************************************
  17814. ---
  17815. CREATE VIEW beta_strand AS
  17816. SELECT
  17817. feature_id AS beta_strand_id,
  17818. feature.*
  17819. FROM
  17820. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17821. WHERE cvterm.name = 'antiparallel_beta_strand' OR cvterm.name = 'parallel_beta_strand' OR cvterm.name = 'beta_strand';
  17822. --- ************************************************
  17823. --- *** relation: antiparallel_beta_strand ***
  17824. --- *** relation type: VIEW ***
  17825. --- *** ***
  17826. --- *** A peptide region which hydrogen bonded t ***
  17827. --- *** o another region of peptide running in t ***
  17828. --- *** he oposite direction (one running N-term ***
  17829. --- *** inal to C-terminal and one running C-ter ***
  17830. --- *** minal to N-terminal). Hydrogen bonding o ***
  17831. --- *** ccurs between every other C=O from one s ***
  17832. --- *** trand to every other N-H on the adjacent ***
  17833. --- *** strand. In this case, if two atoms C-al ***
  17834. --- *** pha (i) and C-alpha (j) are adjacent in ***
  17835. --- *** two hydrogen-bonded beta strands, then t ***
  17836. --- *** hey form two mutual backbone hydrogen bo ***
  17837. --- *** nds to each other's flanking peptide gro ***
  17838. --- *** ups; this is known as a close pair of hy ***
  17839. --- *** drogen bonds. The peptide backbone dihed ***
  17840. --- *** ral angles (phi, psi) are about (-140 de ***
  17841. --- *** grees, 135 degrees) in antiparallel shee ***
  17842. --- *** ts. ***
  17843. --- ************************************************
  17844. ---
  17845. CREATE VIEW antiparallel_beta_strand AS
  17846. SELECT
  17847. feature_id AS antiparallel_beta_strand_id,
  17848. feature.*
  17849. FROM
  17850. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17851. WHERE cvterm.name = 'antiparallel_beta_strand';
  17852. --- ************************************************
  17853. --- *** relation: parallel_beta_strand ***
  17854. --- *** relation type: VIEW ***
  17855. --- *** ***
  17856. --- *** A peptide region which hydrogen bonded t ***
  17857. --- *** o another region of peptide running in t ***
  17858. --- *** he oposite direction (both running N-ter ***
  17859. --- *** minal to C-terminal). This orientation i ***
  17860. --- *** s slightly less stable because it introd ***
  17861. --- *** uces nonplanarity in the inter-strand hy ***
  17862. --- *** drogen bonding pattern. Hydrogen bonding ***
  17863. --- *** occurs between every other C=O from one ***
  17864. --- *** strand to every other N-H on the adjace ***
  17865. --- *** nt strand. In this case, if two atoms C- ***
  17866. --- *** alpha (i)and C-alpha (j) are adjacent in ***
  17867. --- *** two hydrogen-bonded beta strands, then ***
  17868. --- *** they do not hydrogen bond to each other; ***
  17869. --- *** rather, one residue forms hydrogen bond ***
  17870. --- *** s to the residues that flank the other ( ***
  17871. --- *** but not vice versa). For example, residu ***
  17872. --- *** e i may form hydrogen bonds to residues ***
  17873. --- *** j - 1 and j + 1; this is known as a wide ***
  17874. --- *** pair of hydrogen bonds. By contrast, re ***
  17875. --- *** sidue j may hydrogen-bond to different r ***
  17876. --- *** esidues altogether, or to none at all. T ***
  17877. --- *** he dihedral angles (phi, psi) are about ***
  17878. --- *** (-120 degrees, 115 degrees) in parallel ***
  17879. --- *** sheets. ***
  17880. --- ************************************************
  17881. ---
  17882. CREATE VIEW parallel_beta_strand AS
  17883. SELECT
  17884. feature_id AS parallel_beta_strand_id,
  17885. feature.*
  17886. FROM
  17887. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17888. WHERE cvterm.name = 'parallel_beta_strand';
  17889. --- ************************************************
  17890. --- *** relation: peptide_helix ***
  17891. --- *** relation type: VIEW ***
  17892. --- *** ***
  17893. --- *** A helix is a secondary_structure conform ***
  17894. --- *** ation where the peptide backbone forms a ***
  17895. --- *** coil. ***
  17896. --- ************************************************
  17897. ---
  17898. CREATE VIEW peptide_helix AS
  17899. SELECT
  17900. feature_id AS peptide_helix_id,
  17901. feature.*
  17902. FROM
  17903. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17904. 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';
  17905. --- ************************************************
  17906. --- *** relation: left_handed_peptide_helix ***
  17907. --- *** relation type: VIEW ***
  17908. --- *** ***
  17909. --- *** A left handed helix is a region of pepti ***
  17910. --- *** de where the coiled conformation turns i ***
  17911. --- *** n an anticlockwise, left handed screw. ***
  17912. --- ************************************************
  17913. ---
  17914. CREATE VIEW left_handed_peptide_helix AS
  17915. SELECT
  17916. feature_id AS left_handed_peptide_helix_id,
  17917. feature.*
  17918. FROM
  17919. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17920. WHERE cvterm.name = 'left_handed_peptide_helix';
  17921. --- ************************************************
  17922. --- *** relation: right_handed_peptide_helix ***
  17923. --- *** relation type: VIEW ***
  17924. --- *** ***
  17925. --- *** A right handed helix is a region of pept ***
  17926. --- *** ide where the coiled conformation turns ***
  17927. --- *** in a clockwise, right handed screw. ***
  17928. --- ************************************************
  17929. ---
  17930. CREATE VIEW right_handed_peptide_helix AS
  17931. SELECT
  17932. feature_id AS right_handed_peptide_helix_id,
  17933. feature.*
  17934. FROM
  17935. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17936. WHERE cvterm.name = 'alpha_helix' OR cvterm.name = 'pi_helix' OR cvterm.name = 'three_ten_helix' OR cvterm.name = 'right_handed_peptide_helix';
  17937. --- ************************************************
  17938. --- *** relation: alpha_helix ***
  17939. --- *** relation type: VIEW ***
  17940. --- *** ***
  17941. --- *** The helix has 3.6 residues per turn whic ***
  17942. --- *** h corersponds to a translation of 1.5 an ***
  17943. --- *** gstroms (= 0.15 nm) along the helical ax ***
  17944. --- *** is. Every backbone N-H group donates a h ***
  17945. --- *** ydrogen bond to the backbone C=O group o ***
  17946. --- *** f the amino acid four residues earlier. ***
  17947. --- ************************************************
  17948. ---
  17949. CREATE VIEW alpha_helix AS
  17950. SELECT
  17951. feature_id AS alpha_helix_id,
  17952. feature.*
  17953. FROM
  17954. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17955. WHERE cvterm.name = 'alpha_helix';
  17956. --- ************************************************
  17957. --- *** relation: pi_helix ***
  17958. --- *** relation type: VIEW ***
  17959. --- *** ***
  17960. --- *** The pi helix has 4.1 residues per turn a ***
  17961. --- *** nd a translation of 1.15 (=0.115 nm) al ***
  17962. --- *** ong the helical axis. The N-H group of a ***
  17963. --- *** n amino acid forms a hydrogen bond with ***
  17964. --- *** the C=O group of the amino acid five res ***
  17965. --- *** idues earlier. ***
  17966. --- ************************************************
  17967. ---
  17968. CREATE VIEW pi_helix AS
  17969. SELECT
  17970. feature_id AS pi_helix_id,
  17971. feature.*
  17972. FROM
  17973. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17974. WHERE cvterm.name = 'pi_helix';
  17975. --- ************************************************
  17976. --- *** relation: three_ten_helix ***
  17977. --- *** relation type: VIEW ***
  17978. --- *** ***
  17979. --- *** The 3-10 helix has 3 residues per turn w ***
  17980. --- *** ith a translation of 2.0 angstroms (=0.2 ***
  17981. --- *** nm) along the helical axis. The N-H gro ***
  17982. --- *** up of an amino acid forms a hydrogen bon ***
  17983. --- *** d with the C=O group of the amino acid t ***
  17984. --- *** hree residues earlier. ***
  17985. --- ************************************************
  17986. ---
  17987. CREATE VIEW three_ten_helix AS
  17988. SELECT
  17989. feature_id AS three_ten_helix_id,
  17990. feature.*
  17991. FROM
  17992. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17993. WHERE cvterm.name = 'three_ten_helix';
  17994. --- ************************************************
  17995. --- *** relation: polypeptide_nest_motif ***
  17996. --- *** relation type: VIEW ***
  17997. --- *** ***
  17998. --- *** A motif of two consecutive residues with ***
  17999. --- *** dihedral angles. Nest should not have P ***
  18000. --- *** roline as any residue. Nests frequently ***
  18001. --- *** occur as parts of other motifs such as S ***
  18002. --- *** chellman loops. ***
  18003. --- ************************************************
  18004. ---
  18005. CREATE VIEW polypeptide_nest_motif AS
  18006. SELECT
  18007. feature_id AS polypeptide_nest_motif_id,
  18008. feature.*
  18009. FROM
  18010. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18011. WHERE cvterm.name = 'polypeptide_nest_left_right_motif' OR cvterm.name = 'polypeptide_nest_right_left_motif' OR cvterm.name = 'polypeptide_nest_motif';
  18012. --- ************************************************
  18013. --- *** relation: polypeptide_nest_left_right_motif ***
  18014. --- *** relation type: VIEW ***
  18015. --- *** ***
  18016. --- *** A motif of two consecutive residues with ***
  18017. --- *** dihedral angles: Residue(i): +20 degree ***
  18018. --- *** s < phi < +140 degrees, -40 degrees < ps ***
  18019. --- *** i < +90 degrees. Residue(i+1): -140 degr ***
  18020. --- *** ees < phi < -20 degrees, -90 degrees < p ***
  18021. --- *** si < +40 degrees. ***
  18022. --- ************************************************
  18023. ---
  18024. CREATE VIEW polypeptide_nest_left_right_motif AS
  18025. SELECT
  18026. feature_id AS polypeptide_nest_left_right_motif_id,
  18027. feature.*
  18028. FROM
  18029. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18030. WHERE cvterm.name = 'polypeptide_nest_left_right_motif';
  18031. --- ************************************************
  18032. --- *** relation: polypeptide_nest_right_left_motif ***
  18033. --- *** relation type: VIEW ***
  18034. --- *** ***
  18035. --- *** A motif of two consecutive residues with ***
  18036. --- *** dihedral angles: Residue(i): -140 degre ***
  18037. --- *** es < phi < -20 degrees, -90 degrees < ps ***
  18038. --- *** i < +40 degrees. Residue(i+1): +20 degre ***
  18039. --- *** es < phi < +140 degrees, -40 degrees < p ***
  18040. --- *** si < +90 degrees. ***
  18041. --- ************************************************
  18042. ---
  18043. CREATE VIEW polypeptide_nest_right_left_motif AS
  18044. SELECT
  18045. feature_id AS polypeptide_nest_right_left_motif_id,
  18046. feature.*
  18047. FROM
  18048. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18049. WHERE cvterm.name = 'polypeptide_nest_right_left_motif';
  18050. --- ************************************************
  18051. --- *** relation: schellmann_loop ***
  18052. --- *** relation type: VIEW ***
  18053. --- *** ***
  18054. --- *** A motif of six or seven consecutive resi ***
  18055. --- *** dues that contains two H-bonds. ***
  18056. --- ************************************************
  18057. ---
  18058. CREATE VIEW schellmann_loop AS
  18059. SELECT
  18060. feature_id AS schellmann_loop_id,
  18061. feature.*
  18062. FROM
  18063. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18064. WHERE cvterm.name = 'schellmann_loop_seven' OR cvterm.name = 'schellmann_loop_six' OR cvterm.name = 'schellmann_loop';
  18065. --- ************************************************
  18066. --- *** relation: schellmann_loop_seven ***
  18067. --- *** relation type: VIEW ***
  18068. --- *** ***
  18069. --- *** Wild type: A motif of seven consecutive ***
  18070. --- *** residues that contains two H-bonds in wh ***
  18071. --- *** ich: the main-chain CO of residue(i) is ***
  18072. --- *** H-bonded to the main-chain NH of residue ***
  18073. --- *** (i+6), the main-chain CO of residue(i+1) ***
  18074. --- *** is H-bonded to the main-chain NH of res ***
  18075. --- *** idue(i+5). ***
  18076. --- ************************************************
  18077. ---
  18078. CREATE VIEW schellmann_loop_seven AS
  18079. SELECT
  18080. feature_id AS schellmann_loop_seven_id,
  18081. feature.*
  18082. FROM
  18083. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18084. WHERE cvterm.name = 'schellmann_loop_seven';
  18085. --- ************************************************
  18086. --- *** relation: schellmann_loop_six ***
  18087. --- *** relation type: VIEW ***
  18088. --- *** ***
  18089. --- *** Common Type: A motif of six consecutive ***
  18090. --- *** residues that contains two H-bonds in wh ***
  18091. --- *** ich: the main-chain CO of residue(i) is ***
  18092. --- *** H-bonded to the main-chain NH of residue ***
  18093. --- *** (i+5) the main-chain CO of residue(i+1) ***
  18094. --- *** is H-bonded to the main-chain NH of resi ***
  18095. --- *** due(i+4). ***
  18096. --- ************************************************
  18097. ---
  18098. CREATE VIEW schellmann_loop_six AS
  18099. SELECT
  18100. feature_id AS schellmann_loop_six_id,
  18101. feature.*
  18102. FROM
  18103. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18104. WHERE cvterm.name = 'schellmann_loop_six';
  18105. --- ************************************************
  18106. --- *** relation: serine_threonine_motif ***
  18107. --- *** relation type: VIEW ***
  18108. --- *** ***
  18109. --- *** A motif of five consecutive residues and ***
  18110. --- *** two hydrogen bonds in which: residue(i) ***
  18111. --- *** is Serine (S) or Threonine (T), the sid ***
  18112. --- *** e-chain O of residue(i) is H-bonded to t ***
  18113. --- *** he main-chain NH of residue(i+2) or (i+3 ***
  18114. --- *** ) , the main-chain CO group of residue(i ***
  18115. --- *** ) is H-bonded to the main-chain NH of re ***
  18116. --- *** sidue(i+3) or (i+4). ***
  18117. --- ************************************************
  18118. ---
  18119. CREATE VIEW serine_threonine_motif AS
  18120. SELECT
  18121. feature_id AS serine_threonine_motif_id,
  18122. feature.*
  18123. FROM
  18124. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18125. WHERE cvterm.name = 'serine_threonine_motif';
  18126. --- ************************************************
  18127. --- *** relation: serine_threonine_staple_motif ***
  18128. --- *** relation type: VIEW ***
  18129. --- *** ***
  18130. --- *** A motif of four or five consecutive resi ***
  18131. --- *** dues and one H-bond in which: residue(i) ***
  18132. --- *** is Serine (S) or Threonine (T), the sid ***
  18133. --- *** e-chain OH of residue(i) is H-bonded to ***
  18134. --- *** the main-chain CO of residue(i3) or (i4) ***
  18135. --- *** , Phi angles of residues(i1), (i2) and ( ***
  18136. --- *** i3) are negative. ***
  18137. --- ************************************************
  18138. ---
  18139. CREATE VIEW serine_threonine_staple_motif AS
  18140. SELECT
  18141. feature_id AS serine_threonine_staple_motif_id,
  18142. feature.*
  18143. FROM
  18144. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18145. WHERE cvterm.name = 'serine_threonine_staple_motif';
  18146. --- ************************************************
  18147. --- *** relation: polypeptide_turn_motif ***
  18148. --- *** relation type: VIEW ***
  18149. --- *** ***
  18150. --- *** A reversal in the direction of the backb ***
  18151. --- *** one of a protein that is stabilized by h ***
  18152. --- *** ydrogen bond between backbone NH and CO ***
  18153. --- *** groups, involving no more than 4 amino a ***
  18154. --- *** cid residues. ***
  18155. --- ************************************************
  18156. ---
  18157. CREATE VIEW polypeptide_turn_motif AS
  18158. SELECT
  18159. feature_id AS polypeptide_turn_motif_id,
  18160. feature.*
  18161. FROM
  18162. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18163. 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';
  18164. --- ************************************************
  18165. --- *** relation: asx_turn_left_handed_type_one ***
  18166. --- *** relation type: VIEW ***
  18167. --- *** ***
  18168. --- *** Left handed type I (dihedral angles):- R ***
  18169. --- *** esidue(i): -140 degrees < chi (1) -120 d ***
  18170. --- *** egrees < -20 degrees, -90 degrees < psi ***
  18171. --- *** +120 degrees < +40 degrees. Residue(i+1) ***
  18172. --- *** : -140 degrees < phi < -20 degrees, -90 ***
  18173. --- *** degrees < psi < +40 degrees. ***
  18174. --- ************************************************
  18175. ---
  18176. CREATE VIEW asx_turn_left_handed_type_one AS
  18177. SELECT
  18178. feature_id AS asx_turn_left_handed_type_one_id,
  18179. feature.*
  18180. FROM
  18181. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18182. WHERE cvterm.name = 'asx_turn_left_handed_type_one';
  18183. --- ************************************************
  18184. --- *** relation: asx_turn_left_handed_type_two ***
  18185. --- *** relation type: VIEW ***
  18186. --- *** ***
  18187. --- *** Left handed type II (dihedral angles):- ***
  18188. --- *** Residue(i): -140 degrees < chi (1) -120 ***
  18189. --- *** degrees < -20 degrees, +80 degrees < psi ***
  18190. --- *** +120 degrees < +180 degrees. Residue(i+ ***
  18191. --- *** 1): +20 degrees < phi < +140 degrees, -4 ***
  18192. --- *** 0 degrees < psi < +90 degrees. ***
  18193. --- ************************************************
  18194. ---
  18195. CREATE VIEW asx_turn_left_handed_type_two AS
  18196. SELECT
  18197. feature_id AS asx_turn_left_handed_type_two_id,
  18198. feature.*
  18199. FROM
  18200. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18201. WHERE cvterm.name = 'asx_turn_left_handed_type_two';
  18202. --- ************************************************
  18203. --- *** relation: asx_turn_right_handed_type_two ***
  18204. --- *** relation type: VIEW ***
  18205. --- *** ***
  18206. --- *** Right handed type II (dihedral angles):- ***
  18207. --- *** Residue(i): -140 degrees < chi (1) -120 ***
  18208. --- *** degrees < -20 degrees, +80 degrees < ps ***
  18209. --- *** i +120 degrees < +180 degrees. Residue(i ***
  18210. --- *** +1): +20 degrees < phi < +140 degrees, - ***
  18211. --- *** 40 degrees < psi < +90 degrees. ***
  18212. --- ************************************************
  18213. ---
  18214. CREATE VIEW asx_turn_right_handed_type_two AS
  18215. SELECT
  18216. feature_id AS asx_turn_right_handed_type_two_id,
  18217. feature.*
  18218. FROM
  18219. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18220. WHERE cvterm.name = 'asx_turn_right_handed_type_two';
  18221. --- ************************************************
  18222. --- *** relation: asx_turn_right_handed_type_one ***
  18223. --- *** relation type: VIEW ***
  18224. --- *** ***
  18225. --- *** Right handed type I (dihedral angles):- ***
  18226. --- *** Residue(i): -140 degrees < chi (1) -120 ***
  18227. --- *** degrees < -20 degrees, -90 degrees < psi ***
  18228. --- *** +120 degrees < +40 degrees. Residue(i+1 ***
  18229. --- *** ): -140 degrees < phi < -20 degrees, -90 ***
  18230. --- *** degrees < psi < +40 degrees. ***
  18231. --- ************************************************
  18232. ---
  18233. CREATE VIEW asx_turn_right_handed_type_one AS
  18234. SELECT
  18235. feature_id AS asx_turn_right_handed_type_one_id,
  18236. feature.*
  18237. FROM
  18238. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18239. WHERE cvterm.name = 'asx_turn_right_handed_type_one';
  18240. --- ************************************************
  18241. --- *** relation: beta_turn ***
  18242. --- *** relation type: VIEW ***
  18243. --- *** ***
  18244. --- *** A motif of four consecutive residues tha ***
  18245. --- *** t may contain one H-bond, which, if pres ***
  18246. --- *** ent, is between the main-chain CO of the ***
  18247. --- *** first residue and the main-chain NH of ***
  18248. --- *** the fourth. It is characterized by the d ***
  18249. --- *** ihedral angles of the second and third r ***
  18250. --- *** esidues, which are the basis for sub-cat ***
  18251. --- *** egorization. ***
  18252. --- ************************************************
  18253. ---
  18254. CREATE VIEW beta_turn AS
  18255. SELECT
  18256. feature_id AS beta_turn_id,
  18257. feature.*
  18258. FROM
  18259. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18260. 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';
  18261. --- ************************************************
  18262. --- *** relation: beta_turn_left_handed_type_one ***
  18263. --- *** relation type: VIEW ***
  18264. --- *** ***
  18265. --- *** Left handed type I:A motif of four conse ***
  18266. --- *** cutive residues that may contain one H-b ***
  18267. --- *** ond, which, if present, is between the m ***
  18268. --- *** ain-chain CO of the first residue and th ***
  18269. --- *** e main-chain NH of the fourth. It is cha ***
  18270. --- *** racterized by the dihedral angles:- Resi ***
  18271. --- *** due(i+1): -140 degrees > phi > -20 degre ***
  18272. --- *** es, -90 degrees > psi > +40 degrees. Res ***
  18273. --- *** idue(i+2): -140 degrees > phi > -20 degr ***
  18274. --- *** ees, -90 degrees > psi > +40 degrees. ***
  18275. --- ************************************************
  18276. ---
  18277. CREATE VIEW beta_turn_left_handed_type_one AS
  18278. SELECT
  18279. feature_id AS beta_turn_left_handed_type_one_id,
  18280. feature.*
  18281. FROM
  18282. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18283. WHERE cvterm.name = 'beta_turn_left_handed_type_one';
  18284. --- ************************************************
  18285. --- *** relation: beta_turn_left_handed_type_two ***
  18286. --- *** relation type: VIEW ***
  18287. --- *** ***
  18288. --- *** Left handed type II: A motif of four con ***
  18289. --- *** secutive residues that may contain one H ***
  18290. --- *** -bond, which, if present, is between the ***
  18291. --- *** main-chain CO of the first residue and ***
  18292. --- *** the main-chain NH of the fourth. It is c ***
  18293. --- *** haracterized by the dihedral angles: Res ***
  18294. --- *** idue(i+1): -140 degrees > phi > -20 degr ***
  18295. --- *** ees, +80 degrees > psi > +180 degrees. R ***
  18296. --- *** esidue(i+2): +20 degrees > phi > +140 de ***
  18297. --- *** grees, -40 degrees > psi > +90 degrees. ***
  18298. --- ************************************************
  18299. ---
  18300. CREATE VIEW beta_turn_left_handed_type_two AS
  18301. SELECT
  18302. feature_id AS beta_turn_left_handed_type_two_id,
  18303. feature.*
  18304. FROM
  18305. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18306. WHERE cvterm.name = 'beta_turn_left_handed_type_two';
  18307. --- ************************************************
  18308. --- *** relation: beta_turn_right_handed_type_one ***
  18309. --- *** relation type: VIEW ***
  18310. --- *** ***
  18311. --- *** Right handed type I:A motif of four cons ***
  18312. --- *** ecutive residues that may contain one H- ***
  18313. --- *** bond, which, if present, is between the ***
  18314. --- *** main-chain CO of the first residue and t ***
  18315. --- *** he main-chain NH of the fourth. It is ch ***
  18316. --- *** aracterized by the dihedral angles: Resi ***
  18317. --- *** due(i+1): -140 degrees < phi < -20 degre ***
  18318. --- *** es, -90 degrees < psi < +40 degrees. Res ***
  18319. --- *** idue(i+2): -140 degrees < phi < -20 degr ***
  18320. --- *** ees, -90 degrees < psi < +40 degrees. ***
  18321. --- ************************************************
  18322. ---
  18323. CREATE VIEW beta_turn_right_handed_type_one AS
  18324. SELECT
  18325. feature_id AS beta_turn_right_handed_type_one_id,
  18326. feature.*
  18327. FROM
  18328. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18329. WHERE cvterm.name = 'beta_turn_right_handed_type_one';
  18330. --- ************************************************
  18331. --- *** relation: beta_turn_right_handed_type_two ***
  18332. --- *** relation type: VIEW ***
  18333. --- *** ***
  18334. --- *** Right handed type II:A motif of four con ***
  18335. --- *** secutive residues that may contain one H ***
  18336. --- *** -bond, which, if present, is between the ***
  18337. --- *** main-chain CO of the first residue and ***
  18338. --- *** the main-chain NH of the fourth. It is c ***
  18339. --- *** haracterized by the dihedral angles: Res ***
  18340. --- *** idue(i+1): -140 degrees < phi < -20 degr ***
  18341. --- *** ees, +80 degrees < psi < +180 degrees. R ***
  18342. --- *** esidue(i+2): +20 degrees < phi < +140 de ***
  18343. --- *** grees, -40 degrees < psi < +90 degrees. ***
  18344. --- ************************************************
  18345. ---
  18346. CREATE VIEW beta_turn_right_handed_type_two AS
  18347. SELECT
  18348. feature_id AS beta_turn_right_handed_type_two_id,
  18349. feature.*
  18350. FROM
  18351. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18352. WHERE cvterm.name = 'beta_turn_right_handed_type_two';
  18353. --- ************************************************
  18354. --- *** relation: gamma_turn ***
  18355. --- *** relation type: VIEW ***
  18356. --- *** ***
  18357. --- *** Gamma turns, defined for 3 residues i,( ***
  18358. --- *** i+1),( i+2) if a hydrogen bond exists be ***
  18359. --- *** tween residues i and i+2 and the phi and ***
  18360. --- *** psi angles of residue i+1 fall within 4 ***
  18361. --- *** 0 degrees. ***
  18362. --- ************************************************
  18363. ---
  18364. CREATE VIEW gamma_turn AS
  18365. SELECT
  18366. feature_id AS gamma_turn_id,
  18367. feature.*
  18368. FROM
  18369. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18370. WHERE cvterm.name = 'gamma_turn_classic' OR cvterm.name = 'gamma_turn_inverse' OR cvterm.name = 'gamma_turn';
  18371. --- ************************************************
  18372. --- *** relation: gamma_turn_classic ***
  18373. --- *** relation type: VIEW ***
  18374. --- *** ***
  18375. --- *** Gamma turns, defined for 3 residues i, i ***
  18376. --- *** +1, i+2 if a hydrogen bond exists betwee ***
  18377. --- *** n residues i and i+2 and the phi and psi ***
  18378. --- *** angles of residue i+1 fall within 40 de ***
  18379. --- *** grees: phi(i+1)=75.0 - psi(i+1)=-64.0. ***
  18380. --- ************************************************
  18381. ---
  18382. CREATE VIEW gamma_turn_classic AS
  18383. SELECT
  18384. feature_id AS gamma_turn_classic_id,
  18385. feature.*
  18386. FROM
  18387. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18388. WHERE cvterm.name = 'gamma_turn_classic';
  18389. --- ************************************************
  18390. --- *** relation: gamma_turn_inverse ***
  18391. --- *** relation type: VIEW ***
  18392. --- *** ***
  18393. --- *** Gamma turns, defined for 3 residues i, i ***
  18394. --- *** +1, i+2 if a hydrogen bond exists betwee ***
  18395. --- *** n residues i and i+2 and the phi and psi ***
  18396. --- *** angles of residue i+1 fall within 40 de ***
  18397. --- *** grees: phi(i+1)=-79.0 - psi(i+1)=69.0. ***
  18398. --- ************************************************
  18399. ---
  18400. CREATE VIEW gamma_turn_inverse AS
  18401. SELECT
  18402. feature_id AS gamma_turn_inverse_id,
  18403. feature.*
  18404. FROM
  18405. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18406. WHERE cvterm.name = 'gamma_turn_inverse';
  18407. --- ************************************************
  18408. --- *** relation: serine_threonine_turn ***
  18409. --- *** relation type: VIEW ***
  18410. --- *** ***
  18411. --- *** A motif of three consecutive residues an ***
  18412. --- *** d one H-bond in which: residue(i) is Ser ***
  18413. --- *** ine (S) or Threonine (T), the side-chain ***
  18414. --- *** O of residue(i) is H-bonded to the main ***
  18415. --- *** -chain NH of residue(i+2). ***
  18416. --- ************************************************
  18417. ---
  18418. CREATE VIEW serine_threonine_turn AS
  18419. SELECT
  18420. feature_id AS serine_threonine_turn_id,
  18421. feature.*
  18422. FROM
  18423. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18424. 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';
  18425. --- ************************************************
  18426. --- *** relation: st_turn_left_handed_type_one ***
  18427. --- *** relation type: VIEW ***
  18428. --- *** ***
  18429. --- *** The peptide twists in an anticlockwise, ***
  18430. --- *** left handed manner. The dihedral angles ***
  18431. --- *** for this turn are: Residue(i): -140 degr ***
  18432. --- *** ees < chi(1) -120 degrees < -20 degrees, ***
  18433. --- *** -90 degrees psi +120 degrees < +40 degr ***
  18434. --- *** ees, residue(i+1): -140 degrees < phi < ***
  18435. --- *** -20 degrees, -90 < psi < +40 degrees. ***
  18436. --- ************************************************
  18437. ---
  18438. CREATE VIEW st_turn_left_handed_type_one AS
  18439. SELECT
  18440. feature_id AS st_turn_left_handed_type_one_id,
  18441. feature.*
  18442. FROM
  18443. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18444. WHERE cvterm.name = 'st_turn_left_handed_type_one';
  18445. --- ************************************************
  18446. --- *** relation: st_turn_left_handed_type_two ***
  18447. --- *** relation type: VIEW ***
  18448. --- *** ***
  18449. --- *** The peptide twists in an anticlockwise, ***
  18450. --- *** left handed manner. The dihedral angles ***
  18451. --- *** for this turn are: Residue(i): -140 degr ***
  18452. --- *** ees < chi(1) -120 degrees < -20 degrees, ***
  18453. --- *** +80 degrees psi +120 degrees < +180 deg ***
  18454. --- *** rees, residue(i+1): +20 degrees < phi < ***
  18455. --- *** +140 degrees, -40 < psi < +90 degrees. ***
  18456. --- ************************************************
  18457. ---
  18458. CREATE VIEW st_turn_left_handed_type_two AS
  18459. SELECT
  18460. feature_id AS st_turn_left_handed_type_two_id,
  18461. feature.*
  18462. FROM
  18463. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18464. WHERE cvterm.name = 'st_turn_left_handed_type_two';
  18465. --- ************************************************
  18466. --- *** relation: st_turn_right_handed_type_one ***
  18467. --- *** relation type: VIEW ***
  18468. --- *** ***
  18469. --- *** The peptide twists in an clockwise, righ ***
  18470. --- *** t handed manner. The dihedral angles for ***
  18471. --- *** this turn are: Residue(i): -140 degrees ***
  18472. --- *** < chi(1) -120 degrees < -20 degrees, -9 ***
  18473. --- *** 0 degrees psi +120 degrees < +40 degrees ***
  18474. --- *** , residue(i+1): -140 degrees < phi < -20 ***
  18475. --- *** degrees, -90 < psi < +40 degrees. ***
  18476. --- ************************************************
  18477. ---
  18478. CREATE VIEW st_turn_right_handed_type_one AS
  18479. SELECT
  18480. feature_id AS st_turn_right_handed_type_one_id,
  18481. feature.*
  18482. FROM
  18483. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18484. WHERE cvterm.name = 'st_turn_right_handed_type_one';
  18485. --- ************************************************
  18486. --- *** relation: st_turn_right_handed_type_two ***
  18487. --- *** relation type: VIEW ***
  18488. --- *** ***
  18489. --- *** The peptide twists in an clockwise, righ ***
  18490. --- *** t handed manner. The dihedral angles for ***
  18491. --- *** this turn are: Residue(i): -140 degrees ***
  18492. --- *** < chi(1) -120 degrees < -20 degrees, +8 ***
  18493. --- *** 0 degrees psi +120 degrees < +180 degree ***
  18494. --- *** s, residue(i+1): +20 degrees < phi < +14 ***
  18495. --- *** 0 degrees, -40 < psi < +90 degrees. ***
  18496. --- ************************************************
  18497. ---
  18498. CREATE VIEW st_turn_right_handed_type_two AS
  18499. SELECT
  18500. feature_id AS st_turn_right_handed_type_two_id,
  18501. feature.*
  18502. FROM
  18503. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18504. WHERE cvterm.name = 'st_turn_right_handed_type_two';
  18505. --- ************************************************
  18506. --- *** relation: polypeptide_variation_site ***
  18507. --- *** relation type: VIEW ***
  18508. --- *** ***
  18509. --- *** A site of sequence variation (alteration ***
  18510. --- *** ). Alternative sequence due to naturally ***
  18511. --- *** occuring events such as polymorphisms a ***
  18512. --- *** nd altermatve splicing or experimental m ***
  18513. --- *** ethods such as site directed mutagenesis ***
  18514. --- *** . ***
  18515. --- ************************************************
  18516. ---
  18517. CREATE VIEW polypeptide_variation_site AS
  18518. SELECT
  18519. feature_id AS polypeptide_variation_site_id,
  18520. feature.*
  18521. FROM
  18522. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18523. WHERE cvterm.name = 'natural_variant_site' OR cvterm.name = 'mutated_variant_site' OR cvterm.name = 'alternate_sequence_site' OR cvterm.name = 'polypeptide_variation_site';
  18524. --- ************************************************
  18525. --- *** relation: natural_variant_site ***
  18526. --- *** relation type: VIEW ***
  18527. --- *** ***
  18528. --- *** Describes the natural sequence variants ***
  18529. --- *** due to polymorphisms, disease-associated ***
  18530. --- *** mutations, RNA editing and variations b ***
  18531. --- *** etween strains, isolates or cultivars. ***
  18532. --- ************************************************
  18533. ---
  18534. CREATE VIEW natural_variant_site AS
  18535. SELECT
  18536. feature_id AS natural_variant_site_id,
  18537. feature.*
  18538. FROM
  18539. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18540. WHERE cvterm.name = 'natural_variant_site';
  18541. --- ************************************************
  18542. --- *** relation: mutated_variant_site ***
  18543. --- *** relation type: VIEW ***
  18544. --- *** ***
  18545. --- *** Site which has been experimentally alter ***
  18546. --- *** ed. ***
  18547. --- ************************************************
  18548. ---
  18549. CREATE VIEW mutated_variant_site AS
  18550. SELECT
  18551. feature_id AS mutated_variant_site_id,
  18552. feature.*
  18553. FROM
  18554. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18555. WHERE cvterm.name = 'mutated_variant_site';
  18556. --- ************************************************
  18557. --- *** relation: alternate_sequence_site ***
  18558. --- *** relation type: VIEW ***
  18559. --- *** ***
  18560. --- *** Description of sequence variants produce ***
  18561. --- *** d by alternative splicing, alternative p ***
  18562. --- *** romoter usage, alternative initiation an ***
  18563. --- *** d ribosomal frameshifting. ***
  18564. --- ************************************************
  18565. ---
  18566. CREATE VIEW alternate_sequence_site AS
  18567. SELECT
  18568. feature_id AS alternate_sequence_site_id,
  18569. feature.*
  18570. FROM
  18571. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18572. WHERE cvterm.name = 'alternate_sequence_site';
  18573. --- ************************************************
  18574. --- *** relation: beta_turn_type_six ***
  18575. --- *** relation type: VIEW ***
  18576. --- *** ***
  18577. --- *** A motif of four consecutive peptide resi ***
  18578. --- *** des of type VIa or type VIb and where th ***
  18579. --- *** e i+2 residue is cis-proline. ***
  18580. --- ************************************************
  18581. ---
  18582. CREATE VIEW beta_turn_type_six AS
  18583. SELECT
  18584. feature_id AS beta_turn_type_six_id,
  18585. feature.*
  18586. FROM
  18587. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18588. 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';
  18589. --- ************************************************
  18590. --- *** relation: beta_turn_type_six_a ***
  18591. --- *** relation type: VIEW ***
  18592. --- *** ***
  18593. --- *** A motif of four consecutive peptide resi ***
  18594. --- *** dues, of which the i+2 residue is prolin ***
  18595. --- *** e, and that may contain one H-bond, whic ***
  18596. --- *** h, if present, is between the main-chain ***
  18597. --- *** CO of the first residue and the main-ch ***
  18598. --- *** ain NH of the fourth and is characterize ***
  18599. --- *** d by the dihedral angles: Residue(i+1): ***
  18600. --- *** phi ~ -60 degrees, psi ~ 120 degrees. Re ***
  18601. --- *** sidue(i+2): phi ~ -90 degrees, psi ~ 0 d ***
  18602. --- *** egrees. ***
  18603. --- ************************************************
  18604. ---
  18605. CREATE VIEW beta_turn_type_six_a AS
  18606. SELECT
  18607. feature_id AS beta_turn_type_six_a_id,
  18608. feature.*
  18609. FROM
  18610. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18611. 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';
  18612. --- ************************************************
  18613. --- *** relation: beta_turn_type_six_a_one ***
  18614. --- *** relation type: VIEW ***
  18615. --- *** ***
  18616. --- ************************************************
  18617. ---
  18618. CREATE VIEW beta_turn_type_six_a_one AS
  18619. SELECT
  18620. feature_id AS beta_turn_type_six_a_one_id,
  18621. feature.*
  18622. FROM
  18623. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18624. WHERE cvterm.name = 'beta_turn_type_six_a_one';
  18625. --- ************************************************
  18626. --- *** relation: beta_turn_type_six_a_two ***
  18627. --- *** relation type: VIEW ***
  18628. --- *** ***
  18629. --- ************************************************
  18630. ---
  18631. CREATE VIEW beta_turn_type_six_a_two AS
  18632. SELECT
  18633. feature_id AS beta_turn_type_six_a_two_id,
  18634. feature.*
  18635. FROM
  18636. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18637. WHERE cvterm.name = 'beta_turn_type_six_a_two';
  18638. --- ************************************************
  18639. --- *** relation: beta_turn_type_six_b ***
  18640. --- *** relation type: VIEW ***
  18641. --- *** ***
  18642. --- *** A motif of four consecutive peptide resi ***
  18643. --- *** dues, of which the i+2 residue is prolin ***
  18644. --- *** e, and that may contain one H-bond, whic ***
  18645. --- *** h, if present, is between the main-chain ***
  18646. --- *** CO of the first residue and the main-ch ***
  18647. --- *** ain NH of the fourth and is characterize ***
  18648. --- *** d by the dihedral angles: Residue(i+1): ***
  18649. --- *** phi ~ -120 degrees, psi ~ 120 degrees. R ***
  18650. --- *** esidue(i+2): phi ~ -60 degrees, psi ~ 0 ***
  18651. --- *** degrees. ***
  18652. --- ************************************************
  18653. ---
  18654. CREATE VIEW beta_turn_type_six_b AS
  18655. SELECT
  18656. feature_id AS beta_turn_type_six_b_id,
  18657. feature.*
  18658. FROM
  18659. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18660. WHERE cvterm.name = 'beta_turn_type_six_b';
  18661. --- ************************************************
  18662. --- *** relation: beta_turn_type_eight ***
  18663. --- *** relation type: VIEW ***
  18664. --- *** ***
  18665. --- *** A motif of four consecutive peptide resi ***
  18666. --- *** dues that may contain one H-bond, which, ***
  18667. --- *** if present, is between the main-chain C ***
  18668. --- *** O of the first residue and the main-chai ***
  18669. --- *** n NH of the fourth and is characterized ***
  18670. --- *** by the dihedral angles: Residue(i+1): ph ***
  18671. --- *** i ~ -60 degrees, psi ~ -30 degrees. Resi ***
  18672. --- *** due(i+2): phi ~ -120 degrees, psi ~ 120 ***
  18673. --- *** degrees. ***
  18674. --- ************************************************
  18675. ---
  18676. CREATE VIEW beta_turn_type_eight AS
  18677. SELECT
  18678. feature_id AS beta_turn_type_eight_id,
  18679. feature.*
  18680. FROM
  18681. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18682. WHERE cvterm.name = 'beta_turn_type_eight';
  18683. --- ************************************************
  18684. --- *** relation: dre_motif ***
  18685. --- *** relation type: VIEW ***
  18686. --- *** ***
  18687. --- *** A sequence element characteristic of som ***
  18688. --- *** e RNA polymerase II promoters, usually l ***
  18689. --- *** ocated between -10 and -60 relative to t ***
  18690. --- *** he TSS. Consensus sequence is WATCGATW. ***
  18691. --- ************************************************
  18692. ---
  18693. CREATE VIEW dre_motif AS
  18694. SELECT
  18695. feature_id AS dre_motif_id,
  18696. feature.*
  18697. FROM
  18698. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18699. WHERE cvterm.name = 'DRE_motif';
  18700. --- ************************************************
  18701. --- *** relation: dmv4_motif ***
  18702. --- *** relation type: VIEW ***
  18703. --- *** ***
  18704. --- *** A sequence element characteristic of som ***
  18705. --- *** e RNA polymerase II promoters, located i ***
  18706. --- *** mmediately upstream of some TATA box ele ***
  18707. --- *** ments with respect to the TSS (+1). Cons ***
  18708. --- *** ensus sequence is YGGTCACACTR. Marked sp ***
  18709. --- *** atial preference within core promoter; t ***
  18710. --- *** end to occur near the TSS, although not ***
  18711. --- *** as tightly as INR (SO:0000014). ***
  18712. --- ************************************************
  18713. ---
  18714. CREATE VIEW dmv4_motif AS
  18715. SELECT
  18716. feature_id AS dmv4_motif_id,
  18717. feature.*
  18718. FROM
  18719. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18720. WHERE cvterm.name = 'DMv4_motif';
  18721. --- ************************************************
  18722. --- *** relation: e_box_motif ***
  18723. --- *** relation type: VIEW ***
  18724. --- *** ***
  18725. --- *** A sequence element characteristic of som ***
  18726. --- *** e RNA polymerase II promoters, usually l ***
  18727. --- *** ocated between -60 and +1 relative to th ***
  18728. --- *** e TSS. Consensus sequence is AWCAGCTGWT. ***
  18729. --- *** Tends to co-occur with DMv2 (SO:0001161 ***
  18730. --- *** ). Tends to not occur with DPE motif (SO ***
  18731. --- *** :0000015). ***
  18732. --- ************************************************
  18733. ---
  18734. CREATE VIEW e_box_motif AS
  18735. SELECT
  18736. feature_id AS e_box_motif_id,
  18737. feature.*
  18738. FROM
  18739. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18740. WHERE cvterm.name = 'E_box_motif';
  18741. --- ************************************************
  18742. --- *** relation: dmv5_motif ***
  18743. --- *** relation type: VIEW ***
  18744. --- *** ***
  18745. --- *** A sequence element characteristic of som ***
  18746. --- *** e RNA polymerase II promoters, usually l ***
  18747. --- *** ocated between -50 and -10 relative to t ***
  18748. --- *** he TSS. Consensus sequence is KTYRGTATWT ***
  18749. --- *** TT. Tends to co-occur with DMv4 (SO:0001 ***
  18750. --- *** 157) . Tends to not occur with DPE motif ***
  18751. --- *** (SO:0000015) or MTE (SO:0001162). ***
  18752. --- ************************************************
  18753. ---
  18754. CREATE VIEW dmv5_motif AS
  18755. SELECT
  18756. feature_id AS dmv5_motif_id,
  18757. feature.*
  18758. FROM
  18759. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18760. WHERE cvterm.name = 'DMv5_motif';
  18761. --- ************************************************
  18762. --- *** relation: dmv3_motif ***
  18763. --- *** relation type: VIEW ***
  18764. --- *** ***
  18765. --- *** A sequence element characteristic of som ***
  18766. --- *** e RNA polymerase II promoters, usually l ***
  18767. --- *** ocated between -30 and +15 relative to t ***
  18768. --- *** he TSS. Consensus sequence is KNNCAKCNCT ***
  18769. --- *** RNY. Tends to co-occur with DMv2 (SO:000 ***
  18770. --- *** 1161). Tends to not occur with DPE motif ***
  18771. --- *** (SO:0000015) or MTE (0001162). ***
  18772. --- ************************************************
  18773. ---
  18774. CREATE VIEW dmv3_motif AS
  18775. SELECT
  18776. feature_id AS dmv3_motif_id,
  18777. feature.*
  18778. FROM
  18779. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18780. WHERE cvterm.name = 'DMv3_motif';
  18781. --- ************************************************
  18782. --- *** relation: dmv2_motif ***
  18783. --- *** relation type: VIEW ***
  18784. --- *** ***
  18785. --- *** A sequence element characteristic of som ***
  18786. --- *** e RNA polymerase II promoters, usually l ***
  18787. --- *** ocated between -60 and -45 relative to t ***
  18788. --- *** he TSS. Consensus sequence is MKSYGGCARC ***
  18789. --- *** GSYSS. Tends to co-occur with DMv3 (SO:0 ***
  18790. --- *** 001160). Tends to not occur with DPE mot ***
  18791. --- *** if (SO:0000015) or MTE (SO:0001162). ***
  18792. --- ************************************************
  18793. ---
  18794. CREATE VIEW dmv2_motif AS
  18795. SELECT
  18796. feature_id AS dmv2_motif_id,
  18797. feature.*
  18798. FROM
  18799. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18800. WHERE cvterm.name = 'DMv2_motif';
  18801. --- ************************************************
  18802. --- *** relation: mte ***
  18803. --- *** relation type: VIEW ***
  18804. --- *** ***
  18805. --- *** A sequence element characteristic of som ***
  18806. --- *** e RNA polymerase II promoters, usually l ***
  18807. --- *** ocated between +20 and +30 relative to t ***
  18808. --- *** he TSS. Consensus sequence is CSARCSSAAC ***
  18809. --- *** GS. Tends to co-occur with INR motif (SO ***
  18810. --- *** :0000014). Tends to not occur with DPE m ***
  18811. --- *** otif (SO:0000015) or DMv5 (SO:0001159). ***
  18812. --- ************************************************
  18813. ---
  18814. CREATE VIEW mte AS
  18815. SELECT
  18816. feature_id AS mte_id,
  18817. feature.*
  18818. FROM
  18819. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18820. WHERE cvterm.name = 'MTE';
  18821. --- ************************************************
  18822. --- *** relation: inr1_motif ***
  18823. --- *** relation type: VIEW ***
  18824. --- *** ***
  18825. --- *** A promoter motif with consensus sequence ***
  18826. --- *** TCATTCG. ***
  18827. --- ************************************************
  18828. ---
  18829. CREATE VIEW inr1_motif AS
  18830. SELECT
  18831. feature_id AS inr1_motif_id,
  18832. feature.*
  18833. FROM
  18834. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18835. WHERE cvterm.name = 'INR1_motif';
  18836. --- ************************************************
  18837. --- *** relation: dpe1_motif ***
  18838. --- *** relation type: VIEW ***
  18839. --- *** ***
  18840. --- *** A promoter motif with consensus sequence ***
  18841. --- *** CGGACGT. ***
  18842. --- ************************************************
  18843. ---
  18844. CREATE VIEW dpe1_motif AS
  18845. SELECT
  18846. feature_id AS dpe1_motif_id,
  18847. feature.*
  18848. FROM
  18849. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18850. WHERE cvterm.name = 'DPE1_motif';
  18851. --- ************************************************
  18852. --- *** relation: dmv1_motif ***
  18853. --- *** relation type: VIEW ***
  18854. --- *** ***
  18855. --- *** A promoter motif with consensus sequence ***
  18856. --- *** CARCCCT. ***
  18857. --- ************************************************
  18858. ---
  18859. CREATE VIEW dmv1_motif AS
  18860. SELECT
  18861. feature_id AS dmv1_motif_id,
  18862. feature.*
  18863. FROM
  18864. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18865. WHERE cvterm.name = 'DMv1_motif';
  18866. --- ************************************************
  18867. --- *** relation: gaga_motif ***
  18868. --- *** relation type: VIEW ***
  18869. --- *** ***
  18870. --- *** A non directional promoter motif with co ***
  18871. --- *** nsensus sequence GAGAGCG. ***
  18872. --- ************************************************
  18873. ---
  18874. CREATE VIEW gaga_motif AS
  18875. SELECT
  18876. feature_id AS gaga_motif_id,
  18877. feature.*
  18878. FROM
  18879. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18880. WHERE cvterm.name = 'GAGA_motif';
  18881. --- ************************************************
  18882. --- *** relation: ndm2_motif ***
  18883. --- *** relation type: VIEW ***
  18884. --- *** ***
  18885. --- *** A non directional promoter motif with co ***
  18886. --- *** nsensus CGMYGYCR. ***
  18887. --- ************************************************
  18888. ---
  18889. CREATE VIEW ndm2_motif AS
  18890. SELECT
  18891. feature_id AS ndm2_motif_id,
  18892. feature.*
  18893. FROM
  18894. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18895. WHERE cvterm.name = 'NDM2_motif';
  18896. --- ************************************************
  18897. --- *** relation: ndm3_motif ***
  18898. --- *** relation type: VIEW ***
  18899. --- *** ***
  18900. --- *** A non directional promoter motif with co ***
  18901. --- *** nsensus sequence GAAAGCT. ***
  18902. --- ************************************************
  18903. ---
  18904. CREATE VIEW ndm3_motif AS
  18905. SELECT
  18906. feature_id AS ndm3_motif_id,
  18907. feature.*
  18908. FROM
  18909. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18910. WHERE cvterm.name = 'NDM3_motif';
  18911. --- ************************************************
  18912. --- *** relation: ds_rna_viral_sequence ***
  18913. --- *** relation type: VIEW ***
  18914. --- *** ***
  18915. --- *** A ds_RNA_viral_sequence is a viral_seque ***
  18916. --- *** nce that is the sequence of a virus that ***
  18917. --- *** exists as double stranded RNA. ***
  18918. --- ************************************************
  18919. ---
  18920. CREATE VIEW ds_rna_viral_sequence AS
  18921. SELECT
  18922. feature_id AS ds_rna_viral_sequence_id,
  18923. feature.*
  18924. FROM
  18925. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18926. WHERE cvterm.name = 'ds_RNA_viral_sequence';
  18927. --- ************************************************
  18928. --- *** relation: polinton ***
  18929. --- *** relation type: VIEW ***
  18930. --- *** ***
  18931. --- *** A kind of DNA transposon that populates ***
  18932. --- *** the genomes of protists, fungi, and anim ***
  18933. --- *** als, characterized by a unique set of pr ***
  18934. --- *** oteins necessary for their transposition ***
  18935. --- *** , including a protein-primed DNA polymer ***
  18936. --- *** ase B, retroviral integrase, cysteine pr ***
  18937. --- *** otease, and ATPase. Polintons are charac ***
  18938. --- *** terized by 6-bp target site duplications ***
  18939. --- *** , terminal-inverted repeats that are sev ***
  18940. --- *** eral hundred nucleotides long, and 5'-AG ***
  18941. --- *** and TC-3' termini. Polintons exist as a ***
  18942. --- *** utonomous and nonautonomous elements. ***
  18943. --- ************************************************
  18944. ---
  18945. CREATE VIEW polinton AS
  18946. SELECT
  18947. feature_id AS polinton_id,
  18948. feature.*
  18949. FROM
  18950. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18951. WHERE cvterm.name = 'polinton';
  18952. --- ************************************************
  18953. --- *** relation: rrna_21s ***
  18954. --- *** relation type: VIEW ***
  18955. --- *** ***
  18956. --- *** A component of the large ribosomal subun ***
  18957. --- *** it in mitochondrial rRNA. ***
  18958. --- ************************************************
  18959. ---
  18960. CREATE VIEW rrna_21s AS
  18961. SELECT
  18962. feature_id AS rrna_21s_id,
  18963. feature.*
  18964. FROM
  18965. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18966. WHERE cvterm.name = 'rRNA_21S';
  18967. --- ************************************************
  18968. --- *** relation: trna_region ***
  18969. --- *** relation type: VIEW ***
  18970. --- *** ***
  18971. --- *** A region of a tRNA. ***
  18972. --- ************************************************
  18973. ---
  18974. CREATE VIEW trna_region AS
  18975. SELECT
  18976. feature_id AS trna_region_id,
  18977. feature.*
  18978. FROM
  18979. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18980. 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';
  18981. --- ************************************************
  18982. --- *** relation: anticodon_loop ***
  18983. --- *** relation type: VIEW ***
  18984. --- *** ***
  18985. --- *** A sequence of seven nucleotide bases in ***
  18986. --- *** tRNA which contains the anticodon. It ha ***
  18987. --- *** s the sequence 5'-pyrimidine-purine-anti ***
  18988. --- *** codon-modified purine-any base-3. ***
  18989. --- ************************************************
  18990. ---
  18991. CREATE VIEW anticodon_loop AS
  18992. SELECT
  18993. feature_id AS anticodon_loop_id,
  18994. feature.*
  18995. FROM
  18996. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18997. WHERE cvterm.name = 'anticodon_loop';
  18998. --- ************************************************
  18999. --- *** relation: anticodon ***
  19000. --- *** relation type: VIEW ***
  19001. --- *** ***
  19002. --- *** A sequence of three nucleotide bases in ***
  19003. --- *** tRNA which recognizes a codon in mRNA. ***
  19004. --- ************************************************
  19005. ---
  19006. CREATE VIEW anticodon AS
  19007. SELECT
  19008. feature_id AS anticodon_id,
  19009. feature.*
  19010. FROM
  19011. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19012. WHERE cvterm.name = 'anticodon';
  19013. --- ************************************************
  19014. --- *** relation: cca_tail ***
  19015. --- *** relation type: VIEW ***
  19016. --- *** ***
  19017. --- *** Base sequence at the 3' end of a tRNA. T ***
  19018. --- *** he 3'-hydroxyl group on the terminal ade ***
  19019. --- *** nosine is the attachment point for the a ***
  19020. --- *** mino acid. ***
  19021. --- ************************************************
  19022. ---
  19023. CREATE VIEW cca_tail AS
  19024. SELECT
  19025. feature_id AS cca_tail_id,
  19026. feature.*
  19027. FROM
  19028. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19029. WHERE cvterm.name = 'CCA_tail';
  19030. --- ************************************************
  19031. --- *** relation: dhu_loop ***
  19032. --- *** relation type: VIEW ***
  19033. --- *** ***
  19034. --- *** Non-base-paired sequence of nucleotide b ***
  19035. --- *** ases in tRNA. It contains several dihydr ***
  19036. --- *** ouracil residues. ***
  19037. --- ************************************************
  19038. ---
  19039. CREATE VIEW dhu_loop AS
  19040. SELECT
  19041. feature_id AS dhu_loop_id,
  19042. feature.*
  19043. FROM
  19044. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19045. WHERE cvterm.name = 'DHU_loop';
  19046. --- ************************************************
  19047. --- *** relation: t_loop ***
  19048. --- *** relation type: VIEW ***
  19049. --- *** ***
  19050. --- *** Non-base-paired sequence of three nucleo ***
  19051. --- *** tide bases in tRNA. It has sequence T-Ps ***
  19052. --- *** i-C. ***
  19053. --- ************************************************
  19054. ---
  19055. CREATE VIEW t_loop AS
  19056. SELECT
  19057. feature_id AS t_loop_id,
  19058. feature.*
  19059. FROM
  19060. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19061. WHERE cvterm.name = 'T_loop';
  19062. --- ************************************************
  19063. --- *** relation: pyrrolysine_trna_primary_transcript ***
  19064. --- *** relation type: VIEW ***
  19065. --- *** ***
  19066. --- *** A primary transcript encoding pyrrolysyl ***
  19067. --- *** tRNA (SO:0000766). ***
  19068. --- ************************************************
  19069. ---
  19070. CREATE VIEW pyrrolysine_trna_primary_transcript AS
  19071. SELECT
  19072. feature_id AS pyrrolysine_trna_primary_transcript_id,
  19073. feature.*
  19074. FROM
  19075. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19076. WHERE cvterm.name = 'pyrrolysine_tRNA_primary_transcript';
  19077. --- ************************************************
  19078. --- *** relation: u3_snorna ***
  19079. --- *** relation type: VIEW ***
  19080. --- *** ***
  19081. --- *** U3 snoRNA is a member of the box C/D cla ***
  19082. --- *** ss of small nucleolar RNAs. The U3 snoRN ***
  19083. --- *** A secondary structure is characterised b ***
  19084. --- *** y a small 5' domain (with boxes A and A' ***
  19085. --- *** ), and a larger 3' domain (with boxes B, ***
  19086. --- *** C, C', and D), the two domains being li ***
  19087. --- *** nked by a single-stranded hinge. Boxes B ***
  19088. --- *** and C form the B/C motif, which appears ***
  19089. --- *** to be exclusive to U3 snoRNAs, and boxe ***
  19090. --- *** s C' and D form the C'/D motif. The latt ***
  19091. --- *** er is functionally similar to the C/D mo ***
  19092. --- *** tifs found in other snoRNAs. The 5' doma ***
  19093. --- *** in and the hinge region act as a pre-rRN ***
  19094. --- *** A-binding domain. The 3' domain has cons ***
  19095. --- *** erved protein-binding sites. Both the bo ***
  19096. --- *** x B/C and box C'/D motifs are sufficient ***
  19097. --- *** for nuclear retention of U3 snoRNA. The ***
  19098. --- *** box C'/D motif is also necessary for nu ***
  19099. --- *** cleolar localization, stability and hype ***
  19100. --- *** rmethylation of U3 snoRNA. Both box B/C ***
  19101. --- *** and C'/D motifs are involved in specific ***
  19102. --- *** protein interactions and are necessary ***
  19103. --- *** for the rRNA processing functions of U3 ***
  19104. --- *** snoRNA. ***
  19105. --- ************************************************
  19106. ---
  19107. CREATE VIEW u3_snorna AS
  19108. SELECT
  19109. feature_id AS u3_snorna_id,
  19110. feature.*
  19111. FROM
  19112. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19113. WHERE cvterm.name = 'U3_snoRNA';
  19114. --- ************************************************
  19115. --- *** relation: au_rich_element ***
  19116. --- *** relation type: VIEW ***
  19117. --- *** ***
  19118. --- *** A cis-acting element found in the 3' UTR ***
  19119. --- *** of some mRNA which is rich in AUUUA pen ***
  19120. --- *** tamers. Messenger RNAs bearing multiple ***
  19121. --- *** AU-rich elements are often unstable. ***
  19122. --- ************************************************
  19123. ---
  19124. CREATE VIEW au_rich_element AS
  19125. SELECT
  19126. feature_id AS au_rich_element_id,
  19127. feature.*
  19128. FROM
  19129. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19130. WHERE cvterm.name = 'AU_rich_element';
  19131. --- ************************************************
  19132. --- *** relation: bruno_response_element ***
  19133. --- *** relation type: VIEW ***
  19134. --- *** ***
  19135. --- *** A cis-acting element found in the 3' UTR ***
  19136. --- *** of some mRNA which is bound by the Dros ***
  19137. --- *** ophila Bruno protein and its homologs. ***
  19138. --- ************************************************
  19139. ---
  19140. CREATE VIEW bruno_response_element AS
  19141. SELECT
  19142. feature_id AS bruno_response_element_id,
  19143. feature.*
  19144. FROM
  19145. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19146. WHERE cvterm.name = 'Bruno_response_element';
  19147. --- ************************************************
  19148. --- *** relation: iron_responsive_element ***
  19149. --- *** relation type: VIEW ***
  19150. --- *** ***
  19151. --- *** A regulatory sequence found in the 5' an ***
  19152. --- *** d 3' UTRs of many mRNAs which encode iro ***
  19153. --- *** n-binding proteins. It has a hairpin str ***
  19154. --- *** ucture and is recognized by trans-acting ***
  19155. --- *** proteins known as iron-regulatory prote ***
  19156. --- *** ins. ***
  19157. --- ************************************************
  19158. ---
  19159. CREATE VIEW iron_responsive_element AS
  19160. SELECT
  19161. feature_id AS iron_responsive_element_id,
  19162. feature.*
  19163. FROM
  19164. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19165. WHERE cvterm.name = 'iron_responsive_element';
  19166. --- ************************************************
  19167. --- *** relation: morpholino_backbone ***
  19168. --- *** relation type: VIEW ***
  19169. --- *** ***
  19170. --- *** An attribute describing a sequence compo ***
  19171. --- *** sed of nucleobases bound to a morpholino ***
  19172. --- *** backbone. A morpholino backbone consist ***
  19173. --- *** s of morpholine (CHEBI:34856) rings conn ***
  19174. --- *** ected by phosphorodiamidate linkages. ***
  19175. --- ************************************************
  19176. ---
  19177. CREATE VIEW morpholino_backbone AS
  19178. SELECT
  19179. feature_id AS morpholino_backbone_id,
  19180. feature.*
  19181. FROM
  19182. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19183. WHERE cvterm.name = 'morpholino_backbone';
  19184. --- ************************************************
  19185. --- *** relation: pna ***
  19186. --- *** relation type: VIEW ***
  19187. --- *** ***
  19188. --- *** An attribute describing a sequence compo ***
  19189. --- *** sed of peptide nucleic acid (CHEBI:48021 ***
  19190. --- *** ), a chemical consisting of nucleobases ***
  19191. --- *** bound to a backbone composed of repeatin ***
  19192. --- *** g N-(2-aminoethyl)-glycine units linked ***
  19193. --- *** by peptide bonds. The purine and pyrimid ***
  19194. --- *** ine bases are linked to the backbone by ***
  19195. --- *** methylene carbonyl bonds. ***
  19196. --- ************************************************
  19197. ---
  19198. CREATE VIEW pna AS
  19199. SELECT
  19200. feature_id AS pna_id,
  19201. feature.*
  19202. FROM
  19203. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19204. WHERE cvterm.name = 'PNA';
  19205. --- ************************************************
  19206. --- *** relation: enzymatic ***
  19207. --- *** relation type: VIEW ***
  19208. --- *** ***
  19209. --- *** An attribute describing the sequence of ***
  19210. --- *** a transcript that has catalytic activity ***
  19211. --- *** with or without an associated ribonucle ***
  19212. --- *** oprotein. ***
  19213. --- ************************************************
  19214. ---
  19215. CREATE VIEW enzymatic AS
  19216. SELECT
  19217. feature_id AS enzymatic_id,
  19218. feature.*
  19219. FROM
  19220. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19221. WHERE cvterm.name = 'ribozymic' OR cvterm.name = 'enzymatic';
  19222. --- ************************************************
  19223. --- *** relation: ribozymic ***
  19224. --- *** relation type: VIEW ***
  19225. --- *** ***
  19226. --- *** An attribute describing the sequence of ***
  19227. --- *** a transcript that has catalytic activity ***
  19228. --- *** even without an associated ribonucleopr ***
  19229. --- *** otein. ***
  19230. --- ************************************************
  19231. ---
  19232. CREATE VIEW ribozymic AS
  19233. SELECT
  19234. feature_id AS ribozymic_id,
  19235. feature.*
  19236. FROM
  19237. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19238. WHERE cvterm.name = 'ribozymic';
  19239. --- ************************************************
  19240. --- *** relation: pseudouridylation_guide_snorna ***
  19241. --- *** relation type: VIEW ***
  19242. --- *** ***
  19243. --- *** A snoRNA that specifies the site of pseu ***
  19244. --- *** douridylation in an RNA molecule by base ***
  19245. --- *** pairing with a short sequence around th ***
  19246. --- *** e target residue. ***
  19247. --- ************************************************
  19248. ---
  19249. CREATE VIEW pseudouridylation_guide_snorna AS
  19250. SELECT
  19251. feature_id AS pseudouridylation_guide_snorna_id,
  19252. feature.*
  19253. FROM
  19254. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19255. WHERE cvterm.name = 'pseudouridylation_guide_snoRNA';
  19256. --- ************************************************
  19257. --- *** relation: lna ***
  19258. --- *** relation type: VIEW ***
  19259. --- *** ***
  19260. --- *** An attribute describing a sequence consi ***
  19261. --- *** sting of nucleobases attached to a repea ***
  19262. --- *** ting unit made of 'locked' deoxyribose r ***
  19263. --- *** ings connected to a phosphate backbone. ***
  19264. --- *** The deoxyribose unit's conformation is ' ***
  19265. --- *** locked' by a 2'-C,4'-C-oxymethylene link ***
  19266. --- *** . ***
  19267. --- ************************************************
  19268. ---
  19269. CREATE VIEW lna AS
  19270. SELECT
  19271. feature_id AS lna_id,
  19272. feature.*
  19273. FROM
  19274. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19275. WHERE cvterm.name = 'LNA';
  19276. --- ************************************************
  19277. --- *** relation: lna_oligo ***
  19278. --- *** relation type: VIEW ***
  19279. --- *** ***
  19280. --- *** An oligo composed of LNA residues. ***
  19281. --- ************************************************
  19282. ---
  19283. CREATE VIEW lna_oligo AS
  19284. SELECT
  19285. feature_id AS lna_oligo_id,
  19286. feature.*
  19287. FROM
  19288. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19289. WHERE cvterm.name = 'LNA_oligo';
  19290. --- ************************************************
  19291. --- *** relation: tna ***
  19292. --- *** relation type: VIEW ***
  19293. --- *** ***
  19294. --- *** An attribute describing a sequence consi ***
  19295. --- *** sting of nucleobases attached to a repea ***
  19296. --- *** ting unit made of threose rings connecte ***
  19297. --- *** d to a phosphate backbone. ***
  19298. --- ************************************************
  19299. ---
  19300. CREATE VIEW tna AS
  19301. SELECT
  19302. feature_id AS tna_id,
  19303. feature.*
  19304. FROM
  19305. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19306. WHERE cvterm.name = 'TNA';
  19307. --- ************************************************
  19308. --- *** relation: tna_oligo ***
  19309. --- *** relation type: VIEW ***
  19310. --- *** ***
  19311. --- *** An oligo composed of TNA residues. ***
  19312. --- ************************************************
  19313. ---
  19314. CREATE VIEW tna_oligo AS
  19315. SELECT
  19316. feature_id AS tna_oligo_id,
  19317. feature.*
  19318. FROM
  19319. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19320. WHERE cvterm.name = 'TNA_oligo';
  19321. --- ************************************************
  19322. --- *** relation: gna ***
  19323. --- *** relation type: VIEW ***
  19324. --- *** ***
  19325. --- *** An attribute describing a sequence consi ***
  19326. --- *** sting of nucleobases attached to a repea ***
  19327. --- *** ting unit made of an acyclic three-carbo ***
  19328. --- *** n propylene glycol connected to a phosph ***
  19329. --- *** ate backbone. It has two enantiomeric fo ***
  19330. --- *** rms, (R)-GNA and (S)-GNA. ***
  19331. --- ************************************************
  19332. ---
  19333. CREATE VIEW gna AS
  19334. SELECT
  19335. feature_id AS gna_id,
  19336. feature.*
  19337. FROM
  19338. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19339. WHERE cvterm.name = 'R_GNA' OR cvterm.name = 'S_GNA' OR cvterm.name = 'GNA';
  19340. --- ************************************************
  19341. --- *** relation: gna_oligo ***
  19342. --- *** relation type: VIEW ***
  19343. --- *** ***
  19344. --- *** An oligo composed of GNA residues. ***
  19345. --- ************************************************
  19346. ---
  19347. CREATE VIEW gna_oligo AS
  19348. SELECT
  19349. feature_id AS gna_oligo_id,
  19350. feature.*
  19351. FROM
  19352. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19353. WHERE cvterm.name = 'R_GNA_oligo' OR cvterm.name = 'S_GNA_oligo' OR cvterm.name = 'GNA_oligo';
  19354. --- ************************************************
  19355. --- *** relation: r_gna ***
  19356. --- *** relation type: VIEW ***
  19357. --- *** ***
  19358. --- *** An attribute describing a GNA sequence i ***
  19359. --- *** n the (R)-GNA enantiomer. ***
  19360. --- ************************************************
  19361. ---
  19362. CREATE VIEW r_gna AS
  19363. SELECT
  19364. feature_id AS r_gna_id,
  19365. feature.*
  19366. FROM
  19367. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19368. WHERE cvterm.name = 'R_GNA';
  19369. --- ************************************************
  19370. --- *** relation: r_gna_oligo ***
  19371. --- *** relation type: VIEW ***
  19372. --- *** ***
  19373. --- *** An oligo composed of (R)-GNA residues. ***
  19374. --- ************************************************
  19375. ---
  19376. CREATE VIEW r_gna_oligo AS
  19377. SELECT
  19378. feature_id AS r_gna_oligo_id,
  19379. feature.*
  19380. FROM
  19381. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19382. WHERE cvterm.name = 'R_GNA_oligo';
  19383. --- ************************************************
  19384. --- *** relation: s_gna ***
  19385. --- *** relation type: VIEW ***
  19386. --- *** ***
  19387. --- *** An attribute describing a GNA sequence i ***
  19388. --- *** n the (S)-GNA enantiomer. ***
  19389. --- ************************************************
  19390. ---
  19391. CREATE VIEW s_gna AS
  19392. SELECT
  19393. feature_id AS s_gna_id,
  19394. feature.*
  19395. FROM
  19396. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19397. WHERE cvterm.name = 'S_GNA';
  19398. --- ************************************************
  19399. --- *** relation: s_gna_oligo ***
  19400. --- *** relation type: VIEW ***
  19401. --- *** ***
  19402. --- *** An oligo composed of (S)-GNA residues. ***
  19403. --- ************************************************
  19404. ---
  19405. CREATE VIEW s_gna_oligo AS
  19406. SELECT
  19407. feature_id AS s_gna_oligo_id,
  19408. feature.*
  19409. FROM
  19410. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19411. WHERE cvterm.name = 'S_GNA_oligo';
  19412. --- ************************************************
  19413. --- *** relation: ds_dna_viral_sequence ***
  19414. --- *** relation type: VIEW ***
  19415. --- *** ***
  19416. --- *** A ds_DNA_viral_sequence is a viral_seque ***
  19417. --- *** nce that is the sequence of a virus that ***
  19418. --- *** exists as double stranded DNA. ***
  19419. --- ************************************************
  19420. ---
  19421. CREATE VIEW ds_dna_viral_sequence AS
  19422. SELECT
  19423. feature_id AS ds_dna_viral_sequence_id,
  19424. feature.*
  19425. FROM
  19426. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19427. WHERE cvterm.name = 'ds_DNA_viral_sequence';
  19428. --- ************************************************
  19429. --- *** relation: ss_rna_viral_sequence ***
  19430. --- *** relation type: VIEW ***
  19431. --- *** ***
  19432. --- *** A ss_RNA_viral_sequence is a viral_seque ***
  19433. --- *** nce that is the sequence of a virus that ***
  19434. --- *** exists as single stranded RNA. ***
  19435. --- ************************************************
  19436. ---
  19437. CREATE VIEW ss_rna_viral_sequence AS
  19438. SELECT
  19439. feature_id AS ss_rna_viral_sequence_id,
  19440. feature.*
  19441. FROM
  19442. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19443. 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';
  19444. --- ************************************************
  19445. --- *** relation: negative_sense_ssrna_viral_sequence ***
  19446. --- *** relation type: VIEW ***
  19447. --- *** ***
  19448. --- *** A negative_sense_RNA_viral_sequence is a ***
  19449. --- *** ss_RNA_viral_sequence that is the seque ***
  19450. --- *** nce of a single stranded RNA virus that ***
  19451. --- *** is complementary to mRNA and must be con ***
  19452. --- *** verted to positive sense RNA by RNA poly ***
  19453. --- *** merase before translation. ***
  19454. --- ************************************************
  19455. ---
  19456. CREATE VIEW negative_sense_ssrna_viral_sequence AS
  19457. SELECT
  19458. feature_id AS negative_sense_ssrna_viral_sequence_id,
  19459. feature.*
  19460. FROM
  19461. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19462. WHERE cvterm.name = 'negative_sense_ssRNA_viral_sequence';
  19463. --- ************************************************
  19464. --- *** relation: positive_sense_ssrna_viral_sequence ***
  19465. --- *** relation type: VIEW ***
  19466. --- *** ***
  19467. --- *** A positive_sense_RNA_viral_sequence is a ***
  19468. --- *** ss_RNA_viral_sequence that is the seque ***
  19469. --- *** nce of a single stranded RNA virus that ***
  19470. --- *** can be immediately translated by the hos ***
  19471. --- *** t. ***
  19472. --- ************************************************
  19473. ---
  19474. CREATE VIEW positive_sense_ssrna_viral_sequence AS
  19475. SELECT
  19476. feature_id AS positive_sense_ssrna_viral_sequence_id,
  19477. feature.*
  19478. FROM
  19479. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19480. WHERE cvterm.name = 'positive_sense_ssRNA_viral_sequence';
  19481. --- ************************************************
  19482. --- *** relation: ambisense_ssrna_viral_sequence ***
  19483. --- *** relation type: VIEW ***
  19484. --- *** ***
  19485. --- *** A ambisense_RNA_virus is a ss_RNA_viral_ ***
  19486. --- *** sequence that is the sequence of a singl ***
  19487. --- *** e stranded RNA virus with both messenger ***
  19488. --- *** and anti messenger polarity. ***
  19489. --- ************************************************
  19490. ---
  19491. CREATE VIEW ambisense_ssrna_viral_sequence AS
  19492. SELECT
  19493. feature_id AS ambisense_ssrna_viral_sequence_id,
  19494. feature.*
  19495. FROM
  19496. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19497. WHERE cvterm.name = 'ambisense_ssRNA_viral_sequence';
  19498. --- ************************************************
  19499. --- *** relation: rna_polymerase_promoter ***
  19500. --- *** relation type: VIEW ***
  19501. --- *** ***
  19502. --- *** A region (DNA) to which RNA polymerase b ***
  19503. --- *** inds, to begin transcription. ***
  19504. --- ************************************************
  19505. ---
  19506. CREATE VIEW rna_polymerase_promoter AS
  19507. SELECT
  19508. feature_id AS rna_polymerase_promoter_id,
  19509. feature.*
  19510. FROM
  19511. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19512. 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';
  19513. --- ************************************************
  19514. --- *** relation: phage_rna_polymerase_promoter ***
  19515. --- *** relation type: VIEW ***
  19516. --- *** ***
  19517. --- *** A region (DNA) to which Bacteriophage RN ***
  19518. --- *** A polymerase binds, to begin transcripti ***
  19519. --- *** on. ***
  19520. --- ************************************************
  19521. ---
  19522. CREATE VIEW phage_rna_polymerase_promoter AS
  19523. SELECT
  19524. feature_id AS phage_rna_polymerase_promoter_id,
  19525. feature.*
  19526. FROM
  19527. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19528. 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';
  19529. --- ************************************************
  19530. --- *** relation: sp6_rna_polymerase_promoter ***
  19531. --- *** relation type: VIEW ***
  19532. --- *** ***
  19533. --- *** A region (DNA) to which the SP6 RNA poly ***
  19534. --- *** merase binds, to begin transcription. ***
  19535. --- ************************************************
  19536. ---
  19537. CREATE VIEW sp6_rna_polymerase_promoter AS
  19538. SELECT
  19539. feature_id AS sp6_rna_polymerase_promoter_id,
  19540. feature.*
  19541. FROM
  19542. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19543. WHERE cvterm.name = 'SP6_RNA_Polymerase_Promoter';
  19544. --- ************************************************
  19545. --- *** relation: t3_rna_polymerase_promoter ***
  19546. --- *** relation type: VIEW ***
  19547. --- *** ***
  19548. --- *** A DNA sequence to which the T3 RNA polym ***
  19549. --- *** erase binds, to begin transcription. ***
  19550. --- ************************************************
  19551. ---
  19552. CREATE VIEW t3_rna_polymerase_promoter AS
  19553. SELECT
  19554. feature_id AS t3_rna_polymerase_promoter_id,
  19555. feature.*
  19556. FROM
  19557. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19558. WHERE cvterm.name = 'T3_RNA_Polymerase_Promoter';
  19559. --- ************************************************
  19560. --- *** relation: t7_rna_polymerase_promoter ***
  19561. --- *** relation type: VIEW ***
  19562. --- *** ***
  19563. --- *** A region (DNA) to which the T7 RNA polym ***
  19564. --- *** erase binds, to begin transcription. ***
  19565. --- ************************************************
  19566. ---
  19567. CREATE VIEW t7_rna_polymerase_promoter AS
  19568. SELECT
  19569. feature_id AS t7_rna_polymerase_promoter_id,
  19570. feature.*
  19571. FROM
  19572. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19573. WHERE cvterm.name = 'T7_RNA_Polymerase_Promoter';
  19574. --- ************************************************
  19575. --- *** relation: five_prime_est ***
  19576. --- *** relation type: VIEW ***
  19577. --- *** ***
  19578. --- *** An EST read from the 5' end of a transcr ***
  19579. --- *** ipt that usually codes for a protein. Th ***
  19580. --- *** ese regions tend to be conserved across ***
  19581. --- *** species and do not change much within a ***
  19582. --- *** gene family. ***
  19583. --- ************************************************
  19584. ---
  19585. CREATE VIEW five_prime_est AS
  19586. SELECT
  19587. feature_id AS five_prime_est_id,
  19588. feature.*
  19589. FROM
  19590. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19591. WHERE cvterm.name = 'five_prime_EST';
  19592. --- ************************************************
  19593. --- *** relation: three_prime_est ***
  19594. --- *** relation type: VIEW ***
  19595. --- *** ***
  19596. --- *** An EST read from the 3' end of a transcr ***
  19597. --- *** ipt. They are more likely to fall within ***
  19598. --- *** non-coding, or untranslated regions(UTR ***
  19599. --- *** s). ***
  19600. --- ************************************************
  19601. ---
  19602. CREATE VIEW three_prime_est AS
  19603. SELECT
  19604. feature_id AS three_prime_est_id,
  19605. feature.*
  19606. FROM
  19607. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19608. WHERE cvterm.name = 'three_prime_EST';
  19609. --- ************************************************
  19610. --- *** relation: translational_frameshift ***
  19611. --- *** relation type: VIEW ***
  19612. --- *** ***
  19613. --- *** The region of mRNA (not divisible by 3 b ***
  19614. --- *** ases) that is skipped during the process ***
  19615. --- *** of translational frameshifting (GO:0006 ***
  19616. --- *** 452), causing the reading frame to be di ***
  19617. --- *** fferent. ***
  19618. --- ************************************************
  19619. ---
  19620. CREATE VIEW translational_frameshift AS
  19621. SELECT
  19622. feature_id AS translational_frameshift_id,
  19623. feature.*
  19624. FROM
  19625. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19626. WHERE cvterm.name = 'plus_1_translational_frameshift' OR cvterm.name = 'plus_2_translational_frameshift' OR cvterm.name = 'translational_frameshift';
  19627. --- ************************************************
  19628. --- *** relation: plus_1_translational_frameshift ***
  19629. --- *** relation type: VIEW ***
  19630. --- *** ***
  19631. --- *** The region of mRNA 1 base long that is s ***
  19632. --- *** kipped during the process of translation ***
  19633. --- *** al frameshifting (GO:0006452), causing t ***
  19634. --- *** he reading frame to be different. ***
  19635. --- ************************************************
  19636. ---
  19637. CREATE VIEW plus_1_translational_frameshift AS
  19638. SELECT
  19639. feature_id AS plus_1_translational_frameshift_id,
  19640. feature.*
  19641. FROM
  19642. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19643. WHERE cvterm.name = 'plus_1_translational_frameshift';
  19644. --- ************************************************
  19645. --- *** relation: plus_2_translational_frameshift ***
  19646. --- *** relation type: VIEW ***
  19647. --- *** ***
  19648. --- *** The region of mRNA 2 bases long that is ***
  19649. --- *** skipped during the process of translatio ***
  19650. --- *** nal frameshifting (GO:0006452), causing ***
  19651. --- *** the reading frame to be different. ***
  19652. --- ************************************************
  19653. ---
  19654. CREATE VIEW plus_2_translational_frameshift AS
  19655. SELECT
  19656. feature_id AS plus_2_translational_frameshift_id,
  19657. feature.*
  19658. FROM
  19659. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19660. WHERE cvterm.name = 'plus_2_translational_frameshift';
  19661. --- ************************************************
  19662. --- *** relation: group_iii_intron ***
  19663. --- *** relation type: VIEW ***
  19664. --- *** ***
  19665. --- *** Group III introns are introns found in t ***
  19666. --- *** he mRNA of the plastids of euglenoid pro ***
  19667. --- *** tists. They are spliced by a two step tr ***
  19668. --- *** ansesterification with bulged adenosine ***
  19669. --- *** as initiating nucleophile. ***
  19670. --- ************************************************
  19671. ---
  19672. CREATE VIEW group_iii_intron AS
  19673. SELECT
  19674. feature_id AS group_iii_intron_id,
  19675. feature.*
  19676. FROM
  19677. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19678. WHERE cvterm.name = 'group_III_intron';
  19679. --- ************************************************
  19680. --- *** relation: noncoding_region_of_exon ***
  19681. --- *** relation type: VIEW ***
  19682. --- *** ***
  19683. --- *** The maximal intersection of exon and UTR ***
  19684. --- *** . ***
  19685. --- ************************************************
  19686. ---
  19687. CREATE VIEW noncoding_region_of_exon AS
  19688. SELECT
  19689. feature_id AS noncoding_region_of_exon_id,
  19690. feature.*
  19691. FROM
  19692. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19693. 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';
  19694. --- ************************************************
  19695. --- *** relation: coding_region_of_exon ***
  19696. --- *** relation type: VIEW ***
  19697. --- *** ***
  19698. --- *** The region of an exon that encodes for p ***
  19699. --- *** rotein sequence. ***
  19700. --- ************************************************
  19701. ---
  19702. CREATE VIEW coding_region_of_exon AS
  19703. SELECT
  19704. feature_id AS coding_region_of_exon_id,
  19705. feature.*
  19706. FROM
  19707. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19708. 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';
  19709. --- ************************************************
  19710. --- *** relation: endonuclease_spliced_intron ***
  19711. --- *** relation type: VIEW ***
  19712. --- *** ***
  19713. --- *** An intron that spliced via endonucleolyt ***
  19714. --- *** ic cleavage and ligation rather than tra ***
  19715. --- *** nsesterification. ***
  19716. --- ************************************************
  19717. ---
  19718. CREATE VIEW endonuclease_spliced_intron AS
  19719. SELECT
  19720. feature_id AS endonuclease_spliced_intron_id,
  19721. feature.*
  19722. FROM
  19723. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19724. WHERE cvterm.name = 'archaeal_intron' OR cvterm.name = 'tRNA_intron' OR cvterm.name = 'endonuclease_spliced_intron';
  19725. --- ************************************************
  19726. --- *** relation: protein_coding_gene ***
  19727. --- *** relation type: VIEW ***
  19728. --- *** ***
  19729. --- ************************************************
  19730. ---
  19731. CREATE VIEW protein_coding_gene AS
  19732. SELECT
  19733. feature_id AS protein_coding_gene_id,
  19734. feature.*
  19735. FROM
  19736. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19737. 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';
  19738. --- ************************************************
  19739. --- *** relation: transgenic_insertion ***
  19740. --- *** relation type: VIEW ***
  19741. --- *** ***
  19742. --- *** An insertion that derives from another o ***
  19743. --- *** rganism, via the use of recombinant DNA ***
  19744. --- *** technology. ***
  19745. --- ************************************************
  19746. ---
  19747. CREATE VIEW transgenic_insertion AS
  19748. SELECT
  19749. feature_id AS transgenic_insertion_id,
  19750. feature.*
  19751. FROM
  19752. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19753. WHERE cvterm.name = 'transgenic_insertion';
  19754. --- ************************************************
  19755. --- *** relation: retrogene ***
  19756. --- *** relation type: VIEW ***
  19757. --- *** ***
  19758. --- ************************************************
  19759. ---
  19760. CREATE VIEW retrogene AS
  19761. SELECT
  19762. feature_id AS retrogene_id,
  19763. feature.*
  19764. FROM
  19765. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19766. WHERE cvterm.name = 'retrogene';
  19767. --- ************************************************
  19768. --- *** relation: silenced_by_rna_interference ***
  19769. --- *** relation type: VIEW ***
  19770. --- *** ***
  19771. --- *** An attribute describing an epigenetic pr ***
  19772. --- *** ocess where a gene is inactivated by RNA ***
  19773. --- *** interference. ***
  19774. --- ************************************************
  19775. ---
  19776. CREATE VIEW silenced_by_rna_interference AS
  19777. SELECT
  19778. feature_id AS silenced_by_rna_interference_id,
  19779. feature.*
  19780. FROM
  19781. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19782. WHERE cvterm.name = 'silenced_by_RNA_interference';
  19783. --- ************************************************
  19784. --- *** relation: silenced_by_histone_modification ***
  19785. --- *** relation type: VIEW ***
  19786. --- *** ***
  19787. --- *** An attribute describing an epigenetic pr ***
  19788. --- *** ocess where a gene is inactivated by his ***
  19789. --- *** tone modification. ***
  19790. --- ************************************************
  19791. ---
  19792. CREATE VIEW silenced_by_histone_modification AS
  19793. SELECT
  19794. feature_id AS silenced_by_histone_modification_id,
  19795. feature.*
  19796. FROM
  19797. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19798. WHERE cvterm.name = 'silenced_by_histone_methylation' OR cvterm.name = 'silenced_by_histone_deacetylation' OR cvterm.name = 'silenced_by_histone_modification';
  19799. --- ************************************************
  19800. --- *** relation: silenced_by_histone_methylation ***
  19801. --- *** relation type: VIEW ***
  19802. --- *** ***
  19803. --- *** An attribute describing an epigenetic pr ***
  19804. --- *** ocess where a gene is inactivated by his ***
  19805. --- *** tone methylation. ***
  19806. --- ************************************************
  19807. ---
  19808. CREATE VIEW silenced_by_histone_methylation AS
  19809. SELECT
  19810. feature_id AS silenced_by_histone_methylation_id,
  19811. feature.*
  19812. FROM
  19813. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19814. WHERE cvterm.name = 'silenced_by_histone_methylation';
  19815. --- ************************************************
  19816. --- *** relation: silenced_by_histone_deacetylation ***
  19817. --- *** relation type: VIEW ***
  19818. --- *** ***
  19819. --- *** An attribute describing an epigenetic pr ***
  19820. --- *** ocess where a gene is inactivated by his ***
  19821. --- *** tone deacetylation. ***
  19822. --- ************************************************
  19823. ---
  19824. CREATE VIEW silenced_by_histone_deacetylation AS
  19825. SELECT
  19826. feature_id AS silenced_by_histone_deacetylation_id,
  19827. feature.*
  19828. FROM
  19829. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19830. WHERE cvterm.name = 'silenced_by_histone_deacetylation';
  19831. --- ************************************************
  19832. --- *** relation: gene_silenced_by_rna_interference ***
  19833. --- *** relation type: VIEW ***
  19834. --- *** ***
  19835. --- *** A gene that is silenced by RNA interfere ***
  19836. --- *** nce. ***
  19837. --- ************************************************
  19838. ---
  19839. CREATE VIEW gene_silenced_by_rna_interference AS
  19840. SELECT
  19841. feature_id AS gene_silenced_by_rna_interference_id,
  19842. feature.*
  19843. FROM
  19844. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19845. WHERE cvterm.name = 'gene_silenced_by_RNA_interference';
  19846. --- ************************************************
  19847. --- *** relation: gene_silenced_by_histone_modification ***
  19848. --- *** relation type: VIEW ***
  19849. --- *** ***
  19850. --- *** A gene that is silenced by histone modif ***
  19851. --- *** ication. ***
  19852. --- ************************************************
  19853. ---
  19854. CREATE VIEW gene_silenced_by_histone_modification AS
  19855. SELECT
  19856. feature_id AS gene_silenced_by_histone_modification_id,
  19857. feature.*
  19858. FROM
  19859. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19860. WHERE cvterm.name = 'gene_silenced_by_histone_methylation' OR cvterm.name = 'gene_silenced_by_histone_deacetylation' OR cvterm.name = 'gene_silenced_by_histone_modification';
  19861. --- ************************************************
  19862. --- *** relation: gene_silenced_by_histone_methylation ***
  19863. --- *** relation type: VIEW ***
  19864. --- *** ***
  19865. --- *** A gene that is silenced by histone methy ***
  19866. --- *** lation. ***
  19867. --- ************************************************
  19868. ---
  19869. CREATE VIEW gene_silenced_by_histone_methylation AS
  19870. SELECT
  19871. feature_id AS gene_silenced_by_histone_methylation_id,
  19872. feature.*
  19873. FROM
  19874. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19875. WHERE cvterm.name = 'gene_silenced_by_histone_methylation';
  19876. --- ************************************************
  19877. --- *** relation: gene_silenced_by_histone_deacetylation ***
  19878. --- *** relation type: VIEW ***
  19879. --- *** ***
  19880. --- *** A gene that is silenced by histone deace ***
  19881. --- *** tylation. ***
  19882. --- ************************************************
  19883. ---
  19884. CREATE VIEW gene_silenced_by_histone_deacetylation AS
  19885. SELECT
  19886. feature_id AS gene_silenced_by_histone_deacetylation_id,
  19887. feature.*
  19888. FROM
  19889. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19890. WHERE cvterm.name = 'gene_silenced_by_histone_deacetylation';
  19891. --- ************************************************
  19892. --- *** relation: dihydrouridine ***
  19893. --- *** relation type: VIEW ***
  19894. --- *** ***
  19895. --- *** A modified RNA base in which the 5,6-dih ***
  19896. --- *** ydrouracil is bound to the ribose ring. ***
  19897. --- ************************************************
  19898. ---
  19899. CREATE VIEW dihydrouridine AS
  19900. SELECT
  19901. feature_id AS dihydrouridine_id,
  19902. feature.*
  19903. FROM
  19904. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19905. WHERE cvterm.name = 'dihydrouridine';
  19906. --- ************************************************
  19907. --- *** relation: pseudouridine ***
  19908. --- *** relation type: VIEW ***
  19909. --- *** ***
  19910. --- *** A modified RNA base in which the 5- posi ***
  19911. --- *** tion of the uracil is bound to the ribos ***
  19912. --- *** e ring instead of the 4- position. ***
  19913. --- ************************************************
  19914. ---
  19915. CREATE VIEW pseudouridine AS
  19916. SELECT
  19917. feature_id AS pseudouridine_id,
  19918. feature.*
  19919. FROM
  19920. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19921. WHERE cvterm.name = 'pseudouridine';
  19922. --- ************************************************
  19923. --- *** relation: inosine ***
  19924. --- *** relation type: VIEW ***
  19925. --- *** ***
  19926. --- *** A modified RNA base in which hypoxanthin ***
  19927. --- *** e is bound to the ribose ring. ***
  19928. --- ************************************************
  19929. ---
  19930. CREATE VIEW inosine AS
  19931. SELECT
  19932. feature_id AS inosine_id,
  19933. feature.*
  19934. FROM
  19935. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19936. 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';
  19937. --- ************************************************
  19938. --- *** relation: seven_methylguanine ***
  19939. --- *** relation type: VIEW ***
  19940. --- *** ***
  19941. --- *** A modified RNA base in which guanine is ***
  19942. --- *** methylated at the 7- position. ***
  19943. --- ************************************************
  19944. ---
  19945. CREATE VIEW seven_methylguanine AS
  19946. SELECT
  19947. feature_id AS seven_methylguanine_id,
  19948. feature.*
  19949. FROM
  19950. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19951. WHERE cvterm.name = 'seven_methylguanine';
  19952. --- ************************************************
  19953. --- *** relation: ribothymidine ***
  19954. --- *** relation type: VIEW ***
  19955. --- *** ***
  19956. --- *** A modified RNA base in which thymine is ***
  19957. --- *** bound to the ribose ring. ***
  19958. --- ************************************************
  19959. ---
  19960. CREATE VIEW ribothymidine AS
  19961. SELECT
  19962. feature_id AS ribothymidine_id,
  19963. feature.*
  19964. FROM
  19965. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19966. WHERE cvterm.name = 'ribothymidine';
  19967. --- ************************************************
  19968. --- *** relation: methylinosine ***
  19969. --- *** relation type: VIEW ***
  19970. --- *** ***
  19971. --- *** A modified RNA base in which methylhypox ***
  19972. --- *** anthine is bound to the ribose ring. ***
  19973. --- ************************************************
  19974. ---
  19975. CREATE VIEW methylinosine AS
  19976. SELECT
  19977. feature_id AS methylinosine_id,
  19978. feature.*
  19979. FROM
  19980. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19981. WHERE cvterm.name = 'methylinosine';
  19982. --- ************************************************
  19983. --- *** relation: mobile ***
  19984. --- *** relation type: VIEW ***
  19985. --- *** ***
  19986. --- *** An attribute describing a feature that h ***
  19987. --- *** as either intra-genome or intracellular ***
  19988. --- *** mobility. ***
  19989. --- ************************************************
  19990. ---
  19991. CREATE VIEW mobile AS
  19992. SELECT
  19993. feature_id AS mobile_id,
  19994. feature.*
  19995. FROM
  19996. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19997. WHERE cvterm.name = 'mobile';
  19998. --- ************************************************
  19999. --- *** relation: replicon ***
  20000. --- *** relation type: VIEW ***
  20001. --- *** ***
  20002. --- *** A region containing at least one unique ***
  20003. --- *** origin of replication and a unique termi ***
  20004. --- *** nation site. ***
  20005. --- ************************************************
  20006. ---
  20007. CREATE VIEW replicon AS
  20008. SELECT
  20009. feature_id AS replicon_id,
  20010. feature.*
  20011. FROM
  20012. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20013. 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';
  20014. --- ************************************************
  20015. --- *** relation: base ***
  20016. --- *** relation type: VIEW ***
  20017. --- *** ***
  20018. --- *** A base is a sequence feature that corres ***
  20019. --- *** ponds to a single unit of a nucleotide p ***
  20020. --- *** olymer. ***
  20021. --- ************************************************
  20022. ---
  20023. CREATE VIEW base AS
  20024. SELECT
  20025. feature_id AS base_id,
  20026. feature.*
  20027. FROM
  20028. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20029. 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';
  20030. --- ************************************************
  20031. --- *** relation: amino_acid ***
  20032. --- *** relation type: VIEW ***
  20033. --- *** ***
  20034. --- *** A sequence feature that corresponds to a ***
  20035. --- *** single amino acid residue in a polypept ***
  20036. --- *** ide. ***
  20037. --- ************************************************
  20038. ---
  20039. CREATE VIEW amino_acid AS
  20040. SELECT
  20041. feature_id AS amino_acid_id,
  20042. feature.*
  20043. FROM
  20044. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20045. 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';
  20046. --- ************************************************
  20047. --- *** relation: major_tss ***
  20048. --- *** relation type: VIEW ***
  20049. --- *** ***
  20050. --- ************************************************
  20051. ---
  20052. CREATE VIEW major_tss AS
  20053. SELECT
  20054. feature_id AS major_tss_id,
  20055. feature.*
  20056. FROM
  20057. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20058. WHERE cvterm.name = 'major_TSS';
  20059. --- ************************************************
  20060. --- *** relation: minor_tss ***
  20061. --- *** relation type: VIEW ***
  20062. --- *** ***
  20063. --- ************************************************
  20064. ---
  20065. CREATE VIEW minor_tss AS
  20066. SELECT
  20067. feature_id AS minor_tss_id,
  20068. feature.*
  20069. FROM
  20070. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20071. WHERE cvterm.name = 'minor_TSS';
  20072. --- ************************************************
  20073. --- *** relation: tss_region ***
  20074. --- *** relation type: VIEW ***
  20075. --- *** ***
  20076. --- *** The region of a gene from the 5' most TS ***
  20077. --- *** S to the 3' TSS. ***
  20078. --- ************************************************
  20079. ---
  20080. CREATE VIEW tss_region AS
  20081. SELECT
  20082. feature_id AS tss_region_id,
  20083. feature.*
  20084. FROM
  20085. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20086. WHERE cvterm.name = 'TSS_region';
  20087. --- ************************************************
  20088. --- *** relation: encodes_alternate_transcription_start_sites ***
  20089. --- *** relation type: VIEW ***
  20090. --- *** ***
  20091. --- ************************************************
  20092. ---
  20093. CREATE VIEW encodes_alternate_transcription_start_sites AS
  20094. SELECT
  20095. feature_id AS encodes_alternate_transcription_start_sites_id,
  20096. feature.*
  20097. FROM
  20098. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20099. WHERE cvterm.name = 'encodes_alternate_transcription_start_sites';
  20100. --- ************************************************
  20101. --- *** relation: mirna_primary_transcript_region ***
  20102. --- *** relation type: VIEW ***
  20103. --- *** ***
  20104. --- *** A part of an miRNA primary_transcript. ***
  20105. --- ************************************************
  20106. ---
  20107. CREATE VIEW mirna_primary_transcript_region AS
  20108. SELECT
  20109. feature_id AS mirna_primary_transcript_region_id,
  20110. feature.*
  20111. FROM
  20112. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20113. 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';
  20114. --- ************************************************
  20115. --- *** relation: pre_mirna ***
  20116. --- *** relation type: VIEW ***
  20117. --- *** ***
  20118. --- *** The 60-70 nucleotide region remain after ***
  20119. --- *** Drosha processing of the primary transc ***
  20120. --- *** ript, that folds back upon itself to for ***
  20121. --- *** m a hairpin sructure. ***
  20122. --- ************************************************
  20123. ---
  20124. CREATE VIEW pre_mirna AS
  20125. SELECT
  20126. feature_id AS pre_mirna_id,
  20127. feature.*
  20128. FROM
  20129. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20130. WHERE cvterm.name = 'pre_miRNA';
  20131. --- ************************************************
  20132. --- *** relation: mirna_stem ***
  20133. --- *** relation type: VIEW ***
  20134. --- *** ***
  20135. --- *** The stem of the hairpin loop formed by f ***
  20136. --- *** olding of the pre-miRNA. ***
  20137. --- ************************************************
  20138. ---
  20139. CREATE VIEW mirna_stem AS
  20140. SELECT
  20141. feature_id AS mirna_stem_id,
  20142. feature.*
  20143. FROM
  20144. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20145. WHERE cvterm.name = 'miRNA_stem';
  20146. --- ************************************************
  20147. --- *** relation: mirna_loop ***
  20148. --- *** relation type: VIEW ***
  20149. --- *** ***
  20150. --- *** The loop of the hairpin loop formed by f ***
  20151. --- *** olding of the pre-miRNA. ***
  20152. --- ************************************************
  20153. ---
  20154. CREATE VIEW mirna_loop AS
  20155. SELECT
  20156. feature_id AS mirna_loop_id,
  20157. feature.*
  20158. FROM
  20159. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20160. WHERE cvterm.name = 'miRNA_loop';
  20161. --- ************************************************
  20162. --- *** relation: synthetic_oligo ***
  20163. --- *** relation type: VIEW ***
  20164. --- *** ***
  20165. --- *** An oligo composed of synthetic nucleotid ***
  20166. --- *** es. ***
  20167. --- ************************************************
  20168. ---
  20169. CREATE VIEW synthetic_oligo AS
  20170. SELECT
  20171. feature_id AS synthetic_oligo_id,
  20172. feature.*
  20173. FROM
  20174. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20175. 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';
  20176. --- ************************************************
  20177. --- *** relation: assembly ***
  20178. --- *** relation type: VIEW ***
  20179. --- *** ***
  20180. --- *** A region of the genome of known length t ***
  20181. --- *** hat is composed by ordering and aligning ***
  20182. --- *** two or more different regions. ***
  20183. --- ************************************************
  20184. ---
  20185. CREATE VIEW assembly AS
  20186. SELECT
  20187. feature_id AS assembly_id,
  20188. feature.*
  20189. FROM
  20190. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20191. 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';
  20192. --- ************************************************
  20193. --- *** relation: fragment_assembly ***
  20194. --- *** relation type: VIEW ***
  20195. --- *** ***
  20196. --- *** A fragment assembly is a genome assembly ***
  20197. --- *** that orders overlapping fragments of th ***
  20198. --- *** e genome based on landmark sequences. Th ***
  20199. --- *** e base pair distance between the landmar ***
  20200. --- *** ks is known allowing additivity of lengt ***
  20201. --- *** hs. ***
  20202. --- ************************************************
  20203. ---
  20204. CREATE VIEW fragment_assembly AS
  20205. SELECT
  20206. feature_id AS fragment_assembly_id,
  20207. feature.*
  20208. FROM
  20209. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20210. WHERE cvterm.name = 'fingerprint_map' OR cvterm.name = 'STS_map' OR cvterm.name = 'RH_map' OR cvterm.name = 'fragment_assembly';
  20211. --- ************************************************
  20212. --- *** relation: fingerprint_map ***
  20213. --- *** relation type: VIEW ***
  20214. --- *** ***
  20215. --- *** A fingerprint_map is a physical map comp ***
  20216. --- *** osed of restriction fragments. ***
  20217. --- ************************************************
  20218. ---
  20219. CREATE VIEW fingerprint_map AS
  20220. SELECT
  20221. feature_id AS fingerprint_map_id,
  20222. feature.*
  20223. FROM
  20224. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20225. WHERE cvterm.name = 'fingerprint_map';
  20226. --- ************************************************
  20227. --- *** relation: sts_map ***
  20228. --- *** relation type: VIEW ***
  20229. --- *** ***
  20230. --- *** An STS map is a physical map organized b ***
  20231. --- *** y the unique STS landmarks. ***
  20232. --- ************************************************
  20233. ---
  20234. CREATE VIEW sts_map AS
  20235. SELECT
  20236. feature_id AS sts_map_id,
  20237. feature.*
  20238. FROM
  20239. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20240. WHERE cvterm.name = 'STS_map';
  20241. --- ************************************************
  20242. --- *** relation: rh_map ***
  20243. --- *** relation type: VIEW ***
  20244. --- *** ***
  20245. --- *** A radiation hybrid map is a physical map ***
  20246. --- *** . ***
  20247. --- ************************************************
  20248. ---
  20249. CREATE VIEW rh_map AS
  20250. SELECT
  20251. feature_id AS rh_map_id,
  20252. feature.*
  20253. FROM
  20254. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20255. WHERE cvterm.name = 'RH_map';
  20256. --- ************************************************
  20257. --- *** relation: sonicate_fragment ***
  20258. --- *** relation type: VIEW ***
  20259. --- *** ***
  20260. --- *** A DNA fragment generated by sonication. ***
  20261. --- *** Sonication is a technique used to sheer ***
  20262. --- *** DNA into smaller fragments. ***
  20263. --- ************************************************
  20264. ---
  20265. CREATE VIEW sonicate_fragment AS
  20266. SELECT
  20267. feature_id AS sonicate_fragment_id,
  20268. feature.*
  20269. FROM
  20270. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20271. WHERE cvterm.name = 'sonicate_fragment';
  20272. --- ************************************************
  20273. --- *** relation: polyploid ***
  20274. --- *** relation type: VIEW ***
  20275. --- *** ***
  20276. --- *** A kind of chromosome variation where the ***
  20277. --- *** chromosome complement is an exact multi ***
  20278. --- *** ple of the haploid number and is greater ***
  20279. --- *** than the diploid number. ***
  20280. --- ************************************************
  20281. ---
  20282. CREATE VIEW polyploid AS
  20283. SELECT
  20284. feature_id AS polyploid_id,
  20285. feature.*
  20286. FROM
  20287. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20288. WHERE cvterm.name = 'autopolyploid' OR cvterm.name = 'allopolyploid' OR cvterm.name = 'polyploid';
  20289. --- ************************************************
  20290. --- *** relation: autopolyploid ***
  20291. --- *** relation type: VIEW ***
  20292. --- *** ***
  20293. --- *** A polyploid where the multiple chromosom ***
  20294. --- *** e set was derived from the same organism ***
  20295. --- *** . ***
  20296. --- ************************************************
  20297. ---
  20298. CREATE VIEW autopolyploid AS
  20299. SELECT
  20300. feature_id AS autopolyploid_id,
  20301. feature.*
  20302. FROM
  20303. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20304. WHERE cvterm.name = 'autopolyploid';
  20305. --- ************************************************
  20306. --- *** relation: allopolyploid ***
  20307. --- *** relation type: VIEW ***
  20308. --- *** ***
  20309. --- *** A polyploid where the multiple chromosom ***
  20310. --- *** e set was derived from a different organ ***
  20311. --- *** ism. ***
  20312. --- ************************************************
  20313. ---
  20314. CREATE VIEW allopolyploid AS
  20315. SELECT
  20316. feature_id AS allopolyploid_id,
  20317. feature.*
  20318. FROM
  20319. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20320. WHERE cvterm.name = 'allopolyploid';
  20321. --- ************************************************
  20322. --- *** relation: homing_endonuclease_binding_site ***
  20323. --- *** relation type: VIEW ***
  20324. --- *** ***
  20325. --- *** The binding site (recognition site) of a ***
  20326. --- *** homing endonuclease. The binding site i ***
  20327. --- *** s typically large. ***
  20328. --- ************************************************
  20329. ---
  20330. CREATE VIEW homing_endonuclease_binding_site AS
  20331. SELECT
  20332. feature_id AS homing_endonuclease_binding_site_id,
  20333. feature.*
  20334. FROM
  20335. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20336. WHERE cvterm.name = 'homing_endonuclease_binding_site';
  20337. --- ************************************************
  20338. --- *** relation: octamer_motif ***
  20339. --- *** relation type: VIEW ***
  20340. --- *** ***
  20341. --- *** A sequence element characteristic of som ***
  20342. --- *** e RNA polymerase II promoters with seque ***
  20343. --- *** nce ATTGCAT that binds Pou-domain transc ***
  20344. --- *** ription factors. ***
  20345. --- ************************************************
  20346. ---
  20347. CREATE VIEW octamer_motif AS
  20348. SELECT
  20349. feature_id AS octamer_motif_id,
  20350. feature.*
  20351. FROM
  20352. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20353. WHERE cvterm.name = 'octamer_motif';
  20354. --- ************************************************
  20355. --- *** relation: apicoplast_chromosome ***
  20356. --- *** relation type: VIEW ***
  20357. --- *** ***
  20358. --- *** A chromosome originating in an apicoplas ***
  20359. --- *** t. ***
  20360. --- ************************************************
  20361. ---
  20362. CREATE VIEW apicoplast_chromosome AS
  20363. SELECT
  20364. feature_id AS apicoplast_chromosome_id,
  20365. feature.*
  20366. FROM
  20367. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20368. WHERE cvterm.name = 'apicoplast_chromosome';
  20369. --- ************************************************
  20370. --- *** relation: sequence_collection ***
  20371. --- *** relation type: VIEW ***
  20372. --- *** ***
  20373. --- *** A collection of discontinuous sequences. ***
  20374. --- ************************************************
  20375. ---
  20376. CREATE VIEW sequence_collection AS
  20377. SELECT
  20378. feature_id AS sequence_collection_id,
  20379. feature.*
  20380. FROM
  20381. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20382. 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';
  20383. --- ************************************************
  20384. --- *** relation: overlapping_feature_set ***
  20385. --- *** relation type: VIEW ***
  20386. --- *** ***
  20387. --- *** A continuous region of sequence composed ***
  20388. --- *** of the overlapping of multiple sequence ***
  20389. --- *** _features, which ultimately provides evi ***
  20390. --- *** dence for another sequence_feature. ***
  20391. --- ************************************************
  20392. ---
  20393. CREATE VIEW overlapping_feature_set AS
  20394. SELECT
  20395. feature_id AS overlapping_feature_set_id,
  20396. feature.*
  20397. FROM
  20398. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20399. WHERE cvterm.name = 'overlapping_EST_set' OR cvterm.name = 'overlapping_feature_set';
  20400. --- ************************************************
  20401. --- *** relation: overlapping_est_set ***
  20402. --- *** relation type: VIEW ***
  20403. --- *** ***
  20404. --- *** A continous experimental result region e ***
  20405. --- *** xtending the length of multiple overlapp ***
  20406. --- *** ing EST's. ***
  20407. --- ************************************************
  20408. ---
  20409. CREATE VIEW overlapping_est_set AS
  20410. SELECT
  20411. feature_id AS overlapping_est_set_id,
  20412. feature.*
  20413. FROM
  20414. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20415. WHERE cvterm.name = 'overlapping_EST_set';
  20416. --- ************************************************
  20417. --- *** relation: ncrna_gene ***
  20418. --- *** relation type: VIEW ***
  20419. --- *** ***
  20420. --- ************************************************
  20421. ---
  20422. CREATE VIEW ncrna_gene AS
  20423. SELECT
  20424. feature_id AS ncrna_gene_id,
  20425. feature.*
  20426. FROM
  20427. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20428. 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';
  20429. --- ************************************************
  20430. --- *** relation: grna_gene ***
  20431. --- *** relation type: VIEW ***
  20432. --- *** ***
  20433. --- ************************************************
  20434. ---
  20435. CREATE VIEW grna_gene AS
  20436. SELECT
  20437. feature_id AS grna_gene_id,
  20438. feature.*
  20439. FROM
  20440. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20441. WHERE cvterm.name = 'gRNA_gene';
  20442. --- ************************************************
  20443. --- *** relation: mirna_gene ***
  20444. --- *** relation type: VIEW ***
  20445. --- *** ***
  20446. --- ************************************************
  20447. ---
  20448. CREATE VIEW mirna_gene AS
  20449. SELECT
  20450. feature_id AS mirna_gene_id,
  20451. feature.*
  20452. FROM
  20453. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20454. WHERE cvterm.name = 'miRNA_gene';
  20455. --- ************************************************
  20456. --- *** relation: scrna_gene ***
  20457. --- *** relation type: VIEW ***
  20458. --- *** ***
  20459. --- ************************************************
  20460. ---
  20461. CREATE VIEW scrna_gene AS
  20462. SELECT
  20463. feature_id AS scrna_gene_id,
  20464. feature.*
  20465. FROM
  20466. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20467. WHERE cvterm.name = 'scRNA_gene';
  20468. --- ************************************************
  20469. --- *** relation: snorna_gene ***
  20470. --- *** relation type: VIEW ***
  20471. --- *** ***
  20472. --- ************************************************
  20473. ---
  20474. CREATE VIEW snorna_gene AS
  20475. SELECT
  20476. feature_id AS snorna_gene_id,
  20477. feature.*
  20478. FROM
  20479. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20480. WHERE cvterm.name = 'snoRNA_gene';
  20481. --- ************************************************
  20482. --- *** relation: snrna_gene ***
  20483. --- *** relation type: VIEW ***
  20484. --- *** ***
  20485. --- ************************************************
  20486. ---
  20487. CREATE VIEW snrna_gene AS
  20488. SELECT
  20489. feature_id AS snrna_gene_id,
  20490. feature.*
  20491. FROM
  20492. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20493. WHERE cvterm.name = 'snRNA_gene';
  20494. --- ************************************************
  20495. --- *** relation: srp_rna_gene ***
  20496. --- *** relation type: VIEW ***
  20497. --- *** ***
  20498. --- ************************************************
  20499. ---
  20500. CREATE VIEW srp_rna_gene AS
  20501. SELECT
  20502. feature_id AS srp_rna_gene_id,
  20503. feature.*
  20504. FROM
  20505. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20506. WHERE cvterm.name = 'SRP_RNA_gene';
  20507. --- ************************************************
  20508. --- *** relation: strna_gene ***
  20509. --- *** relation type: VIEW ***
  20510. --- *** ***
  20511. --- ************************************************
  20512. ---
  20513. CREATE VIEW strna_gene AS
  20514. SELECT
  20515. feature_id AS strna_gene_id,
  20516. feature.*
  20517. FROM
  20518. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20519. WHERE cvterm.name = 'stRNA_gene';
  20520. --- ************************************************
  20521. --- *** relation: tmrna_gene ***
  20522. --- *** relation type: VIEW ***
  20523. --- *** ***
  20524. --- ************************************************
  20525. ---
  20526. CREATE VIEW tmrna_gene AS
  20527. SELECT
  20528. feature_id AS tmrna_gene_id,
  20529. feature.*
  20530. FROM
  20531. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20532. WHERE cvterm.name = 'tmRNA_gene';
  20533. --- ************************************************
  20534. --- *** relation: trna_gene ***
  20535. --- *** relation type: VIEW ***
  20536. --- *** ***
  20537. --- ************************************************
  20538. ---
  20539. CREATE VIEW trna_gene AS
  20540. SELECT
  20541. feature_id AS trna_gene_id,
  20542. feature.*
  20543. FROM
  20544. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20545. WHERE cvterm.name = 'tRNA_gene';
  20546. --- ************************************************
  20547. --- *** relation: modified_adenosine ***
  20548. --- *** relation type: VIEW ***
  20549. --- *** ***
  20550. --- *** A modified adenine is an adenine base fe ***
  20551. --- *** ature that has been altered. ***
  20552. --- ************************************************
  20553. ---
  20554. CREATE VIEW modified_adenosine AS
  20555. SELECT
  20556. feature_id AS modified_adenosine_id,
  20557. feature.*
  20558. FROM
  20559. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20560. 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';
  20561. --- ************************************************
  20562. --- *** relation: modified_inosine ***
  20563. --- *** relation type: VIEW ***
  20564. --- *** ***
  20565. --- *** A modified inosine is an inosine base fe ***
  20566. --- *** ature that has been altered. ***
  20567. --- ************************************************
  20568. ---
  20569. CREATE VIEW modified_inosine AS
  20570. SELECT
  20571. feature_id AS modified_inosine_id,
  20572. feature.*
  20573. FROM
  20574. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20575. 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';
  20576. --- ************************************************
  20577. --- *** relation: modified_cytidine ***
  20578. --- *** relation type: VIEW ***
  20579. --- *** ***
  20580. --- *** A modified cytidine is a cytidine base f ***
  20581. --- *** eature which has been altered. ***
  20582. --- ************************************************
  20583. ---
  20584. CREATE VIEW modified_cytidine AS
  20585. SELECT
  20586. feature_id AS modified_cytidine_id,
  20587. feature.*
  20588. FROM
  20589. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20590. 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';
  20591. --- ************************************************
  20592. --- *** relation: modified_guanosine ***
  20593. --- *** relation type: VIEW ***
  20594. --- *** ***
  20595. --- ************************************************
  20596. ---
  20597. CREATE VIEW modified_guanosine AS
  20598. SELECT
  20599. feature_id AS modified_guanosine_id,
  20600. feature.*
  20601. FROM
  20602. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20603. 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';
  20604. --- ************************************************
  20605. --- *** relation: modified_uridine ***
  20606. --- *** relation type: VIEW ***
  20607. --- *** ***
  20608. --- ************************************************
  20609. ---
  20610. CREATE VIEW modified_uridine AS
  20611. SELECT
  20612. feature_id AS modified_uridine_id,
  20613. feature.*
  20614. FROM
  20615. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20616. 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';
  20617. --- ************************************************
  20618. --- *** relation: one_methylinosine ***
  20619. --- *** relation type: VIEW ***
  20620. --- *** ***
  20621. --- *** 1-methylinosine is a modified insosine. ***
  20622. --- ************************************************
  20623. ---
  20624. CREATE VIEW one_methylinosine AS
  20625. SELECT
  20626. feature_id AS one_methylinosine_id,
  20627. feature.*
  20628. FROM
  20629. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20630. WHERE cvterm.name = 'one_methylinosine';
  20631. --- ************************************************
  20632. --- *** relation: one_two_prime_o_dimethylinosine ***
  20633. --- *** relation type: VIEW ***
  20634. --- *** ***
  20635. --- *** 1,2'-O-dimethylinosine is a modified ino ***
  20636. --- *** sine. ***
  20637. --- ************************************************
  20638. ---
  20639. CREATE VIEW one_two_prime_o_dimethylinosine AS
  20640. SELECT
  20641. feature_id AS one_two_prime_o_dimethylinosine_id,
  20642. feature.*
  20643. FROM
  20644. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20645. WHERE cvterm.name = 'one_two_prime_O_dimethylinosine';
  20646. --- ************************************************
  20647. --- *** relation: two_prime_o_methylinosine ***
  20648. --- *** relation type: VIEW ***
  20649. --- *** ***
  20650. --- *** 2'-O-methylinosine is a modified inosine ***
  20651. --- *** . ***
  20652. --- ************************************************
  20653. ---
  20654. CREATE VIEW two_prime_o_methylinosine AS
  20655. SELECT
  20656. feature_id AS two_prime_o_methylinosine_id,
  20657. feature.*
  20658. FROM
  20659. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20660. WHERE cvterm.name = 'two_prime_O_methylinosine';
  20661. --- ************************************************
  20662. --- *** relation: three_methylcytidine ***
  20663. --- *** relation type: VIEW ***
  20664. --- *** ***
  20665. --- *** 3-methylcytidine is a modified cytidine. ***
  20666. --- ************************************************
  20667. ---
  20668. CREATE VIEW three_methylcytidine AS
  20669. SELECT
  20670. feature_id AS three_methylcytidine_id,
  20671. feature.*
  20672. FROM
  20673. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20674. WHERE cvterm.name = 'three_methylcytidine';
  20675. --- ************************************************
  20676. --- *** relation: five_methylcytidine ***
  20677. --- *** relation type: VIEW ***
  20678. --- *** ***
  20679. --- *** 5-methylcytidine is a modified cytidine. ***
  20680. --- ************************************************
  20681. ---
  20682. CREATE VIEW five_methylcytidine AS
  20683. SELECT
  20684. feature_id AS five_methylcytidine_id,
  20685. feature.*
  20686. FROM
  20687. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20688. WHERE cvterm.name = 'five_methylcytidine';
  20689. --- ************************************************
  20690. --- *** relation: two_prime_o_methylcytidine ***
  20691. --- *** relation type: VIEW ***
  20692. --- *** ***
  20693. --- *** 2'-O-methylcytidine is a modified cytidi ***
  20694. --- *** ne. ***
  20695. --- ************************************************
  20696. ---
  20697. CREATE VIEW two_prime_o_methylcytidine AS
  20698. SELECT
  20699. feature_id AS two_prime_o_methylcytidine_id,
  20700. feature.*
  20701. FROM
  20702. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20703. WHERE cvterm.name = 'two_prime_O_methylcytidine';
  20704. --- ************************************************
  20705. --- *** relation: two_thiocytidine ***
  20706. --- *** relation type: VIEW ***
  20707. --- *** ***
  20708. --- *** 2-thiocytidine is a modified cytidine. ***
  20709. --- ************************************************
  20710. ---
  20711. CREATE VIEW two_thiocytidine AS
  20712. SELECT
  20713. feature_id AS two_thiocytidine_id,
  20714. feature.*
  20715. FROM
  20716. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20717. WHERE cvterm.name = 'two_thiocytidine';
  20718. --- ************************************************
  20719. --- *** relation: n4_acetylcytidine ***
  20720. --- *** relation type: VIEW ***
  20721. --- *** ***
  20722. --- *** N4-acetylcytidine is a modified cytidine ***
  20723. --- *** . ***
  20724. --- ************************************************
  20725. ---
  20726. CREATE VIEW n4_acetylcytidine AS
  20727. SELECT
  20728. feature_id AS n4_acetylcytidine_id,
  20729. feature.*
  20730. FROM
  20731. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20732. WHERE cvterm.name = 'N4_acetylcytidine';
  20733. --- ************************************************
  20734. --- *** relation: five_formylcytidine ***
  20735. --- *** relation type: VIEW ***
  20736. --- *** ***
  20737. --- *** 5-formylcytidine is a modified cytidine. ***
  20738. --- ************************************************
  20739. ---
  20740. CREATE VIEW five_formylcytidine AS
  20741. SELECT
  20742. feature_id AS five_formylcytidine_id,
  20743. feature.*
  20744. FROM
  20745. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20746. WHERE cvterm.name = 'five_formylcytidine';
  20747. --- ************************************************
  20748. --- *** relation: five_two_prime_o_dimethylcytidine ***
  20749. --- *** relation type: VIEW ***
  20750. --- *** ***
  20751. --- *** 5,2'-O-dimethylcytidine is a modified cy ***
  20752. --- *** tidine. ***
  20753. --- ************************************************
  20754. ---
  20755. CREATE VIEW five_two_prime_o_dimethylcytidine AS
  20756. SELECT
  20757. feature_id AS five_two_prime_o_dimethylcytidine_id,
  20758. feature.*
  20759. FROM
  20760. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20761. WHERE cvterm.name = 'five_two_prime_O_dimethylcytidine';
  20762. --- ************************************************
  20763. --- *** relation: n4_acetyl_2_prime_o_methylcytidine ***
  20764. --- *** relation type: VIEW ***
  20765. --- *** ***
  20766. --- *** N4-acetyl-2'-O-methylcytidine is a modif ***
  20767. --- *** ied cytidine. ***
  20768. --- ************************************************
  20769. ---
  20770. CREATE VIEW n4_acetyl_2_prime_o_methylcytidine AS
  20771. SELECT
  20772. feature_id AS n4_acetyl_2_prime_o_methylcytidine_id,
  20773. feature.*
  20774. FROM
  20775. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20776. WHERE cvterm.name = 'N4_acetyl_2_prime_O_methylcytidine';
  20777. --- ************************************************
  20778. --- *** relation: lysidine ***
  20779. --- *** relation type: VIEW ***
  20780. --- *** ***
  20781. --- *** Lysidine is a modified cytidine. ***
  20782. --- ************************************************
  20783. ---
  20784. CREATE VIEW lysidine AS
  20785. SELECT
  20786. feature_id AS lysidine_id,
  20787. feature.*
  20788. FROM
  20789. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20790. WHERE cvterm.name = 'lysidine';
  20791. --- ************************************************
  20792. --- *** relation: n4_methylcytidine ***
  20793. --- *** relation type: VIEW ***
  20794. --- *** ***
  20795. --- *** N4-methylcytidine is a modified cytidine ***
  20796. --- *** . ***
  20797. --- ************************************************
  20798. ---
  20799. CREATE VIEW n4_methylcytidine AS
  20800. SELECT
  20801. feature_id AS n4_methylcytidine_id,
  20802. feature.*
  20803. FROM
  20804. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20805. WHERE cvterm.name = 'N4_methylcytidine';
  20806. --- ************************************************
  20807. --- *** relation: n4_2_prime_o_dimethylcytidine ***
  20808. --- *** relation type: VIEW ***
  20809. --- *** ***
  20810. --- *** N4,2'-O-dimethylcytidine is a modified c ***
  20811. --- *** ytidine. ***
  20812. --- ************************************************
  20813. ---
  20814. CREATE VIEW n4_2_prime_o_dimethylcytidine AS
  20815. SELECT
  20816. feature_id AS n4_2_prime_o_dimethylcytidine_id,
  20817. feature.*
  20818. FROM
  20819. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20820. WHERE cvterm.name = 'N4_2_prime_O_dimethylcytidine';
  20821. --- ************************************************
  20822. --- *** relation: five_hydroxymethylcytidine ***
  20823. --- *** relation type: VIEW ***
  20824. --- *** ***
  20825. --- *** 5-hydroxymethylcytidine is a modified cy ***
  20826. --- *** tidine. ***
  20827. --- ************************************************
  20828. ---
  20829. CREATE VIEW five_hydroxymethylcytidine AS
  20830. SELECT
  20831. feature_id AS five_hydroxymethylcytidine_id,
  20832. feature.*
  20833. FROM
  20834. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20835. WHERE cvterm.name = 'five_hydroxymethylcytidine';
  20836. --- ************************************************
  20837. --- *** relation: five_formyl_two_prime_o_methylcytidine ***
  20838. --- *** relation type: VIEW ***
  20839. --- *** ***
  20840. --- *** 5-formyl-2'-O-methylcytidine is a modifi ***
  20841. --- *** ed cytidine. ***
  20842. --- ************************************************
  20843. ---
  20844. CREATE VIEW five_formyl_two_prime_o_methylcytidine AS
  20845. SELECT
  20846. feature_id AS five_formyl_two_prime_o_methylcytidine_id,
  20847. feature.*
  20848. FROM
  20849. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20850. WHERE cvterm.name = 'five_formyl_two_prime_O_methylcytidine';
  20851. --- ************************************************
  20852. --- *** relation: n4_n4_2_prime_o_trimethylcytidine ***
  20853. --- *** relation type: VIEW ***
  20854. --- *** ***
  20855. --- *** N4_N4_2_prime_O_trimethylcytidine is a m ***
  20856. --- *** odified cytidine. ***
  20857. --- ************************************************
  20858. ---
  20859. CREATE VIEW n4_n4_2_prime_o_trimethylcytidine AS
  20860. SELECT
  20861. feature_id AS n4_n4_2_prime_o_trimethylcytidine_id,
  20862. feature.*
  20863. FROM
  20864. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20865. WHERE cvterm.name = 'N4_N4_2_prime_O_trimethylcytidine';
  20866. --- ************************************************
  20867. --- *** relation: one_methyladenosine ***
  20868. --- *** relation type: VIEW ***
  20869. --- *** ***
  20870. --- *** 1_methyladenosine is a modified adenosin ***
  20871. --- *** e. ***
  20872. --- ************************************************
  20873. ---
  20874. CREATE VIEW one_methyladenosine AS
  20875. SELECT
  20876. feature_id AS one_methyladenosine_id,
  20877. feature.*
  20878. FROM
  20879. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20880. WHERE cvterm.name = 'one_methyladenosine';
  20881. --- ************************************************
  20882. --- *** relation: two_methyladenosine ***
  20883. --- *** relation type: VIEW ***
  20884. --- *** ***
  20885. --- *** 2_methyladenosine is a modified adenosin ***
  20886. --- *** e. ***
  20887. --- ************************************************
  20888. ---
  20889. CREATE VIEW two_methyladenosine AS
  20890. SELECT
  20891. feature_id AS two_methyladenosine_id,
  20892. feature.*
  20893. FROM
  20894. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20895. WHERE cvterm.name = 'two_methyladenosine';
  20896. --- ************************************************
  20897. --- *** relation: n6_methyladenosine ***
  20898. --- *** relation type: VIEW ***
  20899. --- *** ***
  20900. --- *** N6_methyladenosine is a modified adenosi ***
  20901. --- *** ne. ***
  20902. --- ************************************************
  20903. ---
  20904. CREATE VIEW n6_methyladenosine AS
  20905. SELECT
  20906. feature_id AS n6_methyladenosine_id,
  20907. feature.*
  20908. FROM
  20909. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20910. WHERE cvterm.name = 'N6_methyladenosine';
  20911. --- ************************************************
  20912. --- *** relation: two_prime_o_methyladenosine ***
  20913. --- *** relation type: VIEW ***
  20914. --- *** ***
  20915. --- *** 2prime_O_methyladenosine is a modified a ***
  20916. --- *** denosine. ***
  20917. --- ************************************************
  20918. ---
  20919. CREATE VIEW two_prime_o_methyladenosine AS
  20920. SELECT
  20921. feature_id AS two_prime_o_methyladenosine_id,
  20922. feature.*
  20923. FROM
  20924. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20925. WHERE cvterm.name = 'two_prime_O_methyladenosine';
  20926. --- ************************************************
  20927. --- *** relation: two_methylthio_n6_methyladenosine ***
  20928. --- *** relation type: VIEW ***
  20929. --- *** ***
  20930. --- *** 2_methylthio_N6_methyladenosine is a mod ***
  20931. --- *** ified adenosine. ***
  20932. --- ************************************************
  20933. ---
  20934. CREATE VIEW two_methylthio_n6_methyladenosine AS
  20935. SELECT
  20936. feature_id AS two_methylthio_n6_methyladenosine_id,
  20937. feature.*
  20938. FROM
  20939. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20940. WHERE cvterm.name = 'two_methylthio_N6_methyladenosine';
  20941. --- ************************************************
  20942. --- *** relation: n6_isopentenyladenosine ***
  20943. --- *** relation type: VIEW ***
  20944. --- *** ***
  20945. --- *** N6_isopentenyladenosine is a modified ad ***
  20946. --- *** enosine. ***
  20947. --- ************************************************
  20948. ---
  20949. CREATE VIEW n6_isopentenyladenosine AS
  20950. SELECT
  20951. feature_id AS n6_isopentenyladenosine_id,
  20952. feature.*
  20953. FROM
  20954. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20955. WHERE cvterm.name = 'N6_isopentenyladenosine';
  20956. --- ************************************************
  20957. --- *** relation: two_methylthio_n6_isopentenyladenosine ***
  20958. --- *** relation type: VIEW ***
  20959. --- *** ***
  20960. --- *** 2_methylthio_N6_isopentenyladenosine is ***
  20961. --- *** a modified adenosine. ***
  20962. --- ************************************************
  20963. ---
  20964. CREATE VIEW two_methylthio_n6_isopentenyladenosine AS
  20965. SELECT
  20966. feature_id AS two_methylthio_n6_isopentenyladenosine_id,
  20967. feature.*
  20968. FROM
  20969. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20970. WHERE cvterm.name = 'two_methylthio_N6_isopentenyladenosine';
  20971. --- ************************************************
  20972. --- *** relation: n6_cis_hydroxyisopentenyl_adenosine ***
  20973. --- *** relation type: VIEW ***
  20974. --- *** ***
  20975. --- *** N6_cis_hydroxyisopentenyl_adenosine is a ***
  20976. --- *** modified adenosine. ***
  20977. --- ************************************************
  20978. ---
  20979. CREATE VIEW n6_cis_hydroxyisopentenyl_adenosine AS
  20980. SELECT
  20981. feature_id AS n6_cis_hydroxyisopentenyl_adenosine_id,
  20982. feature.*
  20983. FROM
  20984. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20985. WHERE cvterm.name = 'N6_cis_hydroxyisopentenyl_adenosine';
  20986. --- ************************************************
  20987. --- *** relation: two_methylthio_n6_cis_hydroxyisopentenyl_adenosine ***
  20988. --- *** relation type: VIEW ***
  20989. --- *** ***
  20990. --- *** 2_methylthio_N6_cis_hydroxyisopentenyl_a ***
  20991. --- *** denosine is a modified adenosine. ***
  20992. --- ************************************************
  20993. ---
  20994. CREATE VIEW two_methylthio_n6_cis_hydroxyisopentenyl_adenosine AS
  20995. SELECT
  20996. feature_id AS two_methylthio_n6_cis_hydroxyisopentenyl_adenosine_id,
  20997. feature.*
  20998. FROM
  20999. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21000. WHERE cvterm.name = 'two_methylthio_N6_cis_hydroxyisopentenyl_adenosine';
  21001. --- ************************************************
  21002. --- *** relation: n6_glycinylcarbamoyladenosine ***
  21003. --- *** relation type: VIEW ***
  21004. --- *** ***
  21005. --- *** N6_glycinylcarbamoyladenosine is a modif ***
  21006. --- *** ied adenosine. ***
  21007. --- ************************************************
  21008. ---
  21009. CREATE VIEW n6_glycinylcarbamoyladenosine AS
  21010. SELECT
  21011. feature_id AS n6_glycinylcarbamoyladenosine_id,
  21012. feature.*
  21013. FROM
  21014. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21015. WHERE cvterm.name = 'N6_glycinylcarbamoyladenosine';
  21016. --- ************************************************
  21017. --- *** relation: n6_threonylcarbamoyladenosine ***
  21018. --- *** relation type: VIEW ***
  21019. --- *** ***
  21020. --- *** N6_threonylcarbamoyladenosine is a modif ***
  21021. --- *** ied adenosine. ***
  21022. --- ************************************************
  21023. ---
  21024. CREATE VIEW n6_threonylcarbamoyladenosine AS
  21025. SELECT
  21026. feature_id AS n6_threonylcarbamoyladenosine_id,
  21027. feature.*
  21028. FROM
  21029. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21030. WHERE cvterm.name = 'N6_threonylcarbamoyladenosine';
  21031. --- ************************************************
  21032. --- *** relation: two_methylthio_n6_threonyl_carbamoyladenosine ***
  21033. --- *** relation type: VIEW ***
  21034. --- *** ***
  21035. --- *** 2_methylthio_N6_threonyl_carbamoyladenos ***
  21036. --- *** ine is a modified adenosine. ***
  21037. --- ************************************************
  21038. ---
  21039. CREATE VIEW two_methylthio_n6_threonyl_carbamoyladenosine AS
  21040. SELECT
  21041. feature_id AS two_methylthio_n6_threonyl_carbamoyladenosine_id,
  21042. feature.*
  21043. FROM
  21044. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21045. WHERE cvterm.name = 'two_methylthio_N6_threonyl_carbamoyladenosine';
  21046. --- ************************************************
  21047. --- *** relation: n6_methyl_n6_threonylcarbamoyladenosine ***
  21048. --- *** relation type: VIEW ***
  21049. --- *** ***
  21050. --- *** N6_methyl_N6_threonylcarbamoyladenosine ***
  21051. --- *** is a modified adenosine. ***
  21052. --- ************************************************
  21053. ---
  21054. CREATE VIEW n6_methyl_n6_threonylcarbamoyladenosine AS
  21055. SELECT
  21056. feature_id AS n6_methyl_n6_threonylcarbamoyladenosine_id,
  21057. feature.*
  21058. FROM
  21059. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21060. WHERE cvterm.name = 'N6_methyl_N6_threonylcarbamoyladenosine';
  21061. --- ************************************************
  21062. --- *** relation: n6_hydroxynorvalylcarbamoyladenosine ***
  21063. --- *** relation type: VIEW ***
  21064. --- *** ***
  21065. --- *** N6_hydroxynorvalylcarbamoyladenosine is ***
  21066. --- *** a modified adenosine. ***
  21067. --- ************************************************
  21068. ---
  21069. CREATE VIEW n6_hydroxynorvalylcarbamoyladenosine AS
  21070. SELECT
  21071. feature_id AS n6_hydroxynorvalylcarbamoyladenosine_id,
  21072. feature.*
  21073. FROM
  21074. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21075. WHERE cvterm.name = 'N6_hydroxynorvalylcarbamoyladenosine';
  21076. --- ************************************************
  21077. --- *** relation: two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine ***
  21078. --- *** relation type: VIEW ***
  21079. --- *** ***
  21080. --- *** 2_methylthio_N6_hydroxynorvalyl_carbamoy ***
  21081. --- *** ladenosine is a modified adenosine. ***
  21082. --- ************************************************
  21083. ---
  21084. CREATE VIEW two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine AS
  21085. SELECT
  21086. feature_id AS two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine_id,
  21087. feature.*
  21088. FROM
  21089. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21090. WHERE cvterm.name = 'two_methylthio_N6_hydroxynorvalyl_carbamoyladenosine';
  21091. --- ************************************************
  21092. --- *** relation: two_prime_o_riboA_phosphate ***
  21093. --- *** relation type: VIEW ***
  21094. --- *** ***
  21095. --- *** 2prime_O_ribosyladenosine_phosphate is a ***
  21096. --- *** modified adenosine. ***
  21097. --- ************************************************
  21098. ---
  21099. CREATE VIEW two_prime_o_riboA_phosphate AS
  21100. SELECT
  21101. feature_id AS two_prime_o_riboA_phosphate_id,
  21102. feature.*
  21103. FROM
  21104. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21105. WHERE cvterm.name = 'two_prime_O_ribosyladenosine_phosphate';
  21106. --- ************************************************
  21107. --- *** relation: n6_n6_dimethyladenosine ***
  21108. --- *** relation type: VIEW ***
  21109. --- *** ***
  21110. --- *** N6_N6_dimethyladenosine is a modified ad ***
  21111. --- *** enosine. ***
  21112. --- ************************************************
  21113. ---
  21114. CREATE VIEW n6_n6_dimethyladenosine AS
  21115. SELECT
  21116. feature_id AS n6_n6_dimethyladenosine_id,
  21117. feature.*
  21118. FROM
  21119. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21120. WHERE cvterm.name = 'N6_N6_dimethyladenosine';
  21121. --- ************************************************
  21122. --- *** relation: n6_2_prime_o_dimethyladenosine ***
  21123. --- *** relation type: VIEW ***
  21124. --- *** ***
  21125. --- *** N6_2prime_O_dimethyladenosine is a modif ***
  21126. --- *** ied adenosine. ***
  21127. --- ************************************************
  21128. ---
  21129. CREATE VIEW n6_2_prime_o_dimethyladenosine AS
  21130. SELECT
  21131. feature_id AS n6_2_prime_o_dimethyladenosine_id,
  21132. feature.*
  21133. FROM
  21134. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21135. WHERE cvterm.name = 'N6_2_prime_O_dimethyladenosine';
  21136. --- ************************************************
  21137. --- *** relation: n6_n6_2_prime_o_trimethyladenosine ***
  21138. --- *** relation type: VIEW ***
  21139. --- *** ***
  21140. --- *** N6_N6_2prime_O_trimethyladenosine is a m ***
  21141. --- *** odified adenosine. ***
  21142. --- ************************************************
  21143. ---
  21144. CREATE VIEW n6_n6_2_prime_o_trimethyladenosine AS
  21145. SELECT
  21146. feature_id AS n6_n6_2_prime_o_trimethyladenosine_id,
  21147. feature.*
  21148. FROM
  21149. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21150. WHERE cvterm.name = 'N6_N6_2_prime_O_trimethyladenosine';
  21151. --- ************************************************
  21152. --- *** relation: one_two_prime_o_dimethyladenosine ***
  21153. --- *** relation type: VIEW ***
  21154. --- *** ***
  21155. --- *** 1,2'-O-dimethyladenosine is a modified a ***
  21156. --- *** denosine. ***
  21157. --- ************************************************
  21158. ---
  21159. CREATE VIEW one_two_prime_o_dimethyladenosine AS
  21160. SELECT
  21161. feature_id AS one_two_prime_o_dimethyladenosine_id,
  21162. feature.*
  21163. FROM
  21164. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21165. WHERE cvterm.name = 'one_two_prime_O_dimethyladenosine';
  21166. --- ************************************************
  21167. --- *** relation: n6_acetyladenosine ***
  21168. --- *** relation type: VIEW ***
  21169. --- *** ***
  21170. --- *** N6_acetyladenosine is a modified adenosi ***
  21171. --- *** ne. ***
  21172. --- ************************************************
  21173. ---
  21174. CREATE VIEW n6_acetyladenosine AS
  21175. SELECT
  21176. feature_id AS n6_acetyladenosine_id,
  21177. feature.*
  21178. FROM
  21179. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21180. WHERE cvterm.name = 'N6_acetyladenosine';
  21181. --- ************************************************
  21182. --- *** relation: seven_deazaguanosine ***
  21183. --- *** relation type: VIEW ***
  21184. --- *** ***
  21185. --- *** 7-deazaguanosine is a moddified guanosin ***
  21186. --- *** e. ***
  21187. --- ************************************************
  21188. ---
  21189. CREATE VIEW seven_deazaguanosine AS
  21190. SELECT
  21191. feature_id AS seven_deazaguanosine_id,
  21192. feature.*
  21193. FROM
  21194. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21195. 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';
  21196. --- ************************************************
  21197. --- *** relation: queuosine ***
  21198. --- *** relation type: VIEW ***
  21199. --- *** ***
  21200. --- *** Queuosine is a modified 7-deazoguanosine ***
  21201. --- *** . ***
  21202. --- ************************************************
  21203. ---
  21204. CREATE VIEW queuosine AS
  21205. SELECT
  21206. feature_id AS queuosine_id,
  21207. feature.*
  21208. FROM
  21209. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21210. WHERE cvterm.name = 'queuosine';
  21211. --- ************************************************
  21212. --- *** relation: epoxyqueuosine ***
  21213. --- *** relation type: VIEW ***
  21214. --- *** ***
  21215. --- *** Epoxyqueuosine is a modified 7-deazoguan ***
  21216. --- *** osine. ***
  21217. --- ************************************************
  21218. ---
  21219. CREATE VIEW epoxyqueuosine AS
  21220. SELECT
  21221. feature_id AS epoxyqueuosine_id,
  21222. feature.*
  21223. FROM
  21224. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21225. WHERE cvterm.name = 'epoxyqueuosine';
  21226. --- ************************************************
  21227. --- *** relation: galactosyl_queuosine ***
  21228. --- *** relation type: VIEW ***
  21229. --- *** ***
  21230. --- *** Galactosyl_queuosine is a modified 7-dea ***
  21231. --- *** zoguanosine. ***
  21232. --- ************************************************
  21233. ---
  21234. CREATE VIEW galactosyl_queuosine AS
  21235. SELECT
  21236. feature_id AS galactosyl_queuosine_id,
  21237. feature.*
  21238. FROM
  21239. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21240. WHERE cvterm.name = 'galactosyl_queuosine';
  21241. --- ************************************************
  21242. --- *** relation: mannosyl_queuosine ***
  21243. --- *** relation type: VIEW ***
  21244. --- *** ***
  21245. --- *** Mannosyl_queuosine is a modified 7-deazo ***
  21246. --- *** guanosine. ***
  21247. --- ************************************************
  21248. ---
  21249. CREATE VIEW mannosyl_queuosine AS
  21250. SELECT
  21251. feature_id AS mannosyl_queuosine_id,
  21252. feature.*
  21253. FROM
  21254. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21255. WHERE cvterm.name = 'mannosyl_queuosine';
  21256. --- ************************************************
  21257. --- *** relation: seven_cyano_seven_deazaguanosine ***
  21258. --- *** relation type: VIEW ***
  21259. --- *** ***
  21260. --- *** 7_cyano_7_deazaguanosine is a modified 7 ***
  21261. --- *** -deazoguanosine. ***
  21262. --- ************************************************
  21263. ---
  21264. CREATE VIEW seven_cyano_seven_deazaguanosine AS
  21265. SELECT
  21266. feature_id AS seven_cyano_seven_deazaguanosine_id,
  21267. feature.*
  21268. FROM
  21269. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21270. WHERE cvterm.name = 'seven_cyano_seven_deazaguanosine';
  21271. --- ************************************************
  21272. --- *** relation: seven_aminomethyl_seven_deazaguanosine ***
  21273. --- *** relation type: VIEW ***
  21274. --- *** ***
  21275. --- *** 7_aminomethyl_7_deazaguanosine is a modi ***
  21276. --- *** fied 7-deazoguanosine. ***
  21277. --- ************************************************
  21278. ---
  21279. CREATE VIEW seven_aminomethyl_seven_deazaguanosine AS
  21280. SELECT
  21281. feature_id AS seven_aminomethyl_seven_deazaguanosine_id,
  21282. feature.*
  21283. FROM
  21284. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21285. WHERE cvterm.name = 'seven_aminomethyl_seven_deazaguanosine';
  21286. --- ************************************************
  21287. --- *** relation: archaeosine ***
  21288. --- *** relation type: VIEW ***
  21289. --- *** ***
  21290. --- *** Archaeosine is a modified 7-deazoguanosi ***
  21291. --- *** ne. ***
  21292. --- ************************************************
  21293. ---
  21294. CREATE VIEW archaeosine AS
  21295. SELECT
  21296. feature_id AS archaeosine_id,
  21297. feature.*
  21298. FROM
  21299. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21300. WHERE cvterm.name = 'archaeosine';
  21301. --- ************************************************
  21302. --- *** relation: one_methylguanosine ***
  21303. --- *** relation type: VIEW ***
  21304. --- *** ***
  21305. --- *** 1_methylguanosine is a modified guanosin ***
  21306. --- *** e base feature. ***
  21307. --- ************************************************
  21308. ---
  21309. CREATE VIEW one_methylguanosine AS
  21310. SELECT
  21311. feature_id AS one_methylguanosine_id,
  21312. feature.*
  21313. FROM
  21314. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21315. WHERE cvterm.name = 'one_methylguanosine';
  21316. --- ************************************************
  21317. --- *** relation: n2_methylguanosine ***
  21318. --- *** relation type: VIEW ***
  21319. --- *** ***
  21320. --- *** N2_methylguanosine is a modified guanosi ***
  21321. --- *** ne base feature. ***
  21322. --- ************************************************
  21323. ---
  21324. CREATE VIEW n2_methylguanosine AS
  21325. SELECT
  21326. feature_id AS n2_methylguanosine_id,
  21327. feature.*
  21328. FROM
  21329. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21330. WHERE cvterm.name = 'N2_methylguanosine';
  21331. --- ************************************************
  21332. --- *** relation: seven_methylguanosine ***
  21333. --- *** relation type: VIEW ***
  21334. --- *** ***
  21335. --- *** 7_methylguanosine is a modified guanosin ***
  21336. --- *** e base feature. ***
  21337. --- ************************************************
  21338. ---
  21339. CREATE VIEW seven_methylguanosine AS
  21340. SELECT
  21341. feature_id AS seven_methylguanosine_id,
  21342. feature.*
  21343. FROM
  21344. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21345. WHERE cvterm.name = 'seven_methylguanosine';
  21346. --- ************************************************
  21347. --- *** relation: two_prime_o_methylguanosine ***
  21348. --- *** relation type: VIEW ***
  21349. --- *** ***
  21350. --- *** 2prime_O_methylguanosine is a modified g ***
  21351. --- *** uanosine base feature. ***
  21352. --- ************************************************
  21353. ---
  21354. CREATE VIEW two_prime_o_methylguanosine AS
  21355. SELECT
  21356. feature_id AS two_prime_o_methylguanosine_id,
  21357. feature.*
  21358. FROM
  21359. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21360. WHERE cvterm.name = 'two_prime_O_methylguanosine';
  21361. --- ************************************************
  21362. --- *** relation: n2_n2_dimethylguanosine ***
  21363. --- *** relation type: VIEW ***
  21364. --- *** ***
  21365. --- *** N2_N2_dimethylguanosine is a modified gu ***
  21366. --- *** anosine base feature. ***
  21367. --- ************************************************
  21368. ---
  21369. CREATE VIEW n2_n2_dimethylguanosine AS
  21370. SELECT
  21371. feature_id AS n2_n2_dimethylguanosine_id,
  21372. feature.*
  21373. FROM
  21374. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21375. WHERE cvterm.name = 'N2_N2_dimethylguanosine';
  21376. --- ************************************************
  21377. --- *** relation: n2_2_prime_o_dimethylguanosine ***
  21378. --- *** relation type: VIEW ***
  21379. --- *** ***
  21380. --- *** N2_2prime_O_dimethylguanosine is a modif ***
  21381. --- *** ied guanosine base feature. ***
  21382. --- ************************************************
  21383. ---
  21384. CREATE VIEW n2_2_prime_o_dimethylguanosine AS
  21385. SELECT
  21386. feature_id AS n2_2_prime_o_dimethylguanosine_id,
  21387. feature.*
  21388. FROM
  21389. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21390. WHERE cvterm.name = 'N2_2_prime_O_dimethylguanosine';
  21391. --- ************************************************
  21392. --- *** relation: n2_n2_2_prime_o_trimethylguanosine ***
  21393. --- *** relation type: VIEW ***
  21394. --- *** ***
  21395. --- *** N2_N2_2prime_O_trimethylguanosine is a m ***
  21396. --- *** odified guanosine base feature. ***
  21397. --- ************************************************
  21398. ---
  21399. CREATE VIEW n2_n2_2_prime_o_trimethylguanosine AS
  21400. SELECT
  21401. feature_id AS n2_n2_2_prime_o_trimethylguanosine_id,
  21402. feature.*
  21403. FROM
  21404. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21405. WHERE cvterm.name = 'N2_N2_2_prime_O_trimethylguanosine';
  21406. --- ************************************************
  21407. --- *** relation: two_prime_o_ribosylguanosine_phosphate ***
  21408. --- *** relation type: VIEW ***
  21409. --- *** ***
  21410. --- *** 2prime_O_ribosylguanosine_phosphate is a ***
  21411. --- *** modified guanosine base feature. ***
  21412. --- ************************************************
  21413. ---
  21414. CREATE VIEW two_prime_o_ribosylguanosine_phosphate AS
  21415. SELECT
  21416. feature_id AS two_prime_o_ribosylguanosine_phosphate_id,
  21417. feature.*
  21418. FROM
  21419. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21420. WHERE cvterm.name = 'two_prime_O_ribosylguanosine_phosphate';
  21421. --- ************************************************
  21422. --- *** relation: wybutosine ***
  21423. --- *** relation type: VIEW ***
  21424. --- *** ***
  21425. --- *** Wybutosine is a modified guanosine base ***
  21426. --- *** feature. ***
  21427. --- ************************************************
  21428. ---
  21429. CREATE VIEW wybutosine AS
  21430. SELECT
  21431. feature_id AS wybutosine_id,
  21432. feature.*
  21433. FROM
  21434. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21435. WHERE cvterm.name = 'wybutosine';
  21436. --- ************************************************
  21437. --- *** relation: peroxywybutosine ***
  21438. --- *** relation type: VIEW ***
  21439. --- *** ***
  21440. --- *** Peroxywybutosine is a modified guanosine ***
  21441. --- *** base feature. ***
  21442. --- ************************************************
  21443. ---
  21444. CREATE VIEW peroxywybutosine AS
  21445. SELECT
  21446. feature_id AS peroxywybutosine_id,
  21447. feature.*
  21448. FROM
  21449. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21450. WHERE cvterm.name = 'peroxywybutosine';
  21451. --- ************************************************
  21452. --- *** relation: hydroxywybutosine ***
  21453. --- *** relation type: VIEW ***
  21454. --- *** ***
  21455. --- *** Hydroxywybutosine is a modified guanosin ***
  21456. --- *** e base feature. ***
  21457. --- ************************************************
  21458. ---
  21459. CREATE VIEW hydroxywybutosine AS
  21460. SELECT
  21461. feature_id AS hydroxywybutosine_id,
  21462. feature.*
  21463. FROM
  21464. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21465. WHERE cvterm.name = 'hydroxywybutosine';
  21466. --- ************************************************
  21467. --- *** relation: undermodified_hydroxywybutosine ***
  21468. --- *** relation type: VIEW ***
  21469. --- *** ***
  21470. --- *** Undermodified_hydroxywybutosine is a mod ***
  21471. --- *** ified guanosine base feature. ***
  21472. --- ************************************************
  21473. ---
  21474. CREATE VIEW undermodified_hydroxywybutosine AS
  21475. SELECT
  21476. feature_id AS undermodified_hydroxywybutosine_id,
  21477. feature.*
  21478. FROM
  21479. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21480. WHERE cvterm.name = 'undermodified_hydroxywybutosine';
  21481. --- ************************************************
  21482. --- *** relation: wyosine ***
  21483. --- *** relation type: VIEW ***
  21484. --- *** ***
  21485. --- *** Wyosine is a modified guanosine base fea ***
  21486. --- *** ture. ***
  21487. --- ************************************************
  21488. ---
  21489. CREATE VIEW wyosine AS
  21490. SELECT
  21491. feature_id AS wyosine_id,
  21492. feature.*
  21493. FROM
  21494. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21495. WHERE cvterm.name = 'wyosine';
  21496. --- ************************************************
  21497. --- *** relation: methylwyosine ***
  21498. --- *** relation type: VIEW ***
  21499. --- *** ***
  21500. --- *** Methylwyosine is a modified guanosine ba ***
  21501. --- *** se feature. ***
  21502. --- ************************************************
  21503. ---
  21504. CREATE VIEW methylwyosine AS
  21505. SELECT
  21506. feature_id AS methylwyosine_id,
  21507. feature.*
  21508. FROM
  21509. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21510. WHERE cvterm.name = 'methylwyosine';
  21511. --- ************************************************
  21512. --- *** relation: n2_7_dimethylguanosine ***
  21513. --- *** relation type: VIEW ***
  21514. --- *** ***
  21515. --- *** N2_7_dimethylguanosine is a modified gua ***
  21516. --- *** nosine base feature. ***
  21517. --- ************************************************
  21518. ---
  21519. CREATE VIEW n2_7_dimethylguanosine AS
  21520. SELECT
  21521. feature_id AS n2_7_dimethylguanosine_id,
  21522. feature.*
  21523. FROM
  21524. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21525. WHERE cvterm.name = 'N2_7_dimethylguanosine';
  21526. --- ************************************************
  21527. --- *** relation: n2_n2_7_trimethylguanosine ***
  21528. --- *** relation type: VIEW ***
  21529. --- *** ***
  21530. --- *** N2_N2_7_trimethylguanosine is a modified ***
  21531. --- *** guanosine base feature. ***
  21532. --- ************************************************
  21533. ---
  21534. CREATE VIEW n2_n2_7_trimethylguanosine AS
  21535. SELECT
  21536. feature_id AS n2_n2_7_trimethylguanosine_id,
  21537. feature.*
  21538. FROM
  21539. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21540. WHERE cvterm.name = 'N2_N2_7_trimethylguanosine';
  21541. --- ************************************************
  21542. --- *** relation: one_two_prime_o_dimethylguanosine ***
  21543. --- *** relation type: VIEW ***
  21544. --- *** ***
  21545. --- *** 1_2prime_O_dimethylguanosine is a modifi ***
  21546. --- *** ed guanosine base feature. ***
  21547. --- ************************************************
  21548. ---
  21549. CREATE VIEW one_two_prime_o_dimethylguanosine AS
  21550. SELECT
  21551. feature_id AS one_two_prime_o_dimethylguanosine_id,
  21552. feature.*
  21553. FROM
  21554. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21555. WHERE cvterm.name = 'one_two_prime_O_dimethylguanosine';
  21556. --- ************************************************
  21557. --- *** relation: four_demethylwyosine ***
  21558. --- *** relation type: VIEW ***
  21559. --- *** ***
  21560. --- *** 4_demethylwyosine is a modified guanosin ***
  21561. --- *** e base feature. ***
  21562. --- ************************************************
  21563. ---
  21564. CREATE VIEW four_demethylwyosine AS
  21565. SELECT
  21566. feature_id AS four_demethylwyosine_id,
  21567. feature.*
  21568. FROM
  21569. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21570. WHERE cvterm.name = 'four_demethylwyosine';
  21571. --- ************************************************
  21572. --- *** relation: isowyosine ***
  21573. --- *** relation type: VIEW ***
  21574. --- *** ***
  21575. --- *** Isowyosine is a modified guanosine base ***
  21576. --- *** feature. ***
  21577. --- ************************************************
  21578. ---
  21579. CREATE VIEW isowyosine AS
  21580. SELECT
  21581. feature_id AS isowyosine_id,
  21582. feature.*
  21583. FROM
  21584. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21585. WHERE cvterm.name = 'isowyosine';
  21586. --- ************************************************
  21587. --- *** relation: n2_7_2prirme_o_trimethylguanosine ***
  21588. --- *** relation type: VIEW ***
  21589. --- *** ***
  21590. --- *** N2_7_2prirme_O_trimethylguanosine is a m ***
  21591. --- *** odified guanosine base feature. ***
  21592. --- ************************************************
  21593. ---
  21594. CREATE VIEW n2_7_2prirme_o_trimethylguanosine AS
  21595. SELECT
  21596. feature_id AS n2_7_2prirme_o_trimethylguanosine_id,
  21597. feature.*
  21598. FROM
  21599. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21600. WHERE cvterm.name = 'N2_7_2prirme_O_trimethylguanosine';
  21601. --- ************************************************
  21602. --- *** relation: five_methyluridine ***
  21603. --- *** relation type: VIEW ***
  21604. --- *** ***
  21605. --- *** 5_methyluridine is a modified uridine ba ***
  21606. --- *** se feature. ***
  21607. --- ************************************************
  21608. ---
  21609. CREATE VIEW five_methyluridine AS
  21610. SELECT
  21611. feature_id AS five_methyluridine_id,
  21612. feature.*
  21613. FROM
  21614. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21615. WHERE cvterm.name = 'five_methyluridine';
  21616. --- ************************************************
  21617. --- *** relation: two_prime_o_methyluridine ***
  21618. --- *** relation type: VIEW ***
  21619. --- *** ***
  21620. --- *** 2prime_O_methyluridine is a modified uri ***
  21621. --- *** dine base feature. ***
  21622. --- ************************************************
  21623. ---
  21624. CREATE VIEW two_prime_o_methyluridine AS
  21625. SELECT
  21626. feature_id AS two_prime_o_methyluridine_id,
  21627. feature.*
  21628. FROM
  21629. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21630. WHERE cvterm.name = 'two_prime_O_methyluridine';
  21631. --- ************************************************
  21632. --- *** relation: five_two_prime_o_dimethyluridine ***
  21633. --- *** relation type: VIEW ***
  21634. --- *** ***
  21635. --- *** 5_2_prime_O_dimethyluridine is a modifie ***
  21636. --- *** d uridine base feature. ***
  21637. --- ************************************************
  21638. ---
  21639. CREATE VIEW five_two_prime_o_dimethyluridine AS
  21640. SELECT
  21641. feature_id AS five_two_prime_o_dimethyluridine_id,
  21642. feature.*
  21643. FROM
  21644. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21645. WHERE cvterm.name = 'five_two_prime_O_dimethyluridine';
  21646. --- ************************************************
  21647. --- *** relation: one_methylpseudouridine ***
  21648. --- *** relation type: VIEW ***
  21649. --- *** ***
  21650. --- *** 1_methylpseudouridine is a modified urid ***
  21651. --- *** ine base feature. ***
  21652. --- ************************************************
  21653. ---
  21654. CREATE VIEW one_methylpseudouridine AS
  21655. SELECT
  21656. feature_id AS one_methylpseudouridine_id,
  21657. feature.*
  21658. FROM
  21659. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21660. WHERE cvterm.name = 'one_methylpseudouridine';
  21661. --- ************************************************
  21662. --- *** relation: two_prime_o_methylpseudouridine ***
  21663. --- *** relation type: VIEW ***
  21664. --- *** ***
  21665. --- *** 2prime_O_methylpseudouridine is a modifi ***
  21666. --- *** ed uridine base feature. ***
  21667. --- ************************************************
  21668. ---
  21669. CREATE VIEW two_prime_o_methylpseudouridine AS
  21670. SELECT
  21671. feature_id AS two_prime_o_methylpseudouridine_id,
  21672. feature.*
  21673. FROM
  21674. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21675. WHERE cvterm.name = 'two_prime_O_methylpseudouridine';
  21676. --- ************************************************
  21677. --- *** relation: two_thiouridine ***
  21678. --- *** relation type: VIEW ***
  21679. --- *** ***
  21680. --- *** 2_thiouridine is a modified uridine base ***
  21681. --- *** feature. ***
  21682. --- ************************************************
  21683. ---
  21684. CREATE VIEW two_thiouridine AS
  21685. SELECT
  21686. feature_id AS two_thiouridine_id,
  21687. feature.*
  21688. FROM
  21689. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21690. WHERE cvterm.name = 'two_thiouridine';
  21691. --- ************************************************
  21692. --- *** relation: four_thiouridine ***
  21693. --- *** relation type: VIEW ***
  21694. --- *** ***
  21695. --- *** 4_thiouridine is a modified uridine base ***
  21696. --- *** feature. ***
  21697. --- ************************************************
  21698. ---
  21699. CREATE VIEW four_thiouridine AS
  21700. SELECT
  21701. feature_id AS four_thiouridine_id,
  21702. feature.*
  21703. FROM
  21704. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21705. WHERE cvterm.name = 'four_thiouridine';
  21706. --- ************************************************
  21707. --- *** relation: five_methyl_2_thiouridine ***
  21708. --- *** relation type: VIEW ***
  21709. --- *** ***
  21710. --- *** 5_methyl_2_thiouridine is a modified uri ***
  21711. --- *** dine base feature. ***
  21712. --- ************************************************
  21713. ---
  21714. CREATE VIEW five_methyl_2_thiouridine AS
  21715. SELECT
  21716. feature_id AS five_methyl_2_thiouridine_id,
  21717. feature.*
  21718. FROM
  21719. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21720. WHERE cvterm.name = 'five_methyl_2_thiouridine';
  21721. --- ************************************************
  21722. --- *** relation: two_thio_two_prime_o_methyluridine ***
  21723. --- *** relation type: VIEW ***
  21724. --- *** ***
  21725. --- *** 2_thio_2prime_O_methyluridine is a modif ***
  21726. --- *** ied uridine base feature. ***
  21727. --- ************************************************
  21728. ---
  21729. CREATE VIEW two_thio_two_prime_o_methyluridine AS
  21730. SELECT
  21731. feature_id AS two_thio_two_prime_o_methyluridine_id,
  21732. feature.*
  21733. FROM
  21734. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21735. WHERE cvterm.name = 'two_thio_two_prime_O_methyluridine';
  21736. --- ************************************************
  21737. --- *** relation: three_three_amino_three_carboxypropyl_uridine ***
  21738. --- *** relation type: VIEW ***
  21739. --- *** ***
  21740. --- *** 3_3_amino_3_carboxypropyl_uridine is a m ***
  21741. --- *** odified uridine base feature. ***
  21742. --- ************************************************
  21743. ---
  21744. CREATE VIEW three_three_amino_three_carboxypropyl_uridine AS
  21745. SELECT
  21746. feature_id AS three_three_amino_three_carboxypropyl_uridine_id,
  21747. feature.*
  21748. FROM
  21749. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21750. WHERE cvterm.name = 'three_three_amino_three_carboxypropyl_uridine';
  21751. --- ************************************************
  21752. --- *** relation: five_hydroxyuridine ***
  21753. --- *** relation type: VIEW ***
  21754. --- *** ***
  21755. --- *** 5_hydroxyuridine is a modified uridine b ***
  21756. --- *** ase feature. ***
  21757. --- ************************************************
  21758. ---
  21759. CREATE VIEW five_hydroxyuridine AS
  21760. SELECT
  21761. feature_id AS five_hydroxyuridine_id,
  21762. feature.*
  21763. FROM
  21764. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21765. WHERE cvterm.name = 'five_hydroxyuridine';
  21766. --- ************************************************
  21767. --- *** relation: five_methoxyuridine ***
  21768. --- *** relation type: VIEW ***
  21769. --- *** ***
  21770. --- *** 5_methoxyuridine is a modified uridine b ***
  21771. --- *** ase feature. ***
  21772. --- ************************************************
  21773. ---
  21774. CREATE VIEW five_methoxyuridine AS
  21775. SELECT
  21776. feature_id AS five_methoxyuridine_id,
  21777. feature.*
  21778. FROM
  21779. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21780. WHERE cvterm.name = 'five_methoxyuridine';
  21781. --- ************************************************
  21782. --- *** relation: uridine_five_oxyacetic_acid ***
  21783. --- *** relation type: VIEW ***
  21784. --- *** ***
  21785. --- *** Uridine_5_oxyacetic_acid is a modified u ***
  21786. --- *** ridine base feature. ***
  21787. --- ************************************************
  21788. ---
  21789. CREATE VIEW uridine_five_oxyacetic_acid AS
  21790. SELECT
  21791. feature_id AS uridine_five_oxyacetic_acid_id,
  21792. feature.*
  21793. FROM
  21794. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21795. WHERE cvterm.name = 'uridine_five_oxyacetic_acid';
  21796. --- ************************************************
  21797. --- *** relation: uridine_five_oxyacetic_acid_methyl_ester ***
  21798. --- *** relation type: VIEW ***
  21799. --- *** ***
  21800. --- *** Uridine_5_oxyacetic_acid_methyl_ester is ***
  21801. --- *** a modified uridine base feature. ***
  21802. --- ************************************************
  21803. ---
  21804. CREATE VIEW uridine_five_oxyacetic_acid_methyl_ester AS
  21805. SELECT
  21806. feature_id AS uridine_five_oxyacetic_acid_methyl_ester_id,
  21807. feature.*
  21808. FROM
  21809. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21810. WHERE cvterm.name = 'uridine_five_oxyacetic_acid_methyl_ester';
  21811. --- ************************************************
  21812. --- *** relation: five_carboxyhydroxymethyl_uridine ***
  21813. --- *** relation type: VIEW ***
  21814. --- *** ***
  21815. --- *** 5_carboxyhydroxymethyl_uridine is a modi ***
  21816. --- *** fied uridine base feature. ***
  21817. --- ************************************************
  21818. ---
  21819. CREATE VIEW five_carboxyhydroxymethyl_uridine AS
  21820. SELECT
  21821. feature_id AS five_carboxyhydroxymethyl_uridine_id,
  21822. feature.*
  21823. FROM
  21824. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21825. WHERE cvterm.name = 'five_carboxyhydroxymethyl_uridine';
  21826. --- ************************************************
  21827. --- *** relation: five_carboxyhydroxymethyl_uridine_methyl_ester ***
  21828. --- *** relation type: VIEW ***
  21829. --- *** ***
  21830. --- *** 5_carboxyhydroxymethyl_uridine_methyl_es ***
  21831. --- *** ter is a modified uridine base feature. ***
  21832. --- ************************************************
  21833. ---
  21834. CREATE VIEW five_carboxyhydroxymethyl_uridine_methyl_ester AS
  21835. SELECT
  21836. feature_id AS five_carboxyhydroxymethyl_uridine_methyl_ester_id,
  21837. feature.*
  21838. FROM
  21839. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21840. WHERE cvterm.name = 'five_carboxyhydroxymethyl_uridine_methyl_ester';
  21841. --- ************************************************
  21842. --- *** relation: five_methoxycarbonylmethyluridine ***
  21843. --- *** relation type: VIEW ***
  21844. --- *** ***
  21845. --- *** Five_methoxycarbonylmethyluridine is a m ***
  21846. --- *** odified uridine base feature. ***
  21847. --- ************************************************
  21848. ---
  21849. CREATE VIEW five_methoxycarbonylmethyluridine AS
  21850. SELECT
  21851. feature_id AS five_methoxycarbonylmethyluridine_id,
  21852. feature.*
  21853. FROM
  21854. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21855. WHERE cvterm.name = 'five_methoxycarbonylmethyluridine';
  21856. --- ************************************************
  21857. --- *** relation: five_methoxycarbonylmethyl_two_prime_o_methyluridine ***
  21858. --- *** relation type: VIEW ***
  21859. --- *** ***
  21860. --- *** Five_methoxycarbonylmethyl_2_prime_O_met ***
  21861. --- *** hyluridine is a modified uridine base fe ***
  21862. --- *** ature. ***
  21863. --- ************************************************
  21864. ---
  21865. CREATE VIEW five_methoxycarbonylmethyl_two_prime_o_methyluridine AS
  21866. SELECT
  21867. feature_id AS five_methoxycarbonylmethyl_two_prime_o_methyluridine_id,
  21868. feature.*
  21869. FROM
  21870. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21871. WHERE cvterm.name = 'five_methoxycarbonylmethyl_two_prime_O_methyluridine';
  21872. --- ************************************************
  21873. --- *** relation: five_mcm_2_thiouridine ***
  21874. --- *** relation type: VIEW ***
  21875. --- *** ***
  21876. --- *** 5_methoxycarbonylmethyl_2_thiouridine is ***
  21877. --- *** a modified uridine base feature. ***
  21878. --- ************************************************
  21879. ---
  21880. CREATE VIEW five_mcm_2_thiouridine AS
  21881. SELECT
  21882. feature_id AS five_mcm_2_thiouridine_id,
  21883. feature.*
  21884. FROM
  21885. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21886. WHERE cvterm.name = 'five_methoxycarbonylmethyl_two_thiouridine';
  21887. --- ************************************************
  21888. --- *** relation: five_aminomethyl_two_thiouridine ***
  21889. --- *** relation type: VIEW ***
  21890. --- *** ***
  21891. --- *** 5_aminomethyl_2_thiouridine is a modifie ***
  21892. --- *** d uridine base feature. ***
  21893. --- ************************************************
  21894. ---
  21895. CREATE VIEW five_aminomethyl_two_thiouridine AS
  21896. SELECT
  21897. feature_id AS five_aminomethyl_two_thiouridine_id,
  21898. feature.*
  21899. FROM
  21900. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21901. WHERE cvterm.name = 'five_aminomethyl_two_thiouridine';
  21902. --- ************************************************
  21903. --- *** relation: five_methylaminomethyluridine ***
  21904. --- *** relation type: VIEW ***
  21905. --- *** ***
  21906. --- *** 5_methylaminomethyluridine is a modified ***
  21907. --- *** uridine base feature. ***
  21908. --- ************************************************
  21909. ---
  21910. CREATE VIEW five_methylaminomethyluridine AS
  21911. SELECT
  21912. feature_id AS five_methylaminomethyluridine_id,
  21913. feature.*
  21914. FROM
  21915. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21916. WHERE cvterm.name = 'five_methylaminomethyluridine';
  21917. --- ************************************************
  21918. --- *** relation: five_mam_2_thiouridine ***
  21919. --- *** relation type: VIEW ***
  21920. --- *** ***
  21921. --- *** 5_methylaminomethyl_2_thiouridine is a m ***
  21922. --- *** odified uridine base feature. ***
  21923. --- ************************************************
  21924. ---
  21925. CREATE VIEW five_mam_2_thiouridine AS
  21926. SELECT
  21927. feature_id AS five_mam_2_thiouridine_id,
  21928. feature.*
  21929. FROM
  21930. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21931. WHERE cvterm.name = 'five_methylaminomethyl_two_thiouridine';
  21932. --- ************************************************
  21933. --- *** relation: five_methylaminomethyl_two_selenouridine ***
  21934. --- *** relation type: VIEW ***
  21935. --- *** ***
  21936. --- *** 5_methylaminomethyl_2_selenouridine is a ***
  21937. --- *** modified uridine base feature. ***
  21938. --- ************************************************
  21939. ---
  21940. CREATE VIEW five_methylaminomethyl_two_selenouridine AS
  21941. SELECT
  21942. feature_id AS five_methylaminomethyl_two_selenouridine_id,
  21943. feature.*
  21944. FROM
  21945. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21946. WHERE cvterm.name = 'five_methylaminomethyl_two_selenouridine';
  21947. --- ************************************************
  21948. --- *** relation: five_carbamoylmethyluridine ***
  21949. --- *** relation type: VIEW ***
  21950. --- *** ***
  21951. --- *** 5_carbamoylmethyluridine is a modified u ***
  21952. --- *** ridine base feature. ***
  21953. --- ************************************************
  21954. ---
  21955. CREATE VIEW five_carbamoylmethyluridine AS
  21956. SELECT
  21957. feature_id AS five_carbamoylmethyluridine_id,
  21958. feature.*
  21959. FROM
  21960. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21961. WHERE cvterm.name = 'five_carbamoylmethyluridine';
  21962. --- ************************************************
  21963. --- *** relation: five_cm_2_prime_o_methU ***
  21964. --- *** relation type: VIEW ***
  21965. --- *** ***
  21966. --- *** 5_carbamoylmethyl_2_prime_O_methyluridin ***
  21967. --- *** e is a modified uridine base feature. ***
  21968. --- ************************************************
  21969. ---
  21970. CREATE VIEW five_cm_2_prime_o_methU AS
  21971. SELECT
  21972. feature_id AS five_cm_2_prime_o_methU_id,
  21973. feature.*
  21974. FROM
  21975. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21976. WHERE cvterm.name = 'five_carbamoylmethyl_two_prime_O_methyluridine';
  21977. --- ************************************************
  21978. --- *** relation: five_carboxymethylaminomethyluridine ***
  21979. --- *** relation type: VIEW ***
  21980. --- *** ***
  21981. --- *** 5_carboxymethylaminomethyluridine is a m ***
  21982. --- *** odified uridine base feature. ***
  21983. --- ************************************************
  21984. ---
  21985. CREATE VIEW five_carboxymethylaminomethyluridine AS
  21986. SELECT
  21987. feature_id AS five_carboxymethylaminomethyluridine_id,
  21988. feature.*
  21989. FROM
  21990. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21991. WHERE cvterm.name = 'five_carboxymethylaminomethyluridine';
  21992. --- ************************************************
  21993. --- *** relation: five_carboxymethylaminomethyl_two_prime_o_methyluridine ***
  21994. --- *** relation type: VIEW ***
  21995. --- *** ***
  21996. --- *** 5_carboxymethylaminomethyl_2_prime_O_met ***
  21997. --- *** hyluridine is a modified uridine base fe ***
  21998. --- *** ature. ***
  21999. --- ************************************************
  22000. ---
  22001. CREATE VIEW five_carboxymethylaminomethyl_two_prime_o_methyluridine AS
  22002. SELECT
  22003. feature_id AS five_carboxymethylaminomethyl_two_prime_o_methyluridine_id,
  22004. feature.*
  22005. FROM
  22006. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22007. WHERE cvterm.name = 'five_carboxymethylaminomethyl_two_prime_O_methyluridine';
  22008. --- ************************************************
  22009. --- *** relation: five_carboxymethylaminomethyl_two_thiouridine ***
  22010. --- *** relation type: VIEW ***
  22011. --- *** ***
  22012. --- *** 5_carboxymethylaminomethyl_2_thiouridine ***
  22013. --- *** is a modified uridine base feature. ***
  22014. --- ************************************************
  22015. ---
  22016. CREATE VIEW five_carboxymethylaminomethyl_two_thiouridine AS
  22017. SELECT
  22018. feature_id AS five_carboxymethylaminomethyl_two_thiouridine_id,
  22019. feature.*
  22020. FROM
  22021. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22022. WHERE cvterm.name = 'five_carboxymethylaminomethyl_two_thiouridine';
  22023. --- ************************************************
  22024. --- *** relation: three_methyluridine ***
  22025. --- *** relation type: VIEW ***
  22026. --- *** ***
  22027. --- *** 3_methyluridine is a modified uridine ba ***
  22028. --- *** se feature. ***
  22029. --- ************************************************
  22030. ---
  22031. CREATE VIEW three_methyluridine AS
  22032. SELECT
  22033. feature_id AS three_methyluridine_id,
  22034. feature.*
  22035. FROM
  22036. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22037. WHERE cvterm.name = 'three_methyluridine';
  22038. --- ************************************************
  22039. --- *** relation: one_methyl_3_3_amino_three_carboxypropyl_pseudouridine ***
  22040. --- *** relation type: VIEW ***
  22041. --- *** ***
  22042. --- *** 1_methyl_3_3_amino_3_carboxypropyl_pseud ***
  22043. --- *** ouridine is a modified uridine base feat ***
  22044. --- *** ure. ***
  22045. --- ************************************************
  22046. ---
  22047. CREATE VIEW one_methyl_3_3_amino_three_carboxypropyl_pseudouridine AS
  22048. SELECT
  22049. feature_id AS one_methyl_3_3_amino_three_carboxypropyl_pseudouridine_id,
  22050. feature.*
  22051. FROM
  22052. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22053. WHERE cvterm.name = 'one_methyl_three_three_amino_three_carboxypropyl_pseudouridine';
  22054. --- ************************************************
  22055. --- *** relation: five_carboxymethyluridine ***
  22056. --- *** relation type: VIEW ***
  22057. --- *** ***
  22058. --- *** 5_carboxymethyluridine is a modified uri ***
  22059. --- *** dine base feature. ***
  22060. --- ************************************************
  22061. ---
  22062. CREATE VIEW five_carboxymethyluridine AS
  22063. SELECT
  22064. feature_id AS five_carboxymethyluridine_id,
  22065. feature.*
  22066. FROM
  22067. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22068. WHERE cvterm.name = 'five_carboxymethyluridine';
  22069. --- ************************************************
  22070. --- *** relation: three_two_prime_o_dimethyluridine ***
  22071. --- *** relation type: VIEW ***
  22072. --- *** ***
  22073. --- *** 3_2prime_O_dimethyluridine is a modified ***
  22074. --- *** uridine base feature. ***
  22075. --- ************************************************
  22076. ---
  22077. CREATE VIEW three_two_prime_o_dimethyluridine AS
  22078. SELECT
  22079. feature_id AS three_two_prime_o_dimethyluridine_id,
  22080. feature.*
  22081. FROM
  22082. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22083. WHERE cvterm.name = 'three_two_prime_O_dimethyluridine';
  22084. --- ************************************************
  22085. --- *** relation: five_methyldihydrouridine ***
  22086. --- *** relation type: VIEW ***
  22087. --- *** ***
  22088. --- *** 5_methyldihydrouridine is a modified uri ***
  22089. --- *** dine base feature. ***
  22090. --- ************************************************
  22091. ---
  22092. CREATE VIEW five_methyldihydrouridine AS
  22093. SELECT
  22094. feature_id AS five_methyldihydrouridine_id,
  22095. feature.*
  22096. FROM
  22097. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22098. WHERE cvterm.name = 'five_methyldihydrouridine';
  22099. --- ************************************************
  22100. --- *** relation: three_methylpseudouridine ***
  22101. --- *** relation type: VIEW ***
  22102. --- *** ***
  22103. --- *** 3_methylpseudouridine is a modified urid ***
  22104. --- *** ine base feature. ***
  22105. --- ************************************************
  22106. ---
  22107. CREATE VIEW three_methylpseudouridine AS
  22108. SELECT
  22109. feature_id AS three_methylpseudouridine_id,
  22110. feature.*
  22111. FROM
  22112. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22113. WHERE cvterm.name = 'three_methylpseudouridine';
  22114. --- ************************************************
  22115. --- *** relation: five_taurinomethyluridine ***
  22116. --- *** relation type: VIEW ***
  22117. --- *** ***
  22118. --- *** 5_taurinomethyluridine is a modified uri ***
  22119. --- *** dine base feature. ***
  22120. --- ************************************************
  22121. ---
  22122. CREATE VIEW five_taurinomethyluridine AS
  22123. SELECT
  22124. feature_id AS five_taurinomethyluridine_id,
  22125. feature.*
  22126. FROM
  22127. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22128. WHERE cvterm.name = 'five_taurinomethyluridine';
  22129. --- ************************************************
  22130. --- *** relation: five_taurinomethyl_two_thiouridine ***
  22131. --- *** relation type: VIEW ***
  22132. --- *** ***
  22133. --- *** 5_taurinomethyl_2_thiouridineis a modifi ***
  22134. --- *** ed uridine base feature. ***
  22135. --- ************************************************
  22136. ---
  22137. CREATE VIEW five_taurinomethyl_two_thiouridine AS
  22138. SELECT
  22139. feature_id AS five_taurinomethyl_two_thiouridine_id,
  22140. feature.*
  22141. FROM
  22142. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22143. WHERE cvterm.name = 'five_taurinomethyl_two_thiouridine';
  22144. --- ************************************************
  22145. --- *** relation: five_isopentenylaminomethyl_uridine ***
  22146. --- *** relation type: VIEW ***
  22147. --- *** ***
  22148. --- *** 5_isopentenylaminomethyl_uridine is a mo ***
  22149. --- *** dified uridine base feature. ***
  22150. --- ************************************************
  22151. ---
  22152. CREATE VIEW five_isopentenylaminomethyl_uridine AS
  22153. SELECT
  22154. feature_id AS five_isopentenylaminomethyl_uridine_id,
  22155. feature.*
  22156. FROM
  22157. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22158. WHERE cvterm.name = 'five_isopentenylaminomethyl_uridine';
  22159. --- ************************************************
  22160. --- *** relation: five_isopentenylaminomethyl_two_thiouridine ***
  22161. --- *** relation type: VIEW ***
  22162. --- *** ***
  22163. --- *** 5_isopentenylaminomethyl_2_thiouridine i ***
  22164. --- *** s a modified uridine base feature. ***
  22165. --- ************************************************
  22166. ---
  22167. CREATE VIEW five_isopentenylaminomethyl_two_thiouridine AS
  22168. SELECT
  22169. feature_id AS five_isopentenylaminomethyl_two_thiouridine_id,
  22170. feature.*
  22171. FROM
  22172. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22173. WHERE cvterm.name = 'five_isopentenylaminomethyl_two_thiouridine';
  22174. --- ************************************************
  22175. --- *** relation: five_isopentenylaminomethyl_two_prime_o_methyluridine ***
  22176. --- *** relation type: VIEW ***
  22177. --- *** ***
  22178. --- *** 5_isopentenylaminomethyl_2prime_O_methyl ***
  22179. --- *** uridine is a modified uridine base featu ***
  22180. --- *** re. ***
  22181. --- ************************************************
  22182. ---
  22183. CREATE VIEW five_isopentenylaminomethyl_two_prime_o_methyluridine AS
  22184. SELECT
  22185. feature_id AS five_isopentenylaminomethyl_two_prime_o_methyluridine_id,
  22186. feature.*
  22187. FROM
  22188. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22189. WHERE cvterm.name = 'five_isopentenylaminomethyl_two_prime_O_methyluridine';
  22190. --- ************************************************
  22191. --- *** relation: histone_binding_site ***
  22192. --- *** relation type: VIEW ***
  22193. --- *** ***
  22194. --- *** A binding site that, in the nucleotide m ***
  22195. --- *** olecule, interacts selectively and non-c ***
  22196. --- *** ovalently with polypeptide residues of a ***
  22197. --- *** histone. ***
  22198. --- ************************************************
  22199. ---
  22200. CREATE VIEW histone_binding_site AS
  22201. SELECT
  22202. feature_id AS histone_binding_site_id,
  22203. feature.*
  22204. FROM
  22205. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22206. WHERE cvterm.name = 'histone_binding_site';
  22207. --- ************************************************
  22208. --- *** relation: cds_fragment ***
  22209. --- *** relation type: VIEW ***
  22210. --- *** ***
  22211. --- ************************************************
  22212. ---
  22213. CREATE VIEW cds_fragment AS
  22214. SELECT
  22215. feature_id AS cds_fragment_id,
  22216. feature.*
  22217. FROM
  22218. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22219. WHERE cvterm.name = 'CDS_fragment';
  22220. --- ************************************************
  22221. --- *** relation: modified_amino_acid_feature ***
  22222. --- *** relation type: VIEW ***
  22223. --- *** ***
  22224. --- *** A post translationally modified amino ac ***
  22225. --- *** id feature. ***
  22226. --- ************************************************
  22227. ---
  22228. CREATE VIEW modified_amino_acid_feature AS
  22229. SELECT
  22230. feature_id AS modified_amino_acid_feature_id,
  22231. feature.*
  22232. FROM
  22233. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22234. 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';
  22235. --- ************************************************
  22236. --- *** relation: modified_glycine ***
  22237. --- *** relation type: VIEW ***
  22238. --- *** ***
  22239. --- *** A post translationally modified glycine ***
  22240. --- *** amino acid feature. ***
  22241. --- ************************************************
  22242. ---
  22243. CREATE VIEW modified_glycine AS
  22244. SELECT
  22245. feature_id AS modified_glycine_id,
  22246. feature.*
  22247. FROM
  22248. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22249. WHERE cvterm.name = 'modified_glycine';
  22250. --- ************************************************
  22251. --- *** relation: modified_l_alanine ***
  22252. --- *** relation type: VIEW ***
  22253. --- *** ***
  22254. --- *** A post translationally modified alanine ***
  22255. --- *** amino acid feature. ***
  22256. --- ************************************************
  22257. ---
  22258. CREATE VIEW modified_l_alanine AS
  22259. SELECT
  22260. feature_id AS modified_l_alanine_id,
  22261. feature.*
  22262. FROM
  22263. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22264. WHERE cvterm.name = 'modified_L_alanine';
  22265. --- ************************************************
  22266. --- *** relation: modified_l_asparagine ***
  22267. --- *** relation type: VIEW ***
  22268. --- *** ***
  22269. --- *** A post translationally modified asparagi ***
  22270. --- *** ne amino acid feature. ***
  22271. --- ************************************************
  22272. ---
  22273. CREATE VIEW modified_l_asparagine AS
  22274. SELECT
  22275. feature_id AS modified_l_asparagine_id,
  22276. feature.*
  22277. FROM
  22278. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22279. WHERE cvterm.name = 'modified_L_asparagine';
  22280. --- ************************************************
  22281. --- *** relation: modified_l_aspartic_acid ***
  22282. --- *** relation type: VIEW ***
  22283. --- *** ***
  22284. --- *** A post translationally modified aspartic ***
  22285. --- *** acid amino acid feature. ***
  22286. --- ************************************************
  22287. ---
  22288. CREATE VIEW modified_l_aspartic_acid AS
  22289. SELECT
  22290. feature_id AS modified_l_aspartic_acid_id,
  22291. feature.*
  22292. FROM
  22293. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22294. WHERE cvterm.name = 'modified_L_aspartic_acid';
  22295. --- ************************************************
  22296. --- *** relation: modified_l_cysteine ***
  22297. --- *** relation type: VIEW ***
  22298. --- *** ***
  22299. --- *** A post translationally modified cysteine ***
  22300. --- *** amino acid feature. ***
  22301. --- ************************************************
  22302. ---
  22303. CREATE VIEW modified_l_cysteine AS
  22304. SELECT
  22305. feature_id AS modified_l_cysteine_id,
  22306. feature.*
  22307. FROM
  22308. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22309. WHERE cvterm.name = 'modified_L_cysteine';
  22310. --- ************************************************
  22311. --- *** relation: modified_l_glutamic_acid ***
  22312. --- *** relation type: VIEW ***
  22313. --- *** ***
  22314. --- ************************************************
  22315. ---
  22316. CREATE VIEW modified_l_glutamic_acid AS
  22317. SELECT
  22318. feature_id AS modified_l_glutamic_acid_id,
  22319. feature.*
  22320. FROM
  22321. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22322. WHERE cvterm.name = 'modified_L_glutamic_acid';
  22323. --- ************************************************
  22324. --- *** relation: modified_l_threonine ***
  22325. --- *** relation type: VIEW ***
  22326. --- *** ***
  22327. --- *** A post translationally modified threonin ***
  22328. --- *** e amino acid feature. ***
  22329. --- ************************************************
  22330. ---
  22331. CREATE VIEW modified_l_threonine AS
  22332. SELECT
  22333. feature_id AS modified_l_threonine_id,
  22334. feature.*
  22335. FROM
  22336. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22337. WHERE cvterm.name = 'modified_L_threonine';
  22338. --- ************************************************
  22339. --- *** relation: modified_l_tryptophan ***
  22340. --- *** relation type: VIEW ***
  22341. --- *** ***
  22342. --- *** A post translationally modified tryptoph ***
  22343. --- *** an amino acid feature. ***
  22344. --- ************************************************
  22345. ---
  22346. CREATE VIEW modified_l_tryptophan AS
  22347. SELECT
  22348. feature_id AS modified_l_tryptophan_id,
  22349. feature.*
  22350. FROM
  22351. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22352. WHERE cvterm.name = 'modified_L_tryptophan';
  22353. --- ************************************************
  22354. --- *** relation: modified_l_glutamine ***
  22355. --- *** relation type: VIEW ***
  22356. --- *** ***
  22357. --- *** A post translationally modified glutamin ***
  22358. --- *** e amino acid feature. ***
  22359. --- ************************************************
  22360. ---
  22361. CREATE VIEW modified_l_glutamine AS
  22362. SELECT
  22363. feature_id AS modified_l_glutamine_id,
  22364. feature.*
  22365. FROM
  22366. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22367. WHERE cvterm.name = 'modified_L_glutamine';
  22368. --- ************************************************
  22369. --- *** relation: modified_l_methionine ***
  22370. --- *** relation type: VIEW ***
  22371. --- *** ***
  22372. --- *** A post translationally modified methioni ***
  22373. --- *** ne amino acid feature. ***
  22374. --- ************************************************
  22375. ---
  22376. CREATE VIEW modified_l_methionine AS
  22377. SELECT
  22378. feature_id AS modified_l_methionine_id,
  22379. feature.*
  22380. FROM
  22381. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22382. WHERE cvterm.name = 'modified_L_methionine';
  22383. --- ************************************************
  22384. --- *** relation: modified_l_isoleucine ***
  22385. --- *** relation type: VIEW ***
  22386. --- *** ***
  22387. --- *** A post translationally modified isoleuci ***
  22388. --- *** ne amino acid feature. ***
  22389. --- ************************************************
  22390. ---
  22391. CREATE VIEW modified_l_isoleucine AS
  22392. SELECT
  22393. feature_id AS modified_l_isoleucine_id,
  22394. feature.*
  22395. FROM
  22396. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22397. WHERE cvterm.name = 'modified_L_isoleucine';
  22398. --- ************************************************
  22399. --- *** relation: modified_l_phenylalanine ***
  22400. --- *** relation type: VIEW ***
  22401. --- *** ***
  22402. --- *** A post translationally modified phenylal ***
  22403. --- *** anine amino acid feature. ***
  22404. --- ************************************************
  22405. ---
  22406. CREATE VIEW modified_l_phenylalanine AS
  22407. SELECT
  22408. feature_id AS modified_l_phenylalanine_id,
  22409. feature.*
  22410. FROM
  22411. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22412. WHERE cvterm.name = 'modified_L_phenylalanine';
  22413. --- ************************************************
  22414. --- *** relation: modified_l_histidine ***
  22415. --- *** relation type: VIEW ***
  22416. --- *** ***
  22417. --- *** A post translationally modified histidie ***
  22418. --- *** amino acid feature. ***
  22419. --- ************************************************
  22420. ---
  22421. CREATE VIEW modified_l_histidine AS
  22422. SELECT
  22423. feature_id AS modified_l_histidine_id,
  22424. feature.*
  22425. FROM
  22426. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22427. WHERE cvterm.name = 'modified_L_histidine';
  22428. --- ************************************************
  22429. --- *** relation: modified_l_serine ***
  22430. --- *** relation type: VIEW ***
  22431. --- *** ***
  22432. --- *** A post translationally modified serine a ***
  22433. --- *** mino acid feature. ***
  22434. --- ************************************************
  22435. ---
  22436. CREATE VIEW modified_l_serine AS
  22437. SELECT
  22438. feature_id AS modified_l_serine_id,
  22439. feature.*
  22440. FROM
  22441. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22442. WHERE cvterm.name = 'modified_L_serine';
  22443. --- ************************************************
  22444. --- *** relation: modified_l_lysine ***
  22445. --- *** relation type: VIEW ***
  22446. --- *** ***
  22447. --- *** A post translationally modified lysine a ***
  22448. --- *** mino acid feature. ***
  22449. --- ************************************************
  22450. ---
  22451. CREATE VIEW modified_l_lysine AS
  22452. SELECT
  22453. feature_id AS modified_l_lysine_id,
  22454. feature.*
  22455. FROM
  22456. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22457. WHERE cvterm.name = 'modified_L_lysine';
  22458. --- ************************************************
  22459. --- *** relation: modified_l_leucine ***
  22460. --- *** relation type: VIEW ***
  22461. --- *** ***
  22462. --- *** A post translationally modified leucine ***
  22463. --- *** amino acid feature. ***
  22464. --- ************************************************
  22465. ---
  22466. CREATE VIEW modified_l_leucine AS
  22467. SELECT
  22468. feature_id AS modified_l_leucine_id,
  22469. feature.*
  22470. FROM
  22471. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22472. WHERE cvterm.name = 'modified_L_leucine';
  22473. --- ************************************************
  22474. --- *** relation: modified_l_selenocysteine ***
  22475. --- *** relation type: VIEW ***
  22476. --- *** ***
  22477. --- *** A post translationally modified selenocy ***
  22478. --- *** steine amino acid feature. ***
  22479. --- ************************************************
  22480. ---
  22481. CREATE VIEW modified_l_selenocysteine AS
  22482. SELECT
  22483. feature_id AS modified_l_selenocysteine_id,
  22484. feature.*
  22485. FROM
  22486. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22487. WHERE cvterm.name = 'modified_L_selenocysteine';
  22488. --- ************************************************
  22489. --- *** relation: modified_l_valine ***
  22490. --- *** relation type: VIEW ***
  22491. --- *** ***
  22492. --- *** A post translationally modified valine a ***
  22493. --- *** mino acid feature. ***
  22494. --- ************************************************
  22495. ---
  22496. CREATE VIEW modified_l_valine AS
  22497. SELECT
  22498. feature_id AS modified_l_valine_id,
  22499. feature.*
  22500. FROM
  22501. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22502. WHERE cvterm.name = 'modified_L_valine';
  22503. --- ************************************************
  22504. --- *** relation: modified_l_proline ***
  22505. --- *** relation type: VIEW ***
  22506. --- *** ***
  22507. --- *** A post translationally modified proline ***
  22508. --- *** amino acid feature. ***
  22509. --- ************************************************
  22510. ---
  22511. CREATE VIEW modified_l_proline AS
  22512. SELECT
  22513. feature_id AS modified_l_proline_id,
  22514. feature.*
  22515. FROM
  22516. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22517. WHERE cvterm.name = 'modified_L_proline';
  22518. --- ************************************************
  22519. --- *** relation: modified_l_tyrosine ***
  22520. --- *** relation type: VIEW ***
  22521. --- *** ***
  22522. --- *** A post translationally modified tyrosine ***
  22523. --- *** amino acid feature. ***
  22524. --- ************************************************
  22525. ---
  22526. CREATE VIEW modified_l_tyrosine AS
  22527. SELECT
  22528. feature_id AS modified_l_tyrosine_id,
  22529. feature.*
  22530. FROM
  22531. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22532. WHERE cvterm.name = 'modified_L_tyrosine';
  22533. --- ************************************************
  22534. --- *** relation: modified_l_arginine ***
  22535. --- *** relation type: VIEW ***
  22536. --- *** ***
  22537. --- *** A post translationally modified arginine ***
  22538. --- *** amino acid feature. ***
  22539. --- ************************************************
  22540. ---
  22541. CREATE VIEW modified_l_arginine AS
  22542. SELECT
  22543. feature_id AS modified_l_arginine_id,
  22544. feature.*
  22545. FROM
  22546. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22547. WHERE cvterm.name = 'modified_L_arginine';
  22548. --- ************************************************
  22549. --- *** relation: peptidyl ***
  22550. --- *** relation type: VIEW ***
  22551. --- *** ***
  22552. --- *** An attribute describing the nature of a ***
  22553. --- *** proteinaceous polymer, where by the amin ***
  22554. --- *** o acid units are joined by peptide bonds ***
  22555. --- *** . ***
  22556. --- ************************************************
  22557. ---
  22558. CREATE VIEW peptidyl AS
  22559. SELECT
  22560. feature_id AS peptidyl_id,
  22561. feature.*
  22562. FROM
  22563. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22564. WHERE cvterm.name = 'peptidyl';
  22565. --- ************************************************
  22566. --- *** relation: cleaved_for_gpi_anchor_region ***
  22567. --- *** relation type: VIEW ***
  22568. --- *** ***
  22569. --- *** The C-terminal residues of a polypeptide ***
  22570. --- *** which are exchanged for a GPI-anchor. ***
  22571. --- ************************************************
  22572. ---
  22573. CREATE VIEW cleaved_for_gpi_anchor_region AS
  22574. SELECT
  22575. feature_id AS cleaved_for_gpi_anchor_region_id,
  22576. feature.*
  22577. FROM
  22578. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22579. WHERE cvterm.name = 'cleaved_for_gpi_anchor_region';
  22580. --- ************************************************
  22581. --- *** relation: biomaterial_region ***
  22582. --- *** relation type: VIEW ***
  22583. --- *** ***
  22584. --- *** A region which is intended for use in an ***
  22585. --- *** experiment. ***
  22586. --- ************************************************
  22587. ---
  22588. CREATE VIEW biomaterial_region AS
  22589. SELECT
  22590. feature_id AS biomaterial_region_id,
  22591. feature.*
  22592. FROM
  22593. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22594. 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';
  22595. --- ************************************************
  22596. --- *** relation: experimental_feature ***
  22597. --- *** relation type: VIEW ***
  22598. --- *** ***
  22599. --- *** A region which is the result of some arb ***
  22600. --- *** itrary experimental procedure. The proce ***
  22601. --- *** dure may be carried out with biological ***
  22602. --- *** material or inside a computer. ***
  22603. --- ************************************************
  22604. ---
  22605. CREATE VIEW experimental_feature AS
  22606. SELECT
  22607. feature_id AS experimental_feature_id,
  22608. feature.*
  22609. FROM
  22610. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22611. 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';
  22612. --- ************************************************
  22613. --- *** relation: biological_region ***
  22614. --- *** relation type: VIEW ***
  22615. --- *** ***
  22616. --- *** A region defined by its disposition to b ***
  22617. --- *** e involved in a biological process. ***
  22618. --- ************************************************
  22619. ---
  22620. CREATE VIEW biological_region AS
  22621. SELECT
  22622. feature_id AS biological_region_id,
  22623. feature.*
  22624. FROM
  22625. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22626. 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';
  22627. --- ************************************************
  22628. --- *** relation: topologically_defined_region ***
  22629. --- *** relation type: VIEW ***
  22630. --- *** ***
  22631. --- *** A region that is defined according to it ***
  22632. --- *** s relations with other regions within th ***
  22633. --- *** e same sequence. ***
  22634. --- ************************************************
  22635. ---
  22636. CREATE VIEW topologically_defined_region AS
  22637. SELECT
  22638. feature_id AS topologically_defined_region_id,
  22639. feature.*
  22640. FROM
  22641. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22642. 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';
  22643. --- ************************************************
  22644. --- *** relation: translocation_breakpoint ***
  22645. --- *** relation type: VIEW ***
  22646. --- *** ***
  22647. --- *** The point within a chromosome where a tr ***
  22648. --- *** anslocation begins or ends. ***
  22649. --- ************************************************
  22650. ---
  22651. CREATE VIEW translocation_breakpoint AS
  22652. SELECT
  22653. feature_id AS translocation_breakpoint_id,
  22654. feature.*
  22655. FROM
  22656. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22657. WHERE cvterm.name = 'translocation_breakpoint';
  22658. --- ************************************************
  22659. --- *** relation: insertion_breakpoint ***
  22660. --- *** relation type: VIEW ***
  22661. --- *** ***
  22662. --- *** The point within a chromosome where a in ***
  22663. --- *** sertion begins or ends. ***
  22664. --- ************************************************
  22665. ---
  22666. CREATE VIEW insertion_breakpoint AS
  22667. SELECT
  22668. feature_id AS insertion_breakpoint_id,
  22669. feature.*
  22670. FROM
  22671. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22672. WHERE cvterm.name = 'insertion_breakpoint';
  22673. --- ************************************************
  22674. --- *** relation: deletion_breakpoint ***
  22675. --- *** relation type: VIEW ***
  22676. --- *** ***
  22677. --- *** The point within a chromosome where a de ***
  22678. --- *** letion begins or ends. ***
  22679. --- ************************************************
  22680. ---
  22681. CREATE VIEW deletion_breakpoint AS
  22682. SELECT
  22683. feature_id AS deletion_breakpoint_id,
  22684. feature.*
  22685. FROM
  22686. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22687. WHERE cvterm.name = 'deletion_breakpoint';
  22688. --- ************************************************
  22689. --- *** relation: five_prime_flanking_region ***
  22690. --- *** relation type: VIEW ***
  22691. --- *** ***
  22692. --- *** A flanking region located five prime of ***
  22693. --- *** a specific region. ***
  22694. --- ************************************************
  22695. ---
  22696. CREATE VIEW five_prime_flanking_region AS
  22697. SELECT
  22698. feature_id AS five_prime_flanking_region_id,
  22699. feature.*
  22700. FROM
  22701. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22702. WHERE cvterm.name = 'five_prime_flanking_region';
  22703. --- ************************************************
  22704. --- *** relation: three_prime_flanking_region ***
  22705. --- *** relation type: VIEW ***
  22706. --- *** ***
  22707. --- *** A flanking region located three prime of ***
  22708. --- *** a specific region. ***
  22709. --- ************************************************
  22710. ---
  22711. CREATE VIEW three_prime_flanking_region AS
  22712. SELECT
  22713. feature_id AS three_prime_flanking_region_id,
  22714. feature.*
  22715. FROM
  22716. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22717. WHERE cvterm.name = 'three_prime_flanking_region';
  22718. --- ************************************************
  22719. --- *** relation: transcribed_fragment ***
  22720. --- *** relation type: VIEW ***
  22721. --- *** ***
  22722. --- *** An experimental region, defined by a til ***
  22723. --- *** ing array experiment to be transcribed a ***
  22724. --- *** t some level. ***
  22725. --- ************************************************
  22726. ---
  22727. CREATE VIEW transcribed_fragment AS
  22728. SELECT
  22729. feature_id AS transcribed_fragment_id,
  22730. feature.*
  22731. FROM
  22732. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22733. WHERE cvterm.name = 'transcribed_fragment';
  22734. --- ************************************************
  22735. --- *** relation: cis_splice_site ***
  22736. --- *** relation type: VIEW ***
  22737. --- *** ***
  22738. --- *** Intronic 2 bp region bordering exon. A s ***
  22739. --- *** plice_site that adjacent_to exon and ove ***
  22740. --- *** rlaps intron. ***
  22741. --- ************************************************
  22742. ---
  22743. CREATE VIEW cis_splice_site AS
  22744. SELECT
  22745. feature_id AS cis_splice_site_id,
  22746. feature.*
  22747. FROM
  22748. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22749. 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';
  22750. --- ************************************************
  22751. --- *** relation: trans_splice_site ***
  22752. --- *** relation type: VIEW ***
  22753. --- *** ***
  22754. --- *** Primary transcript region bordering tran ***
  22755. --- *** s-splice junction. ***
  22756. --- ************************************************
  22757. ---
  22758. CREATE VIEW trans_splice_site AS
  22759. SELECT
  22760. feature_id AS trans_splice_site_id,
  22761. feature.*
  22762. FROM
  22763. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22764. 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';
  22765. --- ************************************************
  22766. --- *** relation: splice_junction ***
  22767. --- *** relation type: VIEW ***
  22768. --- *** ***
  22769. --- *** The boundary between an intron and an ex ***
  22770. --- *** on. ***
  22771. --- ************************************************
  22772. ---
  22773. CREATE VIEW splice_junction AS
  22774. SELECT
  22775. feature_id AS splice_junction_id,
  22776. feature.*
  22777. FROM
  22778. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22779. WHERE cvterm.name = 'splice_junction';
  22780. --- ************************************************
  22781. --- *** relation: conformational_switch ***
  22782. --- *** relation type: VIEW ***
  22783. --- *** ***
  22784. --- *** A region of a polypeptide, involved in t ***
  22785. --- *** he transition from one conformational st ***
  22786. --- *** ate to another. ***
  22787. --- ************************************************
  22788. ---
  22789. CREATE VIEW conformational_switch AS
  22790. SELECT
  22791. feature_id AS conformational_switch_id,
  22792. feature.*
  22793. FROM
  22794. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22795. WHERE cvterm.name = 'conformational_switch';
  22796. --- ************************************************
  22797. --- *** relation: dye_terminator_read ***
  22798. --- *** relation type: VIEW ***
  22799. --- *** ***
  22800. --- *** A read produced by the dye terminator me ***
  22801. --- *** thod of sequencing. ***
  22802. --- ************************************************
  22803. ---
  22804. CREATE VIEW dye_terminator_read AS
  22805. SELECT
  22806. feature_id AS dye_terminator_read_id,
  22807. feature.*
  22808. FROM
  22809. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22810. WHERE cvterm.name = 'dye_terminator_read';
  22811. --- ************************************************
  22812. --- *** relation: pyrosequenced_read ***
  22813. --- *** relation type: VIEW ***
  22814. --- *** ***
  22815. --- *** A read produced by pyrosequencing techno ***
  22816. --- *** logy. ***
  22817. --- ************************************************
  22818. ---
  22819. CREATE VIEW pyrosequenced_read AS
  22820. SELECT
  22821. feature_id AS pyrosequenced_read_id,
  22822. feature.*
  22823. FROM
  22824. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22825. WHERE cvterm.name = 'pyrosequenced_read';
  22826. --- ************************************************
  22827. --- *** relation: ligation_based_read ***
  22828. --- *** relation type: VIEW ***
  22829. --- *** ***
  22830. --- *** A read produced by ligation based sequen ***
  22831. --- *** cing technologies. ***
  22832. --- ************************************************
  22833. ---
  22834. CREATE VIEW ligation_based_read AS
  22835. SELECT
  22836. feature_id AS ligation_based_read_id,
  22837. feature.*
  22838. FROM
  22839. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22840. WHERE cvterm.name = 'ligation_based_read';
  22841. --- ************************************************
  22842. --- *** relation: polymerase_synthesis_read ***
  22843. --- *** relation type: VIEW ***
  22844. --- *** ***
  22845. --- *** A read produced by the polymerase based ***
  22846. --- *** sequence by synthesis method. ***
  22847. --- ************************************************
  22848. ---
  22849. CREATE VIEW polymerase_synthesis_read AS
  22850. SELECT
  22851. feature_id AS polymerase_synthesis_read_id,
  22852. feature.*
  22853. FROM
  22854. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22855. WHERE cvterm.name = 'polymerase_synthesis_read';
  22856. --- ************************************************
  22857. --- *** relation: cis_regulatory_frameshift_element ***
  22858. --- *** relation type: VIEW ***
  22859. --- *** ***
  22860. --- *** A structural region in an RNA molecule w ***
  22861. --- *** hich promotes ribosomal frameshifting of ***
  22862. --- *** cis coding sequence. ***
  22863. --- ************************************************
  22864. ---
  22865. CREATE VIEW cis_regulatory_frameshift_element AS
  22866. SELECT
  22867. feature_id AS cis_regulatory_frameshift_element_id,
  22868. feature.*
  22869. FROM
  22870. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22871. WHERE cvterm.name = 'cis_regulatory_frameshift_element';
  22872. --- ************************************************
  22873. --- *** relation: expressed_sequence_assembly ***
  22874. --- *** relation type: VIEW ***
  22875. --- *** ***
  22876. --- *** A sequence assembly derived from express ***
  22877. --- *** ed sequences. ***
  22878. --- ************************************************
  22879. ---
  22880. CREATE VIEW expressed_sequence_assembly AS
  22881. SELECT
  22882. feature_id AS expressed_sequence_assembly_id,
  22883. feature.*
  22884. FROM
  22885. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22886. WHERE cvterm.name = 'expressed_sequence_assembly';
  22887. --- ************************************************
  22888. --- *** relation: dna_binding_site ***
  22889. --- *** relation type: VIEW ***
  22890. --- *** ***
  22891. --- *** A binding site that, in the molecule, in ***
  22892. --- *** teracts selectively and non-covalently w ***
  22893. --- *** ith DNA. ***
  22894. --- ************************************************
  22895. ---
  22896. CREATE VIEW dna_binding_site AS
  22897. SELECT
  22898. feature_id AS dna_binding_site_id,
  22899. feature.*
  22900. FROM
  22901. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22902. WHERE cvterm.name = 'polypeptide_DNA_contact' OR cvterm.name = 'DNA_binding_site';
  22903. --- ************************************************
  22904. --- *** relation: cryptic_gene ***
  22905. --- *** relation type: VIEW ***
  22906. --- *** ***
  22907. --- *** A gene that is not transcribed under nor ***
  22908. --- *** mal conditions and is not critical to no ***
  22909. --- *** rmal cellular functioning. ***
  22910. --- ************************************************
  22911. ---
  22912. CREATE VIEW cryptic_gene AS
  22913. SELECT
  22914. feature_id AS cryptic_gene_id,
  22915. feature.*
  22916. FROM
  22917. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22918. WHERE cvterm.name = 'cryptogene' OR cvterm.name = 'cryptic_gene';
  22919. --- ************************************************
  22920. --- *** relation: three_prime_race_clone ***
  22921. --- *** relation type: VIEW ***
  22922. --- *** ***
  22923. --- *** A three prime RACE (Rapid Amplification ***
  22924. --- *** of cDNA Ends) clone is a cDNA clone copi ***
  22925. --- *** ed from the 3' end of an mRNA (using a p ***
  22926. --- *** oly-dT primer to capture the polyA tail ***
  22927. --- *** and a gene-specific or randomly primed 5 ***
  22928. --- *** ' primer), and spliced into a vector for ***
  22929. --- *** propagation in a suitable host. ***
  22930. --- ************************************************
  22931. ---
  22932. CREATE VIEW three_prime_race_clone AS
  22933. SELECT
  22934. feature_id AS three_prime_race_clone_id,
  22935. feature.*
  22936. FROM
  22937. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22938. WHERE cvterm.name = 'three_prime_RACE_clone';
  22939. --- ************************************************
  22940. --- *** relation: cassette_pseudogene ***
  22941. --- *** relation type: VIEW ***
  22942. --- *** ***
  22943. --- *** A cassette pseudogene is a kind of gene ***
  22944. --- *** in an inactive form which may recombine ***
  22945. --- *** at a telomeric locus to form a functiona ***
  22946. --- *** l copy. ***
  22947. --- ************************************************
  22948. ---
  22949. CREATE VIEW cassette_pseudogene AS
  22950. SELECT
  22951. feature_id AS cassette_pseudogene_id,
  22952. feature.*
  22953. FROM
  22954. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22955. WHERE cvterm.name = 'cassette_pseudogene';
  22956. --- ************************************************
  22957. --- *** relation: alanine ***
  22958. --- *** relation type: VIEW ***
  22959. --- *** ***
  22960. --- ************************************************
  22961. ---
  22962. CREATE VIEW alanine AS
  22963. SELECT
  22964. feature_id AS alanine_id,
  22965. feature.*
  22966. FROM
  22967. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22968. WHERE cvterm.name = 'alanine';
  22969. --- ************************************************
  22970. --- *** relation: valine ***
  22971. --- *** relation type: VIEW ***
  22972. --- *** ***
  22973. --- ************************************************
  22974. ---
  22975. CREATE VIEW valine AS
  22976. SELECT
  22977. feature_id AS valine_id,
  22978. feature.*
  22979. FROM
  22980. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22981. WHERE cvterm.name = 'valine';
  22982. --- ************************************************
  22983. --- *** relation: leucine ***
  22984. --- *** relation type: VIEW ***
  22985. --- *** ***
  22986. --- ************************************************
  22987. ---
  22988. CREATE VIEW leucine AS
  22989. SELECT
  22990. feature_id AS leucine_id,
  22991. feature.*
  22992. FROM
  22993. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22994. WHERE cvterm.name = 'leucine';
  22995. --- ************************************************
  22996. --- *** relation: isoleucine ***
  22997. --- *** relation type: VIEW ***
  22998. --- *** ***
  22999. --- ************************************************
  23000. ---
  23001. CREATE VIEW isoleucine AS
  23002. SELECT
  23003. feature_id AS isoleucine_id,
  23004. feature.*
  23005. FROM
  23006. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23007. WHERE cvterm.name = 'isoleucine';
  23008. --- ************************************************
  23009. --- *** relation: proline ***
  23010. --- *** relation type: VIEW ***
  23011. --- *** ***
  23012. --- ************************************************
  23013. ---
  23014. CREATE VIEW proline AS
  23015. SELECT
  23016. feature_id AS proline_id,
  23017. feature.*
  23018. FROM
  23019. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23020. WHERE cvterm.name = 'proline';
  23021. --- ************************************************
  23022. --- *** relation: tryptophan ***
  23023. --- *** relation type: VIEW ***
  23024. --- *** ***
  23025. --- ************************************************
  23026. ---
  23027. CREATE VIEW tryptophan AS
  23028. SELECT
  23029. feature_id AS tryptophan_id,
  23030. feature.*
  23031. FROM
  23032. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23033. WHERE cvterm.name = 'tryptophan';
  23034. --- ************************************************
  23035. --- *** relation: phenylalanine ***
  23036. --- *** relation type: VIEW ***
  23037. --- *** ***
  23038. --- ************************************************
  23039. ---
  23040. CREATE VIEW phenylalanine AS
  23041. SELECT
  23042. feature_id AS phenylalanine_id,
  23043. feature.*
  23044. FROM
  23045. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23046. WHERE cvterm.name = 'phenylalanine';
  23047. --- ************************************************
  23048. --- *** relation: methionine ***
  23049. --- *** relation type: VIEW ***
  23050. --- *** ***
  23051. --- ************************************************
  23052. ---
  23053. CREATE VIEW methionine AS
  23054. SELECT
  23055. feature_id AS methionine_id,
  23056. feature.*
  23057. FROM
  23058. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23059. WHERE cvterm.name = 'methionine';
  23060. --- ************************************************
  23061. --- *** relation: glycine ***
  23062. --- *** relation type: VIEW ***
  23063. --- *** ***
  23064. --- ************************************************
  23065. ---
  23066. CREATE VIEW glycine AS
  23067. SELECT
  23068. feature_id AS glycine_id,
  23069. feature.*
  23070. FROM
  23071. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23072. WHERE cvterm.name = 'glycine';
  23073. --- ************************************************
  23074. --- *** relation: serine ***
  23075. --- *** relation type: VIEW ***
  23076. --- *** ***
  23077. --- ************************************************
  23078. ---
  23079. CREATE VIEW serine AS
  23080. SELECT
  23081. feature_id AS serine_id,
  23082. feature.*
  23083. FROM
  23084. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23085. WHERE cvterm.name = 'serine';
  23086. --- ************************************************
  23087. --- *** relation: threonine ***
  23088. --- *** relation type: VIEW ***
  23089. --- *** ***
  23090. --- ************************************************
  23091. ---
  23092. CREATE VIEW threonine AS
  23093. SELECT
  23094. feature_id AS threonine_id,
  23095. feature.*
  23096. FROM
  23097. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23098. WHERE cvterm.name = 'threonine';
  23099. --- ************************************************
  23100. --- *** relation: tyrosine ***
  23101. --- *** relation type: VIEW ***
  23102. --- *** ***
  23103. --- ************************************************
  23104. ---
  23105. CREATE VIEW tyrosine AS
  23106. SELECT
  23107. feature_id AS tyrosine_id,
  23108. feature.*
  23109. FROM
  23110. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23111. WHERE cvterm.name = 'tyrosine';
  23112. --- ************************************************
  23113. --- *** relation: cysteine ***
  23114. --- *** relation type: VIEW ***
  23115. --- *** ***
  23116. --- ************************************************
  23117. ---
  23118. CREATE VIEW cysteine AS
  23119. SELECT
  23120. feature_id AS cysteine_id,
  23121. feature.*
  23122. FROM
  23123. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23124. WHERE cvterm.name = 'cysteine';
  23125. --- ************************************************
  23126. --- *** relation: glutamine ***
  23127. --- *** relation type: VIEW ***
  23128. --- *** ***
  23129. --- ************************************************
  23130. ---
  23131. CREATE VIEW glutamine AS
  23132. SELECT
  23133. feature_id AS glutamine_id,
  23134. feature.*
  23135. FROM
  23136. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23137. WHERE cvterm.name = 'glutamine';
  23138. --- ************************************************
  23139. --- *** relation: asparagine ***
  23140. --- *** relation type: VIEW ***
  23141. --- *** ***
  23142. --- ************************************************
  23143. ---
  23144. CREATE VIEW asparagine AS
  23145. SELECT
  23146. feature_id AS asparagine_id,
  23147. feature.*
  23148. FROM
  23149. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23150. WHERE cvterm.name = 'asparagine';
  23151. --- ************************************************
  23152. --- *** relation: lysine ***
  23153. --- *** relation type: VIEW ***
  23154. --- *** ***
  23155. --- ************************************************
  23156. ---
  23157. CREATE VIEW lysine AS
  23158. SELECT
  23159. feature_id AS lysine_id,
  23160. feature.*
  23161. FROM
  23162. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23163. WHERE cvterm.name = 'lysine';
  23164. --- ************************************************
  23165. --- *** relation: arginine ***
  23166. --- *** relation type: VIEW ***
  23167. --- *** ***
  23168. --- ************************************************
  23169. ---
  23170. CREATE VIEW arginine AS
  23171. SELECT
  23172. feature_id AS arginine_id,
  23173. feature.*
  23174. FROM
  23175. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23176. WHERE cvterm.name = 'arginine';
  23177. --- ************************************************
  23178. --- *** relation: histidine ***
  23179. --- *** relation type: VIEW ***
  23180. --- *** ***
  23181. --- ************************************************
  23182. ---
  23183. CREATE VIEW histidine AS
  23184. SELECT
  23185. feature_id AS histidine_id,
  23186. feature.*
  23187. FROM
  23188. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23189. WHERE cvterm.name = 'histidine';
  23190. --- ************************************************
  23191. --- *** relation: aspartic_acid ***
  23192. --- *** relation type: VIEW ***
  23193. --- *** ***
  23194. --- ************************************************
  23195. ---
  23196. CREATE VIEW aspartic_acid AS
  23197. SELECT
  23198. feature_id AS aspartic_acid_id,
  23199. feature.*
  23200. FROM
  23201. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23202. WHERE cvterm.name = 'aspartic_acid';
  23203. --- ************************************************
  23204. --- *** relation: glutamic_acid ***
  23205. --- *** relation type: VIEW ***
  23206. --- *** ***
  23207. --- ************************************************
  23208. ---
  23209. CREATE VIEW glutamic_acid AS
  23210. SELECT
  23211. feature_id AS glutamic_acid_id,
  23212. feature.*
  23213. FROM
  23214. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23215. WHERE cvterm.name = 'glutamic_acid';
  23216. --- ************************************************
  23217. --- *** relation: selenocysteine ***
  23218. --- *** relation type: VIEW ***
  23219. --- *** ***
  23220. --- ************************************************
  23221. ---
  23222. CREATE VIEW selenocysteine AS
  23223. SELECT
  23224. feature_id AS selenocysteine_id,
  23225. feature.*
  23226. FROM
  23227. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23228. WHERE cvterm.name = 'selenocysteine';
  23229. --- ************************************************
  23230. --- *** relation: pyrrolysine ***
  23231. --- *** relation type: VIEW ***
  23232. --- *** ***
  23233. --- ************************************************
  23234. ---
  23235. CREATE VIEW pyrrolysine AS
  23236. SELECT
  23237. feature_id AS pyrrolysine_id,
  23238. feature.*
  23239. FROM
  23240. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23241. WHERE cvterm.name = 'pyrrolysine';
  23242. --- ************************************************
  23243. --- *** relation: transcribed_cluster ***
  23244. --- *** relation type: VIEW ***
  23245. --- *** ***
  23246. --- *** A region defined by a set of transcribed ***
  23247. --- *** sequences from the same gene or express ***
  23248. --- *** ed pseudogene. ***
  23249. --- ************************************************
  23250. ---
  23251. CREATE VIEW transcribed_cluster AS
  23252. SELECT
  23253. feature_id AS transcribed_cluster_id,
  23254. feature.*
  23255. FROM
  23256. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23257. WHERE cvterm.name = 'unigene_cluster' OR cvterm.name = 'transcribed_cluster';
  23258. --- ************************************************
  23259. --- *** relation: unigene_cluster ***
  23260. --- *** relation type: VIEW ***
  23261. --- *** ***
  23262. --- *** A kind of transcribed_cluster defined by ***
  23263. --- *** a set of transcribed sequences from the ***
  23264. --- *** a unique gene. ***
  23265. --- ************************************************
  23266. ---
  23267. CREATE VIEW unigene_cluster AS
  23268. SELECT
  23269. feature_id AS unigene_cluster_id,
  23270. feature.*
  23271. FROM
  23272. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23273. WHERE cvterm.name = 'unigene_cluster';
  23274. --- ************************************************
  23275. --- *** relation: crispr ***
  23276. --- *** relation type: VIEW ***
  23277. --- *** ***
  23278. --- *** Clustered Palindromic Repeats interspers ***
  23279. --- *** ed with bacteriophage derived spacer seq ***
  23280. --- *** uences. ***
  23281. --- ************************************************
  23282. ---
  23283. CREATE VIEW crispr AS
  23284. SELECT
  23285. feature_id AS crispr_id,
  23286. feature.*
  23287. FROM
  23288. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23289. WHERE cvterm.name = 'CRISPR';
  23290. --- ************************************************
  23291. --- *** relation: insulator_binding_site ***
  23292. --- *** relation type: VIEW ***
  23293. --- *** ***
  23294. --- *** A binding site that, in an insulator reg ***
  23295. --- *** ion of a nucleotide molecule, interacts ***
  23296. --- *** selectively and non-covalently with poly ***
  23297. --- *** peptide residues. ***
  23298. --- ************************************************
  23299. ---
  23300. CREATE VIEW insulator_binding_site AS
  23301. SELECT
  23302. feature_id AS insulator_binding_site_id,
  23303. feature.*
  23304. FROM
  23305. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23306. WHERE cvterm.name = 'insulator_binding_site';
  23307. --- ************************************************
  23308. --- *** relation: enhancer_binding_site ***
  23309. --- *** relation type: VIEW ***
  23310. --- *** ***
  23311. --- *** A binding site that, in the enhancer reg ***
  23312. --- *** ion of a nucleotide molecule, interacts ***
  23313. --- *** selectively and non-covalently with poly ***
  23314. --- *** peptide residues. ***
  23315. --- ************************************************
  23316. ---
  23317. CREATE VIEW enhancer_binding_site AS
  23318. SELECT
  23319. feature_id AS enhancer_binding_site_id,
  23320. feature.*
  23321. FROM
  23322. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23323. WHERE cvterm.name = 'enhancer_binding_site';
  23324. --- ************************************************
  23325. --- *** relation: contig_collection ***
  23326. --- *** relation type: VIEW ***
  23327. --- *** ***
  23328. --- *** A collection of contigs. ***
  23329. --- ************************************************
  23330. ---
  23331. CREATE VIEW contig_collection AS
  23332. SELECT
  23333. feature_id AS contig_collection_id,
  23334. feature.*
  23335. FROM
  23336. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23337. WHERE cvterm.name = 'contig_collection';
  23338. --- ************************************************
  23339. --- *** relation: lincrna ***
  23340. --- *** relation type: VIEW ***
  23341. --- *** ***
  23342. --- *** A multiexonic non-coding RNA transcribed ***
  23343. --- *** by RNA polymerase II. ***
  23344. --- ************************************************
  23345. ---
  23346. CREATE VIEW lincrna AS
  23347. SELECT
  23348. feature_id AS lincrna_id,
  23349. feature.*
  23350. FROM
  23351. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23352. WHERE cvterm.name = 'lincRNA';
  23353. --- ************************************************
  23354. --- *** relation: ust ***
  23355. --- *** relation type: VIEW ***
  23356. --- *** ***
  23357. --- *** An EST spanning part or all of the untra ***
  23358. --- *** nslated regions of a protein-coding tran ***
  23359. --- *** script. ***
  23360. --- ************************************************
  23361. ---
  23362. CREATE VIEW ust AS
  23363. SELECT
  23364. feature_id AS ust_id,
  23365. feature.*
  23366. FROM
  23367. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23368. WHERE cvterm.name = 'three_prime_UST' OR cvterm.name = 'five_prime_UST' OR cvterm.name = 'UST';
  23369. --- ************************************************
  23370. --- *** relation: three_prime_ust ***
  23371. --- *** relation type: VIEW ***
  23372. --- *** ***
  23373. --- *** A UST located in the 3'UTR of a protein- ***
  23374. --- *** coding transcript. ***
  23375. --- ************************************************
  23376. ---
  23377. CREATE VIEW three_prime_ust AS
  23378. SELECT
  23379. feature_id AS three_prime_ust_id,
  23380. feature.*
  23381. FROM
  23382. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23383. WHERE cvterm.name = 'three_prime_UST';
  23384. --- ************************************************
  23385. --- *** relation: five_prime_ust ***
  23386. --- *** relation type: VIEW ***
  23387. --- *** ***
  23388. --- *** An UST located in the 5'UTR of a protein ***
  23389. --- *** -coding transcript. ***
  23390. --- ************************************************
  23391. ---
  23392. CREATE VIEW five_prime_ust AS
  23393. SELECT
  23394. feature_id AS five_prime_ust_id,
  23395. feature.*
  23396. FROM
  23397. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23398. WHERE cvterm.name = 'five_prime_UST';
  23399. --- ************************************************
  23400. --- *** relation: rst ***
  23401. --- *** relation type: VIEW ***
  23402. --- *** ***
  23403. --- *** A tag produced from a single sequencing ***
  23404. --- *** read from a RACE product; typically a fe ***
  23405. --- *** w hundred base pairs long. ***
  23406. --- ************************************************
  23407. ---
  23408. CREATE VIEW rst AS
  23409. SELECT
  23410. feature_id AS rst_id,
  23411. feature.*
  23412. FROM
  23413. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23414. WHERE cvterm.name = 'three_prime_RST' OR cvterm.name = 'five_prime_RST' OR cvterm.name = 'RST';
  23415. --- ************************************************
  23416. --- *** relation: three_prime_rst ***
  23417. --- *** relation type: VIEW ***
  23418. --- *** ***
  23419. --- *** A tag produced from a single sequencing ***
  23420. --- *** read from a 3'-RACE product; typically a ***
  23421. --- *** few hundred base pairs long. ***
  23422. --- ************************************************
  23423. ---
  23424. CREATE VIEW three_prime_rst AS
  23425. SELECT
  23426. feature_id AS three_prime_rst_id,
  23427. feature.*
  23428. FROM
  23429. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23430. WHERE cvterm.name = 'three_prime_RST';
  23431. --- ************************************************
  23432. --- *** relation: five_prime_rst ***
  23433. --- *** relation type: VIEW ***
  23434. --- *** ***
  23435. --- *** A tag produced from a single sequencing ***
  23436. --- *** read from a 5'-RACE product; typically a ***
  23437. --- *** few hundred base pairs long. ***
  23438. --- ************************************************
  23439. ---
  23440. CREATE VIEW five_prime_rst AS
  23441. SELECT
  23442. feature_id AS five_prime_rst_id,
  23443. feature.*
  23444. FROM
  23445. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23446. WHERE cvterm.name = 'five_prime_RST';
  23447. --- ************************************************
  23448. --- *** relation: ust_match ***
  23449. --- *** relation type: VIEW ***
  23450. --- *** ***
  23451. --- *** A match against an UST sequence. ***
  23452. --- ************************************************
  23453. ---
  23454. CREATE VIEW ust_match AS
  23455. SELECT
  23456. feature_id AS ust_match_id,
  23457. feature.*
  23458. FROM
  23459. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23460. WHERE cvterm.name = 'UST_match';
  23461. --- ************************************************
  23462. --- *** relation: rst_match ***
  23463. --- *** relation type: VIEW ***
  23464. --- *** ***
  23465. --- *** A match against an RST sequence. ***
  23466. --- ************************************************
  23467. ---
  23468. CREATE VIEW rst_match AS
  23469. SELECT
  23470. feature_id AS rst_match_id,
  23471. feature.*
  23472. FROM
  23473. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23474. WHERE cvterm.name = 'RST_match';
  23475. --- ************************************************
  23476. --- *** relation: primer_match ***
  23477. --- *** relation type: VIEW ***
  23478. --- *** ***
  23479. --- *** A nucleotide match to a primer sequence. ***
  23480. --- ************************************************
  23481. ---
  23482. CREATE VIEW primer_match AS
  23483. SELECT
  23484. feature_id AS primer_match_id,
  23485. feature.*
  23486. FROM
  23487. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23488. WHERE cvterm.name = 'primer_match';
  23489. --- ************************************************
  23490. --- *** relation: mirna_antiguide ***
  23491. --- *** relation type: VIEW ***
  23492. --- *** ***
  23493. --- *** A region of the pri miRNA that basepairs ***
  23494. --- *** with the guide to form the hairpin. ***
  23495. --- ************************************************
  23496. ---
  23497. CREATE VIEW mirna_antiguide AS
  23498. SELECT
  23499. feature_id AS mirna_antiguide_id,
  23500. feature.*
  23501. FROM
  23502. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23503. WHERE cvterm.name = 'miRNA_antiguide';
  23504. --- ************************************************
  23505. --- *** relation: trans_splice_junction ***
  23506. --- *** relation type: VIEW ***
  23507. --- *** ***
  23508. --- *** The boundary between the spliced leader ***
  23509. --- *** and the first exon of the mRNA. ***
  23510. --- ************************************************
  23511. ---
  23512. CREATE VIEW trans_splice_junction AS
  23513. SELECT
  23514. feature_id AS trans_splice_junction_id,
  23515. feature.*
  23516. FROM
  23517. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23518. WHERE cvterm.name = 'trans_splice_junction';
  23519. --- ************************************************
  23520. --- *** relation: outron ***
  23521. --- *** relation type: VIEW ***
  23522. --- *** ***
  23523. --- *** A region of a primary transcript, that i ***
  23524. --- *** s removed via trans splicing. ***
  23525. --- ************************************************
  23526. ---
  23527. CREATE VIEW outron AS
  23528. SELECT
  23529. feature_id AS outron_id,
  23530. feature.*
  23531. FROM
  23532. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23533. WHERE cvterm.name = 'outron';
  23534. --- ************************************************
  23535. --- *** relation: natural_plasmid ***
  23536. --- *** relation type: VIEW ***
  23537. --- *** ***
  23538. --- *** A plasmid that occurs naturally. ***
  23539. --- ************************************************
  23540. ---
  23541. CREATE VIEW natural_plasmid AS
  23542. SELECT
  23543. feature_id AS natural_plasmid_id,
  23544. feature.*
  23545. FROM
  23546. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23547. WHERE cvterm.name = 'natural_plasmid';
  23548. --- ************************************************
  23549. --- *** relation: gene_trap_construct ***
  23550. --- *** relation type: VIEW ***
  23551. --- *** ***
  23552. --- *** A gene trap construct is a type of engin ***
  23553. --- *** eered plasmid which is designed to integ ***
  23554. --- *** rate into a genome and produce a fusion ***
  23555. --- *** transcript between exons of the gene int ***
  23556. --- *** o which it inserts and a reporter elemen ***
  23557. --- *** t in the construct. Gene traps contain a ***
  23558. --- *** splice acceptor, do not contain promote ***
  23559. --- *** r elements for the reporter, and are mut ***
  23560. --- *** agenic. Gene traps may be bicistronic wi ***
  23561. --- *** th the second cassette containing a prom ***
  23562. --- *** oter driving an a selectable marker. ***
  23563. --- ************************************************
  23564. ---
  23565. CREATE VIEW gene_trap_construct AS
  23566. SELECT
  23567. feature_id AS gene_trap_construct_id,
  23568. feature.*
  23569. FROM
  23570. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23571. WHERE cvterm.name = 'gene_trap_construct';
  23572. --- ************************************************
  23573. --- *** relation: promoter_trap_construct ***
  23574. --- *** relation type: VIEW ***
  23575. --- *** ***
  23576. --- *** A promoter trap construct is a type of e ***
  23577. --- *** ngineered plasmid which is designed to i ***
  23578. --- *** ntegrate into a genome and express a rep ***
  23579. --- *** orter when inserted in close proximity t ***
  23580. --- *** o a promoter element. Promoter traps typ ***
  23581. --- *** ically do not contain promoter elements ***
  23582. --- *** and are mutagenic. ***
  23583. --- ************************************************
  23584. ---
  23585. CREATE VIEW promoter_trap_construct AS
  23586. SELECT
  23587. feature_id AS promoter_trap_construct_id,
  23588. feature.*
  23589. FROM
  23590. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23591. WHERE cvterm.name = 'promoter_trap_construct';
  23592. --- ************************************************
  23593. --- *** relation: enhancer_trap_construct ***
  23594. --- *** relation type: VIEW ***
  23595. --- *** ***
  23596. --- *** An enhancer trap construct is a type of ***
  23597. --- *** engineered plasmid which is designed to ***
  23598. --- *** integrate into a genome and express a re ***
  23599. --- *** porter when the expression from a basic ***
  23600. --- *** minimal promoter is enhanced by genomic ***
  23601. --- *** enhancer elements. Enhancer traps contai ***
  23602. --- *** n promoter elements and are not usually ***
  23603. --- *** mutagenic. ***
  23604. --- ************************************************
  23605. ---
  23606. CREATE VIEW enhancer_trap_construct AS
  23607. SELECT
  23608. feature_id AS enhancer_trap_construct_id,
  23609. feature.*
  23610. FROM
  23611. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23612. WHERE cvterm.name = 'enhancer_trap_construct';
  23613. --- ************************************************
  23614. --- *** relation: pac_end ***
  23615. --- *** relation type: VIEW ***
  23616. --- *** ***
  23617. --- *** A region of sequence from the end of a P ***
  23618. --- *** AC clone that may provide a highly speci ***
  23619. --- *** fic marker. ***
  23620. --- ************************************************
  23621. ---
  23622. CREATE VIEW pac_end AS
  23623. SELECT
  23624. feature_id AS pac_end_id,
  23625. feature.*
  23626. FROM
  23627. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23628. WHERE cvterm.name = 'PAC_end';
  23629. --- ************************************************
  23630. --- *** relation: rapd ***
  23631. --- *** relation type: VIEW ***
  23632. --- *** ***
  23633. --- *** RAPD is a 'PCR product' where a sequence ***
  23634. --- *** variant is identified through the use o ***
  23635. --- *** f PCR with random primers. ***
  23636. --- ************************************************
  23637. ---
  23638. CREATE VIEW rapd AS
  23639. SELECT
  23640. feature_id AS rapd_id,
  23641. feature.*
  23642. FROM
  23643. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23644. WHERE cvterm.name = 'RAPD';
  23645. --- ************************************************
  23646. --- *** relation: shadow_enhancer ***
  23647. --- *** relation type: VIEW ***
  23648. --- *** ***
  23649. --- ************************************************
  23650. ---
  23651. CREATE VIEW shadow_enhancer AS
  23652. SELECT
  23653. feature_id AS shadow_enhancer_id,
  23654. feature.*
  23655. FROM
  23656. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23657. WHERE cvterm.name = 'shadow_enhancer';
  23658. --- ************************************************
  23659. --- *** relation: snv ***
  23660. --- *** relation type: VIEW ***
  23661. --- *** ***
  23662. --- *** SNVs are single nucleotide positions in ***
  23663. --- *** genomic DNA at which different sequence ***
  23664. --- *** alternatives exist. ***
  23665. --- ************************************************
  23666. ---
  23667. CREATE VIEW snv AS
  23668. SELECT
  23669. feature_id AS snv_id,
  23670. feature.*
  23671. FROM
  23672. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23673. 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';
  23674. --- ************************************************
  23675. --- *** relation: x_element_combinatorial_repeat ***
  23676. --- *** relation type: VIEW ***
  23677. --- *** ***
  23678. --- *** An X element combinatorial repeat is a r ***
  23679. --- *** epeat region located between the X eleme ***
  23680. --- *** nt and the telomere or adjacent Y' eleme ***
  23681. --- *** nt. ***
  23682. --- ************************************************
  23683. ---
  23684. CREATE VIEW x_element_combinatorial_repeat AS
  23685. SELECT
  23686. feature_id AS x_element_combinatorial_repeat_id,
  23687. feature.*
  23688. FROM
  23689. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23690. WHERE cvterm.name = 'X_element_combinatorial_repeat';
  23691. --- ************************************************
  23692. --- *** relation: y_prime_element ***
  23693. --- *** relation type: VIEW ***
  23694. --- *** ***
  23695. --- *** A Y' element is a repeat region (SO:0000 ***
  23696. --- *** 657) located adjacent to telomeric repea ***
  23697. --- *** ts or X element combinatorial repeats, e ***
  23698. --- *** ither as a single copy or tandem repeat ***
  23699. --- *** of two to four copies. ***
  23700. --- ************************************************
  23701. ---
  23702. CREATE VIEW y_prime_element AS
  23703. SELECT
  23704. feature_id AS y_prime_element_id,
  23705. feature.*
  23706. FROM
  23707. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23708. WHERE cvterm.name = 'Y_prime_element';
  23709. --- ************************************************
  23710. --- *** relation: standard_draft ***
  23711. --- *** relation type: VIEW ***
  23712. --- *** ***
  23713. --- *** The status of a whole genome sequence, w ***
  23714. --- *** here the data is minimally filtered or u ***
  23715. --- *** n-filtered, from any number of sequencin ***
  23716. --- *** g platforms, and is assembled into conti ***
  23717. --- *** gs. Genome sequence of this quality may ***
  23718. --- *** harbour regions of poor quality and can ***
  23719. --- *** be relatively incomplete. ***
  23720. --- ************************************************
  23721. ---
  23722. CREATE VIEW standard_draft AS
  23723. SELECT
  23724. feature_id AS standard_draft_id,
  23725. feature.*
  23726. FROM
  23727. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23728. WHERE cvterm.name = 'standard_draft';
  23729. --- ************************************************
  23730. --- *** relation: high_quality_draft ***
  23731. --- *** relation type: VIEW ***
  23732. --- *** ***
  23733. --- *** The status of a whole genome sequence, w ***
  23734. --- *** here overall coverage represents at leas ***
  23735. --- *** t 90 percent of the genome. ***
  23736. --- ************************************************
  23737. ---
  23738. CREATE VIEW high_quality_draft AS
  23739. SELECT
  23740. feature_id AS high_quality_draft_id,
  23741. feature.*
  23742. FROM
  23743. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23744. WHERE cvterm.name = 'high_quality_draft';
  23745. --- ************************************************
  23746. --- *** relation: improved_high_quality_draft ***
  23747. --- *** relation type: VIEW ***
  23748. --- *** ***
  23749. --- *** The status of a whole genome sequence, w ***
  23750. --- *** here additional work has been performed, ***
  23751. --- *** using either manual or automated method ***
  23752. --- *** s, such as gap resolution. ***
  23753. --- ************************************************
  23754. ---
  23755. CREATE VIEW improved_high_quality_draft AS
  23756. SELECT
  23757. feature_id AS improved_high_quality_draft_id,
  23758. feature.*
  23759. FROM
  23760. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23761. WHERE cvterm.name = 'improved_high_quality_draft';
  23762. --- ************************************************
  23763. --- *** relation: annotation_directed_improved_draft ***
  23764. --- *** relation type: VIEW ***
  23765. --- *** ***
  23766. --- *** The status of a whole genome sequence,wh ***
  23767. --- *** ere annotation, and verification of codi ***
  23768. --- *** ng regions has occurred. ***
  23769. --- ************************************************
  23770. ---
  23771. CREATE VIEW annotation_directed_improved_draft AS
  23772. SELECT
  23773. feature_id AS annotation_directed_improved_draft_id,
  23774. feature.*
  23775. FROM
  23776. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23777. WHERE cvterm.name = 'annotation_directed_improved_draft';
  23778. --- ************************************************
  23779. --- *** relation: noncontiguous_finished ***
  23780. --- *** relation type: VIEW ***
  23781. --- *** ***
  23782. --- *** The status of a whole genome sequence, w ***
  23783. --- *** here the assembly is high quality, closu ***
  23784. --- *** re approaches have been successful for m ***
  23785. --- *** ost gaps, misassemblies and low quality ***
  23786. --- *** regions. ***
  23787. --- ************************************************
  23788. ---
  23789. CREATE VIEW noncontiguous_finished AS
  23790. SELECT
  23791. feature_id AS noncontiguous_finished_id,
  23792. feature.*
  23793. FROM
  23794. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23795. WHERE cvterm.name = 'noncontiguous_finished';
  23796. --- ************************************************
  23797. --- *** relation: finished_genome ***
  23798. --- *** relation type: VIEW ***
  23799. --- *** ***
  23800. --- *** The status of a whole genome sequence, w ***
  23801. --- *** ith less than 1 error per 100,000 base p ***
  23802. --- *** airs. ***
  23803. --- ************************************************
  23804. ---
  23805. CREATE VIEW finished_genome AS
  23806. SELECT
  23807. feature_id AS finished_genome_id,
  23808. feature.*
  23809. FROM
  23810. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23811. WHERE cvterm.name = 'finished_genome';
  23812. --- ************************************************
  23813. --- *** relation: intronic_regulatory_region ***
  23814. --- *** relation type: VIEW ***
  23815. --- *** ***
  23816. --- *** A regulatory region that is part of an i ***
  23817. --- *** ntron. ***
  23818. --- ************************************************
  23819. ---
  23820. CREATE VIEW intronic_regulatory_region AS
  23821. SELECT
  23822. feature_id AS intronic_regulatory_region_id,
  23823. feature.*
  23824. FROM
  23825. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23826. WHERE cvterm.name = 'intronic_regulatory_region';
  23827. --- ************************************************
  23828. --- *** relation: centromere_dna_element_i ***
  23829. --- *** relation type: VIEW ***
  23830. --- *** ***
  23831. --- *** A centromere DNA Element I (CDEI) is a c ***
  23832. --- *** onserved region, part of the centromere, ***
  23833. --- *** consisting of a consensus region compos ***
  23834. --- *** ed of 8-11bp which enables binding by th ***
  23835. --- *** e centromere binding factor 1(Cbf1p). ***
  23836. --- ************************************************
  23837. ---
  23838. CREATE VIEW centromere_dna_element_i AS
  23839. SELECT
  23840. feature_id AS centromere_dna_element_i_id,
  23841. feature.*
  23842. FROM
  23843. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23844. WHERE cvterm.name = 'centromere_DNA_Element_I';
  23845. --- ************************************************
  23846. --- *** relation: centromere_dna_element_ii ***
  23847. --- *** relation type: VIEW ***
  23848. --- *** ***
  23849. --- *** A centromere DNA Element II (CDEII) is p ***
  23850. --- *** art a conserved region of the centromere ***
  23851. --- *** , consisting of a consensus region that ***
  23852. --- *** is AT-rich and ~ 75-100 bp in length. ***
  23853. --- ************************************************
  23854. ---
  23855. CREATE VIEW centromere_dna_element_ii AS
  23856. SELECT
  23857. feature_id AS centromere_dna_element_ii_id,
  23858. feature.*
  23859. FROM
  23860. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23861. WHERE cvterm.name = 'centromere_DNA_Element_II';
  23862. --- ************************************************
  23863. --- *** relation: centromere_dna_element_iii ***
  23864. --- *** relation type: VIEW ***
  23865. --- *** ***
  23866. --- *** A centromere DNA Element I (CDEI) is a c ***
  23867. --- *** onserved region, part of the centromere, ***
  23868. --- *** consisting of a consensus region that c ***
  23869. --- *** onsists of a 25-bp which enables binding ***
  23870. --- *** by the centromere DNA binding factor 3 ***
  23871. --- *** (CBF3) complex. ***
  23872. --- ************************************************
  23873. ---
  23874. CREATE VIEW centromere_dna_element_iii AS
  23875. SELECT
  23876. feature_id AS centromere_dna_element_iii_id,
  23877. feature.*
  23878. FROM
  23879. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23880. WHERE cvterm.name = 'centromere_DNA_Element_III';
  23881. --- ************************************************
  23882. --- *** relation: telomeric_repeat ***
  23883. --- *** relation type: VIEW ***
  23884. --- *** ***
  23885. --- *** The telomeric repeat is a repeat region, ***
  23886. --- *** part of the chromosome, which in yeast, ***
  23887. --- *** is a G-rich terminal sequence of the fo ***
  23888. --- *** rm (TG(1-3))n or more precisely ((TG)(1- ***
  23889. --- *** 6)TG(2-3))n. ***
  23890. --- ************************************************
  23891. ---
  23892. CREATE VIEW telomeric_repeat AS
  23893. SELECT
  23894. feature_id AS telomeric_repeat_id,
  23895. feature.*
  23896. FROM
  23897. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23898. WHERE cvterm.name = 'telomeric_repeat';
  23899. --- ************************************************
  23900. --- *** relation: x_element ***
  23901. --- *** relation type: VIEW ***
  23902. --- *** ***
  23903. --- *** The X element is a conserved region, of ***
  23904. --- *** the telomere, of ~475 bp that contains a ***
  23905. --- *** n ARS sequence and in most cases an Abf1 ***
  23906. --- *** p binding site. ***
  23907. --- ************************************************
  23908. ---
  23909. CREATE VIEW x_element AS
  23910. SELECT
  23911. feature_id AS x_element_id,
  23912. feature.*
  23913. FROM
  23914. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23915. WHERE cvterm.name = 'X_element';
  23916. --- ************************************************
  23917. --- *** relation: yac_end ***
  23918. --- *** relation type: VIEW ***
  23919. --- *** ***
  23920. --- *** A region of sequence from the end of a Y ***
  23921. --- *** AC clone that may provide a highly speci ***
  23922. --- *** fic marker. ***
  23923. --- ************************************************
  23924. ---
  23925. CREATE VIEW yac_end AS
  23926. SELECT
  23927. feature_id AS yac_end_id,
  23928. feature.*
  23929. FROM
  23930. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23931. WHERE cvterm.name = 'YAC_end';
  23932. --- ************************************************
  23933. --- *** relation: whole_genome_sequence_status ***
  23934. --- *** relation type: VIEW ***
  23935. --- *** ***
  23936. --- *** The status of whole genome sequence. ***
  23937. --- ************************************************
  23938. ---
  23939. CREATE VIEW whole_genome_sequence_status AS
  23940. SELECT
  23941. feature_id AS whole_genome_sequence_status_id,
  23942. feature.*
  23943. FROM
  23944. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23945. 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';
  23946. --- ************************************************
  23947. --- *** relation: heritable_phenotypic_marker ***
  23948. --- *** relation type: VIEW ***
  23949. --- *** ***
  23950. --- *** A biological_region characterized as a s ***
  23951. --- *** ingle heritable trait in a phenotype scr ***
  23952. --- *** een. The heritable phenotype may be mapp ***
  23953. --- *** ed to a chromosome but generally has not ***
  23954. --- *** been characterized to a specific gene l ***
  23955. --- *** ocus. ***
  23956. --- ************************************************
  23957. ---
  23958. CREATE VIEW heritable_phenotypic_marker AS
  23959. SELECT
  23960. feature_id AS heritable_phenotypic_marker_id,
  23961. feature.*
  23962. FROM
  23963. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23964. WHERE cvterm.name = 'heritable_phenotypic_marker';
  23965. --- ************************************************
  23966. --- *** relation: peptide_collection ***
  23967. --- *** relation type: VIEW ***
  23968. --- *** ***
  23969. --- *** A collection of peptide sequences. ***
  23970. --- ************************************************
  23971. ---
  23972. CREATE VIEW peptide_collection AS
  23973. SELECT
  23974. feature_id AS peptide_collection_id,
  23975. feature.*
  23976. FROM
  23977. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23978. WHERE cvterm.name = 'peptide_collection';
  23979. --- ************************************************
  23980. --- *** relation: high_identity_region ***
  23981. --- *** relation type: VIEW ***
  23982. --- *** ***
  23983. --- *** An experimental feature with high sequen ***
  23984. --- *** ce identity to another sequence. ***
  23985. --- ************************************************
  23986. ---
  23987. CREATE VIEW high_identity_region AS
  23988. SELECT
  23989. feature_id AS high_identity_region_id,
  23990. feature.*
  23991. FROM
  23992. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23993. WHERE cvterm.name = 'high_identity_region';
  23994. --- ************************************************
  23995. --- *** relation: processed_transcript ***
  23996. --- *** relation type: VIEW ***
  23997. --- *** ***
  23998. --- *** A transcript for which no open reading f ***
  23999. --- *** rame has been identified and for which n ***
  24000. --- *** o other function has been determined. ***
  24001. --- ************************************************
  24002. ---
  24003. CREATE VIEW processed_transcript AS
  24004. SELECT
  24005. feature_id AS processed_transcript_id,
  24006. feature.*
  24007. FROM
  24008. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24009. WHERE cvterm.name = 'processed_transcript';
  24010. --- ************************************************
  24011. --- *** relation: assortment_derived_variation ***
  24012. --- *** relation type: VIEW ***
  24013. --- *** ***
  24014. --- *** A chromosome variation derived from an e ***
  24015. --- *** vent during meiosis. ***
  24016. --- ************************************************
  24017. ---
  24018. CREATE VIEW assortment_derived_variation AS
  24019. SELECT
  24020. feature_id AS assortment_derived_variation_id,
  24021. feature.*
  24022. FROM
  24023. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24024. 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';
  24025. --- ************************************************
  24026. --- *** relation: reference_genome ***
  24027. --- *** relation type: VIEW ***
  24028. --- *** ***
  24029. --- *** A collection of sequences (often chromos ***
  24030. --- *** omes) taken as the standard for a given ***
  24031. --- *** organism and genome assembly. ***
  24032. --- ************************************************
  24033. ---
  24034. CREATE VIEW reference_genome AS
  24035. SELECT
  24036. feature_id AS reference_genome_id,
  24037. feature.*
  24038. FROM
  24039. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24040. WHERE cvterm.name = 'reference_genome';
  24041. --- ************************************************
  24042. --- *** relation: variant_genome ***
  24043. --- *** relation type: VIEW ***
  24044. --- *** ***
  24045. --- *** A collection of sequences (often chromos ***
  24046. --- *** omes) of an individual. ***
  24047. --- ************************************************
  24048. ---
  24049. CREATE VIEW variant_genome AS
  24050. SELECT
  24051. feature_id AS variant_genome_id,
  24052. feature.*
  24053. FROM
  24054. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24055. WHERE cvterm.name = 'chromosomally_aberrant_genome' OR cvterm.name = 'variant_genome';
  24056. --- ************************************************
  24057. --- *** relation: variant_collection ***
  24058. --- *** relation type: VIEW ***
  24059. --- *** ***
  24060. --- *** A collection of one or more sequences of ***
  24061. --- *** an individual. ***
  24062. --- ************************************************
  24063. ---
  24064. CREATE VIEW variant_collection AS
  24065. SELECT
  24066. feature_id AS variant_collection_id,
  24067. feature.*
  24068. FROM
  24069. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24070. 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';
  24071. --- ************************************************
  24072. --- *** relation: alteration_attribute ***
  24073. --- *** relation type: VIEW ***
  24074. --- *** ***
  24075. --- ************************************************
  24076. ---
  24077. CREATE VIEW alteration_attribute AS
  24078. SELECT
  24079. feature_id AS alteration_attribute_id,
  24080. feature.*
  24081. FROM
  24082. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24083. 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';
  24084. --- ************************************************
  24085. --- *** relation: chromosomal_variation_attribute ***
  24086. --- *** relation type: VIEW ***
  24087. --- *** ***
  24088. --- ************************************************
  24089. ---
  24090. CREATE VIEW chromosomal_variation_attribute AS
  24091. SELECT
  24092. feature_id AS chromosomal_variation_attribute_id,
  24093. feature.*
  24094. FROM
  24095. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24096. WHERE cvterm.name = 'intrachromosomal' OR cvterm.name = 'interchromosomal' OR cvterm.name = 'chromosomal_variation_attribute';
  24097. --- ************************************************
  24098. --- *** relation: intrachromosomal ***
  24099. --- *** relation type: VIEW ***
  24100. --- *** ***
  24101. --- ************************************************
  24102. ---
  24103. CREATE VIEW intrachromosomal AS
  24104. SELECT
  24105. feature_id AS intrachromosomal_id,
  24106. feature.*
  24107. FROM
  24108. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24109. WHERE cvterm.name = 'intrachromosomal';
  24110. --- ************************************************
  24111. --- *** relation: interchromosomal ***
  24112. --- *** relation type: VIEW ***
  24113. --- *** ***
  24114. --- ************************************************
  24115. ---
  24116. CREATE VIEW interchromosomal AS
  24117. SELECT
  24118. feature_id AS interchromosomal_id,
  24119. feature.*
  24120. FROM
  24121. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24122. WHERE cvterm.name = 'interchromosomal';
  24123. --- ************************************************
  24124. --- *** relation: insertion_attribute ***
  24125. --- *** relation type: VIEW ***
  24126. --- *** ***
  24127. --- *** A quality of a chromosomal insertion,. ***
  24128. --- ************************************************
  24129. ---
  24130. CREATE VIEW insertion_attribute AS
  24131. SELECT
  24132. feature_id AS insertion_attribute_id,
  24133. feature.*
  24134. FROM
  24135. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24136. WHERE cvterm.name = 'tandem' OR cvterm.name = 'direct' OR cvterm.name = 'inverted' OR cvterm.name = 'insertion_attribute';
  24137. --- ************************************************
  24138. --- *** relation: tandem ***
  24139. --- *** relation type: VIEW ***
  24140. --- *** ***
  24141. --- ************************************************
  24142. ---
  24143. CREATE VIEW tandem AS
  24144. SELECT
  24145. feature_id AS tandem_id,
  24146. feature.*
  24147. FROM
  24148. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24149. WHERE cvterm.name = 'tandem';
  24150. --- ************************************************
  24151. --- *** relation: direct ***
  24152. --- *** relation type: VIEW ***
  24153. --- *** ***
  24154. --- *** A quality of an insertion where the inse ***
  24155. --- *** rt is not in a cytologically inverted or ***
  24156. --- *** ientation. ***
  24157. --- ************************************************
  24158. ---
  24159. CREATE VIEW direct AS
  24160. SELECT
  24161. feature_id AS direct_id,
  24162. feature.*
  24163. FROM
  24164. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24165. WHERE cvterm.name = 'direct';
  24166. --- ************************************************
  24167. --- *** relation: inverted ***
  24168. --- *** relation type: VIEW ***
  24169. --- *** ***
  24170. --- *** A quality of an insertion where the inse ***
  24171. --- *** rt is in a cytologically inverted orient ***
  24172. --- *** ation. ***
  24173. --- ************************************************
  24174. ---
  24175. CREATE VIEW inverted AS
  24176. SELECT
  24177. feature_id AS inverted_id,
  24178. feature.*
  24179. FROM
  24180. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24181. WHERE cvterm.name = 'inverted';
  24182. --- ************************************************
  24183. --- *** relation: free ***
  24184. --- *** relation type: VIEW ***
  24185. --- *** ***
  24186. --- *** The quality of a duplication where the n ***
  24187. --- *** ew region exists independently of the or ***
  24188. --- *** iginal. ***
  24189. --- ************************************************
  24190. ---
  24191. CREATE VIEW free AS
  24192. SELECT
  24193. feature_id AS free_id,
  24194. feature.*
  24195. FROM
  24196. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24197. WHERE cvterm.name = 'free';
  24198. --- ************************************************
  24199. --- *** relation: inversion_attribute ***
  24200. --- *** relation type: VIEW ***
  24201. --- *** ***
  24202. --- ************************************************
  24203. ---
  24204. CREATE VIEW inversion_attribute AS
  24205. SELECT
  24206. feature_id AS inversion_attribute_id,
  24207. feature.*
  24208. FROM
  24209. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24210. WHERE cvterm.name = 'pericentric' OR cvterm.name = 'paracentric' OR cvterm.name = 'inversion_attribute';
  24211. --- ************************************************
  24212. --- *** relation: pericentric ***
  24213. --- *** relation type: VIEW ***
  24214. --- *** ***
  24215. --- ************************************************
  24216. ---
  24217. CREATE VIEW pericentric AS
  24218. SELECT
  24219. feature_id AS pericentric_id,
  24220. feature.*
  24221. FROM
  24222. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24223. WHERE cvterm.name = 'pericentric';
  24224. --- ************************************************
  24225. --- *** relation: paracentric ***
  24226. --- *** relation type: VIEW ***
  24227. --- *** ***
  24228. --- ************************************************
  24229. ---
  24230. CREATE VIEW paracentric AS
  24231. SELECT
  24232. feature_id AS paracentric_id,
  24233. feature.*
  24234. FROM
  24235. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24236. WHERE cvterm.name = 'paracentric';
  24237. --- ************************************************
  24238. --- *** relation: translocaton_attribute ***
  24239. --- *** relation type: VIEW ***
  24240. --- *** ***
  24241. --- ************************************************
  24242. ---
  24243. CREATE VIEW translocaton_attribute AS
  24244. SELECT
  24245. feature_id AS translocaton_attribute_id,
  24246. feature.*
  24247. FROM
  24248. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24249. WHERE cvterm.name = 'reciprocal' OR cvterm.name = 'insertional' OR cvterm.name = 'translocaton_attribute';
  24250. --- ************************************************
  24251. --- *** relation: reciprocal ***
  24252. --- *** relation type: VIEW ***
  24253. --- *** ***
  24254. --- ************************************************
  24255. ---
  24256. CREATE VIEW reciprocal AS
  24257. SELECT
  24258. feature_id AS reciprocal_id,
  24259. feature.*
  24260. FROM
  24261. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24262. WHERE cvterm.name = 'reciprocal';
  24263. --- ************************************************
  24264. --- *** relation: insertional ***
  24265. --- *** relation type: VIEW ***
  24266. --- *** ***
  24267. --- ************************************************
  24268. ---
  24269. CREATE VIEW insertional AS
  24270. SELECT
  24271. feature_id AS insertional_id,
  24272. feature.*
  24273. FROM
  24274. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24275. WHERE cvterm.name = 'insertional';
  24276. --- ************************************************
  24277. --- *** relation: duplication_attribute ***
  24278. --- *** relation type: VIEW ***
  24279. --- *** ***
  24280. --- ************************************************
  24281. ---
  24282. CREATE VIEW duplication_attribute AS
  24283. SELECT
  24284. feature_id AS duplication_attribute_id,
  24285. feature.*
  24286. FROM
  24287. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24288. WHERE cvterm.name = 'free' OR cvterm.name = 'duplication_attribute';
  24289. --- ************************************************
  24290. --- *** relation: chromosomally_aberrant_genome ***
  24291. --- *** relation type: VIEW ***
  24292. --- *** ***
  24293. --- ************************************************
  24294. ---
  24295. CREATE VIEW chromosomally_aberrant_genome AS
  24296. SELECT
  24297. feature_id AS chromosomally_aberrant_genome_id,
  24298. feature.*
  24299. FROM
  24300. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24301. WHERE cvterm.name = 'chromosomally_aberrant_genome';
  24302. --- ************************************************
  24303. --- *** relation: assembly_error_correction ***
  24304. --- *** relation type: VIEW ***
  24305. --- *** ***
  24306. --- *** A region of sequence where the final nuc ***
  24307. --- *** leotide assignment differs from the orig ***
  24308. --- *** inal assembly due to an improvement that ***
  24309. --- *** replaces a mistake. ***
  24310. --- ************************************************
  24311. ---
  24312. CREATE VIEW assembly_error_correction AS
  24313. SELECT
  24314. feature_id AS assembly_error_correction_id,
  24315. feature.*
  24316. FROM
  24317. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24318. WHERE cvterm.name = 'assembly_error_correction';
  24319. --- ************************************************
  24320. --- *** relation: base_call_error_correction ***
  24321. --- *** relation type: VIEW ***
  24322. --- *** ***
  24323. --- *** A region of sequence where the final nuc ***
  24324. --- *** leotide assignment is different from tha ***
  24325. --- *** t given by the base caller due to an imp ***
  24326. --- *** rovement that replaces a mistake. ***
  24327. --- ************************************************
  24328. ---
  24329. CREATE VIEW base_call_error_correction AS
  24330. SELECT
  24331. feature_id AS base_call_error_correction_id,
  24332. feature.*
  24333. FROM
  24334. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24335. WHERE cvterm.name = 'base_call_error_correction';
  24336. --- ************************************************
  24337. --- *** relation: peptide_localization_signal ***
  24338. --- *** relation type: VIEW ***
  24339. --- *** ***
  24340. --- *** A region of peptide sequence used to tar ***
  24341. --- *** get the polypeptide molecule to a specif ***
  24342. --- *** ic organelle. ***
  24343. --- ************************************************
  24344. ---
  24345. CREATE VIEW peptide_localization_signal AS
  24346. SELECT
  24347. feature_id AS peptide_localization_signal_id,
  24348. feature.*
  24349. FROM
  24350. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24351. 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';
  24352. --- ************************************************
  24353. --- *** relation: nuclear_localization_signal ***
  24354. --- *** relation type: VIEW ***
  24355. --- *** ***
  24356. --- *** A polypeptide region that targets a poly ***
  24357. --- *** peptide to the nucleus. ***
  24358. --- ************************************************
  24359. ---
  24360. CREATE VIEW nuclear_localization_signal AS
  24361. SELECT
  24362. feature_id AS nuclear_localization_signal_id,
  24363. feature.*
  24364. FROM
  24365. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24366. WHERE cvterm.name = 'nuclear_localization_signal';
  24367. --- ************************************************
  24368. --- *** relation: endosomal_localization_signal ***
  24369. --- *** relation type: VIEW ***
  24370. --- *** ***
  24371. --- *** A polypeptide region that targets a poly ***
  24372. --- *** peptide to the endosome. ***
  24373. --- ************************************************
  24374. ---
  24375. CREATE VIEW endosomal_localization_signal AS
  24376. SELECT
  24377. feature_id AS endosomal_localization_signal_id,
  24378. feature.*
  24379. FROM
  24380. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24381. WHERE cvterm.name = 'endosomal_localization_signal';
  24382. --- ************************************************
  24383. --- *** relation: lysosomal_localization_signal ***
  24384. --- *** relation type: VIEW ***
  24385. --- *** ***
  24386. --- *** A polypeptide region that targets a poly ***
  24387. --- *** peptide to the lysosome. ***
  24388. --- ************************************************
  24389. ---
  24390. CREATE VIEW lysosomal_localization_signal AS
  24391. SELECT
  24392. feature_id AS lysosomal_localization_signal_id,
  24393. feature.*
  24394. FROM
  24395. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24396. WHERE cvterm.name = 'lysosomal_localization_signal';
  24397. --- ************************************************
  24398. --- *** relation: nuclear_export_signal ***
  24399. --- *** relation type: VIEW ***
  24400. --- *** ***
  24401. --- *** A polypeptide region that targets a poly ***
  24402. --- *** peptide to he cytoplasm. ***
  24403. --- ************************************************
  24404. ---
  24405. CREATE VIEW nuclear_export_signal AS
  24406. SELECT
  24407. feature_id AS nuclear_export_signal_id,
  24408. feature.*
  24409. FROM
  24410. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24411. WHERE cvterm.name = 'nuclear_export_signal';
  24412. --- ************************************************
  24413. --- *** relation: recombination_signal_sequence ***
  24414. --- *** relation type: VIEW ***
  24415. --- *** ***
  24416. --- *** A region recognized by a recombinase. ***
  24417. --- ************************************************
  24418. ---
  24419. CREATE VIEW recombination_signal_sequence AS
  24420. SELECT
  24421. feature_id AS recombination_signal_sequence_id,
  24422. feature.*
  24423. FROM
  24424. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24425. WHERE cvterm.name = 'recombination_signal_sequence';
  24426. --- ************************************************
  24427. --- *** relation: cryptic_splice_site ***
  24428. --- *** relation type: VIEW ***
  24429. --- *** ***
  24430. --- *** A splice site that is in part of the tra ***
  24431. --- *** nscript not normally spliced. They occur ***
  24432. --- *** via mutation or transcriptional error. ***
  24433. --- ************************************************
  24434. ---
  24435. CREATE VIEW cryptic_splice_site AS
  24436. SELECT
  24437. feature_id AS cryptic_splice_site_id,
  24438. feature.*
  24439. FROM
  24440. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24441. WHERE cvterm.name = 'cryptic_splice_site';
  24442. --- ************************************************
  24443. --- *** relation: nuclear_rim_localization_signal ***
  24444. --- *** relation type: VIEW ***
  24445. --- *** ***
  24446. --- *** A polypeptide region that targets a poly ***
  24447. --- *** peptide to the nuclear rim. ***
  24448. --- ************************************************
  24449. ---
  24450. CREATE VIEW nuclear_rim_localization_signal AS
  24451. SELECT
  24452. feature_id AS nuclear_rim_localization_signal_id,
  24453. feature.*
  24454. FROM
  24455. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24456. WHERE cvterm.name = 'nuclear_rim_localization_signal';
  24457. --- ************************************************
  24458. --- *** relation: p_element ***
  24459. --- *** relation type: VIEW ***
  24460. --- *** ***
  24461. --- *** A P_element is a DNA transposon responsi ***
  24462. --- *** ble for hybrid dysgenesis. ***
  24463. --- ************************************************
  24464. ---
  24465. CREATE VIEW p_element AS
  24466. SELECT
  24467. feature_id AS p_element_id,
  24468. feature.*
  24469. FROM
  24470. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24471. WHERE cvterm.name = 'p_element';
  24472. --- ************************************************
  24473. --- *** relation: functional_variant ***
  24474. --- *** relation type: VIEW ***
  24475. --- *** ***
  24476. --- *** A sequence variant in which the function ***
  24477. --- *** of a gene product is altered with respe ***
  24478. --- *** ct to a reference. ***
  24479. --- ************************************************
  24480. ---
  24481. CREATE VIEW functional_variant AS
  24482. SELECT
  24483. feature_id AS functional_variant_id,
  24484. feature.*
  24485. FROM
  24486. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24487. 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';
  24488. --- ************************************************
  24489. --- *** relation: structural_variant ***
  24490. --- *** relation type: VIEW ***
  24491. --- *** ***
  24492. --- *** A sequence variant that changes one or m ***
  24493. --- *** ore sequence features. ***
  24494. --- ************************************************
  24495. ---
  24496. CREATE VIEW structural_variant AS
  24497. SELECT
  24498. feature_id AS structural_variant_id,
  24499. feature.*
  24500. FROM
  24501. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24502. 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';
  24503. --- ************************************************
  24504. --- *** relation: transcript_function_variant ***
  24505. --- *** relation type: VIEW ***
  24506. --- *** ***
  24507. --- *** A sequence variant which alters the func ***
  24508. --- *** tioning of a transcript with respect to ***
  24509. --- *** a reference sequence. ***
  24510. --- ************************************************
  24511. ---
  24512. CREATE VIEW transcript_function_variant AS
  24513. SELECT
  24514. feature_id AS transcript_function_variant_id,
  24515. feature.*
  24516. FROM
  24517. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24518. 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';
  24519. --- ************************************************
  24520. --- *** relation: translational_product_function_variant ***
  24521. --- *** relation type: VIEW ***
  24522. --- *** ***
  24523. --- *** A sequence variant that affects the func ***
  24524. --- *** tioning of a translational product with ***
  24525. --- *** respect to a reference sequence. ***
  24526. --- ************************************************
  24527. ---
  24528. CREATE VIEW translational_product_function_variant AS
  24529. SELECT
  24530. feature_id AS translational_product_function_variant_id,
  24531. feature.*
  24532. FROM
  24533. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24534. 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';
  24535. --- ************************************************
  24536. --- *** relation: level_of_transcript_variant ***
  24537. --- *** relation type: VIEW ***
  24538. --- *** ***
  24539. --- *** A sequence variant which alters the leve ***
  24540. --- *** l of a transcript. ***
  24541. --- ************************************************
  24542. ---
  24543. CREATE VIEW level_of_transcript_variant AS
  24544. SELECT
  24545. feature_id AS level_of_transcript_variant_id,
  24546. feature.*
  24547. FROM
  24548. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24549. WHERE cvterm.name = 'decreased_transcript_level_variant' OR cvterm.name = 'increased_transcript_level_variant' OR cvterm.name = 'level_of_transcript_variant';
  24550. --- ************************************************
  24551. --- *** relation: decreased_transcript_level_variant ***
  24552. --- *** relation type: VIEW ***
  24553. --- *** ***
  24554. --- *** A sequence variant that increases the le ***
  24555. --- *** vel of mature, spliced and processed RNA ***
  24556. --- *** with respect to a reference sequence. ***
  24557. --- ************************************************
  24558. ---
  24559. CREATE VIEW decreased_transcript_level_variant AS
  24560. SELECT
  24561. feature_id AS decreased_transcript_level_variant_id,
  24562. feature.*
  24563. FROM
  24564. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24565. WHERE cvterm.name = 'decreased_transcript_level_variant';
  24566. --- ************************************************
  24567. --- *** relation: increased_transcript_level_variant ***
  24568. --- *** relation type: VIEW ***
  24569. --- *** ***
  24570. --- *** A sequence variant that increases the le ***
  24571. --- *** vel of mature, spliced and processed RNA ***
  24572. --- *** with respect to a reference sequence. ***
  24573. --- ************************************************
  24574. ---
  24575. CREATE VIEW increased_transcript_level_variant AS
  24576. SELECT
  24577. feature_id AS increased_transcript_level_variant_id,
  24578. feature.*
  24579. FROM
  24580. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24581. WHERE cvterm.name = 'increased_transcript_level_variant';
  24582. --- ************************************************
  24583. --- *** relation: transcript_processing_variant ***
  24584. --- *** relation type: VIEW ***
  24585. --- *** ***
  24586. --- *** A sequence variant that affects the post ***
  24587. --- *** transcriptional processing of a transcr ***
  24588. --- *** ipt with respect to a reference sequence ***
  24589. --- *** . ***
  24590. --- ************************************************
  24591. ---
  24592. CREATE VIEW transcript_processing_variant AS
  24593. SELECT
  24594. feature_id AS transcript_processing_variant_id,
  24595. feature.*
  24596. FROM
  24597. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24598. 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';
  24599. --- ************************************************
  24600. --- *** relation: editing_variant ***
  24601. --- *** relation type: VIEW ***
  24602. --- *** ***
  24603. --- *** A transcript processing variant whereby ***
  24604. --- *** the process of editing is disrupted with ***
  24605. --- *** respect to the reference. ***
  24606. --- ************************************************
  24607. ---
  24608. CREATE VIEW editing_variant AS
  24609. SELECT
  24610. feature_id AS editing_variant_id,
  24611. feature.*
  24612. FROM
  24613. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24614. WHERE cvterm.name = 'editing_variant';
  24615. --- ************************************************
  24616. --- *** relation: polyadenylation_variant ***
  24617. --- *** relation type: VIEW ***
  24618. --- *** ***
  24619. --- *** A sequence variant that changes polyaden ***
  24620. --- *** ylation with respect to a reference sequ ***
  24621. --- *** ence. ***
  24622. --- ************************************************
  24623. ---
  24624. CREATE VIEW polyadenylation_variant AS
  24625. SELECT
  24626. feature_id AS polyadenylation_variant_id,
  24627. feature.*
  24628. FROM
  24629. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24630. WHERE cvterm.name = 'increased_polyadenylation_variant' OR cvterm.name = 'decreased_polyadenylation_variant' OR cvterm.name = 'polyadenylation_variant';
  24631. --- ************************************************
  24632. --- *** relation: transcript_stability_variant ***
  24633. --- *** relation type: VIEW ***
  24634. --- *** ***
  24635. --- *** A variant that changes the stability of ***
  24636. --- *** a transcript with respect to a reference ***
  24637. --- *** sequence. ***
  24638. --- ************************************************
  24639. ---
  24640. CREATE VIEW transcript_stability_variant AS
  24641. SELECT
  24642. feature_id AS transcript_stability_variant_id,
  24643. feature.*
  24644. FROM
  24645. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24646. WHERE cvterm.name = 'decreased_transcript_stability_variant' OR cvterm.name = 'increased_transcript_stability_variant' OR cvterm.name = 'transcript_stability_variant';
  24647. --- ************************************************
  24648. --- *** relation: decreased_transcript_stability_variant ***
  24649. --- *** relation type: VIEW ***
  24650. --- *** ***
  24651. --- *** A sequence variant that decreases transc ***
  24652. --- *** ript stability with respect to a referen ***
  24653. --- *** ce sequence. ***
  24654. --- ************************************************
  24655. ---
  24656. CREATE VIEW decreased_transcript_stability_variant AS
  24657. SELECT
  24658. feature_id AS decreased_transcript_stability_variant_id,
  24659. feature.*
  24660. FROM
  24661. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24662. WHERE cvterm.name = 'decreased_transcript_stability_variant';
  24663. --- ************************************************
  24664. --- *** relation: increased_transcript_stability_variant ***
  24665. --- *** relation type: VIEW ***
  24666. --- *** ***
  24667. --- *** A sequence variant that increases transc ***
  24668. --- *** ript stability with respect to a referen ***
  24669. --- *** ce sequence. ***
  24670. --- ************************************************
  24671. ---
  24672. CREATE VIEW increased_transcript_stability_variant AS
  24673. SELECT
  24674. feature_id AS increased_transcript_stability_variant_id,
  24675. feature.*
  24676. FROM
  24677. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24678. WHERE cvterm.name = 'increased_transcript_stability_variant';
  24679. --- ************************************************
  24680. --- *** relation: transcription_variant ***
  24681. --- *** relation type: VIEW ***
  24682. --- *** ***
  24683. --- *** A variant that changes alters the transc ***
  24684. --- *** ription of a transcript with respect to ***
  24685. --- *** a reference sequence. ***
  24686. --- ************************************************
  24687. ---
  24688. CREATE VIEW transcription_variant AS
  24689. SELECT
  24690. feature_id AS transcription_variant_id,
  24691. feature.*
  24692. FROM
  24693. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24694. 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';
  24695. --- ************************************************
  24696. --- *** relation: rate_of_transcription_variant ***
  24697. --- *** relation type: VIEW ***
  24698. --- *** ***
  24699. --- *** A sequence variant that changes the rate ***
  24700. --- *** of transcription with respect to a refe ***
  24701. --- *** rence sequence. ***
  24702. --- ************************************************
  24703. ---
  24704. CREATE VIEW rate_of_transcription_variant AS
  24705. SELECT
  24706. feature_id AS rate_of_transcription_variant_id,
  24707. feature.*
  24708. FROM
  24709. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24710. WHERE cvterm.name = 'increased_transcription_rate_variant' OR cvterm.name = 'decreased_transcription_rate_variant' OR cvterm.name = 'rate_of_transcription_variant';
  24711. --- ************************************************
  24712. --- *** relation: increased_transcription_rate_variant ***
  24713. --- *** relation type: VIEW ***
  24714. --- *** ***
  24715. --- *** A sequence variant that increases the ra ***
  24716. --- *** te of transcription with respect to a re ***
  24717. --- *** ference sequence. ***
  24718. --- ************************************************
  24719. ---
  24720. CREATE VIEW increased_transcription_rate_variant AS
  24721. SELECT
  24722. feature_id AS increased_transcription_rate_variant_id,
  24723. feature.*
  24724. FROM
  24725. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24726. WHERE cvterm.name = 'increased_transcription_rate_variant';
  24727. --- ************************************************
  24728. --- *** relation: decreased_transcription_rate_variant ***
  24729. --- *** relation type: VIEW ***
  24730. --- *** ***
  24731. --- *** A sequence variant that decreases the ra ***
  24732. --- *** te of transcription with respect to a re ***
  24733. --- *** ference sequence. ***
  24734. --- ************************************************
  24735. ---
  24736. CREATE VIEW decreased_transcription_rate_variant AS
  24737. SELECT
  24738. feature_id AS decreased_transcription_rate_variant_id,
  24739. feature.*
  24740. FROM
  24741. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24742. WHERE cvterm.name = 'decreased_transcription_rate_variant';
  24743. --- ************************************************
  24744. --- *** relation: translational_product_level_variant ***
  24745. --- *** relation type: VIEW ***
  24746. --- *** ***
  24747. --- *** A functional variant that changes the tr ***
  24748. --- *** anslational product level with respect t ***
  24749. --- *** o a reference sequence. ***
  24750. --- ************************************************
  24751. ---
  24752. CREATE VIEW translational_product_level_variant AS
  24753. SELECT
  24754. feature_id AS translational_product_level_variant_id,
  24755. feature.*
  24756. FROM
  24757. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24758. WHERE cvterm.name = 'decreased_translational_product_level' OR cvterm.name = 'increased_translational_product_level' OR cvterm.name = 'translational_product_level_variant';
  24759. --- ************************************************
  24760. --- *** relation: polypeptide_function_variant ***
  24761. --- *** relation type: VIEW ***
  24762. --- *** ***
  24763. --- *** A sequence variant which changes polypep ***
  24764. --- *** tide functioning with respect to a refer ***
  24765. --- *** ence sequence. ***
  24766. --- ************************************************
  24767. ---
  24768. CREATE VIEW polypeptide_function_variant AS
  24769. SELECT
  24770. feature_id AS polypeptide_function_variant_id,
  24771. feature.*
  24772. FROM
  24773. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24774. 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';
  24775. --- ************************************************
  24776. --- *** relation: decreased_translational_product_level ***
  24777. --- *** relation type: VIEW ***
  24778. --- *** ***
  24779. --- *** A sequence variant which decreases the t ***
  24780. --- *** ranslational product level with respect ***
  24781. --- *** to a reference sequence. ***
  24782. --- ************************************************
  24783. ---
  24784. CREATE VIEW decreased_translational_product_level AS
  24785. SELECT
  24786. feature_id AS decreased_translational_product_level_id,
  24787. feature.*
  24788. FROM
  24789. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24790. WHERE cvterm.name = 'decreased_translational_product_level';
  24791. --- ************************************************
  24792. --- *** relation: increased_translational_product_level ***
  24793. --- *** relation type: VIEW ***
  24794. --- *** ***
  24795. --- *** A sequence variant which increases the t ***
  24796. --- *** ranslational product level with respect ***
  24797. --- *** to a reference sequence. ***
  24798. --- ************************************************
  24799. ---
  24800. CREATE VIEW increased_translational_product_level AS
  24801. SELECT
  24802. feature_id AS increased_translational_product_level_id,
  24803. feature.*
  24804. FROM
  24805. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24806. WHERE cvterm.name = 'increased_translational_product_level';
  24807. --- ************************************************
  24808. --- *** relation: polypeptide_gain_of_function_variant ***
  24809. --- *** relation type: VIEW ***
  24810. --- *** ***
  24811. --- *** A sequence variant which causes gain of ***
  24812. --- *** polypeptide function with respect to a r ***
  24813. --- *** eference sequence. ***
  24814. --- ************************************************
  24815. ---
  24816. CREATE VIEW polypeptide_gain_of_function_variant AS
  24817. SELECT
  24818. feature_id AS polypeptide_gain_of_function_variant_id,
  24819. feature.*
  24820. FROM
  24821. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24822. WHERE cvterm.name = 'polypeptide_gain_of_function_variant';
  24823. --- ************************************************
  24824. --- *** relation: polypeptide_localization_variant ***
  24825. --- *** relation type: VIEW ***
  24826. --- *** ***
  24827. --- *** A sequence variant which changes the loc ***
  24828. --- *** alization of a polypeptide with respect ***
  24829. --- *** to a reference sequence. ***
  24830. --- ************************************************
  24831. ---
  24832. CREATE VIEW polypeptide_localization_variant AS
  24833. SELECT
  24834. feature_id AS polypeptide_localization_variant_id,
  24835. feature.*
  24836. FROM
  24837. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24838. WHERE cvterm.name = 'polypeptide_localization_variant';
  24839. --- ************************************************
  24840. --- *** relation: polypeptide_loss_of_function_variant ***
  24841. --- *** relation type: VIEW ***
  24842. --- *** ***
  24843. --- *** A sequence variant that causes the loss ***
  24844. --- *** of a polypeptide function with respect t ***
  24845. --- *** o a reference sequence. ***
  24846. --- ************************************************
  24847. ---
  24848. CREATE VIEW polypeptide_loss_of_function_variant AS
  24849. SELECT
  24850. feature_id AS polypeptide_loss_of_function_variant_id,
  24851. feature.*
  24852. FROM
  24853. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24854. 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';
  24855. --- ************************************************
  24856. --- *** relation: inactive_ligand_binding_site ***
  24857. --- *** relation type: VIEW ***
  24858. --- *** ***
  24859. --- *** A sequence variant that causes the inact ***
  24860. --- *** ivation of a ligand binding site with re ***
  24861. --- *** spect to a reference sequence. ***
  24862. --- ************************************************
  24863. ---
  24864. CREATE VIEW inactive_ligand_binding_site AS
  24865. SELECT
  24866. feature_id AS inactive_ligand_binding_site_id,
  24867. feature.*
  24868. FROM
  24869. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24870. WHERE cvterm.name = 'inactive_catalytic_site' OR cvterm.name = 'inactive_ligand_binding_site';
  24871. --- ************************************************
  24872. --- *** relation: polypeptide_partial_loss_of_function ***
  24873. --- *** relation type: VIEW ***
  24874. --- *** ***
  24875. --- *** A sequence variant that causes some but ***
  24876. --- *** not all loss of polypeptide function wit ***
  24877. --- *** h respect to a reference sequence. ***
  24878. --- ************************************************
  24879. ---
  24880. CREATE VIEW polypeptide_partial_loss_of_function AS
  24881. SELECT
  24882. feature_id AS polypeptide_partial_loss_of_function_id,
  24883. feature.*
  24884. FROM
  24885. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24886. WHERE cvterm.name = 'polypeptide_partial_loss_of_function';
  24887. --- ************************************************
  24888. --- *** relation: polypeptide_post_translational_processing_variant ***
  24889. --- *** relation type: VIEW ***
  24890. --- *** ***
  24891. --- *** A sequence variant that causes a change ***
  24892. --- *** in post translational processing of the ***
  24893. --- *** peptide with respect to a reference sequ ***
  24894. --- *** ence. ***
  24895. --- ************************************************
  24896. ---
  24897. CREATE VIEW polypeptide_post_translational_processing_variant AS
  24898. SELECT
  24899. feature_id AS polypeptide_post_translational_processing_variant_id,
  24900. feature.*
  24901. FROM
  24902. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24903. WHERE cvterm.name = 'polypeptide_post_translational_processing_variant';
  24904. --- ************************************************
  24905. --- *** relation: copy_number_change ***
  24906. --- *** relation type: VIEW ***
  24907. --- *** ***
  24908. --- *** A sequence variant where copies of a fea ***
  24909. --- *** ture (CNV) are either increased or decre ***
  24910. --- *** ased. ***
  24911. --- ************************************************
  24912. ---
  24913. CREATE VIEW copy_number_change AS
  24914. SELECT
  24915. feature_id AS copy_number_change_id,
  24916. feature.*
  24917. FROM
  24918. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24919. WHERE cvterm.name = 'copy_number_change';
  24920. --- ************************************************
  24921. --- *** relation: gene_variant ***
  24922. --- *** relation type: VIEW ***
  24923. --- *** ***
  24924. --- *** A sequence variant where the structure o ***
  24925. --- *** f the gene is changed. ***
  24926. --- ************************************************
  24927. ---
  24928. CREATE VIEW gene_variant AS
  24929. SELECT
  24930. feature_id AS gene_variant_id,
  24931. feature.*
  24932. FROM
  24933. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24934. 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';
  24935. --- ************************************************
  24936. --- *** relation: gene_fusion ***
  24937. --- *** relation type: VIEW ***
  24938. --- *** ***
  24939. --- *** A sequence variant whereby a two genes h ***
  24940. --- *** ave become joined. ***
  24941. --- ************************************************
  24942. ---
  24943. CREATE VIEW gene_fusion AS
  24944. SELECT
  24945. feature_id AS gene_fusion_id,
  24946. feature.*
  24947. FROM
  24948. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24949. WHERE cvterm.name = 'gene_fusion';
  24950. --- ************************************************
  24951. --- *** relation: regulatory_region_variant ***
  24952. --- *** relation type: VIEW ***
  24953. --- *** ***
  24954. --- *** A sequence variant located within a regu ***
  24955. --- *** latory region. ***
  24956. --- ************************************************
  24957. ---
  24958. CREATE VIEW regulatory_region_variant AS
  24959. SELECT
  24960. feature_id AS regulatory_region_variant_id,
  24961. feature.*
  24962. FROM
  24963. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24964. WHERE cvterm.name = 'TF_binding_site_variant' OR cvterm.name = 'regulatory_region_variant';
  24965. --- ************************************************
  24966. --- *** relation: stop_retained_variant ***
  24967. --- *** relation type: VIEW ***
  24968. --- *** ***
  24969. --- *** A sequence variant where at least one ba ***
  24970. --- *** se in the terminator codon is changed, b ***
  24971. --- *** ut the terminator remains. ***
  24972. --- ************************************************
  24973. ---
  24974. CREATE VIEW stop_retained_variant AS
  24975. SELECT
  24976. feature_id AS stop_retained_variant_id,
  24977. feature.*
  24978. FROM
  24979. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24980. WHERE cvterm.name = 'stop_retained_variant';
  24981. --- ************************************************
  24982. --- *** relation: splicing_variant ***
  24983. --- *** relation type: VIEW ***
  24984. --- *** ***
  24985. --- *** A sequence variant that changes the proc ***
  24986. --- *** ess of splicing. ***
  24987. --- ************************************************
  24988. ---
  24989. CREATE VIEW splicing_variant AS
  24990. SELECT
  24991. feature_id AS splicing_variant_id,
  24992. feature.*
  24993. FROM
  24994. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24995. 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';
  24996. --- ************************************************
  24997. --- *** relation: cryptic_splice_site_variant ***
  24998. --- *** relation type: VIEW ***
  24999. --- *** ***
  25000. --- *** A sequence variant causing a new (functi ***
  25001. --- *** onal) splice site. ***
  25002. --- ************************************************
  25003. ---
  25004. CREATE VIEW cryptic_splice_site_variant AS
  25005. SELECT
  25006. feature_id AS cryptic_splice_site_variant_id,
  25007. feature.*
  25008. FROM
  25009. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25010. WHERE cvterm.name = 'cryptic_splice_acceptor' OR cvterm.name = 'cryptic_splice_donor' OR cvterm.name = 'cryptic_splice_site_variant';
  25011. --- ************************************************
  25012. --- *** relation: cryptic_splice_acceptor ***
  25013. --- *** relation type: VIEW ***
  25014. --- *** ***
  25015. --- *** A sequence variant whereby a new splice ***
  25016. --- *** site is created due to the activation of ***
  25017. --- *** a new acceptor. ***
  25018. --- ************************************************
  25019. ---
  25020. CREATE VIEW cryptic_splice_acceptor AS
  25021. SELECT
  25022. feature_id AS cryptic_splice_acceptor_id,
  25023. feature.*
  25024. FROM
  25025. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25026. WHERE cvterm.name = 'cryptic_splice_acceptor';
  25027. --- ************************************************
  25028. --- *** relation: cryptic_splice_donor ***
  25029. --- *** relation type: VIEW ***
  25030. --- *** ***
  25031. --- *** A sequence variant whereby a new splice ***
  25032. --- *** site is created due to the activation of ***
  25033. --- *** a new donor. ***
  25034. --- ************************************************
  25035. ---
  25036. CREATE VIEW cryptic_splice_donor AS
  25037. SELECT
  25038. feature_id AS cryptic_splice_donor_id,
  25039. feature.*
  25040. FROM
  25041. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25042. WHERE cvterm.name = 'cryptic_splice_donor';
  25043. --- ************************************************
  25044. --- *** relation: exon_loss ***
  25045. --- *** relation type: VIEW ***
  25046. --- *** ***
  25047. --- *** A sequence variant whereby an exon is lo ***
  25048. --- *** st from the transcript. ***
  25049. --- ************************************************
  25050. ---
  25051. CREATE VIEW exon_loss AS
  25052. SELECT
  25053. feature_id AS exon_loss_id,
  25054. feature.*
  25055. FROM
  25056. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25057. WHERE cvterm.name = 'exon_loss';
  25058. --- ************************************************
  25059. --- *** relation: intron_gain ***
  25060. --- *** relation type: VIEW ***
  25061. --- *** ***
  25062. --- *** A sequence variant whereby an intron is ***
  25063. --- *** gained by the processed transcript; usua ***
  25064. --- *** lly a result of an alteration of the don ***
  25065. --- *** or or acceptor. ***
  25066. --- ************************************************
  25067. ---
  25068. CREATE VIEW intron_gain AS
  25069. SELECT
  25070. feature_id AS intron_gain_id,
  25071. feature.*
  25072. FROM
  25073. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25074. WHERE cvterm.name = 'intron_gain';
  25075. --- ************************************************
  25076. --- *** relation: splice_acceptor_variant ***
  25077. --- *** relation type: VIEW ***
  25078. --- *** ***
  25079. --- *** A splice variant that changes the 2 base ***
  25080. --- *** region at the 3' end of an intron. ***
  25081. --- ************************************************
  25082. ---
  25083. CREATE VIEW splice_acceptor_variant AS
  25084. SELECT
  25085. feature_id AS splice_acceptor_variant_id,
  25086. feature.*
  25087. FROM
  25088. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25089. WHERE cvterm.name = 'splice_acceptor_variant';
  25090. --- ************************************************
  25091. --- *** relation: splice_donor_variant ***
  25092. --- *** relation type: VIEW ***
  25093. --- *** ***
  25094. --- *** A splice variant that changes the2 base ***
  25095. --- *** region at the 5' end of an intron. ***
  25096. --- ************************************************
  25097. ---
  25098. CREATE VIEW splice_donor_variant AS
  25099. SELECT
  25100. feature_id AS splice_donor_variant_id,
  25101. feature.*
  25102. FROM
  25103. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25104. WHERE cvterm.name = 'splice_donor_variant';
  25105. --- ************************************************
  25106. --- *** relation: transcript_variant ***
  25107. --- *** relation type: VIEW ***
  25108. --- *** ***
  25109. --- *** A sequence variant that changes the stru ***
  25110. --- *** cture of the transcript. ***
  25111. --- ************************************************
  25112. ---
  25113. CREATE VIEW transcript_variant AS
  25114. SELECT
  25115. feature_id AS transcript_variant_id,
  25116. feature.*
  25117. FROM
  25118. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25119. 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';
  25120. --- ************************************************
  25121. --- *** relation: complex_change_in_transcript ***
  25122. --- *** relation type: VIEW ***
  25123. --- *** ***
  25124. --- *** A transcript variant with a complex INDE ***
  25125. --- *** L- Insertion or deletion that spans an e ***
  25126. --- *** xon/intron border or a coding sequence/U ***
  25127. --- *** TR border. ***
  25128. --- ************************************************
  25129. ---
  25130. CREATE VIEW complex_change_in_transcript AS
  25131. SELECT
  25132. feature_id AS complex_change_in_transcript_id,
  25133. feature.*
  25134. FROM
  25135. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25136. WHERE cvterm.name = 'complex_change_in_transcript';
  25137. --- ************************************************
  25138. --- *** relation: stop_lost ***
  25139. --- *** relation type: VIEW ***
  25140. --- *** ***
  25141. --- *** A sequence variant where at least one ba ***
  25142. --- *** se of the terminator codon (stop) is cha ***
  25143. --- *** nged, resulting in an elongated transcri ***
  25144. --- *** pt. ***
  25145. --- ************************************************
  25146. ---
  25147. CREATE VIEW stop_lost AS
  25148. SELECT
  25149. feature_id AS stop_lost_id,
  25150. feature.*
  25151. FROM
  25152. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25153. WHERE cvterm.name = 'stop_lost';
  25154. --- ************************************************
  25155. --- *** relation: coding_sequence_variant ***
  25156. --- *** relation type: VIEW ***
  25157. --- *** ***
  25158. --- *** A sequence variant that changes the codi ***
  25159. --- *** ng sequence. ***
  25160. --- ************************************************
  25161. ---
  25162. CREATE VIEW coding_sequence_variant AS
  25163. SELECT
  25164. feature_id AS coding_sequence_variant_id,
  25165. feature.*
  25166. FROM
  25167. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25168. 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';
  25169. --- ************************************************
  25170. --- *** relation: codon_variant ***
  25171. --- *** relation type: VIEW ***
  25172. --- *** ***
  25173. --- *** A sequence variant that changes at least ***
  25174. --- *** one base in a codon. ***
  25175. --- ************************************************
  25176. ---
  25177. CREATE VIEW codon_variant AS
  25178. SELECT
  25179. feature_id AS codon_variant_id,
  25180. feature.*
  25181. FROM
  25182. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25183. 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';
  25184. --- ************************************************
  25185. --- *** relation: initiator_codon_change ***
  25186. --- *** relation type: VIEW ***
  25187. --- *** ***
  25188. --- *** A codon variant that changes at least on ***
  25189. --- *** e base of the first codon of a transcrip ***
  25190. --- *** t. ***
  25191. --- ************************************************
  25192. ---
  25193. CREATE VIEW initiator_codon_change AS
  25194. SELECT
  25195. feature_id AS initiator_codon_change_id,
  25196. feature.*
  25197. FROM
  25198. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25199. WHERE cvterm.name = 'initiator_codon_change';
  25200. --- ************************************************
  25201. --- *** relation: non_synonymous_codon ***
  25202. --- *** relation type: VIEW ***
  25203. --- *** ***
  25204. --- *** A sequence variant whereby at least one ***
  25205. --- *** base of a codon is changed resulting in ***
  25206. --- *** a codon that encodes for a different ami ***
  25207. --- *** no acid or stop codon. ***
  25208. --- ************************************************
  25209. ---
  25210. CREATE VIEW non_synonymous_codon AS
  25211. SELECT
  25212. feature_id AS non_synonymous_codon_id,
  25213. feature.*
  25214. FROM
  25215. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25216. 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';
  25217. --- ************************************************
  25218. --- *** relation: conservative_missense_codon ***
  25219. --- *** relation type: VIEW ***
  25220. --- *** ***
  25221. --- *** A sequence variant whereby at least one ***
  25222. --- *** base of a codon is changed resulting in ***
  25223. --- *** a codon that encodes for a different but ***
  25224. --- *** similar amino acid. These variants may ***
  25225. --- *** or may not be deleterious. ***
  25226. --- ************************************************
  25227. ---
  25228. CREATE VIEW conservative_missense_codon AS
  25229. SELECT
  25230. feature_id AS conservative_missense_codon_id,
  25231. feature.*
  25232. FROM
  25233. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25234. WHERE cvterm.name = 'conservative_missense_codon';
  25235. --- ************************************************
  25236. --- *** relation: non_conservative_missense_codon ***
  25237. --- *** relation type: VIEW ***
  25238. --- *** ***
  25239. --- *** A sequence variant whereby at least one ***
  25240. --- *** base of a codon is changed resulting in ***
  25241. --- *** a codon that encodes for an amino acid w ***
  25242. --- *** ith different biochemical properties. ***
  25243. --- ************************************************
  25244. ---
  25245. CREATE VIEW non_conservative_missense_codon AS
  25246. SELECT
  25247. feature_id AS non_conservative_missense_codon_id,
  25248. feature.*
  25249. FROM
  25250. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25251. WHERE cvterm.name = 'non_conservative_missense_codon';
  25252. --- ************************************************
  25253. --- *** relation: stop_gained ***
  25254. --- *** relation type: VIEW ***
  25255. --- *** ***
  25256. --- *** A sequence variant whereby at least one ***
  25257. --- *** base of a codon is changed, resulting in ***
  25258. --- *** a premature stop codon, leading to a sh ***
  25259. --- *** ortened transcript. ***
  25260. --- ************************************************
  25261. ---
  25262. CREATE VIEW stop_gained AS
  25263. SELECT
  25264. feature_id AS stop_gained_id,
  25265. feature.*
  25266. FROM
  25267. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25268. WHERE cvterm.name = 'stop_gained';
  25269. --- ************************************************
  25270. --- *** relation: synonymous_codon ***
  25271. --- *** relation type: VIEW ***
  25272. --- *** ***
  25273. --- *** A sequence variant whereby a base of a c ***
  25274. --- *** odon is changed, but there is no resulti ***
  25275. --- *** ng change to the encoded amino acid. ***
  25276. --- ************************************************
  25277. ---
  25278. CREATE VIEW synonymous_codon AS
  25279. SELECT
  25280. feature_id AS synonymous_codon_id,
  25281. feature.*
  25282. FROM
  25283. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25284. WHERE cvterm.name = 'synonymous_codon';
  25285. --- ************************************************
  25286. --- *** relation: frameshift_variant ***
  25287. --- *** relation type: VIEW ***
  25288. --- *** ***
  25289. --- *** A sequence variant which causes a disrup ***
  25290. --- *** tion of the translational reading frame, ***
  25291. --- *** because the number of nucleotides inser ***
  25292. --- *** ted or deleted is not a multiple of thre ***
  25293. --- *** e. ***
  25294. --- ************************************************
  25295. ---
  25296. CREATE VIEW frameshift_variant AS
  25297. SELECT
  25298. feature_id AS frameshift_variant_id,
  25299. feature.*
  25300. FROM
  25301. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25302. 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';
  25303. --- ************************************************
  25304. --- *** relation: terminator_codon_variant ***
  25305. --- *** relation type: VIEW ***
  25306. --- *** ***
  25307. --- *** A sequence variant whereby at least one ***
  25308. --- *** of the bases in the terminator codon is ***
  25309. --- *** changed. ***
  25310. --- ************************************************
  25311. ---
  25312. CREATE VIEW terminator_codon_variant AS
  25313. SELECT
  25314. feature_id AS terminator_codon_variant_id,
  25315. feature.*
  25316. FROM
  25317. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25318. WHERE cvterm.name = 'stop_retained_variant' OR cvterm.name = 'stop_lost' OR cvterm.name = 'terminator_codon_variant';
  25319. --- ************************************************
  25320. --- *** relation: frame_restoring_variant ***
  25321. --- *** relation type: VIEW ***
  25322. --- *** ***
  25323. --- *** A sequence variant that reverts the sequ ***
  25324. --- *** ence of a previous frameshift mutation b ***
  25325. --- *** ack to the initial frame. ***
  25326. --- ************************************************
  25327. ---
  25328. CREATE VIEW frame_restoring_variant AS
  25329. SELECT
  25330. feature_id AS frame_restoring_variant_id,
  25331. feature.*
  25332. FROM
  25333. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25334. WHERE cvterm.name = 'frame_restoring_variant';
  25335. --- ************************************************
  25336. --- *** relation: minus_1_frameshift_variant ***
  25337. --- *** relation type: VIEW ***
  25338. --- *** ***
  25339. --- *** A sequence variant which causes a disrup ***
  25340. --- *** tion of the translational reading frame, ***
  25341. --- *** by shifting one base ahead. ***
  25342. --- ************************************************
  25343. ---
  25344. CREATE VIEW minus_1_frameshift_variant AS
  25345. SELECT
  25346. feature_id AS minus_1_frameshift_variant_id,
  25347. feature.*
  25348. FROM
  25349. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25350. WHERE cvterm.name = 'minus_1_frameshift_variant';
  25351. --- ************************************************
  25352. --- *** relation: minus_2_frameshift_variant ***
  25353. --- *** relation type: VIEW ***
  25354. --- *** ***
  25355. --- ************************************************
  25356. ---
  25357. CREATE VIEW minus_2_frameshift_variant AS
  25358. SELECT
  25359. feature_id AS minus_2_frameshift_variant_id,
  25360. feature.*
  25361. FROM
  25362. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25363. WHERE cvterm.name = 'minus_2_frameshift_variant';
  25364. --- ************************************************
  25365. --- *** relation: plus_1_frameshift_variant ***
  25366. --- *** relation type: VIEW ***
  25367. --- *** ***
  25368. --- *** A sequence variant which causes a disrup ***
  25369. --- *** tion of the translational reading frame, ***
  25370. --- *** by shifting one base backward. ***
  25371. --- ************************************************
  25372. ---
  25373. CREATE VIEW plus_1_frameshift_variant AS
  25374. SELECT
  25375. feature_id AS plus_1_frameshift_variant_id,
  25376. feature.*
  25377. FROM
  25378. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25379. WHERE cvterm.name = 'plus_1_frameshift_variant';
  25380. --- ************************************************
  25381. --- *** relation: plus_2_frameshift_variant ***
  25382. --- *** relation type: VIEW ***
  25383. --- *** ***
  25384. --- ************************************************
  25385. ---
  25386. CREATE VIEW plus_2_frameshift_variant AS
  25387. SELECT
  25388. feature_id AS plus_2_frameshift_variant_id,
  25389. feature.*
  25390. FROM
  25391. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25392. WHERE cvterm.name = 'plus_2_frameshift variant';
  25393. --- ************************************************
  25394. --- *** relation: transcript_secondary_structure_variant ***
  25395. --- *** relation type: VIEW ***
  25396. --- *** ***
  25397. --- *** A sequence variant within a transcript t ***
  25398. --- *** hat changes the secondary structure of t ***
  25399. --- *** he RNA product. ***
  25400. --- ************************************************
  25401. ---
  25402. CREATE VIEW transcript_secondary_structure_variant AS
  25403. SELECT
  25404. feature_id AS transcript_secondary_structure_variant_id,
  25405. feature.*
  25406. FROM
  25407. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25408. WHERE cvterm.name = 'compensatory_transcript_secondary_structure_variant' OR cvterm.name = 'transcript_secondary_structure_variant';
  25409. --- ************************************************
  25410. --- *** relation: compensatory_transcript_secondary_structure_variant ***
  25411. --- *** relation type: VIEW ***
  25412. --- *** ***
  25413. --- *** A secondary structure variant that compe ***
  25414. --- *** nsate for the change made by a previous ***
  25415. --- *** variant. ***
  25416. --- ************************************************
  25417. ---
  25418. CREATE VIEW compensatory_transcript_secondary_structure_variant AS
  25419. SELECT
  25420. feature_id AS compensatory_transcript_secondary_structure_variant_id,
  25421. feature.*
  25422. FROM
  25423. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25424. WHERE cvterm.name = 'compensatory_transcript_secondary_structure_variant';
  25425. --- ************************************************
  25426. --- *** relation: translational_product_structure_variant ***
  25427. --- *** relation type: VIEW ***
  25428. --- *** ***
  25429. --- *** A sequence variant within the transcript ***
  25430. --- *** that changes the structure of the trans ***
  25431. --- *** lational product. ***
  25432. --- ************************************************
  25433. ---
  25434. CREATE VIEW translational_product_structure_variant AS
  25435. SELECT
  25436. feature_id AS translational_product_structure_variant_id,
  25437. feature.*
  25438. FROM
  25439. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25440. 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';
  25441. --- ************************************************
  25442. --- *** relation: threed_polypeptide_structure_variant ***
  25443. --- *** relation type: VIEW ***
  25444. --- *** ***
  25445. --- *** A sequence variant that changes the resu ***
  25446. --- *** lting polypeptide structure. ***
  25447. --- ************************************************
  25448. ---
  25449. CREATE VIEW threed_polypeptide_structure_variant AS
  25450. SELECT
  25451. feature_id AS threed_polypeptide_structure_variant_id,
  25452. feature.*
  25453. FROM
  25454. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25455. WHERE cvterm.name = 'complex_3D_structural_variant' OR cvterm.name = 'conformational_change_variant' OR cvterm.name = '3D_polypeptide_structure_variant';
  25456. --- ************************************************
  25457. --- *** relation: complex_3d_structural_variant ***
  25458. --- *** relation type: VIEW ***
  25459. --- *** ***
  25460. --- *** A sequence variant that changes the resu ***
  25461. --- *** lting polypeptide structure. ***
  25462. --- ************************************************
  25463. ---
  25464. CREATE VIEW complex_3d_structural_variant AS
  25465. SELECT
  25466. feature_id AS complex_3d_structural_variant_id,
  25467. feature.*
  25468. FROM
  25469. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25470. WHERE cvterm.name = 'complex_3D_structural_variant';
  25471. --- ************************************************
  25472. --- *** relation: conformational_change_variant ***
  25473. --- *** relation type: VIEW ***
  25474. --- *** ***
  25475. --- *** A sequence variant in the CDS region tha ***
  25476. --- *** t causes a conformational change in the ***
  25477. --- *** resulting polypeptide sequence. ***
  25478. --- ************************************************
  25479. ---
  25480. CREATE VIEW conformational_change_variant AS
  25481. SELECT
  25482. feature_id AS conformational_change_variant_id,
  25483. feature.*
  25484. FROM
  25485. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25486. WHERE cvterm.name = 'conformational_change_variant';
  25487. --- ************************************************
  25488. --- *** relation: complex_change_of_translational_product_variant ***
  25489. --- *** relation type: VIEW ***
  25490. --- *** ***
  25491. --- ************************************************
  25492. ---
  25493. CREATE VIEW complex_change_of_translational_product_variant AS
  25494. SELECT
  25495. feature_id AS complex_change_of_translational_product_variant_id,
  25496. feature.*
  25497. FROM
  25498. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25499. WHERE cvterm.name = 'complex_change_of_translational_product_variant';
  25500. --- ************************************************
  25501. --- *** relation: polypeptide_sequence_variant ***
  25502. --- *** relation type: VIEW ***
  25503. --- *** ***
  25504. --- *** A sequence variant with in the CDS that ***
  25505. --- *** causes a change in the resulting polypep ***
  25506. --- *** tide sequence. ***
  25507. --- ************************************************
  25508. ---
  25509. CREATE VIEW polypeptide_sequence_variant AS
  25510. SELECT
  25511. feature_id AS polypeptide_sequence_variant_id,
  25512. feature.*
  25513. FROM
  25514. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25515. 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';
  25516. --- ************************************************
  25517. --- *** relation: amino_acid_deletion ***
  25518. --- *** relation type: VIEW ***
  25519. --- *** ***
  25520. --- *** A sequence variant within a CDS resultin ***
  25521. --- *** g in the loss of an amino acid from the ***
  25522. --- *** resulting polypeptide. ***
  25523. --- ************************************************
  25524. ---
  25525. CREATE VIEW amino_acid_deletion AS
  25526. SELECT
  25527. feature_id AS amino_acid_deletion_id,
  25528. feature.*
  25529. FROM
  25530. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25531. WHERE cvterm.name = 'amino_acid_deletion';
  25532. --- ************************************************
  25533. --- *** relation: amino_acid_insertion ***
  25534. --- *** relation type: VIEW ***
  25535. --- *** ***
  25536. --- *** A sequence variant within a CDS resultin ***
  25537. --- *** g in the gain of an amino acid to the re ***
  25538. --- *** sulting polypeptide. ***
  25539. --- ************************************************
  25540. ---
  25541. CREATE VIEW amino_acid_insertion AS
  25542. SELECT
  25543. feature_id AS amino_acid_insertion_id,
  25544. feature.*
  25545. FROM
  25546. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25547. WHERE cvterm.name = 'amino_acid_insertion';
  25548. --- ************************************************
  25549. --- *** relation: amino_acid_substitution ***
  25550. --- *** relation type: VIEW ***
  25551. --- *** ***
  25552. --- *** A sequence variant of a codon resulting ***
  25553. --- *** in the substitution of one amino acid fo ***
  25554. --- *** r another in the resulting polypeptide. ***
  25555. --- ************************************************
  25556. ---
  25557. CREATE VIEW amino_acid_substitution AS
  25558. SELECT
  25559. feature_id AS amino_acid_substitution_id,
  25560. feature.*
  25561. FROM
  25562. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25563. WHERE cvterm.name = 'conservative_amino_acid_substitution' OR cvterm.name = 'non_conservative_amino_acid_substitution' OR cvterm.name = 'amino_acid_substitution';
  25564. --- ************************************************
  25565. --- *** relation: conservative_amino_acid_substitution ***
  25566. --- *** relation type: VIEW ***
  25567. --- *** ***
  25568. --- *** A sequence variant of a codon causing th ***
  25569. --- *** e substitution of a similar amino acid f ***
  25570. --- *** or another in the resulting polypeptide. ***
  25571. --- ************************************************
  25572. ---
  25573. CREATE VIEW conservative_amino_acid_substitution AS
  25574. SELECT
  25575. feature_id AS conservative_amino_acid_substitution_id,
  25576. feature.*
  25577. FROM
  25578. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25579. WHERE cvterm.name = 'conservative_amino_acid_substitution';
  25580. --- ************************************************
  25581. --- *** relation: non_conservative_amino_acid_substitution ***
  25582. --- *** relation type: VIEW ***
  25583. --- *** ***
  25584. --- *** A sequence variant of a codon causing th ***
  25585. --- *** e substitution of a non conservative ami ***
  25586. --- *** no acid for another in the resulting pol ***
  25587. --- *** ypeptide. ***
  25588. --- ************************************************
  25589. ---
  25590. CREATE VIEW non_conservative_amino_acid_substitution AS
  25591. SELECT
  25592. feature_id AS non_conservative_amino_acid_substitution_id,
  25593. feature.*
  25594. FROM
  25595. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25596. WHERE cvterm.name = 'non_conservative_amino_acid_substitution';
  25597. --- ************************************************
  25598. --- *** relation: elongated_polypeptide ***
  25599. --- *** relation type: VIEW ***
  25600. --- *** ***
  25601. --- *** A sequence variant with in the CDS that ***
  25602. --- *** causes elongation of the resulting polyp ***
  25603. --- *** eptide sequence. ***
  25604. --- ************************************************
  25605. ---
  25606. CREATE VIEW elongated_polypeptide AS
  25607. SELECT
  25608. feature_id AS elongated_polypeptide_id,
  25609. feature.*
  25610. FROM
  25611. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25612. 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';
  25613. --- ************************************************
  25614. --- *** relation: elongated_polypeptide_c_terminal ***
  25615. --- *** relation type: VIEW ***
  25616. --- *** ***
  25617. --- *** A sequence variant with in the CDS that ***
  25618. --- *** causes elongation of the resulting polyp ***
  25619. --- *** eptide sequence at the C terminus. ***
  25620. --- ************************************************
  25621. ---
  25622. CREATE VIEW elongated_polypeptide_c_terminal AS
  25623. SELECT
  25624. feature_id AS elongated_polypeptide_c_terminal_id,
  25625. feature.*
  25626. FROM
  25627. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25628. 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';
  25629. --- ************************************************
  25630. --- *** relation: elongated_polypeptide_n_terminal ***
  25631. --- *** relation type: VIEW ***
  25632. --- *** ***
  25633. --- *** A sequence variant with in the CDS that ***
  25634. --- *** causes elongation of the resulting polyp ***
  25635. --- *** eptide sequence at the N terminus. ***
  25636. --- ************************************************
  25637. ---
  25638. CREATE VIEW elongated_polypeptide_n_terminal AS
  25639. SELECT
  25640. feature_id AS elongated_polypeptide_n_terminal_id,
  25641. feature.*
  25642. FROM
  25643. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25644. 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';
  25645. --- ************************************************
  25646. --- *** relation: elongated_in_frame_polypeptide_c_terminal ***
  25647. --- *** relation type: VIEW ***
  25648. --- *** ***
  25649. --- *** A sequence variant with in the CDS that ***
  25650. --- *** causes in frame elongation of the result ***
  25651. --- *** ing polypeptide sequence at the C termin ***
  25652. --- *** us. ***
  25653. --- ************************************************
  25654. ---
  25655. CREATE VIEW elongated_in_frame_polypeptide_c_terminal AS
  25656. SELECT
  25657. feature_id AS elongated_in_frame_polypeptide_c_terminal_id,
  25658. feature.*
  25659. FROM
  25660. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25661. WHERE cvterm.name = 'elongated_in_frame_polypeptide_C_terminal';
  25662. --- ************************************************
  25663. --- *** relation: elongated_out_of_frame_polypeptide_c_terminal ***
  25664. --- *** relation type: VIEW ***
  25665. --- *** ***
  25666. --- *** A sequence variant with in the CDS that ***
  25667. --- *** causes out of frame elongation of the re ***
  25668. --- *** sulting polypeptide sequence at the C te ***
  25669. --- *** rminus. ***
  25670. --- ************************************************
  25671. ---
  25672. CREATE VIEW elongated_out_of_frame_polypeptide_c_terminal AS
  25673. SELECT
  25674. feature_id AS elongated_out_of_frame_polypeptide_c_terminal_id,
  25675. feature.*
  25676. FROM
  25677. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25678. WHERE cvterm.name = 'elongated_out_of_frame_polypeptide_C_terminal';
  25679. --- ************************************************
  25680. --- *** relation: elongated_in_frame_polypeptide_n_terminal_elongation ***
  25681. --- *** relation type: VIEW ***
  25682. --- *** ***
  25683. --- *** A sequence variant with in the CDS that ***
  25684. --- *** causes in frame elongation of the result ***
  25685. --- *** ing polypeptide sequence at the N termin ***
  25686. --- *** us. ***
  25687. --- ************************************************
  25688. ---
  25689. CREATE VIEW elongated_in_frame_polypeptide_n_terminal_elongation AS
  25690. SELECT
  25691. feature_id AS elongated_in_frame_polypeptide_n_terminal_elongation_id,
  25692. feature.*
  25693. FROM
  25694. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25695. WHERE cvterm.name = 'elongated_in_frame_polypeptide_N_terminal_elongation';
  25696. --- ************************************************
  25697. --- *** relation: elongated_out_of_frame_polypeptide_n_terminal ***
  25698. --- *** relation type: VIEW ***
  25699. --- *** ***
  25700. --- *** A sequence variant with in the CDS that ***
  25701. --- *** causes out of frame elongation of the re ***
  25702. --- *** sulting polypeptide sequence at the N te ***
  25703. --- *** rminus. ***
  25704. --- ************************************************
  25705. ---
  25706. CREATE VIEW elongated_out_of_frame_polypeptide_n_terminal AS
  25707. SELECT
  25708. feature_id AS elongated_out_of_frame_polypeptide_n_terminal_id,
  25709. feature.*
  25710. FROM
  25711. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25712. WHERE cvterm.name = 'elongated_out_of_frame_polypeptide_N_terminal';
  25713. --- ************************************************
  25714. --- *** relation: polypeptide_fusion ***
  25715. --- *** relation type: VIEW ***
  25716. --- *** ***
  25717. --- *** A sequence variant that causes a fusion ***
  25718. --- *** of two polypeptide sequences. ***
  25719. --- ************************************************
  25720. ---
  25721. CREATE VIEW polypeptide_fusion AS
  25722. SELECT
  25723. feature_id AS polypeptide_fusion_id,
  25724. feature.*
  25725. FROM
  25726. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25727. WHERE cvterm.name = 'polypeptide_fusion';
  25728. --- ************************************************
  25729. --- *** relation: polypeptide_truncation ***
  25730. --- *** relation type: VIEW ***
  25731. --- *** ***
  25732. --- *** A sequence variant of the CD that causes ***
  25733. --- *** a truncation of the resulting polypepti ***
  25734. --- *** de. ***
  25735. --- ************************************************
  25736. ---
  25737. CREATE VIEW polypeptide_truncation AS
  25738. SELECT
  25739. feature_id AS polypeptide_truncation_id,
  25740. feature.*
  25741. FROM
  25742. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25743. WHERE cvterm.name = 'polypeptide_truncation';
  25744. --- ************************************************
  25745. --- *** relation: inactive_catalytic_site ***
  25746. --- *** relation type: VIEW ***
  25747. --- *** ***
  25748. --- *** A sequence variant that causes the inact ***
  25749. --- *** ivation of a catalytic site with respect ***
  25750. --- *** to a reference sequence. ***
  25751. --- ************************************************
  25752. ---
  25753. CREATE VIEW inactive_catalytic_site AS
  25754. SELECT
  25755. feature_id AS inactive_catalytic_site_id,
  25756. feature.*
  25757. FROM
  25758. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25759. WHERE cvterm.name = 'inactive_catalytic_site';
  25760. --- ************************************************
  25761. --- *** relation: nc_transcript_variant ***
  25762. --- *** relation type: VIEW ***
  25763. --- *** ***
  25764. --- *** A transcript variant of a non coding RNA ***
  25765. --- *** gene. ***
  25766. --- ************************************************
  25767. ---
  25768. CREATE VIEW nc_transcript_variant AS
  25769. SELECT
  25770. feature_id AS nc_transcript_variant_id,
  25771. feature.*
  25772. FROM
  25773. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25774. WHERE cvterm.name = 'mature_miRNA_variant' OR cvterm.name = 'nc_transcript_variant';
  25775. --- ************************************************
  25776. --- *** relation: mature_mirna_variant ***
  25777. --- *** relation type: VIEW ***
  25778. --- *** ***
  25779. --- *** A transcript variant located with the se ***
  25780. --- *** quence of the mature miRNA. ***
  25781. --- ************************************************
  25782. ---
  25783. CREATE VIEW mature_mirna_variant AS
  25784. SELECT
  25785. feature_id AS mature_mirna_variant_id,
  25786. feature.*
  25787. FROM
  25788. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25789. WHERE cvterm.name = 'mature_miRNA_variant';
  25790. --- ************************************************
  25791. --- *** relation: nmd_transcript_variant ***
  25792. --- *** relation type: VIEW ***
  25793. --- *** ***
  25794. --- *** A variant in a transcript that is the ta ***
  25795. --- *** rget of NMD. ***
  25796. --- ************************************************
  25797. ---
  25798. CREATE VIEW nmd_transcript_variant AS
  25799. SELECT
  25800. feature_id AS nmd_transcript_variant_id,
  25801. feature.*
  25802. FROM
  25803. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25804. WHERE cvterm.name = 'NMD_transcript_variant';
  25805. --- ************************************************
  25806. --- *** relation: utr_variant ***
  25807. --- *** relation type: VIEW ***
  25808. --- *** ***
  25809. --- *** A transcript variant that is located wit ***
  25810. --- *** hin the UTR. ***
  25811. --- ************************************************
  25812. ---
  25813. CREATE VIEW utr_variant AS
  25814. SELECT
  25815. feature_id AS utr_variant_id,
  25816. feature.*
  25817. FROM
  25818. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25819. WHERE cvterm.name = '5_prime_UTR_variant' OR cvterm.name = '3_prime_UTR_variant' OR cvterm.name = 'UTR_variant';
  25820. --- ************************************************
  25821. --- *** relation: five_prime_utr_variant ***
  25822. --- *** relation type: VIEW ***
  25823. --- *** ***
  25824. --- *** A UTR variant of the 5' UTR. ***
  25825. --- ************************************************
  25826. ---
  25827. CREATE VIEW five_prime_utr_variant AS
  25828. SELECT
  25829. feature_id AS five_prime_utr_variant_id,
  25830. feature.*
  25831. FROM
  25832. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25833. WHERE cvterm.name = '5_prime_UTR_variant';
  25834. --- ************************************************
  25835. --- *** relation: three_prime_utr_variant ***
  25836. --- *** relation type: VIEW ***
  25837. --- *** ***
  25838. --- *** A UTR variant of the 3' UTR. ***
  25839. --- ************************************************
  25840. ---
  25841. CREATE VIEW three_prime_utr_variant AS
  25842. SELECT
  25843. feature_id AS three_prime_utr_variant_id,
  25844. feature.*
  25845. FROM
  25846. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25847. WHERE cvterm.name = '3_prime_UTR_variant';
  25848. --- ************************************************
  25849. --- *** relation: terminal_codon_variant ***
  25850. --- *** relation type: VIEW ***
  25851. --- *** ***
  25852. --- *** A codon variant that changes at least on ***
  25853. --- *** e base of the last codon of the transcri ***
  25854. --- *** pt. ***
  25855. --- ************************************************
  25856. ---
  25857. CREATE VIEW terminal_codon_variant AS
  25858. SELECT
  25859. feature_id AS terminal_codon_variant_id,
  25860. feature.*
  25861. FROM
  25862. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25863. 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';
  25864. --- ************************************************
  25865. --- *** relation: incomplete_terminal_codon_variant ***
  25866. --- *** relation type: VIEW ***
  25867. --- *** ***
  25868. --- *** A sequence variant where at least one ba ***
  25869. --- *** se of the final codon of an incompletely ***
  25870. --- *** annotated transcript is changed. ***
  25871. --- ************************************************
  25872. ---
  25873. CREATE VIEW incomplete_terminal_codon_variant AS
  25874. SELECT
  25875. feature_id AS incomplete_terminal_codon_variant_id,
  25876. feature.*
  25877. FROM
  25878. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25879. WHERE cvterm.name = 'incomplete_terminal_codon_variant';
  25880. --- ************************************************
  25881. --- *** relation: intron_variant ***
  25882. --- *** relation type: VIEW ***
  25883. --- *** ***
  25884. --- *** A transcript variant occurring within an ***
  25885. --- *** intron. ***
  25886. --- ************************************************
  25887. ---
  25888. CREATE VIEW intron_variant AS
  25889. SELECT
  25890. feature_id AS intron_variant_id,
  25891. feature.*
  25892. FROM
  25893. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25894. 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';
  25895. --- ************************************************
  25896. --- *** relation: intergenic_variant ***
  25897. --- *** relation type: VIEW ***
  25898. --- *** ***
  25899. --- *** A sequence variant located in the interg ***
  25900. --- *** enic region, between genes. ***
  25901. --- ************************************************
  25902. ---
  25903. CREATE VIEW intergenic_variant AS
  25904. SELECT
  25905. feature_id AS intergenic_variant_id,
  25906. feature.*
  25907. FROM
  25908. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25909. WHERE cvterm.name = 'intergenic_variant';
  25910. --- ************************************************
  25911. --- *** relation: splice_site_variant ***
  25912. --- *** relation type: VIEW ***
  25913. --- *** ***
  25914. --- *** A sequence variant that changes the firs ***
  25915. --- *** t two or last two bases of an intron, or ***
  25916. --- *** the 5th base from the start of the intr ***
  25917. --- *** on in the orientation of the transcript. ***
  25918. --- ************************************************
  25919. ---
  25920. CREATE VIEW splice_site_variant AS
  25921. SELECT
  25922. feature_id AS splice_site_variant_id,
  25923. feature.*
  25924. FROM
  25925. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25926. 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';
  25927. --- ************************************************
  25928. --- *** relation: splice_region_variant ***
  25929. --- *** relation type: VIEW ***
  25930. --- *** ***
  25931. --- *** A sequence variant in which a change has ***
  25932. --- *** occurred within the region of the splic ***
  25933. --- *** e site, either within 1-3 bases of the e ***
  25934. --- *** xon or 3-8 bases of the intron. ***
  25935. --- ************************************************
  25936. ---
  25937. CREATE VIEW splice_region_variant AS
  25938. SELECT
  25939. feature_id AS splice_region_variant_id,
  25940. feature.*
  25941. FROM
  25942. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25943. WHERE cvterm.name = 'splice_region_variant';
  25944. --- ************************************************
  25945. --- *** relation: upstream_gene_variant ***
  25946. --- *** relation type: VIEW ***
  25947. --- *** ***
  25948. --- *** A sequence variant located 5' of a gene. ***
  25949. --- ************************************************
  25950. ---
  25951. CREATE VIEW upstream_gene_variant AS
  25952. SELECT
  25953. feature_id AS upstream_gene_variant_id,
  25954. feature.*
  25955. FROM
  25956. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25957. WHERE cvterm.name = '5KB_upstream_variant' OR cvterm.name = '2KB_upstream_variant' OR cvterm.name = 'upstream_gene_variant';
  25958. --- ************************************************
  25959. --- *** relation: downstream_gene_variant ***
  25960. --- *** relation type: VIEW ***
  25961. --- *** ***
  25962. --- *** A sequence variant located 3' of a gene. ***
  25963. --- ************************************************
  25964. ---
  25965. CREATE VIEW downstream_gene_variant AS
  25966. SELECT
  25967. feature_id AS downstream_gene_variant_id,
  25968. feature.*
  25969. FROM
  25970. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25971. WHERE cvterm.name = '5KB_downstream_variant' OR cvterm.name = '500B_downstream_variant' OR cvterm.name = 'downstream_gene_variant';
  25972. --- ************************************************
  25973. --- *** relation: fivekb_downstream_variant ***
  25974. --- *** relation type: VIEW ***
  25975. --- *** ***
  25976. --- *** A sequence variant located within 5 KB o ***
  25977. --- *** f the end of a gene. ***
  25978. --- ************************************************
  25979. ---
  25980. CREATE VIEW fivekb_downstream_variant AS
  25981. SELECT
  25982. feature_id AS fivekb_downstream_variant_id,
  25983. feature.*
  25984. FROM
  25985. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25986. WHERE cvterm.name = '500B_downstream_variant' OR cvterm.name = '5KB_downstream_variant';
  25987. --- ************************************************
  25988. --- *** relation: fivehundred_b_downstream_variant ***
  25989. --- *** relation type: VIEW ***
  25990. --- *** ***
  25991. --- *** A sequence variant located within a half ***
  25992. --- *** KB of the end of a gene. ***
  25993. --- ************************************************
  25994. ---
  25995. CREATE VIEW fivehundred_b_downstream_variant AS
  25996. SELECT
  25997. feature_id AS fivehundred_b_downstream_variant_id,
  25998. feature.*
  25999. FROM
  26000. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26001. WHERE cvterm.name = '500B_downstream_variant';
  26002. --- ************************************************
  26003. --- *** relation: fivekb_upstream_variant ***
  26004. --- *** relation type: VIEW ***
  26005. --- *** ***
  26006. --- *** A sequence variant located within 5KB 5' ***
  26007. --- *** of a gene. ***
  26008. --- ************************************************
  26009. ---
  26010. CREATE VIEW fivekb_upstream_variant AS
  26011. SELECT
  26012. feature_id AS fivekb_upstream_variant_id,
  26013. feature.*
  26014. FROM
  26015. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26016. WHERE cvterm.name = '2KB_upstream_variant' OR cvterm.name = '5KB_upstream_variant';
  26017. --- ************************************************
  26018. --- *** relation: twokb_upstream_variant ***
  26019. --- *** relation type: VIEW ***
  26020. --- *** ***
  26021. --- *** A sequence variant located within 2KB 5' ***
  26022. --- *** of a gene. ***
  26023. --- ************************************************
  26024. ---
  26025. CREATE VIEW twokb_upstream_variant AS
  26026. SELECT
  26027. feature_id AS twokb_upstream_variant_id,
  26028. feature.*
  26029. FROM
  26030. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26031. WHERE cvterm.name = '2KB_upstream_variant';
  26032. --- ************************************************
  26033. --- *** relation: rrna_gene ***
  26034. --- *** relation type: VIEW ***
  26035. --- *** ***
  26036. --- *** A gene that encodes for ribosomal RNA. ***
  26037. --- ************************************************
  26038. ---
  26039. CREATE VIEW rrna_gene AS
  26040. SELECT
  26041. feature_id AS rrna_gene_id,
  26042. feature.*
  26043. FROM
  26044. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26045. WHERE cvterm.name = 'rRNA_gene';
  26046. --- ************************************************
  26047. --- *** relation: pirna_gene ***
  26048. --- *** relation type: VIEW ***
  26049. --- *** ***
  26050. --- *** A gene that encodes for an piwi associat ***
  26051. --- *** ed RNA. ***
  26052. --- ************************************************
  26053. ---
  26054. CREATE VIEW pirna_gene AS
  26055. SELECT
  26056. feature_id AS pirna_gene_id,
  26057. feature.*
  26058. FROM
  26059. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26060. WHERE cvterm.name = 'piRNA_gene';
  26061. --- ************************************************
  26062. --- *** relation: rnase_p_rna_gene ***
  26063. --- *** relation type: VIEW ***
  26064. --- *** ***
  26065. --- *** A gene that encodes an RNase P RNA. ***
  26066. --- ************************************************
  26067. ---
  26068. CREATE VIEW rnase_p_rna_gene AS
  26069. SELECT
  26070. feature_id AS rnase_p_rna_gene_id,
  26071. feature.*
  26072. FROM
  26073. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26074. WHERE cvterm.name = 'RNase_P_RNA_gene';
  26075. --- ************************************************
  26076. --- *** relation: rnase_mrp_rna_gene ***
  26077. --- *** relation type: VIEW ***
  26078. --- *** ***
  26079. --- *** A gene that encodes a RNase_MRP_RNA. ***
  26080. --- ************************************************
  26081. ---
  26082. CREATE VIEW rnase_mrp_rna_gene AS
  26083. SELECT
  26084. feature_id AS rnase_mrp_rna_gene_id,
  26085. feature.*
  26086. FROM
  26087. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26088. WHERE cvterm.name = 'RNase_MRP_RNA_gene';
  26089. --- ************************************************
  26090. --- *** relation: lincrna_gene ***
  26091. --- *** relation type: VIEW ***
  26092. --- *** ***
  26093. --- *** A gene that encodes large intervening no ***
  26094. --- *** n-coding RNA. ***
  26095. --- ************************************************
  26096. ---
  26097. CREATE VIEW lincrna_gene AS
  26098. SELECT
  26099. feature_id AS lincrna_gene_id,
  26100. feature.*
  26101. FROM
  26102. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26103. WHERE cvterm.name = 'lincRNA_gene';
  26104. --- ************************************************
  26105. --- *** relation: mathematically_defined_repeat ***
  26106. --- *** relation type: VIEW ***
  26107. --- *** ***
  26108. --- *** A mathematically defined repeat (MDR) is ***
  26109. --- *** a experimental feature that is determin ***
  26110. --- *** ed by querying overlapping oligomers of ***
  26111. --- *** length k against a database of shotgun s ***
  26112. --- *** equence data and identifying regions in ***
  26113. --- *** the query sequence that exceed a statist ***
  26114. --- *** ically determined threshold of repetitiv ***
  26115. --- *** eness. ***
  26116. --- ************************************************
  26117. ---
  26118. CREATE VIEW mathematically_defined_repeat AS
  26119. SELECT
  26120. feature_id AS mathematically_defined_repeat_id,
  26121. feature.*
  26122. FROM
  26123. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26124. WHERE cvterm.name = 'mathematically_defined_repeat';
  26125. --- ************************************************
  26126. --- *** relation: telomerase_rna_gene ***
  26127. --- *** relation type: VIEW ***
  26128. --- *** ***
  26129. --- *** A telomerase RNA gene is a non coding RN ***
  26130. --- *** A gene the RNA product of which is a com ***
  26131. --- *** ponent of telomerase. ***
  26132. --- ************************************************
  26133. ---
  26134. CREATE VIEW telomerase_rna_gene AS
  26135. SELECT
  26136. feature_id AS telomerase_rna_gene_id,
  26137. feature.*
  26138. FROM
  26139. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26140. WHERE cvterm.name = 'telomerase_RNA_gene';
  26141. --- ************************************************
  26142. --- *** relation: targeting_vector ***
  26143. --- *** relation type: VIEW ***
  26144. --- *** ***
  26145. --- *** An engineered vector that is able to tak ***
  26146. --- *** e part in homologous recombination in a ***
  26147. --- *** host with the intent of introducing site ***
  26148. --- *** specific genomic modifications. ***
  26149. --- ************************************************
  26150. ---
  26151. CREATE VIEW targeting_vector AS
  26152. SELECT
  26153. feature_id AS targeting_vector_id,
  26154. feature.*
  26155. FROM
  26156. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26157. WHERE cvterm.name = 'targeting_vector';
  26158. --- ************************************************
  26159. --- *** relation: genetic_marker ***
  26160. --- *** relation type: VIEW ***
  26161. --- *** ***
  26162. --- *** A measurable sequence feature that varie ***
  26163. --- *** s within a population. ***
  26164. --- ************************************************
  26165. ---
  26166. CREATE VIEW genetic_marker AS
  26167. SELECT
  26168. feature_id AS genetic_marker_id,
  26169. feature.*
  26170. FROM
  26171. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26172. WHERE cvterm.name = 'heritable_phenotypic_marker' OR cvterm.name = 'DArT_marker' OR cvterm.name = 'genetic_marker';
  26173. --- ************************************************
  26174. --- *** relation: dart_marker ***
  26175. --- *** relation type: VIEW ***
  26176. --- *** ***
  26177. --- *** A genetic marker, discovered using Diver ***
  26178. --- *** sity Arrays Technology (DArT) technology ***
  26179. --- *** . ***
  26180. --- ************************************************
  26181. ---
  26182. CREATE VIEW dart_marker AS
  26183. SELECT
  26184. feature_id AS dart_marker_id,
  26185. feature.*
  26186. FROM
  26187. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26188. WHERE cvterm.name = 'DArT_marker';
  26189. --- ************************************************
  26190. --- *** relation: kozak_sequence ***
  26191. --- *** relation type: VIEW ***
  26192. --- *** ***
  26193. --- *** A kind of ribosome entry site, specific ***
  26194. --- *** to Eukaryotic organisms that overlaps pa ***
  26195. --- *** rt of both 5' UTR and CDS sequence. ***
  26196. --- ************************************************
  26197. ---
  26198. CREATE VIEW kozak_sequence AS
  26199. SELECT
  26200. feature_id AS kozak_sequence_id,
  26201. feature.*
  26202. FROM
  26203. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26204. WHERE cvterm.name = 'kozak_sequence';
  26205. --- ************************************************
  26206. --- *** relation: nested_transposon ***
  26207. --- *** relation type: VIEW ***
  26208. --- *** ***
  26209. --- *** A transposon that is disrupted by the in ***
  26210. --- *** sertion of another element. ***
  26211. --- ************************************************
  26212. ---
  26213. CREATE VIEW nested_transposon AS
  26214. SELECT
  26215. feature_id AS nested_transposon_id,
  26216. feature.*
  26217. FROM
  26218. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26219. WHERE cvterm.name = 'nested_transposon';
  26220. --- ************************************************
  26221. --- *** relation: nested_repeat ***
  26222. --- *** relation type: VIEW ***
  26223. --- *** ***
  26224. --- *** A repeat that is disrupted by the insert ***
  26225. --- *** ion of another element. ***
  26226. --- ************************************************
  26227. ---
  26228. CREATE VIEW nested_repeat AS
  26229. SELECT
  26230. feature_id AS nested_repeat_id,
  26231. feature.*
  26232. FROM
  26233. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26234. WHERE cvterm.name = 'nested_tandem_repeat' OR cvterm.name = 'nested_repeat';
  26235. --- ************************************************
  26236. --- *** relation: inframe_variant ***
  26237. --- *** relation type: VIEW ***
  26238. --- *** ***
  26239. --- *** A sequence variant which does not cause ***
  26240. --- *** a disruption of the translational readin ***
  26241. --- *** g frame. ***
  26242. --- ************************************************
  26243. ---
  26244. CREATE VIEW inframe_variant AS
  26245. SELECT
  26246. feature_id AS inframe_variant_id,
  26247. feature.*
  26248. FROM
  26249. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26250. WHERE cvterm.name = 'inframe_codon_gain' OR cvterm.name = 'inframe_codon_loss' OR cvterm.name = 'inframe_variant';
  26251. --- ************************************************
  26252. --- *** relation: inframe_codon_gain ***
  26253. --- *** relation type: VIEW ***
  26254. --- *** ***
  26255. --- *** A sequence variant which gains a codon, ***
  26256. --- *** and does not cause a disruption of the t ***
  26257. --- *** ranslational reading frame. ***
  26258. --- ************************************************
  26259. ---
  26260. CREATE VIEW inframe_codon_gain AS
  26261. SELECT
  26262. feature_id AS inframe_codon_gain_id,
  26263. feature.*
  26264. FROM
  26265. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26266. WHERE cvterm.name = 'inframe_codon_gain';
  26267. --- ************************************************
  26268. --- *** relation: inframe_codon_loss ***
  26269. --- *** relation type: VIEW ***
  26270. --- *** ***
  26271. --- *** A sequence variant which loses a codon, ***
  26272. --- *** and does not cause a disruption of the t ***
  26273. --- *** ranslational reading frame. ***
  26274. --- ************************************************
  26275. ---
  26276. CREATE VIEW inframe_codon_loss AS
  26277. SELECT
  26278. feature_id AS inframe_codon_loss_id,
  26279. feature.*
  26280. FROM
  26281. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26282. WHERE cvterm.name = 'inframe_codon_loss';
  26283. --- ************************************************
  26284. --- *** relation: retinoic_acid_responsive_element ***
  26285. --- *** relation type: VIEW ***
  26286. --- *** ***
  26287. --- *** A transcription factor binding site of v ***
  26288. --- *** ariable direct repeats of the sequence P ***
  26289. --- *** uGGTCA spaced by five nucleotides (DR5) ***
  26290. --- *** found in the promoters of retinoic acid- ***
  26291. --- *** responsive genes, to which retinoic acid ***
  26292. --- *** receptors bind. ***
  26293. --- ************************************************
  26294. ---
  26295. CREATE VIEW retinoic_acid_responsive_element AS
  26296. SELECT
  26297. feature_id AS retinoic_acid_responsive_element_id,
  26298. feature.*
  26299. FROM
  26300. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26301. WHERE cvterm.name = 'retinoic_acid_responsive_element';
  26302. --- ************************************************
  26303. --- *** relation: nucleotide_to_protein_binding_site ***
  26304. --- *** relation type: VIEW ***
  26305. --- *** ***
  26306. --- *** A binding site that, in the nucleotide m ***
  26307. --- *** olecule, interacts selectively and non-c ***
  26308. --- *** ovalently with polypeptide residues. ***
  26309. --- ************************************************
  26310. ---
  26311. CREATE VIEW nucleotide_to_protein_binding_site AS
  26312. SELECT
  26313. feature_id AS nucleotide_to_protein_binding_site_id,
  26314. feature.*
  26315. FROM
  26316. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26317. 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';
  26318. --- ************************************************
  26319. --- *** relation: nucleotide_binding_site ***
  26320. --- *** relation type: VIEW ***
  26321. --- *** ***
  26322. --- *** A binding site that, in the molecule, in ***
  26323. --- *** teracts selectively and non-covalently w ***
  26324. --- *** ith nucleotide residues. ***
  26325. --- ************************************************
  26326. ---
  26327. CREATE VIEW nucleotide_binding_site AS
  26328. SELECT
  26329. feature_id AS nucleotide_binding_site_id,
  26330. feature.*
  26331. FROM
  26332. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26333. 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';
  26334. --- ************************************************
  26335. --- *** relation: metal_binding_site ***
  26336. --- *** relation type: VIEW ***
  26337. --- *** ***
  26338. --- *** A binding site that, in the molecule, in ***
  26339. --- *** teracts selectively and non-covalently w ***
  26340. --- *** ith metal ions. ***
  26341. --- ************************************************
  26342. ---
  26343. CREATE VIEW metal_binding_site AS
  26344. SELECT
  26345. feature_id AS metal_binding_site_id,
  26346. feature.*
  26347. FROM
  26348. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26349. 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';
  26350. --- ************************************************
  26351. --- *** relation: ligand_binding_site ***
  26352. --- *** relation type: VIEW ***
  26353. --- *** ***
  26354. --- *** A binding site that, in the molecule, in ***
  26355. --- *** teracts selectively and non-covalently w ***
  26356. --- *** ith a small molecule such as a drug, or ***
  26357. --- *** hormone. ***
  26358. --- ************************************************
  26359. ---
  26360. CREATE VIEW ligand_binding_site AS
  26361. SELECT
  26362. feature_id AS ligand_binding_site_id,
  26363. feature.*
  26364. FROM
  26365. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26366. WHERE cvterm.name = 'polypeptide_ligand_contact' OR cvterm.name = 'ligand_binding_site';
  26367. --- ************************************************
  26368. --- *** relation: nested_tandem_repeat ***
  26369. --- *** relation type: VIEW ***
  26370. --- *** ***
  26371. --- *** An NTR is a nested repeat of two distinc ***
  26372. --- *** t tandem motifs interspersed with each o ***
  26373. --- *** ther. ***
  26374. --- ************************************************
  26375. ---
  26376. CREATE VIEW nested_tandem_repeat AS
  26377. SELECT
  26378. feature_id AS nested_tandem_repeat_id,
  26379. feature.*
  26380. FROM
  26381. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26382. WHERE cvterm.name = 'nested_tandem_repeat';
  26383. --- ************************************************
  26384. --- *** relation: promoter_element ***
  26385. --- *** relation type: VIEW ***
  26386. --- *** ***
  26387. --- ************************************************
  26388. ---
  26389. CREATE VIEW promoter_element AS
  26390. SELECT
  26391. feature_id AS promoter_element_id,
  26392. feature.*
  26393. FROM
  26394. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26395. 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';
  26396. --- ************************************************
  26397. --- *** relation: core_promoter_element ***
  26398. --- *** relation type: VIEW ***
  26399. --- *** ***
  26400. --- ************************************************
  26401. ---
  26402. CREATE VIEW core_promoter_element AS
  26403. SELECT
  26404. feature_id AS core_promoter_element_id,
  26405. feature.*
  26406. FROM
  26407. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26408. 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';
  26409. --- ************************************************
  26410. --- *** relation: rna_polymerase_ii_tata_box ***
  26411. --- *** relation type: VIEW ***
  26412. --- *** ***
  26413. --- *** A TATA box core promoter of a gene trans ***
  26414. --- *** cribed by RNA polymerase II. ***
  26415. --- ************************************************
  26416. ---
  26417. CREATE VIEW rna_polymerase_ii_tata_box AS
  26418. SELECT
  26419. feature_id AS rna_polymerase_ii_tata_box_id,
  26420. feature.*
  26421. FROM
  26422. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26423. WHERE cvterm.name = 'RNA_polymerase_II_TATA_box';
  26424. --- ************************************************
  26425. --- *** relation: rna_polymerase_iii_tata_box ***
  26426. --- *** relation type: VIEW ***
  26427. --- *** ***
  26428. --- *** A TATA box core promoter of a gene trans ***
  26429. --- *** cribed by RNA polymerase III. ***
  26430. --- ************************************************
  26431. ---
  26432. CREATE VIEW rna_polymerase_iii_tata_box AS
  26433. SELECT
  26434. feature_id AS rna_polymerase_iii_tata_box_id,
  26435. feature.*
  26436. FROM
  26437. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26438. WHERE cvterm.name = 'RNA_polymerase_III_TATA_box';
  26439. --- ************************************************
  26440. --- *** relation: bred_motif ***
  26441. --- *** relation type: VIEW ***
  26442. --- *** ***
  26443. --- *** A core TRNA polymerase II promoter eleme ***
  26444. --- *** nt with consensus (G/A)T(T/G/A)(T/A)(G/T ***
  26445. --- *** )(T/G)(T/G). ***
  26446. --- ************************************************
  26447. ---
  26448. CREATE VIEW bred_motif AS
  26449. SELECT
  26450. feature_id AS bred_motif_id,
  26451. feature.*
  26452. FROM
  26453. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26454. WHERE cvterm.name = 'BREd_motif';
  26455. --- ************************************************
  26456. --- *** relation: dce ***
  26457. --- *** relation type: VIEW ***
  26458. --- *** ***
  26459. --- *** A discontinuous core element of RNA poly ***
  26460. --- *** merase II transcribed genes, situated do ***
  26461. --- *** wnstream of the TSS. It is composed of t ***
  26462. --- *** hree sub elements: SI, SII and SIII. ***
  26463. --- ************************************************
  26464. ---
  26465. CREATE VIEW dce AS
  26466. SELECT
  26467. feature_id AS dce_id,
  26468. feature.*
  26469. FROM
  26470. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26471. WHERE cvterm.name = 'DCE';
  26472. --- ************************************************
  26473. --- *** relation: dce_si ***
  26474. --- *** relation type: VIEW ***
  26475. --- *** ***
  26476. --- *** A sub element of the DCE core promoter e ***
  26477. --- *** lement, with consensus sequence CTTC. ***
  26478. --- ************************************************
  26479. ---
  26480. CREATE VIEW dce_si AS
  26481. SELECT
  26482. feature_id AS dce_si_id,
  26483. feature.*
  26484. FROM
  26485. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26486. WHERE cvterm.name = 'DCE_SI';
  26487. --- ************************************************
  26488. --- *** relation: dce_sii ***
  26489. --- *** relation type: VIEW ***
  26490. --- *** ***
  26491. --- *** A sub element of the DCE core promoter e ***
  26492. --- *** lement with consensus sequence CTGT. ***
  26493. --- ************************************************
  26494. ---
  26495. CREATE VIEW dce_sii AS
  26496. SELECT
  26497. feature_id AS dce_sii_id,
  26498. feature.*
  26499. FROM
  26500. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26501. WHERE cvterm.name = 'DCE_SII';
  26502. --- ************************************************
  26503. --- *** relation: dce_siii ***
  26504. --- *** relation type: VIEW ***
  26505. --- *** ***
  26506. --- *** A sub element of the DCE core promoter e ***
  26507. --- *** lement with consensus sequence AGC. ***
  26508. --- ************************************************
  26509. ---
  26510. CREATE VIEW dce_siii AS
  26511. SELECT
  26512. feature_id AS dce_siii_id,
  26513. feature.*
  26514. FROM
  26515. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26516. WHERE cvterm.name = 'DCE_SIII';
  26517. --- ************************************************
  26518. --- *** relation: proximal_promoter_element ***
  26519. --- *** relation type: VIEW ***
  26520. --- *** ***
  26521. --- ************************************************
  26522. ---
  26523. CREATE VIEW proximal_promoter_element AS
  26524. SELECT
  26525. feature_id AS proximal_promoter_element_id,
  26526. feature.*
  26527. FROM
  26528. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26529. WHERE cvterm.name = 'proximal_promoter_element';
  26530. --- ************************************************
  26531. --- *** relation: rnapol_ii_core_promoter ***
  26532. --- *** relation type: VIEW ***
  26533. --- *** ***
  26534. --- *** The minimal portion of the promoter requ ***
  26535. --- *** ired to properly initiate transcription ***
  26536. --- *** in RNA polymerase II transcribed genes. ***
  26537. --- ************************************************
  26538. ---
  26539. CREATE VIEW rnapol_ii_core_promoter AS
  26540. SELECT
  26541. feature_id AS rnapol_ii_core_promoter_id,
  26542. feature.*
  26543. FROM
  26544. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26545. WHERE cvterm.name = 'RNApol_II_core_promoter';
  26546. --- ************************************************
  26547. --- *** relation: distal_promoter_element ***
  26548. --- *** relation type: VIEW ***
  26549. --- *** ***
  26550. --- ************************************************
  26551. ---
  26552. CREATE VIEW distal_promoter_element AS
  26553. SELECT
  26554. feature_id AS distal_promoter_element_id,
  26555. feature.*
  26556. FROM
  26557. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26558. WHERE cvterm.name = 'distal_promoter_element';
  26559. --- ************************************************
  26560. --- *** relation: bacterial_rnapol_promoter_sigma_70 ***
  26561. --- *** relation type: VIEW ***
  26562. --- *** ***
  26563. --- ************************************************
  26564. ---
  26565. CREATE VIEW bacterial_rnapol_promoter_sigma_70 AS
  26566. SELECT
  26567. feature_id AS bacterial_rnapol_promoter_sigma_70_id,
  26568. feature.*
  26569. FROM
  26570. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26571. WHERE cvterm.name = 'bacterial_RNApol_promoter_sigma_70';
  26572. --- ************************************************
  26573. --- *** relation: bacterial_rnapol_promoter_sigma54 ***
  26574. --- *** relation type: VIEW ***
  26575. --- *** ***
  26576. --- ************************************************
  26577. ---
  26578. CREATE VIEW bacterial_rnapol_promoter_sigma54 AS
  26579. SELECT
  26580. feature_id AS bacterial_rnapol_promoter_sigma54_id,
  26581. feature.*
  26582. FROM
  26583. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26584. WHERE cvterm.name = 'bacterial_RNApol_promoter_sigma54';
  26585. --- ************************************************
  26586. --- *** relation: minus_12_signal ***
  26587. --- *** relation type: VIEW ***
  26588. --- *** ***
  26589. --- *** A conserved region about 12-bp upstream ***
  26590. --- *** of the start point of bacterial transcri ***
  26591. --- *** ption units, involved with sigma factor ***
  26592. --- *** 54. ***
  26593. --- ************************************************
  26594. ---
  26595. CREATE VIEW minus_12_signal AS
  26596. SELECT
  26597. feature_id AS minus_12_signal_id,
  26598. feature.*
  26599. FROM
  26600. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26601. WHERE cvterm.name = 'minus_12_signal';
  26602. --- ************************************************
  26603. --- *** relation: minus_24_signal ***
  26604. --- *** relation type: VIEW ***
  26605. --- *** ***
  26606. --- *** A conserved region about 12-bp upstream ***
  26607. --- *** of the start point of bacterial transcri ***
  26608. --- *** ption units, involved with sigma factor ***
  26609. --- *** 54. ***
  26610. --- ************************************************
  26611. ---
  26612. CREATE VIEW minus_24_signal AS
  26613. SELECT
  26614. feature_id AS minus_24_signal_id,
  26615. feature.*
  26616. FROM
  26617. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26618. WHERE cvterm.name = 'minus_24_signal';
  26619. --- ************************************************
  26620. --- *** relation: a_box_type_1 ***
  26621. --- *** relation type: VIEW ***
  26622. --- *** ***
  26623. --- *** An A box within an RNA polymerase III ty ***
  26624. --- *** pe 1 promoter. ***
  26625. --- ************************************************
  26626. ---
  26627. CREATE VIEW a_box_type_1 AS
  26628. SELECT
  26629. feature_id AS a_box_type_1_id,
  26630. feature.*
  26631. FROM
  26632. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26633. WHERE cvterm.name = 'A_box_type_1';
  26634. --- ************************************************
  26635. --- *** relation: a_box_type_2 ***
  26636. --- *** relation type: VIEW ***
  26637. --- *** ***
  26638. --- *** An A box within an RNA polymerase III ty ***
  26639. --- *** pe 2 promoter. ***
  26640. --- ************************************************
  26641. ---
  26642. CREATE VIEW a_box_type_2 AS
  26643. SELECT
  26644. feature_id AS a_box_type_2_id,
  26645. feature.*
  26646. FROM
  26647. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26648. WHERE cvterm.name = 'A_box_type_2';
  26649. --- ************************************************
  26650. --- *** relation: intermediate_element ***
  26651. --- *** relation type: VIEW ***
  26652. --- *** ***
  26653. --- *** A core promoter region of RNA polymerase ***
  26654. --- *** III type 1 promoters. ***
  26655. --- ************************************************
  26656. ---
  26657. CREATE VIEW intermediate_element AS
  26658. SELECT
  26659. feature_id AS intermediate_element_id,
  26660. feature.*
  26661. FROM
  26662. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26663. WHERE cvterm.name = 'intermediate_element';
  26664. --- ************************************************
  26665. --- *** relation: regulatory_promoter_element ***
  26666. --- *** relation type: VIEW ***
  26667. --- *** ***
  26668. --- *** A promoter element that is not part of t ***
  26669. --- *** he core promoter, but provides the promo ***
  26670. --- *** ter with a specific regulatory region. ***
  26671. --- ************************************************
  26672. ---
  26673. CREATE VIEW regulatory_promoter_element AS
  26674. SELECT
  26675. feature_id AS regulatory_promoter_element_id,
  26676. feature.*
  26677. FROM
  26678. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26679. WHERE cvterm.name = 'proximal_promoter_element' OR cvterm.name = 'distal_promoter_element' OR cvterm.name = 'regulatory_promoter_element';
  26680. --- ************************************************
  26681. --- *** relation: transcription_regulatory_region ***
  26682. --- *** relation type: VIEW ***
  26683. --- *** ***
  26684. --- *** A regulatory region that is involved in ***
  26685. --- *** the control of the process of transcript ***
  26686. --- *** ion. ***
  26687. --- ************************************************
  26688. ---
  26689. CREATE VIEW transcription_regulatory_region AS
  26690. SELECT
  26691. feature_id AS transcription_regulatory_region_id,
  26692. feature.*
  26693. FROM
  26694. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26695. 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';
  26696. --- ************************************************
  26697. --- *** relation: translation_regulatory_region ***
  26698. --- *** relation type: VIEW ***
  26699. --- *** ***
  26700. --- *** A regulatory region that is involved in ***
  26701. --- *** the control of the process of translatio ***
  26702. --- *** n. ***
  26703. --- ************************************************
  26704. ---
  26705. CREATE VIEW translation_regulatory_region AS
  26706. SELECT
  26707. feature_id AS translation_regulatory_region_id,
  26708. feature.*
  26709. FROM
  26710. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26711. WHERE cvterm.name = 'attenuator' OR cvterm.name = 'translation_regulatory_region';
  26712. --- ************************************************
  26713. --- *** relation: recombination_regulatory_region ***
  26714. --- *** relation type: VIEW ***
  26715. --- *** ***
  26716. --- *** A regulatory region that is involved in ***
  26717. --- *** the control of the process of recombinat ***
  26718. --- *** ion. ***
  26719. --- ************************************************
  26720. ---
  26721. CREATE VIEW recombination_regulatory_region AS
  26722. SELECT
  26723. feature_id AS recombination_regulatory_region_id,
  26724. feature.*
  26725. FROM
  26726. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26727. WHERE cvterm.name = 'recombination_regulatory_region';
  26728. --- ************************************************
  26729. --- *** relation: replication_regulatory_region ***
  26730. --- *** relation type: VIEW ***
  26731. --- *** ***
  26732. --- *** A regulatory region that is involved in ***
  26733. --- *** the control of the process of nucleotide ***
  26734. --- *** replication. ***
  26735. --- ************************************************
  26736. ---
  26737. CREATE VIEW replication_regulatory_region AS
  26738. SELECT
  26739. feature_id AS replication_regulatory_region_id,
  26740. feature.*
  26741. FROM
  26742. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26743. WHERE cvterm.name = 'replication_regulatory_region';
  26744. --- ************************************************
  26745. --- *** relation: sequence_motif ***
  26746. --- *** relation type: VIEW ***
  26747. --- *** ***
  26748. --- *** A sequence motif is a nucleotide or amin ***
  26749. --- *** o-acid sequence pattern that may have bi ***
  26750. --- *** ological significance. ***
  26751. --- ************************************************
  26752. ---
  26753. CREATE VIEW sequence_motif AS
  26754. SELECT
  26755. feature_id AS sequence_motif_id,
  26756. feature.*
  26757. FROM
  26758. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26759. 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';
  26760. --- ************************************************
  26761. --- *** relation: experimental_feature_attribute ***
  26762. --- *** relation type: VIEW ***
  26763. --- *** ***
  26764. --- *** An attribute of an experimentally derive ***
  26765. --- *** d feature. ***
  26766. --- ************************************************
  26767. ---
  26768. CREATE VIEW experimental_feature_attribute AS
  26769. SELECT
  26770. feature_id AS experimental_feature_attribute_id,
  26771. feature.*
  26772. FROM
  26773. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26774. WHERE cvterm.name = 'score' OR cvterm.name = 'quality_value' OR cvterm.name = 'experimental_feature_attribute';
  26775. --- ************************************************
  26776. --- *** relation: score ***
  26777. --- *** relation type: VIEW ***
  26778. --- *** ***
  26779. --- *** The score of an experimentally derived f ***
  26780. --- *** eature such as a p-value. ***
  26781. --- ************************************************
  26782. ---
  26783. CREATE VIEW score AS
  26784. SELECT
  26785. feature_id AS score_id,
  26786. feature.*
  26787. FROM
  26788. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26789. WHERE cvterm.name = 'score';
  26790. --- ************************************************
  26791. --- *** relation: quality_value ***
  26792. --- *** relation type: VIEW ***
  26793. --- *** ***
  26794. --- *** An experimental feature attribute that d ***
  26795. --- *** efines the quality of the feature in a q ***
  26796. --- *** uantitative way, such as a phred quality ***
  26797. --- *** score. ***
  26798. --- ************************************************
  26799. ---
  26800. CREATE VIEW quality_value AS
  26801. SELECT
  26802. feature_id AS quality_value_id,
  26803. feature.*
  26804. FROM
  26805. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26806. WHERE cvterm.name = 'quality_value';
  26807. --- ************************************************
  26808. --- *** relation: restriction_enzyme_recognition_site ***
  26809. --- *** relation type: VIEW ***
  26810. --- *** ***
  26811. --- *** The nucleotide region (usually a palindr ***
  26812. --- *** ome) that is recognized by a restriction ***
  26813. --- *** enzyme. This may or may not be equal to ***
  26814. --- *** the restriction enzyme binding site. ***
  26815. --- ************************************************
  26816. ---
  26817. CREATE VIEW restriction_enzyme_recognition_site AS
  26818. SELECT
  26819. feature_id AS restriction_enzyme_recognition_site_id,
  26820. feature.*
  26821. FROM
  26822. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26823. 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';
  26824. --- ************************************************
  26825. --- *** relation: restriction_enzyme_cleavage_junction ***
  26826. --- *** relation type: VIEW ***
  26827. --- *** ***
  26828. --- *** The boundary at which a restriction enzy ***
  26829. --- *** me breaks the nucleotide sequence. ***
  26830. --- ************************************************
  26831. ---
  26832. CREATE VIEW restriction_enzyme_cleavage_junction AS
  26833. SELECT
  26834. feature_id AS restriction_enzyme_cleavage_junction_id,
  26835. feature.*
  26836. FROM
  26837. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26838. 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';
  26839. --- ************************************************
  26840. --- *** relation: five_prime_restriction_enzyme_junction ***
  26841. --- *** relation type: VIEW ***
  26842. --- *** ***
  26843. --- *** The restriction enzyme cleavage junction ***
  26844. --- *** on the 5' strand of the nucleotide sequ ***
  26845. --- *** ence. ***
  26846. --- ************************************************
  26847. ---
  26848. CREATE VIEW five_prime_restriction_enzyme_junction AS
  26849. SELECT
  26850. feature_id AS five_prime_restriction_enzyme_junction_id,
  26851. feature.*
  26852. FROM
  26853. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26854. WHERE cvterm.name = 'five_prime_restriction_enzyme_junction';
  26855. --- ************************************************
  26856. --- *** relation: three_prime_restriction_enzyme_junction ***
  26857. --- *** relation type: VIEW ***
  26858. --- *** ***
  26859. --- ************************************************
  26860. ---
  26861. CREATE VIEW three_prime_restriction_enzyme_junction AS
  26862. SELECT
  26863. feature_id AS three_prime_restriction_enzyme_junction_id,
  26864. feature.*
  26865. FROM
  26866. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26867. WHERE cvterm.name = 'three_prime_restriction_enzyme_junction';
  26868. --- ************************************************
  26869. --- *** relation: blunt_end_restriction_enzyme_cleavage_site ***
  26870. --- *** relation type: VIEW ***
  26871. --- *** ***
  26872. --- ************************************************
  26873. ---
  26874. CREATE VIEW blunt_end_restriction_enzyme_cleavage_site AS
  26875. SELECT
  26876. feature_id AS blunt_end_restriction_enzyme_cleavage_site_id,
  26877. feature.*
  26878. FROM
  26879. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26880. WHERE cvterm.name = 'blunt_end_restriction_enzyme_cleavage_site';
  26881. --- ************************************************
  26882. --- *** relation: sticky_end_restriction_enzyme_cleavage_site ***
  26883. --- *** relation type: VIEW ***
  26884. --- *** ***
  26885. --- ************************************************
  26886. ---
  26887. CREATE VIEW sticky_end_restriction_enzyme_cleavage_site AS
  26888. SELECT
  26889. feature_id AS sticky_end_restriction_enzyme_cleavage_site_id,
  26890. feature.*
  26891. FROM
  26892. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26893. WHERE cvterm.name = 'sticky_end_restriction_enzyme_cleavage_site';
  26894. --- ************************************************
  26895. --- *** relation: blunt_end_restriction_enzyme_cleavage_junction ***
  26896. --- *** relation type: VIEW ***
  26897. --- *** ***
  26898. --- *** A restriction enzyme cleavage site where ***
  26899. --- *** both strands are cut at the same positi ***
  26900. --- *** on. ***
  26901. --- ************************************************
  26902. ---
  26903. CREATE VIEW blunt_end_restriction_enzyme_cleavage_junction AS
  26904. SELECT
  26905. feature_id AS blunt_end_restriction_enzyme_cleavage_junction_id,
  26906. feature.*
  26907. FROM
  26908. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26909. WHERE cvterm.name = 'blunt_end_restriction_enzyme_cleavage_junction';
  26910. --- ************************************************
  26911. --- *** relation: single_strand_restriction_enzyme_cleavage_site ***
  26912. --- *** relation type: VIEW ***
  26913. --- *** ***
  26914. --- *** A restriction enzyme cleavage site where ***
  26915. --- *** by only one strand is cut. ***
  26916. --- ************************************************
  26917. ---
  26918. CREATE VIEW single_strand_restriction_enzyme_cleavage_site AS
  26919. SELECT
  26920. feature_id AS single_strand_restriction_enzyme_cleavage_site_id,
  26921. feature.*
  26922. FROM
  26923. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26924. 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';
  26925. --- ************************************************
  26926. --- *** relation: restriction_enzyme_single_strand_overhang ***
  26927. --- *** relation type: VIEW ***
  26928. --- *** ***
  26929. --- *** A terminal region of DNA sequence where ***
  26930. --- *** the end of the region is not blunt ended ***
  26931. --- *** . ***
  26932. --- ************************************************
  26933. ---
  26934. CREATE VIEW restriction_enzyme_single_strand_overhang AS
  26935. SELECT
  26936. feature_id AS restriction_enzyme_single_strand_overhang_id,
  26937. feature.*
  26938. FROM
  26939. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26940. WHERE cvterm.name = 'restriction_enzyme_single_strand_overhang';
  26941. --- ************************************************
  26942. --- *** relation: experimentally_defined_binding_region ***
  26943. --- *** relation type: VIEW ***
  26944. --- *** ***
  26945. --- *** A region that has been implicated in bin ***
  26946. --- *** ding although the exact coordinates of b ***
  26947. --- *** inding may be unknown. ***
  26948. --- ************************************************
  26949. ---
  26950. CREATE VIEW experimentally_defined_binding_region AS
  26951. SELECT
  26952. feature_id AS experimentally_defined_binding_region_id,
  26953. feature.*
  26954. FROM
  26955. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26956. WHERE cvterm.name = 'CHiP_seq_region' OR cvterm.name = 'experimentally_defined_binding_region';
  26957. --- ************************************************
  26958. --- *** relation: chip_seq_region ***
  26959. --- *** relation type: VIEW ***
  26960. --- *** ***
  26961. --- *** A region of sequence identified by CHiP ***
  26962. --- *** seq technology to contain a protein bind ***
  26963. --- *** ing site. ***
  26964. --- ************************************************
  26965. ---
  26966. CREATE VIEW chip_seq_region AS
  26967. SELECT
  26968. feature_id AS chip_seq_region_id,
  26969. feature.*
  26970. FROM
  26971. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26972. WHERE cvterm.name = 'CHiP_seq_region';
  26973. --- ************************************************
  26974. --- *** relation: aspe_primer ***
  26975. --- *** relation type: VIEW ***
  26976. --- *** ***
  26977. --- *** "A primer containing an SNV at the 3' en ***
  26978. --- *** d for accurate genotyping. ***
  26979. --- ************************************************
  26980. ---
  26981. CREATE VIEW aspe_primer AS
  26982. SELECT
  26983. feature_id AS aspe_primer_id,
  26984. feature.*
  26985. FROM
  26986. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26987. WHERE cvterm.name = 'ASPE_primer';
  26988. --- ************************************************
  26989. --- *** relation: dcaps_primer ***
  26990. --- *** relation type: VIEW ***
  26991. --- *** ***
  26992. --- *** A primer with one or more mis-matches to ***
  26993. --- *** the DNA template corresponding to a pos ***
  26994. --- *** ition within a restriction enzyme recogn ***
  26995. --- *** ition site. ***
  26996. --- ************************************************
  26997. ---
  26998. CREATE VIEW dcaps_primer AS
  26999. SELECT
  27000. feature_id AS dcaps_primer_id,
  27001. feature.*
  27002. FROM
  27003. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27004. WHERE cvterm.name = 'dCAPS_primer';
  27005. --- ************************************************
  27006. --- *** relation: histone_modification ***
  27007. --- *** relation type: VIEW ***
  27008. --- *** ***
  27009. --- *** Histone modification is a post translati ***
  27010. --- *** onally modified region whereby residues ***
  27011. --- *** of the histone protein are modified by m ***
  27012. --- *** ethylation, acetylation, phosphorylation ***
  27013. --- *** , ubiquitination, sumoylation, citrullin ***
  27014. --- *** ation, or ADP-ribosylation. ***
  27015. --- ************************************************
  27016. ---
  27017. CREATE VIEW histone_modification AS
  27018. SELECT
  27019. feature_id AS histone_modification_id,
  27020. feature.*
  27021. FROM
  27022. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27023. 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';
  27024. --- ************************************************
  27025. --- *** relation: histone_methylation_site ***
  27026. --- *** relation type: VIEW ***
  27027. --- *** ***
  27028. --- *** A histone modification site where the mo ***
  27029. --- *** dification is the methylation of the res ***
  27030. --- *** idue. ***
  27031. --- ************************************************
  27032. ---
  27033. CREATE VIEW histone_methylation_site AS
  27034. SELECT
  27035. feature_id AS histone_methylation_site_id,
  27036. feature.*
  27037. FROM
  27038. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27039. 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';
  27040. --- ************************************************
  27041. --- *** relation: histone_acetylation_site ***
  27042. --- *** relation type: VIEW ***
  27043. --- *** ***
  27044. --- *** A histone modification where the modific ***
  27045. --- *** ation is the acylation of the residue. ***
  27046. --- ************************************************
  27047. ---
  27048. CREATE VIEW histone_acetylation_site AS
  27049. SELECT
  27050. feature_id AS histone_acetylation_site_id,
  27051. feature.*
  27052. FROM
  27053. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27054. 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';
  27055. --- ************************************************
  27056. --- *** relation: h3k9_acetylation_site ***
  27057. --- *** relation type: VIEW ***
  27058. --- *** ***
  27059. --- *** A kind of histone modification site, whe ***
  27060. --- *** reby the 9th residue (a lysine), from th ***
  27061. --- *** e start of the H3 histone protein is acy ***
  27062. --- *** lated. ***
  27063. --- ************************************************
  27064. ---
  27065. CREATE VIEW h3k9_acetylation_site AS
  27066. SELECT
  27067. feature_id AS h3k9_acetylation_site_id,
  27068. feature.*
  27069. FROM
  27070. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27071. WHERE cvterm.name = 'H3K9_acetylation_site';
  27072. --- ************************************************
  27073. --- *** relation: h3k14_acetylation_site ***
  27074. --- *** relation type: VIEW ***
  27075. --- *** ***
  27076. --- *** A kind of histone modification site, whe ***
  27077. --- *** reby the 14th residue (a lysine), from t ***
  27078. --- *** he start of the H3 histone protein is ac ***
  27079. --- *** ylated. ***
  27080. --- ************************************************
  27081. ---
  27082. CREATE VIEW h3k14_acetylation_site AS
  27083. SELECT
  27084. feature_id AS h3k14_acetylation_site_id,
  27085. feature.*
  27086. FROM
  27087. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27088. WHERE cvterm.name = 'H3K14_acetylation_site';
  27089. --- ************************************************
  27090. --- *** relation: h3k4_monomethylation_site ***
  27091. --- *** relation type: VIEW ***
  27092. --- *** ***
  27093. --- *** A kind of histone modification, whereby ***
  27094. --- *** the 4th residue (a lysine), from the sta ***
  27095. --- *** rt of the H3 protein is mono-methylated. ***
  27096. --- ************************************************
  27097. ---
  27098. CREATE VIEW h3k4_monomethylation_site AS
  27099. SELECT
  27100. feature_id AS h3k4_monomethylation_site_id,
  27101. feature.*
  27102. FROM
  27103. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27104. WHERE cvterm.name = 'H3K4_monomethylation_site';
  27105. --- ************************************************
  27106. --- *** relation: h3k4_trimethylation ***
  27107. --- *** relation type: VIEW ***
  27108. --- *** ***
  27109. --- *** A kind of histone modification site, whe ***
  27110. --- *** reby the 4th residue (a lysine), from th ***
  27111. --- *** e start of the H3 protein is tri-methyla ***
  27112. --- *** ted. ***
  27113. --- ************************************************
  27114. ---
  27115. CREATE VIEW h3k4_trimethylation AS
  27116. SELECT
  27117. feature_id AS h3k4_trimethylation_id,
  27118. feature.*
  27119. FROM
  27120. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27121. WHERE cvterm.name = 'H3K4_trimethylation';
  27122. --- ************************************************
  27123. --- *** relation: h3k9_trimethylation_site ***
  27124. --- *** relation type: VIEW ***
  27125. --- *** ***
  27126. --- *** A kind of histone modification site, whe ***
  27127. --- *** reby the 9th residue (a lysine), from th ***
  27128. --- *** e start of the H3 histone protein is tri ***
  27129. --- *** -methylated. ***
  27130. --- ************************************************
  27131. ---
  27132. CREATE VIEW h3k9_trimethylation_site AS
  27133. SELECT
  27134. feature_id AS h3k9_trimethylation_site_id,
  27135. feature.*
  27136. FROM
  27137. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27138. WHERE cvterm.name = 'H3K9_trimethylation_site';
  27139. --- ************************************************
  27140. --- *** relation: h3k27_monomethylation_site ***
  27141. --- *** relation type: VIEW ***
  27142. --- *** ***
  27143. --- *** A kind of histone modification site, whe ***
  27144. --- *** reby the 27th residue (a lysine), from t ***
  27145. --- *** he start of the H3 histone protein is mo ***
  27146. --- *** no-methylated. ***
  27147. --- ************************************************
  27148. ---
  27149. CREATE VIEW h3k27_monomethylation_site AS
  27150. SELECT
  27151. feature_id AS h3k27_monomethylation_site_id,
  27152. feature.*
  27153. FROM
  27154. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27155. WHERE cvterm.name = 'H3K27_monomethylation_site';
  27156. --- ************************************************
  27157. --- *** relation: h3k27_trimethylation_site ***
  27158. --- *** relation type: VIEW ***
  27159. --- *** ***
  27160. --- *** A kind of histone modification site, whe ***
  27161. --- *** reby the 27th residue (a lysine), from t ***
  27162. --- *** he start of the H3 histone protein is tr ***
  27163. --- *** i-methylated. ***
  27164. --- ************************************************
  27165. ---
  27166. CREATE VIEW h3k27_trimethylation_site AS
  27167. SELECT
  27168. feature_id AS h3k27_trimethylation_site_id,
  27169. feature.*
  27170. FROM
  27171. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27172. WHERE cvterm.name = 'H3K27_trimethylation_site';
  27173. --- ************************************************
  27174. --- *** relation: h3k79_monomethylation_site ***
  27175. --- *** relation type: VIEW ***
  27176. --- *** ***
  27177. --- *** A kind of histone modification site, whe ***
  27178. --- *** reby the 79th residue (a lysine), from t ***
  27179. --- *** he start of the H3 histone protein is mo ***
  27180. --- *** no- methylated. ***
  27181. --- ************************************************
  27182. ---
  27183. CREATE VIEW h3k79_monomethylation_site AS
  27184. SELECT
  27185. feature_id AS h3k79_monomethylation_site_id,
  27186. feature.*
  27187. FROM
  27188. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27189. WHERE cvterm.name = 'H3K79_monomethylation_site';
  27190. --- ************************************************
  27191. --- *** relation: h3k79_dimethylation_site ***
  27192. --- *** relation type: VIEW ***
  27193. --- *** ***
  27194. --- *** A kind of histone modification site, whe ***
  27195. --- *** reby the 79th residue (a lysine), from t ***
  27196. --- *** he start of the H3 histone protein is di ***
  27197. --- *** -methylated. ***
  27198. --- ************************************************
  27199. ---
  27200. CREATE VIEW h3k79_dimethylation_site AS
  27201. SELECT
  27202. feature_id AS h3k79_dimethylation_site_id,
  27203. feature.*
  27204. FROM
  27205. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27206. WHERE cvterm.name = 'H3K79_dimethylation_site';
  27207. --- ************************************************
  27208. --- *** relation: h3k79_trimethylation_site ***
  27209. --- *** relation type: VIEW ***
  27210. --- *** ***
  27211. --- *** A kind of histone modification site, whe ***
  27212. --- *** reby the 79th residue (a lysine), from t ***
  27213. --- *** he start of the H3 histone protein is tr ***
  27214. --- *** i-methylated. ***
  27215. --- ************************************************
  27216. ---
  27217. CREATE VIEW h3k79_trimethylation_site AS
  27218. SELECT
  27219. feature_id AS h3k79_trimethylation_site_id,
  27220. feature.*
  27221. FROM
  27222. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27223. WHERE cvterm.name = 'H3K79_trimethylation_site';
  27224. --- ************************************************
  27225. --- *** relation: h4k20_monomethylation_site ***
  27226. --- *** relation type: VIEW ***
  27227. --- *** ***
  27228. --- *** A kind of histone modification site, whe ***
  27229. --- *** reby the 20th residue (a lysine), from t ***
  27230. --- *** he start of the H34histone protein is mo ***
  27231. --- *** no-methylated. ***
  27232. --- ************************************************
  27233. ---
  27234. CREATE VIEW h4k20_monomethylation_site AS
  27235. SELECT
  27236. feature_id AS h4k20_monomethylation_site_id,
  27237. feature.*
  27238. FROM
  27239. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27240. WHERE cvterm.name = 'H4K20_monomethylation_site';
  27241. --- ************************************************
  27242. --- *** relation: h2bk5_monomethylation_site ***
  27243. --- *** relation type: VIEW ***
  27244. --- *** ***
  27245. --- *** A kind of histone modification site, whe ***
  27246. --- *** reby the 5th residue (a lysine), from th ***
  27247. --- *** e start of the H2B protein is methylated ***
  27248. --- *** . ***
  27249. --- ************************************************
  27250. ---
  27251. CREATE VIEW h2bk5_monomethylation_site AS
  27252. SELECT
  27253. feature_id AS h2bk5_monomethylation_site_id,
  27254. feature.*
  27255. FROM
  27256. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27257. WHERE cvterm.name = 'H2BK5_monomethylation_site';
  27258. --- ************************************************
  27259. --- *** relation: isre ***
  27260. --- *** relation type: VIEW ***
  27261. --- *** ***
  27262. --- *** An ISRE is a transcriptional cis regulat ***
  27263. --- *** ory region, containing the consensus reg ***
  27264. --- *** ion: YAGTTTC(A/T)YTTTYCC, responsible fo ***
  27265. --- *** r increased transcription via interferon ***
  27266. --- *** binding. ***
  27267. --- ************************************************
  27268. ---
  27269. CREATE VIEW isre AS
  27270. SELECT
  27271. feature_id AS isre_id,
  27272. feature.*
  27273. FROM
  27274. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27275. WHERE cvterm.name = 'ISRE';
  27276. --- ************************************************
  27277. --- *** relation: histone_ubiqitination_site ***
  27278. --- *** relation type: VIEW ***
  27279. --- *** ***
  27280. --- *** A histone modification site where ubiqui ***
  27281. --- *** tin may be added. ***
  27282. --- ************************************************
  27283. ---
  27284. CREATE VIEW histone_ubiqitination_site AS
  27285. SELECT
  27286. feature_id AS histone_ubiqitination_site_id,
  27287. feature.*
  27288. FROM
  27289. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27290. WHERE cvterm.name = 'H2B_ubiquitination_site' OR cvterm.name = 'histone_ubiqitination_site';
  27291. --- ************************************************
  27292. --- *** relation: h2b_ubiquitination_site ***
  27293. --- *** relation type: VIEW ***
  27294. --- *** ***
  27295. --- *** A histone modification site on H2B where ***
  27296. --- *** ubiquitin may be added. ***
  27297. --- ************************************************
  27298. ---
  27299. CREATE VIEW h2b_ubiquitination_site AS
  27300. SELECT
  27301. feature_id AS h2b_ubiquitination_site_id,
  27302. feature.*
  27303. FROM
  27304. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27305. WHERE cvterm.name = 'H2B_ubiquitination_site';
  27306. --- ************************************************
  27307. --- *** relation: h3k18_acetylation_site ***
  27308. --- *** relation type: VIEW ***
  27309. --- *** ***
  27310. --- *** A kind of histone modification site, whe ***
  27311. --- *** reby the 14th residue (a lysine), from t ***
  27312. --- *** he start of the H3 histone protein is ac ***
  27313. --- *** ylated. ***
  27314. --- ************************************************
  27315. ---
  27316. CREATE VIEW h3k18_acetylation_site AS
  27317. SELECT
  27318. feature_id AS h3k18_acetylation_site_id,
  27319. feature.*
  27320. FROM
  27321. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27322. WHERE cvterm.name = 'H3K18_acetylation_site';
  27323. --- ************************************************
  27324. --- *** relation: h3k23_acylation_site ***
  27325. --- *** relation type: VIEW ***
  27326. --- *** ***
  27327. --- *** A kind of histone modification, whereby ***
  27328. --- *** the 23rd residue (a lysine), from the st ***
  27329. --- *** art of the H3 histone protein is acylate ***
  27330. --- *** d. ***
  27331. --- ************************************************
  27332. ---
  27333. CREATE VIEW h3k23_acylation_site AS
  27334. SELECT
  27335. feature_id AS h3k23_acylation_site_id,
  27336. feature.*
  27337. FROM
  27338. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27339. WHERE cvterm.name = 'H3K23_acylation site';
  27340. --- ************************************************
  27341. --- *** relation: epigenetically_modified_region ***
  27342. --- *** relation type: VIEW ***
  27343. --- *** ***
  27344. --- *** A biological region implicated in inheri ***
  27345. --- *** ted changes caused by mechanisms other t ***
  27346. --- *** han changes in the underlying DNA sequen ***
  27347. --- *** ce. ***
  27348. --- ************************************************
  27349. ---
  27350. CREATE VIEW epigenetically_modified_region AS
  27351. SELECT
  27352. feature_id AS epigenetically_modified_region_id,
  27353. feature.*
  27354. FROM
  27355. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27356. 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';
  27357. --- ************************************************
  27358. --- *** relation: h3k27_acylation_site ***
  27359. --- *** relation type: VIEW ***
  27360. --- *** ***
  27361. --- *** A kind of histone modification site, whe ***
  27362. --- *** reby the 27th residue (a lysine), from t ***
  27363. --- *** he start of the H3 histone protein is ac ***
  27364. --- *** ylated. ***
  27365. --- ************************************************
  27366. ---
  27367. CREATE VIEW h3k27_acylation_site AS
  27368. SELECT
  27369. feature_id AS h3k27_acylation_site_id,
  27370. feature.*
  27371. FROM
  27372. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27373. WHERE cvterm.name = 'H3K27_acylation_site';
  27374. --- ************************************************
  27375. --- *** relation: h3k36_monomethylation_site ***
  27376. --- *** relation type: VIEW ***
  27377. --- *** ***
  27378. --- *** A kind of histone modification site, whe ***
  27379. --- *** reby the 36th residue (a lysine), from t ***
  27380. --- *** he start of the H3 histone protein is mo ***
  27381. --- *** no-methylated. ***
  27382. --- ************************************************
  27383. ---
  27384. CREATE VIEW h3k36_monomethylation_site AS
  27385. SELECT
  27386. feature_id AS h3k36_monomethylation_site_id,
  27387. feature.*
  27388. FROM
  27389. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27390. WHERE cvterm.name = 'H3K36_monomethylation_site';
  27391. --- ************************************************
  27392. --- *** relation: h3k36_dimethylation_site ***
  27393. --- *** relation type: VIEW ***
  27394. --- *** ***
  27395. --- *** A kind of histone modification site, whe ***
  27396. --- *** reby the 36th residue (a lysine), from t ***
  27397. --- *** he start of the H3 histone protein is di ***
  27398. --- *** methylated. ***
  27399. --- ************************************************
  27400. ---
  27401. CREATE VIEW h3k36_dimethylation_site AS
  27402. SELECT
  27403. feature_id AS h3k36_dimethylation_site_id,
  27404. feature.*
  27405. FROM
  27406. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27407. WHERE cvterm.name = 'H3K36_dimethylation_site';
  27408. --- ************************************************
  27409. --- *** relation: h3k36_trimethylation_site ***
  27410. --- *** relation type: VIEW ***
  27411. --- *** ***
  27412. --- *** A kind of histone modification site, whe ***
  27413. --- *** reby the 36th residue (a lysine), from t ***
  27414. --- *** he start of the H3 histone protein is tr ***
  27415. --- *** i-methylated. ***
  27416. --- ************************************************
  27417. ---
  27418. CREATE VIEW h3k36_trimethylation_site AS
  27419. SELECT
  27420. feature_id AS h3k36_trimethylation_site_id,
  27421. feature.*
  27422. FROM
  27423. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27424. WHERE cvterm.name = 'H3K36_trimethylation_site';
  27425. --- ************************************************
  27426. --- *** relation: h3k4_dimethylation_site ***
  27427. --- *** relation type: VIEW ***
  27428. --- *** ***
  27429. --- *** A kind of histone modification site, whe ***
  27430. --- *** reby the 4th residue (a lysine), from th ***
  27431. --- *** e start of the H3 histone protein is di- ***
  27432. --- *** methylated. ***
  27433. --- ************************************************
  27434. ---
  27435. CREATE VIEW h3k4_dimethylation_site AS
  27436. SELECT
  27437. feature_id AS h3k4_dimethylation_site_id,
  27438. feature.*
  27439. FROM
  27440. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27441. WHERE cvterm.name = 'H3K4_dimethylation_site';
  27442. --- ************************************************
  27443. --- *** relation: h3k27_dimethylation_site ***
  27444. --- *** relation type: VIEW ***
  27445. --- *** ***
  27446. --- *** A kind of histone modification site, whe ***
  27447. --- *** reby the 27th residue (a lysine), from t ***
  27448. --- *** he start of the H3 histone protein is di ***
  27449. --- *** -methylated. ***
  27450. --- ************************************************
  27451. ---
  27452. CREATE VIEW h3k27_dimethylation_site AS
  27453. SELECT
  27454. feature_id AS h3k27_dimethylation_site_id,
  27455. feature.*
  27456. FROM
  27457. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27458. WHERE cvterm.name = 'H3K27_dimethylation_site';
  27459. --- ************************************************
  27460. --- *** relation: h3k9_monomethylation_site ***
  27461. --- *** relation type: VIEW ***
  27462. --- *** ***
  27463. --- *** A kind of histone modification site, whe ***
  27464. --- *** reby the 9th residue (a lysine), from th ***
  27465. --- *** e start of the H3 histone protein is mon ***
  27466. --- *** o-methylated. ***
  27467. --- ************************************************
  27468. ---
  27469. CREATE VIEW h3k9_monomethylation_site AS
  27470. SELECT
  27471. feature_id AS h3k9_monomethylation_site_id,
  27472. feature.*
  27473. FROM
  27474. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27475. WHERE cvterm.name = 'H3K9_monomethylation_site';
  27476. --- ************************************************
  27477. --- *** relation: h3k9_dimethylation_site ***
  27478. --- *** relation type: VIEW ***
  27479. --- *** ***
  27480. --- *** A kind of histone modification site, whe ***
  27481. --- *** reby the 9th residue (a lysine), from th ***
  27482. --- *** e start of the H3 histone protein may be ***
  27483. --- *** dimethylated. ***
  27484. --- ************************************************
  27485. ---
  27486. CREATE VIEW h3k9_dimethylation_site AS
  27487. SELECT
  27488. feature_id AS h3k9_dimethylation_site_id,
  27489. feature.*
  27490. FROM
  27491. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27492. WHERE cvterm.name = 'H3K9_dimethylation_site';
  27493. --- ************************************************
  27494. --- *** relation: h4k16_acylation_site ***
  27495. --- *** relation type: VIEW ***
  27496. --- *** ***
  27497. --- *** A kind of histone modification site, whe ***
  27498. --- *** reby the 16th residue (a lysine), from t ***
  27499. --- *** he start of the H4 histone protein is ac ***
  27500. --- *** ylated. ***
  27501. --- ************************************************
  27502. ---
  27503. CREATE VIEW h4k16_acylation_site AS
  27504. SELECT
  27505. feature_id AS h4k16_acylation_site_id,
  27506. feature.*
  27507. FROM
  27508. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27509. WHERE cvterm.name = 'H4K16_acylation_site';
  27510. --- ************************************************
  27511. --- *** relation: h4k5_acylation_site ***
  27512. --- *** relation type: VIEW ***
  27513. --- *** ***
  27514. --- *** A kind of histone modification site, whe ***
  27515. --- *** reby the 5th residue (a lysine), from th ***
  27516. --- *** e start of the H4 histone protein is acy ***
  27517. --- *** lated. ***
  27518. --- ************************************************
  27519. ---
  27520. CREATE VIEW h4k5_acylation_site AS
  27521. SELECT
  27522. feature_id AS h4k5_acylation_site_id,
  27523. feature.*
  27524. FROM
  27525. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27526. WHERE cvterm.name = 'H4K5_acylation_site';
  27527. --- ************************************************
  27528. --- *** relation: h4k8_acylation_site ***
  27529. --- *** relation type: VIEW ***
  27530. --- *** ***
  27531. --- *** A kind of histone modification site, whe ***
  27532. --- *** reby the 8th residue (a lysine), from th ***
  27533. --- *** e start of the H4 histone protein is acy ***
  27534. --- *** lated. ***
  27535. --- ************************************************
  27536. ---
  27537. CREATE VIEW h4k8_acylation_site AS
  27538. SELECT
  27539. feature_id AS h4k8_acylation_site_id,
  27540. feature.*
  27541. FROM
  27542. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27543. WHERE cvterm.name = 'H4K8_acylation site';
  27544. --- ************************************************
  27545. --- *** relation: h3k27_methylation_site ***
  27546. --- *** relation type: VIEW ***
  27547. --- *** ***
  27548. --- *** A kind of histone modification site, whe ***
  27549. --- *** reby the 27th residue (a lysine), from t ***
  27550. --- *** he start of the H3 histone protein is me ***
  27551. --- *** thylated. ***
  27552. --- ************************************************
  27553. ---
  27554. CREATE VIEW h3k27_methylation_site AS
  27555. SELECT
  27556. feature_id AS h3k27_methylation_site_id,
  27557. feature.*
  27558. FROM
  27559. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27560. WHERE cvterm.name = 'H3K27_monomethylation_site' OR cvterm.name = 'H3K27_trimethylation_site' OR cvterm.name = 'H3K27_dimethylation_site' OR cvterm.name = 'H3K27_methylation_site';
  27561. --- ************************************************
  27562. --- *** relation: h3k36_methylation_site ***
  27563. --- *** relation type: VIEW ***
  27564. --- *** ***
  27565. --- *** A kind of histone modification site, whe ***
  27566. --- *** reby the 36th residue (a lysine), from t ***
  27567. --- *** he start of the H3 histone protein is me ***
  27568. --- *** thylated. ***
  27569. --- ************************************************
  27570. ---
  27571. CREATE VIEW h3k36_methylation_site AS
  27572. SELECT
  27573. feature_id AS h3k36_methylation_site_id,
  27574. feature.*
  27575. FROM
  27576. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27577. WHERE cvterm.name = 'H3K36_monomethylation_site' OR cvterm.name = 'H3K36_dimethylation_site' OR cvterm.name = 'H3K36_trimethylation_site' OR cvterm.name = 'H3K36_methylation_site';
  27578. --- ************************************************
  27579. --- *** relation: h3k4_methylation_site ***
  27580. --- *** relation type: VIEW ***
  27581. --- *** ***
  27582. --- *** A kind of histone modification, whereby ***
  27583. --- *** the 4th residue (a lysine), from the sta ***
  27584. --- *** rt of the H3 protein is methylated. ***
  27585. --- ************************************************
  27586. ---
  27587. CREATE VIEW h3k4_methylation_site AS
  27588. SELECT
  27589. feature_id AS h3k4_methylation_site_id,
  27590. feature.*
  27591. FROM
  27592. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27593. WHERE cvterm.name = 'H3K4_monomethylation_site' OR cvterm.name = 'H3K4_trimethylation' OR cvterm.name = 'H3K4_dimethylation_site' OR cvterm.name = 'H3K4_methylation_site';
  27594. --- ************************************************
  27595. --- *** relation: h3k79_methylation_site ***
  27596. --- *** relation type: VIEW ***
  27597. --- *** ***
  27598. --- *** A kind of histone modification site, whe ***
  27599. --- *** reby the 79th residue (a lysine), from t ***
  27600. --- *** he start of the H3 histone protein is me ***
  27601. --- *** thylated. ***
  27602. --- ************************************************
  27603. ---
  27604. CREATE VIEW h3k79_methylation_site AS
  27605. SELECT
  27606. feature_id AS h3k79_methylation_site_id,
  27607. feature.*
  27608. FROM
  27609. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27610. WHERE cvterm.name = 'H3K79_monomethylation_site' OR cvterm.name = 'H3K79_dimethylation_site' OR cvterm.name = 'H3K79_trimethylation_site' OR cvterm.name = 'H3K79_methylation_site';
  27611. --- ************************************************
  27612. --- *** relation: h3k9_methylation_site ***
  27613. --- *** relation type: VIEW ***
  27614. --- *** ***
  27615. --- *** A kind of histone modification site, whe ***
  27616. --- *** reby the 9th residue (a lysine), from th ***
  27617. --- *** e start of the H3 histone protein is met ***
  27618. --- *** hylated. ***
  27619. --- ************************************************
  27620. ---
  27621. CREATE VIEW h3k9_methylation_site AS
  27622. SELECT
  27623. feature_id AS h3k9_methylation_site_id,
  27624. feature.*
  27625. FROM
  27626. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27627. WHERE cvterm.name = 'H3K9_trimethylation_site' OR cvterm.name = 'H3K9_monomethylation_site' OR cvterm.name = 'H3K9_dimethylation_site' OR cvterm.name = 'H3K9_methylation_site';
  27628. --- ************************************************
  27629. --- *** relation: histone_acylation_region ***
  27630. --- *** relation type: VIEW ***
  27631. --- *** ***
  27632. --- *** A histone modification, whereby the hist ***
  27633. --- *** one protein is acylated at multiple site ***
  27634. --- *** s in a region. ***
  27635. --- ************************************************
  27636. ---
  27637. CREATE VIEW histone_acylation_region AS
  27638. SELECT
  27639. feature_id AS histone_acylation_region_id,
  27640. feature.*
  27641. FROM
  27642. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27643. WHERE cvterm.name = 'H4K_acylation_region' OR cvterm.name = 'histone_acylation_region';
  27644. --- ************************************************
  27645. --- *** relation: h4k_acylation_region ***
  27646. --- *** relation type: VIEW ***
  27647. --- *** ***
  27648. --- *** A region of the H4 histone whereby multi ***
  27649. --- *** ple lysines are acylated. ***
  27650. --- ************************************************
  27651. ---
  27652. CREATE VIEW h4k_acylation_region AS
  27653. SELECT
  27654. feature_id AS h4k_acylation_region_id,
  27655. feature.*
  27656. FROM
  27657. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27658. WHERE cvterm.name = 'H4K_acylation_region';
  27659. --- ************************************************
  27660. --- *** relation: gene_with_non_canonical_start_codon ***
  27661. --- *** relation type: VIEW ***
  27662. --- *** ***
  27663. --- *** A gene with a start codon other than AUG ***
  27664. --- *** . ***
  27665. --- ************************************************
  27666. ---
  27667. CREATE VIEW gene_with_non_canonical_start_codon AS
  27668. SELECT
  27669. feature_id AS gene_with_non_canonical_start_codon_id,
  27670. feature.*
  27671. FROM
  27672. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27673. WHERE cvterm.name = 'gene_with_start_codon_CUG' OR cvterm.name = 'gene_with_non_canonical_start_codon';
  27674. --- ************************************************
  27675. --- *** relation: gene_with_start_codon_cug ***
  27676. --- *** relation type: VIEW ***
  27677. --- *** ***
  27678. --- *** A gene with a translational start codon ***
  27679. --- *** of CUG. ***
  27680. --- ************************************************
  27681. ---
  27682. CREATE VIEW gene_with_start_codon_cug AS
  27683. SELECT
  27684. feature_id AS gene_with_start_codon_cug_id,
  27685. feature.*
  27686. FROM
  27687. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27688. WHERE cvterm.name = 'gene_with_start_codon_CUG';
  27689. --- ************************************************
  27690. --- *** relation: pseudogenic_gene_segment ***
  27691. --- *** relation type: VIEW ***
  27692. --- *** ***
  27693. --- *** A gene segment which when incorporated b ***
  27694. --- *** y somatic recombination in the final gen ***
  27695. --- *** e transcript results in a nonfunctional ***
  27696. --- *** product. ***
  27697. --- ************************************************
  27698. ---
  27699. CREATE VIEW pseudogenic_gene_segment AS
  27700. SELECT
  27701. feature_id AS pseudogenic_gene_segment_id,
  27702. feature.*
  27703. FROM
  27704. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27705. WHERE cvterm.name = 'pseudogenic_gene_segment';
  27706. --- ************************************************
  27707. --- *** relation: copy_number_gain ***
  27708. --- *** relation type: VIEW ***
  27709. --- *** ***
  27710. --- *** A sequence alteration whereby the copy n ***
  27711. --- *** umber of a given regions is greater than ***
  27712. --- *** the reference sequence. ***
  27713. --- ************************************************
  27714. ---
  27715. CREATE VIEW copy_number_gain AS
  27716. SELECT
  27717. feature_id AS copy_number_gain_id,
  27718. feature.*
  27719. FROM
  27720. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27721. WHERE cvterm.name = 'copy_number_gain';
  27722. --- ************************************************
  27723. --- *** relation: copy_number_loss ***
  27724. --- *** relation type: VIEW ***
  27725. --- *** ***
  27726. --- *** A sequence alteration whereby the copy n ***
  27727. --- *** umber of a given region is less than the ***
  27728. --- *** reference sequence. ***
  27729. --- ************************************************
  27730. ---
  27731. CREATE VIEW copy_number_loss AS
  27732. SELECT
  27733. feature_id AS copy_number_loss_id,
  27734. feature.*
  27735. FROM
  27736. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27737. WHERE cvterm.name = 'copy_number_loss';
  27738. --- ************************************************
  27739. --- *** relation: upd ***
  27740. --- *** relation type: VIEW ***
  27741. --- *** ***
  27742. --- *** Uniparental disomy is a sequence_alterat ***
  27743. --- *** ion where a diploid individual receives ***
  27744. --- *** two copies for all or part of a chromoso ***
  27745. --- *** me from one parent and no copies of the ***
  27746. --- *** same chromosome or region from the other ***
  27747. --- *** parent. ***
  27748. --- ************************************************
  27749. ---
  27750. CREATE VIEW upd AS
  27751. SELECT
  27752. feature_id AS upd_id,
  27753. feature.*
  27754. FROM
  27755. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27756. WHERE cvterm.name = 'maternal_uniparental_disomy' OR cvterm.name = 'paternal_uniparental_disomy' OR cvterm.name = 'UPD';
  27757. --- ************************************************
  27758. --- *** relation: maternal_uniparental_disomy ***
  27759. --- *** relation type: VIEW ***
  27760. --- *** ***
  27761. --- *** Uniparental disomy is a sequence_alterat ***
  27762. --- *** ion where a diploid individual receives ***
  27763. --- *** two copies for all or part of a chromoso ***
  27764. --- *** me from the mother and no copies of the ***
  27765. --- *** same chromosome or region from the fathe ***
  27766. --- *** r. ***
  27767. --- ************************************************
  27768. ---
  27769. CREATE VIEW maternal_uniparental_disomy AS
  27770. SELECT
  27771. feature_id AS maternal_uniparental_disomy_id,
  27772. feature.*
  27773. FROM
  27774. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27775. WHERE cvterm.name = 'maternal_uniparental_disomy';
  27776. --- ************************************************
  27777. --- *** relation: paternal_uniparental_disomy ***
  27778. --- *** relation type: VIEW ***
  27779. --- *** ***
  27780. --- *** Uniparental disomy is a sequence_alterat ***
  27781. --- *** ion where a diploid individual receives ***
  27782. --- *** two copies for all or part of a chromoso ***
  27783. --- *** me from the father and no copies of the ***
  27784. --- *** same chromosome or region from the mothe ***
  27785. --- *** r. ***
  27786. --- ************************************************
  27787. ---
  27788. CREATE VIEW paternal_uniparental_disomy AS
  27789. SELECT
  27790. feature_id AS paternal_uniparental_disomy_id,
  27791. feature.*
  27792. FROM
  27793. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27794. WHERE cvterm.name = 'paternal_uniparental_disomy';
  27795. --- ************************************************
  27796. --- *** relation: open_chromatin_region ***
  27797. --- *** relation type: VIEW ***
  27798. --- *** ***
  27799. --- *** A DNA sequence that in the normal state ***
  27800. --- *** of the chromosome corresponds to an unfo ***
  27801. --- *** lded, un-complexed stretch of double-str ***
  27802. --- *** anded DNA. ***
  27803. --- ************************************************
  27804. ---
  27805. CREATE VIEW open_chromatin_region AS
  27806. SELECT
  27807. feature_id AS open_chromatin_region_id,
  27808. feature.*
  27809. FROM
  27810. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27811. WHERE cvterm.name = 'open_chromatin_region';
  27812. --- ************************************************
  27813. --- *** relation: sl3_acceptor_site ***
  27814. --- *** relation type: VIEW ***
  27815. --- *** ***
  27816. --- *** A SL2_acceptor_site which appends the SL ***
  27817. --- *** 3 RNA leader sequence to the 5' end of a ***
  27818. --- *** n mRNA. SL3 acceptor sites occur in gene ***
  27819. --- *** s in internal segments of polycistronic ***
  27820. --- *** transcripts. ***
  27821. --- ************************************************
  27822. ---
  27823. CREATE VIEW sl3_acceptor_site AS
  27824. SELECT
  27825. feature_id AS sl3_acceptor_site_id,
  27826. feature.*
  27827. FROM
  27828. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27829. WHERE cvterm.name = 'SL3_acceptor_site';
  27830. --- ************************************************
  27831. --- *** relation: sl4_acceptor_site ***
  27832. --- *** relation type: VIEW ***
  27833. --- *** ***
  27834. --- *** A SL2_acceptor_site which appends the SL ***
  27835. --- *** 4 RNA leader sequence to the 5' end of a ***
  27836. --- *** n mRNA. SL4 acceptor sites occur in gene ***
  27837. --- *** s in internal segments of polycistronic ***
  27838. --- *** transcripts. ***
  27839. --- ************************************************
  27840. ---
  27841. CREATE VIEW sl4_acceptor_site AS
  27842. SELECT
  27843. feature_id AS sl4_acceptor_site_id,
  27844. feature.*
  27845. FROM
  27846. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27847. WHERE cvterm.name = 'SL4_acceptor_site';
  27848. --- ************************************************
  27849. --- *** relation: sl5_acceptor_site ***
  27850. --- *** relation type: VIEW ***
  27851. --- *** ***
  27852. --- *** A SL2_acceptor_site which appends the SL ***
  27853. --- *** 5 RNA leader sequence to the 5' end of a ***
  27854. --- *** n mRNA. SL5 acceptor sites occur in gene ***
  27855. --- *** s in internal segments of polycistronic ***
  27856. --- *** transcripts. ***
  27857. --- ************************************************
  27858. ---
  27859. CREATE VIEW sl5_acceptor_site AS
  27860. SELECT
  27861. feature_id AS sl5_acceptor_site_id,
  27862. feature.*
  27863. FROM
  27864. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27865. WHERE cvterm.name = 'SL5_acceptor_site';
  27866. --- ************************************************
  27867. --- *** relation: sl6_acceptor_site ***
  27868. --- *** relation type: VIEW ***
  27869. --- *** ***
  27870. --- *** A SL2_acceptor_site which appends the SL ***
  27871. --- *** 6 RNA leader sequence to the 5' end of a ***
  27872. --- *** n mRNA. SL6 acceptor sites occur in gene ***
  27873. --- *** s in internal segments of polycistronic ***
  27874. --- *** transcripts. ***
  27875. --- ************************************************
  27876. ---
  27877. CREATE VIEW sl6_acceptor_site AS
  27878. SELECT
  27879. feature_id AS sl6_acceptor_site_id,
  27880. feature.*
  27881. FROM
  27882. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27883. WHERE cvterm.name = 'SL6_acceptor_site';
  27884. --- ************************************************
  27885. --- *** relation: sl7_acceptor_site ***
  27886. --- *** relation type: VIEW ***
  27887. --- *** ***
  27888. --- *** A SL2_acceptor_site which appends the SL ***
  27889. --- *** 7 RNA leader sequence to the 5' end of a ***
  27890. --- *** n mRNA. SL7 acceptor sites occur in gene ***
  27891. --- *** s in internal segments of polycistronic ***
  27892. --- *** transcripts. ***
  27893. --- ************************************************
  27894. ---
  27895. CREATE VIEW sl7_acceptor_site AS
  27896. SELECT
  27897. feature_id AS sl7_acceptor_site_id,
  27898. feature.*
  27899. FROM
  27900. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27901. WHERE cvterm.name = 'SL7_acceptor_site';
  27902. --- ************************************************
  27903. --- *** relation: sl8_acceptor_site ***
  27904. --- *** relation type: VIEW ***
  27905. --- *** ***
  27906. --- *** A SL2_acceptor_site which appends the SL ***
  27907. --- *** 8 RNA leader sequence to the 5' end of a ***
  27908. --- *** n mRNA. SL8 acceptor sites occur in gene ***
  27909. --- *** s in internal segments of polycistronic ***
  27910. --- *** transcripts. ***
  27911. --- ************************************************
  27912. ---
  27913. CREATE VIEW sl8_acceptor_site AS
  27914. SELECT
  27915. feature_id AS sl8_acceptor_site_id,
  27916. feature.*
  27917. FROM
  27918. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27919. WHERE cvterm.name = 'SL8_acceptor_site';
  27920. --- ************************************************
  27921. --- *** relation: sl9_acceptor_site ***
  27922. --- *** relation type: VIEW ***
  27923. --- *** ***
  27924. --- *** A SL2_acceptor_site which appends the SL ***
  27925. --- *** 9 RNA leader sequence to the 5' end of a ***
  27926. --- *** n mRNA. SL9 acceptor sites occur in gene ***
  27927. --- *** s in internal segments of polycistronic ***
  27928. --- *** transcripts. ***
  27929. --- ************************************************
  27930. ---
  27931. CREATE VIEW sl9_acceptor_site AS
  27932. SELECT
  27933. feature_id AS sl9_acceptor_site_id,
  27934. feature.*
  27935. FROM
  27936. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27937. WHERE cvterm.name = 'SL9_acceptor_site';
  27938. --- ************************************************
  27939. --- *** relation: sl10_accceptor_site ***
  27940. --- *** relation type: VIEW ***
  27941. --- *** ***
  27942. --- *** A SL2_acceptor_site which appends the SL ***
  27943. --- *** 10 RNA leader sequence to the 5' end of ***
  27944. --- *** an mRNA. SL10 acceptor sites occur in ge ***
  27945. --- *** nes in internal segments of polycistroni ***
  27946. --- *** c transcripts. ***
  27947. --- ************************************************
  27948. ---
  27949. CREATE VIEW sl10_accceptor_site AS
  27950. SELECT
  27951. feature_id AS sl10_accceptor_site_id,
  27952. feature.*
  27953. FROM
  27954. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27955. WHERE cvterm.name = 'SL10_accceptor_site';
  27956. --- ************************************************
  27957. --- *** relation: sl11_acceptor_site ***
  27958. --- *** relation type: VIEW ***
  27959. --- *** ***
  27960. --- *** A SL2_acceptor_site which appends the SL ***
  27961. --- *** 11 RNA leader sequence to the 5' end of ***
  27962. --- *** an mRNA. SL11 acceptor sites occur in ge ***
  27963. --- *** nes in internal segments of polycistroni ***
  27964. --- *** c transcripts. ***
  27965. --- ************************************************
  27966. ---
  27967. CREATE VIEW sl11_acceptor_site AS
  27968. SELECT
  27969. feature_id AS sl11_acceptor_site_id,
  27970. feature.*
  27971. FROM
  27972. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27973. WHERE cvterm.name = 'SL11_acceptor_site';
  27974. --- ************************************************
  27975. --- *** relation: sl12_acceptor_site ***
  27976. --- *** relation type: VIEW ***
  27977. --- *** ***
  27978. --- *** A SL2_acceptor_site which appends the SL ***
  27979. --- *** 12 RNA leader sequence to the 5' end of ***
  27980. --- *** an mRNA. SL12 acceptor sites occur in ge ***
  27981. --- *** nes in internal segments of polycistroni ***
  27982. --- *** c transcripts. ***
  27983. --- ************************************************
  27984. ---
  27985. CREATE VIEW sl12_acceptor_site AS
  27986. SELECT
  27987. feature_id AS sl12_acceptor_site_id,
  27988. feature.*
  27989. FROM
  27990. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27991. WHERE cvterm.name = 'SL12_acceptor_site';
  27992. --- ************************************************
  27993. --- *** relation: duplicated_pseudogene ***
  27994. --- *** relation type: VIEW ***
  27995. --- *** ***
  27996. --- *** A pseudogene that arose via gene duplica ***
  27997. --- *** tion. Generally duplicated pseudogenes h ***
  27998. --- *** ave the same structure as the original g ***
  27999. --- *** ene, including intron-exon structure and ***
  28000. --- *** some regulatory sequence. ***
  28001. --- ************************************************
  28002. ---
  28003. CREATE VIEW duplicated_pseudogene AS
  28004. SELECT
  28005. feature_id AS duplicated_pseudogene_id,
  28006. feature.*
  28007. FROM
  28008. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28009. WHERE cvterm.name = 'duplicated_pseudogene';
  28010. --- ************************************************
  28011. --- *** relation: unitary_pseudogene ***
  28012. --- *** relation type: VIEW ***
  28013. --- *** ***
  28014. --- *** A pseudogene, deactivated from original ***
  28015. --- *** state by mutation, fixed in a population ***
  28016. --- *** . ***
  28017. --- ************************************************
  28018. ---
  28019. CREATE VIEW unitary_pseudogene AS
  28020. SELECT
  28021. feature_id AS unitary_pseudogene_id,
  28022. feature.*
  28023. FROM
  28024. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28025. WHERE cvterm.name = 'unitary_pseudogene';
  28026. --- ************************************************
  28027. --- *** relation: non_processed_pseudogene ***
  28028. --- *** relation type: VIEW ***
  28029. --- *** ***
  28030. --- *** A pseudogene that arose from a means oth ***
  28031. --- *** er than retrotransposition. ***
  28032. --- ************************************************
  28033. ---
  28034. CREATE VIEW non_processed_pseudogene AS
  28035. SELECT
  28036. feature_id AS non_processed_pseudogene_id,
  28037. feature.*
  28038. FROM
  28039. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28040. 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';
  28041. --- ************************************************
  28042. --- *** relation: variant_quality ***
  28043. --- *** relation type: VIEW ***
  28044. --- *** ***
  28045. --- *** A dependent entity that inheres in a bea ***
  28046. --- *** rer, a sequence variant. ***
  28047. --- ************************************************
  28048. ---
  28049. CREATE VIEW variant_quality AS
  28050. SELECT
  28051. feature_id AS variant_quality_id,
  28052. feature.*
  28053. FROM
  28054. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28055. 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';
  28056. --- ************************************************
  28057. --- *** relation: variant_origin ***
  28058. --- *** relation type: VIEW ***
  28059. --- *** ***
  28060. --- *** A quality inhering in a variant by virtu ***
  28061. --- *** e of its origin. ***
  28062. --- ************************************************
  28063. ---
  28064. CREATE VIEW variant_origin AS
  28065. SELECT
  28066. feature_id AS variant_origin_id,
  28067. feature.*
  28068. FROM
  28069. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28070. 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';
  28071. --- ************************************************
  28072. --- *** relation: variant_frequency ***
  28073. --- *** relation type: VIEW ***
  28074. --- *** ***
  28075. --- *** A physical quality which inheres to the ***
  28076. --- *** variant by virtue of the number instance ***
  28077. --- *** s of the variant within a population. ***
  28078. --- ************************************************
  28079. ---
  28080. CREATE VIEW variant_frequency AS
  28081. SELECT
  28082. feature_id AS variant_frequency_id,
  28083. feature.*
  28084. FROM
  28085. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28086. 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';
  28087. --- ************************************************
  28088. --- *** relation: unique_variant ***
  28089. --- *** relation type: VIEW ***
  28090. --- *** ***
  28091. --- *** A physical quality which inheres to the ***
  28092. --- *** variant by virtue of the number instance ***
  28093. --- *** s of the variant within a population. ***
  28094. --- ************************************************
  28095. ---
  28096. CREATE VIEW unique_variant AS
  28097. SELECT
  28098. feature_id AS unique_variant_id,
  28099. feature.*
  28100. FROM
  28101. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28102. WHERE cvterm.name = 'unique_variant';
  28103. --- ************************************************
  28104. --- *** relation: rare_variant ***
  28105. --- *** relation type: VIEW ***
  28106. --- *** ***
  28107. --- ************************************************
  28108. ---
  28109. CREATE VIEW rare_variant AS
  28110. SELECT
  28111. feature_id AS rare_variant_id,
  28112. feature.*
  28113. FROM
  28114. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28115. WHERE cvterm.name = 'rare_variant';
  28116. --- ************************************************
  28117. --- *** relation: polymorphic_variant ***
  28118. --- *** relation type: VIEW ***
  28119. --- *** ***
  28120. --- ************************************************
  28121. ---
  28122. CREATE VIEW polymorphic_variant AS
  28123. SELECT
  28124. feature_id AS polymorphic_variant_id,
  28125. feature.*
  28126. FROM
  28127. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28128. WHERE cvterm.name = 'polymorphic_variant';
  28129. --- ************************************************
  28130. --- *** relation: common_variant ***
  28131. --- *** relation type: VIEW ***
  28132. --- *** ***
  28133. --- ************************************************
  28134. ---
  28135. CREATE VIEW common_variant AS
  28136. SELECT
  28137. feature_id AS common_variant_id,
  28138. feature.*
  28139. FROM
  28140. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28141. WHERE cvterm.name = 'common_variant';
  28142. --- ************************************************
  28143. --- *** relation: fixed_variant ***
  28144. --- *** relation type: VIEW ***
  28145. --- *** ***
  28146. --- ************************************************
  28147. ---
  28148. CREATE VIEW fixed_variant AS
  28149. SELECT
  28150. feature_id AS fixed_variant_id,
  28151. feature.*
  28152. FROM
  28153. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28154. WHERE cvterm.name = 'fixed_variant';
  28155. --- ************************************************
  28156. --- *** relation: variant_phenotype ***
  28157. --- *** relation type: VIEW ***
  28158. --- *** ***
  28159. --- *** A quality inhering in a variant by virtu ***
  28160. --- *** e of its phenotype. ***
  28161. --- ************************************************
  28162. ---
  28163. CREATE VIEW variant_phenotype AS
  28164. SELECT
  28165. feature_id AS variant_phenotype_id,
  28166. feature.*
  28167. FROM
  28168. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28169. 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';
  28170. --- ************************************************
  28171. --- *** relation: benign_variant ***
  28172. --- *** relation type: VIEW ***
  28173. --- *** ***
  28174. --- ************************************************
  28175. ---
  28176. CREATE VIEW benign_variant AS
  28177. SELECT
  28178. feature_id AS benign_variant_id,
  28179. feature.*
  28180. FROM
  28181. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28182. WHERE cvterm.name = 'benign_variant';
  28183. --- ************************************************
  28184. --- *** relation: disease_associated_variant ***
  28185. --- *** relation type: VIEW ***
  28186. --- *** ***
  28187. --- ************************************************
  28188. ---
  28189. CREATE VIEW disease_associated_variant AS
  28190. SELECT
  28191. feature_id AS disease_associated_variant_id,
  28192. feature.*
  28193. FROM
  28194. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28195. WHERE cvterm.name = 'disease_associated_variant';
  28196. --- ************************************************
  28197. --- *** relation: disease_causing_variant ***
  28198. --- *** relation type: VIEW ***
  28199. --- *** ***
  28200. --- ************************************************
  28201. ---
  28202. CREATE VIEW disease_causing_variant AS
  28203. SELECT
  28204. feature_id AS disease_causing_variant_id,
  28205. feature.*
  28206. FROM
  28207. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28208. WHERE cvterm.name = 'disease_causing_variant';
  28209. --- ************************************************
  28210. --- *** relation: lethal_variant ***
  28211. --- *** relation type: VIEW ***
  28212. --- *** ***
  28213. --- ************************************************
  28214. ---
  28215. CREATE VIEW lethal_variant AS
  28216. SELECT
  28217. feature_id AS lethal_variant_id,
  28218. feature.*
  28219. FROM
  28220. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28221. WHERE cvterm.name = 'lethal_variant';
  28222. --- ************************************************
  28223. --- *** relation: quantitative_variant ***
  28224. --- *** relation type: VIEW ***
  28225. --- *** ***
  28226. --- ************************************************
  28227. ---
  28228. CREATE VIEW quantitative_variant AS
  28229. SELECT
  28230. feature_id AS quantitative_variant_id,
  28231. feature.*
  28232. FROM
  28233. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28234. WHERE cvterm.name = 'quantitative_variant';
  28235. --- ************************************************
  28236. --- *** relation: maternal_variant ***
  28237. --- *** relation type: VIEW ***
  28238. --- *** ***
  28239. --- ************************************************
  28240. ---
  28241. CREATE VIEW maternal_variant AS
  28242. SELECT
  28243. feature_id AS maternal_variant_id,
  28244. feature.*
  28245. FROM
  28246. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28247. WHERE cvterm.name = 'maternal_variant';
  28248. --- ************************************************
  28249. --- *** relation: paternal_variant ***
  28250. --- *** relation type: VIEW ***
  28251. --- *** ***
  28252. --- ************************************************
  28253. ---
  28254. CREATE VIEW paternal_variant AS
  28255. SELECT
  28256. feature_id AS paternal_variant_id,
  28257. feature.*
  28258. FROM
  28259. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28260. WHERE cvterm.name = 'paternal_variant';
  28261. --- ************************************************
  28262. --- *** relation: somatic_variant ***
  28263. --- *** relation type: VIEW ***
  28264. --- *** ***
  28265. --- ************************************************
  28266. ---
  28267. CREATE VIEW somatic_variant AS
  28268. SELECT
  28269. feature_id AS somatic_variant_id,
  28270. feature.*
  28271. FROM
  28272. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28273. WHERE cvterm.name = 'somatic_variant';
  28274. --- ************************************************
  28275. --- *** relation: germline_variant ***
  28276. --- *** relation type: VIEW ***
  28277. --- *** ***
  28278. --- ************************************************
  28279. ---
  28280. CREATE VIEW germline_variant AS
  28281. SELECT
  28282. feature_id AS germline_variant_id,
  28283. feature.*
  28284. FROM
  28285. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28286. WHERE cvterm.name = 'germline_variant';
  28287. --- ************************************************
  28288. --- *** relation: pedigree_specific_variant ***
  28289. --- *** relation type: VIEW ***
  28290. --- *** ***
  28291. --- ************************************************
  28292. ---
  28293. CREATE VIEW pedigree_specific_variant AS
  28294. SELECT
  28295. feature_id AS pedigree_specific_variant_id,
  28296. feature.*
  28297. FROM
  28298. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28299. WHERE cvterm.name = 'pedigree_specific_variant';
  28300. --- ************************************************
  28301. --- *** relation: population_specific_variant ***
  28302. --- *** relation type: VIEW ***
  28303. --- *** ***
  28304. --- ************************************************
  28305. ---
  28306. CREATE VIEW population_specific_variant AS
  28307. SELECT
  28308. feature_id AS population_specific_variant_id,
  28309. feature.*
  28310. FROM
  28311. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28312. WHERE cvterm.name = 'population_specific_variant';
  28313. --- ************************************************
  28314. --- *** relation: de_novo_variant ***
  28315. --- *** relation type: VIEW ***
  28316. --- *** ***
  28317. --- ************************************************
  28318. ---
  28319. CREATE VIEW de_novo_variant AS
  28320. SELECT
  28321. feature_id AS de_novo_variant_id,
  28322. feature.*
  28323. FROM
  28324. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28325. WHERE cvterm.name = 'de_novo_variant';
  28326. --- ************************************************
  28327. --- *** relation: tf_binding_site_variant ***
  28328. --- *** relation type: VIEW ***
  28329. --- *** ***
  28330. --- *** A sequence variant located within a tran ***
  28331. --- *** scription factor binding site. ***
  28332. --- ************************************************
  28333. ---
  28334. CREATE VIEW tf_binding_site_variant AS
  28335. SELECT
  28336. feature_id AS tf_binding_site_variant_id,
  28337. feature.*
  28338. FROM
  28339. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28340. WHERE cvterm.name = 'TF_binding_site_variant';
  28341. --- ************************************************
  28342. --- *** relation: missense_codon ***
  28343. --- *** relation type: VIEW ***
  28344. --- *** ***
  28345. --- *** A sequence variant whereby at least one ***
  28346. --- *** base of a codon is changed resulting in ***
  28347. --- *** a codon that encodes for a different ami ***
  28348. --- *** no acid. ***
  28349. --- ************************************************
  28350. ---
  28351. CREATE VIEW missense_codon AS
  28352. SELECT
  28353. feature_id AS missense_codon_id,
  28354. feature.*
  28355. FROM
  28356. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28357. WHERE cvterm.name = 'conservative_missense_codon' OR cvterm.name = 'non_conservative_missense_codon' OR cvterm.name = 'missense_codon';
  28358. --- ************************************************
  28359. --- *** relation: complex_structural_alteration ***
  28360. --- *** relation type: VIEW ***
  28361. --- *** ***
  28362. --- *** A structural sequence alteration where t ***
  28363. --- *** here are multiple equally plausible expl ***
  28364. --- *** anations for the change. ***
  28365. --- ************************************************
  28366. ---
  28367. CREATE VIEW complex_structural_alteration AS
  28368. SELECT
  28369. feature_id AS complex_structural_alteration_id,
  28370. feature.*
  28371. FROM
  28372. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28373. WHERE cvterm.name = 'complex_structural_alteration';
  28374. --- ************************************************
  28375. --- *** relation: structural_alteration ***
  28376. --- *** relation type: VIEW ***
  28377. --- *** ***
  28378. --- ************************************************
  28379. ---
  28380. CREATE VIEW structural_alteration AS
  28381. SELECT
  28382. feature_id AS structural_alteration_id,
  28383. feature.*
  28384. FROM
  28385. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28386. WHERE cvterm.name = 'complex_structural_alteration' OR cvterm.name = 'structural_alteration';
  28387. --- ************************************************
  28388. --- *** relation: loss_of_heterozygosity ***
  28389. --- *** relation type: VIEW ***
  28390. --- *** ***
  28391. --- ************************************************
  28392. ---
  28393. CREATE VIEW loss_of_heterozygosity AS
  28394. SELECT
  28395. feature_id AS loss_of_heterozygosity_id,
  28396. feature.*
  28397. FROM
  28398. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28399. WHERE cvterm.name = 'loss_of_heterozygosity';
  28400. --- ************************************************
  28401. --- *** relation: splice_donor_5th_base_variant ***
  28402. --- *** relation type: VIEW ***
  28403. --- *** ***
  28404. --- *** A sequence variant that causes a change ***
  28405. --- *** at the 5th base pair after the start of ***
  28406. --- *** the intron in the orientation of the tra ***
  28407. --- *** nscript. ***
  28408. --- ************************************************
  28409. ---
  28410. CREATE VIEW splice_donor_5th_base_variant AS
  28411. SELECT
  28412. feature_id AS splice_donor_5th_base_variant_id,
  28413. feature.*
  28414. FROM
  28415. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28416. WHERE cvterm.name = 'splice_donor_5th_base_variant';
  28417. --- ************************************************
  28418. --- *** relation: u_box ***
  28419. --- *** relation type: VIEW ***
  28420. --- *** ***
  28421. --- *** An U-box is a conserved T-rich region up ***
  28422. --- *** stream of a retroviral polypurine tract ***
  28423. --- *** that is involved in PPT primer creation ***
  28424. --- *** during reverse transcription. ***
  28425. --- ************************************************
  28426. ---
  28427. CREATE VIEW u_box AS
  28428. SELECT
  28429. feature_id AS u_box_id,
  28430. feature.*
  28431. FROM
  28432. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28433. WHERE cvterm.name = 'U_box';
  28434. --- ************************************************
  28435. --- *** relation: mating_type_region ***
  28436. --- *** relation type: VIEW ***
  28437. --- *** ***
  28438. --- *** A specialized region in the genomes of s ***
  28439. --- *** ome yeast and fungi, the genes of which ***
  28440. --- *** regulate mating type. ***
  28441. --- ************************************************
  28442. ---
  28443. CREATE VIEW mating_type_region AS
  28444. SELECT
  28445. feature_id AS mating_type_region_id,
  28446. feature.*
  28447. FROM
  28448. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28449. WHERE cvterm.name = 'mating_type_region';
  28450. --- ************************************************
  28451. --- *** relation: paired_end_fragment ***
  28452. --- *** relation type: VIEW ***
  28453. --- *** ***
  28454. --- *** An assembly region that has been sequenc ***
  28455. --- *** ed from both ends resulting in a read_pa ***
  28456. --- *** ir (mate_pair). ***
  28457. --- ************************************************
  28458. ---
  28459. CREATE VIEW paired_end_fragment AS
  28460. SELECT
  28461. feature_id AS paired_end_fragment_id,
  28462. feature.*
  28463. FROM
  28464. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28465. WHERE cvterm.name = 'paired_end_fragment';
  28466. --- ************************************************
  28467. --- *** relation: exon_variant ***
  28468. --- *** relation type: VIEW ***
  28469. --- *** ***
  28470. --- *** A sequence variant that changes exon seq ***
  28471. --- *** uence. ***
  28472. --- ************************************************
  28473. ---
  28474. CREATE VIEW exon_variant AS
  28475. SELECT
  28476. feature_id AS exon_variant_id,
  28477. feature.*
  28478. FROM
  28479. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28480. 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';
  28481. --- ************************************************
  28482. --- *** relation: non_coding_exon_variant ***
  28483. --- *** relation type: VIEW ***
  28484. --- *** ***
  28485. --- *** A sequence variant that changes non-codi ***
  28486. --- *** ng exon sequence. ***
  28487. --- ************************************************
  28488. ---
  28489. CREATE VIEW non_coding_exon_variant AS
  28490. SELECT
  28491. feature_id AS non_coding_exon_variant_id,
  28492. feature.*
  28493. FROM
  28494. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28495. WHERE cvterm.name = 'non_coding_exon_variant';
  28496. --- ************************************************
  28497. --- *** relation: clone_end ***
  28498. --- *** relation type: VIEW ***
  28499. --- *** ***
  28500. --- *** A read from an end of the clone sequence ***
  28501. --- *** . ***
  28502. --- ************************************************
  28503. ---
  28504. CREATE VIEW clone_end AS
  28505. SELECT
  28506. feature_id AS clone_end_id,
  28507. feature.*
  28508. FROM
  28509. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28510. WHERE cvterm.name = 'clone_end';
  28511. --- ************************************************
  28512. --- *** relation: point_centromere ***
  28513. --- *** relation type: VIEW ***
  28514. --- *** ***
  28515. --- *** A point centromere is a relatively small ***
  28516. --- *** centromere (about 125 bp DNA) in discre ***
  28517. --- *** te sequence, found in some yeast includi ***
  28518. --- *** ng S. cerevisiae. ***
  28519. --- ************************************************
  28520. ---
  28521. CREATE VIEW point_centromere AS
  28522. SELECT
  28523. feature_id AS point_centromere_id,
  28524. feature.*
  28525. FROM
  28526. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28527. WHERE cvterm.name = 'point_centromere';
  28528. --- ************************************************
  28529. --- *** relation: regional_centromere ***
  28530. --- *** relation type: VIEW ***
  28531. --- *** ***
  28532. --- *** A regional centromere is a large modular ***
  28533. --- *** centromere found in fission yeast and h ***
  28534. --- *** igher eukaryotes. It consist of a centra ***
  28535. --- *** l core region flanked by inverted inner ***
  28536. --- *** and outer repeat regions. ***
  28537. --- ************************************************
  28538. ---
  28539. CREATE VIEW regional_centromere AS
  28540. SELECT
  28541. feature_id AS regional_centromere_id,
  28542. feature.*
  28543. FROM
  28544. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28545. WHERE cvterm.name = 'regional_centromere';
  28546. --- ************************************************
  28547. --- *** relation: regional_centromere_central_core ***
  28548. --- *** relation type: VIEW ***
  28549. --- *** ***
  28550. --- *** A conserved region within the central re ***
  28551. --- *** gion of a modular centromere, where the ***
  28552. --- *** kinetochore is formed. ***
  28553. --- ************************************************
  28554. ---
  28555. CREATE VIEW regional_centromere_central_core AS
  28556. SELECT
  28557. feature_id AS regional_centromere_central_core_id,
  28558. feature.*
  28559. FROM
  28560. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28561. WHERE cvterm.name = 'regional_centromere_central_core';
  28562. --- ************************************************
  28563. --- *** relation: centromeric_repeat ***
  28564. --- *** relation type: VIEW ***
  28565. --- *** ***
  28566. --- *** A repeat region found within the modular ***
  28567. --- *** centromere. ***
  28568. --- ************************************************
  28569. ---
  28570. CREATE VIEW centromeric_repeat AS
  28571. SELECT
  28572. feature_id AS centromeric_repeat_id,
  28573. feature.*
  28574. FROM
  28575. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28576. WHERE cvterm.name = 'regional_centromere_inner_repeat_region' OR cvterm.name = 'regional_centromere_outer_repeat_region' OR cvterm.name = 'centromeric_repeat';
  28577. --- ************************************************
  28578. --- *** relation: regional_centromere_inner_repeat_region ***
  28579. --- *** relation type: VIEW ***
  28580. --- *** ***
  28581. --- *** The inner repeat region of a modular cen ***
  28582. --- *** tromere. This region is adjacent to the ***
  28583. --- *** central core, on each chromosome arm. ***
  28584. --- ************************************************
  28585. ---
  28586. CREATE VIEW regional_centromere_inner_repeat_region AS
  28587. SELECT
  28588. feature_id AS regional_centromere_inner_repeat_region_id,
  28589. feature.*
  28590. FROM
  28591. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28592. WHERE cvterm.name = 'regional_centromere_inner_repeat_region';
  28593. --- ************************************************
  28594. --- *** relation: regional_centromere_outer_repeat_region ***
  28595. --- *** relation type: VIEW ***
  28596. --- *** ***
  28597. --- *** The heterochromatic outer repeat region ***
  28598. --- *** of a modular centromere. These repeats e ***
  28599. --- *** xist in tandem arrays on both chromosome ***
  28600. --- *** arms. ***
  28601. --- ************************************************
  28602. ---
  28603. CREATE VIEW regional_centromere_outer_repeat_region AS
  28604. SELECT
  28605. feature_id AS regional_centromere_outer_repeat_region_id,
  28606. feature.*
  28607. FROM
  28608. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28609. WHERE cvterm.name = 'regional_centromere_outer_repeat_region';
  28610. --- ************************************************
  28611. --- *** relation: tasirna ***
  28612. --- *** relation type: VIEW ***
  28613. --- *** ***
  28614. --- *** The sequence of a 21 nucleotide double s ***
  28615. --- *** tranded, polyadenylated non coding RNA, ***
  28616. --- *** transcribed from the TAS gene. ***
  28617. --- ************************************************
  28618. ---
  28619. CREATE VIEW tasirna AS
  28620. SELECT
  28621. feature_id AS tasirna_id,
  28622. feature.*
  28623. FROM
  28624. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28625. WHERE cvterm.name = 'tasiRNA';
  28626. --- ************************************************
  28627. --- *** relation: tasirna_primary_transcript ***
  28628. --- *** relation type: VIEW ***
  28629. --- *** ***
  28630. --- *** A primary transcript encoding a tasiRNA. ***
  28631. --- ************************************************
  28632. ---
  28633. CREATE VIEW tasirna_primary_transcript AS
  28634. SELECT
  28635. feature_id AS tasirna_primary_transcript_id,
  28636. feature.*
  28637. FROM
  28638. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28639. WHERE cvterm.name = 'tasiRNA_primary_transcript';
  28640. --- ************************************************
  28641. --- *** relation: increased_polyadenylation_variant ***
  28642. --- *** relation type: VIEW ***
  28643. --- *** ***
  28644. --- *** A transcript processing variant whereby ***
  28645. --- *** polyadenylation of the encoded transcrip ***
  28646. --- *** t is increased with respect to the refer ***
  28647. --- *** ence. ***
  28648. --- ************************************************
  28649. ---
  28650. CREATE VIEW increased_polyadenylation_variant AS
  28651. SELECT
  28652. feature_id AS increased_polyadenylation_variant_id,
  28653. feature.*
  28654. FROM
  28655. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28656. WHERE cvterm.name = 'increased_polyadenylation_variant';
  28657. --- ************************************************
  28658. --- *** relation: decreased_polyadenylation_variant ***
  28659. --- *** relation type: VIEW ***
  28660. --- *** ***
  28661. --- *** A transcript processing variant whereby ***
  28662. --- *** polyadenylation of the encoded transcrip ***
  28663. --- *** t is decreased with respect to the refer ***
  28664. --- *** ence. ***
  28665. --- ************************************************
  28666. ---
  28667. CREATE VIEW decreased_polyadenylation_variant AS
  28668. SELECT
  28669. feature_id AS decreased_polyadenylation_variant_id,
  28670. feature.*
  28671. FROM
  28672. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28673. WHERE cvterm.name = 'decreased_polyadenylation_variant';
  28674. --- ************************************************
  28675. --- *** relation: regulatory_region ***
  28676. --- *** relation type: VIEW ***
  28677. --- *** ***
  28678. --- *** A region of sequence that is involved in ***
  28679. --- *** the control of a biological process. ***
  28680. --- ************************************************
  28681. ---
  28682. CREATE VIEW regulatory_region AS
  28683. SELECT
  28684. feature_id AS regulatory_region_id,
  28685. feature.*
  28686. FROM
  28687. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28688. 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';
  28689. --- ************************************************
  28690. --- *** relation: u14_snorna_primary_transcript ***
  28691. --- *** relation type: VIEW ***
  28692. --- *** ***
  28693. --- *** The primary transcript of an evolutionar ***
  28694. --- *** ily conserved eukaryotic low molecular w ***
  28695. --- *** eight RNA capable of intermolecular hybr ***
  28696. --- *** idization with both homologous and heter ***
  28697. --- *** ologous 18S rRNA. ***
  28698. --- ************************************************
  28699. ---
  28700. CREATE VIEW u14_snorna_primary_transcript AS
  28701. SELECT
  28702. feature_id AS u14_snorna_primary_transcript_id,
  28703. feature.*
  28704. FROM
  28705. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28706. WHERE cvterm.name = 'U14_snoRNA_primary_transcript';
  28707. --- ************************************************
  28708. --- *** relation: methylation_guide_snorna ***
  28709. --- *** relation type: VIEW ***
  28710. --- *** ***
  28711. --- *** A snoRNA that specifies the site of 2'-O ***
  28712. --- *** -ribose methylation in an RNA molecule b ***
  28713. --- *** y base pairing with a short sequence aro ***
  28714. --- *** und the target residue. ***
  28715. --- ************************************************
  28716. ---
  28717. CREATE VIEW methylation_guide_snorna AS
  28718. SELECT
  28719. feature_id AS methylation_guide_snorna_id,
  28720. feature.*
  28721. FROM
  28722. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28723. WHERE cvterm.name = 'methylation_guide_snoRNA';
  28724. --- ************************************************
  28725. --- *** relation: rrna_cleavage_rna ***
  28726. --- *** relation type: VIEW ***
  28727. --- *** ***
  28728. --- *** An ncRNA that is part of a ribonucleopro ***
  28729. --- *** tein that cleaves the primary pre-rRNA t ***
  28730. --- *** ranscript in the process of producing ma ***
  28731. --- *** ture rRNA molecules. ***
  28732. --- ************************************************
  28733. ---
  28734. CREATE VIEW rrna_cleavage_rna AS
  28735. SELECT
  28736. feature_id AS rrna_cleavage_rna_id,
  28737. feature.*
  28738. FROM
  28739. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28740. WHERE cvterm.name = 'rRNA_cleavage_RNA';
  28741. --- ************************************************
  28742. --- *** relation: exon_of_single_exon_gene ***
  28743. --- *** relation type: VIEW ***
  28744. --- *** ***
  28745. --- *** An exon that is the only exon in a gene. ***
  28746. --- ************************************************
  28747. ---
  28748. CREATE VIEW exon_of_single_exon_gene AS
  28749. SELECT
  28750. feature_id AS exon_of_single_exon_gene_id,
  28751. feature.*
  28752. FROM
  28753. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28754. WHERE cvterm.name = 'exon_of_single_exon_gene';
  28755. --- ************************************************
  28756. --- *** relation: cassette_array_member ***
  28757. --- *** relation type: VIEW ***
  28758. --- *** ***
  28759. --- ************************************************
  28760. ---
  28761. CREATE VIEW cassette_array_member AS
  28762. SELECT
  28763. feature_id AS cassette_array_member_id,
  28764. feature.*
  28765. FROM
  28766. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28767. WHERE cvterm.name = 'cassette_array_member';
  28768. --- ************************************************
  28769. --- *** relation: gene_cassette_member ***
  28770. --- *** relation type: VIEW ***
  28771. --- *** ***
  28772. --- ************************************************
  28773. ---
  28774. CREATE VIEW gene_cassette_member AS
  28775. SELECT
  28776. feature_id AS gene_cassette_member_id,
  28777. feature.*
  28778. FROM
  28779. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28780. WHERE cvterm.name = 'cassette_array_member' OR cvterm.name = 'gene_cassette_member';
  28781. --- ************************************************
  28782. --- *** relation: gene_subarray_member ***
  28783. --- *** relation type: VIEW ***
  28784. --- *** ***
  28785. --- ************************************************
  28786. ---
  28787. CREATE VIEW gene_subarray_member AS
  28788. SELECT
  28789. feature_id AS gene_subarray_member_id,
  28790. feature.*
  28791. FROM
  28792. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28793. WHERE cvterm.name = 'gene_subarray_member';
  28794. --- ************************************************
  28795. --- *** relation: primer_binding_site ***
  28796. --- *** relation type: VIEW ***
  28797. --- *** ***
  28798. --- *** Non-covalent primer binding site for ini ***
  28799. --- *** tiation of replication, transcription, o ***
  28800. --- *** r reverse transcription. ***
  28801. --- ************************************************
  28802. ---
  28803. CREATE VIEW primer_binding_site AS
  28804. SELECT
  28805. feature_id AS primer_binding_site_id,
  28806. feature.*
  28807. FROM
  28808. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28809. WHERE cvterm.name = 'primer_binding_site';
  28810. --- ************************************************
  28811. --- *** relation: gene_array ***
  28812. --- *** relation type: VIEW ***
  28813. --- *** ***
  28814. --- *** An array includes two or more genes, or ***
  28815. --- *** two or more gene subarrays, contiguously ***
  28816. --- *** arranged where the individual genes, or ***
  28817. --- *** subarrays, are either identical in sequ ***
  28818. --- *** ence, or essentially so. ***
  28819. --- ************************************************
  28820. ---
  28821. CREATE VIEW gene_array AS
  28822. SELECT
  28823. feature_id AS gene_array_id,
  28824. feature.*
  28825. FROM
  28826. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28827. WHERE cvterm.name = 'gene_array';
  28828. --- ************************************************
  28829. --- *** relation: gene_subarray ***
  28830. --- *** relation type: VIEW ***
  28831. --- *** ***
  28832. --- *** A subarray is, by defintition, a member ***
  28833. --- *** of a gene array (SO:0005851); the member ***
  28834. --- *** s of a subarray may differ substantially ***
  28835. --- *** in sequence, but are closely related in ***
  28836. --- *** function. ***
  28837. --- ************************************************
  28838. ---
  28839. CREATE VIEW gene_subarray AS
  28840. SELECT
  28841. feature_id AS gene_subarray_id,
  28842. feature.*
  28843. FROM
  28844. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28845. WHERE cvterm.name = 'gene_subarray';
  28846. --- ************************************************
  28847. --- *** relation: gene_cassette ***
  28848. --- *** relation type: VIEW ***
  28849. --- *** ***
  28850. --- *** A gene that can be substituted for a rel ***
  28851. --- *** ated gene at a different site in the gen ***
  28852. --- *** ome. ***
  28853. --- ************************************************
  28854. ---
  28855. CREATE VIEW gene_cassette AS
  28856. SELECT
  28857. feature_id AS gene_cassette_id,
  28858. feature.*
  28859. FROM
  28860. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28861. WHERE cvterm.name = 'gene_cassette';
  28862. --- ************************************************
  28863. --- *** relation: gene_cassette_array ***
  28864. --- *** relation type: VIEW ***
  28865. --- *** ***
  28866. --- *** An array of non-functional genes whose m ***
  28867. --- *** embers, when captured by recombination f ***
  28868. --- *** orm functional genes. ***
  28869. --- ************************************************
  28870. ---
  28871. CREATE VIEW gene_cassette_array AS
  28872. SELECT
  28873. feature_id AS gene_cassette_array_id,
  28874. feature.*
  28875. FROM
  28876. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28877. WHERE cvterm.name = 'gene_cassette_array';
  28878. --- ************************************************
  28879. --- *** relation: gene_group ***
  28880. --- *** relation type: VIEW ***
  28881. --- *** ***
  28882. --- *** A collection of related genes. ***
  28883. --- ************************************************
  28884. ---
  28885. CREATE VIEW gene_group AS
  28886. SELECT
  28887. feature_id AS gene_group_id,
  28888. feature.*
  28889. FROM
  28890. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28891. 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';
  28892. --- ************************************************
  28893. --- *** relation: selenocysteine_trna_primary_transcript ***
  28894. --- *** relation type: VIEW ***
  28895. --- *** ***
  28896. --- *** A primary transcript encoding seryl tRNA ***
  28897. --- *** (SO:000269). ***
  28898. --- ************************************************
  28899. ---
  28900. CREATE VIEW selenocysteine_trna_primary_transcript AS
  28901. SELECT
  28902. feature_id AS selenocysteine_trna_primary_transcript_id,
  28903. feature.*
  28904. FROM
  28905. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28906. WHERE cvterm.name = 'selenocysteine_tRNA_primary_transcript';
  28907. --- ************************************************
  28908. --- *** relation: selenocysteinyl_trna ***
  28909. --- *** relation type: VIEW ***
  28910. --- *** ***
  28911. --- *** A tRNA sequence that has a selenocystein ***
  28912. --- *** e anticodon, and a 3' selenocysteine bin ***
  28913. --- *** ding region. ***
  28914. --- ************************************************
  28915. ---
  28916. CREATE VIEW selenocysteinyl_trna AS
  28917. SELECT
  28918. feature_id AS selenocysteinyl_trna_id,
  28919. feature.*
  28920. FROM
  28921. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28922. WHERE cvterm.name = 'selenocysteinyl_tRNA';
  28923. --- ************************************************
  28924. --- *** relation: syntenic_region ***
  28925. --- *** relation type: VIEW ***
  28926. --- *** ***
  28927. --- *** A region in which two or more pairs of h ***
  28928. --- *** omologous markers occur on the same chro ***
  28929. --- *** mosome in two or more species. ***
  28930. --- ************************************************
  28931. ---
  28932. CREATE VIEW syntenic_region AS
  28933. SELECT
  28934. feature_id AS syntenic_region_id,
  28935. feature.*
  28936. FROM
  28937. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28938. WHERE cvterm.name = 'syntenic_region';
  28939. --- ************************************************
  28940. --- *** relation: biochemical_region_of_peptide ***
  28941. --- *** relation type: VIEW ***
  28942. --- *** ***
  28943. --- *** A region of a peptide that is involved i ***
  28944. --- *** n a biochemical function. ***
  28945. --- ************************************************
  28946. ---
  28947. CREATE VIEW biochemical_region_of_peptide AS
  28948. SELECT
  28949. feature_id AS biochemical_region_of_peptide_id,
  28950. feature.*
  28951. FROM
  28952. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28953. 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';
  28954. --- ************************************************
  28955. --- *** relation: molecular_contact_region ***
  28956. --- *** relation type: VIEW ***
  28957. --- *** ***
  28958. --- *** A region that is involved a contact with ***
  28959. --- *** another molecule. ***
  28960. --- ************************************************
  28961. ---
  28962. CREATE VIEW molecular_contact_region AS
  28963. SELECT
  28964. feature_id AS molecular_contact_region_id,
  28965. feature.*
  28966. FROM
  28967. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28968. 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';
  28969. --- ************************************************
  28970. --- *** relation: intrinsically_unstructured_polypeptide_region ***
  28971. --- *** relation type: VIEW ***
  28972. --- *** ***
  28973. --- *** A region of polypeptide chain with high ***
  28974. --- *** conformational flexibility. ***
  28975. --- ************************************************
  28976. ---
  28977. CREATE VIEW intrinsically_unstructured_polypeptide_region AS
  28978. SELECT
  28979. feature_id AS intrinsically_unstructured_polypeptide_region_id,
  28980. feature.*
  28981. FROM
  28982. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28983. WHERE cvterm.name = 'intrinsically_unstructured_polypeptide_region';
  28984. --- ************************************************
  28985. --- *** relation: catmat_left_handed_three ***
  28986. --- *** relation type: VIEW ***
  28987. --- *** ***
  28988. --- *** A motif of 3 consecutive residues with d ***
  28989. --- *** ihedral angles as follows: res i: phi -9 ***
  28990. --- *** 0 bounds -120 to -60, res i: psi -10 bou ***
  28991. --- *** nds -50 to 30, res i+1: phi -75 bounds - ***
  28992. --- *** 100 to -50, res i+1: psi 140 bounds 110 ***
  28993. --- *** to 170. An extra restriction of the leng ***
  28994. --- *** th of the O to O distance would be usefu ***
  28995. --- *** l, that it be less than 5 Angstrom. More ***
  28996. --- *** precisely these two oxygens are the mai ***
  28997. --- *** n chain carbonyl oxygen atoms of residue ***
  28998. --- *** s i-1 and i+1. ***
  28999. --- ************************************************
  29000. ---
  29001. CREATE VIEW catmat_left_handed_three AS
  29002. SELECT
  29003. feature_id AS catmat_left_handed_three_id,
  29004. feature.*
  29005. FROM
  29006. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29007. WHERE cvterm.name = 'catmat_left_handed_three';
  29008. --- ************************************************
  29009. --- *** relation: catmat_left_handed_four ***
  29010. --- *** relation type: VIEW ***
  29011. --- *** ***
  29012. --- *** A motif of 4 consecutive residues with d ***
  29013. --- *** ihedral angles as follows: res i: phi -9 ***
  29014. --- *** 0 bounds -120 to -60, res i psi -10 boun ***
  29015. --- *** ds -50 to 30, res i+1: phi -90 bounds -1 ***
  29016. --- *** 20 to -60, res i+1: psi -10 bounds -50 t ***
  29017. --- *** o 30, res i+2: phi -75 bounds -100 to -5 ***
  29018. --- *** 0, res i+2: psi 140 bounds 110 to 170. ***
  29019. --- *** The extra restriction of the length of t ***
  29020. --- *** he O to O distance is similar, that it b ***
  29021. --- *** e less than 5 Angstrom. In this case the ***
  29022. --- *** se two Oxygen atoms are the main chain c ***
  29023. --- *** arbonyl oxygen atoms of residues i-1 and ***
  29024. --- *** i+2. ***
  29025. --- ************************************************
  29026. ---
  29027. CREATE VIEW catmat_left_handed_four AS
  29028. SELECT
  29029. feature_id AS catmat_left_handed_four_id,
  29030. feature.*
  29031. FROM
  29032. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29033. WHERE cvterm.name = 'catmat_left_handed_four';
  29034. --- ************************************************
  29035. --- *** relation: catmat_right_handed_three ***
  29036. --- *** relation type: VIEW ***
  29037. --- *** ***
  29038. --- *** A motif of 3 consecutive residues with d ***
  29039. --- *** ihedral angles as follows: res i: phi -9 ***
  29040. --- *** 0 bounds -120 to -60, res i: psi -10 bou ***
  29041. --- *** nds -50 to 30, res i+1: phi -75 bounds - ***
  29042. --- *** 100 to -50, res i+1: psi 140 bounds 110 ***
  29043. --- *** to 170. An extra restriction of the leng ***
  29044. --- *** th of the O to O distance would be usefu ***
  29045. --- *** l, that it be less than 5 Angstrom. More ***
  29046. --- *** precisely these two oxygens are the mai ***
  29047. --- *** n chain carbonyl oxygen atoms of residue ***
  29048. --- *** s i-1 and i+1. ***
  29049. --- ************************************************
  29050. ---
  29051. CREATE VIEW catmat_right_handed_three AS
  29052. SELECT
  29053. feature_id AS catmat_right_handed_three_id,
  29054. feature.*
  29055. FROM
  29056. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29057. WHERE cvterm.name = 'catmat_right_handed_three';
  29058. --- ************************************************
  29059. --- *** relation: catmat_right_handed_four ***
  29060. --- *** relation type: VIEW ***
  29061. --- *** ***
  29062. --- *** A motif of 4 consecutive residues with d ***
  29063. --- *** ihedral angles as follows: res i: phi -9 ***
  29064. --- *** 0 bounds -120 to -60, res i: psi -10 bou ***
  29065. --- *** nds -50 to 30, res i+1: phi -90 bounds - ***
  29066. --- *** 120 to -60, res i+1: psi -10 bounds -50 ***
  29067. --- *** to 30, res i+2: phi -75 bounds -100 to - ***
  29068. --- *** 50, res i+2: psi 140 bounds 110 to 170. ***
  29069. --- *** The extra restriction of the length of t ***
  29070. --- *** he O to O distance is similar, that it b ***
  29071. --- *** e less than 5 Angstrom. In this case the ***
  29072. --- *** se two Oxygen atoms are the main chain c ***
  29073. --- *** arbonyl oxygen atoms of residues i-1 and ***
  29074. --- *** i+2. ***
  29075. --- ************************************************
  29076. ---
  29077. CREATE VIEW catmat_right_handed_four AS
  29078. SELECT
  29079. feature_id AS catmat_right_handed_four_id,
  29080. feature.*
  29081. FROM
  29082. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29083. WHERE cvterm.name = 'catmat_right_handed_four';
  29084. --- ************************************************
  29085. --- *** relation: alpha_beta_motif ***
  29086. --- *** relation type: VIEW ***
  29087. --- *** ***
  29088. --- *** A motif of five consecutive residues and ***
  29089. --- *** two H-bonds in which: H-bond between CO ***
  29090. --- *** of residue(i) and NH of residue(i+4), H ***
  29091. --- *** -bond between CO of residue(i) and NH of ***
  29092. --- *** residue(i+3),Phi angles of residues(i+1 ***
  29093. --- *** ), (i+2) and (i+3) are negative. ***
  29094. --- ************************************************
  29095. ---
  29096. CREATE VIEW alpha_beta_motif AS
  29097. SELECT
  29098. feature_id AS alpha_beta_motif_id,
  29099. feature.*
  29100. FROM
  29101. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29102. WHERE cvterm.name = 'alpha_beta_motif';
  29103. --- ************************************************
  29104. --- *** relation: lipoprotein_signal_peptide ***
  29105. --- *** relation type: VIEW ***
  29106. --- *** ***
  29107. --- *** A peptide that acts as a signal for both ***
  29108. --- *** membrane translocation and lipid attach ***
  29109. --- *** ment in prokaryotes. ***
  29110. --- ************************************************
  29111. ---
  29112. CREATE VIEW lipoprotein_signal_peptide AS
  29113. SELECT
  29114. feature_id AS lipoprotein_signal_peptide_id,
  29115. feature.*
  29116. FROM
  29117. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29118. WHERE cvterm.name = 'lipoprotein_signal_peptide';
  29119. --- ************************************************
  29120. --- *** relation: no_output ***
  29121. --- *** relation type: VIEW ***
  29122. --- *** ***
  29123. --- *** An experimental region wherean analysis ***
  29124. --- *** has been run and not produced any annota ***
  29125. --- *** tion. ***
  29126. --- ************************************************
  29127. ---
  29128. CREATE VIEW no_output AS
  29129. SELECT
  29130. feature_id AS no_output_id,
  29131. feature.*
  29132. FROM
  29133. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29134. WHERE cvterm.name = 'no_output';
  29135. --- ************************************************
  29136. --- *** relation: cleaved_peptide_region ***
  29137. --- *** relation type: VIEW ***
  29138. --- *** ***
  29139. --- *** The cleaved_peptide_regon is the a regio ***
  29140. --- *** n of peptide sequence that is cleaved du ***
  29141. --- *** ring maturation. ***
  29142. --- ************************************************
  29143. ---
  29144. CREATE VIEW cleaved_peptide_region AS
  29145. SELECT
  29146. feature_id AS cleaved_peptide_region_id,
  29147. feature.*
  29148. FROM
  29149. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29150. 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';
  29151. --- ************************************************
  29152. --- *** relation: peptide_coil ***
  29153. --- *** relation type: VIEW ***
  29154. --- *** ***
  29155. --- *** Irregular, unstructured regions of a pro ***
  29156. --- *** tein's backbone, as distinct from the re ***
  29157. --- *** gular region (namely alpha helix and bet ***
  29158. --- *** a strand - characterised by specific pat ***
  29159. --- *** terns of main-chain hydrogen bonds). ***
  29160. --- ************************************************
  29161. ---
  29162. CREATE VIEW peptide_coil AS
  29163. SELECT
  29164. feature_id AS peptide_coil_id,
  29165. feature.*
  29166. FROM
  29167. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29168. WHERE cvterm.name = 'peptide_coil';
  29169. --- ************************************************
  29170. --- *** relation: hydrophobic_region_of_peptide ***
  29171. --- *** relation type: VIEW ***
  29172. --- *** ***
  29173. --- *** Hydrophobic regions are regions with a l ***
  29174. --- *** ow affinity for water. ***
  29175. --- ************************************************
  29176. ---
  29177. CREATE VIEW hydrophobic_region_of_peptide AS
  29178. SELECT
  29179. feature_id AS hydrophobic_region_of_peptide_id,
  29180. feature.*
  29181. FROM
  29182. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29183. WHERE cvterm.name = 'hydrophobic_region_of_peptide';
  29184. --- ************************************************
  29185. --- *** relation: n_terminal_region ***
  29186. --- *** relation type: VIEW ***
  29187. --- *** ***
  29188. --- *** The amino-terminal positively-charged re ***
  29189. --- *** gion of a signal peptide (approx 1-5 aa) ***
  29190. --- *** . ***
  29191. --- ************************************************
  29192. ---
  29193. CREATE VIEW n_terminal_region AS
  29194. SELECT
  29195. feature_id AS n_terminal_region_id,
  29196. feature.*
  29197. FROM
  29198. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29199. WHERE cvterm.name = 'n_terminal_region';
  29200. --- ************************************************
  29201. --- *** relation: c_terminal_region ***
  29202. --- *** relation type: VIEW ***
  29203. --- *** ***
  29204. --- *** The more polar, carboxy-terminal region ***
  29205. --- *** of the signal peptide (approx 3-7 aa). ***
  29206. --- ************************************************
  29207. ---
  29208. CREATE VIEW c_terminal_region AS
  29209. SELECT
  29210. feature_id AS c_terminal_region_id,
  29211. feature.*
  29212. FROM
  29213. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29214. WHERE cvterm.name = 'c_terminal_region';
  29215. --- ************************************************
  29216. --- *** relation: central_hydrophobic_region_of_signal_peptide ***
  29217. --- *** relation type: VIEW ***
  29218. --- *** ***
  29219. --- *** The central, hydrophobic region of the s ***
  29220. --- *** ignal peptide (approx 7-15 aa). ***
  29221. --- ************************************************
  29222. ---
  29223. CREATE VIEW central_hydrophobic_region_of_signal_peptide AS
  29224. SELECT
  29225. feature_id AS central_hydrophobic_region_of_signal_peptide_id,
  29226. feature.*
  29227. FROM
  29228. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29229. WHERE cvterm.name = 'central_hydrophobic_region_of_signal_peptide';
  29230. --- ************************************************
  29231. --- *** relation: polypeptide_conserved_motif ***
  29232. --- *** relation type: VIEW ***
  29233. --- *** ***
  29234. --- *** A conserved motif is a short (up to 20 a ***
  29235. --- *** mino acids) region of biological interes ***
  29236. --- *** t that is conserved in different protein ***
  29237. --- *** s. They may or may not have functional o ***
  29238. --- *** r structural significance within the pro ***
  29239. --- *** teins in which they are found. ***
  29240. --- ************************************************
  29241. ---
  29242. CREATE VIEW polypeptide_conserved_motif AS
  29243. SELECT
  29244. feature_id AS polypeptide_conserved_motif_id,
  29245. feature.*
  29246. FROM
  29247. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29248. WHERE cvterm.name = 'polypeptide_conserved_motif';
  29249. --- ************************************************
  29250. --- *** relation: polypeptide_binding_motif ***
  29251. --- *** relation type: VIEW ***
  29252. --- *** ***
  29253. --- *** A polypeptide binding motif is a short ( ***
  29254. --- *** up to 20 amino acids) polypeptide region ***
  29255. --- *** of biological interest that contains on ***
  29256. --- *** e or more amino acids experimentally sho ***
  29257. --- *** wn to bind to a ligand. ***
  29258. --- ************************************************
  29259. ---
  29260. CREATE VIEW polypeptide_binding_motif AS
  29261. SELECT
  29262. feature_id AS polypeptide_binding_motif_id,
  29263. feature.*
  29264. FROM
  29265. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29266. WHERE cvterm.name = 'polypeptide_binding_motif';
  29267. --- ************************************************
  29268. --- *** relation: polypeptide_catalytic_motif ***
  29269. --- *** relation type: VIEW ***
  29270. --- *** ***
  29271. --- *** A polypeptide catalytic motif is a short ***
  29272. --- *** (up to 20 amino acids) polypeptide regi ***
  29273. --- *** on that contains one or more active site ***
  29274. --- *** residues. ***
  29275. --- ************************************************
  29276. ---
  29277. CREATE VIEW polypeptide_catalytic_motif AS
  29278. SELECT
  29279. feature_id AS polypeptide_catalytic_motif_id,
  29280. feature.*
  29281. FROM
  29282. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29283. WHERE cvterm.name = 'polypeptide_catalytic_motif';
  29284. --- ************************************************
  29285. --- *** relation: polypeptide_dna_contact ***
  29286. --- *** relation type: VIEW ***
  29287. --- *** ***
  29288. --- *** A binding site that, in the polypeptide ***
  29289. --- *** molecule, interacts selectively and non- ***
  29290. --- *** covalently with DNA. ***
  29291. --- ************************************************
  29292. ---
  29293. CREATE VIEW polypeptide_dna_contact AS
  29294. SELECT
  29295. feature_id AS polypeptide_dna_contact_id,
  29296. feature.*
  29297. FROM
  29298. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29299. WHERE cvterm.name = 'polypeptide_DNA_contact';
  29300. --- ************************************************
  29301. --- *** relation: polypeptide_conserved_region ***
  29302. --- *** relation type: VIEW ***
  29303. --- *** ***
  29304. --- *** A subsection of sequence with biological ***
  29305. --- *** interest that is conserved in different ***
  29306. --- *** proteins. They may or may not have func ***
  29307. --- *** tional or structural significance within ***
  29308. --- *** the proteins in which they are found. ***
  29309. --- ************************************************
  29310. ---
  29311. CREATE VIEW polypeptide_conserved_region AS
  29312. SELECT
  29313. feature_id AS polypeptide_conserved_region_id,
  29314. feature.*
  29315. FROM
  29316. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29317. 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';
  29318. --- ************************************************
  29319. --- *** relation: substitution ***
  29320. --- *** relation type: VIEW ***
  29321. --- *** ***
  29322. --- *** A sequence alteration where the length o ***
  29323. --- *** f the change in the variant is the same ***
  29324. --- *** as that of the reference. ***
  29325. --- ************************************************
  29326. ---
  29327. CREATE VIEW substitution AS
  29328. SELECT
  29329. feature_id AS substitution_id,
  29330. feature.*
  29331. FROM
  29332. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29333. 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';
  29334. --- ************************************************
  29335. --- *** relation: complex_substitution ***
  29336. --- *** relation type: VIEW ***
  29337. --- *** ***
  29338. --- *** When no simple or well defined DNA mutat ***
  29339. --- *** ion event describes the observed DNA cha ***
  29340. --- *** nge, the keyword "complex" should be use ***
  29341. --- *** d. Usually there are multiple equally pl ***
  29342. --- *** ausible explanations for the change. ***
  29343. --- ************************************************
  29344. ---
  29345. CREATE VIEW complex_substitution AS
  29346. SELECT
  29347. feature_id AS complex_substitution_id,
  29348. feature.*
  29349. FROM
  29350. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29351. WHERE cvterm.name = 'complex_substitution';
  29352. --- ************************************************
  29353. --- *** relation: point_mutation ***
  29354. --- *** relation type: VIEW ***
  29355. --- *** ***
  29356. --- *** A single nucleotide change which has occ ***
  29357. --- *** urred at the same position of a correspo ***
  29358. --- *** nding nucleotide in a reference sequence ***
  29359. --- *** . ***
  29360. --- ************************************************
  29361. ---
  29362. CREATE VIEW point_mutation AS
  29363. SELECT
  29364. feature_id AS point_mutation_id,
  29365. feature.*
  29366. FROM
  29367. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29368. WHERE cvterm.name = 'point_mutation';
  29369. --- ************************************************
  29370. --- *** relation: transition ***
  29371. --- *** relation type: VIEW ***
  29372. --- *** ***
  29373. --- *** Change of a pyrimidine nucleotide, C or ***
  29374. --- *** T, into an other pyrimidine nucleotide, ***
  29375. --- *** or change of a purine nucleotide, A or G ***
  29376. --- *** , into an other purine nucleotide. ***
  29377. --- ************************************************
  29378. ---
  29379. CREATE VIEW transition AS
  29380. SELECT
  29381. feature_id AS transition_id,
  29382. feature.*
  29383. FROM
  29384. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29385. 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';
  29386. --- ************************************************
  29387. --- *** relation: pyrimidine_transition ***
  29388. --- *** relation type: VIEW ***
  29389. --- *** ***
  29390. --- *** A substitution of a pyrimidine, C or T, ***
  29391. --- *** for another pyrimidine. ***
  29392. --- ************************************************
  29393. ---
  29394. CREATE VIEW pyrimidine_transition AS
  29395. SELECT
  29396. feature_id AS pyrimidine_transition_id,
  29397. feature.*
  29398. FROM
  29399. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29400. 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';
  29401. --- ************************************************
  29402. --- *** relation: c_to_t_transition ***
  29403. --- *** relation type: VIEW ***
  29404. --- *** ***
  29405. --- *** A transition of a cytidine to a thymine. ***
  29406. --- ************************************************
  29407. ---
  29408. CREATE VIEW c_to_t_transition AS
  29409. SELECT
  29410. feature_id AS c_to_t_transition_id,
  29411. feature.*
  29412. FROM
  29413. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29414. WHERE cvterm.name = 'C_to_T_transition_at_pCpG_site' OR cvterm.name = 'C_to_T_transition';
  29415. --- ************************************************
  29416. --- *** relation: c_to_t_transition_at_pcpg_site ***
  29417. --- *** relation type: VIEW ***
  29418. --- *** ***
  29419. --- *** The transition of cytidine to thymine oc ***
  29420. --- *** curring at a pCpG site as a consequence ***
  29421. --- *** of the spontaneous deamination of 5'-met ***
  29422. --- *** hylcytidine. ***
  29423. --- ************************************************
  29424. ---
  29425. CREATE VIEW c_to_t_transition_at_pcpg_site AS
  29426. SELECT
  29427. feature_id AS c_to_t_transition_at_pcpg_site_id,
  29428. feature.*
  29429. FROM
  29430. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29431. WHERE cvterm.name = 'C_to_T_transition_at_pCpG_site';
  29432. --- ************************************************
  29433. --- *** relation: t_to_c_transition ***
  29434. --- *** relation type: VIEW ***
  29435. --- *** ***
  29436. --- ************************************************
  29437. ---
  29438. CREATE VIEW t_to_c_transition AS
  29439. SELECT
  29440. feature_id AS t_to_c_transition_id,
  29441. feature.*
  29442. FROM
  29443. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29444. WHERE cvterm.name = 'T_to_C_transition';
  29445. --- ************************************************
  29446. --- *** relation: purine_transition ***
  29447. --- *** relation type: VIEW ***
  29448. --- *** ***
  29449. --- *** A substitution of a purine, A or G, for ***
  29450. --- *** another purine. ***
  29451. --- ************************************************
  29452. ---
  29453. CREATE VIEW purine_transition AS
  29454. SELECT
  29455. feature_id AS purine_transition_id,
  29456. feature.*
  29457. FROM
  29458. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29459. WHERE cvterm.name = 'A_to_G_transition' OR cvterm.name = 'G_to_A_transition' OR cvterm.name = 'purine_transition';
  29460. --- ************************************************
  29461. --- *** relation: a_to_g_transition ***
  29462. --- *** relation type: VIEW ***
  29463. --- *** ***
  29464. --- *** A transition of an adenine to a guanine. ***
  29465. --- ************************************************
  29466. ---
  29467. CREATE VIEW a_to_g_transition AS
  29468. SELECT
  29469. feature_id AS a_to_g_transition_id,
  29470. feature.*
  29471. FROM
  29472. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29473. WHERE cvterm.name = 'A_to_G_transition';
  29474. --- ************************************************
  29475. --- *** relation: g_to_a_transition ***
  29476. --- *** relation type: VIEW ***
  29477. --- *** ***
  29478. --- *** A transition of a guanine to an adenine. ***
  29479. --- ************************************************
  29480. ---
  29481. CREATE VIEW g_to_a_transition AS
  29482. SELECT
  29483. feature_id AS g_to_a_transition_id,
  29484. feature.*
  29485. FROM
  29486. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29487. WHERE cvterm.name = 'G_to_A_transition';
  29488. --- ************************************************
  29489. --- *** relation: transversion ***
  29490. --- *** relation type: VIEW ***
  29491. --- *** ***
  29492. --- *** Change of a pyrimidine nucleotide, C or ***
  29493. --- *** T, into a purine nucleotide, A or G, or ***
  29494. --- *** vice versa. ***
  29495. --- ************************************************
  29496. ---
  29497. CREATE VIEW transversion AS
  29498. SELECT
  29499. feature_id AS transversion_id,
  29500. feature.*
  29501. FROM
  29502. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29503. 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';
  29504. --- ************************************************
  29505. --- *** relation: pyrimidine_to_purine_transversion ***
  29506. --- *** relation type: VIEW ***
  29507. --- *** ***
  29508. --- *** Change of a pyrimidine nucleotide, C or ***
  29509. --- *** T, into a purine nucleotide, A or G. ***
  29510. --- ************************************************
  29511. ---
  29512. CREATE VIEW pyrimidine_to_purine_transversion AS
  29513. SELECT
  29514. feature_id AS pyrimidine_to_purine_transversion_id,
  29515. feature.*
  29516. FROM
  29517. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29518. 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';
  29519. --- ************************************************
  29520. --- *** relation: c_to_a_transversion ***
  29521. --- *** relation type: VIEW ***
  29522. --- *** ***
  29523. --- *** A transversion from cytidine to adenine. ***
  29524. --- ************************************************
  29525. ---
  29526. CREATE VIEW c_to_a_transversion AS
  29527. SELECT
  29528. feature_id AS c_to_a_transversion_id,
  29529. feature.*
  29530. FROM
  29531. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29532. WHERE cvterm.name = 'C_to_A_transversion';
  29533. --- ************************************************
  29534. --- *** relation: c_to_g_transversion ***
  29535. --- *** relation type: VIEW ***
  29536. --- *** ***
  29537. --- ************************************************
  29538. ---
  29539. CREATE VIEW c_to_g_transversion AS
  29540. SELECT
  29541. feature_id AS c_to_g_transversion_id,
  29542. feature.*
  29543. FROM
  29544. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29545. WHERE cvterm.name = 'C_to_G_transversion';
  29546. --- ************************************************
  29547. --- *** relation: t_to_a_transversion ***
  29548. --- *** relation type: VIEW ***
  29549. --- *** ***
  29550. --- *** A transversion from T to A. ***
  29551. --- ************************************************
  29552. ---
  29553. CREATE VIEW t_to_a_transversion AS
  29554. SELECT
  29555. feature_id AS t_to_a_transversion_id,
  29556. feature.*
  29557. FROM
  29558. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29559. WHERE cvterm.name = 'T_to_A_transversion';
  29560. --- ************************************************
  29561. --- *** relation: t_to_g_transversion ***
  29562. --- *** relation type: VIEW ***
  29563. --- *** ***
  29564. --- *** A transversion from T to G. ***
  29565. --- ************************************************
  29566. ---
  29567. CREATE VIEW t_to_g_transversion AS
  29568. SELECT
  29569. feature_id AS t_to_g_transversion_id,
  29570. feature.*
  29571. FROM
  29572. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29573. WHERE cvterm.name = 'T_to_G_transversion';
  29574. --- ************************************************
  29575. --- *** relation: purine_to_pyrimidine_transversion ***
  29576. --- *** relation type: VIEW ***
  29577. --- *** ***
  29578. --- *** Change of a purine nucleotide, A or G , ***
  29579. --- *** into a pyrimidine nucleotide C or T. ***
  29580. --- ************************************************
  29581. ---
  29582. CREATE VIEW purine_to_pyrimidine_transversion AS
  29583. SELECT
  29584. feature_id AS purine_to_pyrimidine_transversion_id,
  29585. feature.*
  29586. FROM
  29587. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29588. 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';
  29589. --- ************************************************
  29590. --- *** relation: a_to_c_transversion ***
  29591. --- *** relation type: VIEW ***
  29592. --- *** ***
  29593. --- *** A transversion from adenine to cytidine. ***
  29594. --- ************************************************
  29595. ---
  29596. CREATE VIEW a_to_c_transversion AS
  29597. SELECT
  29598. feature_id AS a_to_c_transversion_id,
  29599. feature.*
  29600. FROM
  29601. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29602. WHERE cvterm.name = 'A_to_C_transversion';
  29603. --- ************************************************
  29604. --- *** relation: a_to_t_transversion ***
  29605. --- *** relation type: VIEW ***
  29606. --- *** ***
  29607. --- *** A transversion from adenine to thymine. ***
  29608. --- ************************************************
  29609. ---
  29610. CREATE VIEW a_to_t_transversion AS
  29611. SELECT
  29612. feature_id AS a_to_t_transversion_id,
  29613. feature.*
  29614. FROM
  29615. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29616. WHERE cvterm.name = 'A_to_T_transversion';
  29617. --- ************************************************
  29618. --- *** relation: g_to_c_transversion ***
  29619. --- *** relation type: VIEW ***
  29620. --- *** ***
  29621. --- *** A transversion from guanine to cytidine. ***
  29622. --- ************************************************
  29623. ---
  29624. CREATE VIEW g_to_c_transversion AS
  29625. SELECT
  29626. feature_id AS g_to_c_transversion_id,
  29627. feature.*
  29628. FROM
  29629. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29630. WHERE cvterm.name = 'G_to_C_transversion';
  29631. --- ************************************************
  29632. --- *** relation: g_to_t_transversion ***
  29633. --- *** relation type: VIEW ***
  29634. --- *** ***
  29635. --- *** A transversion from guanine to thymine. ***
  29636. --- ************************************************
  29637. ---
  29638. CREATE VIEW g_to_t_transversion AS
  29639. SELECT
  29640. feature_id AS g_to_t_transversion_id,
  29641. feature.*
  29642. FROM
  29643. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29644. WHERE cvterm.name = 'G_to_T_transversion';
  29645. --- ************************************************
  29646. --- *** relation: intrachromosomal_mutation ***
  29647. --- *** relation type: VIEW ***
  29648. --- *** ***
  29649. --- *** A chromosomal structure variation within ***
  29650. --- *** a single chromosome. ***
  29651. --- ************************************************
  29652. ---
  29653. CREATE VIEW intrachromosomal_mutation AS
  29654. SELECT
  29655. feature_id AS intrachromosomal_mutation_id,
  29656. feature.*
  29657. FROM
  29658. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29659. 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';
  29660. --- ************************************************
  29661. --- *** relation: chromosomal_deletion ***
  29662. --- *** relation type: VIEW ***
  29663. --- *** ***
  29664. --- *** An incomplete chromosome. ***
  29665. --- ************************************************
  29666. ---
  29667. CREATE VIEW chromosomal_deletion AS
  29668. SELECT
  29669. feature_id AS chromosomal_deletion_id,
  29670. feature.*
  29671. FROM
  29672. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29673. 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';
  29674. --- ************************************************
  29675. --- *** relation: chromosomal_inversion ***
  29676. --- *** relation type: VIEW ***
  29677. --- *** ***
  29678. --- *** An interchromosomal mutation where a reg ***
  29679. --- *** ion of the chromosome is inverted with r ***
  29680. --- *** espect to wild type. ***
  29681. --- ************************************************
  29682. ---
  29683. CREATE VIEW chromosomal_inversion AS
  29684. SELECT
  29685. feature_id AS chromosomal_inversion_id,
  29686. feature.*
  29687. FROM
  29688. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29689. 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';
  29690. --- ************************************************
  29691. --- *** relation: interchromosomal_mutation ***
  29692. --- *** relation type: VIEW ***
  29693. --- *** ***
  29694. --- *** A chromosomal structure variation whereb ***
  29695. --- *** y more than one chromosome is involved. ***
  29696. --- ************************************************
  29697. ---
  29698. CREATE VIEW interchromosomal_mutation AS
  29699. SELECT
  29700. feature_id AS interchromosomal_mutation_id,
  29701. feature.*
  29702. FROM
  29703. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29704. 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';
  29705. --- ************************************************
  29706. --- *** relation: indel ***
  29707. --- *** relation type: VIEW ***
  29708. --- *** ***
  29709. --- *** A sequence alteration which included an ***
  29710. --- *** insertion and a deletion, affecting 2 or ***
  29711. --- *** more bases. ***
  29712. --- ************************************************
  29713. ---
  29714. CREATE VIEW indel AS
  29715. SELECT
  29716. feature_id AS indel_id,
  29717. feature.*
  29718. FROM
  29719. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29720. WHERE cvterm.name = 'indel';
  29721. --- ************************************************
  29722. --- *** relation: duplication ***
  29723. --- *** relation type: VIEW ***
  29724. --- *** ***
  29725. --- *** One or more nucleotides are added betwee ***
  29726. --- *** n two adjacent nucleotides in the sequen ***
  29727. --- *** ce; the inserted sequence derives from, ***
  29728. --- *** or is identical in sequence to, nucleoti ***
  29729. --- *** des adjacent to insertion point. ***
  29730. --- ************************************************
  29731. ---
  29732. CREATE VIEW duplication AS
  29733. SELECT
  29734. feature_id AS duplication_id,
  29735. feature.*
  29736. FROM
  29737. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29738. WHERE cvterm.name = 'tandem_duplication' OR cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' OR cvterm.name = 'duplication';
  29739. --- ************************************************
  29740. --- *** relation: inversion ***
  29741. --- *** relation type: VIEW ***
  29742. --- *** ***
  29743. --- *** A continuous nucleotide sequence is inve ***
  29744. --- *** rted in the same position. ***
  29745. --- ************************************************
  29746. ---
  29747. CREATE VIEW inversion AS
  29748. SELECT
  29749. feature_id AS inversion_id,
  29750. feature.*
  29751. FROM
  29752. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29753. WHERE cvterm.name = 'inversion';
  29754. --- ************************************************
  29755. --- *** relation: chromosomal_duplication ***
  29756. --- *** relation type: VIEW ***
  29757. --- *** ***
  29758. --- *** An extra chromosome. ***
  29759. --- ************************************************
  29760. ---
  29761. CREATE VIEW chromosomal_duplication AS
  29762. SELECT
  29763. feature_id AS chromosomal_duplication_id,
  29764. feature.*
  29765. FROM
  29766. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29767. 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';
  29768. --- ************************************************
  29769. --- *** relation: intrachromosomal_duplication ***
  29770. --- *** relation type: VIEW ***
  29771. --- *** ***
  29772. --- *** A duplication that occurred within a chr ***
  29773. --- *** omosome. ***
  29774. --- ************************************************
  29775. ---
  29776. CREATE VIEW intrachromosomal_duplication AS
  29777. SELECT
  29778. feature_id AS intrachromosomal_duplication_id,
  29779. feature.*
  29780. FROM
  29781. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29782. 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';
  29783. --- ************************************************
  29784. --- *** relation: direct_tandem_duplication ***
  29785. --- *** relation type: VIEW ***
  29786. --- *** ***
  29787. --- *** A tandem duplication where the individua ***
  29788. --- *** l regions are in the same orientation. ***
  29789. --- ************************************************
  29790. ---
  29791. CREATE VIEW direct_tandem_duplication AS
  29792. SELECT
  29793. feature_id AS direct_tandem_duplication_id,
  29794. feature.*
  29795. FROM
  29796. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29797. WHERE cvterm.name = 'direct_tandem_duplication';
  29798. --- ************************************************
  29799. --- *** relation: inverted_tandem_duplication ***
  29800. --- *** relation type: VIEW ***
  29801. --- *** ***
  29802. --- *** A tandem duplication where the individua ***
  29803. --- *** l regions are not in the same orientatio ***
  29804. --- *** n. ***
  29805. --- ************************************************
  29806. ---
  29807. CREATE VIEW inverted_tandem_duplication AS
  29808. SELECT
  29809. feature_id AS inverted_tandem_duplication_id,
  29810. feature.*
  29811. FROM
  29812. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29813. WHERE cvterm.name = 'inverted_tandem_duplication';
  29814. --- ************************************************
  29815. --- *** relation: intrachromosomal_transposition ***
  29816. --- *** relation type: VIEW ***
  29817. --- *** ***
  29818. --- *** A chromosome structure variation whereby ***
  29819. --- *** a transposition occurred within a chrom ***
  29820. --- *** osome. ***
  29821. --- ************************************************
  29822. ---
  29823. CREATE VIEW intrachromosomal_transposition AS
  29824. SELECT
  29825. feature_id AS intrachromosomal_transposition_id,
  29826. feature.*
  29827. FROM
  29828. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29829. 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';
  29830. --- ************************************************
  29831. --- *** relation: compound_chromosome ***
  29832. --- *** relation type: VIEW ***
  29833. --- *** ***
  29834. --- *** A chromosome structure variant where a m ***
  29835. --- *** onocentric element is caused by the fusi ***
  29836. --- *** on of two chromosome arms. ***
  29837. --- ************************************************
  29838. ---
  29839. CREATE VIEW compound_chromosome AS
  29840. SELECT
  29841. feature_id AS compound_chromosome_id,
  29842. feature.*
  29843. FROM
  29844. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29845. WHERE cvterm.name = 'compound_chromosome_arm' OR cvterm.name = 'homo_compound_chromosome' OR cvterm.name = 'hetero_compound_chromosome' OR cvterm.name = 'compound_chromosome';
  29846. --- ************************************************
  29847. --- *** relation: robertsonian_fusion ***
  29848. --- *** relation type: VIEW ***
  29849. --- *** ***
  29850. --- *** A non reciprocal translocation whereby t ***
  29851. --- *** he participating chromosomes break at th ***
  29852. --- *** eir centromeres and the long arms fuse t ***
  29853. --- *** o form a single chromosome with a single ***
  29854. --- *** centromere. ***
  29855. --- ************************************************
  29856. ---
  29857. CREATE VIEW robertsonian_fusion AS
  29858. SELECT
  29859. feature_id AS robertsonian_fusion_id,
  29860. feature.*
  29861. FROM
  29862. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29863. WHERE cvterm.name = 'Robertsonian_fusion';
  29864. --- ************************************************
  29865. --- *** relation: chromosomal_translocation ***
  29866. --- *** relation type: VIEW ***
  29867. --- *** ***
  29868. --- *** An interchromosomal mutation. Rearrangem ***
  29869. --- *** ents that alter the pairing of telomeres ***
  29870. --- *** are classified as translocations. ***
  29871. --- ************************************************
  29872. ---
  29873. CREATE VIEW chromosomal_translocation AS
  29874. SELECT
  29875. feature_id AS chromosomal_translocation_id,
  29876. feature.*
  29877. FROM
  29878. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29879. 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';
  29880. --- ************************************************
  29881. --- *** relation: ring_chromosome ***
  29882. --- *** relation type: VIEW ***
  29883. --- *** ***
  29884. --- *** A ring chromosome is a chromosome whose ***
  29885. --- *** arms have fused together to form a ring, ***
  29886. --- *** often with the loss of the ends of the ***
  29887. --- *** chromosome. ***
  29888. --- ************************************************
  29889. ---
  29890. CREATE VIEW ring_chromosome AS
  29891. SELECT
  29892. feature_id AS ring_chromosome_id,
  29893. feature.*
  29894. FROM
  29895. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29896. WHERE cvterm.name = 'inverted_ring_chromosome' OR cvterm.name = 'free_ring_duplication' OR cvterm.name = 'ring_chromosome';
  29897. --- ************************************************
  29898. --- *** relation: pericentric_inversion ***
  29899. --- *** relation type: VIEW ***
  29900. --- *** ***
  29901. --- *** A chromosomal inversion that includes th ***
  29902. --- *** e centromere. ***
  29903. --- ************************************************
  29904. ---
  29905. CREATE VIEW pericentric_inversion AS
  29906. SELECT
  29907. feature_id AS pericentric_inversion_id,
  29908. feature.*
  29909. FROM
  29910. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29911. WHERE cvterm.name = 'pericentric_inversion';
  29912. --- ************************************************
  29913. --- *** relation: paracentric_inversion ***
  29914. --- *** relation type: VIEW ***
  29915. --- *** ***
  29916. --- *** A chromosomal inversion that does not in ***
  29917. --- *** clude the centromere. ***
  29918. --- ************************************************
  29919. ---
  29920. CREATE VIEW paracentric_inversion AS
  29921. SELECT
  29922. feature_id AS paracentric_inversion_id,
  29923. feature.*
  29924. FROM
  29925. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29926. WHERE cvterm.name = 'paracentric_inversion';
  29927. --- ************************************************
  29928. --- *** relation: reciprocal_chromosomal_translocation ***
  29929. --- *** relation type: VIEW ***
  29930. --- *** ***
  29931. --- *** A chromosomal translocation with two bre ***
  29932. --- *** aks; two chromosome segments have simply ***
  29933. --- *** been exchanged. ***
  29934. --- ************************************************
  29935. ---
  29936. CREATE VIEW reciprocal_chromosomal_translocation AS
  29937. SELECT
  29938. feature_id AS reciprocal_chromosomal_translocation_id,
  29939. feature.*
  29940. FROM
  29941. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29942. WHERE cvterm.name = 'reciprocal_chromosomal_translocation';
  29943. --- ************************************************
  29944. --- *** relation: autosynaptic_chromosome ***
  29945. --- *** relation type: VIEW ***
  29946. --- *** ***
  29947. --- *** An autosynaptic chromosome is the aneupl ***
  29948. --- *** oid product of recombination between a p ***
  29949. --- *** ericentric inversion and a cytologically ***
  29950. --- *** wild-type chromosome. ***
  29951. --- ************************************************
  29952. ---
  29953. CREATE VIEW autosynaptic_chromosome AS
  29954. SELECT
  29955. feature_id AS autosynaptic_chromosome_id,
  29956. feature.*
  29957. FROM
  29958. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29959. WHERE cvterm.name = 'dexstrosynaptic_chromosome' OR cvterm.name = 'laevosynaptic_chromosome' OR cvterm.name = 'autosynaptic_chromosome';
  29960. --- ************************************************
  29961. --- *** relation: homo_compound_chromosome ***
  29962. --- *** relation type: VIEW ***
  29963. --- *** ***
  29964. --- *** A compound chromosome whereby two copies ***
  29965. --- *** of the same chromosomal arm attached to ***
  29966. --- *** a common centromere. The chromosome is ***
  29967. --- *** diploid for the arm involved. ***
  29968. --- ************************************************
  29969. ---
  29970. CREATE VIEW homo_compound_chromosome AS
  29971. SELECT
  29972. feature_id AS homo_compound_chromosome_id,
  29973. feature.*
  29974. FROM
  29975. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29976. WHERE cvterm.name = 'homo_compound_chromosome';
  29977. --- ************************************************
  29978. --- *** relation: hetero_compound_chromosome ***
  29979. --- *** relation type: VIEW ***
  29980. --- *** ***
  29981. --- *** A compound chromosome whereby two arms f ***
  29982. --- *** rom different chromosomes are connected ***
  29983. --- *** through the centromere of one of them. ***
  29984. --- ************************************************
  29985. ---
  29986. CREATE VIEW hetero_compound_chromosome AS
  29987. SELECT
  29988. feature_id AS hetero_compound_chromosome_id,
  29989. feature.*
  29990. FROM
  29991. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29992. WHERE cvterm.name = 'hetero_compound_chromosome';
  29993. --- ************************************************
  29994. --- *** relation: chromosome_fission ***
  29995. --- *** relation type: VIEW ***
  29996. --- *** ***
  29997. --- *** A chromosome that occurred by the divisi ***
  29998. --- *** on of a larger chromosome. ***
  29999. --- ************************************************
  30000. ---
  30001. CREATE VIEW chromosome_fission AS
  30002. SELECT
  30003. feature_id AS chromosome_fission_id,
  30004. feature.*
  30005. FROM
  30006. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30007. WHERE cvterm.name = 'chromosome_fission';
  30008. --- ************************************************
  30009. --- *** relation: dexstrosynaptic_chromosome ***
  30010. --- *** relation type: VIEW ***
  30011. --- *** ***
  30012. --- *** An autosynaptic chromosome carrying the ***
  30013. --- *** two right (D = dextro) telomeres. ***
  30014. --- ************************************************
  30015. ---
  30016. CREATE VIEW dexstrosynaptic_chromosome AS
  30017. SELECT
  30018. feature_id AS dexstrosynaptic_chromosome_id,
  30019. feature.*
  30020. FROM
  30021. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30022. WHERE cvterm.name = 'dexstrosynaptic_chromosome';
  30023. --- ************************************************
  30024. --- *** relation: laevosynaptic_chromosome ***
  30025. --- *** relation type: VIEW ***
  30026. --- *** ***
  30027. --- *** LS is an autosynaptic chromosome carryin ***
  30028. --- *** g the two left (L = levo) telomeres. ***
  30029. --- ************************************************
  30030. ---
  30031. CREATE VIEW laevosynaptic_chromosome AS
  30032. SELECT
  30033. feature_id AS laevosynaptic_chromosome_id,
  30034. feature.*
  30035. FROM
  30036. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30037. WHERE cvterm.name = 'laevosynaptic_chromosome';
  30038. --- ************************************************
  30039. --- *** relation: free_duplication ***
  30040. --- *** relation type: VIEW ***
  30041. --- *** ***
  30042. --- *** A chromosome structure variation whereby ***
  30043. --- *** the duplicated sequences are carried as ***
  30044. --- *** a free centric element. ***
  30045. --- ************************************************
  30046. ---
  30047. CREATE VIEW free_duplication AS
  30048. SELECT
  30049. feature_id AS free_duplication_id,
  30050. feature.*
  30051. FROM
  30052. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30053. WHERE cvterm.name = 'free_ring_duplication' OR cvterm.name = 'free_duplication';
  30054. --- ************************************************
  30055. --- *** relation: free_ring_duplication ***
  30056. --- *** relation type: VIEW ***
  30057. --- *** ***
  30058. --- *** A ring chromosome which is a copy of ano ***
  30059. --- *** ther chromosome. ***
  30060. --- ************************************************
  30061. ---
  30062. CREATE VIEW free_ring_duplication AS
  30063. SELECT
  30064. feature_id AS free_ring_duplication_id,
  30065. feature.*
  30066. FROM
  30067. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30068. WHERE cvterm.name = 'free_ring_duplication';
  30069. --- ************************************************
  30070. --- *** relation: complex_chromosomal_mutation ***
  30071. --- *** relation type: VIEW ***
  30072. --- *** ***
  30073. --- *** A chromosome structure variant with 4 or ***
  30074. --- *** more breakpoints. ***
  30075. --- ************************************************
  30076. ---
  30077. CREATE VIEW complex_chromosomal_mutation AS
  30078. SELECT
  30079. feature_id AS complex_chromosomal_mutation_id,
  30080. feature.*
  30081. FROM
  30082. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30083. WHERE cvterm.name = 'complex_chromosomal_mutation';
  30084. --- ************************************************
  30085. --- *** relation: deficient_translocation ***
  30086. --- *** relation type: VIEW ***
  30087. --- *** ***
  30088. --- *** A chromosomal deletion whereby a translo ***
  30089. --- *** cation occurs in which one of the four b ***
  30090. --- *** roken ends loses a segment before re-joi ***
  30091. --- *** ning. ***
  30092. --- ************************************************
  30093. ---
  30094. CREATE VIEW deficient_translocation AS
  30095. SELECT
  30096. feature_id AS deficient_translocation_id,
  30097. feature.*
  30098. FROM
  30099. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30100. WHERE cvterm.name = 'deficient_translocation';
  30101. --- ************************************************
  30102. --- *** relation: inversion_cum_translocation ***
  30103. --- *** relation type: VIEW ***
  30104. --- *** ***
  30105. --- *** A chromosomal translocation whereby the ***
  30106. --- *** first two breaks are in the same chromos ***
  30107. --- *** ome, and the region between them is rejo ***
  30108. --- *** ined in inverted order to the other side ***
  30109. --- *** of the first break, such that both side ***
  30110. --- *** s of break one are present on the same c ***
  30111. --- *** hromosome. The remaining free ends are j ***
  30112. --- *** oined as a translocation with those resu ***
  30113. --- *** lting from the third break. ***
  30114. --- ************************************************
  30115. ---
  30116. CREATE VIEW inversion_cum_translocation AS
  30117. SELECT
  30118. feature_id AS inversion_cum_translocation_id,
  30119. feature.*
  30120. FROM
  30121. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30122. WHERE cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'inversion_cum_translocation';
  30123. --- ************************************************
  30124. --- *** relation: bipartite_duplication ***
  30125. --- *** relation type: VIEW ***
  30126. --- *** ***
  30127. --- *** An interchromosomal mutation whereby the ***
  30128. --- *** (large) region between the first two br ***
  30129. --- *** eaks listed is lost, and the two flankin ***
  30130. --- *** g segments (one of them centric) are joi ***
  30131. --- *** ned as a translocation to the free ends ***
  30132. --- *** resulting from the third break. ***
  30133. --- ************************************************
  30134. ---
  30135. CREATE VIEW bipartite_duplication AS
  30136. SELECT
  30137. feature_id AS bipartite_duplication_id,
  30138. feature.*
  30139. FROM
  30140. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30141. WHERE cvterm.name = 'bipartite_duplication';
  30142. --- ************************************************
  30143. --- *** relation: cyclic_translocation ***
  30144. --- *** relation type: VIEW ***
  30145. --- *** ***
  30146. --- *** A chromosomal translocation whereby thre ***
  30147. --- *** e breaks occurred in three different chr ***
  30148. --- *** omosomes. The centric segment resulting ***
  30149. --- *** from the first break listed is joined to ***
  30150. --- *** the acentric segment resulting from the ***
  30151. --- *** second, rather than the third. ***
  30152. --- ************************************************
  30153. ---
  30154. CREATE VIEW cyclic_translocation AS
  30155. SELECT
  30156. feature_id AS cyclic_translocation_id,
  30157. feature.*
  30158. FROM
  30159. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30160. WHERE cvterm.name = 'cyclic_translocation';
  30161. --- ************************************************
  30162. --- *** relation: bipartite_inversion ***
  30163. --- *** relation type: VIEW ***
  30164. --- *** ***
  30165. --- *** A chromosomal inversion caused by three ***
  30166. --- *** breaks in the same chromosome; both cent ***
  30167. --- *** ral segments are inverted in place (i.e. ***
  30168. --- *** , they are not transposed). ***
  30169. --- ************************************************
  30170. ---
  30171. CREATE VIEW bipartite_inversion AS
  30172. SELECT
  30173. feature_id AS bipartite_inversion_id,
  30174. feature.*
  30175. FROM
  30176. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30177. WHERE cvterm.name = 'bipartite_inversion';
  30178. --- ************************************************
  30179. --- *** relation: uninvert_insert_dup ***
  30180. --- *** relation type: VIEW ***
  30181. --- *** ***
  30182. --- *** An insertional duplication where a copy ***
  30183. --- *** of the segment between the first two bre ***
  30184. --- *** aks listed is inserted at the third brea ***
  30185. --- *** k; the insertion is in cytologically the ***
  30186. --- *** same orientation as its flanking segmen ***
  30187. --- *** ts. ***
  30188. --- ************************************************
  30189. ---
  30190. CREATE VIEW uninvert_insert_dup AS
  30191. SELECT
  30192. feature_id AS uninvert_insert_dup_id,
  30193. feature.*
  30194. FROM
  30195. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30196. WHERE cvterm.name = 'uninverted_insertional_duplication';
  30197. --- ************************************************
  30198. --- *** relation: inverted_insertional_duplication ***
  30199. --- *** relation type: VIEW ***
  30200. --- *** ***
  30201. --- *** An insertional duplication where a copy ***
  30202. --- *** of the segment between the first two bre ***
  30203. --- *** aks listed is inserted at the third brea ***
  30204. --- *** k; the insertion is in cytologically inv ***
  30205. --- *** erted orientation with respect to its fl ***
  30206. --- *** anking segments. ***
  30207. --- ************************************************
  30208. ---
  30209. CREATE VIEW inverted_insertional_duplication AS
  30210. SELECT
  30211. feature_id AS inverted_insertional_duplication_id,
  30212. feature.*
  30213. FROM
  30214. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30215. WHERE cvterm.name = 'inverted_insertional_duplication';
  30216. --- ************************************************
  30217. --- *** relation: insertional_duplication ***
  30218. --- *** relation type: VIEW ***
  30219. --- *** ***
  30220. --- *** A chromosome duplication involving the i ***
  30221. --- *** nsertion of a duplicated region (as oppo ***
  30222. --- *** sed to a free duplication). ***
  30223. --- ************************************************
  30224. ---
  30225. CREATE VIEW insertional_duplication AS
  30226. SELECT
  30227. feature_id AS insertional_duplication_id,
  30228. feature.*
  30229. FROM
  30230. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30231. WHERE cvterm.name = 'uninverted_insertional_duplication' OR cvterm.name = 'inverted_insertional_duplication' OR cvterm.name = 'unoriented_insertional_duplication' OR cvterm.name = 'insertional_duplication';
  30232. --- ************************************************
  30233. --- *** relation: interchromosomal_transposition ***
  30234. --- *** relation type: VIEW ***
  30235. --- *** ***
  30236. --- *** A chromosome structure variation whereby ***
  30237. --- *** a transposition occurred between chromo ***
  30238. --- *** somes. ***
  30239. --- ************************************************
  30240. ---
  30241. CREATE VIEW interchromosomal_transposition AS
  30242. SELECT
  30243. feature_id AS interchromosomal_transposition_id,
  30244. feature.*
  30245. FROM
  30246. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30247. 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';
  30248. --- ************************************************
  30249. --- *** relation: invert_inter_transposition ***
  30250. --- *** relation type: VIEW ***
  30251. --- *** ***
  30252. --- *** An interchromosomal transposition whereb ***
  30253. --- *** y a copy of the segment between the firs ***
  30254. --- *** t two breaks listed is inserted at the t ***
  30255. --- *** hird break; the insertion is in cytologi ***
  30256. --- *** cally inverted orientation with respect ***
  30257. --- *** to its flanking segment. ***
  30258. --- ************************************************
  30259. ---
  30260. CREATE VIEW invert_inter_transposition AS
  30261. SELECT
  30262. feature_id AS invert_inter_transposition_id,
  30263. feature.*
  30264. FROM
  30265. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30266. WHERE cvterm.name = 'inverted_interchromosomal_transposition';
  30267. --- ************************************************
  30268. --- *** relation: uninvert_inter_transposition ***
  30269. --- *** relation type: VIEW ***
  30270. --- *** ***
  30271. --- *** An interchromosomal transition where the ***
  30272. --- *** segment between the first two breaks li ***
  30273. --- *** sted is removed and inserted at the thir ***
  30274. --- *** d break; the insertion is in cytological ***
  30275. --- *** ly the same orientation as its flanking ***
  30276. --- *** segments. ***
  30277. --- ************************************************
  30278. ---
  30279. CREATE VIEW uninvert_inter_transposition AS
  30280. SELECT
  30281. feature_id AS uninvert_inter_transposition_id,
  30282. feature.*
  30283. FROM
  30284. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30285. WHERE cvterm.name = 'uninverted_interchromosomal_transposition';
  30286. --- ************************************************
  30287. --- *** relation: invert_intra_transposition ***
  30288. --- *** relation type: VIEW ***
  30289. --- *** ***
  30290. --- *** An intrachromosomal transposition whereb ***
  30291. --- *** y the segment between the first two brea ***
  30292. --- *** ks listed is removed and inserted at the ***
  30293. --- *** third break; the insertion is in cytolo ***
  30294. --- *** gically inverted orientation with respec ***
  30295. --- *** t to its flanking segments. ***
  30296. --- ************************************************
  30297. ---
  30298. CREATE VIEW invert_intra_transposition AS
  30299. SELECT
  30300. feature_id AS invert_intra_transposition_id,
  30301. feature.*
  30302. FROM
  30303. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30304. WHERE cvterm.name = 'inverted_intrachromosomal_transposition';
  30305. --- ************************************************
  30306. --- *** relation: uninvert_intra_transposition ***
  30307. --- *** relation type: VIEW ***
  30308. --- *** ***
  30309. --- *** An intrachromosomal transposition whereb ***
  30310. --- *** y the segment between the first two brea ***
  30311. --- *** ks listed is removed and inserted at the ***
  30312. --- *** third break; the insertion is in cytolo ***
  30313. --- *** gically the same orientation as its flan ***
  30314. --- *** king segments. ***
  30315. --- ************************************************
  30316. ---
  30317. CREATE VIEW uninvert_intra_transposition AS
  30318. SELECT
  30319. feature_id AS uninvert_intra_transposition_id,
  30320. feature.*
  30321. FROM
  30322. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30323. WHERE cvterm.name = 'uninverted_intrachromosomal_transposition';
  30324. --- ************************************************
  30325. --- *** relation: unorient_insert_dup ***
  30326. --- *** relation type: VIEW ***
  30327. --- *** ***
  30328. --- *** An insertional duplication where a copy ***
  30329. --- *** of the segment between the first two bre ***
  30330. --- *** aks listed is inserted at the third brea ***
  30331. --- *** k; the orientation of the insertion with ***
  30332. --- *** respect to its flanking segments is not ***
  30333. --- *** recorded. ***
  30334. --- ************************************************
  30335. ---
  30336. CREATE VIEW unorient_insert_dup AS
  30337. SELECT
  30338. feature_id AS unorient_insert_dup_id,
  30339. feature.*
  30340. FROM
  30341. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30342. WHERE cvterm.name = 'unoriented_insertional_duplication';
  30343. --- ************************************************
  30344. --- *** relation: unoriented_interchromosomal_transposition ***
  30345. --- *** relation type: VIEW ***
  30346. --- *** ***
  30347. --- *** An interchromosomal transposition whereb ***
  30348. --- *** y a copy of the segment between the firs ***
  30349. --- *** t two breaks listed is inserted at the t ***
  30350. --- *** hird break; the orientation of the inser ***
  30351. --- *** tion with respect to its flanking segmen ***
  30352. --- *** ts is not recorded. ***
  30353. --- ************************************************
  30354. ---
  30355. CREATE VIEW unoriented_interchromosomal_transposition AS
  30356. SELECT
  30357. feature_id AS unoriented_interchromosomal_transposition_id,
  30358. feature.*
  30359. FROM
  30360. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30361. WHERE cvterm.name = 'unoriented_interchromosomal_transposition';
  30362. --- ************************************************
  30363. --- *** relation: unoriented_intrachromosomal_transposition ***
  30364. --- *** relation type: VIEW ***
  30365. --- *** ***
  30366. --- *** An intrachromosomal transposition whereb ***
  30367. --- *** y the segment between the first two brea ***
  30368. --- *** ks listed is removed and inserted at the ***
  30369. --- *** third break; the orientation of the ins ***
  30370. --- *** ertion with respect to its flanking segm ***
  30371. --- *** ents is not recorded. ***
  30372. --- ************************************************
  30373. ---
  30374. CREATE VIEW unoriented_intrachromosomal_transposition AS
  30375. SELECT
  30376. feature_id AS unoriented_intrachromosomal_transposition_id,
  30377. feature.*
  30378. FROM
  30379. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30380. WHERE cvterm.name = 'unoriented_intrachromosomal_transposition';
  30381. --- ************************************************
  30382. --- *** relation: uncharacterised_chromosomal_mutation ***
  30383. --- *** relation type: VIEW ***
  30384. --- *** ***
  30385. --- ************************************************
  30386. ---
  30387. CREATE VIEW uncharacterised_chromosomal_mutation AS
  30388. SELECT
  30389. feature_id AS uncharacterised_chromosomal_mutation_id,
  30390. feature.*
  30391. FROM
  30392. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30393. WHERE cvterm.name = 'partially_characterised_chromosomal_mutation' OR cvterm.name = 'uncharacterised_chromosomal_mutation';
  30394. --- ************************************************
  30395. --- *** relation: deficient_inversion ***
  30396. --- *** relation type: VIEW ***
  30397. --- *** ***
  30398. --- *** A chromosomal deletion whereby three bre ***
  30399. --- *** aks occur in the same chromosome; one ce ***
  30400. --- *** ntral region is lost, and the other is i ***
  30401. --- *** nverted. ***
  30402. --- ************************************************
  30403. ---
  30404. CREATE VIEW deficient_inversion AS
  30405. SELECT
  30406. feature_id AS deficient_inversion_id,
  30407. feature.*
  30408. FROM
  30409. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30410. WHERE cvterm.name = 'deficient_inversion';
  30411. --- ************************************************
  30412. --- *** relation: tandem_duplication ***
  30413. --- *** relation type: VIEW ***
  30414. --- *** ***
  30415. --- *** A duplication consisting of 2 identical ***
  30416. --- *** adjacent regions. ***
  30417. --- ************************************************
  30418. ---
  30419. CREATE VIEW tandem_duplication AS
  30420. SELECT
  30421. feature_id AS tandem_duplication_id,
  30422. feature.*
  30423. FROM
  30424. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30425. WHERE cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' OR cvterm.name = 'tandem_duplication';
  30426. --- ************************************************
  30427. --- *** relation: partially_characterised_chromosomal_mutation ***
  30428. --- *** relation type: VIEW ***
  30429. --- *** ***
  30430. --- ************************************************
  30431. ---
  30432. CREATE VIEW partially_characterised_chromosomal_mutation AS
  30433. SELECT
  30434. feature_id AS partially_characterised_chromosomal_mutation_id,
  30435. feature.*
  30436. FROM
  30437. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30438. WHERE cvterm.name = 'partially_characterised_chromosomal_mutation';
  30439. --- ************************************************
  30440. --- *** relation: chromosome_number_variation ***
  30441. --- *** relation type: VIEW ***
  30442. --- *** ***
  30443. --- *** A kind of chromosome variation where the ***
  30444. --- *** chromosome complement is not an exact m ***
  30445. --- *** ultiple of the haploid number. ***
  30446. --- ************************************************
  30447. ---
  30448. CREATE VIEW chromosome_number_variation AS
  30449. SELECT
  30450. feature_id AS chromosome_number_variation_id,
  30451. feature.*
  30452. FROM
  30453. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30454. 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';
  30455. --- ************************************************
  30456. --- *** relation: chromosome_structure_variation ***
  30457. --- *** relation type: VIEW ***
  30458. --- *** ***
  30459. --- ************************************************
  30460. ---
  30461. CREATE VIEW chromosome_structure_variation AS
  30462. SELECT
  30463. feature_id AS chromosome_structure_variation_id,
  30464. feature.*
  30465. FROM
  30466. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30467. 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';
  30468. --- ************************************************
  30469. --- *** relation: alternatively_spliced_transcript ***
  30470. --- *** relation type: VIEW ***
  30471. --- *** ***
  30472. --- *** A transcript that is alternatively splic ***
  30473. --- *** ed. ***
  30474. --- ************************************************
  30475. ---
  30476. CREATE VIEW alternatively_spliced_transcript AS
  30477. SELECT
  30478. feature_id AS alternatively_spliced_transcript_id,
  30479. feature.*
  30480. FROM
  30481. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30482. WHERE cvterm.name = 'alternatively_spliced_transcript';
  30483. --- ************************************************
  30484. --- *** relation: encodes_1_polypeptide ***
  30485. --- *** relation type: VIEW ***
  30486. --- *** ***
  30487. --- *** A gene that is alternately spliced, but ***
  30488. --- *** encodes only one polypeptide. ***
  30489. --- ************************************************
  30490. ---
  30491. CREATE VIEW encodes_1_polypeptide AS
  30492. SELECT
  30493. feature_id AS encodes_1_polypeptide_id,
  30494. feature.*
  30495. FROM
  30496. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30497. WHERE cvterm.name = 'encodes_1_polypeptide';
  30498. --- ************************************************
  30499. --- *** relation: encodes_greater_than_1_polypeptide ***
  30500. --- *** relation type: VIEW ***
  30501. --- *** ***
  30502. --- *** A gene that is alternately spliced, and ***
  30503. --- *** encodes more than one polypeptide. ***
  30504. --- ************************************************
  30505. ---
  30506. CREATE VIEW encodes_greater_than_1_polypeptide AS
  30507. SELECT
  30508. feature_id AS encodes_greater_than_1_polypeptide_id,
  30509. feature.*
  30510. FROM
  30511. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30512. 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';
  30513. --- ************************************************
  30514. --- *** relation: encodes_different_polypeptides_different_stop ***
  30515. --- *** relation type: VIEW ***
  30516. --- *** ***
  30517. --- *** A gene that is alternately spliced, and ***
  30518. --- *** encodes more than one polypeptide, that ***
  30519. --- *** have overlapping peptide sequences, but ***
  30520. --- *** use different stop codons. ***
  30521. --- ************************************************
  30522. ---
  30523. CREATE VIEW encodes_different_polypeptides_different_stop AS
  30524. SELECT
  30525. feature_id AS encodes_different_polypeptides_different_stop_id,
  30526. feature.*
  30527. FROM
  30528. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30529. WHERE cvterm.name = 'encodes_different_polypeptides_different_stop';
  30530. --- ************************************************
  30531. --- *** relation: encodes_overlapping_peptides_different_start ***
  30532. --- *** relation type: VIEW ***
  30533. --- *** ***
  30534. --- *** A gene that is alternately spliced, and ***
  30535. --- *** encodes more than one polypeptide, that ***
  30536. --- *** have overlapping peptide sequences, but ***
  30537. --- *** use different start codons. ***
  30538. --- ************************************************
  30539. ---
  30540. CREATE VIEW encodes_overlapping_peptides_different_start AS
  30541. SELECT
  30542. feature_id AS encodes_overlapping_peptides_different_start_id,
  30543. feature.*
  30544. FROM
  30545. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30546. WHERE cvterm.name = 'encodes_overlapping_peptides_different_start';
  30547. --- ************************************************
  30548. --- *** relation: encodes_disjoint_polypeptides ***
  30549. --- *** relation type: VIEW ***
  30550. --- *** ***
  30551. --- *** A gene that is alternately spliced, and ***
  30552. --- *** encodes more than one polypeptide, that ***
  30553. --- *** do not have overlapping peptide sequence ***
  30554. --- *** s. ***
  30555. --- ************************************************
  30556. ---
  30557. CREATE VIEW encodes_disjoint_polypeptides AS
  30558. SELECT
  30559. feature_id AS encodes_disjoint_polypeptides_id,
  30560. feature.*
  30561. FROM
  30562. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30563. WHERE cvterm.name = 'encodes_disjoint_polypeptides';
  30564. --- ************************************************
  30565. --- *** relation: encodes_overlapping_polypeptides_different_start_and_stop ***
  30566. --- *** relation type: VIEW ***
  30567. --- *** ***
  30568. --- *** A gene that is alternately spliced, and ***
  30569. --- *** encodes more than one polypeptide, that ***
  30570. --- *** have overlapping peptide sequences, but ***
  30571. --- *** use different start and stop codons. ***
  30572. --- ************************************************
  30573. ---
  30574. CREATE VIEW encodes_overlapping_polypeptides_different_start_and_stop AS
  30575. SELECT
  30576. feature_id AS encodes_overlapping_polypeptides_different_start_and_stop_id,
  30577. feature.*
  30578. FROM
  30579. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30580. WHERE cvterm.name = 'encodes_overlapping_polypeptides_different_start_and_stop';
  30581. --- ************************************************
  30582. --- *** relation: encodes_overlapping_peptides ***
  30583. --- *** relation type: VIEW ***
  30584. --- *** ***
  30585. --- *** A gene that is alternately spliced, and ***
  30586. --- *** encodes more than one polypeptide, that ***
  30587. --- *** have overlapping peptide sequences. ***
  30588. --- ************************************************
  30589. ---
  30590. CREATE VIEW encodes_overlapping_peptides AS
  30591. SELECT
  30592. feature_id AS encodes_overlapping_peptides_id,
  30593. feature.*
  30594. FROM
  30595. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30596. 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';
  30597. --- ************************************************
  30598. --- *** relation: cryptogene ***
  30599. --- *** relation type: VIEW ***
  30600. --- *** ***
  30601. --- *** A maxicircle gene so extensively edited ***
  30602. --- *** that it cannot be matched to its edited ***
  30603. --- *** mRNA sequence. ***
  30604. --- ************************************************
  30605. ---
  30606. CREATE VIEW cryptogene AS
  30607. SELECT
  30608. feature_id AS cryptogene_id,
  30609. feature.*
  30610. FROM
  30611. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30612. WHERE cvterm.name = 'cryptogene';
  30613. --- ************************************************
  30614. --- *** relation: dicistronic_primary_transcript ***
  30615. --- *** relation type: VIEW ***
  30616. --- *** ***
  30617. --- *** A primary transcript that has the qualit ***
  30618. --- *** y dicistronic. ***
  30619. --- ************************************************
  30620. ---
  30621. CREATE VIEW dicistronic_primary_transcript AS
  30622. SELECT
  30623. feature_id AS dicistronic_primary_transcript_id,
  30624. feature.*
  30625. FROM
  30626. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30627. WHERE cvterm.name = 'dicistronic_primary_transcript';
  30628. --- ************************************************
  30629. --- *** relation: member_of_regulon ***
  30630. --- *** relation type: VIEW ***
  30631. --- *** ***
  30632. --- ************************************************
  30633. ---
  30634. CREATE VIEW member_of_regulon AS
  30635. SELECT
  30636. feature_id AS member_of_regulon_id,
  30637. feature.*
  30638. FROM
  30639. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30640. WHERE cvterm.name = 'member_of_regulon';
  30641. --- ************************************************
  30642. --- *** relation: cds_independently_known ***
  30643. --- *** relation type: VIEW ***
  30644. --- *** ***
  30645. --- *** A CDS with the evidence status of being ***
  30646. --- *** independently known. ***
  30647. --- ************************************************
  30648. ---
  30649. CREATE VIEW cds_independently_known AS
  30650. SELECT
  30651. feature_id AS cds_independently_known_id,
  30652. feature.*
  30653. FROM
  30654. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30655. WHERE cvterm.name = 'CDS_independently_known';
  30656. --- ************************************************
  30657. --- *** relation: orphan_cds ***
  30658. --- *** relation type: VIEW ***
  30659. --- *** ***
  30660. --- *** A CDS whose predicted amino acid sequenc ***
  30661. --- *** e is unsupported by any experimental evi ***
  30662. --- *** dence or by any match with any other kno ***
  30663. --- *** wn sequence. ***
  30664. --- ************************************************
  30665. ---
  30666. CREATE VIEW orphan_cds AS
  30667. SELECT
  30668. feature_id AS orphan_cds_id,
  30669. feature.*
  30670. FROM
  30671. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30672. WHERE cvterm.name = 'orphan_CDS';
  30673. --- ************************************************
  30674. --- *** relation: cds_supported_by_domain_match_data ***
  30675. --- *** relation type: VIEW ***
  30676. --- *** ***
  30677. --- *** A CDS that is supported by domain simila ***
  30678. --- *** rity. ***
  30679. --- ************************************************
  30680. ---
  30681. CREATE VIEW cds_supported_by_domain_match_data AS
  30682. SELECT
  30683. feature_id AS cds_supported_by_domain_match_data_id,
  30684. feature.*
  30685. FROM
  30686. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30687. WHERE cvterm.name = 'CDS_supported_by_domain_match_data';
  30688. --- ************************************************
  30689. --- *** relation: cds_supported_by_sequence_similarity_data ***
  30690. --- *** relation type: VIEW ***
  30691. --- *** ***
  30692. --- *** A CDS that is supported by sequence simi ***
  30693. --- *** larity data. ***
  30694. --- ************************************************
  30695. ---
  30696. CREATE VIEW cds_supported_by_sequence_similarity_data AS
  30697. SELECT
  30698. feature_id AS cds_supported_by_sequence_similarity_data_id,
  30699. feature.*
  30700. FROM
  30701. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30702. 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';
  30703. --- ************************************************
  30704. --- *** relation: cds_predicted ***
  30705. --- *** relation type: VIEW ***
  30706. --- *** ***
  30707. --- *** A CDS that is predicted. ***
  30708. --- ************************************************
  30709. ---
  30710. CREATE VIEW cds_predicted AS
  30711. SELECT
  30712. feature_id AS cds_predicted_id,
  30713. feature.*
  30714. FROM
  30715. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30716. 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';
  30717. --- ************************************************
  30718. --- *** relation: cds_supported_by_est_or_cdna_data ***
  30719. --- *** relation type: VIEW ***
  30720. --- *** ***
  30721. --- *** A CDS that is supported by similarity to ***
  30722. --- *** EST or cDNA data. ***
  30723. --- ************************************************
  30724. ---
  30725. CREATE VIEW cds_supported_by_est_or_cdna_data AS
  30726. SELECT
  30727. feature_id AS cds_supported_by_est_or_cdna_data_id,
  30728. feature.*
  30729. FROM
  30730. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30731. WHERE cvterm.name = 'CDS_supported_by_EST_or_cDNA_data';
  30732. --- ************************************************
  30733. --- *** relation: internal_shine_dalgarno_sequence ***
  30734. --- *** relation type: VIEW ***
  30735. --- *** ***
  30736. --- *** A Shine-Dalgarno sequence that stimulate ***
  30737. --- *** s recoding through interactions with the ***
  30738. --- *** anti-Shine-Dalgarno in the RNA of small ***
  30739. --- *** ribosomal subunits of translating ribos ***
  30740. --- *** omes. The signal is only operative in Ba ***
  30741. --- *** cteria. ***
  30742. --- ************************************************
  30743. ---
  30744. CREATE VIEW internal_shine_dalgarno_sequence AS
  30745. SELECT
  30746. feature_id AS internal_shine_dalgarno_sequence_id,
  30747. feature.*
  30748. FROM
  30749. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30750. WHERE cvterm.name = 'internal_Shine_Dalgarno_sequence';
  30751. --- ************************************************
  30752. --- *** relation: recoded_mrna ***
  30753. --- *** relation type: VIEW ***
  30754. --- *** ***
  30755. --- *** The sequence of a mature mRNA transcript ***
  30756. --- *** , modified before translation or during ***
  30757. --- *** translation, usually by special cis-acti ***
  30758. --- *** ng signals. ***
  30759. --- ************************************************
  30760. ---
  30761. CREATE VIEW recoded_mrna AS
  30762. SELECT
  30763. feature_id AS recoded_mrna_id,
  30764. feature.*
  30765. FROM
  30766. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30767. WHERE cvterm.name = 'mRNA_recoded_by_translational_bypass' OR cvterm.name = 'mRNA_recoded_by_codon_redefinition' OR cvterm.name = 'recoded_mRNA';
  30768. --- ************************************************
  30769. --- *** relation: minus_1_translationally_frameshifted ***
  30770. --- *** relation type: VIEW ***
  30771. --- *** ***
  30772. --- *** An attribute describing a translational ***
  30773. --- *** frameshift of -1. ***
  30774. --- ************************************************
  30775. ---
  30776. CREATE VIEW minus_1_translationally_frameshifted AS
  30777. SELECT
  30778. feature_id AS minus_1_translationally_frameshifted_id,
  30779. feature.*
  30780. FROM
  30781. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30782. WHERE cvterm.name = 'minus_1_translationally_frameshifted';
  30783. --- ************************************************
  30784. --- *** relation: plus_1_translationally_frameshifted ***
  30785. --- *** relation type: VIEW ***
  30786. --- *** ***
  30787. --- *** An attribute describing a translational ***
  30788. --- *** frameshift of +1. ***
  30789. --- ************************************************
  30790. ---
  30791. CREATE VIEW plus_1_translationally_frameshifted AS
  30792. SELECT
  30793. feature_id AS plus_1_translationally_frameshifted_id,
  30794. feature.*
  30795. FROM
  30796. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30797. WHERE cvterm.name = 'plus_1_translationally_frameshifted';
  30798. --- ************************************************
  30799. --- *** relation: mrna_recoded_by_translational_bypass ***
  30800. --- *** relation type: VIEW ***
  30801. --- *** ***
  30802. --- *** A recoded_mRNA where translation was sus ***
  30803. --- *** pended at a particular codon and resumed ***
  30804. --- *** at a particular non-overlapping downstr ***
  30805. --- *** eam codon. ***
  30806. --- ************************************************
  30807. ---
  30808. CREATE VIEW mrna_recoded_by_translational_bypass AS
  30809. SELECT
  30810. feature_id AS mrna_recoded_by_translational_bypass_id,
  30811. feature.*
  30812. FROM
  30813. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30814. WHERE cvterm.name = 'mRNA_recoded_by_translational_bypass';
  30815. --- ************************************************
  30816. --- *** relation: mrna_recoded_by_codon_redefinition ***
  30817. --- *** relation type: VIEW ***
  30818. --- *** ***
  30819. --- *** A recoded_mRNA that was modified by an a ***
  30820. --- *** lteration of codon meaning. ***
  30821. --- ************************************************
  30822. ---
  30823. CREATE VIEW mrna_recoded_by_codon_redefinition AS
  30824. SELECT
  30825. feature_id AS mrna_recoded_by_codon_redefinition_id,
  30826. feature.*
  30827. FROM
  30828. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30829. WHERE cvterm.name = 'mRNA_recoded_by_codon_redefinition';
  30830. --- ************************************************
  30831. --- *** relation: recoding_stimulatory_region ***
  30832. --- *** relation type: VIEW ***
  30833. --- *** ***
  30834. --- *** A site in an mRNA sequence that stimulat ***
  30835. --- *** es the recoding of a region in the same ***
  30836. --- *** mRNA. ***
  30837. --- ************************************************
  30838. ---
  30839. CREATE VIEW recoding_stimulatory_region AS
  30840. SELECT
  30841. feature_id AS recoding_stimulatory_region_id,
  30842. feature.*
  30843. FROM
  30844. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30845. 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';
  30846. --- ************************************************
  30847. --- *** relation: four_bp_start_codon ***
  30848. --- *** relation type: VIEW ***
  30849. --- *** ***
  30850. --- *** A non-canonical start codon with 4 base ***
  30851. --- *** pairs. ***
  30852. --- ************************************************
  30853. ---
  30854. CREATE VIEW four_bp_start_codon AS
  30855. SELECT
  30856. feature_id AS four_bp_start_codon_id,
  30857. feature.*
  30858. FROM
  30859. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30860. WHERE cvterm.name = 'four_bp_start_codon';
  30861. --- ************************************************
  30862. --- *** relation: archaeal_intron ***
  30863. --- *** relation type: VIEW ***
  30864. --- *** ***
  30865. --- *** An intron characteristic of Archaeal tRN ***
  30866. --- *** A and rRNA genes, where intron transcrip ***
  30867. --- *** t generates a bulge-helix-bulge motif th ***
  30868. --- *** at is recognised by a splicing endoribon ***
  30869. --- *** uclease. ***
  30870. --- ************************************************
  30871. ---
  30872. CREATE VIEW archaeal_intron AS
  30873. SELECT
  30874. feature_id AS archaeal_intron_id,
  30875. feature.*
  30876. FROM
  30877. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30878. WHERE cvterm.name = 'archaeal_intron';
  30879. --- ************************************************
  30880. --- *** relation: trna_intron ***
  30881. --- *** relation type: VIEW ***
  30882. --- *** ***
  30883. --- *** An intron found in tRNA that is spliced ***
  30884. --- *** via endonucleolytic cleavage and ligatio ***
  30885. --- *** n rather than transesterification. ***
  30886. --- ************************************************
  30887. ---
  30888. CREATE VIEW trna_intron AS
  30889. SELECT
  30890. feature_id AS trna_intron_id,
  30891. feature.*
  30892. FROM
  30893. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30894. WHERE cvterm.name = 'tRNA_intron';
  30895. --- ************************************************
  30896. --- *** relation: ctg_start_codon ***
  30897. --- *** relation type: VIEW ***
  30898. --- *** ***
  30899. --- *** A non-canonical start codon of sequence ***
  30900. --- *** CTG. ***
  30901. --- ************************************************
  30902. ---
  30903. CREATE VIEW ctg_start_codon AS
  30904. SELECT
  30905. feature_id AS ctg_start_codon_id,
  30906. feature.*
  30907. FROM
  30908. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30909. WHERE cvterm.name = 'CTG_start_codon';
  30910. --- ************************************************
  30911. --- *** relation: secis_element ***
  30912. --- *** relation type: VIEW ***
  30913. --- *** ***
  30914. --- *** The incorporation of selenocysteine into ***
  30915. --- *** a protein sequence is directed by an in ***
  30916. --- *** -frame UGA codon (usually a stop codon) ***
  30917. --- *** within the coding region of the mRNA. Se ***
  30918. --- *** lenoprotein mRNAs contain a conserved se ***
  30919. --- *** condary structure in the 3' UTR that is ***
  30920. --- *** required for the distinction of UGA stop ***
  30921. --- *** from UGA selenocysteine. The selenocyst ***
  30922. --- *** eine insertion sequence (SECIS) is aroun ***
  30923. --- *** d 60 nt in length and adopts a hairpin s ***
  30924. --- *** tructure which is sufficiently well-defi ***
  30925. --- *** ned and conserved to act as a computatio ***
  30926. --- *** nal screen for selenoprotein genes. ***
  30927. --- ************************************************
  30928. ---
  30929. CREATE VIEW secis_element AS
  30930. SELECT
  30931. feature_id AS secis_element_id,
  30932. feature.*
  30933. FROM
  30934. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30935. WHERE cvterm.name = 'SECIS_element';
  30936. --- ************************************************
  30937. --- *** relation: retron ***
  30938. --- *** relation type: VIEW ***
  30939. --- *** ***
  30940. --- *** Sequence coding for a short, single-stra ***
  30941. --- *** nded, DNA sequence via a retrotransposed ***
  30942. --- *** RNA intermediate; characteristic of som ***
  30943. --- *** e microbial genomes. ***
  30944. --- ************************************************
  30945. ---
  30946. CREATE VIEW retron AS
  30947. SELECT
  30948. feature_id AS retron_id,
  30949. feature.*
  30950. FROM
  30951. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30952. WHERE cvterm.name = 'retron';
  30953. --- ************************************************
  30954. --- *** relation: three_prime_recoding_site ***
  30955. --- *** relation type: VIEW ***
  30956. --- *** ***
  30957. --- *** The recoding stimulatory signal located ***
  30958. --- *** downstream of the recoding site. ***
  30959. --- ************************************************
  30960. ---
  30961. CREATE VIEW three_prime_recoding_site AS
  30962. SELECT
  30963. feature_id AS three_prime_recoding_site_id,
  30964. feature.*
  30965. FROM
  30966. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30967. 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';
  30968. --- ************************************************
  30969. --- *** relation: three_prime_stem_loop_structure ***
  30970. --- *** relation type: VIEW ***
  30971. --- *** ***
  30972. --- *** A recoding stimulatory region, the stem- ***
  30973. --- *** loop secondary structural element is dow ***
  30974. --- *** nstream of the redefined region. ***
  30975. --- ************************************************
  30976. ---
  30977. CREATE VIEW three_prime_stem_loop_structure AS
  30978. SELECT
  30979. feature_id AS three_prime_stem_loop_structure_id,
  30980. feature.*
  30981. FROM
  30982. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30983. WHERE cvterm.name = 'three_prime_stem_loop_structure';
  30984. --- ************************************************
  30985. --- *** relation: five_prime_recoding_site ***
  30986. --- *** relation type: VIEW ***
  30987. --- *** ***
  30988. --- *** The recoding stimulatory signal located ***
  30989. --- *** upstream of the recoding site. ***
  30990. --- ************************************************
  30991. ---
  30992. CREATE VIEW five_prime_recoding_site AS
  30993. SELECT
  30994. feature_id AS five_prime_recoding_site_id,
  30995. feature.*
  30996. FROM
  30997. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30998. WHERE cvterm.name = 'five_prime_recoding_site';
  30999. --- ************************************************
  31000. --- *** relation: flanking_three_prime_quadruplet_recoding_signal ***
  31001. --- *** relation type: VIEW ***
  31002. --- *** ***
  31003. --- *** Four base pair sequence immediately down ***
  31004. --- *** stream of the redefined region. The rede ***
  31005. --- *** fined region is a frameshift site. The q ***
  31006. --- *** uadruplet is 2 overlapping codons. ***
  31007. --- ************************************************
  31008. ---
  31009. CREATE VIEW flanking_three_prime_quadruplet_recoding_signal AS
  31010. SELECT
  31011. feature_id AS flanking_three_prime_quadruplet_recoding_signal_id,
  31012. feature.*
  31013. FROM
  31014. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31015. WHERE cvterm.name = 'flanking_three_prime_quadruplet_recoding_signal';
  31016. --- ************************************************
  31017. --- *** relation: uag_stop_codon_signal ***
  31018. --- *** relation type: VIEW ***
  31019. --- *** ***
  31020. --- *** A stop codon signal for a UAG stop codon ***
  31021. --- *** redefinition. ***
  31022. --- ************************************************
  31023. ---
  31024. CREATE VIEW uag_stop_codon_signal AS
  31025. SELECT
  31026. feature_id AS uag_stop_codon_signal_id,
  31027. feature.*
  31028. FROM
  31029. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31030. WHERE cvterm.name = 'UAG_stop_codon_signal';
  31031. --- ************************************************
  31032. --- *** relation: uaa_stop_codon_signal ***
  31033. --- *** relation type: VIEW ***
  31034. --- *** ***
  31035. --- *** A stop codon signal for a UAA stop codon ***
  31036. --- *** redefinition. ***
  31037. --- ************************************************
  31038. ---
  31039. CREATE VIEW uaa_stop_codon_signal AS
  31040. SELECT
  31041. feature_id AS uaa_stop_codon_signal_id,
  31042. feature.*
  31043. FROM
  31044. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31045. WHERE cvterm.name = 'UAA_stop_codon_signal';
  31046. --- ************************************************
  31047. --- *** relation: regulon ***
  31048. --- *** relation type: VIEW ***
  31049. --- *** ***
  31050. --- *** A group of genes, whether linked as a cl ***
  31051. --- *** uster or not, that respond to a common r ***
  31052. --- *** egulatory signal. ***
  31053. --- ************************************************
  31054. ---
  31055. CREATE VIEW regulon AS
  31056. SELECT
  31057. feature_id AS regulon_id,
  31058. feature.*
  31059. FROM
  31060. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31061. WHERE cvterm.name = 'regulon';
  31062. --- ************************************************
  31063. --- *** relation: uga_stop_codon_signal ***
  31064. --- *** relation type: VIEW ***
  31065. --- *** ***
  31066. --- *** A stop codon signal for a UGA stop codon ***
  31067. --- *** redefinition. ***
  31068. --- ************************************************
  31069. ---
  31070. CREATE VIEW uga_stop_codon_signal AS
  31071. SELECT
  31072. feature_id AS uga_stop_codon_signal_id,
  31073. feature.*
  31074. FROM
  31075. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31076. WHERE cvterm.name = 'UGA_stop_codon_signal';
  31077. --- ************************************************
  31078. --- *** relation: three_prime_repeat_recoding_signal ***
  31079. --- *** relation type: VIEW ***
  31080. --- *** ***
  31081. --- *** A recoding stimulatory signal, downstrea ***
  31082. --- *** m sequence important for recoding that c ***
  31083. --- *** ontains repetitive elements. ***
  31084. --- ************************************************
  31085. ---
  31086. CREATE VIEW three_prime_repeat_recoding_signal AS
  31087. SELECT
  31088. feature_id AS three_prime_repeat_recoding_signal_id,
  31089. feature.*
  31090. FROM
  31091. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31092. WHERE cvterm.name = 'three_prime_repeat_recoding_signal';
  31093. --- ************************************************
  31094. --- *** relation: distant_three_prime_recoding_signal ***
  31095. --- *** relation type: VIEW ***
  31096. --- *** ***
  31097. --- *** A recoding signal that is found many hun ***
  31098. --- *** dreds of nucleotides 3' of a redefined s ***
  31099. --- *** top codon. ***
  31100. --- ************************************************
  31101. ---
  31102. CREATE VIEW distant_three_prime_recoding_signal AS
  31103. SELECT
  31104. feature_id AS distant_three_prime_recoding_signal_id,
  31105. feature.*
  31106. FROM
  31107. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31108. WHERE cvterm.name = 'distant_three_prime_recoding_signal';
  31109. --- ************************************************
  31110. --- *** relation: stop_codon_signal ***
  31111. --- *** relation type: VIEW ***
  31112. --- *** ***
  31113. --- *** A recoding stimulatory signal that is a ***
  31114. --- *** stop codon and has effect on efficiency ***
  31115. --- *** of recoding. ***
  31116. --- ************************************************
  31117. ---
  31118. CREATE VIEW stop_codon_signal AS
  31119. SELECT
  31120. feature_id AS stop_codon_signal_id,
  31121. feature.*
  31122. FROM
  31123. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31124. 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';
  31125. --- ************************************************
  31126. --- *** relation: databank_entry ***
  31127. --- *** relation type: VIEW ***
  31128. --- *** ***
  31129. --- *** The sequence referred to by an entry in ***
  31130. --- *** a databank such as Genbank or SwissProt. ***
  31131. --- ************************************************
  31132. ---
  31133. CREATE VIEW databank_entry AS
  31134. SELECT
  31135. feature_id AS databank_entry_id,
  31136. feature.*
  31137. FROM
  31138. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31139. WHERE cvterm.name = 'databank_entry';
  31140. --- ************************************************
  31141. --- *** relation: gene_segment ***
  31142. --- *** relation type: VIEW ***
  31143. --- *** ***
  31144. --- *** A gene component region which acts as a ***
  31145. --- *** recombinational unit of a gene whose fun ***
  31146. --- *** ctional form is generated through somati ***
  31147. --- *** c recombination. ***
  31148. --- ************************************************
  31149. ---
  31150. CREATE VIEW gene_segment AS
  31151. SELECT
  31152. feature_id AS gene_segment_id,
  31153. feature.*
  31154. FROM
  31155. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31156. WHERE cvterm.name = 'pseudogenic_gene_segment' OR cvterm.name = 'gene_segment';
  31157. 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));
  31158. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcription_variant','transcription_variant');
  31159. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('helitron','helitron');
  31160. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cleaved_initiator_methionine','cleaved_initiator_methionine');
  31161. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epoxyqueuosine','epoxyqueuosine');
  31162. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u4atac_snrna','u4atac_snrna');
  31163. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('kinetoplast','kinetoplast');
  31164. 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');
  31165. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('shadow_enhancer','shadow_enhancer');
  31166. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered','engineered');
  31167. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_polymerase_ii_tata_box','rna_polymerase_ii_tata_box');
  31168. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_aminomethyl_seven_deazaguanosine','seven_aminomethyl_seven_deazaguanosine');
  31169. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_motif','sequence_motif');
  31170. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('low_complexity','low_complexity');
  31171. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('est_match','est_match');
  31172. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_nonamer','v_nonamer');
  31173. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_j_c_cluster','d_dj_j_c_cluster');
  31174. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_21s','rrna_21s');
  31175. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bound_by_factor','bound_by_factor');
  31176. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethyluridine','five_carboxymethyluridine');
  31177. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dinucleotide_repeat_microsatellite_feature','dinucleotide_repeat_microsatellite_feature');
  31178. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_methyladenosine','two_methylthio_n6_methyladenosine');
  31179. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_spliced_mrna','trans_spliced_mrna');
  31180. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_to_c_transversion','g_to_c_transversion');
  31181. 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');
  31182. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genotype','so_genotype');
  31183. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cloned_region','cloned_region');
  31184. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_coding_piece','tmrna_coding_piece');
  31185. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_6s','rna_6s');
  31186. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('x_element','x_element');
  31187. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minicircle','minicircle');
  31188. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('grna_encoding','grna_encoding');
  31189. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('endonuclease_spliced_intron','endonuclease_spliced_intron');
  31190. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertional_duplication','insertional_duplication');
  31191. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('databank_entry','databank_entry');
  31192. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glycine','glycine');
  31193. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('variant_phenotype','variant_phenotype');
  31194. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_cluster','v_cluster');
  31195. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl12_acceptor_site','sl12_acceptor_site');
  31196. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nickel_ion_contact_site','polypeptide_nickel_ion_contact_site');
  31197. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_single_stranded_rna_chromosome','circular_single_stranded_rna_chromosome');
  31198. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wc_base_pair','wc_base_pair');
  31199. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pcr_product','pcr_product');
  31200. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('3_prime_utr_variant','three_prime_utr_variant');
  31201. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_three_amino_three_carboxypropyl_uridine','three_three_amino_three_carboxypropyl_uridine');
  31202. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('site_specific_recombination_target_region','site_specific_recombination_target_region');
  31203. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_polycistronic_transcript','gene_with_polycistronic_transcript');
  31204. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue','rescue');
  31205. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclease_hypersensitive_site','nuclease_hypersensitive_site');
  31206. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('upstream_gene_variant','upstream_gene_variant');
  31207. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_loop','mirna_loop');
  31208. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double_stranded_cdna','double_stranded_cdna');
  31209. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_post_translational_processing_variant','polypeptide_post_translational_processing_variant');
  31210. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('2kb_upstream_variant','twokb_upstream_variant');
  31211. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supported_by_domain_match','supported_by_domain_match');
  31212. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methylpseudouridine','one_methylpseudouridine');
  31213. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n_terminal_region','n_terminal_region');
  31214. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('blunt_end_restriction_enzyme_cleavage_site','blunt_end_restriction_enzyme_cleavage_site');
  31215. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimental_result_region','experimental_result_region');
  31216. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methionine_trna_primary_transcript','methionine_trna_primary_transcript');
  31217. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('utr','utr');
  31218. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_terminal_residue','non_terminal_residue');
  31219. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('member_of_regulon','member_of_regulon');
  31220. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('threonine_trna_primary_transcript','thr_trna_primary_transcript');
  31221. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_supported_by_sequence_similarity_data','cds_supported_by_sequence_similarity_data');
  31222. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_structural_region','polypeptide_structural_region');
  31223. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_gene','trna_gene');
  31224. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_tungsten_ion_contact_site','polypeptide_tungsten_ion_contact_site');
  31225. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge_loop_six','beta_bulge_loop_six');
  31226. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_c_cluster','d_dj_c_cluster');
  31227. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_location','sequence_location');
  31228. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nest_right_left_motif','polypeptide_nest_right_left_motif');
  31229. 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');
  31230. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucoplast_gene','leucoplast_gene');
  31231. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('y_rna','y_rna');
  31232. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_spliced_transcript','trans_spliced_transcript');
  31233. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted','inverted');
  31234. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splicing_regulatory_region','splicing_regulatory_region');
  31235. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('branch_site','branch_site');
  31236. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge_loop_five','beta_bulge_loop_five');
  31237. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_breakpoint','chromosome_breakpoint');
  31238. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_uncertainty','sequence_uncertainty');
  31239. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_methyl_n6_threonylcarbamoyladenosine','n6_methyl_n6_threonylcarbamoyladenosine');
  31240. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_mrna_with_frameshift','gene_with_mrna_with_frameshift');
  31241. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('compositionally_biased_region_of_peptide','compositionally_biased_region_of_peptide');
  31242. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_j_c_cluster','vj_j_c_cluster');
  31243. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pirna','pirna');
  31244. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reverse_hoogsteen_base_pair','reverse_hoogsteen_base_pair');
  31245. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tryptophanyl_trna','tryptophanyl_trna');
  31246. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_primed_cdna_clone','polya_primed_cdna_clone');
  31247. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucoplast_chromosome','leucoplast_chromosome');
  31248. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('status','status');
  31249. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ltr_retrotransposon','ltr_retrotransposon');
  31250. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnase_p_rna','rnase_p_rna');
  31251. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conjugative_transposon','conjugative_transposon');
  31252. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('improved_high_quality_draft','improved_high_quality_draft');
  31253. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('copy_number_gain','copy_number_gain');
  31254. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linkage_group','linkage_group');
  31255. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_trans_spliced_transcript','gene_with_trans_spliced_transcript');
  31256. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl8_acceptor_site','sl8_acceptor_site');
  31257. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptide_coil','peptide_coil');
  31258. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrrolysine_trna_primary_transcript','pyrrolysine_trna_primary_transcript');
  31259. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_c_cluster','v_vj_c_cluster');
  31260. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phage_sequence','phage_sequence');
  31261. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k79_methylation_site','h3k79_methylation_site');
  31262. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded','recoded');
  31263. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposon_fragment','transposon_fragment');
  31264. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_c_cluster','vj_c_cluster');
  31265. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('editing_domain','editing_domain');
  31266. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylaminomethyluridine','five_methylaminomethyluridine');
  31267. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('centromere_dna_element_ii','centromere_dna_element_ii');
  31268. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alteration_attribute','alteration_attribute');
  31269. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_ltr_retrotransposon_polymeric_tract','non_ltr_retrotransposon_polymeric_tract');
  31270. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transversion','transversion');
  31271. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tryptophan','tryptophan');
  31272. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recursive_splice_site','recursive_splice_site');
  31273. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_fusion','polypeptide_fusion');
  31274. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insulator_binding_site','insulator_binding_site');
  31275. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('increased_polyadenylation_variant','increased_polyadenylation_variant');
  31276. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proline_trna_primary_transcript','proline_trna_primary_transcript');
  31277. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_fragment','repeat_fragment');
  31278. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('blocked_reading_frame','blocked_reading_frame');
  31279. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_cleavage_snorna_primary_transcript','rrna_cleavage_snorna_primary_transcript');
  31280. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_isopentenyladenosine','n6_isopentenyladenosine');
  31281. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_arginine','modified_l_arginine');
  31282. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_conserved_motif','polypeptide_conserved_motif');
  31283. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paracentric','paracentric');
  31284. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t3_rna_polymerase_promoter','t3_rna_polymerase_promoter');
  31285. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_bipartite_duplication','inversion_derived_bipartite_duplication');
  31286. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_acceptor_site','trans_splice_acceptor_site');
  31287. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_box_type_2','a_box_type_2');
  31288. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rre_rna','rre_rna');
  31289. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_ribosyladenosine_phosphate','two_prime_o_riboA_phosphate');
  31290. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pac_end','pac_end');
  31291. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('extramembrane_polypeptide_region','extramembrane_polypeptide_region');
  31292. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('copy_number_change','copy_number_change');
  31293. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intein','intein');
  31294. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('endosomal_localization_signal','endosomal_localization_signal');
  31295. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('twintron','twintron');
  31296. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna_primary_transcript','scrna_primary_transcript');
  31297. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethylaminomethyl_two_prime_o_methyluridine','five_carboxymethylaminomethyl_two_prime_o_methyluridine');
  31298. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('somatic_variant','somatic_variant');
  31299. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('duplication','duplication');
  31300. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_encoding','tmrna_encoding');
  31301. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_cobalt_ion_contact_site','polypeptide_cobalt_ion_contact_site');
  31302. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('flanked','flanked');
  31303. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion','inversion');
  31304. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ctg_start_codon','ctg_start_codon');
  31305. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tyrosine_trna_primary_transcript','tyrosine_trna_primary_transcript');
  31306. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('eukaryotic_terminator','eukaryotic_terminator');
  31307. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frt_flanked','frt_flanked');
  31308. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spliceosomal_intron_region','spliceosomal_intron_region');
  31309. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_region_of_exon','coding_region_of_exon');
  31310. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cloned_cdna_insert','cloned_cdna_insert');
  31311. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decreased_transcription_rate_variant','decreased_transcription_rate_variant');
  31312. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_c_cluster','v_vdj_c_cluster');
  31313. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnase_p_rna_gene','rnase_p_rna_gene');
  31314. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translationally_regulated','translationally_regulated');
  31315. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histidyl_trna','histidyl_trna');
  31316. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sonicate_fragment','sonicate_fragment');
  31317. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_recoded_mrna','gene_with_recoded_mrna');
  31318. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methyluridine','two_prime_o_methyluridine');
  31319. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cosmid','cosmid');
  31320. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_rna_interference','silenced_by_rna_interference');
  31321. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_conservative_missense_codon','non_conservative_missense_codon');
  31322. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna','snorna');
  31323. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mature_transcript','mature_transcript');
  31324. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudouridylation_guide_snorna','pseudouridylation_guide_snorna');
  31325. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_gene','c_gene');
  31326. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('processed_transcript','processed_transcript');
  31327. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('floxed_gene','floxed_gene');
  31328. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spot_42_rna','spot_42_rna');
  31329. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cdna_clone','cdna_clone');
  31330. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_splice_site','cryptic_splice_site');
  31331. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_gene_segment','pseudogenic_gene_segment');
  31332. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_ltr','three_prime_ltr');
  31333. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_ii_intron','group_ii_intron');
  31334. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnase_mrp_rna_gene','rnase_mrp_rna_gene');
  31335. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('structural_alteration','structural_alteration');
  31336. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pna_oligo','pna_oligo');
  31337. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion_sequence','insertion_sequence');
  31338. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('junction','junction');
  31339. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paralogous','paralogous');
  31340. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tna','tna');
  31341. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_isopentenylaminomethyl_two_thiouridine','five_isopentenylaminomethyl_two_thiouridine');
  31342. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nested_tandem_repeat','nested_tandem_repeat');
  31343. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_1_frameshift','minus_1_frameshift');
  31344. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_canonical_three_prime_splice_site','non_canonical_three_prime_splice_site');
  31345. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_non_canonical_start_codon','gene_with_non_canonical_start_codon');
  31346. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_rrna','pseudogenic_rrna');
  31347. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_threonine_turn','serine_threonine_turn');
  31348. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_gene','j_gene');
  31349. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k27_trimethylation_site','h3k27_trimethylation_site');
  31350. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna_primary_transcript','strna_primary_transcript');
  31351. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_eliminated_sequence','internal_eliminated_sequence');
  31352. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allelically_excluded_gene','allelically_excluded_gene');
  31353. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('qtl','qtl');
  31354. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_est','three_prime_est');
  31355. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bred_motif','bred_motif');
  31356. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reverse','reverse');
  31357. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_encoding','mirna_encoding');
  31358. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_n2_2_prime_o_trimethylguanosine','n2_n2_2_prime_o_trimethylguanosine');
  31359. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translational_product_function_variant','translational_product_function_variant');
  31360. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_alternate_transcription_start_sites','encodes_alternate_transcription_start_sites');
  31361. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_array','gene_array');
  31362. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tetranucleotide_repeat_microsatellite_feature','tetranuc_repeat_microsat');
  31363. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_aminomethyl_two_thiouridine','five_aminomethyl_two_thiouridine');
  31364. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic_primary_transcript','monocistronic_primary_transcript');
  31365. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snv','snv');
  31366. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('direct','direct');
  31367. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mobile_genetic_element','mobile_genetic_element');
  31368. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_ligand_contact','polypeptide_ligand_contact');
  31369. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('biomaterial_region','biomaterial_region');
  31370. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element_flanking_region','transposable_element_flanking_region');
  31371. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('symmetric_rna_internal_loop','symmetric_rna_internal_loop');
  31372. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_plus_1_frameshift','mrna_with_plus_1_frameshift');
  31373. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_regulated','transcriptionally_regulated');
  31374. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_intron','five_prime_intron');
  31375. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vertebrate_immune_system_gene_recombination_feature','vertebrate_immune_system_gene_recombination_feature');
  31376. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxyhydroxymethyl_uridine_methyl_ester','five_carboxyhydroxymethyl_uridine_methyl_ester');
  31377. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_transposition','chromosomal_transposition');
  31378. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proplastid_gene','proplastid_gene');
  31379. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_trna_primary_transcript','serine_trna_primary_transcript');
  31380. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attp_site','attp_site');
  31381. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antisense','antisense');
  31382. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminal_inverted_repeat_element','terminal_inverted_repeat_element');
  31383. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coiled_coil','coiled_coil');
  31384. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_cluster','v_vdj_cluster');
  31385. 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');
  31386. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_coding_primary_transcript','protein_coding_primary_transcript');
  31387. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mite','mite');
  31388. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_splice_site_variant','cryptic_splice_site_variant');
  31389. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion','insertion');
  31390. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('secis_element','secis_element');
  31391. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maxicircle','maxicircle');
  31392. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tss','tss');
  31393. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pedigree_specific_variant','pedigree_specific_variant');
  31394. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cysteine','cysteine');
  31395. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribothymidine','ribothymidine');
  31396. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_adjacent_residues','non_adjacent_residues');
  31397. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_modification','histone_modification');
  31398. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_ribosome_entry_site','internal_ribosome_entry_site');
  31399. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('outron','outron');
  31400. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_repeat','polypeptide_repeat');
  31401. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone_insert_start','clone_insert_start');
  31402. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attr_site','attr_site');
  31403. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv3_motif','dmv3_motif');
  31404. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('capped_mrna','capped_mrna');
  31405. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_rearrangement_feature','sequence_rearrangement_feature');
  31406. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('apicoplast_chromosome','apicoplast_chromosome');
  31407. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_a_two','beta_turn_type_six_a_two');
  31408. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated','invalidated');
  31409. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('valine','valine');
  31410. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translationally_regulated_gene','translationally_regulated_gene');
  31411. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('amino_acid_insertion','amino_acid_insertion');
  31412. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('promoter_targeting_sequence','promoter_targeting_sequence');
  31413. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polinton','polinton');
  31414. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_tag','engineered_tag');
  31415. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_coding_exon_variant','non_coding_exon_variant');
  31416. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylcytidine','five_methylcytidine');
  31417. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl5_acceptor_site','sl5_acceptor_site');
  31418. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('positively_autoregulated','positively_autoregulated');
  31419. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudouridine','pseudouridine');
  31420. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('amplification_origin','amplification_origin');
  31421. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unoriented_insertional_duplication','unorient_insert_dup');
  31422. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_constitutive','transcriptionally_constitutive');
  31423. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('extrachromosomal_mobile_genetic_element','extrachromosomal_mobile_genetic_element');
  31424. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('variant_origin','variant_origin');
  31425. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('utr_region','utr_region');
  31426. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna','mirna');
  31427. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tyrosine','tyrosine');
  31428. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inr1_motif','inr1_motif');
  31429. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h2b_ubiquitination_site','h2b_ubiquitination_site');
  31430. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_acetyladenosine','n6_acetyladenosine');
  31431. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cis_splice_site','cis_splice_site');
  31432. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('floxed','floxed');
  31433. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_right_handed_type_two','beta_turn_right_handed_type_two');
  31434. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('utr_variant','utr_variant');
  31435. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_terminal_region','c_terminal_region');
  31436. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcription_regulatory_region','transcription_regulatory_region');
  31437. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_leucine','modified_l_leucine');
  31438. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_ltr_component','five_prime_ltr_component');
  31439. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_acylation_region','histone_acylation_region');
  31440. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_c_cluster','vdj_c_cluster');
  31441. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_part','chromosome_part');
  31442. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptional_cis_regulatory_region','transcriptional_cis_regulatory_region');
  31443. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phenylalanyl_trna','phenylalanyl_trna');
  31444. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion_site','insertion_site');
  31445. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gc_rich_promoter_region','gc_rich_promoter_region');
  31446. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('overlapping_est_set','overlapping_est_set');
  31447. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_right_handed_type_two','asx_turn_right_handed_type_two');
  31448. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anticodon_loop','anticodon_loop');
  31449. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv5_motif','dmv5_motif');
  31450. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl1_acceptor_site','sl1_acceptor_site');
  31451. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_region','cds_region');
  31452. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulatory_region_variant','regulatory_region_variant');
  31453. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k9_dimethylation_site','h3k9_dimethylation_site');
  31454. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_gained','stop_gained');
  31455. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('telomerase_rna_gene','telomerase_rna_gene');
  31456. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_j_c_cluster','v_dj_j_c_cluster');
  31457. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_insert','engineered_insert');
  31458. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_inverted_gene','recombinationally_inverted_gene');
  31459. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('microarray_oligo','microarray_oligo');
  31460. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cassette_array_member','cassette_array_member');
  31461. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_1_frameshift_variant','plus_1_frameshift_variant');
  31462. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u12_snrna','u12_snrna');
  31463. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supported_by_est_or_cdna','supported_by_est_or_cdna');
  31464. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_10_signal','minus_10_signal');
  31465. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone_insert_end','clone_insert_end');
  31466. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inr_motif','inr_motif');
  31467. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_stem_loop_structure','three_prime_stem_loop_structure');
  31468. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rflp_fragment','rflp_fragment');
  31469. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phage_rna_polymerase_promoter','phage_rna_polymerase_promoter');
  31470. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrimidine_transition','pyrimidine_transition');
  31471. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrinsically_unstructured_polypeptide_region','intrinsically_unstructured_polypeptide_region');
  31472. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_2_prime_o_dimethylguanosine','n2_2_prime_o_dimethylguanosine');
  31473. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_loss','exon_loss');
  31474. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('archaeal_intron','archaeal_intron');
  31475. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lna','lna');
  31476. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_junction','exon_junction');
  31477. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t7_rna_polymerase_promoter','t7_rna_polymerase_promoter');
  31478. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_interchromosomal_transposition','invert_inter_transposition');
  31479. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('episome','episome');
  31480. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uninverted_insertional_duplication','uninvert_insert_dup');
  31481. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('free','free');
  31482. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_difference','sequence_difference');
  31483. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h4k5_acylation_site','h4k5_acylation_site');
  31484. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_c_cluster','v_d_dj_c_cluster');
  31485. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_conflict','sequence_conflict');
  31486. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nmd_transcript_variant','nmd_transcript_variant');
  31487. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tiling_path_clone','tiling_path_clone');
  31488. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_iii_intron','group_iii_intron');
  31489. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_glycine','modified_glycine');
  31490. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_alteration','sequence_alteration');
  31491. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polyploid','polyploid');
  31492. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mathematically_defined_repeat','mathematically_defined_repeat');
  31493. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_dna_modification','gene_silenced_by_dna_modification');
  31494. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_j_cluster','v_vj_j_cluster');
  31495. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isoleucine_trna_primary_transcript','isoleucine_trna_primary_transcript');
  31496. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_small_subunit_primary_transcript','rrna_small_subunit_primary_transcript');
  31497. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ltr_component','ltr_component');
  31498. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_2_framshift','plus_2_framshift');
  31499. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translational_product_structure_variant','translational_product_structure_variant');
  31500. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamic_acid_trna_primary_transcript','glutamic_acid_trna_primary_transcript');
  31501. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_rearranged_at_dna_level','gene_rearranged_at_dna_level');
  31502. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_transcript','edited_transcript');
  31503. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_partial_processing','invalidated_by_partial_processing');
  31504. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('increased_transcript_stability_variant','increased_transcript_stability_variant');
  31505. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequencing_primer','sequencing_primer');
  31506. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cleaved_for_gpi_anchor_region','cleaved_for_gpi_anchor_region');
  31507. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_cysteine','modified_l_cysteine');
  31508. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_utr','five_prime_utr');
  31509. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('restriction_enzyme_recognition_site','restriction_enzyme_recognition_site');
  31510. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frt_site','frt_site');
  31511. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminal_inverted_repeat','terminal_inverted_repeat');
  31512. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('centromere_dna_element_i','centromere_dna_element_i');
  31513. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transition','transition');
  31514. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deletion_junction','deletion_junction');
  31515. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_right_handed_type_one','beta_turn_right_handed_type_one');
  31516. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_ribosylguanosine_phosphate','two_prime_o_ribosylguanosine_phosphate');
  31517. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carbamoylmethyl_two_prime_o_methyluridine','five_cm_2_prime_o_methU');
  31518. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_transcribed_spacer_region','internal_transcribed_spacer_region');
  31519. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic','dicistronic');
  31520. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supported_by_sequence_similarity','supported_by_sequence_similarity');
  31521. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reverse_primer','reverse_primer');
  31522. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_three_prime_ltr_region','u3_three_prime_ltr_region');
  31523. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamine_trna_primary_transcript','glutamine_trna_primary_transcript');
  31524. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_ii_promoter','rnapol_ii_promoter');
  31525. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('overlapping','overlapping');
  31526. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alpha_beta_motif','alpha_beta_motif');
  31527. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_transposable_element','engineered_transposable_element');
  31528. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('forward_primer','forward_primer');
  31529. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attctn_site','attctn_site');
  31530. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_recombination_signal_sequence','five_prime_d_recombination_signal_sequence');
  31531. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u6_snrna','u6_snrna');
  31532. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_rearranged_gene','recombinationally_rearranged_gene');
  31533. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_threonylcarbamoyladenosine','n6_threonylcarbamoyladenosine');
  31534. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carbamoylmethyluridine','five_carbamoylmethyluridine');
  31535. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_fragment','cds_fragment');
  31536. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genome','genome');
  31537. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('increased_translational_product_level','increased_translational_product_level');
  31538. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translational_product_level_variant','translational_product_level_variant');
  31539. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('promoter','promoter');
  31540. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_coding_gene','protein_coding_gene');
  31541. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_snrna','u5_snrna');
  31542. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wybutosine','wybutosine');
  31543. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylwyosine','methylwyosine');
  31544. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('large_subunit_rrna','large_subunit_rrna');
  31545. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomally_aberrant_genome','chromosomally_aberrant_genome');
  31546. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_2_prime_o_dimethylcytidine','n4_2_prime_o_dimethylcytidine');
  31547. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_to_t_transition','c_to_t_transition');
  31548. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bidirectional_promoter','bidirectional_promoter');
  31549. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('validated_cdna_clone','validated_cdna_clone');
  31550. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('k_turn_rna_motif','k_turn_rna_motif');
  31551. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcribed_fragment','transcribed_fragment');
  31552. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_ust','five_prime_ust');
  31553. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_utr_intron','three_prime_utr_intron');
  31554. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retrogene','retrogene');
  31555. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrimidine_to_purine_transversion','pyrimidine_to_purine_transversion');
  31556. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sine_element','sine_element');
  31557. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_rst','five_prime_rst');
  31558. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('utr_intron','utr_intron');
  31559. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interchromosomal_transposition','interchromosomal_transposition');
  31560. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_sequence_secondary_structure','rna_sequence_secondary_structure');
  31561. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_change_in_transcript','complex_change_in_transcript');
  31562. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_transposable_element','engineered_foreign_transposable_element');
  31563. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ds_rna_viral_sequence','ds_rna_viral_sequence');
  31564. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fosmid','fosmid');
  31565. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_substitution','complex_substitution');
  31566. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('validated','validated');
  31567. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u2_snrna','u2_snrna');
  31568. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('duplication_attribute','duplication_attribute');
  31569. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('caat_signal','caat_signal');
  31570. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_cluster','c_cluster');
  31571. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('consensus_region','consensus_region');
  31572. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vertebrate_immune_system_gene_recombination_spacer','vertebrate_immune_system_gene_recombination_spacer');
  31573. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_restriction_enzyme_junction','three_prime_restriction_enzyme_junction');
  31574. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_trap_construct','gene_trap_construct');
  31575. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_aptamer','rna_aptamer');
  31576. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_induced','transcriptionally_induced');
  31577. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrachromosomal','intrachromosomal');
  31578. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_localization_signal','nuclear_localization_signal');
  31579. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue_region','rescue_region');
  31580. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_site_part','inversion_site_part');
  31581. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_2_frameshift variant','plus_2_frameshift_variant');
  31582. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('origin_of_replication','origin_of_replication');
  31583. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('standard_draft','standard_draft');
  31584. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k79_dimethylation_site','h3k79_dimethylation_site');
  31585. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_internal_loop','rna_internal_loop');
  31586. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ultracontig','ultracontig');
  31587. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptidyl','peptidyl');
  31588. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_region','polypeptide_region');
  31589. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epigenetically_modified_region','epigenetically_modified_region');
  31590. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgenic_insertion','transgenic_insertion');
  31591. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_antiguide','mirna_antiguide');
  31592. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rearranged_at_dna_level','rearranged_at_dna_level');
  31593. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intergenic_variant','intergenic_variant');
  31594. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_spacer','v_spacer');
  31595. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strand_attribute','strand_attribute');
  31596. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_lost','stop_lost');
  31597. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alternatively_spliced','alternatively_spliced');
  31598. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_formyl_two_prime_o_methylcytidine','five_formyl_two_prime_o_methylcytidine');
  31599. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid_location','plasmid_location');
  31600. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('four_bp_start_codon','four_bp_start_codon');
  31601. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('increased_transcription_rate_variant','increased_transcription_rate_variant');
  31602. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_rearranged','recombinationally_rearranged');
  31603. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_3d_structural_variant','complex_3d_structural_variant');
  31604. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chimeric_cdna_clone','chimeric_cdna_clone');
  31605. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tasirna_primary_transcript','tasirna_primary_transcript');
  31606. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_dicistronic_transcript','gene_with_dicistronic_transcript');
  31607. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_ltr_component','three_prime_ltr_component');
  31608. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retron','retron');
  31609. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autopolyploid','autopolyploid');
  31610. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phenylalanine','phenylalanine');
  31611. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translation_regulatory_region','translation_regulatory_region');
  31612. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transit_peptide','transit_peptide');
  31613. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('amino_acid_deletion','amino_acid_deletion');
  31614. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_28s','rrna_28s');
  31615. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_two_prime_o_dimethylinosine','one_two_prime_o_dimethylinosine');
  31616. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('threonine','threonine');
  31617. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_minor_rna_motif','a_minor_rna_motif');
  31618. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_cluster','j_cluster');
  31619. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dce','dce');
  31620. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('quantitative_variant','quantitative_variant');
  31621. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysosomal_localization_signal','lysosomal_localization_signal');
  31622. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_cluster','d_dj_cluster');
  31623. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_arm','chromosome_arm');
  31624. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('kinetoplast_gene','kinetoplast_gene');
  31625. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('line_element','line_element');
  31626. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('solo_ltr','solo_ltr');
  31627. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('external_transcribed_spacer_region','external_transcribed_spacer_region');
  31628. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_transcribed_region','non_transcribed_region');
  31629. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_stem','mirna_stem');
  31630. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_j_c_cluster','dj_j_c_cluster');
  31631. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hyperploid','hyperploid');
  31632. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic','cryptic');
  31633. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k9_acetylation_site','h3k9_acetylation_site');
  31634. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alpha_helix','alpha_helix');
  31635. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fusion','fusion');
  31636. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_j_cluster','vdj_j_cluster');
  31637. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isowyosine','isowyosine');
  31638. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paracentric_inversion','paracentric_inversion');
  31639. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homing_endonuclease_binding_site','homing_endonuclease_binding_site');
  31640. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tna_oligo','tna_oligo');
  31641. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mini_gene','mini_gene');
  31642. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('restriction_fragment','restriction_fragment');
  31643. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('base_pair','base_pair');
  31644. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inside_intron_antiparallel','inside_intron_antiparallel');
  31645. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_binding_site','dna_binding_site');
  31646. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_cytidine','modified_cytidine');
  31647. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hydrophobic_region_of_peptide','hydrophobic_region_of_peptide');
  31648. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic_primary_transcript','polycistronic_primary_transcript');
  31649. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_proline','modified_l_proline');
  31650. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('overlapping_feature_set','overlapping_feature_set');
  31651. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_left_handed_type_two','asx_turn_left_handed_type_two');
  31652. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interchromosomal_duplication','interchromosomal_duplication');
  31653. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inframe_codon_loss','inframe_codon_loss');
  31654. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('substitution','substitution');
  31655. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isoleucine','isoleucine');
  31656. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('functional_variant','functional_variant');
  31657. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_recoding_site','three_prime_recoding_site');
  31658. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_stability_variant','transcript_stability_variant');
  31659. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('5kb_upstream_variant','fivekb_upstream_variant');
  31660. 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');
  31661. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glycine_trna_primary_transcript','glycine_trna_primary_transcript');
  31662. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intron_variant','intron_variant');
  31663. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regional_centromere_outer_repeat_region','regional_centromere_outer_repeat_region');
  31664. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('replication_regulatory_region','replication_regulatory_region');
  31665. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mating_type_region','mating_type_region');
  31666. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_heptamer','v_heptamer');
  31667. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dispersed_repeat','dispersed_repeat');
  31668. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primer','primer');
  31669. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_domain','polypeptide_domain');
  31670. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wild_type','wild_type');
  31671. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fusion_gene','fusion_gene');
  31672. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_function_variant','transcript_function_variant');
  31673. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_member_region','gene_member_region');
  31674. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('arginyl_trna','arginyl_trna');
  31675. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('compensatory_transcript_secondary_structure_variant','compensatory_transcript_secondary_structure_variant');
  31676. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylated_base_feature','methylated_base_feature');
  31677. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uninverted_intrachromosomal_transposition','uninvert_intra_transposition');
  31678. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna_gene','scrna_gene');
  31679. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_18s','rrna_18s');
  31680. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter_type_1','rnapol_iii_promoter_type_1');
  31681. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('point_mutation','point_mutation');
  31682. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudoknot','pseudoknot');
  31683. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_quartet','g_quartet');
  31684. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('schellmann_loop','schellmann_loop');
  31685. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_selenocysteine','modified_l_selenocysteine');
  31686. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pna','pna');
  31687. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_coding_exon','three_prime_coding_exon');
  31688. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('endogenous_retroviral_gene','endogenous_retroviral_gene');
  31689. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vertebrate_immunoglobulin_t_cell_receptor_segment','vertebrate_immunoglobulin_t_cell_receptor_segment');
  31690. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_recoded_by_translational_bypass','mrna_recoded_by_translational_bypass');
  31691. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_region','engineered_foreign_region');
  31692. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna_encoding','snorna_encoding');
  31693. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_est','five_prime_est');
  31694. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foldback_element','foldback_element');
  31695. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna_encoding','srp_rna_encoding');
  31696. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_j_c_cluster','d_j_c_cluster');
  31697. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_c_cluster','dj_c_cluster');
  31698. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_ubiqitination_site','histone_ubiqitination_site');
  31699. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_structural_alteration','complex_structural_alteration');
  31700. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_encoding','rrna_encoding');
  31701. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_recoded_by_codon_redefinition','mrna_recoded_by_codon_redefinition');
  31702. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methyluridine','five_methyluridine');
  31703. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_sequence','polya_sequence');
  31704. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('metabolic_island','metabolic_island');
  31705. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homologous','homologous');
  31706. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('immature_peptide_region','immature_peptide_region');
  31707. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h2bk5_monomethylation_site','h2bk5_monomethylation_site');
  31708. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_attribute','sequence_attribute');
  31709. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sirna','sirna');
  31710. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dart_marker','dart_marker');
  31711. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_motif','nucleotide_motif');
  31712. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_1_translationally_frameshifted','plus_1_translationally_frameshifted');
  31713. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_intron','trna_intron');
  31714. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_noncoding_exon','five_prime_noncoding_exon');
  31715. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_motif','dna_motif');
  31716. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_strand','beta_strand');
  31717. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ds_oligo','ds_oligo');
  31718. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methyladenosine','one_methyladenosine');
  31719. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oxys_rna','oxys_rna');
  31720. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_motif','asx_motif');
  31721. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_hydroxyuridine','five_hydroxyuridine');
  31722. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_exon','coding_exon');
  31723. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_1_translational_frameshift','plus_1_translational_frameshift');
  31724. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_formylcytidine','five_formylcytidine');
  31725. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k27_dimethylation_site','h3k27_dimethylation_site');
  31726. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spliced_leader_rna','spliced_leader_rna');
  31727. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mitochondrial_chromosome','mitochondrial_chromosome');
  31728. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_fragment','gene_fragment');
  31729. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_7_2prirme_o_trimethylguanosine','n2_7_2prirme_o_trimethylguanosine');
  31730. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frameshift','frameshift');
  31731. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('propeptide_cleavage_site','propeptide_cleavage_site');
  31732. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methyldihydrouridine','five_methyldihydrouridine');
  31733. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('amino_acid','amino_acid');
  31734. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translocation_breakpoint','translocation_breakpoint');
  31735. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_5_8s','rrna_5_8s');
  31736. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('helix_turn_helix','helix_turn_helix');
  31737. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('simple_sequence_length_variation','simple_sequence_length_variation');
  31738. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methionine','methionine');
  31739. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_loss_of_function_variant','polypeptide_loss_of_function_variant');
  31740. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element_gene','transposable_element_gene');
  31741. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('whole_genome_sequence_status','whole_genome_sequence_status');
  31742. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomic_island','genomic_island');
  31743. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_segment','gene_segment');
  31744. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna_gene','snrna_gene');
  31745. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_region','engineered_region');
  31746. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('common_variant','common_variant');
  31747. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptogene','cryptogene');
  31748. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_coding_exon_noncoding_region','three_prime_coding_exon_noncoding_region');
  31749. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_rna_interference','gene_silenced_by_rna_interference');
  31750. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_interchromosomal_transposition','d_interchr_transposition');
  31751. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural_variant_site','natural_variant_site');
  31752. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assembly','assembly');
  31753. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('major_tss','major_tss');
  31754. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna','trna');
  31755. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_overlapping_peptides','encodes_overlapping_peptides');
  31756. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nc_conserved_region','nc_conserved_region');
  31757. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('locus_control_region','locus_control_region');
  31758. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('s_gna_oligo','s_gna_oligo');
  31759. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_chromosome','dna_chromosome');
  31760. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_b','beta_turn_type_six_b');
  31761. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('loss_of_heterozygosity','loss_of_heterozygosity');
  31762. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_gene','engineered_gene');
  31763. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wobble_base_pair','wobble_base_pair');
  31764. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_amino_acid_feature','modified_amino_acid_feature');
  31765. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_to_c_transition','t_to_c_transition');
  31766. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translocaton_attribute','translocaton_attribute');
  31767. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('apicoplast_sequence','apicoplast_sequence');
  31768. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminal_codon_variant','terminal_codon_variant');
  31769. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('irlinv_site','irlinv_site');
  31770. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('synthetic_sequence','synthetic_sequence');
  31771. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_1_polypeptide','encodes_1_polypeptide');
  31772. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_iia_intron','group_iia_intron');
  31773. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('telomere','telomere');
  31774. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interior_intron','interior_intron');
  31775. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_mrna','edited_mrna');
  31776. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_right_handed_three','catmat_right_handed_three');
  31777. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tandem_duplication','tandem_duplication');
  31778. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_gene','tmrna_gene');
  31779. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pre_edited_region','pre_edited_region');
  31780. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_hydroxynorvalylcarbamoyladenosine','n6_hydroxynorvalylcarbamoyladenosine');
  31781. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleomorphic_chromosome','nucleomorphic_chromosome');
  31782. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fragmentary','fragmentary');
  31783. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single','single');
  31784. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('binding_site','binding_site');
  31785. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_methylguanine','seven_methylguanine');
  31786. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('target_site_duplication','target_site_duplication');
  31787. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_gene','vdj_gene');
  31788. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bound_by_nucleic_acid','bound_by_nucleic_acid');
  31789. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptide_localization_signal','peptide_localization_signal');
  31790. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_right_handed_four','catmat_right_handed_four');
  31791. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k27_acylation_site','h3k27_acylation_site');
  31792. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('compound_chromosome','compound_chromosome');
  31793. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_end','coding_end');
  31794. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gap','gap');
  31795. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ligand_binding_site','ligand_binding_site');
  31796. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('upstream_aug_codon','upstream_aug_codon');
  31797. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_transcript','pseudogenic_transcript');
  31798. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('satellite_dna','satellite_dna');
  31799. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_deficiency_plus_duplication','assortment_derived_deficiency_plus_duplication');
  31800. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element','transposable_element');
  31801. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('endogenous_retroviral_sequence','endogenous_retroviral_sequence');
  31802. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('microsatellite','microsatellite');
  31803. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_different_polypeptides_different_stop','encodes_different_polypeptides_different_stop');
  31804. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primary_transcript','primary_transcript');
  31805. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('consensus_mrna','consensus_mrna');
  31806. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('membrane_peptide_loop','membrane_peptide_loop');
  31807. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foreign','so_foreign');
  31808. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rho_independent_bacterial_terminator','rho_independent_bacterial_terminator');
  31809. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u_box','u_box');
  31810. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_histone_deacetylation','gene_silenced_by_histone_deacetylation');
  31811. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_j_c_cluster','vdj_j_c_cluster');
  31812. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cpg_island','cpg_island');
  31813. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('haplotype','haplotype');
  31814. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylinosine','two_prime_o_methylinosine');
  31815. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna','dna');
  31816. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_double_stranded_rna_chromosome','circular_double_stranded_rna_chromosome');
  31817. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mature_protein_region','mature_protein_region');
  31818. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('b_box','b_box');
  31819. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_zinc_ion_contact_site','polypeptide_zinc_ion_contact_site');
  31820. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_subarray_member','gene_subarray_member');
  31821. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_cassette','gene_cassette');
  31822. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oric','oric');
  31823. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deletion_breakpoint','deletion_breakpoint');
  31824. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion_attribute','insertion_attribute');
  31825. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_plus_2_frameshift','mrna_with_plus_2_frameshift');
  31826. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chip_seq_region','chip_seq_region');
  31827. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_right_handed_type_one','asx_turn_right_handed_type_one');
  31828. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcribed_cluster','transcribed_cluster');
  31829. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tyrosyl_trna','tyrosyl_trna');
  31830. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orthologous','orthologous');
  31831. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('s_gna','s_gna');
  31832. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('canonical_three_prime_splice_site','canonical_three_prime_splice_site');
  31833. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('noncoding_exon','noncoding_exon');
  31834. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lethal_variant','lethal_variant');
  31835. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minor_tss','minor_tss');
  31836. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_two_prime_o_dimethylcytidine','five_two_prime_o_dimethylcytidine');
  31837. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k36_trimethylation_site','h3k36_trimethylation_site');
  31838. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('macronuclear_chromosome','macronuclear_chromosome');
  31839. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_translocation','deficient_translocation');
  31840. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('read_pair','read_pair');
  31841. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_with_translational_frameshift','transcript_with_translational_frameshift');
  31842. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('finished_genome','finished_genome');
  31843. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter_type_3','rnapol_iii_promoter_type_3');
  31844. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_transposon','dna_transposon');
  31845. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orf','orf');
  31846. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('right_handed_peptide_helix','right_handed_peptide_helix');
  31847. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nest_left_right_motif','polypeptide_nest_left_right_motif');
  31848. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('topology_attribute','topology_attribute');
  31849. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirtron','mirtron');
  31850. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_motif','polypeptide_motif');
  31851. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl9_acceptor_site','sl9_acceptor_site');
  31852. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proplastid_sequence','proplastid_sequence');
  31853. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('negatively_autoregulated_gene','negatively_autoregulated_gene');
  31854. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retinoic_acid_responsive_element','retinoic_acid_responsive_element');
  31855. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_d_box_snorna_encoding','c_d_box_snorna_encoding');
  31856. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_assembly','sequence_assembly');
  31857. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromoplast_gene','chromoplast_gene');
  31858. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dcaps_primer','dcaps_primer');
  31859. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_clip','five_prime_clip');
  31860. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('golden_path','golden_path');
  31861. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_acceptor_variant','splice_acceptor_variant');
  31862. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alanine','alanine');
  31863. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cleaved_peptide_region','cleaved_peptide_region');
  31864. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_j_cluster','v_dj_j_cluster');
  31865. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_region','pseudogenic_region');
  31866. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminator_codon_variant','terminator_codon_variant');
  31867. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylation_guide_snorna','methylation_guide_snorna');
  31868. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_j_c_cluster','v_vj_j_c_cluster');
  31869. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_canonical_start_codon','non_canonical_start_codon');
  31870. 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');
  31871. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_turn_motif','polypeptide_turn_motif');
  31872. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autocatalytically_spliced_intron','autocatalytically_spliced_intron');
  31873. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mobile','mobile');
  31874. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tandem','tandem');
  31875. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intron','intron');
  31876. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clip','clip');
  31877. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dye_terminator_read','dye_terminator_read');
  31878. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv4_motif','dmv4_motif');
  31879. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('au_rich_element','au_rich_element');
  31880. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_breakpoint','inversion_breakpoint');
  31881. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dce_siii','dce_siii');
  31882. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_recoding_site','five_prime_recoding_site');
  31883. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_protein_coding','non_protein_coding');
  31884. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mobile_intron','mobile_intron');
  31885. 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');
  31886. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_right_handed_type_one','st_turn_right_handed_type_one');
  31887. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna','rrna');
  31888. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inside_intron_parallel','inside_intron_parallel');
  31889. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spliceosomal_intron','spliceosomal_intron');
  31890. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phagemid','phagemid');
  31891. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('editing_block','editing_block');
  31892. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fragment_assembly','fragment_assembly');
  31893. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_acceptor_piece','tmrna_acceptor_piece');
  31894. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six','beta_turn_type_six');
  31895. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_rst','three_prime_rst');
  31896. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cysteine_trna_primary_transcript','cysteine_trna_primary_transcript');
  31897. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated_gene','post_translationally_regulated_gene');
  31898. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_repressed','transcriptionally_repressed');
  31899. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('crm','crm');
  31900. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cointegrated_plasmid','cointegrated_plasmid');
  31901. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_sequencing_information','polypeptide_sequencing_information');
  31902. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_spacer','three_prime_d_spacer');
  31903. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tiling_path_fragment','tiling_path_fragment');
  31904. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural','so_natural');
  31905. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pi_helix','pi_helix');
  31906. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('possible_base_call_error','possible_base_call_error');
  31907. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_truncation','polypeptide_truncation');
  31908. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k14_acetylation_site','h3k14_acetylation_site');
  31909. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('adaptive_island','adaptive_island');
  31910. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uridine_five_oxyacetic_acid','uridine_five_oxyacetic_acid');
  31911. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl7_acceptor_site','sl7_acceptor_site');
  31912. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_2_translational_frameshift','plus_2_translational_frameshift');
  31913. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_retained_variant','stop_retained_variant');
  31914. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homologous_region','homologous_region');
  31915. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('500b_downstream_variant','fivehundred_b_downstream_variant');
  31916. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_utr','internal_utr');
  31917. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_cytoplasmic_polypeptide_region','non_cytoplasmic_polypeptide_region');
  31918. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimental_feature','experimental_feature');
  31919. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_chromosome','nuclear_chromosome');
  31920. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exemplar','exemplar');
  31921. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_ii_core_promoter','rnapol_ii_core_promoter');
  31922. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k9_methylation_site','h3k9_methylation_site');
  31923. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alanine_trna_primary_transcript','alanine_trna_primary_transcript');
  31924. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_variation','assortment_derived_variation');
  31925. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_n2_dimethylguanosine','n2_n2_dimethylguanosine');
  31926. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_hook_turn','rna_hook_turn');
  31927. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcribed_spacer_region','transcribed_spacer_region');
  31928. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid_gene','plasmid_gene');
  31929. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u14_snorna','u14_snorna');
  31930. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('galactosyl_queuosine','galactosyl_queuosine');
  31931. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyanelle_gene','cyanelle_gene');
  31932. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wild_type_rescue_gene','wild_type_rescue_gene');
  31933. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u12_intron','u12_intron');
  31934. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aptamer','aptamer');
  31935. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded_mrna','recoded_mrna');
  31936. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nested_transposon','nested_transposon');
  31937. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tf_binding_site_variant','tf_binding_site_variant');
  31938. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('macronuclear_sequence','macronuclear_sequence');
  31939. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ust','ust');
  31940. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('selenocysteine','selenocysteine');
  31941. 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');
  31942. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_dicistronic_mrna','gene_with_dicistronic_mrna');
  31943. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('match_part','match_part');
  31944. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleomorphic_sequence','nucleomorphic_sequence');
  31945. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('apicoplast_gene','apicoplast_gene');
  31946. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulon','regulon');
  31947. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid_vector','plasmid_vector');
  31948. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_tryptophan','modified_l_tryptophan');
  31949. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('free_chromosome_arm','free_chromosome_arm');
  31950. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna_primary_transcript','srp_rna_primary_transcript');
  31951. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn','asx_turn');
  31952. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anchor_binding_site','anchor_binding_site');
  31953. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_primary_transcript','rrna_primary_transcript');
  31954. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reading_frame','reading_frame');
  31955. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k23_acylation site','h3k23_acylation_site');
  31956. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maternal_variant','maternal_variant');
  31957. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dhu_loop','dhu_loop');
  31958. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_acetylcytidine','n4_acetylcytidine');
  31959. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimental_feature_attribute','experimental_feature_attribute');
  31960. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_gene','silenced_gene');
  31961. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cloned_genomic_insert','cloned_genomic_insert');
  31962. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intron_gain','intron_gain');
  31963. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_sequence_secondary_structure','dna_sequence_secondary_structure');
  31964. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cdna_match','cdna_match');
  31965. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_flanking_region','five_prime_flanking_region');
  31966. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrrolysyl_trna','pyrrolysyl_trna');
  31967. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_cis_hydroxyisopentenyl_adenosine','two_methylthio_n6_cis_hydroxyisopentenyl_adenosine');
  31968. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_component','repeat_component');
  31969. 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');
  31970. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rpra_rna','rpra_rna');
  31971. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclease_sensitive_site','nuclease_sensitive_site');
  31972. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conservative_amino_acid_substitution','conservative_amino_acid_substitution');
  31973. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_coding_exon_noncoding_region','five_prime_coding_exon_noncoding_region');
  31974. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter','rnapol_iii_promoter');
  31975. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tryptophan_trna_primary_transcript','try_trna_primary_transcript');
  31976. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('noncontiguous_finished','noncontiguous_finished');
  31977. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('region','region');
  31978. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tf_binding_site','tf_binding_site');
  31979. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attl_site','attl_site');
  31980. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural_plasmid','natural_plasmid');
  31981. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('upd','upd');
  31982. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conservative_missense_codon','conservative_missense_codon');
  31983. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_n6_dimethyladenosine','n6_n6_dimethyladenosine');
  31984. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('laevosynaptic_chromosome','laevosynaptic_chromosome');
  31985. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_structural_element','chromosomal_structural_element');
  31986. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_cassette_array','gene_cassette_array');
  31987. 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');
  31988. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('canonical_five_prime_splice_site','canonical_five_prime_splice_site');
  31989. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bound_by_protein','bound_by_protein');
  31990. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sts_map','sts_map');
  31991. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dnazyme','dnazyme');
  31992. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silent_mutation','silent_mutation');
  31993. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_j_cluster','v_d_j_cluster');
  31994. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('distal_promoter_element','distal_promoter_element');
  31995. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bipartite_duplication','bipartite_duplication');
  31996. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hydroxywybutosine','hydroxywybutosine');
  31997. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dihydrouridine','dihydrouridine');
  31998. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_coding_exon_coding_region','five_prime_coding_exon_coding_region');
  31999. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_left_handed_type_one','beta_turn_left_handed_type_one');
  32000. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k4_trimethylation','h3k4_trimethylation');
  32001. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded_codon','recoded_codon');
  32002. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('predicted','predicted');
  32003. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('resolution_site','resolution_site');
  32004. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_cyano_seven_deazaguanosine','seven_cyano_seven_deazaguanosine');
  32005. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('disease_associated_variant','disease_associated_variant');
  32006. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conformational_switch','conformational_switch');
  32007. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulated','regulated');
  32008. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_repeat','inverted_repeat');
  32009. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_to_a_transversion','t_to_a_transversion');
  32010. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attc_site','attc_site');
  32011. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methyladenosine','two_methyladenosine');
  32012. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cross_genome_match','cross_genome_match');
  32013. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tandem_repeat','tandem_repeat');
  32014. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('copy_number_loss','copy_number_loss');
  32015. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antisense_primary_transcript','antisense_primary_transcript');
  32016. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_collection','sequence_collection');
  32017. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_polyadenylated_mrna','gene_with_polyadenylated_mrna');
  32018. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_i_promoter','rnapol_i_promoter');
  32019. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_methyluridine','three_methyluridine');
  32020. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('start_codon','start_codon');
  32021. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retrotransposon','retrotransposon');
  32022. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('elongated_in_frame_polypeptide_c_terminal','elongated_in_frame_polypeptide_c_terminal');
  32023. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_gene','v_gene');
  32024. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chloroplast_dna','chloroplast_dna');
  32025. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('negative_sense_ssrna_viral_sequence','negative_sense_ssrna_viral_sequence');
  32026. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primer_binding_site','primer_binding_site');
  32027. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_box','c_box');
  32028. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid','plasmid');
  32029. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('biological_region','biological_region');
  32030. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_to_a_transition','g_to_a_transition');
  32031. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_canonical_five_prime_splice_site','non_canonical_five_prime_splice_site');
  32032. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_d_box_snorna_primary_transcript','c_d_box_snorna_primary_transcript');
  32033. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_region','trna_region');
  32034. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_cis_hydroxyisopentenyl_adenosine','n6_cis_hydroxyisopentenyl_adenosine');
  32035. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chloroplast_sequence','chloroplast_sequence');
  32036. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('variant_frequency','variant_frequency');
  32037. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_region','exon_region');
  32038. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_five_prime_ltr_region','r_five_prime_ltr_region');
  32039. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_j_c_cluster','v_j_c_cluster');
  32040. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_three_prime_ltr_region','r_three_prime_ltr_region');
  32041. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna','snrna');
  32042. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methylinosine','one_methylinosine');
  32043. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inframe_codon_gain','inframe_codon_gain');
  32044. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_gene_recombination_feature','j_gene_recombination_feature');
  32045. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_structural_motif','polypeptide_structural_motif');
  32046. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conserved_region','conserved_region');
  32047. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl3_acceptor_site','sl3_acceptor_site');
  32048. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('remark','remark');
  32049. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fixed_variant','fixed_variant');
  32050. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_dna_contact','polypeptide_dna_contact');
  32051. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('codon','codon');
  32052. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_23s','rrna_23s');
  32053. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_gain_of_function_variant','polypeptide_gain_of_function_variant');
  32054. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna','mrna');
  32055. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glycyl_trna','glycyl_trna');
  32056. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyanelle_sequence','cyanelle_sequence');
  32057. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_independently_known','cds_independently_known');
  32058. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insulator','insulator');
  32059. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('positive_sense_ssrna_viral_sequence','positive_sense_ssrna_viral_sequence');
  32060. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sticky_end_restriction_enzyme_cleavage_site','sticky_end_restriction_enzyme_cleavage_site');
  32061. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('expressed_sequence_match','expressed_sequence_match');
  32062. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('possible_assembly_error','possible_assembly_error');
  32063. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_snorna','u3_snorna');
  32064. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_manganese_ion_contact_site','polypeptide_manganese_ion_contact_site');
  32065. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h4k16_acylation_site','h4k16_acylation_site');
  32066. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_to_t_transversion','g_to_t_transversion');
  32067. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_feature_of_rearranged_gene','recombination_feature_of_rearranged_gene');
  32068. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_coding_exon_coding_region','three_prime_coding_exon_coding_region');
  32069. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_primary_transcript','tmrna_primary_transcript');
  32070. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single_stranded_cdna','single_stranded_cdna');
  32071. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimentally_determined','experimentally_determined');
  32072. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_exon','pseudogenic_exon');
  32073. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u2_intron','u2_intron');
  32074. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome','chromosome');
  32075. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_alternately_spliced_transcripts','encodes_alternately_spliced_transcripts');
  32076. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aberrant_processed_transcript','aberrant_processed_transcript');
  32077. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_change_of_translational_product_variant','complex_change_of_translational_product_variant');
  32078. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gna','gna');
  32079. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dsra_rna','dsra_rna');
  32080. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intron_domain','intron_domain');
  32081. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_predicted','cds_predicted');
  32082. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_asparagine','modified_l_asparagine');
  32083. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inframe_variant','inframe_variant');
  32084. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_nonamer','five_prime_d_nonamer');
  32085. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl2_acceptor_site','sl2_acceptor_site');
  32086. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_localization_variant','polypeptide_localization_variant');
  32087. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dce_si','dce_si');
  32088. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna_primary_transcript','snrna_primary_transcript');
  32089. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translocation','translocation');
  32090. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k27_methylation_site','h3k27_methylation_site');
  32091. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_phenylalanine','modified_l_phenylalanine');
  32092. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lincrna','lincrna');
  32093. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_valine','modified_l_valine');
  32094. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('yac','yac');
  32095. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('signal_peptide','signal_peptide');
  32096. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_ltr_region','r_ltr_region');
  32097. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna_gene','srp_rna_gene');
  32098. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('elongated_polypeptide_n_terminal','elongated_polypeptide_n_terminal');
  32099. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_hotspot','recombination_hotspot');
  32100. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_c_cluster','v_dj_c_cluster');
  32101. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('viral_sequence','viral_sequence');
  32102. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_terminal_inverted_repeat','five_prime_terminal_inverted_repeat');
  32103. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxycarbonylmethyl_two_thiouridine','five_mcm_2_thiouridine');
  32104. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited','edited');
  32105. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('breu_motif','breu_motif');
  32106. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_start','coding_start');
  32107. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k9_monomethylation_site','h3k9_monomethylation_site');
  32108. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_utr','three_prime_utr');
  32109. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dpe1_motif','dpe1_motif');
  32110. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_tyrosine','modified_l_tyrosine');
  32111. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_j_c_cluster','v_d_j_c_cluster');
  32112. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_histone_methylation','silenced_by_histone_methylation');
  32113. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_inversion','deficient_inversion');
  32114. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decreased_transcript_level_variant','decreased_transcript_level_variant');
  32115. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_thiouridine','two_thiouridine');
  32116. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polyadenylation_variant','polyadenylation_variant');
  32117. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_polymerase_iii_tata_box','rna_polymerase_iii_tata_box');
  32118. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_thio_two_prime_o_methyluridine','two_thio_two_prime_o_methyluridine');
  32119. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k18_acetylation_site','h3k18_acetylation_site');
  32120. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucoplast_sequence','leucoplast_sequence');
  32121. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds','cds');
  32122. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_signal_sequence','polya_signal_sequence');
  32123. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('micronuclear_sequence','micronuclear_sequence');
  32124. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamyl_trna','glutamyl_trna');
  32125. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k27_monomethylation_site','h3k27_monomethylation_site');
  32126. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_2_frameshift_variant','minus_2_frameshift_variant');
  32127. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna_gene','strna_gene');
  32128. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paternally_imprinted_gene','paternally_imprinted_gene');
  32129. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_chromosome','rna_chromosome');
  32130. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ndm3_motif','ndm3_motif');
  32131. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u1_snrna','u1_snrna');
  32132. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_hydroxymethylcytidine','five_hydroxymethylcytidine');
  32133. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_feature','recombination_feature');
  32134. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_disjoint_polypeptides','encodes_disjoint_polypeptides');
  32135. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated','post_translationally_regulated');
  32136. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_fusion_gene','engineered_fusion_gene');
  32137. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_recombination_signal_sequence','three_prime_d_recombination_signal_sequence');
  32138. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intermediate','intermediate');
  32139. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_calcium_ion_contact_site','polypeptide_calcium_ion_contact_site');
  32140. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('syntenic_region','syntenic_region');
  32141. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('variant_collection','variant_collection');
  32142. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_splice_donor','cryptic_splice_donor');
  32143. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assembly_error_correction','assembly_error_correction');
  32144. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sugar_edge_base_pair','sugar_edge_base_pair');
  32145. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_gene','engineered_foreign_gene');
  32146. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k4_monomethylation_site','h3k4_monomethylation_site');
  32147. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_acetyl_2_prime_o_methylcytidine','n4_acetyl_2_prime_o_methylcytidine');
  32148. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('predicted_by_ab_initio_computation','predicted_by_ab_initio_computation');
  32149. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_secondary_structure','polypeptide_secondary_structure');
  32150. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ncrna_gene','ncrna_gene');
  32151. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_junction_loop','rna_junction_loop');
  32152. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('haplotype_block','haplotype_block');
  32153. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oriv','oriv');
  32154. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptide_collection','peptide_collection');
  32155. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ambisense_ssrna_viral_sequence','ambisense_ssrna_viral_sequence');
  32156. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('morpholino_oligo','morpholino_oligo');
  32157. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('centromere','centromere');
  32158. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epigenetically_modified_gene','epigenetically_modified_gene');
  32159. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_inversion','chromosomal_inversion');
  32160. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_35_signal','minus_35_signal');
  32161. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_two_prime_o_dimethyluridine','three_two_prime_o_dimethyluridine');
  32162. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('four_thiouridine','four_thiouridine');
  32163. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcription_end_site','transcription_end_site');
  32164. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pirna_gene','pirna_gene');
  32165. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pre_mirna','pre_mirna');
  32166. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cysteinyl_trna','cysteinyl_trna');
  32167. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_left_handed_three','catmat_left_handed_three');
  32168. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_splice_acceptor','cryptic_splice_acceptor');
  32169. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('schellmann_loop_seven','schellmann_loop_seven');
  32170. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_j_c_cluster','v_vdj_j_c_cluster');
  32171. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element_insertion_site','transposable_element_insertion_site');
  32172. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translocation_element','translocation_element');
  32173. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_primary_transcript_region','mirna_primary_transcript_region');
  32174. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orphan_cds','orphan_cds');
  32175. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic_mrna','monocistronic_mrna');
  32176. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural_transposable_element','natural_transposable_element');
  32177. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('golden_path_fragment','golden_path_fragment');
  32178. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lipoprotein_signal_peptide','lipoprotein_signal_peptide');
  32179. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('arginine','arginine');
  32180. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_double_stranded_rna_chromosome','linear_double_stranded_rna_chromosome');
  32181. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h4k8_acylation site','h4k8_acylation_site');
  32182. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_large_subunit_primary_transcript','rrna_large_subunit_primary_transcript');
  32183. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('irrinv_site','irrinv_site');
  32184. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plastid_sequence','plastid_sequence');
  32185. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('base_call_error_correction','base_call_error_correction');
  32186. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integrated_plasmid','integrated_plasmid');
  32187. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_methionine','modified_l_methionine');
  32188. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_single_stranded_rna_chromosome','linear_single_stranded_rna_chromosome');
  32189. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromoplast_sequence','chromoplast_sequence');
  32190. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proximal_promoter_element','proximal_promoter_element');
  32191. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('contig_read','contig_read');
  32192. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('promoter_trap_construct','promoter_trap_construct');
  32193. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_redefined_as_selenocysteine','stop_codon_redefined_as_selenocysteine');
  32194. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_methylguanosine','seven_methylguanosine');
  32195. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gamma_turn','gamma_turn');
  32196. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna','tmrna');
  32197. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methionyl_trna','methionyl_trna');
  32198. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('synonymous_codon','synonymous_codon');
  32199. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cdna','cdna');
  32200. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl4_acceptor_site','sl4_acceptor_site');
  32201. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclease_binding_site','nuclease_binding_site');
  32202. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uridine_five_oxyacetic_acid_methyl_ester','uridine_five_oxyacetic_acid_methyl_ester');
  32203. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_race_clone','three_prime_race_clone');
  32204. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_double_stranded_dna_chromosome','circular_double_stranded_dna_chromosome');
  32205. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('consensus','consensus');
  32206. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('positively_autoregulated_gene','positively_autoregulated_gene');
  32207. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tss_region','tss_region');
  32208. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_histidine','modified_l_histidine');
  32209. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unitary_pseudogene','unitary_pseudogene');
  32210. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_metal_contact','polypeptide_metal_contact');
  32211. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integron','integron');
  32212. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_loop','d_loop');
  32213. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decayed_exon','decayed_exon');
  32214. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_signal_sequence','recombination_signal_sequence');
  32215. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_inosine','modified_inosine');
  32216. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_three_prime_overlap','three_prime_three_prime_overlap');
  32217. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_j_cluster','v_j_cluster');
  32218. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_five_prime_overlap','three_prime_five_prime_overlap');
  32219. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_regulatory_region','recombination_regulatory_region');
  32220. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge_loop','beta_bulge_loop');
  32221. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('restriction_enzyme_cleavage_junction','restriction_enzyme_cleavage_junction');
  32222. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('blunt_end_restriction_enzyme_cleavage_junction','blunt_end_restriction_enzyme_cleavage_junction');
  32223. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intergenic_region','intergenic_region');
  32224. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv2_motif','dmv2_motif');
  32225. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrachromosomal_mutation','intrachromosomal_mutation');
  32226. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antisense_rna','antisense_rna');
  32227. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_feature','sequence_feature');
  32228. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_glycinylcarbamoyladenosine','n6_glycinylcarbamoyladenosine');
  32229. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gamma_turn_classic','gamma_turn_classic');
  32230. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_cis_splice_site','three_prime_cis_splice_site');
  32231. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rapd','rapd');
  32232. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_ring_chromosome','inverted_ring_chromosome');
  32233. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cca_tail','cca_tail');
  32234. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_double_stranded_dna_chromosome','linear_double_stranded_dna_chromosome');
  32235. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_five_prime_ltr_region','u5_five_prime_ltr_region');
  32236. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bruno_response_element','bruno_response_element');
  32237. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_to_g_transversion','t_to_g_transversion');
  32238. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_to_a_transversion','c_to_a_transversion');
  32239. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('macronucleus_destined_segment','macronucleus_destined_segment');
  32240. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('distant_three_prime_recoding_signal','distant_three_prime_recoding_signal');
  32241. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pre_edited_mrna','pre_edited_mrna');
  32242. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('p_element','p_element');
  32243. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pac','pac');
  32244. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_fusion','gene_fusion');
  32245. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('base','base');
  32246. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('codon_redefined','codon_redefined');
  32247. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic_mrna','polycistronic_mrna');
  32248. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('codon_variant','codon_variant');
  32249. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxycarbonylmethyl_two_prime_o_methyluridine','five_methoxycarbonylmethyl_two_prime_o_methyluridine');
  32250. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('match','match');
  32251. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_stop_codon_read_through','gene_with_stop_codon_read_through');
  32252. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asparaginyl_trna','asparaginyl_trna');
  32253. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('threonyl_trna','threonyl_trna');
  32254. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_five_prime_ltr_region','u3_five_prime_ltr_region');
  32255. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_ltr','five_prime_ltr');
  32256. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_gene','vj_gene');
  32257. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rho_dependent_bacterial_terminator','rho_dependent_bacterial_terminator');
  32258. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_methylguanosine','n2_methylguanosine');
  32259. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_flanking_region','three_prime_flanking_region');
  32260. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomically_contaminated_cdna_clone','genomically_contaminated_cdna_clone');
  32261. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_guide_sequence','internal_guide_sequence');
  32262. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_target_site','mirna_target_site');
  32263. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_three_prime_ltr_region','u5_three_prime_ltr_region');
  32264. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('undermodified_hydroxywybutosine','undermodified_hydroxywybutosine');
  32265. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('introgressed_chromosome_region','introgressed_chromosome_region');
  32266. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translationally_frameshifted','translationally_frameshifted');
  32267. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_spliced','trans_spliced');
  32268. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylation_guide_snorna_primary_transcript','methylation_guide_snorna_primary_transcript');
  32269. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucine','leucine');
  32270. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_deletion','chromosomal_deletion');
  32271. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_isopentenylaminomethyl_uridine','five_isopentenylaminomethyl_uridine');
  32272. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon','stop_codon');
  32273. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_threonyl_carbamoyladenosine','two_methylthio_n6_threonyl_carbamoyladenosine');
  32274. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decreased_polyadenylation_variant','decreased_polyadenylation_variant');
  32275. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('biochemical_region_of_peptide','biochemical_region_of_peptide');
  32276. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interband','interband');
  32277. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_constraint_sequence','dna_constraint_sequence');
  32278. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone_insert','clone_insert');
  32279. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snp','snp');
  32280. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromoplast_chromosome','chromoplast_chromosome');
  32281. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_25s','rrna_25s');
  32282. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tata_box','tata_box');
  32283. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plastid_gene','plastid_gene');
  32284. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_left_handed_type_one','asx_turn_left_handed_type_one');
  32285. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_uridine','modified_uridine');
  32286. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dce_sii','dce_sii');
  32287. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intramembrane_polypeptide_region','intramembrane_polypeptide_region');
  32288. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysyl_trna','lysyl_trna');
  32289. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rr_tract','rr_tract');
  32290. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_primary_transcript_region','rrna_primary_transcript_region');
  32291. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h4k20_monomethylation_site','h4k20_monomethylation_site');
  32292. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ds_dna_viral_sequence','ds_dna_viral_sequence');
  32293. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alternatively_spliced_transcript','alternatively_spliced_transcript');
  32294. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_copper_ion_contact_site','polypeptide_copper_ion_contact_site');
  32295. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna_encoding','scrna_encoding');
  32296. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_duplication','chromosomal_duplication');
  32297. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone','clone');
  32298. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_isoleucine','modified_l_isoleucine');
  32299. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_subarray','gene_subarray');
  32300. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hetero_compound_chromosome','hetero_compound_chromosome');
  32301. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic_transcript','dicistronic_transcript');
  32302. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inactive_ligand_binding_site','inactive_ligand_binding_site');
  32303. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_dna_methylation','silenced_by_dna_methylation');
  32304. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl6_acceptor_site','sl6_acceptor_site');
  32305. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_loop','t_loop');
  32306. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('targeting_vector','targeting_vector');
  32307. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_thiocytidine','two_thiocytidine');
  32308. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_serine','modified_l_serine');
  32309. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna','srp_rna');
  32310. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_repeat_recoding_signal','three_prime_repeat_recoding_signal');
  32311. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rate_of_transcription_variant','rate_of_transcription_variant');
  32312. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylguanosine','two_prime_o_methylguanosine');
  32313. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_binding_motif','polypeptide_binding_motif');
  32314. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_rearranged_vertebrate_immune_system_gene','recombinationally_rearranged_vertebrate_immune_system_gene');
  32315. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_box','a_box');
  32316. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splicing_variant','splicing_variant');
  32317. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methylguanosine','one_methylguanosine');
  32318. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_glutamine','modified_l_glutamine');
  32319. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant','sequence_variant');
  32320. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_length_variation','sequence_length_variation');
  32321. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna_encoding','strna_encoding');
  32322. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_1_frameshift','plus_1_frameshift');
  32323. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('topologically_defined_region','topologically_defined_region');
  32324. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_cds','edited_cds');
  32325. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_histone_modification','gene_silenced_by_histone_modification');
  32326. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('e_box_motif','e_box_motif');
  32327. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paternal_uniparental_disomy','paternal_uniparental_disomy');
  32328. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('small_subunit_rrna','small_subunit_rrna');
  32329. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dnasei_hypersensitive_site','dnasei_hypersensitive_site');
  32330. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_j_c_cluster','v_d_dj_j_c_cluster');
  32331. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('compound_chromosome_arm','compound_chromosome_arm');
  32332. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('score','score');
  32333. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('feature_attribute','feature_attribute');
  32334. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_match','protein_match');
  32335. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('downstream_gene_variant','downstream_gene_variant');
  32336. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl10_accceptor_site','sl10_accceptor_site');
  32337. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_variation','chromosome_variation');
  32338. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_threonine_motif','serine_threonine_motif');
  32339. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_box_type_1','a_box_type_1');
  32340. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allelically_excluded','allelically_excluded');
  32341. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_aneuploid','assortment_derived_aneuploid');
  32342. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rare_variant','rare_variant');
  32343. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_isopentenylaminomethyl_two_prime_o_methyluridine','five_isopentenylaminomethyl_two_prime_o_methyluridine');
  32344. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regional_centromere_central_core','regional_centromere_central_core');
  32345. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gna_oligo','gna_oligo');
  32346. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nc_transcript_variant','nc_transcript_variant');
  32347. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('copy_number_variation','copy_number_variation');
  32348. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced','silenced');
  32349. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_methylcytidine','three_methylcytidine');
  32350. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dexstrosynaptic_chromosome','dexstrosynaptic_chromosome');
  32351. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_insertional_duplication','inverted_insertional_duplication');
  32352. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue_mini_gene','rescue_mini_gene');
  32353. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_left_handed_four','catmat_left_handed_four');
  32354. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alternate_sequence_site','alternate_sequence_site');
  32355. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_iron_ion_contact_site','polypeptide_iron_ion_contact_site');
  32356. 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');
  32357. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_molybdenum_ion_contact_site','polypeptide_molybdenum_ion_contact_site');
  32358. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phenylalanine_trna_primary_transcript','phe_trna_primary_transcript');
  32359. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decreased_translational_product_level','decreased_translational_product_level');
  32360. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_aca_box_snorna_primary_transcript','h_aca_box_snorna_primary_transcript');
  32361. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_gna','r_gna');
  32362. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_sequence_variant','coding_sequence_variant');
  32363. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_partial_loss_of_function','polypeptide_partial_loss_of_function');
  32364. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_restriction_enzyme_junction','five_prime_restriction_enzyme_junction');
  32365. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrachromosomal_transposition','intrachromosomal_transposition');
  32366. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylated_a','methylated_a');
  32367. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_16s','rrna_16s');
  32368. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('disease_causing_variant','disease_causing_variant');
  32369. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_methylcytidine','n4_methylcytidine');
  32370. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('riboswitch','riboswitch');
  32371. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('duplicated_pseudogene','duplicated_pseudogene');
  32372. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_duplication','assortment_derived_duplication');
  32373. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_regulatory_element','chromosomal_regulatory_element');
  32374. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_five_prime_overlap','five_prime_five_prime_overlap');
  32375. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_function_variant','polypeptide_function_variant');
  32376. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribozymic','ribozymic');
  32377. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_bipartite_deficiency','inversion_derived_bipartite_deficiency');
  32378. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_genomic_contamination','invalidated_by_genomic_contamination');
  32379. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('variant_genome','variant_genome');
  32380. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_j_cluster','vj_j_cluster');
  32381. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_number_variation','chromosome_number_variation');
  32382. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_attribute','gene_attribute');
  32383. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uag_stop_codon_signal','uag_stop_codon_signal');
  32384. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_match','nucleotide_match');
  32385. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mature_mirna_variant','mature_mirna_variant');
  32386. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_left_handed_type_two','st_turn_left_handed_type_two');
  32387. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epigenetically_modified','epigenetically_modified');
  32388. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_deficiency_plus_duplication','inversion_derived_deficiency_plus_duplication');
  32389. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylaminomethyl_two_selenouridine','five_methylaminomethyl_two_selenouridine');
  32390. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aspartic_acid_trna_primary_transcript','aspartic_acid_trna_primary_transcript');
  32391. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_mt_pseudogene','nuclear_mt_pseudogene');
  32392. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exonic_splice_enhancer','exonic_splice_enhancer');
  32393. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u4_snrna','u4_snrna');
  32394. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('csrb_rsmb_rna','csrb_rsmb_rna');
  32395. 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');
  32396. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('crispr','crispr');
  32397. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna_gene','snorna_gene');
  32398. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_junction','trans_splice_junction');
  32399. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('flanking_three_prime_quadruplet_recoding_signal','flanking_three_prime_quadruplet_recoding_signal');
  32400. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_j_cluster','v_vdj_j_cluster');
  32401. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cassette_pseudogene','cassette_pseudogene');
  32402. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('incomplete_terminal_codon_variant','incomplete_terminal_codon_variant');
  32403. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_histone_modification','silenced_by_histone_modification');
  32404. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proviral_gene','proviral_gene');
  32405. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxyhydroxymethyl_uridine','five_carboxyhydroxymethyl_uridine');
  32406. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mt_gene','mt_gene');
  32407. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single_stranded_rna_chromosome','single_stranded_rna_chromosome');
  32408. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoding_stimulatory_region','recoding_stimulatory_region');
  32409. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_taurinomethyluridine','five_taurinomethyluridine');
  32410. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_threonine','modified_l_threonine');
  32411. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_cluster','v_d_dj_cluster');
  32412. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('synthetic_oligo','synthetic_oligo');
  32413. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('purine_to_pyrimidine_transversion','purine_to_pyrimidine_transversion');
  32414. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('editing_variant','editing_variant');
  32415. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antiparallel_beta_strand','antiparallel_beta_strand');
  32416. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('central_hydrophobic_region_of_signal_peptide','central_hydrophobic_region_of_signal_peptide');
  32417. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integrated_mobile_genetic_element','integrated_mobile_genetic_element');
  32418. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('parallel_beta_strand','parallel_beta_strand');
  32419. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_cluster','v_dj_cluster');
  32420. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dre_motif','dre_motif');
  32421. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_ltr_retrotransposon','non_ltr_retrotransposon');
  32422. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_gna_oligo','r_gna_oligo');
  32423. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autoregulated','autoregulated');
  32424. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_lysine','modified_l_lysine');
  32425. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bac_end','bac_end');
  32426. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrrolysine','pyrrolysine');
  32427. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('high_quality_draft','high_quality_draft');
  32428. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysine','lysine');
  32429. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('elongated_polypeptide','elongated_polypeptide');
  32430. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unique_variant','unique_variant');
  32431. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_protein_contact','protein_protein_contact');
  32432. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_attribute','inversion_attribute');
  32433. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_binding_site','nucleotide_binding_site');
  32434. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_site','splice_site');
  32435. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_synonymous_codon','non_synonymous_codon');
  32436. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('5kb_downstream_variant','fivekb_downstream_variant');
  32437. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_translocation','chromosomal_translocation');
  32438. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epitope','epitope');
  32439. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allele','allele');
  32440. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_n4_2_prime_o_trimethylcytidine','n4_n4_2_prime_o_trimethylcytidine');
  32441. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_ltr_region','u5_ltr_region');
  32442. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paired_end_fragment','paired_end_fragment');
  32443. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue_gene','rescue_gene');
  32444. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgenic_transposable_element','transgenic_transposable_element');
  32445. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_conserved_region','polypeptide_conserved_region');
  32446. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sts','sts');
  32447. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_to_c_transversion','a_to_c_transversion');
  32448. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('class_ii_rna','class_ii_rna');
  32449. 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');
  32450. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unedited_region','unedited_region');
  32451. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lambda_vector','lambda_vector');
  32452. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene','gene');
  32453. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alanyl_trna','alanyl_trna');
  32454. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('amino_acid_substitution','amino_acid_substitution');
  32455. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('virtual_sequence','virtual_sequence');
  32456. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_iib_intron','group_iib_intron');
  32457. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retrotransposed','retrotransposed');
  32458. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_minus_2_frameshift','mrna_with_minus_2_frameshift');
  32459. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polymer_attribute','polymer_attribute');
  32460. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autosynaptic_chromosome','autosynaptic_chromosome');
  32461. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptide_helix','peptide_helix');
  32462. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('partially_processed_cdna_clone','partially_processed_cdna_clone');
  32463. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rst_match','rst_match');
  32464. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paternally_imprinted','paternally_imprinted');
  32465. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('predicted_gene','predicted_gene');
  32466. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('x_element_combinatorial_repeat','x_element_combinatorial_repeat');
  32467. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('robertsonian_fusion','robertsonian_fusion');
  32468. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylpseudouridine','two_prime_o_methylpseudouridine');
  32469. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pericentric_inversion','pericentric_inversion');
  32470. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aspartyl_trna','aspartyl_trna');
  32471. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna','strna');
  32472. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_intron','three_prime_intron');
  32473. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear','linear');
  32474. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_nonamer','j_nonamer');
  32475. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_to_t_transversion','a_to_t_transversion');
  32476. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('idna','idna');
  32477. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_n2_7_trimethylguanosine','n2_n2_7_trimethylguanosine');
  32478. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_chromosomal_mutation','complex_chromosomal_mutation');
  32479. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_deficiency_plus_aneuploid','inversion_derived_deficiency_plus_aneuploid');
  32480. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k4_methylation_site','h3k4_methylation_site');
  32481. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asymmetric_rna_internal_loop','asymmetric_rna_internal_loop');
  32482. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deletion','deletion');
  32483. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k79_monomethylation_site','h3k79_monomethylation_site');
  32484. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyclic_translocation','cyclic_translocation');
  32485. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ars','ars');
  32486. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutaminyl_trna','glutaminyl_trna');
  32487. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allopolyploid','allopolyploid');
  32488. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('replicon','replicon');
  32489. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylcytidine','two_prime_o_methylcytidine');
  32490. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regional_centromere','regional_centromere');
  32491. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_left_handed_type_one','st_turn_left_handed_type_one');
  32492. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paralogous_region','paralogous_region');
  32493. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mature_transcript_region','mature_transcript_region');
  32494. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_frameshift','mrna_with_frameshift');
  32495. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reference_genome','reference_genome');
  32496. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unoriented_interchromosomal_transposition','unoriented_interchromosomal_transposition');
  32497. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_j_cluster','d_dj_j_cluster');
  32498. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maxicircle_gene','maxicircle_gene');
  32499. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_right_handed_type_two','st_turn_right_handed_type_two');
  32500. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna_encoding','snrna_encoding');
  32501. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('annotation_directed_improved_draft','annotation_directed_improved_draft');
  32502. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_spacer','five_prime_d_spacer');
  32503. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('read','read');
  32504. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('arginine_trna_primary_transcript','arg_trna_primary_transcript');
  32505. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oligo_u_tail','oligo_u_tail');
  32506. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoding_pseudoknot','recoding_pseudoknot');
  32507. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylaminomethyl_two_thiouridine','five_mam_2_thiouridine');
  32508. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic','monocistronic');
  32509. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('3d_polypeptide_structure_variant','threed_polypeptide_structure_variant');
  32510. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transmembrane_polypeptide_region','transmembrane_polypeptide_region');
  32511. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_processing_variant','transcript_processing_variant');
  32512. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vector_replicon','vector_replicon');
  32513. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maternal_uniparental_disomy','maternal_uniparental_disomy');
  32514. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrosequenced_read','pyrosequenced_read');
  32515. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_site_variant','splice_site_variant');
  32516. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_magnesium_ion_contact_site','polypeptide_magnesium_ion_contact_site');
  32517. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic_transcript','polycistronic_transcript');
  32518. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_site','polya_site');
  32519. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_variation_attribute','chromosomal_variation_attribute');
  32520. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('free_duplication','free_duplication');
  32521. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_structure_variation','chromosome_structure_variation');
  32522. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_rna_base_feature','modified_rna_base_feature');
  32523. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mutated_variant_site','mutated_variant_site');
  32524. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gaga_motif','gaga_motif');
  32525. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('centromeric_repeat','centromeric_repeat');
  32526. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_gene','rrna_gene');
  32527. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interchromosomal_mutation','interchromosomal_mutation');
  32528. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('prophage','prophage');
  32529. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('syntenic','syntenic');
  32530. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_repetitive_element','engineered_foreign_repetitive_element');
  32531. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translated_nucleotide_match','translated_nucleotide_match');
  32532. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_variant','exon_variant');
  32533. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_aca_box_snorna','h_aca_box_snorna');
  32534. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vault_rna','vault_rna');
  32535. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orphan','orphan');
  32536. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_single_stranded_dna_chromosome','linear_single_stranded_dna_chromosome');
  32537. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('telomeric_repeat','telomeric_repeat');
  32538. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_greater_than_1_polypeptide','encodes_greater_than_1_polypeptide');
  32539. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('atti_site','atti_site');
  32540. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_start_codon_cug','gene_with_start_codon_cug');
  32541. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_histone_deacetylation','silenced_by_histone_deacetylation');
  32542. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reagent','reagent');
  32543. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_fission','chromosome_fission');
  32544. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ct_gene','ct_gene');
  32545. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('capped_primary_transcript','capped_primary_transcript');
  32546. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylinosine','methylinosine');
  32547. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_spacer','j_spacer');
  32548. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamine','glutamine');
  32549. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_guanosine','modified_guanosine');
  32550. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_7_dimethylguanosine','n2_7_dimethylguanosine');
  32551. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k79_trimethylation_site','h3k79_trimethylation_site');
  32552. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_heptamer','three_prime_d_heptamer');
  32553. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_cdna_clone','invalidated_cdna_clone');
  32554. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminator','terminator');
  32555. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stem_loop','stem_loop');
  32556. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_utr_intron','five_prime_utr_intron');
  32557. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unoriented_intrachromosomal_transposition','unoriented_intrachromosomal_transposition');
  32558. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_band','chromosome_band');
  32559. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mini_exon_donor_rna','mini_exon_donor_rna');
  32560. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aneuploid','aneuploid');
  32561. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methyl_2_thiouridine','five_methyl_2_thiouridine');
  32562. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_dna_methylation','gene_silenced_by_dna_methylation');
  32563. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_transposable_element_gene','engineered_foreign_transposable_element_gene');
  32564. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('processed_pseudogene','processed_pseudogene');
  32565. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supercontig','supercontig');
  32566. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_encoding','trna_encoding');
  32567. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reciprocal_chromosomal_translocation','reciprocal_chromosomal_translocation');
  32568. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tasirna','tasirna');
  32569. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hoogsteen_base_pair','hoogsteen_base_pair');
  32570. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regional_centromere_inner_repeat_region','regional_centromere_inner_repeat_region');
  32571. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('yac_end','yac_end');
  32572. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('purine_transition','purine_transition');
  32573. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_d_box_snorna','c_d_box_snorna');
  32574. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna_primary_transcript','snorna_primary_transcript');
  32575. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_cluster','v_vj_cluster');
  32576. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intronic_regulatory_region','intronic_regulatory_region');
  32577. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_ltr_region','u3_ltr_region');
  32578. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attenuator','attenuator');
  32579. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_noncoding_exon','three_prime_noncoding_exon');
  32580. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u14_snorna_primary_transcript','u14_snorna_primary_transcript');
  32581. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_gene_recombination_feature','d_gene_recombination_feature');
  32582. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mte','mte');
  32583. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gcvb_rna','gcvb_rna');
  32584. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rst','rst');
  32585. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('operator','operator');
  32586. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ring_chromosome','ring_chromosome');
  32587. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ndm2_motif','ndm2_motif');
  32588. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k4_dimethylation_site','h3k4_dimethylation_site');
  32589. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('selenocysteine_trna_primary_transcript','selenocysteine_trna_primary_transcript');
  32590. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_transcript_feature','edited_transcript_feature');
  32591. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_redefined_as_pyrrolysine','stop_codon_redefined_as_pyrrolysine');
  32592. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homo_compound_chromosome','homo_compound_chromosome');
  32593. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foreign_gene','foreign_gene');
  32594. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('four_demethylwyosine','four_demethylwyosine');
  32595. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('guide_rna','guide_rna');
  32596. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_methylpseudouridine','three_methylpseudouridine');
  32597. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_aneuploid_chromosome','inversion_derived_aneuploid_chromosome');
  32598. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decreased_transcript_stability_variant','decreased_transcript_stability_variant');
  32599. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lincrna_gene','lincrna_gene');
  32600. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('specific_recombination_site','specific_recombination_site');
  32601. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inosine','inosine');
  32602. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foreign_transposable_element','foreign_transposable_element');
  32603. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_gene','d_gene');
  32604. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bipartite_inversion','bipartite_inversion');
  32605. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_plasmid','engineered_plasmid');
  32606. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_group_regulatory_region','gene_group_regulatory_region');
  32607. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vd_gene','vd_gene');
  32608. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulatory_region','regulatory_region');
  32609. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl11_acceptor_site','sl11_acceptor_site');
  32610. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('guide_rna_region','guide_rna_region');
  32611. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_base','modified_base');
  32612. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('elongated_polypeptide_c_terminal','elongated_polypeptide_c_terminal');
  32613. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_ten_helix','three_ten_helix');
  32614. 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');
  32615. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sarcin_like_rna_motif','sarcin_like_rna_motif');
  32616. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_1_translationally_frameshifted','minus_1_translationally_frameshifted');
  32617. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_alanine','modified_l_alanine');
  32618. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_cum_translocation','inversion_cum_translocation');
  32619. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tag','tag');
  32620. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uninverted_interchromosomal_transposition','uninvert_inter_transposition');
  32621. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_gene','cryptic_gene');
  32622. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pericentric','pericentric');
  32623. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgenic','transgenic');
  32624. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomic_clone','genomic_clone');
  32625. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_breakage_sequence','chromosome_breakage_sequence');
  32626. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_j_cluster','d_j_cluster');
  32627. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_a_one','beta_turn_type_six_a_one');
  32628. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribosome_entry_site','ribosome_entry_site');
  32629. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('left_handed_peptide_helix','left_handed_peptide_helix');
  32630. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_aptamer','dna_aptamer');
  32631. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('i_motif','i_motif');
  32632. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_intrachromosomal_transposition','d_intrachr_transposition');
  32633. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single_stranded_dna_chromosome','single_stranded_dna_chromosome');
  32634. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylated_c','methylated_c');
  32635. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone_end','clone_end');
  32636. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ligation_based_read','ligation_based_read');
  32637. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('expressed_sequence_assembly','expressed_sequence_assembly');
  32638. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_two_prime_o_dimethyluridine','five_two_prime_o_dimethyluridine');
  32639. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histidine_trna_primary_transcript','histidine_trna_primary_transcript');
  32640. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orthologous_region','orthologous_region');
  32641. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('valine_trna_primary_transcript','valine_trna_primary_transcript');
  32642. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('operon_member','operon_member');
  32643. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('missense_codon','missense_codon');
  32644. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bacterial_rnapol_promoter_sigma54','bacterial_rnapol_promoter_sigma54');
  32645. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_group','gene_group');
  32646. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('small_regulatory_ncrna','small_regulatory_ncrna');
  32647. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrachromosomal_duplication','intrachromosomal_duplication');
  32648. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_conservative_amino_acid_substitution','non_conservative_amino_acid_substitution');
  32649. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uaa_stop_codon_signal','uaa_stop_codon_signal');
  32650. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k36_methylation_site','h3k36_methylation_site');
  32651. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_variant','transcript_variant');
  32652. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_2_frameshift','minus_2_frameshift');
  32653. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('organelle_sequence','organelle_sequence');
  32654. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('initiator_codon_change','initiator_codon_change');
  32655. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_prophage','cryptic_prophage');
  32656. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('micf_rna','micf_rna');
  32657. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('direct_tandem_duplication','direct_tandem_duplication');
  32658. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conserved','conserved');
  32659. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('telomerase_rna','telomerase_rna');
  32660. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u6atac_snrna','u6atac_snrna');
  32661. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attb_site','attb_site');
  32662. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_array_member','gene_array_member');
  32663. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polyadenylated_mrna','polyadenylated_mrna');
  32664. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('symbiosis_island','symbiosis_island');
  32665. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polymorphic_variant','polymorphic_variant');
  32666. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_junction','splice_junction');
  32667. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fingerprint_map','fingerprint_map');
  32668. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single_strand_restriction_enzyme_cleavage_site','single_strand_restriction_enzyme_cleavage_site');
  32669. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wyosine','wyosine');
  32670. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uga_stop_codon_signal','uga_stop_codon_signal');
  32671. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_24_signal','minus_24_signal');
  32672. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cytoplasmic_polypeptide_region','cytoplasmic_polypeptide_region');
  32673. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h4k_acylation_region','h4k_acylation_region');
  32674. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_two_prime_o_dimethylguanosine','one_two_prime_o_dimethylguanosine');
  32675. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rh_map','rh_map');
  32676. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_dna_modification','silenced_by_dna_modification');
  32677. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inactive_catalytic_site','inactive_catalytic_site');
  32678. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anticodon','anticodon');
  32679. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_deazaguanosine','seven_deazaguanosine');
  32680. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asparagine','asparagine');
  32681. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('probe','probe');
  32682. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('defective_conjugative_transposon','defective_conjugative_transposon');
  32683. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('archaeosine','archaeosine');
  32684. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('molecular_contact_region','molecular_contact_region');
  32685. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nested_repeat','nested_repeat');
  32686. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('membrane_structure','membrane_structure');
  32687. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('contig_collection','contig_collection');
  32688. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tetraloop','tetraloop');
  32689. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_conserved_region','coding_conserved_region');
  32690. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('long_terminal_repeat','long_terminal_repeat');
  32691. 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');
  32692. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('untranslated_region_polycistronic_mrna','untranslated_region_polycistronic_mrna');
  32693. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucine_trna_primary_transcript','leucine_trna_primary_transcript');
  32694. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('high_identity_region','high_identity_region');
  32695. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_single_stranded_dna_chromosome','circular_single_stranded_dna_chromosome');
  32696. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_rim_localization_signal','nuclear_rim_localization_signal');
  32697. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isoleucyl_trna','isoleucyl_trna');
  32698. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion_breakpoint','insertion_breakpoint');
  32699. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('5_prime_utr_variant','five_prime_utr_variant');
  32700. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgene','transgene');
  32701. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_region','mrna_region');
  32702. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_attribute','transcript_attribute');
  32703. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_threonine_staple_motif','serine_threonine_staple_motif');
  32704. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_coding','protein_coding');
  32705. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer_bound_by_factor','enhancer_bound_by_factor');
  32706. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded_by_translational_bypass','recoded_by_translational_bypass');
  32707. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('operon','operon');
  32708. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic_transcript','monocistronic_transcript');
  32709. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reciprocal','reciprocal');
  32710. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polyadenylated','polyadenylated');
  32711. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unigene_cluster','unigene_cluster');
  32712. 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');
  32713. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_cassette_member','gene_cassette_member');
  32714. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_read_through','stop_codon_read_through');
  32715. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_transcript_with_translational_frameshift','gene_with_transcript_with_translational_frameshift');
  32716. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('variant_quality','variant_quality');
  32717. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mnp','mnp');
  32718. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamic_acid','glutamic_acid');
  32719. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('y_prime_element','y_prime_element');
  32720. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn','beta_turn');
  32721. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pathogenic_island','pathogenic_island');
  32722. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ust_match','ust_match');
  32723. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_bound_by_protein','transcript_bound_by_protein');
  32724. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_methyladenosine','n6_methyladenosine');
  32725. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyanelle_chromosome','cyanelle_chromosome');
  32726. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orit','orit');
  32727. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maternally_imprinted','maternally_imprinted');
  32728. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chloroplast_chromosome','chloroplast_chromosome');
  32729. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minicircle_gene','minicircle_gene');
  32730. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_catalytic_motif','polypeptide_catalytic_motif');
  32731. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter_type_2','rnapol_iii_promoter_type_2');
  32732. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('no_output','no_output');
  32733. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interior_coding_exon','interior_coding_exon');
  32734. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_taurinomethyl_two_thiouridine','five_taurinomethyl_two_thiouridine');
  32735. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k9_trimethylation_site','h3k9_trimethylation_site');
  32736. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_secondary_structure_variant','transcript_secondary_structure_variant');
  32737. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide','polypeptide');
  32738. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_donor_5th_base_variant','splice_donor_5th_base_variant');
  32739. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polymerase_synthesis_read','polymerase_synthesis_read');
  32740. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer_binding_site','enhancer_binding_site');
  32741. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_to_protein_binding_site','nucleotide_to_protein_binding_site');
  32742. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_left_handed_type_two','beta_turn_left_handed_type_two');
  32743. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_genomic_polya_primed_cdna','invalidated_by_genomic_polya_primed_cdna');
  32744. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_edited_transcript','gene_with_edited_transcript');
  32745. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv1_motif','dmv1_motif');
  32746. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_12_signal','minus_12_signal');
  32747. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_modified_region','post_translationally_modified_region');
  32748. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proline','proline');
  32749. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('flanking_region','flanking_region');
  32750. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_isopentenyladenosine','two_methylthio_n6_isopentenyladenosine');
  32751. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypyrimidine_tract','polypyrimidine_tract');
  32752. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxyuridine','five_methoxyuridine');
  32753. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_to_gene_feature','gene_to_gene_feature');
  32754. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bac_cloned_genomic_insert','bac_cloned_genomic_insert');
  32755. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_heptamer','j_heptamer');
  32756. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_ust','three_prime_ust');
  32757. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_2_prime_o_dimethyladenosine','n6_2_prime_o_dimethyladenosine');
  32758. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_site','trans_splice_site');
  32759. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('de_novo_variant','de_novo_variant');
  32760. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_rescue_region','engineered_rescue_region');
  32761. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleomorph_gene','nucleomorph_gene');
  32762. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_attribute','mrna_attribute');
  32763. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_three_prime_overlap','five_prime_three_prime_overlap');
  32764. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_i_intron','group_i_intron');
  32765. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_cluster','d_cluster');
  32766. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('open_chromatin_region','open_chromatin_region');
  32767. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomic_dna','genomic_dna');
  32768. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inside_intron','inside_intron');
  32769. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hammerhead_ribozyme','hammerhead_ribozyme');
  32770. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_heptamer','five_prime_d_heptamer');
  32771. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intronic_splice_enhancer','intronic_splice_enhancer');
  32772. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_adenosine','modified_adenosine');
  32773. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethylaminomethyluridine','five_carboxymethylaminomethyluridine');
  32774. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_region','repeat_region');
  32775. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_unit','repeat_unit');
  32776. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double_stranded_dna_chromosome','double_stranded_dna_chromosome');
  32777. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('heritable_phenotypic_marker','heritable_phenotypic_marker');
  32778. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('template_region','template_region');
  32779. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primary_transcript_region','primary_transcript_region');
  32780. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mitochondrial_dna','mitochondrial_dna');
  32781. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_region','transcript_region');
  32782. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_acetylation_site','histone_acetylation_site');
  32783. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribozyme','ribozyme');
  32784. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('matrix_attachment_site','matrix_attachment_site');
  32785. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('imprinted','imprinted');
  32786. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_sequence_variant','polypeptide_sequence_variant');
  32787. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('est','est');
  32788. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_motif','rna_motif');
  32789. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_variation_site','polypeptide_variation_site');
  32790. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('class_i_rna','class_i_rna');
  32791. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oligo','oligo');
  32792. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_signal','stop_codon_signal');
  32793. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hypoploid','hypoploid');
  32794. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exemplar_mrna','exemplar_mrna');
  32795. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimentally_defined_binding_region','experimentally_defined_binding_region');
  32796. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_to_g_transversion','c_to_g_transversion');
  32797. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('active_peptide','active_peptide');
  32798. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mannosyl_queuosine','mannosyl_queuosine');
  32799. 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');
  32800. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('queuosine','queuosine');
  32801. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lna_oligo','lna_oligo');
  32802. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('independently_known','independently_known');
  32803. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proviral_region','proviral_region');
  32804. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('capped','capped');
  32805. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_1_frameshift_variant','minus_1_frameshift_variant');
  32806. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('direction_attribute','direction_attribute');
  32807. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('micronuclear_chromosome','micronuclear_chromosome');
  32808. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogene_by_unequal_crossing_over','pseudogene_by_unequal_crossing_over');
  32809. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_two_prime_o_dimethyladenosine','one_two_prime_o_dimethyladenosine');
  32810. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dpe_motif','dpe_motif');
  32811. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frame_restoring_variant','frame_restoring_variant');
  32812. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seryl_trna','seryl_trna');
  32813. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('structural_variant','structural_variant');
  32814. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulatory_promoter_element','regulatory_promoter_element');
  32815. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integration_excision_site','integration_excision_site');
  32816. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('noncoding_region_of_exon','noncoding_region_of_exon');
  32817. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnase_mrp_rna','rnase_mrp_rna');
  32818. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_export_signal','nuclear_export_signal');
  32819. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxycarbonylmethyluridine','five_methoxycarbonylmethyluridine');
  32820. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_of_single_exon_gene','exon_of_single_exon_gene');
  32821. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_dicistronic_primary_transcript','gene_with_dicistronic_primary_transcript');
  32822. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_secondary_structure','sequence_secondary_structure');
  32823. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bacterial_rnapol_promoter_sigma_70','bacterial_rnapol_promoter_sigma_70');
  32824. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tiling_path','tiling_path');
  32825. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_sequence','nuclear_sequence');
  32826. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('contig','contig');
  32827. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('quality_value','quality_value');
  32828. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('kozak_sequence','kozak_sequence');
  32829. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('population_specific_variant','population_specific_variant');
  32830. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catalytic_residue','catalytic_residue');
  32831. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_site','inversion_site');
  32832. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aspartic_acid','aspartic_acid');
  32833. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dif_site','dif_site');
  32834. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_gene','mirna_gene');
  32835. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('valyl_trna','valyl_trna');
  32836. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_tandem_duplication','inverted_tandem_duplication');
  32837. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cis_regulatory_frameshift_element','cis_regulatory_frameshift_element');
  32838. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minisatellite','minisatellite');
  32839. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assembly_component','assembly_component');
  32840. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('low_complexity_region','low_complexity_region');
  32841. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('morpholino_backbone','morpholino_backbone');
  32842. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('designed_sequence','designed_sequence');
  32843. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_n6_2_prime_o_trimethyladenosine','n6_n6_2_prime_o_trimethyladenosine');
  32844. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_polymerase_promoter','rna_polymerase_promoter');
  32845. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_gene_recombination_feature','v_gene_recombination_feature');
  32846. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethylaminomethyl_two_thiouridine','five_carboxymethylaminomethyl_two_thiouridine');
  32847. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('free_ring_duplication','free_ring_duplication');
  32848. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('point_centromere','point_centromere');
  32849. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic_mrna','dicistronic_mrna');
  32850. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interchromosomal','interchromosomal');
  32851. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uncharacterised_chromosomal_mutation','uncharacterised_chromosomal_mutation');
  32852. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_cis_splice_site','five_prime_cis_splice_site');
  32853. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('octamer_motif','octamer_motif');
  32854. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_overlapping_peptides_different_start','encodes_overlapping_peptides_different_start');
  32855. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ss_rna_viral_sequence','ss_rna_viral_sequence');
  32856. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('indel','indel');
  32857. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic_primary_transcript','dicistronic_primary_transcript');
  32858. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_binding_site','protein_binding_site');
  32859. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic','polycistronic');
  32860. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asparagine_trna_primary_transcript','asparagine_trna_primary_transcript');
  32861. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_enhancer','splice_enhancer');
  32862. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aneuploid_chromosome','aneuploid_chromosome');
  32863. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peroxywybutosine','peroxywybutosine');
  32864. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_aspartic_acid','modified_l_aspartic_acid');
  32865. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_episome','engineered_episome');
  32866. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnai_reagent','rnai_reagent');
  32867. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rasirna','rasirna');
  32868. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_region','tmrna_region');
  32869. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('increased_transcript_level_variant','increased_transcript_level_variant');
  32870. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bacterial_rnapol_promoter','bacterial_rnapol_promoter');
  32871. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mitochondrial_sequence','mitochondrial_sequence');
  32872. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trinucleotide_repeat_microsatellite_feature','trinuc_repeat_microsat');
  32873. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated_by_protein_stability','post_translationally_regulated_by_protein_stability');
  32874. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nc_primary_transcript','nc_primary_transcript');
  32875. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('iron_responsive_element','iron_responsive_element');
  32876. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_j_cluster','v_d_dj_j_cluster');
  32877. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('forward','forward');
  32878. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proviral_location','proviral_location');
  32879. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_binding_site','histone_binding_site');
  32880. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('promoter_element','promoter_element');
  32881. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pse_motif','pse_motif');
  32882. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_eight','beta_turn_type_eight');
  32883. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double','double');
  32884. 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');
  32885. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double_stranded_rna_chromosome','double_stranded_rna_chromosome');
  32886. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_glutamic_acid','modified_l_glutamic_acid');
  32887. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nest_motif','polypeptide_nest_motif');
  32888. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translational_frameshift','translational_frameshift');
  32889. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_terminal_inverted_repeat','three_prime_terminal_inverted_repeat');
  32890. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_trna','pseudogenic_trna');
  32891. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cap','cap');
  32892. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_coding_exon','five_prime_coding_exon');
  32893. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enzymatic','enzymatic');
  32894. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interior_exon','interior_exon');
  32895. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genetic_marker','genetic_marker');
  32896. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_to_g_transition','a_to_g_transition');
  32897. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine','two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine');
  32898. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isre','isre');
  32899. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maternally_imprinted_gene','maternally_imprinted_gene');
  32900. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular','circular');
  32901. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_pseudoknot','h_pseudoknot');
  32902. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intermediate_element','intermediate_element');
  32903. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript','transcript');
  32904. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogene','pseudogene');
  32905. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('direct_repeat','direct_repeat');
  32906. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bacterial_terminator','bacterial_terminator');
  32907. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('diplotype','diplotype');
  32908. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('metal_binding_site','metal_binding_site');
  32909. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_gene','dj_gene');
  32910. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methyladenosine','two_prime_o_methyladenosine');
  32911. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_region_variant','splice_region_variant');
  32912. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aspe_primer','aspe_primer');
  32913. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('restriction_enzyme_binding_site','restriction_enzyme_binding_site');
  32914. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bac','bac');
  32915. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_j_cluster','dj_j_cluster');
  32916. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k36_dimethylation_site','h3k36_dimethylation_site');
  32917. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_donor_site','trans_splice_donor_site');
  32918. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_variant','gene_variant');
  32919. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conformational_change_variant','conformational_change_variant');
  32920. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k36_monomethylation_site','h3k36_monomethylation_site');
  32921. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleic_acid','nucleic_acid');
  32922. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_chimeric_cdna','invalidated_by_chimeric_cdna');
  32923. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histidine','histidine');
  32924. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_component_region','gene_component_region');
  32925. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primer_match','primer_match');
  32926. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_primary_transcript','trna_primary_transcript');
  32927. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('loxp_site','loxp_site');
  32928. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine','serine');
  32929. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('propeptide','propeptide');
  32930. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_open_reading_frame','five_prime_open_reading_frame');
  32931. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('schellmann_loop_six','schellmann_loop_six');
  32932. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('shine_dalgarno_sequence','shine_dalgarno_sequence');
  32933. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sp6_rna_polymerase_promoter','sp6_rna_polymerase_promoter');
  32934. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('centromere_dna_element_iii','centromere_dna_element_iii');
  32935. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysine_trna_primary_transcript','lysine_trna_primary_transcript');
  32936. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_c_cluster','j_c_cluster');
  32937. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_deficiency','assortment_derived_deficiency');
  32938. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_primary_transcript','mirna_primary_transcript');
  32939. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_5s','rrna_5s');
  32940. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucyl_trna','leucyl_trna');
  32941. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_intrachromosomal_transposition','invert_intra_transposition');
  32942. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enzymatic_rna','enzymatic_rna');
  32943. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('germline_variant','germline_variant');
  32944. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('negatively_autoregulated','negatively_autoregulated');
  32945. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('benign_variant','benign_variant');
  32946. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anchor_region','anchor_region');
  32947. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon','exon');
  32948. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_a','beta_turn_type_six_a');
  32949. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('random_sequence','random_sequence');
  32950. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('partially_characterised_chromosomal_mutation','partially_characterised_chromosomal_mutation');
  32951. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna','rna');
  32952. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('core_promoter_element','core_promoter_element');
  32953. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('restriction_enzyme_single_strand_overhang','restriction_enzyme_single_strand_overhang');
  32954. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ss_oligo','ss_oligo');
  32955. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_methylation_site','histone_methylation_site');
  32956. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_duplication_plus_aneuploid','inversion_derived_duplication_plus_aneuploid');
  32957. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_bound_by_nucleic_acid','transcript_bound_by_nucleic_acid');
  32958. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intein_containing','intein_containing');
  32959. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_aca_box_snorna_encoding','h_aca_box_snorna_encoding');
  32960. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_cleavage_rna','rrna_cleavage_rna');
  32961. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer_trap_construct','enhancer_trap_construct');
  32962. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gamma_turn_inverse','gamma_turn_inverse');
  32963. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_nonamer','three_prime_d_nonamer');
  32964. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paternal_variant','paternal_variant');
  32965. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('level_of_transcript_variant','level_of_transcript_variant');
  32966. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('selenocysteinyl_trna','selenocysteinyl_trna');
  32967. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_histone_methylation','gene_silenced_by_histone_methylation');
  32968. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u11_snrna','u11_snrna');
  32969. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna','scrna');
  32970. 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');
  32971. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silencer','silencer');
  32972. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sage_tag','sage_tag');
  32973. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_minus_1_frameshift','mrna_with_minus_1_frameshift');
  32974. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_gene','nuclear_gene');
  32975. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_supported_by_domain_match_data','cds_supported_by_domain_match_data');
  32976. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_shine_dalgarno_sequence','internal_shine_dalgarno_sequence');
  32977. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('prolyl_trna','prolyl_trna');
  32978. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysidine','lysidine');
  32979. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge','beta_bulge');
  32980. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated_by_protein_modification','post_translationally_regulated_by_protein_modification');
  32981. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_donor_variant','splice_donor_variant');
  32982. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ncrna','ncrna');
  32983. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('grna_gene','grna_gene');
  32984. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer','enhancer');
  32985. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polymorphic_sequence_variant','polymorphic_sequence_variant');
  32986. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_clip','three_prime_clip');
  32987. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frameshift_variant','frameshift_variant');
  32988. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertional','insertional');
  32989. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_processed_pseudogene','non_processed_pseudogene');
  32990. CREATE INDEX sequence_cv_lookup_table_idx ON sequence_cv_lookup_table (original_cvterm_name);
  32991. SET search_path=public,pg_catalog;
  32992. -- DEPENDENCY:
  32993. -- chado/modules/bridges/sofa-bridge.sql
  32994. -- The standard Chado pattern for protein coding genes
  32995. -- is a feature of type 'gene' with 'mRNA' features as parts
  32996. -- REQUIRES: 'mrna' view from so-bridge.sql
  32997. CREATE OR REPLACE VIEW protein_coding_gene AS
  32998. SELECT
  32999. DISTINCT gene.*
  33000. FROM
  33001. feature AS gene
  33002. INNER JOIN feature_relationship AS fr ON (gene.feature_id=fr.object_id)
  33003. INNER JOIN so.mrna ON (mrna.feature_id=fr.subject_id);
  33004. -- introns are implicit from surrounding exons
  33005. -- combines intron features with location and parent transcript
  33006. -- the same intron appearing in multiple transcripts will appear
  33007. -- multiple times
  33008. CREATE VIEW intron_combined_view AS
  33009. SELECT
  33010. x1.feature_id AS exon1_id,
  33011. x2.feature_id AS exon2_id,
  33012. CASE WHEN l1.strand=-1 THEN l2.fmax ELSE l1.fmax END AS fmin,
  33013. CASE WHEN l1.strand=-1 THEN l1.fmin ELSE l2.fmin END AS fmax,
  33014. l1.strand AS strand,
  33015. l1.srcfeature_id AS srcfeature_id,
  33016. r1.rank AS intron_rank,
  33017. r1.object_id AS transcript_id
  33018. FROM
  33019. cvterm
  33020. INNER JOIN
  33021. feature AS x1 ON (x1.type_id=cvterm.cvterm_id)
  33022. INNER JOIN
  33023. feature_relationship AS r1 ON (x1.feature_id=r1.subject_id)
  33024. INNER JOIN
  33025. featureloc AS l1 ON (x1.feature_id=l1.feature_id)
  33026. INNER JOIN
  33027. feature AS x2 ON (x2.type_id=cvterm.cvterm_id)
  33028. INNER JOIN
  33029. feature_relationship AS r2 ON (x2.feature_id=r2.subject_id)
  33030. INNER JOIN
  33031. featureloc AS l2 ON (x2.feature_id=l2.feature_id)
  33032. WHERE
  33033. cvterm.name='exon' AND
  33034. (r2.rank - r1.rank) = 1 AND
  33035. r1.object_id=r2.object_id AND
  33036. l1.strand = l2.strand AND
  33037. l1.srcfeature_id = l2.srcfeature_id AND
  33038. l1.locgroup=0 AND
  33039. l2.locgroup=0;
  33040. -- intron locations. intron IDs are the (exon1,exon2) ID pair
  33041. -- this means that introns may be counted twice if the start of
  33042. -- the 5' exon or the end of the 3' exon vary
  33043. -- introns shared by transcripts will not appear twice
  33044. CREATE VIEW intronloc_view AS
  33045. SELECT DISTINCT
  33046. exon1_id,
  33047. exon2_id,
  33048. fmin,
  33049. fmax,
  33050. strand,
  33051. srcfeature_id
  33052. FROM intron_combined_view;
  33053. CREATE OR REPLACE FUNCTION store_feature
  33054. (INT,INT,INT,INT,
  33055. INT,INT,VARCHAR,VARCHAR,INT,BOOLEAN)
  33056. RETURNS INT AS
  33057. 'DECLARE
  33058. v_srcfeature_id ALIAS FOR $1;
  33059. v_fmin ALIAS FOR $2;
  33060. v_fmax ALIAS FOR $3;
  33061. v_strand ALIAS FOR $4;
  33062. v_dbxref_id ALIAS FOR $5;
  33063. v_organism_id ALIAS FOR $6;
  33064. v_name ALIAS FOR $7;
  33065. v_uniquename ALIAS FOR $8;
  33066. v_type_id ALIAS FOR $9;
  33067. v_is_analysis ALIAS FOR $10;
  33068. v_feature_id INT;
  33069. v_featureloc_id INT;
  33070. BEGIN
  33071. IF v_dbxref_id IS NULL THEN
  33072. SELECT INTO v_feature_id feature_id
  33073. FROM feature
  33074. WHERE uniquename=v_uniquename AND
  33075. organism_id=v_organism_id AND
  33076. type_id=v_type_id;
  33077. ELSE
  33078. SELECT INTO v_feature_id feature_id
  33079. FROM feature
  33080. WHERE dbxref_id=v_dbxref_id;
  33081. END IF;
  33082. IF NOT FOUND THEN
  33083. INSERT INTO feature
  33084. ( dbxref_id ,
  33085. organism_id ,
  33086. name ,
  33087. uniquename ,
  33088. type_id ,
  33089. is_analysis )
  33090. VALUES
  33091. ( v_dbxref_id ,
  33092. v_organism_id ,
  33093. v_name ,
  33094. v_uniquename ,
  33095. v_type_id ,
  33096. v_is_analysis );
  33097. v_feature_id = currval(''feature_feature_id_seq'');
  33098. ELSE
  33099. UPDATE feature SET
  33100. dbxref_id = v_dbxref_id ,
  33101. organism_id = v_organism_id ,
  33102. name = v_name ,
  33103. uniquename = v_uniquename ,
  33104. type_id = v_type_id ,
  33105. is_analysis = v_is_analysis
  33106. WHERE
  33107. feature_id=v_feature_id;
  33108. END IF;
  33109. PERFORM store_featureloc(v_feature_id,
  33110. v_srcfeature_id,
  33111. v_fmin,
  33112. v_fmax,
  33113. v_strand,
  33114. 0,
  33115. 0);
  33116. RETURN v_feature_id;
  33117. END;
  33118. ' LANGUAGE 'plpgsql';
  33119. CREATE OR REPLACE FUNCTION store_featureloc
  33120. (INT,INT,INT,INT,INT,INT,INT)
  33121. RETURNS INT AS
  33122. 'DECLARE
  33123. v_feature_id ALIAS FOR $1;
  33124. v_srcfeature_id ALIAS FOR $2;
  33125. v_fmin ALIAS FOR $3;
  33126. v_fmax ALIAS FOR $4;
  33127. v_strand ALIAS FOR $5;
  33128. v_rank ALIAS FOR $6;
  33129. v_locgroup ALIAS FOR $7;
  33130. v_featureloc_id INT;
  33131. BEGIN
  33132. IF v_feature_id IS NULL THEN RAISE EXCEPTION ''feature_id cannot be null'';
  33133. END IF;
  33134. SELECT INTO v_featureloc_id featureloc_id
  33135. FROM featureloc
  33136. WHERE feature_id=v_feature_id AND
  33137. rank=v_rank AND
  33138. locgroup=v_locgroup;
  33139. IF NOT FOUND THEN
  33140. INSERT INTO featureloc
  33141. ( feature_id,
  33142. srcfeature_id,
  33143. fmin,
  33144. fmax,
  33145. strand,
  33146. rank,
  33147. locgroup)
  33148. VALUES
  33149. ( v_feature_id,
  33150. v_srcfeature_id,
  33151. v_fmin,
  33152. v_fmax,
  33153. v_strand,
  33154. v_rank,
  33155. v_locgroup);
  33156. v_featureloc_id = currval(''featureloc_featureloc_id_seq'');
  33157. ELSE
  33158. UPDATE featureloc SET
  33159. feature_id = v_feature_id,
  33160. srcfeature_id = v_srcfeature_id,
  33161. fmin = v_fmin,
  33162. fmax = v_fmax,
  33163. strand = v_strand,
  33164. rank = v_rank,
  33165. locgroup = v_locgroup
  33166. WHERE
  33167. featureloc_id=v_featureloc_id;
  33168. END IF;
  33169. RETURN v_featureloc_id;
  33170. END;
  33171. ' LANGUAGE 'plpgsql';
  33172. CREATE OR REPLACE FUNCTION store_feature_synonym
  33173. (INT,VARCHAR,INT,BOOLEAN,BOOLEAN,INT)
  33174. RETURNS INT AS
  33175. 'DECLARE
  33176. v_feature_id ALIAS FOR $1;
  33177. v_syn ALIAS FOR $2;
  33178. v_type_id ALIAS FOR $3;
  33179. v_is_current ALIAS FOR $4;
  33180. v_is_internal ALIAS FOR $5;
  33181. v_pub_id ALIAS FOR $6;
  33182. v_synonym_id INT;
  33183. v_feature_synonym_id INT;
  33184. BEGIN
  33185. IF v_feature_id IS NULL THEN RAISE EXCEPTION ''feature_id cannot be null'';
  33186. END IF;
  33187. SELECT INTO v_synonym_id synonym_id
  33188. FROM synonym
  33189. WHERE name=v_syn AND
  33190. type_id=v_type_id;
  33191. IF NOT FOUND THEN
  33192. INSERT INTO synonym
  33193. ( name,
  33194. synonym_sgml,
  33195. type_id)
  33196. VALUES
  33197. ( v_syn,
  33198. v_syn,
  33199. v_type_id);
  33200. v_synonym_id = currval(''synonym_synonym_id_seq'');
  33201. END IF;
  33202. SELECT INTO v_feature_synonym_id feature_synonym_id
  33203. FROM feature_synonym
  33204. WHERE feature_id=v_feature_id AND
  33205. synonym_id=v_synonym_id AND
  33206. pub_id=v_pub_id;
  33207. IF NOT FOUND THEN
  33208. INSERT INTO feature_synonym
  33209. ( feature_id,
  33210. synonym_id,
  33211. pub_id,
  33212. is_current,
  33213. is_internal)
  33214. VALUES
  33215. ( v_feature_id,
  33216. v_synonym_id,
  33217. v_pub_id,
  33218. v_is_current,
  33219. v_is_internal);
  33220. v_feature_synonym_id = currval(''feature_synonym_feature_synonym_id_seq'');
  33221. ELSE
  33222. UPDATE feature_synonym
  33223. SET is_current=v_is_current, is_internal=v_is_internal
  33224. WHERE feature_synonym_id=v_feature_synonym_id;
  33225. END IF;
  33226. RETURN v_feature_synonym_id;
  33227. END;
  33228. ' LANGUAGE 'plpgsql';
  33229. -- dependency_on: [sequtil,sequence-cv-helper]
  33230. CREATE OR REPLACE FUNCTION subsequence(INT,INT,INT,INT)
  33231. RETURNS TEXT AS
  33232. 'SELECT
  33233. CASE WHEN $4<0
  33234. THEN reverse_complement(substring(srcf.residues,$2+1,($3-$2)))
  33235. ELSE substring(residues,$2+1,($3-$2))
  33236. END AS residues
  33237. FROM feature AS srcf
  33238. WHERE
  33239. srcf.feature_id=$1'
  33240. LANGUAGE 'sql';
  33241. CREATE OR REPLACE FUNCTION subsequence_by_featureloc(INT)
  33242. RETURNS TEXT AS
  33243. 'SELECT
  33244. CASE WHEN strand<0
  33245. THEN reverse_complement(substring(srcf.residues,fmin+1,(fmax-fmin)))
  33246. ELSE substring(srcf.residues,fmin+1,(fmax-fmin))
  33247. END AS residues
  33248. FROM feature AS srcf
  33249. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  33250. WHERE
  33251. featureloc_id=$1'
  33252. LANGUAGE 'sql';
  33253. CREATE OR REPLACE FUNCTION subsequence_by_feature(INT,INT,INT)
  33254. RETURNS TEXT AS
  33255. 'SELECT
  33256. CASE WHEN strand<0
  33257. THEN reverse_complement(substring(srcf.residues,fmin+1,(fmax-fmin)))
  33258. ELSE substring(srcf.residues,fmin+1,(fmax-fmin))
  33259. END AS residues
  33260. FROM feature AS srcf
  33261. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  33262. WHERE
  33263. featureloc.feature_id=$1 AND
  33264. featureloc.rank=$2 AND
  33265. featureloc.locgroup=$3'
  33266. LANGUAGE 'sql';
  33267. CREATE OR REPLACE FUNCTION subsequence_by_feature(INT)
  33268. RETURNS TEXT AS 'SELECT subsequence_by_feature($1,0,0)'
  33269. LANGUAGE 'sql';
  33270. -- based on subfeature sets:
  33271. -- constrained by feature_relationship.type_id
  33272. -- (allows user to construct queries that only get subsequences of
  33273. -- part_of subfeatures)
  33274. CREATE OR REPLACE FUNCTION subsequence_by_subfeatures(INT,INT,INT,INT)
  33275. RETURNS TEXT AS '
  33276. DECLARE v_feature_id ALIAS FOR $1;
  33277. DECLARE v_rtype_id ALIAS FOR $2;
  33278. DECLARE v_rank ALIAS FOR $3;
  33279. DECLARE v_locgroup ALIAS FOR $4;
  33280. DECLARE subseq TEXT;
  33281. DECLARE seqrow RECORD;
  33282. BEGIN
  33283. subseq = '''';
  33284. FOR seqrow IN
  33285. SELECT
  33286. CASE WHEN strand<0
  33287. THEN reverse_complement(substring(srcf.residues,fmin+1,(fmax-fmin)))
  33288. ELSE substring(srcf.residues,fmin+1,(fmax-fmin))
  33289. END AS residues
  33290. FROM feature AS srcf
  33291. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  33292. INNER JOIN feature_relationship AS fr
  33293. ON (fr.subject_id=featureloc.feature_id)
  33294. WHERE
  33295. fr.object_id=v_feature_id AND
  33296. fr.type_id=v_rtype_id AND
  33297. featureloc.rank=v_rank AND
  33298. featureloc.locgroup=v_locgroup
  33299. ORDER BY fr.rank
  33300. LOOP
  33301. subseq = subseq || seqrow.residues;
  33302. END LOOP;
  33303. RETURN subseq;
  33304. END
  33305. '
  33306. LANGUAGE 'plpgsql';
  33307. CREATE OR REPLACE FUNCTION subsequence_by_subfeatures(INT,INT)
  33308. RETURNS TEXT AS
  33309. 'SELECT subsequence_by_subfeatures($1,$2,0,0)'
  33310. LANGUAGE 'sql';
  33311. CREATE OR REPLACE FUNCTION subsequence_by_subfeatures(INT)
  33312. RETURNS TEXT AS
  33313. '
  33314. SELECT subsequence_by_subfeatures($1,get_feature_relationship_type_id(''part_of''),0,0)
  33315. '
  33316. LANGUAGE 'sql';
  33317. -- constrained by subfeature.type_id (eg exons of a transcript)
  33318. CREATE OR REPLACE FUNCTION subsequence_by_typed_subfeatures(INT,INT,INT,INT)
  33319. RETURNS TEXT AS '
  33320. DECLARE v_feature_id ALIAS FOR $1;
  33321. DECLARE v_ftype_id ALIAS FOR $2;
  33322. DECLARE v_rank ALIAS FOR $3;
  33323. DECLARE v_locgroup ALIAS FOR $4;
  33324. DECLARE subseq TEXT;
  33325. DECLARE seqrow RECORD;
  33326. BEGIN
  33327. subseq = '''';
  33328. FOR seqrow IN
  33329. SELECT
  33330. CASE WHEN strand<0
  33331. THEN reverse_complement(substring(srcf.residues,fmin+1,(fmax-fmin)))
  33332. ELSE substring(srcf.residues,fmin+1,(fmax-fmin))
  33333. END AS residues
  33334. FROM feature AS srcf
  33335. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  33336. INNER JOIN feature AS subf ON (subf.feature_id=featureloc.feature_id)
  33337. INNER JOIN feature_relationship AS fr ON (fr.subject_id=subf.feature_id)
  33338. WHERE
  33339. fr.object_id=v_feature_id AND
  33340. subf.type_id=v_ftype_id AND
  33341. featureloc.rank=v_rank AND
  33342. featureloc.locgroup=v_locgroup
  33343. ORDER BY fr.rank
  33344. LOOP
  33345. subseq = subseq || seqrow.residues;
  33346. END LOOP;
  33347. RETURN subseq;
  33348. END
  33349. '
  33350. LANGUAGE 'plpgsql';
  33351. CREATE OR REPLACE FUNCTION subsequence_by_typed_subfeatures(INT,INT)
  33352. RETURNS TEXT AS
  33353. 'SELECT subsequence_by_typed_subfeatures($1,$2,0,0)'
  33354. LANGUAGE 'sql';
  33355. CREATE OR REPLACE FUNCTION feature_subalignments(integer) RETURNS SETOF featureloc AS '
  33356. DECLARE
  33357. return_data featureloc%ROWTYPE;
  33358. f_id ALIAS FOR $1;
  33359. feature_data feature%rowtype;
  33360. featureloc_data featureloc%rowtype;
  33361. s text;
  33362. fmin integer;
  33363. slen integer;
  33364. BEGIN
  33365. --RAISE NOTICE ''feature_id is %'', featureloc_data.feature_id;
  33366. SELECT INTO feature_data * FROM feature WHERE feature_id = f_id;
  33367. FOR featureloc_data IN SELECT * FROM featureloc WHERE feature_id = f_id LOOP
  33368. --RAISE NOTICE ''fmin is %'', featureloc_data.fmin;
  33369. return_data.feature_id = f_id;
  33370. return_data.srcfeature_id = featureloc_data.srcfeature_id;
  33371. return_data.is_fmin_partial = featureloc_data.is_fmin_partial;
  33372. return_data.is_fmax_partial = featureloc_data.is_fmax_partial;
  33373. return_data.strand = featureloc_data.strand;
  33374. return_data.phase = featureloc_data.phase;
  33375. return_data.residue_info = featureloc_data.residue_info;
  33376. return_data.locgroup = featureloc_data.locgroup;
  33377. return_data.rank = featureloc_data.rank;
  33378. s = feature_data.residues;
  33379. fmin = featureloc_data.fmin;
  33380. slen = char_length(s);
  33381. WHILE char_length(s) LOOP
  33382. --RAISE NOTICE ''residues is %'', s;
  33383. --trim off leading match
  33384. s = trim(leading ''|ATCGNatcgn'' from s);
  33385. --if leading match detected
  33386. IF slen > char_length(s) THEN
  33387. return_data.fmin = fmin;
  33388. return_data.fmax = featureloc_data.fmin + (slen - char_length(s));
  33389. --if the string started with a match, return it,
  33390. --otherwise, trim the gaps first (ie do not return this iteration)
  33391. RETURN NEXT return_data;
  33392. END IF;
  33393. --trim off leading gap
  33394. s = trim(leading ''-'' from s);
  33395. fmin = featureloc_data.fmin + (slen - char_length(s));
  33396. END LOOP;
  33397. END LOOP;
  33398. RETURN;
  33399. END;
  33400. ' LANGUAGE 'plpgsql';
  33401. CREATE SCHEMA frange;
  33402. SET search_path = frange,public,pg_catalog;
  33403. CREATE TABLE featuregroup (
  33404. featuregroup_id serial not null,
  33405. primary key (featuregroup_id),
  33406. subject_id int not null,
  33407. foreign key (subject_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  33408. object_id int not null,
  33409. foreign key (object_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  33410. group_id int not null,
  33411. foreign key (group_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  33412. srcfeature_id int null,
  33413. foreign key (srcfeature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  33414. fmin int null,
  33415. fmax int null,
  33416. strand int null,
  33417. is_root int not null default 0,
  33418. constraint featuregroup_c1 unique (subject_id,object_id,group_id,srcfeature_id,fmin,fmax,strand)
  33419. );
  33420. CREATE INDEX featuregroup_idx1 ON featuregroup (subject_id);
  33421. CREATE INDEX featuregroup_idx2 ON featuregroup (object_id);
  33422. CREATE INDEX featuregroup_idx3 ON featuregroup (group_id);
  33423. CREATE INDEX featuregroup_idx4 ON featuregroup (srcfeature_id);
  33424. CREATE INDEX featuregroup_idx5 ON featuregroup (strand);
  33425. CREATE INDEX featuregroup_idx6 ON featuregroup (is_root);
  33426. CREATE OR REPLACE FUNCTION groupoverlaps(int4, int4, varchar) RETURNS setof featuregroup AS '
  33427. SELECT g2.*
  33428. FROM featuregroup g1,
  33429. featuregroup g2
  33430. WHERE g1.is_root = 1
  33431. AND ( g1.srcfeature_id = g2.srcfeature_id OR g2.srcfeature_id IS NULL )
  33432. AND g1.group_id = g2.group_id
  33433. AND g1.srcfeature_id = (SELECT feature_id FROM feature WHERE uniquename = $3)
  33434. AND boxquery($1, $2) @ boxrange(g1.fmin,g2.fmax)
  33435. ' LANGUAGE 'sql';
  33436. CREATE OR REPLACE FUNCTION groupcontains(int4, int4, varchar) RETURNS setof featuregroup AS '
  33437. SELECT *
  33438. FROM groupoverlaps($1,$2,$3)
  33439. WHERE fmin <= $1 AND fmax >= $2
  33440. ' LANGUAGE 'sql';
  33441. CREATE OR REPLACE FUNCTION groupinside(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 groupidentical(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 groupoverlaps(int4, int4) RETURNS setof featuregroup AS '
  33452. SELECT *
  33453. FROM featuregroup
  33454. WHERE is_root = 1
  33455. AND boxquery($1, $2) @ boxrange(fmin,fmax)
  33456. ' LANGUAGE 'sql';
  33457. CREATE OR REPLACE FUNCTION groupoverlaps(_int4, _int4, _varchar) RETURNS setof featuregroup AS '
  33458. DECLARE
  33459. mins alias for $1;
  33460. maxs alias for $2;
  33461. srcs alias for $3;
  33462. f featuregroup%ROWTYPE;
  33463. i int;
  33464. s int;
  33465. BEGIN
  33466. i := 1;
  33467. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  33468. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  33469. FOR f IN
  33470. SELECT *
  33471. FROM featuregroup WHERE group_id IN (
  33472. SELECT group_id FROM featuregroup
  33473. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  33474. AND group_id IN (
  33475. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  33476. WHERE srcfeature_id = s
  33477. )
  33478. )
  33479. LOOP
  33480. RETURN NEXT f;
  33481. END LOOP;
  33482. END LOOP;
  33483. RETURN;
  33484. END;
  33485. ' LANGUAGE 'plpgsql';
  33486. CREATE OR REPLACE FUNCTION groupcontains(_int4, _int4, _varchar) RETURNS setof featuregroup AS '
  33487. DECLARE
  33488. mins alias for $1;
  33489. maxs alias for $2;
  33490. srcs alias for $3;
  33491. f featuregroup%ROWTYPE;
  33492. i int;
  33493. s int;
  33494. BEGIN
  33495. i := 1;
  33496. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  33497. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  33498. FOR f IN
  33499. SELECT *
  33500. FROM featuregroup WHERE group_id IN (
  33501. SELECT group_id FROM featuregroup
  33502. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  33503. AND fmin <= mins[i]
  33504. AND fmax >= maxs[i]
  33505. AND group_id IN (
  33506. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  33507. WHERE srcfeature_id = s
  33508. )
  33509. )
  33510. LOOP
  33511. RETURN NEXT f;
  33512. END LOOP;
  33513. END LOOP;
  33514. RETURN;
  33515. END;
  33516. ' LANGUAGE 'plpgsql';
  33517. CREATE OR REPLACE FUNCTION groupinside(_int4, _int4, _varchar) RETURNS setof featuregroup AS '
  33518. DECLARE
  33519. mins alias for $1;
  33520. maxs alias for $2;
  33521. srcs alias for $3;
  33522. f featuregroup%ROWTYPE;
  33523. i int;
  33524. s int;
  33525. BEGIN
  33526. i := 1;
  33527. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  33528. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  33529. FOR f IN
  33530. SELECT *
  33531. FROM featuregroup WHERE group_id IN (
  33532. SELECT group_id FROM featuregroup
  33533. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  33534. AND fmin >= mins[i]
  33535. AND fmax <= maxs[i]
  33536. AND group_id IN (
  33537. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  33538. WHERE srcfeature_id = s
  33539. )
  33540. )
  33541. LOOP
  33542. RETURN NEXT f;
  33543. END LOOP;
  33544. END LOOP;
  33545. RETURN;
  33546. END;
  33547. ' LANGUAGE 'plpgsql';
  33548. CREATE OR REPLACE FUNCTION groupidentical(_int4, _int4, _varchar) RETURNS setof featuregroup AS '
  33549. DECLARE
  33550. mins alias for $1;
  33551. maxs alias for $2;
  33552. srcs alias for $3;
  33553. f featuregroup%ROWTYPE;
  33554. i int;
  33555. s int;
  33556. BEGIN
  33557. i := 1;
  33558. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  33559. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  33560. FOR f IN
  33561. SELECT *
  33562. FROM featuregroup WHERE group_id IN (
  33563. SELECT group_id FROM featuregroup
  33564. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  33565. AND fmin = mins[i]
  33566. AND fmax = maxs[i]
  33567. AND group_id IN (
  33568. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  33569. WHERE srcfeature_id = s
  33570. )
  33571. )
  33572. LOOP
  33573. RETURN NEXT f;
  33574. END LOOP;
  33575. END LOOP;
  33576. RETURN;
  33577. END;
  33578. ' LANGUAGE 'plpgsql';
  33579. --functional index that depends on the above functions
  33580. CREATE INDEX bingroup_boxrange ON featuregroup USING RTREE (boxrange(fmin, fmax)) WHERE is_root = 1;
  33581. CREATE OR REPLACE FUNCTION _fill_featuregroup(INTEGER, INTEGER) RETURNS INTEGER AS '
  33582. DECLARE
  33583. groupid alias for $1;
  33584. parentid alias for $2;
  33585. g featuregroup%ROWTYPE;
  33586. BEGIN
  33587. FOR g IN
  33588. SELECT DISTINCT 0, fr.subject_id, fr.object_id, groupid, fl.srcfeature_id, fl.fmin, fl.fmax, fl.strand, 0
  33589. FROM feature_relationship AS fr,
  33590. featureloc AS fl
  33591. WHERE fr.object_id = parentid
  33592. AND fr.subject_id = fl.feature_id
  33593. LOOP
  33594. INSERT INTO featuregroup
  33595. (subject_id, object_id, group_id, srcfeature_id, fmin, fmax, strand, is_root)
  33596. VALUES
  33597. (g.subject_id, g.object_id, g.group_id, g.srcfeature_id, g.fmin, g.fmax, g.strand, 0);
  33598. PERFORM _fill_featuregroup(groupid,g.subject_id);
  33599. END LOOP;
  33600. RETURN 1;
  33601. END;
  33602. ' LANGUAGE 'plpgsql';
  33603. CREATE OR REPLACE FUNCTION fill_featuregroup() RETURNS INTEGER AS '
  33604. DECLARE
  33605. p featuregroup%ROWTYPE;
  33606. l featureloc%ROWTYPE;
  33607. isa int;
  33608. c int;
  33609. BEGIN
  33610. TRUNCATE featuregroup;
  33611. SELECT INTO isa cvterm_id FROM cvterm WHERE (name = ''isa'' OR name = ''is_a'');
  33612. -- Recursion is the biggest performance killer for this function.
  33613. -- We can dodge the first round of recursion using the "fr1 / GROUP BY" approach.
  33614. -- Luckily, most feature graphs are only 2 levels deep, so most recursion is
  33615. -- avoidable.
  33616. RAISE NOTICE ''Loading root and singleton features.'';
  33617. FOR p IN
  33618. SELECT DISTINCT 0, f.feature_id, f.feature_id, f.feature_id, srcfeature_id, fmin, fmax, strand, 1
  33619. FROM feature AS f
  33620. LEFT JOIN feature_relationship ON (f.feature_id = object_id)
  33621. LEFT JOIN featureloc ON (f.feature_id = featureloc.feature_id)
  33622. WHERE f.feature_id NOT IN ( SELECT subject_id FROM feature_relationship )
  33623. AND srcfeature_id IS NOT NULL
  33624. LOOP
  33625. INSERT INTO featuregroup
  33626. (subject_id, object_id, group_id, srcfeature_id, fmin, fmax, strand, is_root)
  33627. VALUES
  33628. (p.object_id, p.object_id, p.object_id, p.srcfeature_id, p.fmin, p.fmax, p.strand, 1);
  33629. END LOOP;
  33630. RAISE NOTICE ''Loading child features. If your database contains grandchild'';
  33631. RAISE NOTICE ''features, they will be loaded recursively and may take a long time.'';
  33632. FOR p IN
  33633. 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)
  33634. FROM feature_relationship AS fr0
  33635. LEFT JOIN feature_relationship AS fr1 ON ( fr0.subject_id = fr1.object_id),
  33636. featureloc AS fl
  33637. WHERE fr0.subject_id = fl.feature_id
  33638. AND fr0.object_id IN (
  33639. SELECT f.feature_id
  33640. FROM feature AS f
  33641. LEFT JOIN feature_relationship ON (f.feature_id = object_id)
  33642. LEFT JOIN featureloc ON (f.feature_id = featureloc.feature_id)
  33643. WHERE f.feature_id NOT IN ( SELECT subject_id FROM feature_relationship )
  33644. AND f.feature_id IN ( SELECT object_id FROM feature_relationship )
  33645. AND srcfeature_id IS NOT NULL
  33646. )
  33647. GROUP BY fr0.subject_id, fr0.object_id, fl.srcfeature_id, fl.fmin, fl.fmax, fl.strand
  33648. LOOP
  33649. INSERT INTO featuregroup
  33650. (subject_id, object_id, group_id, srcfeature_id, fmin, fmax, strand, is_root)
  33651. VALUES
  33652. (p.subject_id, p.object_id, p.object_id, p.srcfeature_id, p.fmin, p.fmax, p.strand, 0);
  33653. IF ( p.is_root > 0 ) THEN
  33654. PERFORM _fill_featuregroup(p.subject_id,p.subject_id);
  33655. END IF;
  33656. END LOOP;
  33657. RETURN 1;
  33658. END;
  33659. ' LANGUAGE 'plpgsql';
  33660. SET search_path = public,pg_catalog;
  33661. --- create ontology that has instantiated located_sequence_feature part of SO
  33662. --- way as it is written, the function can not be execute more than once in one connection
  33663. --- when you get error like ERROR: relation with OID NNNNN does not exist
  33664. --- as this is not meant to execute >1 times in one session so it should never happen
  33665. --- except at testing and test failed
  33666. --- disconnect and try again, in other words, it can NOT be executed >1 time in one connection
  33667. --- if using EXECUTE, we can avoid this problem but code is hard to write and read (lots of ', escape char)
  33668. --NOTE: private, don't call directly as relying on having temp table tmpcvtr
  33669. --DROP TYPE soi_type CASCADE;
  33670. CREATE TYPE soi_type AS (
  33671. type_id INT,
  33672. subject_id INT,
  33673. object_id INT
  33674. );
  33675. CREATE OR REPLACE FUNCTION _fill_cvtermpath4soinode(INTEGER, INTEGER, INTEGER, INTEGER, INTEGER) RETURNS INTEGER AS
  33676. '
  33677. DECLARE
  33678. origin alias for $1;
  33679. child_id alias for $2;
  33680. cvid alias for $3;
  33681. typeid alias for $4;
  33682. depth alias for $5;
  33683. cterm soi_type%ROWTYPE;
  33684. exist_c int;
  33685. BEGIN
  33686. --RAISE NOTICE ''depth=% o=%, root=%, cv=%, t=%'', depth,origin,child_id,cvid,typeid;
  33687. SELECT INTO exist_c count(*) FROM cvtermpath WHERE cv_id = cvid AND object_id = origin AND subject_id = child_id AND pathdistance = depth;
  33688. --- longest path
  33689. IF (exist_c > 0) THEN
  33690. UPDATE cvtermpath SET pathdistance = depth WHERE cv_id = cvid AND object_id = origin AND subject_id = child_id;
  33691. ELSE
  33692. INSERT INTO cvtermpath (object_id, subject_id, cv_id, type_id, pathdistance) VALUES(origin, child_id, cvid, typeid, depth);
  33693. END IF;
  33694. FOR cterm IN SELECT tmp_type AS type_id, subject_id FROM tmpcvtr WHERE object_id = child_id LOOP
  33695. PERFORM _fill_cvtermpath4soinode(origin, cterm.subject_id, cvid, cterm.type_id, depth+1);
  33696. END LOOP;
  33697. RETURN 1;
  33698. END;
  33699. '
  33700. LANGUAGE 'plpgsql';
  33701. CREATE OR REPLACE FUNCTION _fill_cvtermpath4soi(INTEGER, INTEGER) RETURNS INTEGER AS
  33702. '
  33703. DECLARE
  33704. rootid alias for $1;
  33705. cvid alias for $2;
  33706. ttype int;
  33707. cterm soi_type%ROWTYPE;
  33708. BEGIN
  33709. SELECT INTO ttype cvterm_id FROM cvterm WHERE name = ''isa'';
  33710. --RAISE NOTICE ''got ttype %'',ttype;
  33711. PERFORM _fill_cvtermpath4soinode(rootid, rootid, cvid, ttype, 0);
  33712. FOR cterm IN SELECT tmp_type AS type_id, subject_id FROM tmpcvtr WHERE object_id = rootid LOOP
  33713. PERFORM _fill_cvtermpath4soi(cterm.subject_id, cvid);
  33714. END LOOP;
  33715. RETURN 1;
  33716. END;
  33717. '
  33718. LANGUAGE 'plpgsql';
  33719. --- use tmpcvtr to temp store soi (virtural ontology)
  33720. --- using tmp tables is faster than using recursive function to create feature type relationship
  33721. --- since it gets feature type rel set by set instead of one by one
  33722. --- and getting feature type rel is very expensive
  33723. --- call _fillcvtermpath4soi to create path for the virtual ontology
  33724. CREATE OR REPLACE FUNCTION create_soi() RETURNS INTEGER AS
  33725. '
  33726. DECLARE
  33727. parent soi_type%ROWTYPE;
  33728. isa_id cvterm.cvterm_id%TYPE;
  33729. soi_term TEXT := ''soi'';
  33730. soi_def TEXT := ''ontology of SO feature instantiated in database'';
  33731. soi_cvid INTEGER;
  33732. soiterm_id INTEGER;
  33733. pcount INTEGER;
  33734. count INTEGER := 0;
  33735. cquery TEXT;
  33736. BEGIN
  33737. SELECT INTO isa_id cvterm_id FROM cvterm WHERE name = ''isa'';
  33738. SELECT INTO soi_cvid cv_id FROM cv WHERE name = soi_term;
  33739. IF (soi_cvid > 0) THEN
  33740. DELETE FROM cvtermpath WHERE cv_id = soi_cvid;
  33741. DELETE FROM cvterm WHERE cv_id = soi_cvid;
  33742. ELSE
  33743. INSERT INTO cv (name, definition) VALUES(soi_term, soi_def);
  33744. END IF;
  33745. SELECT INTO soi_cvid cv_id FROM cv WHERE name = soi_term;
  33746. INSERT INTO cvterm (name, cv_id) VALUES(soi_term, soi_cvid);
  33747. SELECT INTO soiterm_id cvterm_id FROM cvterm WHERE name = soi_term;
  33748. CREATE TEMP TABLE tmpcvtr (tmp_type INT, type_id INT, subject_id INT, object_id INT);
  33749. CREATE UNIQUE INDEX u_tmpcvtr ON tmpcvtr(subject_id, object_id);
  33750. INSERT INTO tmpcvtr (tmp_type, type_id, subject_id, object_id)
  33751. SELECT DISTINCT isa_id, soiterm_id, f.type_id, soiterm_id FROM feature f, cvterm t
  33752. WHERE f.type_id = t.cvterm_id AND f.type_id > 0;
  33753. EXECUTE ''select * from tmpcvtr where type_id = '' || soiterm_id || '';'';
  33754. get diagnostics pcount = row_count;
  33755. raise notice ''all types in feature %'',pcount;
  33756. --- do it hard way, delete any child feature type from above (NOT IN clause did not work)
  33757. FOR parent IN SELECT DISTINCT 0, t.cvterm_id, 0 FROM feature c, feature_relationship fr, cvterm t
  33758. WHERE t.cvterm_id = c.type_id AND c.feature_id = fr.subject_id LOOP
  33759. DELETE FROM tmpcvtr WHERE type_id = soiterm_id and object_id = soiterm_id
  33760. AND subject_id = parent.subject_id;
  33761. END LOOP;
  33762. EXECUTE ''select * from tmpcvtr where type_id = '' || soiterm_id || '';'';
  33763. get diagnostics pcount = row_count;
  33764. raise notice ''all types in feature after delete child %'',pcount;
  33765. --- create feature type relationship (store in tmpcvtr)
  33766. CREATE TEMP TABLE tmproot (cv_id INTEGER not null, cvterm_id INTEGER not null, status INTEGER DEFAULT 0);
  33767. cquery := ''SELECT * FROM tmproot tmp WHERE tmp.status = 0;'';
  33768. ---temp use tmpcvtr to hold instantiated SO relationship for speed
  33769. ---use soterm_id as type_id, will delete from tmpcvtr
  33770. ---us tmproot for this as well
  33771. INSERT INTO tmproot (cv_id, cvterm_id, status) SELECT DISTINCT soi_cvid, c.subject_id, 0 FROM tmpcvtr c
  33772. WHERE c.object_id = soiterm_id;
  33773. EXECUTE cquery;
  33774. GET DIAGNOSTICS pcount = ROW_COUNT;
  33775. WHILE (pcount > 0) LOOP
  33776. RAISE NOTICE ''num child temp (to be inserted) in tmpcvtr: %'',pcount;
  33777. INSERT INTO tmpcvtr (tmp_type, type_id, subject_id, object_id)
  33778. SELECT DISTINCT fr.type_id, soiterm_id, c.type_id, p.cvterm_id FROM feature c, feature_relationship fr,
  33779. tmproot p, feature pf, cvterm t WHERE c.feature_id = fr.subject_id AND fr.object_id = pf.feature_id
  33780. AND p.cvterm_id = pf.type_id AND t.cvterm_id = c.type_id AND p.status = 0;
  33781. UPDATE tmproot SET status = 1 WHERE status = 0;
  33782. INSERT INTO tmproot (cv_id, cvterm_id, status)
  33783. SELECT DISTINCT soi_cvid, c.type_id, 0 FROM feature c, feature_relationship fr,
  33784. tmproot tmp, feature p, cvterm t WHERE c.feature_id = fr.subject_id AND fr.object_id = p.feature_id
  33785. AND tmp.cvterm_id = p.type_id AND t.cvterm_id = c.type_id AND tmp.status = 1;
  33786. UPDATE tmproot SET status = 2 WHERE status = 1;
  33787. EXECUTE cquery;
  33788. GET DIAGNOSTICS pcount = ROW_COUNT;
  33789. END LOOP;
  33790. DELETE FROM tmproot;
  33791. ---get transitive closure for soi
  33792. PERFORM _fill_cvtermpath4soi(soiterm_id, soi_cvid);
  33793. DROP TABLE tmpcvtr;
  33794. DROP TABLE tmproot;
  33795. RETURN 1;
  33796. END;
  33797. '
  33798. LANGUAGE 'plpgsql';
  33799. ---bad precedence: change customed type name
  33800. ---drop here to remove old function
  33801. --DROP TYPE feature_by_cvt_type CASCADE;
  33802. --DROP TYPE fxgsfids_type CASCADE;
  33803. --DROP TYPE feature_by_fx_type CASCADE;
  33804. CREATE TYPE feature_by_fx_type AS (
  33805. feature_id INTEGER,
  33806. depth INT
  33807. );
  33808. CREATE OR REPLACE FUNCTION get_sub_feature_ids(text) RETURNS SETOF feature_by_fx_type AS
  33809. '
  33810. DECLARE
  33811. sql alias for $1;
  33812. myrc feature_by_fx_type%ROWTYPE;
  33813. myrc2 feature_by_fx_type%ROWTYPE;
  33814. BEGIN
  33815. FOR myrc IN EXECUTE sql LOOP
  33816. FOR myrc2 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id) LOOP
  33817. RETURN NEXT myrc2;
  33818. END LOOP;
  33819. END LOOP;
  33820. RETURN;
  33821. END;
  33822. '
  33823. LANGUAGE 'plpgsql';
  33824. CREATE OR REPLACE FUNCTION get_up_feature_ids(text) RETURNS SETOF feature_by_fx_type AS
  33825. '
  33826. DECLARE
  33827. sql alias for $1;
  33828. myrc feature_by_fx_type%ROWTYPE;
  33829. myrc2 feature_by_fx_type%ROWTYPE;
  33830. BEGIN
  33831. FOR myrc IN EXECUTE sql LOOP
  33832. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id) LOOP
  33833. RETURN NEXT myrc2;
  33834. END LOOP;
  33835. END LOOP;
  33836. RETURN;
  33837. END;
  33838. '
  33839. LANGUAGE 'plpgsql';
  33840. CREATE OR REPLACE FUNCTION get_feature_ids(text) RETURNS SETOF feature_by_fx_type AS
  33841. '
  33842. DECLARE
  33843. sql alias for $1;
  33844. myrc feature_by_fx_type%ROWTYPE;
  33845. myrc2 feature_by_fx_type%ROWTYPE;
  33846. myrc3 feature_by_fx_type%ROWTYPE;
  33847. BEGIN
  33848. FOR myrc IN EXECUTE sql LOOP
  33849. RETURN NEXT myrc;
  33850. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id) LOOP
  33851. RETURN NEXT myrc2;
  33852. END LOOP;
  33853. FOR myrc3 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id) LOOP
  33854. RETURN NEXT myrc3;
  33855. END LOOP;
  33856. END LOOP;
  33857. RETURN;
  33858. END;
  33859. '
  33860. LANGUAGE 'plpgsql';
  33861. CREATE OR REPLACE FUNCTION get_sub_feature_ids(integer) RETURNS SETOF feature_by_fx_type AS
  33862. '
  33863. DECLARE
  33864. root alias for $1;
  33865. myrc feature_by_fx_type%ROWTYPE;
  33866. myrc2 feature_by_fx_type%ROWTYPE;
  33867. BEGIN
  33868. FOR myrc IN SELECT DISTINCT subject_id AS feature_id FROM feature_relationship WHERE object_id = root LOOP
  33869. RETURN NEXT myrc;
  33870. FOR myrc2 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id) LOOP
  33871. RETURN NEXT myrc2;
  33872. END LOOP;
  33873. END LOOP;
  33874. RETURN;
  33875. END;
  33876. '
  33877. LANGUAGE 'plpgsql';
  33878. CREATE OR REPLACE FUNCTION get_up_feature_ids(integer) RETURNS SETOF feature_by_fx_type AS
  33879. '
  33880. DECLARE
  33881. leaf alias for $1;
  33882. myrc feature_by_fx_type%ROWTYPE;
  33883. myrc2 feature_by_fx_type%ROWTYPE;
  33884. BEGIN
  33885. FOR myrc IN SELECT DISTINCT object_id AS feature_id FROM feature_relationship WHERE subject_id = leaf LOOP
  33886. RETURN NEXT myrc;
  33887. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id) LOOP
  33888. RETURN NEXT myrc2;
  33889. END LOOP;
  33890. END LOOP;
  33891. RETURN;
  33892. END;
  33893. '
  33894. LANGUAGE 'plpgsql';
  33895. CREATE OR REPLACE FUNCTION get_sub_feature_ids(integer, integer) RETURNS SETOF feature_by_fx_type AS
  33896. '
  33897. DECLARE
  33898. root alias for $1;
  33899. depth alias for $2;
  33900. myrc feature_by_fx_type%ROWTYPE;
  33901. myrc2 feature_by_fx_type%ROWTYPE;
  33902. BEGIN
  33903. FOR myrc IN SELECT DISTINCT subject_id AS feature_id, depth FROM feature_relationship WHERE object_id = root LOOP
  33904. RETURN NEXT myrc;
  33905. FOR myrc2 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id,depth+1) LOOP
  33906. RETURN NEXT myrc2;
  33907. END LOOP;
  33908. END LOOP;
  33909. RETURN;
  33910. END;
  33911. '
  33912. LANGUAGE 'plpgsql';
  33913. --- depth is reversed and meanless when union with results from get_sub_feature_ids
  33914. CREATE OR REPLACE FUNCTION get_up_feature_ids(integer, integer) RETURNS SETOF feature_by_fx_type AS
  33915. '
  33916. DECLARE
  33917. leaf alias for $1;
  33918. depth alias for $2;
  33919. myrc feature_by_fx_type%ROWTYPE;
  33920. myrc2 feature_by_fx_type%ROWTYPE;
  33921. BEGIN
  33922. FOR myrc IN SELECT DISTINCT object_id AS feature_id, depth FROM feature_relationship WHERE subject_id = leaf LOOP
  33923. RETURN NEXT myrc;
  33924. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id,depth+1) LOOP
  33925. RETURN NEXT myrc2;
  33926. END LOOP;
  33927. END LOOP;
  33928. RETURN;
  33929. END;
  33930. '
  33931. LANGUAGE 'plpgsql';
  33932. --- children feature ids only (not include itself--parent) for SO type and range (src)
  33933. 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
  33934. '
  33935. DECLARE
  33936. gtype alias for $1;
  33937. src alias for $2;
  33938. is_an alias for $3;
  33939. query text;
  33940. myrc feature_by_fx_type%ROWTYPE;
  33941. myrc2 feature_by_fx_type%ROWTYPE;
  33942. BEGIN
  33943. query := ''SELECT DISTINCT f.feature_id FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id)
  33944. INNER join featureloc fl
  33945. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  33946. WHERE t.name = '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  33947. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  33948. IF (STRPOS(gtype, ''%'') > 0) THEN
  33949. query := ''SELECT DISTINCT f.feature_id FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id)
  33950. INNER join featureloc fl
  33951. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  33952. WHERE t.name like '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  33953. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  33954. END IF;
  33955. FOR myrc IN SELECT * FROM get_sub_feature_ids(query) LOOP
  33956. RETURN NEXT myrc;
  33957. END LOOP;
  33958. RETURN;
  33959. END;
  33960. '
  33961. LANGUAGE 'plpgsql';
  33962. --- by SO type, usefull for tRNA, ncRNA, etc
  33963. CREATE OR REPLACE FUNCTION get_feature_ids_by_type(cvterm.name%TYPE, char(1)) RETURNS SETOF feature_by_fx_type AS
  33964. '
  33965. DECLARE
  33966. gtype alias for $1;
  33967. is_an alias for $2;
  33968. query TEXT;
  33969. myrc feature_by_fx_type%ROWTYPE;
  33970. myrc2 feature_by_fx_type%ROWTYPE;
  33971. BEGIN
  33972. query := ''SELECT DISTINCT f.feature_id
  33973. FROM feature f, cvterm t WHERE t.cvterm_id = f.type_id AND t.name = '' || quote_literal(gtype) ||
  33974. '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  33975. IF (STRPOS(gtype, ''%'') > 0) THEN
  33976. query := ''SELECT DISTINCT f.feature_id
  33977. FROM feature f, cvterm t WHERE t.cvterm_id = f.type_id AND t.name like ''
  33978. || quote_literal(gtype) || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  33979. END IF;
  33980. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  33981. RETURN NEXT myrc;
  33982. END LOOP;
  33983. RETURN;
  33984. END;
  33985. '
  33986. LANGUAGE 'plpgsql';
  33987. 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
  33988. '
  33989. DECLARE
  33990. gtype alias for $1;
  33991. src alias for $2;
  33992. is_an alias for $3;
  33993. query TEXT;
  33994. myrc feature_by_fx_type%ROWTYPE;
  33995. myrc2 feature_by_fx_type%ROWTYPE;
  33996. BEGIN
  33997. query := ''SELECT DISTINCT f.feature_id
  33998. FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id) INNER join featureloc fl
  33999. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  34000. WHERE t.name = '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  34001. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  34002. IF (STRPOS(gtype, ''%'') > 0) THEN
  34003. query := ''SELECT DISTINCT f.feature_id
  34004. FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id) INNER join featureloc fl
  34005. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  34006. WHERE t.name like '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  34007. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  34008. END IF;
  34009. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34010. RETURN NEXT myrc;
  34011. END LOOP;
  34012. RETURN;
  34013. END;
  34014. '
  34015. LANGUAGE 'plpgsql';
  34016. 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
  34017. '
  34018. DECLARE
  34019. gtype alias for $1;
  34020. name alias for $2;
  34021. is_an alias for $3;
  34022. query TEXT;
  34023. myrc feature_by_fx_type%ROWTYPE;
  34024. myrc2 feature_by_fx_type%ROWTYPE;
  34025. BEGIN
  34026. query := ''SELECT DISTINCT f.feature_id
  34027. FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id)
  34028. WHERE t.name = '' || quote_literal(gtype) || '' AND (f.uniquename = '' || quote_literal(name)
  34029. || '' OR f.name = '' || quote_literal(name) || '') AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  34030. IF (STRPOS(name, ''%'') > 0) THEN
  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 like '' || quote_literal(name)
  34034. || '' OR f.name like '' || quote_literal(name) || '') AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  34035. END IF;
  34036. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34037. RETURN NEXT myrc;
  34038. END LOOP;
  34039. RETURN;
  34040. END;
  34041. '
  34042. LANGUAGE 'plpgsql';
  34043. --- get all feature ids (including children) for feature that has an ontology term (say GO function)
  34044. CREATE OR REPLACE FUNCTION get_feature_ids_by_ont(cv.name%TYPE,cvterm.name%TYPE) RETURNS SETOF feature_by_fx_type AS
  34045. '
  34046. DECLARE
  34047. aspect alias for $1;
  34048. term alias for $2;
  34049. query TEXT;
  34050. myrc feature_by_fx_type%ROWTYPE;
  34051. myrc2 feature_by_fx_type%ROWTYPE;
  34052. BEGIN
  34053. query := ''SELECT DISTINCT fcvt.feature_id
  34054. FROM feature_cvterm fcvt, cv, cvterm t WHERE cv.cv_id = t.cv_id AND
  34055. t.cvterm_id = fcvt.cvterm_id AND cv.name = '' || quote_literal(aspect) ||
  34056. '' AND t.name = '' || quote_literal(term) || '';'';
  34057. IF (STRPOS(term, ''%'') > 0) THEN
  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 like '' || quote_literal(term) || '';'';
  34062. END IF;
  34063. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34064. RETURN NEXT myrc;
  34065. END LOOP;
  34066. RETURN;
  34067. END;
  34068. '
  34069. LANGUAGE 'plpgsql';
  34070. CREATE OR REPLACE FUNCTION get_feature_ids_by_ont_root(cv.name%TYPE,cvterm.name%TYPE) RETURNS SETOF feature_by_fx_type AS
  34071. '
  34072. DECLARE
  34073. aspect alias for $1;
  34074. term alias for $2;
  34075. query TEXT;
  34076. subquery TEXT;
  34077. myrc feature_by_fx_type%ROWTYPE;
  34078. myrc2 feature_by_fx_type%ROWTYPE;
  34079. BEGIN
  34080. subquery := ''SELECT t.cvterm_id FROM cv, cvterm t WHERE cv.cv_id = t.cv_id
  34081. AND cv.name = '' || quote_literal(aspect) || '' AND t.name = '' || quote_literal(term) || '';'';
  34082. IF (STRPOS(term, ''%'') > 0) THEN
  34083. subquery := ''SELECT t.cvterm_id FROM cv, cvterm t WHERE cv.cv_id = t.cv_id
  34084. AND cv.name = '' || quote_literal(aspect) || '' AND t.name like '' || quote_literal(term) || '';'';
  34085. END IF;
  34086. query := ''SELECT DISTINCT fcvt.feature_id
  34087. 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);'';
  34088. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34089. RETURN NEXT myrc;
  34090. END LOOP;
  34091. RETURN;
  34092. END;
  34093. '
  34094. LANGUAGE 'plpgsql';
  34095. --- get all feature ids (including children) for feature with the property (type, val)
  34096. CREATE OR REPLACE FUNCTION get_feature_ids_by_property(cvterm.name%TYPE,varchar) RETURNS SETOF feature_by_fx_type AS
  34097. '
  34098. DECLARE
  34099. p_type alias for $1;
  34100. p_val alias for $2;
  34101. query TEXT;
  34102. myrc feature_by_fx_type%ROWTYPE;
  34103. myrc2 feature_by_fx_type%ROWTYPE;
  34104. BEGIN
  34105. query := ''SELECT DISTINCT fprop.feature_id
  34106. FROM featureprop fprop, cvterm t WHERE t.cvterm_id = fprop.type_id AND t.name = '' ||
  34107. quote_literal(p_type) || '' AND fprop.value = '' || quote_literal(p_val) || '';'';
  34108. IF (STRPOS(p_val, ''%'') > 0) THEN
  34109. query := ''SELECT DISTINCT fprop.feature_id
  34110. FROM featureprop fprop, cvterm t WHERE t.cvterm_id = fprop.type_id AND t.name = '' ||
  34111. quote_literal(p_type) || '' AND fprop.value like '' || quote_literal(p_val) || '';'';
  34112. END IF;
  34113. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34114. RETURN NEXT myrc;
  34115. END LOOP;
  34116. RETURN;
  34117. END;
  34118. '
  34119. LANGUAGE 'plpgsql';
  34120. --- get all feature ids (including children) for feature with the property val
  34121. CREATE OR REPLACE FUNCTION get_feature_ids_by_propval(varchar) RETURNS SETOF feature_by_fx_type AS
  34122. '
  34123. DECLARE
  34124. p_val alias for $1;
  34125. query TEXT;
  34126. myrc feature_by_fx_type%ROWTYPE;
  34127. myrc2 feature_by_fx_type%ROWTYPE;
  34128. BEGIN
  34129. query := ''SELECT DISTINCT fprop.feature_id
  34130. FROM featureprop fprop WHERE fprop.value = '' || quote_literal(p_val) || '';'';
  34131. IF (STRPOS(p_val, ''%'') > 0) THEN
  34132. query := ''SELECT DISTINCT fprop.feature_id
  34133. FROM featureprop fprop WHERE fprop.value like '' || quote_literal(p_val) || '';'';
  34134. END IF;
  34135. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34136. RETURN NEXT myrc;
  34137. END LOOP;
  34138. RETURN;
  34139. END;
  34140. '
  34141. LANGUAGE 'plpgsql';
  34142. ---4 args: ptype, ctype, count, operator (valid SQL number comparison operator), and is_analysis
  34143. ---get feature ids for any node with type = ptype whose child node type = ctype
  34144. ---and child node feature count comparing (using operator) to ccount
  34145. 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
  34146. '
  34147. DECLARE
  34148. ptype alias for $1;
  34149. ctype alias for $2;
  34150. ccount alias for $3;
  34151. operator alias for $4;
  34152. is_an alias for $5;
  34153. query TEXT;
  34154. myrc feature_by_fx_type%ROWTYPE;
  34155. myrc2 feature_by_fx_type %ROWTYPE;
  34156. BEGIN
  34157. query := ''SELECT DISTINCT f.feature_id
  34158. FROM feature f INNER join (select count(*) as c, p.feature_id FROM feature p
  34159. INNER join cvterm pt ON (p.type_id = pt.cvterm_id) INNER join feature_relationship fr
  34160. ON (p.feature_id = fr.object_id) INNER join feature c ON (c.feature_id = fr.subject_id)
  34161. INNER join cvterm ct ON (c.type_id = ct.cvterm_id)
  34162. WHERE pt.name = '' || quote_literal(ptype) || '' AND ct.name = '' || quote_literal(ctype)
  34163. || '' AND p.is_analysis = '' || quote_literal(is_an) || '' group by p.feature_id) as cq
  34164. ON (cq.feature_id = f.feature_id) WHERE cq.c '' || operator || ccount || '';'';
  34165. ---RAISE NOTICE ''%'', query;
  34166. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34167. RETURN NEXT myrc;
  34168. END LOOP;
  34169. RETURN;
  34170. END;
  34171. '
  34172. LANGUAGE 'plpgsql';
  34173. -- ==========================================
  34174. -- Chado companalysis module
  34175. --
  34176. -- =================================================================
  34177. -- Dependencies:
  34178. --
  34179. -- :import feature from sequence
  34180. -- :import cvterm from cv
  34181. -- =================================================================
  34182. -- ================================================
  34183. -- TABLE: analysis
  34184. -- ================================================
  34185. create table analysis (
  34186. analysis_id serial not null,
  34187. primary key (analysis_id),
  34188. name varchar(255),
  34189. description text,
  34190. program varchar(255) not null,
  34191. programversion varchar(255) not null,
  34192. algorithm varchar(255),
  34193. sourcename varchar(255),
  34194. sourceversion varchar(255),
  34195. sourceuri text,
  34196. timeexecuted timestamp not null default current_timestamp,
  34197. constraint analysis_c1 unique (program,programversion,sourcename)
  34198. );
  34199. COMMENT ON TABLE analysis IS 'An analysis is a particular type of a
  34200. computational analysis; it may be a blast of one sequence against
  34201. another, or an all by all blast, or a different kind of analysis
  34202. altogether. It is a single unit of computation.';
  34203. COMMENT ON COLUMN analysis.name IS 'A way of grouping analyses. This
  34204. should be a handy short identifier that can help people find an
  34205. analysis they want. For instance "tRNAscan", "cDNA", "FlyPep",
  34206. "SwissProt", and it should not be assumed to be unique. For instance, there may be lots of separate analyses done against a cDNA database.';
  34207. COMMENT ON COLUMN analysis.program IS 'Program name, e.g. blastx, blastp, sim4, genscan.';
  34208. COMMENT ON COLUMN analysis.programversion IS 'Version description, e.g. TBLASTX 2.0MP-WashU [09-Nov-2000].';
  34209. COMMENT ON COLUMN analysis.algorithm IS 'Algorithm name, e.g. blast.';
  34210. COMMENT ON COLUMN analysis.sourcename IS 'Source name, e.g. cDNA, SwissProt.';
  34211. 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).';
  34212. -- ================================================
  34213. -- TABLE: analysisprop
  34214. -- ================================================
  34215. create table analysisprop (
  34216. analysisprop_id serial not null,
  34217. primary key (analysisprop_id),
  34218. analysis_id int not null,
  34219. foreign key (analysis_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  34220. type_id int not null,
  34221. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  34222. value text,
  34223. rank int not null default 0,
  34224. constraint analysisprop_c1 unique (analysis_id,type_id,rank)
  34225. );
  34226. create index analysisprop_idx1 on analysisprop (analysis_id);
  34227. create index analysisprop_idx2 on analysisprop (type_id);
  34228. -- ================================================
  34229. -- TABLE: analysisfeature
  34230. -- ================================================
  34231. create table analysisfeature (
  34232. analysisfeature_id serial not null,
  34233. primary key (analysisfeature_id),
  34234. feature_id int not null,
  34235. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  34236. analysis_id int not null,
  34237. foreign key (analysis_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  34238. rawscore double precision,
  34239. normscore double precision,
  34240. significance double precision,
  34241. identity double precision,
  34242. constraint analysisfeature_c1 unique (feature_id,analysis_id)
  34243. );
  34244. create index analysisfeature_idx1 on analysisfeature (feature_id);
  34245. create index analysisfeature_idx2 on analysisfeature (analysis_id);
  34246. 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,
  34247. with rank indicating query/subject';
  34248. 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.';
  34249. 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:
  34250. * 0 <= significance <= n, where n is a positive number, theoretically unbounded but unlikely to be more than 10
  34251. * low numbers are better than high numbers.';
  34252. COMMENT ON COLUMN analysisfeature.normscore IS 'This is the rawscore but
  34253. semi-normalized. Complete normalization to allow comparison of
  34254. features generated by different programs would be nice but too
  34255. difficult. Instead the normalization should strive to enforce the
  34256. following semantics: * normscores are floating point numbers >= 0,
  34257. * 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.';
  34258. 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.';
  34259. CREATE TABLE analysisfeatureprop (
  34260. analysisfeatureprop_id SERIAL PRIMARY KEY,
  34261. analysisfeature_id INTEGER NOT NULL REFERENCES analysisfeature(analysisfeature_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
  34262. type_id INTEGER NOT NULL REFERENCES cvterm(cvterm_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
  34263. value TEXT,
  34264. rank INTEGER NOT NULL,
  34265. CONSTRAINT analysisfeature_id_type_id_rank UNIQUE(analysisfeature_id, type_id, rank)
  34266. );
  34267. create index analysisfeatureprop_idx1 on analysisfeatureprop (analysisfeature_id);
  34268. create index analysisfeatureprop_idx2 on analysisfeatureprop (type_id);
  34269. CREATE OR REPLACE FUNCTION store_analysis (VARCHAR,VARCHAR,VARCHAR)
  34270. RETURNS INT AS
  34271. 'DECLARE
  34272. v_program ALIAS FOR $1;
  34273. v_programversion ALIAS FOR $2;
  34274. v_sourcename ALIAS FOR $3;
  34275. pkval INTEGER;
  34276. BEGIN
  34277. SELECT INTO pkval analysis_id
  34278. FROM analysis
  34279. WHERE program=v_program AND
  34280. programversion=v_programversion AND
  34281. sourcename=v_sourcename;
  34282. IF NOT FOUND THEN
  34283. INSERT INTO analysis
  34284. (program,programversion,sourcename)
  34285. VALUES
  34286. (v_program,v_programversion,v_sourcename);
  34287. RETURN currval(''analysis_analysis_id_seq'');
  34288. END IF;
  34289. RETURN pkval;
  34290. END;
  34291. ' LANGUAGE 'plpgsql';
  34292. --CREATE OR REPLACE FUNCTION store_analysisfeature
  34293. --()
  34294. --RETURNS INT AS
  34295. --'DECLARE
  34296. -- v_srcfeature_id ALIAS FOR $1;
  34297. -- ==========================================
  34298. -- Chado phenotype module
  34299. --
  34300. -- 05-31-2011
  34301. -- added 'name' column to phenotype. non-unique human readable field.
  34302. --
  34303. -- =================================================================
  34304. -- Dependencies:
  34305. --
  34306. -- :import cvterm from cv
  34307. -- :import feature from sequence
  34308. -- =================================================================
  34309. -- ================================================
  34310. -- TABLE: phenotype
  34311. -- ================================================
  34312. CREATE TABLE phenotype (
  34313. phenotype_id SERIAL NOT NULL,
  34314. primary key (phenotype_id),
  34315. uniquename TEXT NOT NULL,
  34316. name TEXT default null,
  34317. observable_id INT,
  34318. FOREIGN KEY (observable_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  34319. attr_id INT,
  34320. FOREIGN KEY (attr_id) REFERENCES cvterm (cvterm_id) ON DELETE SET NULL,
  34321. value TEXT,
  34322. cvalue_id INT,
  34323. FOREIGN KEY (cvalue_id) REFERENCES cvterm (cvterm_id) ON DELETE SET NULL,
  34324. assay_id INT,
  34325. FOREIGN KEY (assay_id) REFERENCES cvterm (cvterm_id) ON DELETE SET NULL,
  34326. CONSTRAINT phenotype_c1 UNIQUE (uniquename)
  34327. );
  34328. CREATE INDEX phenotype_idx1 ON phenotype (cvalue_id);
  34329. CREATE INDEX phenotype_idx2 ON phenotype (observable_id);
  34330. CREATE INDEX phenotype_idx3 ON phenotype (attr_id);
  34331. COMMENT ON TABLE phenotype IS 'A phenotypic statement, or a single
  34332. atomic phenotypic observation, is a controlled sentence describing
  34333. observable effects of non-wild type function. E.g. Obs=eye, attribute=color, cvalue=red.';
  34334. COMMENT ON COLUMN phenotype.observable_id IS 'The entity: e.g. anatomy_part, biological_process.';
  34335. COMMENT ON COLUMN phenotype.attr_id IS 'Phenotypic attribute (quality, property, attribute, character) - drawn from PATO.';
  34336. COMMENT ON COLUMN phenotype.value IS 'Value of attribute - unconstrained free text. Used only if cvalue_id is not appropriate.';
  34337. COMMENT ON COLUMN phenotype.cvalue_id IS 'Phenotype attribute value (state).';
  34338. COMMENT ON COLUMN phenotype.assay_id IS 'Evidence type.';
  34339. -- ================================================
  34340. -- TABLE: phenotype_cvterm
  34341. -- ================================================
  34342. CREATE TABLE phenotype_cvterm (
  34343. phenotype_cvterm_id SERIAL NOT NULL,
  34344. primary key (phenotype_cvterm_id),
  34345. phenotype_id INT NOT NULL,
  34346. FOREIGN KEY (phenotype_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  34347. cvterm_id INT NOT NULL,
  34348. FOREIGN KEY (cvterm_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  34349. rank int not null default 0,
  34350. CONSTRAINT phenotype_cvterm_c1 UNIQUE (phenotype_id, cvterm_id, rank)
  34351. );
  34352. CREATE INDEX phenotype_cvterm_idx1 ON phenotype_cvterm (phenotype_id);
  34353. CREATE INDEX phenotype_cvterm_idx2 ON phenotype_cvterm (cvterm_id);
  34354. COMMENT ON TABLE phenotype_cvterm IS NULL;
  34355. -- ================================================
  34356. -- TABLE: feature_phenotype
  34357. -- ================================================
  34358. CREATE TABLE feature_phenotype (
  34359. feature_phenotype_id SERIAL NOT NULL,
  34360. primary key (feature_phenotype_id),
  34361. feature_id INT NOT NULL,
  34362. FOREIGN KEY (feature_id) REFERENCES feature (feature_id) ON DELETE CASCADE,
  34363. phenotype_id INT NOT NULL,
  34364. FOREIGN KEY (phenotype_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  34365. CONSTRAINT feature_phenotype_c1 UNIQUE (feature_id,phenotype_id)
  34366. );
  34367. CREATE INDEX feature_phenotype_idx1 ON feature_phenotype (feature_id);
  34368. CREATE INDEX feature_phenotype_idx2 ON feature_phenotype (phenotype_id);
  34369. COMMENT ON TABLE feature_phenotype IS NULL;
  34370. -- ==========================================
  34371. -- Chado genetics module
  34372. --
  34373. -- changes 2011-05-31
  34374. -- added type_id to genotype (can be null for backward compatibility)
  34375. -- added genotypeprop table
  34376. -- 2006-04-11
  34377. -- split out phenotype tables into phenotype module
  34378. --
  34379. -- redesigned 2003-10-28
  34380. --
  34381. -- changes 2003-11-10:
  34382. -- incorporating suggestions to make everything a gcontext; use
  34383. -- gcontext_relationship to make some gcontexts derivable from others. we
  34384. -- would incorporate environment this way - just add the environment
  34385. -- descriptors as properties of the child gcontext
  34386. --
  34387. -- changes 2004-06 (Documented by DE: 10-MAR-2005):
  34388. -- Many, including rename of gcontext to genotype, split
  34389. -- phenstatement into phenstatement & phenotype, created environment
  34390. --
  34391. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34392. -- ============
  34393. -- DEPENDENCIES
  34394. -- ============
  34395. -- :import feature from sequence
  34396. -- :import phenotype from phenotype
  34397. -- :import cvterm from cv
  34398. -- :import pub from pub
  34399. -- :import dbxref from general
  34400. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34401. -- ================================================
  34402. -- TABLE: genotype
  34403. -- ================================================
  34404. create table genotype (
  34405. genotype_id serial not null,
  34406. primary key (genotype_id),
  34407. name text,
  34408. uniquename text not null,
  34409. description varchar(255),
  34410. type_id INT NOT NULL,
  34411. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  34412. constraint genotype_c1 unique (uniquename)
  34413. );
  34414. create index genotype_idx1 on genotype(uniquename);
  34415. create index genotype_idx2 on genotype(name);
  34416. COMMENT ON TABLE genotype IS 'Genetic context. A genotype is defined by a collection of features, mutations, balancers, deficiencies, haplotype blocks, or engineered constructs.';
  34417. COMMENT ON COLUMN genotype.uniquename IS 'The unique name for a genotype;
  34418. typically derived from the features making up the genotype.';
  34419. COMMENT ON COLUMN genotype.name IS 'Optional alternative name for a genotype,
  34420. for display purposes.';
  34421. -- ===============================================
  34422. -- TABLE: feature_genotype
  34423. -- ================================================
  34424. create table feature_genotype (
  34425. feature_genotype_id serial not null,
  34426. primary key (feature_genotype_id),
  34427. feature_id int not null,
  34428. foreign key (feature_id) references feature (feature_id) on delete cascade,
  34429. genotype_id int not null,
  34430. foreign key (genotype_id) references genotype (genotype_id) on delete cascade,
  34431. chromosome_id int,
  34432. foreign key (chromosome_id) references feature (feature_id) on delete set null,
  34433. rank int not null,
  34434. cgroup int not null,
  34435. cvterm_id int not null,
  34436. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  34437. constraint feature_genotype_c1 unique (feature_id, genotype_id, cvterm_id, chromosome_id, rank, cgroup)
  34438. );
  34439. create index feature_genotype_idx1 on feature_genotype (feature_id);
  34440. create index feature_genotype_idx2 on feature_genotype (genotype_id);
  34441. COMMENT ON TABLE feature_genotype IS NULL;
  34442. COMMENT ON COLUMN feature_genotype.rank IS 'rank can be used for
  34443. n-ploid organisms or to preserve order.';
  34444. COMMENT ON COLUMN feature_genotype.cgroup IS 'Spatially distinguishable
  34445. group. group can be used for distinguishing the chromosomal groups,
  34446. for example (RNAi products and so on can be treated as different
  34447. groups, as they do not fall on a particular chromosome).';
  34448. COMMENT ON COLUMN feature_genotype.chromosome_id IS 'A feature of SO type "chromosome".';
  34449. -- ================================================
  34450. -- TABLE: environment
  34451. -- ================================================
  34452. create table environment (
  34453. environment_id serial not NULL,
  34454. primary key (environment_id),
  34455. uniquename text not null,
  34456. description text,
  34457. constraint environment_c1 unique (uniquename)
  34458. );
  34459. create index environment_idx1 on environment(uniquename);
  34460. COMMENT ON TABLE environment IS 'The environmental component of a phenotype description.';
  34461. -- ================================================
  34462. -- TABLE: environment_cvterm
  34463. -- ================================================
  34464. create table environment_cvterm (
  34465. environment_cvterm_id serial not null,
  34466. primary key (environment_cvterm_id),
  34467. environment_id int not null,
  34468. foreign key (environment_id) references environment (environment_id) on delete cascade,
  34469. cvterm_id int not null,
  34470. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  34471. constraint environment_cvterm_c1 unique (environment_id, cvterm_id)
  34472. );
  34473. create index environment_cvterm_idx1 on environment_cvterm (environment_id);
  34474. create index environment_cvterm_idx2 on environment_cvterm (cvterm_id);
  34475. COMMENT ON TABLE environment_cvterm IS NULL;
  34476. -- ================================================
  34477. -- TABLE: phenstatement
  34478. -- ================================================
  34479. CREATE TABLE phenstatement (
  34480. phenstatement_id SERIAL NOT NULL,
  34481. primary key (phenstatement_id),
  34482. genotype_id INT NOT NULL,
  34483. FOREIGN KEY (genotype_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  34484. environment_id INT NOT NULL,
  34485. FOREIGN KEY (environment_id) REFERENCES environment (environment_id) ON DELETE CASCADE,
  34486. phenotype_id INT NOT NULL,
  34487. FOREIGN KEY (phenotype_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  34488. type_id INT NOT NULL,
  34489. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  34490. pub_id INT NOT NULL,
  34491. FOREIGN KEY (pub_id) REFERENCES pub (pub_id) ON DELETE CASCADE,
  34492. CONSTRAINT phenstatement_c1 UNIQUE (genotype_id,phenotype_id,environment_id,type_id,pub_id)
  34493. );
  34494. CREATE INDEX phenstatement_idx1 ON phenstatement (genotype_id);
  34495. CREATE INDEX phenstatement_idx2 ON phenstatement (phenotype_id);
  34496. 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.';
  34497. -- ================================================
  34498. -- TABLE: phendesc
  34499. -- ================================================
  34500. CREATE TABLE phendesc (
  34501. phendesc_id SERIAL NOT NULL,
  34502. primary key (phendesc_id),
  34503. genotype_id INT NOT NULL,
  34504. FOREIGN KEY (genotype_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  34505. environment_id INT NOT NULL,
  34506. FOREIGN KEY (environment_id) REFERENCES environment ( environment_id) ON DELETE CASCADE,
  34507. description TEXT NOT NULL,
  34508. type_id INT NOT NULL,
  34509. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  34510. pub_id INT NOT NULL,
  34511. FOREIGN KEY (pub_id) REFERENCES pub (pub_id) ON DELETE CASCADE,
  34512. CONSTRAINT phendesc_c1 UNIQUE (genotype_id,environment_id,type_id,pub_id)
  34513. );
  34514. CREATE INDEX phendesc_idx1 ON phendesc (genotype_id);
  34515. CREATE INDEX phendesc_idx2 ON phendesc (environment_id);
  34516. CREATE INDEX phendesc_idx3 ON phendesc (pub_id);
  34517. COMMENT ON TABLE phendesc IS 'A summary of a _set_ of phenotypic statements for any one gcontext made in any one publication.';
  34518. -- ================================================
  34519. -- TABLE: phenotype_comparison
  34520. -- ================================================
  34521. CREATE TABLE phenotype_comparison (
  34522. phenotype_comparison_id SERIAL NOT NULL,
  34523. primary key (phenotype_comparison_id),
  34524. genotype1_id INT NOT NULL,
  34525. FOREIGN KEY (genotype1_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  34526. environment1_id INT NOT NULL,
  34527. FOREIGN KEY (environment1_id) REFERENCES environment (environment_id) ON DELETE CASCADE,
  34528. genotype2_id INT NOT NULL,
  34529. FOREIGN KEY (genotype2_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  34530. environment2_id INT NOT NULL,
  34531. FOREIGN KEY (environment2_id) REFERENCES environment (environment_id) ON DELETE CASCADE,
  34532. phenotype1_id INT NOT NULL,
  34533. FOREIGN KEY (phenotype1_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  34534. phenotype2_id INT,
  34535. FOREIGN KEY (phenotype2_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  34536. pub_id INT NOT NULL,
  34537. FOREIGN KEY (pub_id) REFERENCES pub (pub_id) ON DELETE CASCADE,
  34538. organism_id INT NOT NULL,
  34539. FOREIGN KEY (organism_id) REFERENCES organism (organism_id) ON DELETE CASCADE,
  34540. CONSTRAINT phenotype_comparison_c1 UNIQUE (genotype1_id,environment1_id,genotype2_id,environment2_id,phenotype1_id,pub_id)
  34541. );
  34542. CREATE INDEX phenotype_comparison_idx1 on phenotype_comparison (genotype1_id);
  34543. CREATE INDEX phenotype_comparison_idx2 on phenotype_comparison (genotype2_id);
  34544. CREATE INDEX phenotype_comparison_idx4 on phenotype_comparison (pub_id);
  34545. COMMENT ON TABLE phenotype_comparison IS 'Comparison of phenotypes e.g., genotype1/environment1/phenotype1 "non-suppressible" with respect to genotype2/environment2/phenotype2.';
  34546. -- ================================================
  34547. -- TABLE: phenotype_comparison_cvterm
  34548. -- ================================================
  34549. CREATE TABLE phenotype_comparison_cvterm (
  34550. phenotype_comparison_cvterm_id serial not null,
  34551. primary key (phenotype_comparison_cvterm_id),
  34552. phenotype_comparison_id int not null,
  34553. FOREIGN KEY (phenotype_comparison_id) references phenotype_comparison (phenotype_comparison_id) on delete cascade,
  34554. cvterm_id int not null,
  34555. FOREIGN KEY (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  34556. pub_id INT not null,
  34557. FOREIGN KEY (pub_id) references pub (pub_id) on delete cascade,
  34558. rank int not null default 0,
  34559. CONSTRAINT phenotype_comparison_cvterm_c1 unique (phenotype_comparison_id, cvterm_id)
  34560. );
  34561. CREATE INDEX phenotype_comparison_cvterm_idx1 on phenotype_comparison_cvterm (phenotype_comparison_id);
  34562. CREATE INDEX phenotype_comparison_cvterm_idx2 on phenotype_comparison_cvterm (cvterm_id);
  34563. -- ================================================
  34564. -- TABLE: genotypeprop
  34565. -- ================================================
  34566. create table genotypeprop (
  34567. genotypeprop_id serial not null,
  34568. primary key (genotypeprop_id),
  34569. genotype_id int not null,
  34570. foreign key (genotype_id) references genotype (genotype_id) on delete cascade INITIALLY DEFERRED,
  34571. type_id int not null,
  34572. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  34573. value text null,
  34574. rank int not null default 0,
  34575. constraint genotypeprop_c1 unique (genotype_id,type_id,rank)
  34576. );
  34577. create index genotypeprop_idx1 on genotypeprop (genotype_id);
  34578. create index genotypeprop_idx2 on genotypeprop (type_id);
  34579. -- ==========================================
  34580. -- Chado map module
  34581. --
  34582. -- =================================================================
  34583. -- Dependencies:
  34584. --
  34585. -- :import feature from sequence
  34586. -- :import cvterm from cv
  34587. -- :import pub from pub
  34588. -- =================================================================
  34589. -- ================================================
  34590. -- TABLE: featuremap
  34591. -- ================================================
  34592. create table featuremap (
  34593. featuremap_id serial not null,
  34594. primary key (featuremap_id),
  34595. name varchar(255),
  34596. description text,
  34597. unittype_id int null,
  34598. foreign key (unittype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  34599. constraint featuremap_c1 unique (name)
  34600. );
  34601. -- ================================================
  34602. -- TABLE: featurerange
  34603. -- ================================================
  34604. create table featurerange (
  34605. featurerange_id serial not null,
  34606. primary key (featurerange_id),
  34607. featuremap_id int not null,
  34608. foreign key (featuremap_id) references featuremap (featuremap_id) on delete cascade INITIALLY DEFERRED,
  34609. feature_id int not null,
  34610. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  34611. leftstartf_id int not null,
  34612. foreign key (leftstartf_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  34613. leftendf_id int,
  34614. foreign key (leftendf_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  34615. rightstartf_id int,
  34616. foreign key (rightstartf_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  34617. rightendf_id int not null,
  34618. foreign key (rightendf_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  34619. rangestr varchar(255)
  34620. );
  34621. create index featurerange_idx1 on featurerange (featuremap_id);
  34622. create index featurerange_idx2 on featurerange (feature_id);
  34623. create index featurerange_idx3 on featurerange (leftstartf_id);
  34624. create index featurerange_idx4 on featurerange (leftendf_id);
  34625. create index featurerange_idx5 on featurerange (rightstartf_id);
  34626. create index featurerange_idx6 on featurerange (rightendf_id);
  34627. 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.';
  34628. COMMENT ON COLUMN featurerange.featuremap_id IS 'featuremap_id is the id of the feature being mapped.';
  34629. -- ================================================
  34630. -- TABLE: featurepos
  34631. -- ================================================
  34632. create table featurepos (
  34633. featurepos_id serial not null,
  34634. primary key (featurepos_id),
  34635. featuremap_id serial not null,
  34636. foreign key (featuremap_id) references featuremap (featuremap_id) on delete cascade INITIALLY DEFERRED,
  34637. feature_id int not null,
  34638. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  34639. map_feature_id int not null,
  34640. foreign key (map_feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  34641. mappos float not null
  34642. );
  34643. create index featurepos_idx1 on featurepos (featuremap_id);
  34644. create index featurepos_idx2 on featurepos (feature_id);
  34645. create index featurepos_idx3 on featurepos (map_feature_id);
  34646. COMMENT ON COLUMN featurepos.map_feature_id IS 'map_feature_id
  34647. links to the feature (map) upon which the feature is being localized.';
  34648. -- ================================================
  34649. -- TABLE: featuremap_pub
  34650. -- ================================================
  34651. create table featuremap_pub (
  34652. featuremap_pub_id serial not null,
  34653. primary key (featuremap_pub_id),
  34654. featuremap_id int not null,
  34655. foreign key (featuremap_id) references featuremap (featuremap_id) on delete cascade INITIALLY DEFERRED,
  34656. pub_id int not null,
  34657. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED
  34658. );
  34659. create index featuremap_pub_idx1 on featuremap_pub (featuremap_id);
  34660. create index featuremap_pub_idx2 on featuremap_pub (pub_id);
  34661. -- ==========================================
  34662. -- Chado phylogenetics module
  34663. --
  34664. -- Richard Bruskiewich
  34665. -- Chris Mungall
  34666. --
  34667. -- Initial design: 2004-05-27
  34668. --
  34669. -- ============
  34670. -- DEPENDENCIES
  34671. -- ============
  34672. -- :import feature from sequence
  34673. -- :import cvterm from cv
  34674. -- :import pub from pub
  34675. -- :import organism from organism
  34676. -- :import dbxref from general
  34677. -- :import analysis from companalysis
  34678. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34679. -- ================================================
  34680. -- TABLE: phylotree
  34681. -- ================================================
  34682. create table phylotree (
  34683. phylotree_id serial not null,
  34684. primary key (phylotree_id),
  34685. dbxref_id int not null,
  34686. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade,
  34687. name varchar(255) null,
  34688. type_id int,
  34689. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  34690. analysis_id int null,
  34691. foreign key (analysis_id) references analysis (analysis_id) on delete cascade,
  34692. comment text null,
  34693. unique(phylotree_id)
  34694. );
  34695. create index phylotree_idx1 on phylotree (phylotree_id);
  34696. COMMENT ON TABLE phylotree IS 'Global anchor for phylogenetic tree.';
  34697. COMMENT ON COLUMN phylotree.type_id IS 'Type: protein, nucleotide, taxonomy, for example. The type should be any SO type, or "taxonomy".';
  34698. -- ================================================
  34699. -- TABLE: phylotree_pub
  34700. -- ================================================
  34701. create table phylotree_pub (
  34702. phylotree_pub_id serial not null,
  34703. primary key (phylotree_pub_id),
  34704. phylotree_id int not null,
  34705. foreign key (phylotree_id) references phylotree (phylotree_id) on delete cascade,
  34706. pub_id int not null,
  34707. foreign key (pub_id) references pub (pub_id) on delete cascade,
  34708. unique(phylotree_id, pub_id)
  34709. );
  34710. create index phylotree_pub_idx1 on phylotree_pub (phylotree_id);
  34711. create index phylotree_pub_idx2 on phylotree_pub (pub_id);
  34712. COMMENT ON TABLE phylotree_pub IS 'Tracks citations global to the tree e.g. multiple sequence alignment supporting tree construction.';
  34713. -- ================================================
  34714. -- TABLE: phylonode
  34715. -- ================================================
  34716. create table phylonode (
  34717. phylonode_id serial not null,
  34718. primary key (phylonode_id),
  34719. phylotree_id int not null,
  34720. foreign key (phylotree_id) references phylotree (phylotree_id) on delete cascade,
  34721. parent_phylonode_id int null,
  34722. foreign key (parent_phylonode_id) references phylonode (phylonode_id) on delete cascade,
  34723. left_idx int not null,
  34724. right_idx int not null,
  34725. type_id int,
  34726. foreign key(type_id) references cvterm (cvterm_id) on delete cascade,
  34727. feature_id int,
  34728. foreign key (feature_id) references feature (feature_id) on delete cascade,
  34729. label varchar(255) null,
  34730. distance float null,
  34731. -- Bootstrap float null.
  34732. unique(phylotree_id, left_idx),
  34733. unique(phylotree_id, right_idx)
  34734. );
  34735. COMMENT ON TABLE phylonode IS 'This is the most pervasive
  34736. element in the phylogeny module, cataloging the "phylonodes" of
  34737. tree graphs. Edges are implied by the parent_phylonode_id
  34738. reflexive closure. For all nodes in a nested set implementation the left and right index will be *between* the parents left and right indexes.';
  34739. 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.';
  34740. COMMENT ON COLUMN phylonode.type_id IS 'Type: e.g. root, interior, leaf.';
  34741. COMMENT ON COLUMN phylonode.parent_phylonode_id IS 'Root phylonode can have null parent_phylonode_id value.';
  34742. -- ================================================
  34743. -- TABLE: phylonode_dbxref
  34744. -- ================================================
  34745. create table phylonode_dbxref (
  34746. phylonode_dbxref_id serial not null,
  34747. primary key (phylonode_dbxref_id),
  34748. phylonode_id int not null,
  34749. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  34750. dbxref_id int not null,
  34751. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade,
  34752. unique(phylonode_id,dbxref_id)
  34753. );
  34754. create index phylonode_dbxref_idx1 on phylonode_dbxref (phylonode_id);
  34755. create index phylonode_dbxref_idx2 on phylonode_dbxref (dbxref_id);
  34756. 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.';
  34757. -- ================================================
  34758. -- TABLE: phylonode_pub
  34759. -- ================================================
  34760. create table phylonode_pub (
  34761. phylonode_pub_id serial not null,
  34762. primary key (phylonode_pub_id),
  34763. phylonode_id int not null,
  34764. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  34765. pub_id int not null,
  34766. foreign key (pub_id) references pub (pub_id) on delete cascade,
  34767. unique(phylonode_id, pub_id)
  34768. );
  34769. create index phylonode_pub_idx1 on phylonode_pub (phylonode_id);
  34770. create index phylonode_pub_idx2 on phylonode_pub (pub_id);
  34771. -- ================================================
  34772. -- TABLE: phylonode_organism
  34773. -- ================================================
  34774. create table phylonode_organism (
  34775. phylonode_organism_id serial not null,
  34776. primary key (phylonode_organism_id),
  34777. phylonode_id int not null,
  34778. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  34779. organism_id int not null,
  34780. foreign key (organism_id) references organism (organism_id) on delete cascade,
  34781. unique(phylonode_id)
  34782. );
  34783. create index phylonode_organism_idx1 on phylonode_organism (phylonode_id);
  34784. create index phylonode_organism_idx2 on phylonode_organism (organism_id);
  34785. 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).';
  34786. COMMENT ON COLUMN phylonode_organism.phylonode_id IS 'One phylonode cannot refer to >1 organism.';
  34787. -- ================================================
  34788. -- TABLE: phylonodeprop
  34789. -- ================================================
  34790. create table phylonodeprop (
  34791. phylonodeprop_id serial not null,
  34792. primary key (phylonodeprop_id),
  34793. phylonode_id int not null,
  34794. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  34795. type_id int not null,
  34796. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  34797. value text not null default '',
  34798. -- It is not clear how useful the rank concept is here, leave it in for now.
  34799. rank int not null default 0,
  34800. unique(phylonode_id, type_id, value, rank)
  34801. );
  34802. create index phylonodeprop_idx1 on phylonodeprop (phylonode_id);
  34803. create index phylonodeprop_idx2 on phylonodeprop (type_id);
  34804. 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.';
  34805. -- ================================================
  34806. -- TABLE: phylonode_relationship
  34807. -- ================================================
  34808. create table phylonode_relationship (
  34809. phylonode_relationship_id serial not null,
  34810. primary key (phylonode_relationship_id),
  34811. subject_id int not null,
  34812. foreign key (subject_id) references phylonode (phylonode_id) on delete cascade,
  34813. object_id int not null,
  34814. foreign key (object_id) references phylonode (phylonode_id) on delete cascade,
  34815. type_id int not null,
  34816. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  34817. rank int,
  34818. phylotree_id int not null,
  34819. foreign key (phylotree_id) references phylotree (phylotree_id) on delete cascade,
  34820. unique(subject_id, object_id, type_id)
  34821. );
  34822. create index phylonode_relationship_idx1 on phylonode_relationship (subject_id);
  34823. create index phylonode_relationship_idx2 on phylonode_relationship (object_id);
  34824. create index phylonode_relationship_idx3 on phylonode_relationship (type_id);
  34825. COMMENT ON TABLE phylonode_relationship IS 'This is for
  34826. relationships that are not strictly hierarchical; for example,
  34827. horizontal gene transfer. Most phylogenetic trees are strictly
  34828. hierarchical, nevertheless it is here for completeness.';
  34829. CREATE OR REPLACE FUNCTION phylonode_depth(INT)
  34830. RETURNS FLOAT AS
  34831. 'DECLARE id ALIAS FOR $1;
  34832. DECLARE depth FLOAT := 0;
  34833. DECLARE curr_node phylonode%ROWTYPE;
  34834. BEGIN
  34835. SELECT INTO curr_node *
  34836. FROM phylonode
  34837. WHERE phylonode_id=id;
  34838. depth = depth + curr_node.distance;
  34839. IF curr_node.parent_phylonode_id IS NULL
  34840. THEN RETURN depth;
  34841. ELSE RETURN depth + phylonode_depth(curr_node.parent_phylonode_id);
  34842. END IF;
  34843. END
  34844. '
  34845. LANGUAGE 'plpgsql';
  34846. CREATE OR REPLACE FUNCTION phylonode_height(INT)
  34847. RETURNS FLOAT AS
  34848. '
  34849. SELECT coalesce(max(phylonode_height(phylonode_id) + distance), 0.0)
  34850. FROM phylonode
  34851. WHERE parent_phylonode_id = $1
  34852. '
  34853. LANGUAGE 'sql';
  34854. -- ==========================================
  34855. -- Chado contact module
  34856. --
  34857. -- =================================================================
  34858. -- Dependencies:
  34859. --
  34860. -- :import cvterm from cv
  34861. -- =================================================================
  34862. -- ================================================
  34863. -- TABLE: contact
  34864. -- ================================================
  34865. create table contact (
  34866. contact_id serial not null,
  34867. primary key (contact_id),
  34868. type_id int null,
  34869. foreign key (type_id) references cvterm (cvterm_id),
  34870. name varchar(255) not null,
  34871. description varchar(255) null,
  34872. constraint contact_c1 unique (name)
  34873. );
  34874. COMMENT ON TABLE contact IS 'Model persons, institutes, groups, organizations, etc.';
  34875. COMMENT ON COLUMN contact.type_id IS 'What type of contact is this? E.g. "person", "lab".';
  34876. -- ================================================
  34877. -- TABLE: contact_relationship
  34878. -- ================================================
  34879. create table contact_relationship (
  34880. contact_relationship_id serial not null,
  34881. primary key (contact_relationship_id),
  34882. type_id int not null,
  34883. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  34884. subject_id int not null,
  34885. foreign key (subject_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  34886. object_id int not null,
  34887. foreign key (object_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  34888. constraint contact_relationship_c1 unique (subject_id,object_id,type_id)
  34889. );
  34890. create index contact_relationship_idx1 on contact_relationship (type_id);
  34891. create index contact_relationship_idx2 on contact_relationship (subject_id);
  34892. create index contact_relationship_idx3 on contact_relationship (object_id);
  34893. COMMENT ON TABLE contact_relationship IS 'Model relationships between contacts';
  34894. 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.';
  34895. 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.';
  34896. 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.';
  34897. -- ==========================================
  34898. -- Chado expression module
  34899. --
  34900. -- =================================================================
  34901. -- Dependencies:
  34902. --
  34903. -- :import feature from sequence
  34904. -- :import cvterm from cv
  34905. -- :import pub from pub
  34906. -- =================================================================
  34907. -- ================================================
  34908. -- TABLE: expression
  34909. -- ================================================
  34910. create table expression (
  34911. expression_id serial not null,
  34912. primary key (expression_id),
  34913. uniquename text not null,
  34914. md5checksum character(32),
  34915. description text,
  34916. constraint expression_c1 unique(uniquename)
  34917. );
  34918. COMMENT ON TABLE expression IS 'The expression table is essentially a bridge table.';
  34919. -- ================================================
  34920. -- TABLE: expression_cvterm
  34921. -- ================================================
  34922. create table expression_cvterm (
  34923. expression_cvterm_id serial not null,
  34924. primary key (expression_cvterm_id),
  34925. expression_id int not null,
  34926. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  34927. cvterm_id int not null,
  34928. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  34929. rank int not null default 0,
  34930. cvterm_type_id int not null,
  34931. foreign key (cvterm_type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  34932. constraint expression_cvterm_c1 unique(expression_id,cvterm_id,cvterm_type_id)
  34933. );
  34934. create index expression_cvterm_idx1 on expression_cvterm (expression_id);
  34935. create index expression_cvterm_idx2 on expression_cvterm (cvterm_id);
  34936. create index expression_cvterm_idx3 on expression_cvterm (cvterm_type_id);
  34937. --================================================
  34938. -- TABLE: expression_cvtermprop
  34939. -- ================================================
  34940. create table expression_cvtermprop (
  34941. expression_cvtermprop_id serial not null,
  34942. primary key (expression_cvtermprop_id),
  34943. expression_cvterm_id int not null,
  34944. foreign key (expression_cvterm_id) references expression_cvterm (expression_cvterm_id) on delete cascade INITIALLY DEFERRED,
  34945. type_id int not null,
  34946. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  34947. value text null,
  34948. rank int not null default 0,
  34949. constraint expression_cvtermprop_c1 unique (expression_cvterm_id,type_id,rank)
  34950. );
  34951. create index expression_cvtermprop_idx1 on expression_cvtermprop (expression_cvterm_id);
  34952. create index expression_cvtermprop_idx2 on expression_cvtermprop (type_id);
  34953. COMMENT ON TABLE expression_cvtermprop IS 'Extensible properties for
  34954. expression to cvterm associations. Examples: qualifiers.';
  34955. COMMENT ON COLUMN expression_cvtermprop.type_id IS 'The name of the
  34956. property/slot is a cvterm. The meaning of the property is defined in
  34957. that cvterm. For example, cvterms may come from the FlyBase miscellaneous cv.';
  34958. COMMENT ON COLUMN expression_cvtermprop.value IS 'The value of the
  34959. property, represented as text. Numeric values are converted to their
  34960. text representation. This is less efficient than using native database
  34961. types, but is easier to query.';
  34962. COMMENT ON COLUMN expression_cvtermprop.rank IS 'Property-Value
  34963. ordering. Any expression_cvterm can have multiple values for any particular
  34964. property type - these are ordered in a list using rank, counting from
  34965. zero. For properties that are single-valued rather than multi-valued,
  34966. the default 0 value should be used.';
  34967. -- ================================================
  34968. -- TABLE: expressionprop
  34969. -- ================================================
  34970. create table expressionprop (
  34971. expressionprop_id serial not null,
  34972. primary key (expressionprop_id),
  34973. expression_id int not null,
  34974. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  34975. type_id int not null,
  34976. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  34977. value text null,
  34978. rank int not null default 0,
  34979. constraint expressionprop_c1 unique (expression_id,type_id,rank)
  34980. );
  34981. create index expressionprop_idx1 on expressionprop (expression_id);
  34982. create index expressionprop_idx2 on expressionprop (type_id);
  34983. -- ================================================
  34984. -- TABLE: expression_pub
  34985. -- ================================================
  34986. create table expression_pub (
  34987. expression_pub_id serial not null,
  34988. primary key (expression_pub_id),
  34989. expression_id int not null,
  34990. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  34991. pub_id int not null,
  34992. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  34993. constraint expression_pub_c1 unique(expression_id,pub_id)
  34994. );
  34995. create index expression_pub_idx1 on expression_pub (expression_id);
  34996. create index expression_pub_idx2 on expression_pub (pub_id);
  34997. -- ================================================
  34998. -- TABLE: feature_expression
  34999. -- ================================================
  35000. create table feature_expression (
  35001. feature_expression_id serial not null,
  35002. primary key (feature_expression_id),
  35003. expression_id int not null,
  35004. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  35005. feature_id int not null,
  35006. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  35007. pub_id int not null,
  35008. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35009. constraint feature_expression_c1 unique(expression_id,feature_id,pub_id)
  35010. );
  35011. create index feature_expression_idx1 on feature_expression (expression_id);
  35012. create index feature_expression_idx2 on feature_expression (feature_id);
  35013. create index feature_expression_idx3 on feature_expression (pub_id);
  35014. -- ================================================
  35015. -- TABLE: feature_expressionprop
  35016. -- ================================================
  35017. create table feature_expressionprop (
  35018. feature_expressionprop_id serial not null,
  35019. primary key (feature_expressionprop_id),
  35020. feature_expression_id int not null,
  35021. foreign key (feature_expression_id) references feature_expression (feature_expression_id) on delete cascade INITIALLY DEFERRED,
  35022. type_id int not null,
  35023. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35024. value text null,
  35025. rank int not null default 0,
  35026. constraint feature_expressionprop_c1 unique (feature_expression_id,type_id,rank)
  35027. );
  35028. create index feature_expressionprop_idx1 on feature_expressionprop (feature_expression_id);
  35029. create index feature_expressionprop_idx2 on feature_expressionprop (type_id);
  35030. COMMENT ON TABLE feature_expressionprop IS 'Extensible properties for
  35031. feature_expression (comments, for example). Modeled on feature_cvtermprop.';
  35032. -- ================================================
  35033. -- TABLE: eimage
  35034. -- ================================================
  35035. create table eimage (
  35036. eimage_id serial not null,
  35037. primary key (eimage_id),
  35038. eimage_data text,
  35039. eimage_type varchar(255) not null,
  35040. image_uri varchar(255)
  35041. );
  35042. COMMENT ON COLUMN eimage.eimage_data IS 'We expect images in eimage_data (e.g. JPEGs) to be uuencoded.';
  35043. COMMENT ON COLUMN eimage.eimage_type IS 'Describes the type of data in eimage_data.';
  35044. -- ================================================
  35045. -- TABLE: expression_image
  35046. -- ================================================
  35047. create table expression_image (
  35048. expression_image_id serial not null,
  35049. primary key (expression_image_id),
  35050. expression_id int not null,
  35051. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  35052. eimage_id int not null,
  35053. foreign key (eimage_id) references eimage (eimage_id) on delete cascade INITIALLY DEFERRED,
  35054. constraint expression_image_c1 unique(expression_id,eimage_id)
  35055. );
  35056. create index expression_image_idx1 on expression_image (expression_id);
  35057. create index expression_image_idx2 on expression_image (eimage_id);
  35058. -- =================================================================
  35059. -- Dependencies:
  35060. --
  35061. -- :import cvterm from cv
  35062. -- :import pub from pub
  35063. -- :import contact from contact
  35064. -- =================================================================
  35065. -- ================================================
  35066. -- TABLE: project
  35067. -- ================================================
  35068. create table project (
  35069. project_id serial not null,
  35070. primary key (project_id),
  35071. name varchar(255) not null,
  35072. description varchar(255) not null,
  35073. constraint project_c1 unique (name)
  35074. );
  35075. COMMENT ON TABLE project IS NULL;
  35076. -- ================================================
  35077. -- TABLE: projectprop
  35078. -- ================================================
  35079. CREATE TABLE projectprop (
  35080. projectprop_id serial NOT NULL,
  35081. PRIMARY KEY (projectprop_id),
  35082. project_id integer NOT NULL,
  35083. FOREIGN KEY (project_id) REFERENCES project (project_id) ON DELETE CASCADE,
  35084. type_id integer NOT NULL,
  35085. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  35086. value text,
  35087. rank integer not null default 0,
  35088. CONSTRAINT projectprop_c1 UNIQUE (project_id, type_id, rank)
  35089. );
  35090. -- ================================================
  35091. -- TABLE: project_relationship
  35092. -- ================================================
  35093. CREATE TABLE project_relationship (
  35094. project_relationship_id serial NOT NULL,
  35095. PRIMARY KEY (project_relationship_id),
  35096. subject_project_id integer NOT NULL,
  35097. FOREIGN KEY (subject_project_id) REFERENCES project (project_id) ON DELETE CASCADE,
  35098. object_project_id integer NOT NULL,
  35099. FOREIGN KEY (object_project_id) REFERENCES project (project_id) ON DELETE CASCADE,
  35100. type_id integer NOT NULL,
  35101. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE RESTRICT,
  35102. CONSTRAINT project_relationship_c1 UNIQUE (subject_project_id, object_project_id, type_id)
  35103. );
  35104. COMMENT ON TABLE project_relationship IS 'A project can be composed of several smaller scale projects';
  35105. COMMENT ON COLUMN project_relationship.type_id IS 'The type of relationship being stated, such as "is part of".';
  35106. create table project_pub (
  35107. project_pub_id serial not null,
  35108. primary key (project_pub_id),
  35109. project_id int not null,
  35110. foreign key (project_id) references project (project_id) on delete cascade INITIALLY DEFERRED,
  35111. pub_id int not null,
  35112. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35113. constraint project_pub_c1 unique (project_id,pub_id)
  35114. );
  35115. create index project_pub_idx1 on project_pub (project_id);
  35116. create index project_pub_idx2 on project_pub (pub_id);
  35117. COMMENT ON TABLE project_pub IS 'Linking project(s) to publication(s)';
  35118. create table project_contact (
  35119. project_contact_id serial not null,
  35120. primary key (project_contact_id),
  35121. project_id int not null,
  35122. foreign key (project_id) references project (project_id) on delete cascade INITIALLY DEFERRED,
  35123. contact_id int not null,
  35124. foreign key (contact_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  35125. constraint project_contact_c1 unique (project_id,contact_id)
  35126. );
  35127. create index project_contact_idx1 on project_contact (project_id);
  35128. create index project_contact_idx2 on project_contact (contact_id);
  35129. COMMENT ON TABLE project_contact IS 'Linking project(s) to contact(s)';
  35130. -- ==========================================
  35131. -- Chado mage module
  35132. --
  35133. -- =================================================================
  35134. -- Dependencies:
  35135. --
  35136. -- :import feature from sequence
  35137. -- :import cvterm from cv
  35138. -- :import pub from pub
  35139. -- :import organism from organism
  35140. -- :import contact from contact
  35141. -- :import dbxref from general
  35142. -- :import tableinfo from general
  35143. -- :import project from project
  35144. -- :import analysis from companalysis
  35145. -- =================================================================
  35146. -- ================================================
  35147. -- TABLE: mageml
  35148. -- ================================================
  35149. create table mageml (
  35150. mageml_id serial not null,
  35151. primary key (mageml_id),
  35152. mage_package text not null,
  35153. mage_ml text not null
  35154. );
  35155. 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.';
  35156. -- ================================================
  35157. -- TABLE: magedocumentation
  35158. -- ================================================
  35159. create table magedocumentation (
  35160. magedocumentation_id serial not null,
  35161. primary key (magedocumentation_id),
  35162. mageml_id int not null,
  35163. foreign key (mageml_id) references mageml (mageml_id) on delete cascade INITIALLY DEFERRED,
  35164. tableinfo_id int not null,
  35165. foreign key (tableinfo_id) references tableinfo (tableinfo_id) on delete cascade INITIALLY DEFERRED,
  35166. row_id int not null,
  35167. mageidentifier text not null
  35168. );
  35169. create index magedocumentation_idx1 on magedocumentation (mageml_id);
  35170. create index magedocumentation_idx2 on magedocumentation (tableinfo_id);
  35171. create index magedocumentation_idx3 on magedocumentation (row_id);
  35172. COMMENT ON TABLE magedocumentation IS NULL;
  35173. -- ================================================
  35174. -- TABLE: protocol
  35175. -- ================================================
  35176. create table protocol (
  35177. protocol_id serial not null,
  35178. primary key (protocol_id),
  35179. type_id int not null,
  35180. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35181. pub_id int null,
  35182. foreign key (pub_id) references pub (pub_id) on delete set null INITIALLY DEFERRED,
  35183. dbxref_id int null,
  35184. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  35185. name text not null,
  35186. uri text null,
  35187. protocoldescription text null,
  35188. hardwaredescription text null,
  35189. softwaredescription text null,
  35190. constraint protocol_c1 unique (name)
  35191. );
  35192. create index protocol_idx1 on protocol (type_id);
  35193. create index protocol_idx2 on protocol (pub_id);
  35194. create index protocol_idx3 on protocol (dbxref_id);
  35195. COMMENT ON TABLE protocol IS 'Procedural notes on how data was prepared and processed.';
  35196. -- ================================================
  35197. -- TABLE: protocolparam
  35198. -- ================================================
  35199. create table protocolparam (
  35200. protocolparam_id serial not null,
  35201. primary key (protocolparam_id),
  35202. protocol_id int not null,
  35203. foreign key (protocol_id) references protocol (protocol_id) on delete cascade INITIALLY DEFERRED,
  35204. name text not null,
  35205. datatype_id int null,
  35206. foreign key (datatype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  35207. unittype_id int null,
  35208. foreign key (unittype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  35209. value text null,
  35210. rank int not null default 0
  35211. );
  35212. create index protocolparam_idx1 on protocolparam (protocol_id);
  35213. create index protocolparam_idx2 on protocolparam (datatype_id);
  35214. create index protocolparam_idx3 on protocolparam (unittype_id);
  35215. COMMENT ON TABLE protocolparam IS 'Parameters related to a
  35216. protocol. For example, if the protocol is a soak, this might include attributes of bath temperature and duration.';
  35217. -- ================================================
  35218. -- TABLE: channel
  35219. -- ================================================
  35220. create table channel (
  35221. channel_id serial not null,
  35222. primary key (channel_id),
  35223. name text not null,
  35224. definition text not null,
  35225. constraint channel_c1 unique (name)
  35226. );
  35227. 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).';
  35228. -- ================================================
  35229. -- TABLE: arraydesign
  35230. -- ================================================
  35231. create table arraydesign (
  35232. arraydesign_id serial not null,
  35233. primary key (arraydesign_id),
  35234. manufacturer_id int not null,
  35235. foreign key (manufacturer_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  35236. platformtype_id int not null,
  35237. foreign key (platformtype_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35238. substratetype_id int null,
  35239. foreign key (substratetype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  35240. protocol_id int null,
  35241. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  35242. dbxref_id int null,
  35243. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  35244. name text not null,
  35245. version text null,
  35246. description text null,
  35247. array_dimensions text null,
  35248. element_dimensions text null,
  35249. num_of_elements int null,
  35250. num_array_columns int null,
  35251. num_array_rows int null,
  35252. num_grid_columns int null,
  35253. num_grid_rows int null,
  35254. num_sub_columns int null,
  35255. num_sub_rows int null,
  35256. constraint arraydesign_c1 unique (name)
  35257. );
  35258. create index arraydesign_idx1 on arraydesign (manufacturer_id);
  35259. create index arraydesign_idx2 on arraydesign (platformtype_id);
  35260. create index arraydesign_idx3 on arraydesign (substratetype_id);
  35261. create index arraydesign_idx4 on arraydesign (protocol_id);
  35262. create index arraydesign_idx5 on arraydesign (dbxref_id);
  35263. COMMENT ON TABLE arraydesign IS 'General properties about an array.
  35264. An array is a template used to generate physical slides, etc. It
  35265. contains layout information, as well as global array properties, such
  35266. as material (glass, nylon) and spot dimensions (in rows/columns).';
  35267. -- ================================================
  35268. -- TABLE: arraydesignprop
  35269. -- ================================================
  35270. create table arraydesignprop (
  35271. arraydesignprop_id serial not null,
  35272. primary key (arraydesignprop_id),
  35273. arraydesign_id int not null,
  35274. foreign key (arraydesign_id) references arraydesign (arraydesign_id) on delete cascade INITIALLY DEFERRED,
  35275. type_id int not null,
  35276. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35277. value text null,
  35278. rank int not null default 0,
  35279. constraint arraydesignprop_c1 unique (arraydesign_id,type_id,rank)
  35280. );
  35281. create index arraydesignprop_idx1 on arraydesignprop (arraydesign_id);
  35282. create index arraydesignprop_idx2 on arraydesignprop (type_id);
  35283. COMMENT ON TABLE arraydesignprop IS 'Extra array design properties that are not accounted for in arraydesign.';
  35284. -- ================================================
  35285. -- TABLE: assay
  35286. -- ================================================
  35287. create table assay (
  35288. assay_id serial not null,
  35289. primary key (assay_id),
  35290. arraydesign_id int not null,
  35291. foreign key (arraydesign_id) references arraydesign (arraydesign_id) on delete cascade INITIALLY DEFERRED,
  35292. protocol_id int null,
  35293. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  35294. assaydate timestamp null default current_timestamp,
  35295. arrayidentifier text null,
  35296. arraybatchidentifier text null,
  35297. operator_id int not null,
  35298. foreign key (operator_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  35299. dbxref_id int null,
  35300. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  35301. name text null,
  35302. description text null,
  35303. constraint assay_c1 unique (name)
  35304. );
  35305. create index assay_idx1 on assay (arraydesign_id);
  35306. create index assay_idx2 on assay (protocol_id);
  35307. create index assay_idx3 on assay (operator_id);
  35308. create index assay_idx4 on assay (dbxref_id);
  35309. COMMENT ON TABLE assay IS 'An assay consists of a physical instance of
  35310. an array, combined with the conditions used to create the array
  35311. (protocols, technician information). The assay can be thought of as a hybridization.';
  35312. -- ================================================
  35313. -- TABLE: assayprop
  35314. -- ================================================
  35315. create table assayprop (
  35316. assayprop_id serial not null,
  35317. primary key (assayprop_id),
  35318. assay_id int not null,
  35319. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  35320. type_id int not null,
  35321. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35322. value text null,
  35323. rank int not null default 0,
  35324. constraint assayprop_c1 unique (assay_id,type_id,rank)
  35325. );
  35326. create index assayprop_idx1 on assayprop (assay_id);
  35327. create index assayprop_idx2 on assayprop (type_id);
  35328. COMMENT ON TABLE assayprop IS 'Extra assay properties that are not accounted for in assay.';
  35329. -- ================================================
  35330. -- TABLE: assay_project
  35331. -- ================================================
  35332. create table assay_project (
  35333. assay_project_id serial not null,
  35334. primary key (assay_project_id),
  35335. assay_id int not null,
  35336. foreign key (assay_id) references assay (assay_id) INITIALLY DEFERRED,
  35337. project_id int not null,
  35338. foreign key (project_id) references project (project_id) INITIALLY DEFERRED,
  35339. constraint assay_project_c1 unique (assay_id,project_id)
  35340. );
  35341. create index assay_project_idx1 on assay_project (assay_id);
  35342. create index assay_project_idx2 on assay_project (project_id);
  35343. COMMENT ON TABLE assay_project IS 'Link assays to projects.';
  35344. -- ================================================
  35345. -- TABLE: biomaterial
  35346. -- ================================================
  35347. create table biomaterial (
  35348. biomaterial_id serial not null,
  35349. primary key (biomaterial_id),
  35350. taxon_id int null,
  35351. foreign key (taxon_id) references organism (organism_id) on delete set null INITIALLY DEFERRED,
  35352. biosourceprovider_id int null,
  35353. foreign key (biosourceprovider_id) references contact (contact_id) on delete set null INITIALLY DEFERRED,
  35354. dbxref_id int null,
  35355. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  35356. name text null,
  35357. description text null,
  35358. constraint biomaterial_c1 unique (name)
  35359. );
  35360. create index biomaterial_idx1 on biomaterial (taxon_id);
  35361. create index biomaterial_idx2 on biomaterial (biosourceprovider_id);
  35362. create index biomaterial_idx3 on biomaterial (dbxref_id);
  35363. 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.';
  35364. -- ================================================
  35365. -- TABLE: biomaterial_relationship
  35366. -- ================================================
  35367. create table biomaterial_relationship (
  35368. biomaterial_relationship_id serial not null,
  35369. primary key (biomaterial_relationship_id),
  35370. subject_id int not null,
  35371. foreign key (subject_id) references biomaterial (biomaterial_id) INITIALLY DEFERRED,
  35372. type_id int not null,
  35373. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  35374. object_id int not null,
  35375. foreign key (object_id) references biomaterial (biomaterial_id) INITIALLY DEFERRED,
  35376. constraint biomaterial_relationship_c1 unique (subject_id,object_id,type_id)
  35377. );
  35378. create index biomaterial_relationship_idx1 on biomaterial_relationship (subject_id);
  35379. create index biomaterial_relationship_idx2 on biomaterial_relationship (object_id);
  35380. create index biomaterial_relationship_idx3 on biomaterial_relationship (type_id);
  35381. 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.';
  35382. -- ================================================
  35383. -- TABLE: biomaterialprop
  35384. -- ================================================
  35385. create table biomaterialprop (
  35386. biomaterialprop_id serial not null,
  35387. primary key (biomaterialprop_id),
  35388. biomaterial_id int not null,
  35389. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  35390. type_id int not null,
  35391. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35392. value text null,
  35393. rank int not null default 0,
  35394. constraint biomaterialprop_c1 unique (biomaterial_id,type_id,rank)
  35395. );
  35396. create index biomaterialprop_idx1 on biomaterialprop (biomaterial_id);
  35397. create index biomaterialprop_idx2 on biomaterialprop (type_id);
  35398. COMMENT ON TABLE biomaterialprop IS 'Extra biomaterial properties that are not accounted for in biomaterial.';
  35399. -- ================================================
  35400. -- TABLE: biomaterial_dbxref
  35401. -- ================================================
  35402. create table biomaterial_dbxref (
  35403. biomaterial_dbxref_id serial not null,
  35404. primary key (biomaterial_dbxref_id),
  35405. biomaterial_id int not null,
  35406. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  35407. dbxref_id int not null,
  35408. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  35409. constraint biomaterial_dbxref_c1 unique (biomaterial_id,dbxref_id)
  35410. );
  35411. create index biomaterial_dbxref_idx1 on biomaterial_dbxref (biomaterial_id);
  35412. create index biomaterial_dbxref_idx2 on biomaterial_dbxref (dbxref_id);
  35413. -- ================================================
  35414. -- TABLE: treatment
  35415. -- ================================================
  35416. create table treatment (
  35417. treatment_id serial not null,
  35418. primary key (treatment_id),
  35419. rank int not null default 0,
  35420. biomaterial_id int not null,
  35421. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  35422. type_id int not null,
  35423. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35424. protocol_id int null,
  35425. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  35426. name text null
  35427. );
  35428. create index treatment_idx1 on treatment (biomaterial_id);
  35429. create index treatment_idx2 on treatment (type_id);
  35430. create index treatment_idx3 on treatment (protocol_id);
  35431. COMMENT ON TABLE treatment IS 'A biomaterial may undergo multiple
  35432. treatments. Examples of treatments: apoxia, fluorophore and biotin labeling.';
  35433. -- ================================================
  35434. -- TABLE: biomaterial_treatment
  35435. -- ================================================
  35436. create table biomaterial_treatment (
  35437. biomaterial_treatment_id serial not null,
  35438. primary key (biomaterial_treatment_id),
  35439. biomaterial_id int not null,
  35440. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  35441. treatment_id int not null,
  35442. foreign key (treatment_id) references treatment (treatment_id) on delete cascade INITIALLY DEFERRED,
  35443. unittype_id int null,
  35444. foreign key (unittype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  35445. value float(15) null,
  35446. rank int not null default 0,
  35447. constraint biomaterial_treatment_c1 unique (biomaterial_id,treatment_id)
  35448. );
  35449. create index biomaterial_treatment_idx1 on biomaterial_treatment (biomaterial_id);
  35450. create index biomaterial_treatment_idx2 on biomaterial_treatment (treatment_id);
  35451. create index biomaterial_treatment_idx3 on biomaterial_treatment (unittype_id);
  35452. COMMENT ON TABLE biomaterial_treatment IS 'Link biomaterials to treatments. Treatments have an order of operations (rank), and associated measurements (unittype_id, value).';
  35453. -- ================================================
  35454. -- TABLE: assay_biomaterial
  35455. -- ================================================
  35456. create table assay_biomaterial (
  35457. assay_biomaterial_id serial not null,
  35458. primary key (assay_biomaterial_id),
  35459. assay_id int not null,
  35460. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  35461. biomaterial_id int not null,
  35462. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  35463. channel_id int null,
  35464. foreign key (channel_id) references channel (channel_id) on delete set null INITIALLY DEFERRED,
  35465. rank int not null default 0,
  35466. constraint assay_biomaterial_c1 unique (assay_id,biomaterial_id,channel_id,rank)
  35467. );
  35468. create index assay_biomaterial_idx1 on assay_biomaterial (assay_id);
  35469. create index assay_biomaterial_idx2 on assay_biomaterial (biomaterial_id);
  35470. create index assay_biomaterial_idx3 on assay_biomaterial (channel_id);
  35471. 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).';
  35472. -- ================================================
  35473. -- TABLE: acquisition
  35474. -- ================================================
  35475. create table acquisition (
  35476. acquisition_id serial not null,
  35477. primary key (acquisition_id),
  35478. assay_id int not null,
  35479. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  35480. protocol_id int null,
  35481. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  35482. channel_id int null,
  35483. foreign key (channel_id) references channel (channel_id) on delete set null INITIALLY DEFERRED,
  35484. acquisitiondate timestamp null default current_timestamp,
  35485. name text null,
  35486. uri text null,
  35487. constraint acquisition_c1 unique (name)
  35488. );
  35489. create index acquisition_idx1 on acquisition (assay_id);
  35490. create index acquisition_idx2 on acquisition (protocol_id);
  35491. create index acquisition_idx3 on acquisition (channel_id);
  35492. 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.';
  35493. -- ================================================
  35494. -- TABLE: acquisitionprop
  35495. -- ================================================
  35496. create table acquisitionprop (
  35497. acquisitionprop_id serial not null,
  35498. primary key (acquisitionprop_id),
  35499. acquisition_id int not null,
  35500. foreign key (acquisition_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  35501. type_id int not null,
  35502. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35503. value text null,
  35504. rank int not null default 0,
  35505. constraint acquisitionprop_c1 unique (acquisition_id,type_id,rank)
  35506. );
  35507. create index acquisitionprop_idx1 on acquisitionprop (acquisition_id);
  35508. create index acquisitionprop_idx2 on acquisitionprop (type_id);
  35509. COMMENT ON TABLE acquisitionprop IS 'Parameters associated with image acquisition.';
  35510. -- ================================================
  35511. -- TABLE: acquisition_relationship
  35512. -- ================================================
  35513. create table acquisition_relationship (
  35514. acquisition_relationship_id serial not null,
  35515. primary key (acquisition_relationship_id),
  35516. subject_id int not null,
  35517. foreign key (subject_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  35518. type_id int not null,
  35519. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35520. object_id int not null,
  35521. foreign key (object_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  35522. value text null,
  35523. rank int not null default 0,
  35524. constraint acquisition_relationship_c1 unique (subject_id,object_id,type_id,rank)
  35525. );
  35526. create index acquisition_relationship_idx1 on acquisition_relationship (subject_id);
  35527. create index acquisition_relationship_idx2 on acquisition_relationship (type_id);
  35528. create index acquisition_relationship_idx3 on acquisition_relationship (object_id);
  35529. 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.';
  35530. -- ================================================
  35531. -- TABLE: quantification
  35532. -- ================================================
  35533. create table quantification (
  35534. quantification_id serial not null,
  35535. primary key (quantification_id),
  35536. acquisition_id int not null,
  35537. foreign key (acquisition_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  35538. operator_id int null,
  35539. foreign key (operator_id) references contact (contact_id) on delete set null INITIALLY DEFERRED,
  35540. protocol_id int null,
  35541. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  35542. analysis_id int not null,
  35543. foreign key (analysis_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  35544. quantificationdate timestamp null default current_timestamp,
  35545. name text null,
  35546. uri text null,
  35547. constraint quantification_c1 unique (name,analysis_id)
  35548. );
  35549. create index quantification_idx1 on quantification (acquisition_id);
  35550. create index quantification_idx2 on quantification (operator_id);
  35551. create index quantification_idx3 on quantification (protocol_id);
  35552. create index quantification_idx4 on quantification (analysis_id);
  35553. COMMENT ON TABLE quantification IS 'Quantification is the transformation of an image acquisition to numeric data. This typically involves statistical procedures.';
  35554. -- ================================================
  35555. -- TABLE: quantificationprop
  35556. -- ================================================
  35557. create table quantificationprop (
  35558. quantificationprop_id serial not null,
  35559. primary key (quantificationprop_id),
  35560. quantification_id int not null,
  35561. foreign key (quantification_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  35562. type_id int not null,
  35563. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35564. value text null,
  35565. rank int not null default 0,
  35566. constraint quantificationprop_c1 unique (quantification_id,type_id,rank)
  35567. );
  35568. create index quantificationprop_idx1 on quantificationprop (quantification_id);
  35569. create index quantificationprop_idx2 on quantificationprop (type_id);
  35570. COMMENT ON TABLE quantificationprop IS 'Extra quantification properties that are not accounted for in quantification.';
  35571. -- ================================================
  35572. -- TABLE: quantification_relationship
  35573. -- ================================================
  35574. create table quantification_relationship (
  35575. quantification_relationship_id serial not null,
  35576. primary key (quantification_relationship_id),
  35577. subject_id int not null,
  35578. foreign key (subject_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  35579. type_id int not null,
  35580. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35581. object_id int not null,
  35582. foreign key (object_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  35583. constraint quantification_relationship_c1 unique (subject_id,object_id,type_id)
  35584. );
  35585. create index quantification_relationship_idx1 on quantification_relationship (subject_id);
  35586. create index quantification_relationship_idx2 on quantification_relationship (type_id);
  35587. create index quantification_relationship_idx3 on quantification_relationship (object_id);
  35588. 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.';
  35589. -- ================================================
  35590. -- TABLE: control
  35591. -- ================================================
  35592. create table control (
  35593. control_id serial not null,
  35594. primary key (control_id),
  35595. type_id int not null,
  35596. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35597. assay_id int not null,
  35598. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  35599. tableinfo_id int not null,
  35600. foreign key (tableinfo_id) references tableinfo (tableinfo_id) on delete cascade INITIALLY DEFERRED,
  35601. row_id int not null,
  35602. name text null,
  35603. value text null,
  35604. rank int not null default 0
  35605. );
  35606. create index control_idx1 on control (type_id);
  35607. create index control_idx2 on control (assay_id);
  35608. create index control_idx3 on control (tableinfo_id);
  35609. create index control_idx4 on control (row_id);
  35610. COMMENT ON TABLE control IS NULL;
  35611. -- ================================================
  35612. -- TABLE: element
  35613. -- ================================================
  35614. create table element (
  35615. element_id serial not null,
  35616. primary key (element_id),
  35617. feature_id int null,
  35618. foreign key (feature_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  35619. arraydesign_id int not null,
  35620. foreign key (arraydesign_id) references arraydesign (arraydesign_id) on delete cascade INITIALLY DEFERRED,
  35621. type_id int null,
  35622. foreign key (type_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  35623. dbxref_id int null,
  35624. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  35625. constraint element_c1 unique (feature_id,arraydesign_id)
  35626. );
  35627. create index element_idx1 on element (feature_id);
  35628. create index element_idx2 on element (arraydesign_id);
  35629. create index element_idx3 on element (type_id);
  35630. create index element_idx4 on element (dbxref_id);
  35631. COMMENT ON TABLE element IS 'Represents a feature of the array. This is typically a region of the array coated or bound to DNA.';
  35632. -- ================================================
  35633. -- TABLE: element_result
  35634. -- ================================================
  35635. create table elementresult (
  35636. elementresult_id serial not null,
  35637. primary key (elementresult_id),
  35638. element_id int not null,
  35639. foreign key (element_id) references element (element_id) on delete cascade INITIALLY DEFERRED,
  35640. quantification_id int not null,
  35641. foreign key (quantification_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  35642. signal float not null,
  35643. constraint elementresult_c1 unique (element_id,quantification_id)
  35644. );
  35645. create index elementresult_idx1 on elementresult (element_id);
  35646. create index elementresult_idx2 on elementresult (quantification_id);
  35647. create index elementresult_idx3 on elementresult (signal);
  35648. 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.';
  35649. -- ================================================
  35650. -- TABLE: element_relationship
  35651. -- ================================================
  35652. create table element_relationship (
  35653. element_relationship_id serial not null,
  35654. primary key (element_relationship_id),
  35655. subject_id int not null,
  35656. foreign key (subject_id) references element (element_id) INITIALLY DEFERRED,
  35657. type_id int not null,
  35658. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  35659. object_id int not null,
  35660. foreign key (object_id) references element (element_id) INITIALLY DEFERRED,
  35661. value text null,
  35662. rank int not null default 0,
  35663. constraint element_relationship_c1 unique (subject_id,object_id,type_id,rank)
  35664. );
  35665. create index element_relationship_idx1 on element_relationship (subject_id);
  35666. create index element_relationship_idx2 on element_relationship (type_id);
  35667. create index element_relationship_idx3 on element_relationship (object_id);
  35668. create index element_relationship_idx4 on element_relationship (value);
  35669. 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.';
  35670. -- ================================================
  35671. -- TABLE: elementresult_relationship
  35672. -- ================================================
  35673. create table elementresult_relationship (
  35674. elementresult_relationship_id serial not null,
  35675. primary key (elementresult_relationship_id),
  35676. subject_id int not null,
  35677. foreign key (subject_id) references elementresult (elementresult_id) INITIALLY DEFERRED,
  35678. type_id int not null,
  35679. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  35680. object_id int not null,
  35681. foreign key (object_id) references elementresult (elementresult_id) INITIALLY DEFERRED,
  35682. value text null,
  35683. rank int not null default 0,
  35684. constraint elementresult_relationship_c1 unique (subject_id,object_id,type_id,rank)
  35685. );
  35686. create index elementresult_relationship_idx1 on elementresult_relationship (subject_id);
  35687. create index elementresult_relationship_idx2 on elementresult_relationship (type_id);
  35688. create index elementresult_relationship_idx3 on elementresult_relationship (object_id);
  35689. create index elementresult_relationship_idx4 on elementresult_relationship (value);
  35690. 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.';
  35691. -- ================================================
  35692. -- TABLE: study
  35693. -- ================================================
  35694. create table study (
  35695. study_id serial not null,
  35696. primary key (study_id),
  35697. contact_id int not null,
  35698. foreign key (contact_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  35699. pub_id int null,
  35700. foreign key (pub_id) references pub (pub_id) on delete set null INITIALLY DEFERRED,
  35701. dbxref_id int null,
  35702. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  35703. name text not null,
  35704. description text null,
  35705. constraint study_c1 unique (name)
  35706. );
  35707. create index study_idx1 on study (contact_id);
  35708. create index study_idx2 on study (pub_id);
  35709. create index study_idx3 on study (dbxref_id);
  35710. COMMENT ON TABLE study IS NULL;
  35711. -- ================================================
  35712. -- TABLE: study_assay
  35713. -- ================================================
  35714. create table study_assay (
  35715. study_assay_id serial not null,
  35716. primary key (study_assay_id),
  35717. study_id int not null,
  35718. foreign key (study_id) references study (study_id) on delete cascade INITIALLY DEFERRED,
  35719. assay_id int not null,
  35720. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  35721. constraint study_assay_c1 unique (study_id,assay_id)
  35722. );
  35723. create index study_assay_idx1 on study_assay (study_id);
  35724. create index study_assay_idx2 on study_assay (assay_id);
  35725. COMMENT ON TABLE study_assay IS NULL;
  35726. -- ================================================
  35727. -- TABLE: studydesign
  35728. -- ================================================
  35729. create table studydesign (
  35730. studydesign_id serial not null,
  35731. primary key (studydesign_id),
  35732. study_id int not null,
  35733. foreign key (study_id) references study (study_id) on delete cascade INITIALLY DEFERRED,
  35734. description text null
  35735. );
  35736. create index studydesign_idx1 on studydesign (study_id);
  35737. COMMENT ON TABLE studydesign IS NULL;
  35738. -- ================================================
  35739. -- TABLE: studydesignprop
  35740. -- ================================================
  35741. create table studydesignprop (
  35742. studydesignprop_id serial not null,
  35743. primary key (studydesignprop_id),
  35744. studydesign_id int not null,
  35745. foreign key (studydesign_id) references studydesign (studydesign_id) on delete cascade INITIALLY DEFERRED,
  35746. type_id int not null,
  35747. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35748. value text null,
  35749. rank int not null default 0,
  35750. constraint studydesignprop_c1 unique (studydesign_id,type_id,rank)
  35751. );
  35752. create index studydesignprop_idx1 on studydesignprop (studydesign_id);
  35753. create index studydesignprop_idx2 on studydesignprop (type_id);
  35754. COMMENT ON TABLE studydesignprop IS NULL;
  35755. -- ================================================
  35756. -- TABLE: studyfactor
  35757. -- ================================================
  35758. create table studyfactor (
  35759. studyfactor_id serial not null,
  35760. primary key (studyfactor_id),
  35761. studydesign_id int not null,
  35762. foreign key (studydesign_id) references studydesign (studydesign_id) on delete cascade INITIALLY DEFERRED,
  35763. type_id int null,
  35764. foreign key (type_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  35765. name text not null,
  35766. description text null
  35767. );
  35768. create index studyfactor_idx1 on studyfactor (studydesign_id);
  35769. create index studyfactor_idx2 on studyfactor (type_id);
  35770. COMMENT ON TABLE studyfactor IS NULL;
  35771. -- ================================================
  35772. -- TABLE: studyfactorvalue
  35773. -- ================================================
  35774. create table studyfactorvalue (
  35775. studyfactorvalue_id serial not null,
  35776. primary key (studyfactorvalue_id),
  35777. studyfactor_id int not null,
  35778. foreign key (studyfactor_id) references studyfactor (studyfactor_id) on delete cascade INITIALLY DEFERRED,
  35779. assay_id int not null,
  35780. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  35781. factorvalue text null,
  35782. name text null,
  35783. rank int not null default 0
  35784. );
  35785. create index studyfactorvalue_idx1 on studyfactorvalue (studyfactor_id);
  35786. create index studyfactorvalue_idx2 on studyfactorvalue (assay_id);
  35787. COMMENT ON TABLE studyfactorvalue IS NULL;
  35788. --
  35789. -- studyprop and studyprop_feature added for Kara Dolinski's group
  35790. --
  35791. -- Here is her description of it:
  35792. --Both of the tables are used for our YFGdb project
  35793. --(http://yfgdb.princeton.edu/), which uses chado.
  35794. --
  35795. --Here is how we use those tables, using the following example:
  35796. --
  35797. --http://yfgdb.princeton.edu/cgi-bin/display.cgi?db=pmid&amp;id=15575969
  35798. --
  35799. --The above data set is represented as a row in the STUDY table. We have
  35800. --lots of attributes that we want to store about each STUDY (status, etc)
  35801. --and in the official schema, the only prop table we could use was the
  35802. --STUDYDESIGN_PROP table. This forced us to go through the STUDYDESIGN
  35803. --table when we often have no real data to store in that table (small
  35804. --percent of our collection use MAGE-ML unfortunately, and even fewer
  35805. --provide all the data in the MAGE model, of which STUDYDESIGN is a vestige).
  35806. --So, we created a STUDYPROP table. I'd think this table would be
  35807. --generally useful to people storing various types of data sets via the
  35808. --STUDY table.
  35809. --
  35810. --The other new table is STUDYPROP_FEATURE. This basically allows us to
  35811. --group features together per study. For example, we can store microarray
  35812. --clustering results by saying that the STUDYPROP type is 'cluster' (via
  35813. --type_id -> CVTERM of course), the value is 'cluster id 123', and then
  35814. --that cluster would be associated with all the features that are in that
  35815. --cluster via STUDYPROP_FEATURE. Adding type_id to STUDYPROP_FEATURE is
  35816. -- fine by us!
  35817. --
  35818. --studyprop
  35819. create table studyprop (
  35820. studyprop_id serial not null,
  35821. primary key (studyprop_id),
  35822. study_id int not null,
  35823. foreign key (study_id) references study (study_id) on delete cascade,
  35824. type_id int not null,
  35825. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  35826. value text null,
  35827. rank int not null default 0,
  35828. unique (study_id,type_id,rank)
  35829. );
  35830. create index studyprop_idx1 on studyprop (study_id);
  35831. create index studyprop_idx2 on studyprop (type_id);
  35832. --studyprop_feature
  35833. CREATE TABLE studyprop_feature (
  35834. studyprop_feature_id serial NOT NULL,
  35835. primary key (studyprop_feature_id),
  35836. studyprop_id integer NOT NULL,
  35837. foreign key (studyprop_id) references studyprop(studyprop_id) on delete cascade,
  35838. feature_id integer NOT NULL,
  35839. foreign key (feature_id) references feature (feature_id) on delete cascade,
  35840. type_id integer,
  35841. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  35842. unique (studyprop_id, feature_id)
  35843. );
  35844. create index studyprop_feature_idx1 on studyprop_feature (studyprop_id);
  35845. create index studyprop_feature_idx2 on studyprop_feature (feature_id);
  35846. -- ==========================================
  35847. -- Chado stock module
  35848. --
  35849. -- DEPENDENCIES
  35850. -- ============
  35851. -- :import cvterm from cv
  35852. -- :import pub from pub
  35853. -- :import dbxref from general
  35854. -- :import organism from organism
  35855. -- :import genotype from genetic
  35856. -- :import contact from contact
  35857. -- ================================================
  35858. -- TABLE: stock
  35859. -- ================================================
  35860. create table stock (
  35861. stock_id serial not null,
  35862. primary key (stock_id),
  35863. dbxref_id int,
  35864. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  35865. organism_id int,
  35866. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  35867. name varchar(255),
  35868. uniquename text not null,
  35869. description text,
  35870. type_id int not null,
  35871. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35872. is_obsolete boolean not null default 'false',
  35873. constraint stock_c1 unique (organism_id,uniquename,type_id)
  35874. );
  35875. create index stock_name_ind1 on stock (name);
  35876. create index stock_idx1 on stock (dbxref_id);
  35877. create index stock_idx2 on stock (organism_id);
  35878. create index stock_idx3 on stock (type_id);
  35879. create index stock_idx4 on stock (uniquename);
  35880. COMMENT ON TABLE stock IS 'Any stock can be globally identified by the
  35881. 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.';
  35882. 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.';
  35883. 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.';
  35884. 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.';
  35885. COMMENT ON COLUMN stock.description IS 'The description is the genetic description provided in the stock list.';
  35886. COMMENT ON COLUMN stock.name IS 'The name is a human-readable local name for a stock.';
  35887. -- ================================================
  35888. -- TABLE: stock_pub
  35889. -- ================================================
  35890. create table stock_pub (
  35891. stock_pub_id serial not null,
  35892. primary key (stock_pub_id),
  35893. stock_id int not null,
  35894. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  35895. pub_id int not null,
  35896. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35897. constraint stock_pub_c1 unique (stock_id,pub_id)
  35898. );
  35899. create index stock_pub_idx1 on stock_pub (stock_id);
  35900. create index stock_pub_idx2 on stock_pub (pub_id);
  35901. COMMENT ON TABLE stock_pub IS 'Provenance. Linking table between stocks and, for example, a stocklist computer file.';
  35902. -- ================================================
  35903. -- TABLE: stockprop
  35904. -- ================================================
  35905. create table stockprop (
  35906. stockprop_id serial not null,
  35907. primary key (stockprop_id),
  35908. stock_id int not null,
  35909. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  35910. type_id int not null,
  35911. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35912. value text null,
  35913. rank int not null default 0,
  35914. constraint stockprop_c1 unique (stock_id,type_id,rank)
  35915. );
  35916. create index stockprop_idx1 on stockprop (stock_id);
  35917. create index stockprop_idx2 on stockprop (type_id);
  35918. COMMENT ON TABLE stockprop IS 'A stock can have any number of
  35919. slot-value property tags attached to it. This is an alternative to
  35920. hardcoding a list of columns in the relational schema, and is
  35921. completely extensible. There is a unique constraint, stockprop_c1, for
  35922. the combination of stock_id, rank, and type_id. Multivalued property-value pairs must be differentiated by rank.';
  35923. -- ================================================
  35924. -- TABLE: stockprop_pub
  35925. -- ================================================
  35926. create table stockprop_pub (
  35927. stockprop_pub_id serial not null,
  35928. primary key (stockprop_pub_id),
  35929. stockprop_id int not null,
  35930. foreign key (stockprop_id) references stockprop (stockprop_id) on delete cascade INITIALLY DEFERRED,
  35931. pub_id int not null,
  35932. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35933. constraint stockprop_pub_c1 unique (stockprop_id,pub_id)
  35934. );
  35935. create index stockprop_pub_idx1 on stockprop_pub (stockprop_id);
  35936. create index stockprop_pub_idx2 on stockprop_pub (pub_id);
  35937. COMMENT ON TABLE stockprop_pub IS 'Provenance. Any stockprop assignment can optionally be supported by a publication.';
  35938. -- ================================================
  35939. -- TABLE: stock_relationship
  35940. -- ================================================
  35941. create table stock_relationship (
  35942. stock_relationship_id serial not null,
  35943. primary key (stock_relationship_id),
  35944. subject_id int not null,
  35945. foreign key (subject_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  35946. object_id int not null,
  35947. foreign key (object_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  35948. type_id int not null,
  35949. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35950. value text null,
  35951. rank int not null default 0,
  35952. constraint stock_relationship_c1 unique (subject_id,object_id,type_id,rank)
  35953. );
  35954. create index stock_relationship_idx1 on stock_relationship (subject_id);
  35955. create index stock_relationship_idx2 on stock_relationship (object_id);
  35956. create index stock_relationship_idx3 on stock_relationship (type_id);
  35957. 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.';
  35958. 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.';
  35959. 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.';
  35960. 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.';
  35961. COMMENT ON COLUMN stock_relationship.value IS 'stock_relationship.value is for additional notes or comments.';
  35962. -- ================================================
  35963. -- TABLE: stock_relationship_cvterm
  35964. -- ================================================
  35965. CREATE TABLE stock_relationship_cvterm (
  35966. stock_relationship_cvterm_id SERIAL NOT NULL,
  35967. PRIMARY KEY (stock_relationship_cvterm_id),
  35968. stock_relationship_id integer NOT NULL,
  35969. FOREIGN KEY (stock_relationship_id) references stock_relationship (stock_relationship_id) ON DELETE CASCADE INITIALLY DEFERRED,
  35970. cvterm_id integer NOT NULL,
  35971. FOREIGN KEY (cvterm_id) REFERENCES cvterm (cvterm_id) ON DELETE RESTRICT,
  35972. pub_id integer,
  35973. FOREIGN KEY (pub_id) REFERENCES pub (pub_id) ON DELETE RESTRICT
  35974. );
  35975. 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';
  35976. -- ================================================
  35977. -- TABLE: stock_relationship_pub
  35978. -- ================================================
  35979. create table stock_relationship_pub (
  35980. stock_relationship_pub_id serial not null,
  35981. primary key (stock_relationship_pub_id),
  35982. stock_relationship_id integer not null,
  35983. foreign key (stock_relationship_id) references stock_relationship (stock_relationship_id) on delete cascade INITIALLY DEFERRED,
  35984. pub_id int not null,
  35985. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35986. constraint stock_relationship_pub_c1 unique (stock_relationship_id,pub_id)
  35987. );
  35988. create index stock_relationship_pub_idx1 on stock_relationship_pub (stock_relationship_id);
  35989. create index stock_relationship_pub_idx2 on stock_relationship_pub (pub_id);
  35990. COMMENT ON TABLE stock_relationship_pub IS 'Provenance. Attach optional evidence to a stock_relationship in the form of a publication.';
  35991. -- ================================================
  35992. -- TABLE: stock_dbxref
  35993. -- ================================================
  35994. create table stock_dbxref (
  35995. stock_dbxref_id serial not null,
  35996. primary key (stock_dbxref_id),
  35997. stock_id int not null,
  35998. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  35999. dbxref_id int not null,
  36000. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  36001. is_current boolean not null default 'true',
  36002. constraint stock_dbxref_c1 unique (stock_id,dbxref_id)
  36003. );
  36004. create index stock_dbxref_idx1 on stock_dbxref (stock_id);
  36005. create index stock_dbxref_idx2 on stock_dbxref (dbxref_id);
  36006. 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.';
  36007. 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.';
  36008. -- ================================================
  36009. -- TABLE: stock_cvterm
  36010. -- ================================================
  36011. create table stock_cvterm (
  36012. stock_cvterm_id serial not null,
  36013. primary key (stock_cvterm_id),
  36014. stock_id int not null,
  36015. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  36016. cvterm_id int not null,
  36017. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36018. pub_id int not null,
  36019. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36020. is_not boolean not null default false,
  36021. rank integer not null default 0,
  36022. constraint stock_cvterm_c1 unique (stock_id,cvterm_id,pub_id,rank)
  36023. );
  36024. create index stock_cvterm_idx1 on stock_cvterm (stock_id);
  36025. create index stock_cvterm_idx2 on stock_cvterm (cvterm_id);
  36026. create index stock_cvterm_idx3 on stock_cvterm (pub_id);
  36027. 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.';
  36028. -- ================================================
  36029. -- TABLE: stock_cvtermprop
  36030. -- ================================================
  36031. create table stock_cvtermprop (
  36032. stock_cvtermprop_id serial not null,
  36033. primary key (stock_cvtermprop_id),
  36034. stock_cvterm_id int not null,
  36035. foreign key (stock_cvterm_id) references stock_cvterm (stock_cvterm_id) on delete cascade,
  36036. type_id int not null,
  36037. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36038. value text null,
  36039. rank int not null default 0,
  36040. constraint stock_cvtermprop_c1 unique (stock_cvterm_id,type_id,rank)
  36041. );
  36042. create index stock_cvtermprop_idx1 on stock_cvtermprop (stock_cvterm_id);
  36043. create index stock_cvtermprop_idx2 on stock_cvtermprop (type_id);
  36044. COMMENT ON TABLE stock_cvtermprop IS 'Extensible properties for
  36045. stock to cvterm associations. Examples: GO evidence codes;
  36046. qualifiers; metadata such as the date on which the entry was curated
  36047. and the source of the association. See the stockprop table for
  36048. meanings of type_id, value and rank.';
  36049. COMMENT ON COLUMN stock_cvtermprop.type_id IS 'The name of the
  36050. property/slot is a cvterm. The meaning of the property is defined in
  36051. that cvterm. cvterms may come from the OBO evidence code cv.';
  36052. COMMENT ON COLUMN stock_cvtermprop.value IS 'The value of the
  36053. property, represented as text. Numeric values are converted to their
  36054. text representation. This is less efficient than using native database
  36055. types, but is easier to query.';
  36056. COMMENT ON COLUMN stock_cvtermprop.rank IS 'Property-Value
  36057. ordering. Any stock_cvterm can have multiple values for any particular
  36058. property type - these are ordered in a list using rank, counting from
  36059. zero. For properties that are single-valued rather than multi-valued,
  36060. the default 0 value should be used.';
  36061. -- ================================================
  36062. -- TABLE: stock_genotype
  36063. -- ================================================
  36064. create table stock_genotype (
  36065. stock_genotype_id serial not null,
  36066. primary key (stock_genotype_id),
  36067. stock_id int not null,
  36068. foreign key (stock_id) references stock (stock_id) on delete cascade,
  36069. genotype_id int not null,
  36070. foreign key (genotype_id) references genotype (genotype_id) on delete cascade,
  36071. constraint stock_genotype_c1 unique (stock_id, genotype_id)
  36072. );
  36073. create index stock_genotype_idx1 on stock_genotype (stock_id);
  36074. create index stock_genotype_idx2 on stock_genotype (genotype_id);
  36075. COMMENT ON TABLE stock_genotype IS 'Simple table linking a stock to
  36076. a genotype. Features with genotypes can be linked to stocks thru feature_genotype -> genotype -> stock_genotype -> stock.';
  36077. -- ================================================
  36078. -- TABLE: stockcollection
  36079. -- ================================================
  36080. create table stockcollection (
  36081. stockcollection_id serial not null,
  36082. primary key (stockcollection_id),
  36083. type_id int not null,
  36084. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  36085. contact_id int null,
  36086. foreign key (contact_id) references contact (contact_id) on delete set null INITIALLY DEFERRED,
  36087. name varchar(255),
  36088. uniquename text not null,
  36089. constraint stockcollection_c1 unique (uniquename,type_id)
  36090. );
  36091. create index stockcollection_name_ind1 on stockcollection (name);
  36092. create index stockcollection_idx1 on stockcollection (contact_id);
  36093. create index stockcollection_idx2 on stockcollection (type_id);
  36094. create index stockcollection_idx3 on stockcollection (uniquename);
  36095. COMMENT ON TABLE stockcollection IS 'The lab or stock center distributing the stocks in their collection.';
  36096. COMMENT ON COLUMN stockcollection.uniquename IS 'uniqename is the value of the collection cv.';
  36097. COMMENT ON COLUMN stockcollection.type_id IS 'type_id is the collection type cv.';
  36098. COMMENT ON COLUMN stockcollection.name IS 'name is the collection.';
  36099. COMMENT ON COLUMN stockcollection.contact_id IS 'contact_id links to the contact information for the collection.';
  36100. -- ================================================
  36101. -- TABLE: stockcollectionprop
  36102. -- ================================================
  36103. create table stockcollectionprop (
  36104. stockcollectionprop_id serial not null,
  36105. primary key (stockcollectionprop_id),
  36106. stockcollection_id int not null,
  36107. foreign key (stockcollection_id) references stockcollection (stockcollection_id) on delete cascade INITIALLY DEFERRED,
  36108. type_id int not null,
  36109. foreign key (type_id) references cvterm (cvterm_id),
  36110. value text null,
  36111. rank int not null default 0,
  36112. constraint stockcollectionprop_c1 unique (stockcollection_id,type_id,rank)
  36113. );
  36114. create index stockcollectionprop_idx1 on stockcollectionprop (stockcollection_id);
  36115. create index stockcollectionprop_idx2 on stockcollectionprop (type_id);
  36116. COMMENT ON TABLE stockcollectionprop IS 'The table stockcollectionprop
  36117. contains the value of the stock collection such as website/email URLs;
  36118. the value of the stock collection order URLs.';
  36119. COMMENT ON COLUMN stockcollectionprop.type_id IS 'The cv for the type_id is "stockcollection property type".';
  36120. -- ================================================
  36121. -- TABLE: stockcollection_stock
  36122. -- ================================================
  36123. create table stockcollection_stock (
  36124. stockcollection_stock_id serial not null,
  36125. primary key (stockcollection_stock_id),
  36126. stockcollection_id int not null,
  36127. foreign key (stockcollection_id) references stockcollection (stockcollection_id) on delete cascade INITIALLY DEFERRED,
  36128. stock_id int not null,
  36129. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  36130. constraint stockcollection_stock_c1 unique (stockcollection_id,stock_id)
  36131. );
  36132. create index stockcollection_stock_idx1 on stockcollection_stock (stockcollection_id);
  36133. create index stockcollection_stock_idx2 on stockcollection_stock (stock_id);
  36134. COMMENT ON TABLE stockcollection_stock IS 'stockcollection_stock links
  36135. a stock collection to the stocks which are contained in the collection.';
  36136. -- ================================================
  36137. -- TABLE: stock_dbxrefprop
  36138. -- ================================================
  36139. create table stock_dbxrefprop (
  36140. stock_dbxrefprop_id serial not null,
  36141. primary key (stock_dbxrefprop_id),
  36142. stock_dbxref_id int not null,
  36143. foreign key (stock_dbxref_id) references stock_dbxref (stock_dbxref_id) on delete cascade INITIALLY DEFERRED,
  36144. type_id int not null,
  36145. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36146. value text null,
  36147. rank int not null default 0,
  36148. constraint stock_dbxrefprop_c1 unique (stock_dbxref_id,type_id,rank)
  36149. );
  36150. create index stock_dbxrefprop_idx1 on stock_dbxrefprop (stock_dbxref_id);
  36151. create index stock_dbxrefprop_idx2 on stock_dbxrefprop (type_id);
  36152. COMMENT ON TABLE stock_dbxrefprop IS 'A stock_dbxref can have any number of
  36153. 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
  36154. hardcoding a list of columns in the relational schema, and is
  36155. completely extensible. There is a unique constraint, stock_dbxrefprop_c1, for
  36156. the combination of stock_dbxref_id, rank, and type_id. Multivalued property-value pairs must be differentiated by rank.';
  36157. -- =================================================================
  36158. -- Dependencies:
  36159. --
  36160. -- :import feature from sequence
  36161. -- :import synonym from sequence
  36162. -- :import cvterm from cv
  36163. -- :import pub from pub
  36164. -- :import organism from organism
  36165. -- =================================================================
  36166. -- ================================================
  36167. -- TABLE: library
  36168. -- ================================================
  36169. create table library (
  36170. library_id serial not null,
  36171. primary key (library_id),
  36172. organism_id int not null,
  36173. foreign key (organism_id) references organism (organism_id),
  36174. name varchar(255),
  36175. uniquename text not null,
  36176. type_id int not null,
  36177. foreign key (type_id) references cvterm (cvterm_id),
  36178. is_obsolete int not null default 0,
  36179. timeaccessioned timestamp not null default current_timestamp,
  36180. timelastmodified timestamp not null default current_timestamp,
  36181. constraint library_c1 unique (organism_id,uniquename,type_id)
  36182. );
  36183. create index library_name_ind1 on library(name);
  36184. create index library_idx1 on library (organism_id);
  36185. create index library_idx2 on library (type_id);
  36186. create index library_idx3 on library (uniquename);
  36187. COMMENT ON COLUMN library.type_id IS 'The type_id foreign key links
  36188. to a controlled vocabulary of library types. Examples of this would be: "cDNA_library" or "genomic_library"';
  36189. -- ================================================
  36190. -- TABLE: library_synonym
  36191. -- ================================================
  36192. create table library_synonym (
  36193. library_synonym_id serial not null,
  36194. primary key (library_synonym_id),
  36195. synonym_id int not null,
  36196. foreign key (synonym_id) references synonym (synonym_id) on delete cascade INITIALLY DEFERRED,
  36197. library_id int not null,
  36198. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  36199. pub_id int not null,
  36200. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36201. is_current boolean not null default 'true',
  36202. is_internal boolean not null default 'false',
  36203. constraint library_synonym_c1 unique (synonym_id,library_id,pub_id)
  36204. );
  36205. create index library_synonym_idx1 on library_synonym (synonym_id);
  36206. create index library_synonym_idx2 on library_synonym (library_id);
  36207. create index library_synonym_idx3 on library_synonym (pub_id);
  36208. 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.';
  36209. COMMENT ON COLUMN library_synonym.pub_id IS 'The pub_id link is for
  36210. relating the usage of a given synonym to the publication in which it was used.';
  36211. COMMENT ON COLUMN library_synonym.is_internal IS 'Typically a synonym
  36212. exists so that somebody querying the database with an obsolete name
  36213. can find the object they are looking for under its current name. If
  36214. 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.';
  36215. -- ================================================
  36216. -- TABLE: library_pub
  36217. -- ================================================
  36218. create table library_pub (
  36219. library_pub_id serial not null,
  36220. primary key (library_pub_id),
  36221. library_id int not null,
  36222. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  36223. pub_id int not null,
  36224. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36225. constraint library_pub_c1 unique (library_id,pub_id)
  36226. );
  36227. create index library_pub_idx1 on library_pub (library_id);
  36228. create index library_pub_idx2 on library_pub (pub_id);
  36229. -- ================================================
  36230. -- TABLE: libraryprop
  36231. -- ================================================
  36232. create table libraryprop (
  36233. libraryprop_id serial not null,
  36234. primary key (libraryprop_id),
  36235. library_id int not null,
  36236. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  36237. type_id int not null,
  36238. foreign key (type_id) references cvterm (cvterm_id),
  36239. value text null,
  36240. rank int not null default 0,
  36241. constraint libraryprop_c1 unique (library_id,type_id,rank)
  36242. );
  36243. create index libraryprop_idx1 on libraryprop (library_id);
  36244. create index libraryprop_idx2 on libraryprop (type_id);
  36245. -- ================================================
  36246. -- TABLE: libraryprop_pub
  36247. -- ================================================
  36248. create table libraryprop_pub (
  36249. libraryprop_pub_id serial not null,
  36250. primary key (libraryprop_pub_id),
  36251. libraryprop_id int not null,
  36252. foreign key (libraryprop_id) references libraryprop (libraryprop_id) on delete cascade INITIALLY DEFERRED,
  36253. pub_id int not null,
  36254. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36255. constraint libraryprop_pub_c1 unique (libraryprop_id,pub_id)
  36256. );
  36257. create index libraryprop_pub_idx1 on libraryprop_pub (libraryprop_id);
  36258. create index libraryprop_pub_idx2 on libraryprop_pub (pub_id);
  36259. -- ================================================
  36260. -- TABLE: library_cvterm
  36261. -- ================================================
  36262. create table library_cvterm (
  36263. library_cvterm_id serial not null,
  36264. primary key (library_cvterm_id),
  36265. library_id int not null,
  36266. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  36267. cvterm_id int not null,
  36268. foreign key (cvterm_id) references cvterm (cvterm_id),
  36269. pub_id int not null,
  36270. foreign key (pub_id) references pub (pub_id),
  36271. constraint library_cvterm_c1 unique (library_id,cvterm_id,pub_id)
  36272. );
  36273. create index library_cvterm_idx1 on library_cvterm (library_id);
  36274. create index library_cvterm_idx2 on library_cvterm (cvterm_id);
  36275. create index library_cvterm_idx3 on library_cvterm (pub_id);
  36276. 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.';
  36277. -- ================================================
  36278. -- TABLE: library_feature
  36279. -- ================================================
  36280. create table library_feature (
  36281. library_feature_id serial not null,
  36282. primary key (library_feature_id),
  36283. library_id int not null,
  36284. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  36285. feature_id int not null,
  36286. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  36287. constraint library_feature_c1 unique (library_id,feature_id)
  36288. );
  36289. create index library_feature_idx1 on library_feature (library_id);
  36290. create index library_feature_idx2 on library_feature (feature_id);
  36291. 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".';
  36292. -- ================================================
  36293. -- TABLE: library_dbxref
  36294. -- ================================================
  36295. create table library_dbxref (
  36296. library_dbxref_id serial not null,
  36297. primary key (library_dbxref_id),
  36298. library_id int not null,
  36299. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  36300. dbxref_id int not null,
  36301. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  36302. is_current boolean not null default 'true',
  36303. constraint library_dbxref_c1 unique (library_id,dbxref_id)
  36304. );
  36305. create index library_dbxref_idx1 on library_dbxref (library_id);
  36306. create index library_dbxref_idx2 on library_dbxref (dbxref_id);
  36307. -- ==========================================
  36308. -- Chado cell line module
  36309. --
  36310. -- ============
  36311. -- DEPENDENCIES
  36312. -- ============
  36313. -- :import feature from sequence
  36314. -- :import synonym from sequence
  36315. -- :import library from library
  36316. -- :import cvterm from cv
  36317. -- :import dbxref from general
  36318. -- :import pub from pub
  36319. -- :import organism from organism
  36320. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  36321. -- ================================================
  36322. -- TABLE: cell_line
  36323. -- ================================================
  36324. create table cell_line (
  36325. cell_line_id serial not null,
  36326. primary key (cell_line_id),
  36327. name varchar(255) null,
  36328. uniquename varchar(255) not null,
  36329. organism_id int not null,
  36330. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  36331. timeaccessioned timestamp not null default current_timestamp,
  36332. timelastmodified timestamp not null default current_timestamp,
  36333. constraint cell_line_c1 unique (uniquename, organism_id)
  36334. );
  36335. grant all on cell_line to PUBLIC;
  36336. -- ================================================
  36337. -- TABLE: cell_line_relationship
  36338. -- ================================================
  36339. create table cell_line_relationship (
  36340. cell_line_relationship_id serial not null,
  36341. primary key (cell_line_relationship_id),
  36342. subject_id int not null,
  36343. foreign key (subject_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  36344. object_id int not null,
  36345. foreign key (object_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  36346. type_id int not null,
  36347. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36348. constraint cell_line_relationship_c1 unique (subject_id, object_id, type_id)
  36349. );
  36350. grant all on cell_line_relationship to PUBLIC;
  36351. -- ================================================
  36352. -- TABLE: cell_line_synonym
  36353. -- ================================================
  36354. create table cell_line_synonym (
  36355. cell_line_synonym_id serial not null,
  36356. primary key (cell_line_synonym_id),
  36357. cell_line_id int not null,
  36358. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  36359. synonym_id int not null,
  36360. foreign key (synonym_id) references synonym (synonym_id) on delete cascade INITIALLY DEFERRED,
  36361. pub_id int not null,
  36362. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36363. is_current boolean not null default 'false',
  36364. is_internal boolean not null default 'false',
  36365. constraint cell_line_synonym_c1 unique (synonym_id,cell_line_id,pub_id)
  36366. );
  36367. grant all on cell_line_synonym to PUBLIC;
  36368. -- ================================================
  36369. -- TABLE: cell_line_cvterm
  36370. -- ================================================
  36371. create table cell_line_cvterm (
  36372. cell_line_cvterm_id serial not null,
  36373. primary key (cell_line_cvterm_id),
  36374. cell_line_id int not null,
  36375. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  36376. cvterm_id int not null,
  36377. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36378. pub_id int not null,
  36379. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36380. rank int not null default 0,
  36381. constraint cell_line_cvterm_c1 unique (cell_line_id,cvterm_id,pub_id,rank)
  36382. );
  36383. grant all on cell_line_cvterm to PUBLIC;
  36384. -- ================================================
  36385. -- TABLE: cell_line_dbxref
  36386. -- ================================================
  36387. create table cell_line_dbxref (
  36388. cell_line_dbxref_id serial not null,
  36389. primary key (cell_line_dbxref_id),
  36390. cell_line_id int not null,
  36391. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  36392. dbxref_id int not null,
  36393. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  36394. is_current boolean not null default 'true',
  36395. constraint cell_line_dbxref_c1 unique (cell_line_id,dbxref_id)
  36396. );
  36397. grant all on cell_line_dbxref to PUBLIC;
  36398. -- ================================================
  36399. -- TABLE: cell_lineprop
  36400. -- ================================================
  36401. create table cell_lineprop (
  36402. cell_lineprop_id serial not null,
  36403. primary key (cell_lineprop_id),
  36404. cell_line_id int not null,
  36405. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  36406. type_id int not null,
  36407. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36408. value text null,
  36409. rank int not null default 0,
  36410. constraint cell_lineprop_c1 unique (cell_line_id,type_id,rank)
  36411. );
  36412. grant all on cell_lineprop to PUBLIC;
  36413. -- ================================================
  36414. -- TABLE: cell_lineprop_pub
  36415. -- ================================================
  36416. create table cell_lineprop_pub (
  36417. cell_lineprop_pub_id serial not null,
  36418. primary key (cell_lineprop_pub_id),
  36419. cell_lineprop_id int not null,
  36420. foreign key (cell_lineprop_id) references cell_lineprop (cell_lineprop_id) on delete cascade INITIALLY DEFERRED,
  36421. pub_id int not null,
  36422. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36423. constraint cell_lineprop_pub_c1 unique (cell_lineprop_id,pub_id)
  36424. );
  36425. grant all on cell_lineprop_pub to PUBLIC;
  36426. -- ================================================
  36427. -- TABLE: cell_line_feature
  36428. -- ================================================
  36429. create table cell_line_feature (
  36430. cell_line_feature_id serial not null,
  36431. primary key (cell_line_feature_id),
  36432. cell_line_id int not null,
  36433. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  36434. feature_id int not null,
  36435. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  36436. pub_id int not null,
  36437. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36438. constraint cell_line_feature_c1 unique (cell_line_id, feature_id, pub_id)
  36439. );
  36440. grant all on cell_line_feature to PUBLIC;
  36441. -- ================================================
  36442. -- TABLE: cell_line_cvtermprop
  36443. -- ================================================
  36444. create table cell_line_cvtermprop (
  36445. cell_line_cvtermprop_id serial not null,
  36446. primary key (cell_line_cvtermprop_id),
  36447. cell_line_cvterm_id int not null,
  36448. foreign key (cell_line_cvterm_id) references cell_line_cvterm (cell_line_cvterm_id) on delete cascade INITIALLY DEFERRED,
  36449. type_id int not null,
  36450. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36451. value text null,
  36452. rank int not null default 0,
  36453. constraint cell_line_cvtermprop_c1 unique (cell_line_cvterm_id, type_id, rank)
  36454. );
  36455. grant all on cell_line_cvtermprop to PUBLIC;
  36456. -- ================================================
  36457. -- TABLE: cell_line_pub
  36458. -- ================================================
  36459. create table cell_line_pub (
  36460. cell_line_pub_id serial not null,
  36461. primary key (cell_line_pub_id),
  36462. cell_line_id int not null,
  36463. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  36464. pub_id int not null,
  36465. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36466. constraint cell_line_pub_c1 unique (cell_line_id, pub_id)
  36467. );
  36468. grant all on cell_line_pub to PUBLIC;
  36469. -- ================================================
  36470. -- TABLE: cell_line_library
  36471. -- ================================================
  36472. create table cell_line_library (
  36473. cell_line_library_id serial not null,
  36474. primary key (cell_line_library_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. library_id int not null,
  36478. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  36479. pub_id int not null,
  36480. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36481. constraint cell_line_library_c1 unique (cell_line_id, library_id, pub_id)
  36482. );
  36483. grant all on cell_line_library to PUBLIC;
  36484. -- VIEW gffatts: a view to get feature attributes in a format that
  36485. -- will make it easy to convert them to GFF attributes
  36486. CREATE OR REPLACE VIEW gffatts (
  36487. feature_id,
  36488. type,
  36489. attribute
  36490. ) AS
  36491. SELECT feature_id, 'Ontology_term' AS type, s.name AS attribute
  36492. FROM cvterm s, feature_cvterm fs
  36493. WHERE fs.cvterm_id = s.cvterm_id
  36494. UNION ALL
  36495. SELECT feature_id, 'Dbxref' AS type, d.name || ':' || s.accession AS attribute
  36496. FROM dbxref s, feature_dbxref fs, db d
  36497. WHERE fs.dbxref_id = s.dbxref_id and s.db_id = d.db_id
  36498. UNION ALL
  36499. SELECT feature_id, 'Alias' AS type, s.name AS attribute
  36500. FROM synonym s, feature_synonym fs
  36501. WHERE fs.synonym_id = s.synonym_id
  36502. UNION ALL
  36503. SELECT fp.feature_id,cv.name,fp.value
  36504. FROM featureprop fp, cvterm cv
  36505. WHERE fp.type_id = cv.cvterm_id
  36506. UNION ALL
  36507. SELECT feature_id, 'pub' AS type, s.series_name || ':' || s.title AS attribute
  36508. FROM pub s, feature_pub fs
  36509. WHERE fs.pub_id = s.pub_id;
  36510. --creates a view that can be used to assemble a GFF3 compliant attribute string
  36511. CREATE OR REPLACE VIEW gff3atts (
  36512. feature_id,
  36513. type,
  36514. attribute
  36515. ) AS
  36516. SELECT feature_id,
  36517. 'Ontology_term' AS type,
  36518. CASE WHEN db.name like '%Gene Ontology%' THEN 'GO:'|| dbx.accession
  36519. WHEN db.name like 'Sequence Ontology%' THEN 'SO:'|| dbx.accession
  36520. ELSE CAST(db.name||':'|| dbx.accession AS varchar)
  36521. END
  36522. FROM cvterm s, dbxref dbx, feature_cvterm fs, db
  36523. WHERE fs.cvterm_id = s.cvterm_id and s.dbxref_id=dbx.dbxref_id and
  36524. db.db_id = dbx.db_id
  36525. UNION ALL
  36526. SELECT feature_id, 'Dbxref' AS type, d.name || ':' || s.accession AS
  36527. attribute
  36528. FROM dbxref s, feature_dbxref fs, db d
  36529. WHERE fs.dbxref_id = s.dbxref_id and s.db_id = d.db_id and
  36530. d.name != 'GFF_source'
  36531. UNION ALL
  36532. SELECT f.feature_id, 'Alias' AS type, s.name AS attribute
  36533. FROM synonym s, feature_synonym fs, feature f
  36534. WHERE fs.synonym_id = s.synonym_id and f.feature_id = fs.feature_id and
  36535. f.name != s.name and f.uniquename != s.name
  36536. UNION ALL
  36537. SELECT fp.feature_id,cv.name,fp.value
  36538. FROM featureprop fp, cvterm cv
  36539. WHERE fp.type_id = cv.cvterm_id
  36540. UNION ALL
  36541. SELECT feature_id, 'pub' AS type, s.series_name || ':' || s.title AS
  36542. attribute
  36543. FROM pub s, feature_pub fs
  36544. WHERE fs.pub_id = s.pub_id
  36545. UNION ALL
  36546. SELECT fr.subject_id as feature_id, 'Parent' as type, parent.uniquename
  36547. as attribute
  36548. FROM feature_relationship fr, feature parent
  36549. WHERE fr.object_id=parent.feature_id AND fr.type_id = (SELECT cvterm_id
  36550. FROM cvterm WHERE name='part_of' and cv_id in (select cv_id
  36551. FROM cv WHERE name='relationship'))
  36552. UNION ALL
  36553. SELECT fr.subject_id as feature_id, 'Derives_from' as type,
  36554. parent.uniquename as attribute
  36555. FROM feature_relationship fr, feature parent
  36556. WHERE fr.object_id=parent.feature_id AND fr.type_id = (SELECT cvterm_id
  36557. FROM cvterm WHERE name='derives_from' and cv_id in (select cv_id
  36558. FROM cv WHERE name='relationship'))
  36559. UNION ALL
  36560. SELECT fl.feature_id, 'Target' as type, target.name || ' ' || fl.fmin+1
  36561. || ' ' || fl.fmax || ' ' || fl.strand as attribute
  36562. FROM featureloc fl, feature target
  36563. WHERE fl.srcfeature_id=target.feature_id
  36564. AND fl.rank != 0
  36565. UNION ALL
  36566. SELECT feature_id, 'ID' as type, uniquename as attribute
  36567. FROM feature
  36568. WHERE type_id NOT IN (SELECT cvterm_id FROM cvterm WHERE name='CDS')
  36569. UNION ALL
  36570. SELECT feature_id, 'chado_feature_id' as type, CAST(feature_id AS
  36571. varchar) as attribute
  36572. FROM feature
  36573. UNION ALL
  36574. SELECT feature_id, 'Name' as type, name as attribute
  36575. FROM feature;
  36576. --replaced with Rob B's improved view
  36577. CREATE OR REPLACE VIEW gff3view (
  36578. feature_id, ref, source, type, fstart, fend,
  36579. score, strand, phase, seqlen, name, organism_id
  36580. ) AS
  36581. SELECT
  36582. f.feature_id, sf.name,
  36583. COALESCE(gffdbx.accession,'.'::varchar(255)), cv.name,
  36584. fl.fmin+1, fl.fmax,
  36585. COALESCE(CAST(af.significance AS text), '.'),
  36586. CASE WHEN fl.strand=-1 THEN '-'
  36587. WHEN fl.strand=1 THEN '+'
  36588. ELSE '.'
  36589. END,
  36590. COALESCE(CAST(fl.phase AS text), '.'), f.seqlen, f.name, f.organism_id
  36591. FROM feature f
  36592. LEFT JOIN featureloc fl ON (f.feature_id = fl.feature_id)
  36593. LEFT JOIN feature sf ON (fl.srcfeature_id = sf.feature_id)
  36594. LEFT JOIN ( SELECT fd.feature_id, d.accession
  36595. FROM feature_dbxref fd
  36596. JOIN dbxref d using(dbxref_id)
  36597. JOIN db using(db_id)
  36598. WHERE db.name = 'GFF_source'
  36599. ) as gffdbx
  36600. ON (f.feature_id=gffdbx.feature_id)
  36601. LEFT JOIN cvterm cv ON (f.type_id = cv.cvterm_id)
  36602. LEFT JOIN analysisfeature af ON (f.feature_id = af.feature_id);
  36603. -- FUNCTION gfffeatureatts (integer) is a function to get
  36604. -- data in the same format as the gffatts view so that
  36605. -- it can be easily converted to GFF attributes.
  36606. CREATE FUNCTION gfffeatureatts (integer)
  36607. RETURNS SETOF gffatts
  36608. AS
  36609. '
  36610. SELECT feature_id, ''Ontology_term'' AS type, s.name AS attribute
  36611. FROM cvterm s, feature_cvterm fs
  36612. WHERE fs.feature_id= $1 AND fs.cvterm_id = s.cvterm_id
  36613. UNION
  36614. SELECT feature_id, ''Dbxref'' AS type, d.name || '':'' || s.accession AS attribute
  36615. FROM dbxref s, feature_dbxref fs, db d
  36616. WHERE fs.feature_id= $1 AND fs.dbxref_id = s.dbxref_id AND s.db_id = d.db_id
  36617. UNION
  36618. SELECT feature_id, ''Alias'' AS type, s.name AS attribute
  36619. FROM synonym s, feature_synonym fs
  36620. WHERE fs.feature_id= $1 AND fs.synonym_id = s.synonym_id
  36621. UNION
  36622. SELECT fp.feature_id,cv.name,fp.value
  36623. FROM featureprop fp, cvterm cv
  36624. WHERE fp.feature_id= $1 AND fp.type_id = cv.cvterm_id
  36625. UNION
  36626. SELECT feature_id, ''pub'' AS type, s.series_name || '':'' || s.title AS attribute
  36627. FROM pub s, feature_pub fs
  36628. WHERE fs.feature_id= $1 AND fs.pub_id = s.pub_id
  36629. '
  36630. LANGUAGE SQL;
  36631. --
  36632. -- functions for creating coordinate based functions
  36633. --
  36634. -- create a point
  36635. CREATE OR REPLACE FUNCTION featureslice(int, int) RETURNS setof featureloc AS
  36636. 'SELECT * from featureloc where boxquery($1, $2) @ boxrange(fmin,fmax)'
  36637. LANGUAGE 'sql';
  36638. --uses the gff3atts to create a GFF3 compliant attribute string
  36639. CREATE OR REPLACE FUNCTION gffattstring (integer) RETURNS varchar AS
  36640. 'DECLARE
  36641. return_string varchar;
  36642. f_id ALIAS FOR $1;
  36643. atts_view gffatts%ROWTYPE;
  36644. feature_row feature%ROWTYPE;
  36645. name varchar;
  36646. uniquename varchar;
  36647. parent varchar;
  36648. escape_loc int;
  36649. BEGIN
  36650. --Get name from feature.name
  36651. --Get ID from feature.uniquename
  36652. SELECT INTO feature_row * FROM feature WHERE feature_id = f_id;
  36653. name = feature_row.name;
  36654. return_string = ''ID='' || feature_row.uniquename;
  36655. IF name IS NOT NULL AND name != ''''
  36656. THEN
  36657. return_string = return_string ||'';'' || ''Name='' || name;
  36658. END IF;
  36659. --Get Parent from feature_relationship
  36660. SELECT INTO feature_row * FROM feature f, feature_relationship fr
  36661. WHERE fr.subject_id = f_id AND fr.object_id = f.feature_id;
  36662. IF FOUND
  36663. THEN
  36664. return_string = return_string||'';''||''Parent=''||feature_row.uniquename;
  36665. END IF;
  36666. FOR atts_view IN SELECT * FROM gff3atts WHERE feature_id = f_id LOOP
  36667. escape_loc = position('';'' in atts_view.attribute);
  36668. IF escape_loc > 0 THEN
  36669. atts_view.attribute = replace(atts_view.attribute, '';'', ''%3B'');
  36670. END IF;
  36671. return_string = return_string || '';''
  36672. || atts_view.type || ''=''
  36673. || atts_view.attribute;
  36674. END LOOP;
  36675. RETURN return_string;
  36676. END;
  36677. '
  36678. LANGUAGE plpgsql;
  36679. --creates a view that is suitable for creating a GFF3 string
  36680. --CREATE OR REPLACE VIEW gff3view (
  36681. --REMOVED and RECREATED in sequence-gff-views.sql to avoid
  36682. --using the function above
  36683. --------------------------------
  36684. ---- all_feature_names ---------
  36685. --------------------------------
  36686. -- This is a view to replace the denormaliziation of the synonym
  36687. -- table. It contains names and uniquenames from feature and
  36688. -- synonym.names from the synonym table, so that GBrowse has one
  36689. -- place to search for names.
  36690. --
  36691. -- To materialize this view, run gmod_materialized_view_tool.pl -c and
  36692. -- answer the questions with these responses:
  36693. --
  36694. -- all_feature_names
  36695. --
  36696. -- public.all_feature_names
  36697. --
  36698. -- y (yes, replace the existing view)
  36699. --
  36700. -- (some update frequency, I chose daily)
  36701. --
  36702. -- feature_id integer,name varchar(255),organism_id integer
  36703. --
  36704. -- (the select part of the view below, all on one line)
  36705. --
  36706. -- feature_id,name
  36707. --
  36708. -- create index all_feature_names_lower_name on all_feature_names (lower(name))
  36709. --
  36710. -- y
  36711. --
  36712. -- OR, you could execute this command (the materialized view tool has been
  36713. -- updated to allow this all to be supplied on the command line):
  36714. --
  36715. -- (yes, it's all one really long line, to make copy and pasting easier)
  36716. -- 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
  36717. --
  36718. --
  36719. -- OR, even more complicated, you could use this command to create a materialized view
  36720. -- for use with full text searching on PostgreSQL 8.4 or better:
  36721. --
  36722. -- 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
  36723. --
  36724. CREATE OR REPLACE VIEW all_feature_names (
  36725. feature_id,
  36726. name,
  36727. organism_id
  36728. ) AS
  36729. SELECT feature_id,CAST(substring(uniquename from 0 for 255) as varchar(255)) as name,organism_id FROM feature
  36730. UNION
  36731. SELECT feature_id, name, organism_id FROM feature where name is not null
  36732. UNION
  36733. SELECT fs.feature_id,s.name,f.organism_id FROM feature_synonym fs, synonym s, feature f
  36734. WHERE fs.synonym_id = s.synonym_id AND fs.feature_id = f.feature_id
  36735. UNION
  36736. 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
  36737. WHERE f.feature_id = fp.feature_id
  36738. UNION
  36739. SELECT fd.feature_id, d.accession, f.organism_id FROM feature_dbxref fd, dbxref d,feature f
  36740. WHERE fd.dbxref_id = d.dbxref_id AND fd.feature_id = f.feature_id;
  36741. --------------------------------
  36742. ---- dfeatureloc ---------------
  36743. --------------------------------
  36744. -- dfeatureloc is meant as an alternate representation of
  36745. -- the data in featureloc (see the descrption of featureloc
  36746. -- in sequence.sql). In dfeatureloc, fmin and fmax are
  36747. -- replaced with nbeg and nend. Whereas fmin and fmax
  36748. -- are absolute coordinates relative to the parent feature, nbeg
  36749. -- and nend are the beginning and ending coordinates
  36750. -- relative to the feature itself. For example, nbeg would
  36751. -- mark the 5' end of a gene and nend would mark the 3' end.
  36752. CREATE OR REPLACE VIEW dfeatureloc (
  36753. featureloc_id,
  36754. feature_id,
  36755. srcfeature_id,
  36756. nbeg,
  36757. is_nbeg_partial,
  36758. nend,
  36759. is_nend_partial,
  36760. strand,
  36761. phase,
  36762. residue_info,
  36763. locgroup,
  36764. rank
  36765. ) AS
  36766. SELECT featureloc_id, feature_id, srcfeature_id, fmin, is_fmin_partial,
  36767. fmax, is_fmax_partial, strand, phase, residue_info, locgroup, rank
  36768. FROM featureloc
  36769. WHERE (strand < 0 or phase < 0)
  36770. UNION
  36771. SELECT featureloc_id, feature_id, srcfeature_id, fmax, is_fmax_partial,
  36772. fmin, is_fmin_partial, strand, phase, residue_info, locgroup, rank
  36773. FROM featureloc
  36774. WHERE (strand is NULL or strand >= 0 or phase >= 0) ;
  36775. --------------------------------
  36776. ---- f_type --------------------
  36777. --------------------------------
  36778. CREATE OR REPLACE VIEW f_type
  36779. AS
  36780. SELECT f.feature_id,
  36781. f.name,
  36782. f.dbxref_id,
  36783. c.name AS type,
  36784. f.residues,
  36785. f.seqlen,
  36786. f.md5checksum,
  36787. f.type_id,
  36788. f.timeaccessioned,
  36789. f.timelastmodified
  36790. FROM feature f, cvterm c
  36791. WHERE f.type_id = c.cvterm_id;
  36792. --------------------------------
  36793. ---- fnr_type ------------------
  36794. --------------------------------
  36795. CREATE OR REPLACE VIEW fnr_type
  36796. AS
  36797. SELECT f.feature_id,
  36798. f.name,
  36799. f.dbxref_id,
  36800. c.name AS type,
  36801. f.residues,
  36802. f.seqlen,
  36803. f.md5checksum,
  36804. f.type_id,
  36805. f.timeaccessioned,
  36806. f.timelastmodified
  36807. FROM feature f left outer join analysisfeature af
  36808. on (f.feature_id = af.feature_id), cvterm c
  36809. WHERE f.type_id = c.cvterm_id
  36810. and af.feature_id is null;
  36811. --------------------------------
  36812. ---- f_loc ---------------------
  36813. --------------------------------
  36814. -- Note from Scott: I changed this view to depend on dfeatureloc,
  36815. -- since I don't know what it is used for. The change should
  36816. -- be transparent. I also changed dbxrefstr to dbxref_id since
  36817. -- dbxrefstr is no longer in feature
  36818. CREATE OR REPLACE VIEW f_loc
  36819. AS
  36820. SELECT f.feature_id,
  36821. f.name,
  36822. f.dbxref_id,
  36823. fl.nbeg,
  36824. fl.nend,
  36825. fl.strand
  36826. FROM dfeatureloc fl, f_type f
  36827. WHERE f.feature_id = fl.feature_id;
  36828. --------------------------------
  36829. ---- fp_key -------------------
  36830. --------------------------------
  36831. CREATE OR REPLACE VIEW fp_key
  36832. AS
  36833. SELECT fp.feature_id,
  36834. c.name AS pkey,
  36835. fp.value
  36836. FROM featureprop fp, cvterm c
  36837. WHERE fp.featureprop_id = c.cvterm_id;
  36838. -- [symmetric,reflexive]
  36839. -- intervals have at least one interbase point in common
  36840. -- (i.e. overlap OR abut)
  36841. -- EXAMPLE QUERY:
  36842. -- (features of same type that overlap)
  36843. -- SELECT r.*
  36844. -- FROM feature AS x
  36845. -- INNER JOIN feature_meets AS r ON (x.feature_id=r.subject_id)
  36846. -- INNER JOIN feature AS y ON (y.feature_id=r.object_id)
  36847. -- WHERE x.type_id=y.type_id
  36848. CREATE OR REPLACE VIEW feature_meets (
  36849. subject_id,
  36850. object_id
  36851. ) AS
  36852. SELECT
  36853. x.feature_id,
  36854. y.feature_id
  36855. FROM
  36856. featureloc AS x,
  36857. featureloc AS y
  36858. WHERE
  36859. x.srcfeature_id=y.srcfeature_id
  36860. AND
  36861. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  36862. COMMENT ON VIEW feature_meets IS 'intervals have at least one
  36863. interbase point in common (ie overlap OR abut). symmetric,reflexive';
  36864. -- [symmetric,reflexive]
  36865. -- as above, strands match
  36866. CREATE OR REPLACE VIEW feature_meets_on_same_strand (
  36867. subject_id,
  36868. object_id
  36869. ) AS
  36870. SELECT
  36871. x.feature_id,
  36872. y.feature_id
  36873. FROM
  36874. featureloc AS x,
  36875. featureloc AS y
  36876. WHERE
  36877. x.srcfeature_id=y.srcfeature_id
  36878. AND
  36879. x.strand = y.strand
  36880. AND
  36881. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  36882. COMMENT ON VIEW feature_meets_on_same_strand IS 'as feature_meets, but
  36883. featurelocs must be on the same strand. symmetric,reflexive';
  36884. -- [symmetric]
  36885. -- intervals have no interbase points in common and do not abut
  36886. CREATE OR REPLACE VIEW feature_disjoint (
  36887. subject_id,
  36888. object_id
  36889. ) AS
  36890. SELECT
  36891. x.feature_id,
  36892. y.feature_id
  36893. FROM
  36894. featureloc AS x,
  36895. featureloc AS y
  36896. WHERE
  36897. x.srcfeature_id=y.srcfeature_id
  36898. AND
  36899. ( x.fmax < y.fmin AND x.fmin > y.fmax );
  36900. COMMENT ON VIEW feature_disjoint IS 'featurelocs do not meet. symmetric';
  36901. -- 4-ary relation
  36902. CREATE OR REPLACE VIEW feature_union AS
  36903. SELECT
  36904. x.feature_id AS subject_id,
  36905. y.feature_id AS object_id,
  36906. x.srcfeature_id,
  36907. x.strand AS subject_strand,
  36908. y.strand AS object_strand,
  36909. CASE WHEN x.fmin<y.fmin THEN x.fmin ELSE y.fmin END AS fmin,
  36910. CASE WHEN x.fmax>y.fmax THEN x.fmax ELSE y.fmax END AS fmax
  36911. FROM
  36912. featureloc AS x,
  36913. featureloc AS y
  36914. WHERE
  36915. x.srcfeature_id=y.srcfeature_id
  36916. AND
  36917. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  36918. COMMENT ON VIEW feature_union IS 'set-union on interval defined by featureloc. featurelocs must meet';
  36919. -- 4-ary relation
  36920. CREATE OR REPLACE VIEW feature_intersection AS
  36921. SELECT
  36922. x.feature_id AS subject_id,
  36923. y.feature_id AS object_id,
  36924. x.srcfeature_id,
  36925. x.strand AS subject_strand,
  36926. y.strand AS object_strand,
  36927. CASE WHEN x.fmin<y.fmin THEN y.fmin ELSE x.fmin END AS fmin,
  36928. CASE WHEN x.fmax>y.fmax THEN y.fmax ELSE x.fmax END AS fmax
  36929. FROM
  36930. featureloc AS x,
  36931. featureloc AS y
  36932. WHERE
  36933. x.srcfeature_id=y.srcfeature_id
  36934. AND
  36935. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  36936. COMMENT ON VIEW feature_intersection IS 'set-intersection on interval defined by featureloc. featurelocs must meet';
  36937. -- 4-ary relation
  36938. -- subtract object interval from subject interval
  36939. -- (may leave zero, one or two intervals)
  36940. CREATE OR REPLACE VIEW feature_difference (
  36941. subject_id,
  36942. object_id,
  36943. srcfeature_id,
  36944. fmin,
  36945. fmax,
  36946. strand
  36947. ) AS
  36948. -- left interval
  36949. SELECT
  36950. x.feature_id,
  36951. y.feature_id,
  36952. x.strand,
  36953. x.srcfeature_id,
  36954. x.fmin,
  36955. y.fmin
  36956. FROM
  36957. featureloc AS x,
  36958. featureloc AS y
  36959. WHERE
  36960. x.srcfeature_id=y.srcfeature_id
  36961. AND
  36962. (x.fmin < y.fmin AND x.fmax >= y.fmax )
  36963. UNION
  36964. -- right interval
  36965. SELECT
  36966. x.feature_id,
  36967. y.feature_id,
  36968. x.strand,
  36969. x.srcfeature_id,
  36970. y.fmax,
  36971. x.fmax
  36972. FROM
  36973. featureloc AS x,
  36974. featureloc AS y
  36975. WHERE
  36976. x.srcfeature_id=y.srcfeature_id
  36977. AND
  36978. (x.fmax > y.fmax AND x.fmin <= y.fmin );
  36979. COMMENT ON VIEW feature_difference IS 'set-distance on interval defined by featureloc. featurelocs must meet';
  36980. -- 4-ary relation
  36981. CREATE OR REPLACE VIEW feature_distance AS
  36982. SELECT
  36983. x.feature_id AS subject_id,
  36984. y.feature_id AS object_id,
  36985. x.srcfeature_id,
  36986. x.strand AS subject_strand,
  36987. y.strand AS object_strand,
  36988. CASE WHEN x.fmax <= y.fmin THEN (x.fmax-y.fmin) ELSE (y.fmax-x.fmin) END AS distance
  36989. FROM
  36990. featureloc AS x,
  36991. featureloc AS y
  36992. WHERE
  36993. x.srcfeature_id=y.srcfeature_id
  36994. AND
  36995. ( x.fmax <= y.fmin OR x.fmin >= y.fmax );
  36996. COMMENT ON VIEW feature_difference IS 'size of gap between two features. must be abutting or disjoint';
  36997. -- [transitive,reflexive]
  36998. -- (should this be made non-reflexive?)
  36999. -- subject intervals contains (or is same as) object interval
  37000. CREATE OR REPLACE VIEW feature_contains (
  37001. subject_id,
  37002. object_id
  37003. ) AS
  37004. SELECT
  37005. x.feature_id,
  37006. y.feature_id
  37007. FROM
  37008. featureloc AS x,
  37009. featureloc AS y
  37010. WHERE
  37011. x.srcfeature_id=y.srcfeature_id
  37012. AND
  37013. ( y.fmin >= x.fmin AND y.fmin <= x.fmax );
  37014. COMMENT ON VIEW feature_contains IS 'subject intervals contains (or is
  37015. same as) object interval. transitive,reflexive';
  37016. -- featureset relations:
  37017. -- a featureset relation is true between any two features x and y
  37018. -- if the relation is true for any x' and y' where x' and y' are
  37019. -- subfeatures of x and y
  37020. -- see feature_meets
  37021. -- example: two transcripts meet if any of their exons or CDSs overlap
  37022. -- or abut
  37023. CREATE OR REPLACE VIEW featureset_meets (
  37024. subject_id,
  37025. object_id
  37026. ) AS
  37027. SELECT
  37028. x.object_id,
  37029. y.object_id
  37030. FROM
  37031. feature_meets AS r
  37032. INNER JOIN feature_relationship AS x ON (r.subject_id = x.subject_id)
  37033. INNER JOIN feature_relationship AS y ON (r.object_id = y.subject_id);
  37034. -- =================================================================
  37035. -- Dependencies:
  37036. --
  37037. -- :import feature from sequence
  37038. -- :import cvterm from cv
  37039. -- :import pub from pub
  37040. -- :import phenotype from phenotype
  37041. -- :import organism from organism
  37042. -- :import genotype from genetic
  37043. -- :import contact from contact
  37044. -- :import project from project
  37045. -- :import stock from stock
  37046. -- :import synonym
  37047. -- =================================================================
  37048. -- this probably needs some work, depending on how cross-database we
  37049. -- want to be. In Postgres, at least, there are much better ways to
  37050. -- represent geo information.
  37051. CREATE TABLE nd_geolocation (
  37052. nd_geolocation_id serial PRIMARY KEY NOT NULL,
  37053. description character varying(255),
  37054. latitude real,
  37055. longitude real,
  37056. geodetic_datum character varying(32),
  37057. altitude real
  37058. );
  37059. 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.';
  37060. 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.';
  37061. 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.';
  37062. 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.';
  37063. 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.';
  37064. 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.';
  37065. CREATE TABLE nd_experiment (
  37066. nd_experiment_id serial PRIMARY KEY NOT NULL,
  37067. nd_geolocation_id integer NOT NULL references nd_geolocation (nd_geolocation_id) on delete cascade INITIALLY DEFERRED,
  37068. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED
  37069. );
  37070. --
  37071. --used to be nd_diversityexperiment_project
  37072. --then was nd_assay_project
  37073. CREATE TABLE nd_experiment_project (
  37074. nd_experiment_project_id serial PRIMARY KEY NOT NULL,
  37075. project_id integer not null references project (project_id) on delete cascade INITIALLY DEFERRED,
  37076. nd_experiment_id integer NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED
  37077. );
  37078. CREATE TABLE nd_experimentprop (
  37079. nd_experimentprop_id serial PRIMARY KEY NOT NULL,
  37080. nd_experiment_id integer NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37081. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED ,
  37082. value text null,
  37083. rank integer NOT NULL default 0,
  37084. constraint nd_experimentprop_c1 unique (nd_experiment_id,type_id,rank)
  37085. );
  37086. CREATE TABLE nd_experiment_pub (
  37087. nd_experiment_pub_id serial PRIMARY KEY not null,
  37088. nd_experiment_id int not null,
  37089. foreign key (nd_experiment_id) references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37090. pub_id int not null,
  37091. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  37092. constraint nd_experiment_pub_c1 unique (nd_experiment_id,pub_id)
  37093. );
  37094. create index nd_experiment_pub_idx1 on nd_experiment_pub (nd_experiment_id);
  37095. create index nd_experiment_pub_idx2 on nd_experiment_pub (pub_id);
  37096. COMMENT ON TABLE nd_experiment_pub IS 'Linking nd_experiment(s) to publication(s)';
  37097. CREATE TABLE nd_geolocationprop (
  37098. nd_geolocationprop_id serial PRIMARY KEY NOT NULL,
  37099. nd_geolocation_id integer NOT NULL references nd_geolocation (nd_geolocation_id) on delete cascade INITIALLY DEFERRED,
  37100. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  37101. value text null,
  37102. rank integer NOT NULL DEFAULT 0,
  37103. constraint nd_geolocationprop_c1 unique (nd_geolocation_id,type_id,rank)
  37104. );
  37105. COMMENT ON TABLE nd_geolocationprop IS 'Property/value associations for geolocations. This table can store the properties such as location and environment';
  37106. COMMENT ON COLUMN nd_geolocationprop.type_id IS 'The name of the property as a reference to a controlled vocabulary term.';
  37107. COMMENT ON COLUMN nd_geolocationprop.value IS 'The value of the property.';
  37108. COMMENT ON COLUMN nd_geolocationprop.rank IS 'The rank of the property value, if the property has an array of values.';
  37109. CREATE TABLE nd_protocol (
  37110. nd_protocol_id serial PRIMARY KEY NOT NULL,
  37111. name character varying(255) NOT NULL unique,
  37112. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED
  37113. );
  37114. COMMENT ON TABLE nd_protocol IS 'A protocol can be anything that is done as part of the experiment.';
  37115. COMMENT ON COLUMN nd_protocol.name IS 'The protocol name.';
  37116. CREATE TABLE nd_reagent (
  37117. nd_reagent_id serial PRIMARY KEY NOT NULL,
  37118. name character varying(80) NOT NULL,
  37119. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  37120. feature_id integer
  37121. );
  37122. 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.';
  37123. COMMENT ON COLUMN nd_reagent.name IS 'The name of the reagent. The name should be unique for a given type.';
  37124. COMMENT ON COLUMN nd_reagent.type_id IS 'The type of the reagent, for example linker oligomer, or forward primer.';
  37125. 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.';
  37126. CREATE TABLE nd_protocol_reagent (
  37127. nd_protocol_reagent_id serial PRIMARY KEY NOT NULL,
  37128. nd_protocol_id integer NOT NULL references nd_protocol (nd_protocol_id) on delete cascade INITIALLY DEFERRED,
  37129. reagent_id integer NOT NULL references nd_reagent (nd_reagent_id) on delete cascade INITIALLY DEFERRED,
  37130. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED
  37131. );
  37132. CREATE TABLE nd_protocolprop (
  37133. nd_protocolprop_id serial PRIMARY KEY NOT NULL,
  37134. nd_protocol_id integer NOT NULL references nd_protocol (nd_protocol_id) on delete cascade INITIALLY DEFERRED,
  37135. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  37136. value text null,
  37137. rank integer DEFAULT 0 NOT NULL,
  37138. constraint nd_protocolprop_c1 unique (nd_protocol_id,type_id,rank)
  37139. );
  37140. COMMENT ON TABLE nd_protocolprop IS 'Property/value associations for protocol.';
  37141. COMMENT ON COLUMN nd_protocolprop.nd_protocol_id IS 'The protocol to which the property applies.';
  37142. COMMENT ON COLUMN nd_protocolprop.type_id IS 'The name of the property as a reference to a controlled vocabulary term.';
  37143. COMMENT ON COLUMN nd_protocolprop.value IS 'The value of the property.';
  37144. COMMENT ON COLUMN nd_protocolprop.rank IS 'The rank of the property value, if the property has an array of values.';
  37145. CREATE TABLE nd_experiment_stock (
  37146. nd_experiment_stock_id serial PRIMARY KEY NOT NULL,
  37147. nd_experiment_id integer NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37148. stock_id integer NOT NULL references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  37149. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED
  37150. );
  37151. COMMENT ON TABLE nd_experiment_stock IS 'Part of a stock or a clone of a stock that is used in an experiment';
  37152. COMMENT ON COLUMN nd_experiment_stock.stock_id IS 'stock used in the extraction or the corresponding stock for the clone';
  37153. CREATE TABLE nd_experiment_protocol (
  37154. nd_experiment_protocol_id serial PRIMARY KEY NOT NULL,
  37155. nd_experiment_id integer NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37156. nd_protocol_id integer NOT NULL references nd_protocol (nd_protocol_id) on delete cascade INITIALLY DEFERRED
  37157. );
  37158. COMMENT ON TABLE nd_experiment_protocol IS 'Linking table: experiments to the protocols they involve.';
  37159. CREATE TABLE nd_experiment_phenotype (
  37160. nd_experiment_phenotype_id serial PRIMARY KEY NOT NULL,
  37161. nd_experiment_id integer NOT NULL REFERENCES nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37162. phenotype_id integer NOT NULL references phenotype (phenotype_id) on delete cascade INITIALLY DEFERRED,
  37163. constraint nd_experiment_phenotype_c1 unique (nd_experiment_id,phenotype_id)
  37164. );
  37165. 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.';
  37166. CREATE TABLE nd_experiment_genotype (
  37167. nd_experiment_genotype_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. genotype_id integer NOT NULL references genotype (genotype_id) on delete cascade INITIALLY DEFERRED ,
  37170. constraint nd_experiment_genotype_c1 unique (nd_experiment_id,genotype_id)
  37171. );
  37172. 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.';
  37173. CREATE TABLE nd_reagent_relationship (
  37174. nd_reagent_relationship_id serial PRIMARY KEY NOT NULL,
  37175. subject_reagent_id integer NOT NULL references nd_reagent (nd_reagent_id) on delete cascade INITIALLY DEFERRED,
  37176. object_reagent_id integer NOT NULL references nd_reagent (nd_reagent_id) on delete cascade INITIALLY DEFERRED,
  37177. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED
  37178. );
  37179. 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.';
  37180. 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.';
  37181. 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.';
  37182. 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.';
  37183. CREATE TABLE nd_reagentprop (
  37184. nd_reagentprop_id serial PRIMARY KEY NOT NULL,
  37185. nd_reagent_id integer NOT NULL references nd_reagent (nd_reagent_id) on delete cascade INITIALLY DEFERRED,
  37186. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  37187. value text null,
  37188. rank integer DEFAULT 0 NOT NULL,
  37189. constraint nd_reagentprop_c1 unique (nd_reagent_id,type_id,rank)
  37190. );
  37191. CREATE TABLE nd_experiment_stockprop (
  37192. nd_experiment_stockprop_id serial PRIMARY KEY NOT NULL,
  37193. nd_experiment_stock_id integer NOT NULL references nd_experiment_stock (nd_experiment_stock_id) on delete cascade INITIALLY DEFERRED,
  37194. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  37195. value text null,
  37196. rank integer DEFAULT 0 NOT NULL,
  37197. constraint nd_experiment_stockprop_c1 unique (nd_experiment_stock_id,type_id,rank)
  37198. );
  37199. COMMENT ON TABLE nd_experiment_stockprop IS 'Property/value associations for experiment_stocks. This table can store the properties such as treatment';
  37200. COMMENT ON COLUMN nd_experiment_stockprop.nd_experiment_stock_id IS 'The experiment_stock to which the property applies.';
  37201. COMMENT ON COLUMN nd_experiment_stockprop.type_id IS 'The name of the property as a reference to a controlled vocabulary term.';
  37202. COMMENT ON COLUMN nd_experiment_stockprop.value IS 'The value of the property.';
  37203. COMMENT ON COLUMN nd_experiment_stockprop.rank IS 'The rank of the property value, if the property has an array of values.';
  37204. CREATE TABLE nd_experiment_stock_dbxref (
  37205. nd_experiment_stock_dbxref_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. dbxref_id integer NOT NULL references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED
  37208. );
  37209. COMMENT ON TABLE nd_experiment_stock_dbxref IS 'Cross-reference experiment_stock to accessions, images, etc';
  37210. CREATE TABLE nd_experiment_dbxref (
  37211. nd_experiment_dbxref_id serial PRIMARY KEY NOT NULL,
  37212. nd_experiment_id integer NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37213. dbxref_id integer NOT NULL references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED
  37214. );
  37215. COMMENT ON TABLE nd_experiment_dbxref IS 'Cross-reference experiment to accessions, images, etc';
  37216. CREATE TABLE nd_experiment_contact (
  37217. nd_experiment_contact_id serial PRIMARY KEY NOT NULL,
  37218. nd_experiment_id integer NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37219. contact_id integer NOT NULL references contact (contact_id) on delete cascade INITIALLY DEFERRED
  37220. );