default_schema-1.11.sql 1.8 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882
  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. -- ================================================
  60. -- TABLE: project
  61. -- ================================================
  62. create table project (
  63. project_id serial not null,
  64. primary key (project_id),
  65. name varchar(255) not null,
  66. description varchar(255) not null,
  67. constraint project_c1 unique (name)
  68. );
  69. COMMENT ON TABLE project IS NULL;
  70. CREATE VIEW db_dbxref_count AS
  71. SELECT db.name,count(*) AS num_dbxrefs FROM db INNER JOIN dbxref USING (db_id) GROUP BY db.name;
  72. COMMENT ON VIEW db_dbxref_count IS 'per-db dbxref counts';
  73. CREATE OR REPLACE FUNCTION store_db (VARCHAR)
  74. RETURNS INT AS
  75. 'DECLARE
  76. v_name ALIAS FOR $1;
  77. v_db_id INTEGER;
  78. BEGIN
  79. SELECT INTO v_db_id db_id
  80. FROM db
  81. WHERE name=v_name;
  82. IF NOT FOUND THEN
  83. INSERT INTO db
  84. (name)
  85. VALUES
  86. (v_name);
  87. RETURN currval(''db_db_id_seq'');
  88. END IF;
  89. RETURN v_db_id;
  90. END;
  91. ' LANGUAGE 'plpgsql';
  92. CREATE OR REPLACE FUNCTION store_dbxref (VARCHAR,VARCHAR)
  93. RETURNS INT AS
  94. 'DECLARE
  95. v_dbname ALIAS FOR $1;
  96. v_accession ALIAS FOR $1;
  97. v_db_id INTEGER;
  98. v_dbxref_id INTEGER;
  99. BEGIN
  100. SELECT INTO v_db_id
  101. store_db(v_dbname);
  102. SELECT INTO v_dbxref_id dbxref_id
  103. FROM dbxref
  104. WHERE db_id=v_db_id AND
  105. accession=v_accession;
  106. IF NOT FOUND THEN
  107. INSERT INTO dbxref
  108. (db_id,accession)
  109. VALUES
  110. (v_db_id,v_accession);
  111. RETURN currval(''dbxref_dbxref_id_seq'');
  112. END IF;
  113. RETURN v_dbxref_id;
  114. END;
  115. ' LANGUAGE 'plpgsql';
  116. -- ==========================================
  117. -- Chado cv module
  118. --
  119. -- =================================================================
  120. -- Dependencies:
  121. --
  122. -- :import dbxref from general
  123. -- =================================================================
  124. -- ================================================
  125. -- TABLE: cv
  126. -- ================================================
  127. create table cv (
  128. cv_id serial not null,
  129. primary key (cv_id),
  130. name varchar(255) not null,
  131. definition text,
  132. constraint cv_c1 unique (name)
  133. );
  134. COMMENT ON TABLE cv IS 'A controlled vocabulary or ontology. A cv is
  135. composed of cvterms (AKA terms, classes, types, universals - relations
  136. and properties are also stored in cvterm) and the relationships
  137. between them.';
  138. COMMENT ON COLUMN cv.name IS 'The name of the ontology. This
  139. corresponds to the obo-format -namespace-. cv names uniquely identify
  140. the cv. In OBO file format, the cv.name is known as the namespace.';
  141. COMMENT ON COLUMN cv.definition IS 'A text description of the criteria for
  142. membership of this ontology.';
  143. -- ================================================
  144. -- TABLE: cvterm
  145. -- ================================================
  146. create table cvterm (
  147. cvterm_id serial not null,
  148. primary key (cvterm_id),
  149. cv_id int not null,
  150. foreign key (cv_id) references cv (cv_id) on delete cascade INITIALLY DEFERRED,
  151. name varchar(1024) not null,
  152. definition text,
  153. dbxref_id int not null,
  154. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  155. is_obsolete int not null default 0,
  156. is_relationshiptype int not null default 0,
  157. constraint cvterm_c1 unique (name,cv_id,is_obsolete),
  158. constraint cvterm_c2 unique (dbxref_id)
  159. );
  160. create index cvterm_idx1 on cvterm (cv_id);
  161. create index cvterm_idx2 on cvterm (name);
  162. create index cvterm_idx3 on cvterm (dbxref_id);
  163. COMMENT ON TABLE cvterm IS 'A term, class, universal or type within an
  164. ontology or controlled vocabulary. This table is also used for
  165. relations and properties. cvterms constitute nodes in the graph
  166. defined by the collection of cvterms and cvterm_relationships.';
  167. COMMENT ON COLUMN cvterm.cv_id IS 'The cv or ontology or namespace to which
  168. this cvterm belongs.';
  169. COMMENT ON COLUMN cvterm.name IS 'A concise human-readable name or
  170. label for the cvterm. Uniquely identifies a cvterm within a cv.';
  171. COMMENT ON COLUMN cvterm.definition IS 'A human-readable text
  172. definition.';
  173. COMMENT ON COLUMN cvterm.dbxref_id IS 'Primary identifier dbxref - The
  174. unique global OBO identifier for this cvterm. Note that a cvterm may
  175. have multiple secondary dbxrefs - see also table: cvterm_dbxref.';
  176. COMMENT ON COLUMN cvterm.is_obsolete IS 'Boolean 0=false,1=true; see
  177. GO documentation for details of obsoletion. Note that two terms with
  178. different primary dbxrefs may exist if one is obsolete.';
  179. COMMENT ON COLUMN cvterm.is_relationshiptype IS 'Boolean
  180. 0=false,1=true relations or relationship types (also known as Typedefs
  181. in OBO format, or as properties or slots) form a cv/ontology in
  182. themselves. We use this flag to indicate whether this cvterm is an
  183. actual term/class/universal or a relation. Relations may be drawn from
  184. the OBO Relations ontology, but are not exclusively drawn from there.';
  185. COMMENT ON INDEX cvterm_c1 IS 'A name can mean different things in
  186. different contexts; for example "chromosome" in SO and GO. A name
  187. should be unique within an ontology or cv. A name may exist twice in a
  188. cv, in both obsolete and non-obsolete forms - these will be for
  189. different cvterms with different OBO identifiers; so GO documentation
  190. for more details on obsoletion. Note that occasionally multiple
  191. obsolete terms with the same name will exist in the same cv. If this
  192. is a possibility for the ontology under consideration (e.g. GO) then the
  193. ID should be appended to the name to ensure uniqueness.';
  194. COMMENT ON INDEX cvterm_c2 IS 'The OBO identifier is globally unique.';
  195. -- ================================================
  196. -- TABLE: cvterm_relationship
  197. -- ================================================
  198. create table cvterm_relationship (
  199. cvterm_relationship_id serial not null,
  200. primary key (cvterm_relationship_id),
  201. type_id int not null,
  202. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  203. subject_id int not null,
  204. foreign key (subject_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  205. object_id int not null,
  206. foreign key (object_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  207. constraint cvterm_relationship_c1 unique (subject_id,object_id,type_id)
  208. );
  209. create index cvterm_relationship_idx1 on cvterm_relationship (type_id);
  210. create index cvterm_relationship_idx2 on cvterm_relationship (subject_id);
  211. create index cvterm_relationship_idx3 on cvterm_relationship (object_id);
  212. COMMENT ON TABLE cvterm_relationship IS 'A relationship linking two
  213. cvterms. Each cvterm_relationship constitutes an edge in the graph
  214. defined by the collection of cvterms and cvterm_relationships. The
  215. meaning of the cvterm_relationship depends on the definition of the
  216. cvterm R refered to by type_id. However, in general the definitions
  217. are such that the statement "all SUBJs REL some OBJ" is true. The
  218. cvterm_relationship statement is about the subject, not the
  219. object. For example "insect wing part_of thorax".';
  220. COMMENT ON COLUMN cvterm_relationship.subject_id IS 'The subject of
  221. the subj-predicate-obj sentence. The cvterm_relationship is about the
  222. subject. In a graph, this typically corresponds to the child node.';
  223. COMMENT ON COLUMN cvterm_relationship.object_id IS 'The object of the
  224. subj-predicate-obj sentence. The cvterm_relationship refers to the
  225. object. In a graph, this typically corresponds to the parent node.';
  226. COMMENT ON COLUMN cvterm_relationship.type_id IS 'The nature of the
  227. relationship between subject and object. Note that relations are also
  228. housed in the cvterm table, typically from the OBO relationship
  229. ontology, although other relationship types are allowed.';
  230. -- ================================================
  231. -- TABLE: cvtermpath
  232. -- ================================================
  233. create table cvtermpath (
  234. cvtermpath_id serial not null,
  235. primary key (cvtermpath_id),
  236. type_id int,
  237. foreign key (type_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  238. subject_id int not null,
  239. foreign key (subject_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  240. object_id int not null,
  241. foreign key (object_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  242. cv_id int not null,
  243. foreign key (cv_id) references cv (cv_id) on delete cascade INITIALLY DEFERRED,
  244. pathdistance int,
  245. constraint cvtermpath_c1 unique (subject_id,object_id,type_id,pathdistance)
  246. );
  247. create index cvtermpath_idx1 on cvtermpath (type_id);
  248. create index cvtermpath_idx2 on cvtermpath (subject_id);
  249. create index cvtermpath_idx3 on cvtermpath (object_id);
  250. create index cvtermpath_idx4 on cvtermpath (cv_id);
  251. COMMENT ON TABLE cvtermpath IS 'The reflexive transitive closure of
  252. the cvterm_relationship relation.';
  253. COMMENT ON COLUMN cvtermpath.type_id IS 'The relationship type that
  254. this is a closure over. If null, then this is a closure over ALL
  255. relationship types. If non-null, then this references a relationship
  256. cvterm - note that the closure will apply to both this relationship
  257. AND the OBO_REL:is_a (subclass) relationship.';
  258. COMMENT ON COLUMN cvtermpath.cv_id IS 'Closures will mostly be within
  259. one cv. If the closure of a relationship traverses a cv, then this
  260. refers to the cv of the object_id cvterm.';
  261. COMMENT ON COLUMN cvtermpath.pathdistance IS 'The number of steps
  262. required to get from the subject cvterm to the object cvterm, counting
  263. from zero (reflexive relationship).';
  264. -- ================================================
  265. -- TABLE: cvtermsynonym
  266. -- ================================================
  267. create table cvtermsynonym (
  268. cvtermsynonym_id serial not null,
  269. primary key (cvtermsynonym_id),
  270. cvterm_id int not null,
  271. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  272. synonym varchar(1024) not null,
  273. type_id int,
  274. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  275. constraint cvtermsynonym_c1 unique (cvterm_id,synonym)
  276. );
  277. create index cvtermsynonym_idx1 on cvtermsynonym (cvterm_id);
  278. COMMENT ON TABLE cvtermsynonym IS 'A cvterm actually represents a
  279. distinct class or concept. A concept can be refered to by different
  280. phrases or names. In addition to the primary name (cvterm.name) there
  281. can be a number of alternative aliases or synonyms. For example, "T
  282. cell" as a synonym for "T lymphocyte".';
  283. COMMENT ON COLUMN cvtermsynonym.type_id IS 'A synonym can be exact,
  284. narrower, or broader than.';
  285. -- ================================================
  286. -- TABLE: cvterm_dbxref
  287. -- ================================================
  288. create table cvterm_dbxref (
  289. cvterm_dbxref_id serial not null,
  290. primary key (cvterm_dbxref_id),
  291. cvterm_id int not null,
  292. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  293. dbxref_id int not null,
  294. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  295. is_for_definition int not null default 0,
  296. constraint cvterm_dbxref_c1 unique (cvterm_id,dbxref_id)
  297. );
  298. create index cvterm_dbxref_idx1 on cvterm_dbxref (cvterm_id);
  299. create index cvterm_dbxref_idx2 on cvterm_dbxref (dbxref_id);
  300. COMMENT ON TABLE cvterm_dbxref IS 'In addition to the primary
  301. identifier (cvterm.dbxref_id) a cvterm can have zero or more secondary
  302. identifiers/dbxrefs, which may refer to records in external
  303. databases. The exact semantics of cvterm_dbxref are not fixed. For
  304. example: the dbxref could be a pubmed ID that is pertinent to the
  305. cvterm, or it could be an equivalent or similar term in another
  306. ontology. For example, GO cvterms are typically linked to InterPro
  307. IDs, even though the nature of the relationship between them is
  308. largely one of statistical association. The dbxref may be have data
  309. records attached in the same database instance, or it could be a
  310. "hanging" dbxref pointing to some external database. NOTE: If the
  311. desired objective is to link two cvterms together, and the nature of
  312. the relation is known and holds for all instances of the subject
  313. cvterm then consider instead using cvterm_relationship together with a
  314. well-defined relation.';
  315. COMMENT ON COLUMN cvterm_dbxref.is_for_definition IS 'A
  316. cvterm.definition should be supported by one or more references. If
  317. this column is true, the dbxref is not for a term in an external database -
  318. it is a dbxref for provenance information for the definition.';
  319. -- ================================================
  320. -- TABLE: cvtermprop
  321. -- ================================================
  322. create table cvtermprop (
  323. cvtermprop_id serial not null,
  324. primary key (cvtermprop_id),
  325. cvterm_id int not null,
  326. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  327. type_id int not null,
  328. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  329. value text not null default '',
  330. rank int not null default 0,
  331. unique(cvterm_id, type_id, value, rank)
  332. );
  333. create index cvtermprop_idx1 on cvtermprop (cvterm_id);
  334. create index cvtermprop_idx2 on cvtermprop (type_id);
  335. COMMENT ON TABLE cvtermprop IS 'Additional extensible properties can be attached to a cvterm using this table. Corresponds to -AnnotationProperty- in W3C OWL format.';
  336. 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.';
  337. COMMENT ON COLUMN cvtermprop.value IS 'The value of the property, represented as text. Numeric values are converted to their text representation.';
  338. COMMENT ON COLUMN cvtermprop.rank IS 'Property-Value ordering. Any
  339. cvterm can have multiple values for any particular property type -
  340. these are ordered in a list using rank, counting from zero. For
  341. properties that are single-valued rather than multi-valued, the
  342. default 0 value should be used.';
  343. -- ================================================
  344. -- TABLE: dbxrefprop
  345. -- ================================================
  346. create table dbxrefprop (
  347. dbxrefprop_id serial not null,
  348. primary key (dbxrefprop_id),
  349. dbxref_id int not null,
  350. foreign key (dbxref_id) references dbxref (dbxref_id) INITIALLY DEFERRED,
  351. type_id int not null,
  352. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  353. value text not null default '',
  354. rank int not null default 0,
  355. constraint dbxrefprop_c1 unique (dbxref_id,type_id,rank)
  356. );
  357. create index dbxrefprop_idx1 on dbxrefprop (dbxref_id);
  358. create index dbxrefprop_idx2 on dbxrefprop (type_id);
  359. 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.';
  360. CREATE OR REPLACE VIEW cv_root AS
  361. SELECT
  362. cv_id,
  363. cvterm_id AS root_cvterm_id
  364. FROM cvterm
  365. WHERE
  366. cvterm_id NOT IN ( SELECT subject_id FROM cvterm_relationship) AND
  367. is_obsolete=0;
  368. COMMENT ON VIEW cv_root IS 'the roots of a cv are the set of terms
  369. which have no parents (terms that are not the subject of a
  370. relation). Most cvs will have a single root, some may have >1. All
  371. will have at least 1';
  372. CREATE OR REPLACE VIEW cv_leaf AS
  373. SELECT
  374. cv_id,
  375. cvterm_id
  376. FROM cvterm
  377. WHERE
  378. cvterm_id NOT IN ( SELECT object_id FROM cvterm_relationship);
  379. COMMENT ON VIEW cv_leaf IS 'the leaves of a cv are the set of terms
  380. which have no children (terms that are not the object of a
  381. relation). All cvs will have at least 1 leaf';
  382. CREATE OR REPLACE VIEW common_ancestor_cvterm AS
  383. SELECT
  384. p1.subject_id AS cvterm1_id,
  385. p2.subject_id AS cvterm2_id,
  386. p1.object_id AS ancestor_cvterm_id,
  387. p1.pathdistance AS pathdistance1,
  388. p2.pathdistance AS pathdistance2,
  389. p1.pathdistance + p2.pathdistance
  390. AS total_pathdistance
  391. FROM
  392. cvtermpath AS p1,
  393. cvtermpath AS p2
  394. WHERE
  395. p1.object_id = p2.object_id;
  396. COMMENT ON VIEW common_ancestor_cvterm IS 'The common ancestor of any
  397. two terms is the intersection of both terms ancestors. Two terms can
  398. have multiple common ancestors. Use total_pathdistance to get the
  399. least common ancestor';
  400. CREATE OR REPLACE VIEW common_descendant_cvterm AS
  401. SELECT
  402. p1.object_id AS cvterm1_id,
  403. p2.object_id AS cvterm2_id,
  404. p1.subject_id AS ancestor_cvterm_id,
  405. p1.pathdistance AS pathdistance1,
  406. p2.pathdistance AS pathdistance2,
  407. p1.pathdistance + p2.pathdistance
  408. AS total_pathdistance
  409. FROM
  410. cvtermpath AS p1,
  411. cvtermpath AS p2
  412. WHERE
  413. p1.subject_id = p2.subject_id;
  414. COMMENT ON VIEW common_descendant_cvterm IS 'The common descendant of
  415. any two terms is the intersection of both terms descendants. Two terms
  416. can have multiple common descendants. Use total_pathdistance to get
  417. the least common ancestor';
  418. CREATE OR REPLACE VIEW stats_paths_to_root AS
  419. SELECT
  420. subject_id AS cvterm_id,
  421. count(DISTINCT cvtermpath_id) AS total_paths,
  422. avg(pathdistance) AS avg_distance,
  423. min(pathdistance) AS min_distance,
  424. max(pathdistance) AS max_distance
  425. FROM cvtermpath INNER JOIN cv_root ON (object_id=root_cvterm_id)
  426. GROUP BY cvterm_id;
  427. COMMENT ON VIEW stats_paths_to_root IS 'per-cvterm statistics on its
  428. placement in the DAG relative to the root. There may be multiple paths
  429. from any term to the root. This gives the total number of paths, and
  430. the average minimum and maximum distances. Here distance is defined by
  431. cvtermpath.pathdistance';
  432. CREATE VIEW cv_cvterm_count AS
  433. 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;
  434. COMMENT ON VIEW cv_cvterm_count IS 'per-cv terms counts (excludes obsoletes)';
  435. CREATE VIEW cv_cvterm_count_with_obs AS
  436. SELECT cv.name,count(*) AS num_terms_incl_obs FROM cv INNER JOIN cvterm USING (cv_id) GROUP BY cv.name;
  437. COMMENT ON VIEW cv_cvterm_count_with_obs IS 'per-cv terms counts (includes obsoletes)';
  438. CREATE VIEW cv_link_count AS
  439. SELECT cv.name AS cv_name,
  440. relation.name AS relation_name,
  441. relation_cv.name AS relation_cv_name,
  442. count(*) AS num_links
  443. FROM cv
  444. INNER JOIN cvterm ON (cvterm.cv_id=cv.cv_id)
  445. INNER JOIN cvterm_relationship ON (cvterm.cvterm_id=subject_id)
  446. INNER JOIN cvterm AS relation ON (type_id=relation.cvterm_id)
  447. INNER JOIN cv AS relation_cv ON (relation.cv_id=relation_cv.cv_id)
  448. GROUP BY cv.name,relation.name,relation_cv.name;
  449. COMMENT ON VIEW cv_link_count IS 'per-cv summary of number of
  450. links (cvterm_relationships) broken down by
  451. relationship_type. num_links is the total # of links of the specified
  452. type in which the subject_id of the link is in the named cv';
  453. CREATE VIEW cv_path_count AS
  454. SELECT cv.name AS cv_name,
  455. relation.name AS relation_name,
  456. relation_cv.name AS relation_cv_name,
  457. count(*) AS num_paths
  458. FROM cv
  459. INNER JOIN cvterm ON (cvterm.cv_id=cv.cv_id)
  460. INNER JOIN cvtermpath ON (cvterm.cvterm_id=subject_id)
  461. INNER JOIN cvterm AS relation ON (type_id=relation.cvterm_id)
  462. INNER JOIN cv AS relation_cv ON (relation.cv_id=relation_cv.cv_id)
  463. GROUP BY cv.name,relation.name,relation_cv.name;
  464. COMMENT ON VIEW cv_path_count IS 'per-cv summary of number of
  465. paths (cvtermpaths) broken down by relationship_type. num_paths is the
  466. total # of paths of the specified type in which the subject_id of the
  467. path is in the named cv. See also: cv_distinct_relations';
  468. CREATE OR REPLACE FUNCTION _get_all_subject_ids(integer) RETURNS SETOF cvtermpath AS
  469. '
  470. DECLARE
  471. root alias for $1;
  472. cterm cvtermpath%ROWTYPE;
  473. cterm2 cvtermpath%ROWTYPE;
  474. BEGIN
  475. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = root LOOP
  476. RETURN NEXT cterm;
  477. FOR cterm2 IN SELECT * FROM _get_all_subject_ids(cterm.subject_id) LOOP
  478. RETURN NEXT cterm2;
  479. END LOOP;
  480. END LOOP;
  481. RETURN;
  482. END;
  483. '
  484. LANGUAGE 'plpgsql';
  485. ---arg: parent term id
  486. ---return: all children term id and their parent term id with relationship type id
  487. CREATE OR REPLACE FUNCTION get_all_subject_ids(integer) RETURNS SETOF cvtermpath AS
  488. '
  489. DECLARE
  490. root alias for $1;
  491. cterm cvtermpath%ROWTYPE;
  492. exist_c int;
  493. BEGIN
  494. SELECT INTO exist_c count(*) FROM cvtermpath WHERE object_id = root and pathdistance <= 0;
  495. IF (exist_c > 0) THEN
  496. FOR cterm IN SELECT * FROM cvtermpath WHERE object_id = root and pathdistance > 0 LOOP
  497. RETURN NEXT cterm;
  498. END LOOP;
  499. ELSE
  500. FOR cterm IN SELECT * FROM _get_all_subject_ids(root) LOOP
  501. RETURN NEXT cterm;
  502. END LOOP;
  503. END IF;
  504. RETURN;
  505. END;
  506. '
  507. LANGUAGE 'plpgsql';
  508. CREATE OR REPLACE FUNCTION get_graph_below(integer) RETURNS SETOF cvtermpath AS
  509. '
  510. DECLARE
  511. root alias for $1;
  512. cterm cvtermpath%ROWTYPE;
  513. cterm2 cvtermpath%ROWTYPE;
  514. BEGIN
  515. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = root LOOP
  516. RETURN NEXT cterm;
  517. FOR cterm2 IN SELECT * FROM get_all_subject_ids(cterm.subject_id) LOOP
  518. RETURN NEXT cterm2;
  519. END LOOP;
  520. END LOOP;
  521. RETURN;
  522. END;
  523. '
  524. LANGUAGE 'plpgsql';
  525. CREATE OR REPLACE FUNCTION get_graph_above(integer) RETURNS SETOF cvtermpath AS
  526. '
  527. DECLARE
  528. leaf alias for $1;
  529. cterm cvtermpath%ROWTYPE;
  530. cterm2 cvtermpath%ROWTYPE;
  531. BEGIN
  532. FOR cterm IN SELECT * FROM cvterm_relationship WHERE subject_id = leaf LOOP
  533. RETURN NEXT cterm;
  534. FOR cterm2 IN SELECT * FROM get_all_object_ids(cterm.object_id) LOOP
  535. RETURN NEXT cterm2;
  536. END LOOP;
  537. END LOOP;
  538. RETURN;
  539. END;
  540. '
  541. LANGUAGE 'plpgsql';
  542. CREATE OR REPLACE FUNCTION _get_all_object_ids(integer) RETURNS SETOF cvtermpath AS
  543. '
  544. DECLARE
  545. leaf alias for $1;
  546. cterm cvtermpath%ROWTYPE;
  547. cterm2 cvtermpath%ROWTYPE;
  548. BEGIN
  549. FOR cterm IN SELECT * FROM cvterm_relationship WHERE subject_id = leaf LOOP
  550. RETURN NEXT cterm;
  551. FOR cterm2 IN SELECT * FROM _get_all_object_ids(cterm.object_id) LOOP
  552. RETURN NEXT cterm2;
  553. END LOOP;
  554. END LOOP;
  555. RETURN;
  556. END;
  557. '
  558. LANGUAGE 'plpgsql';
  559. ---arg: child term id
  560. ---return: all parent term id and their childrent term id with relationship type id
  561. CREATE OR REPLACE FUNCTION get_all_object_ids(integer) RETURNS SETOF cvtermpath AS
  562. '
  563. DECLARE
  564. leaf alias for $1;
  565. cterm cvtermpath%ROWTYPE;
  566. exist_c int;
  567. BEGIN
  568. SELECT INTO exist_c count(*) FROM cvtermpath WHERE object_id = leaf and pathdistance <= 0;
  569. IF (exist_c > 0) THEN
  570. FOR cterm IN SELECT * FROM cvtermpath WHERE subject_id = leaf AND pathdistance > 0 LOOP
  571. RETURN NEXT cterm;
  572. END LOOP;
  573. ELSE
  574. FOR cterm IN SELECT * FROM _get_all_object_ids(leaf) LOOP
  575. RETURN NEXT cterm;
  576. END LOOP;
  577. END IF;
  578. RETURN;
  579. END;
  580. '
  581. LANGUAGE 'plpgsql';
  582. ---arg: sql statement which must be in the form of select cvterm_id from ...
  583. ---return: a set of cvterm ids that includes what is in sql statement and their children (subject ids)
  584. CREATE OR REPLACE FUNCTION get_it_sub_cvterm_ids(text) RETURNS SETOF cvterm AS
  585. '
  586. DECLARE
  587. query alias for $1;
  588. cterm cvterm%ROWTYPE;
  589. cterm2 cvterm%ROWTYPE;
  590. BEGIN
  591. FOR cterm IN EXECUTE query LOOP
  592. RETURN NEXT cterm;
  593. FOR cterm2 IN SELECT subject_id as cvterm_id FROM get_all_subject_ids(cterm.cvterm_id) LOOP
  594. RETURN NEXT cterm2;
  595. END LOOP;
  596. END LOOP;
  597. RETURN;
  598. END;
  599. '
  600. LANGUAGE 'plpgsql';
  601. --- example: select * from fill_cvtermpath(7); where 7 is cv_id for an ontology
  602. --- fill path from the node to its children and their children
  603. CREATE OR REPLACE FUNCTION _fill_cvtermpath4node(INTEGER, INTEGER, INTEGER, INTEGER, INTEGER) RETURNS INTEGER AS
  604. '
  605. DECLARE
  606. origin alias for $1;
  607. child_id alias for $2;
  608. cvid alias for $3;
  609. typeid alias for $4;
  610. depth alias for $5;
  611. cterm cvterm_relationship%ROWTYPE;
  612. exist_c int;
  613. BEGIN
  614. --- RAISE NOTICE ''depth=% root=%'', depth,child_id;
  615. --- not check type_id as it may be null and not very meaningful in cvtermpath when pathdistance > 1
  616. SELECT INTO exist_c count(*) FROM cvtermpath WHERE cv_id = cvid AND object_id = origin AND subject_id = child_id AND pathdistance = depth;
  617. IF (exist_c = 0) THEN
  618. INSERT INTO cvtermpath (object_id, subject_id, cv_id, type_id, pathdistance) VALUES(origin, child_id, cvid, typeid, depth);
  619. END IF;
  620. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = child_id LOOP
  621. PERFORM _fill_cvtermpath4node(origin, cterm.subject_id, cvid, cterm.type_id, depth+1);
  622. END LOOP;
  623. RETURN 1;
  624. END;
  625. '
  626. LANGUAGE 'plpgsql';
  627. CREATE OR REPLACE FUNCTION _fill_cvtermpath4root(INTEGER, INTEGER) RETURNS INTEGER AS
  628. '
  629. DECLARE
  630. rootid alias for $1;
  631. cvid alias for $2;
  632. ttype int;
  633. cterm cvterm_relationship%ROWTYPE;
  634. child cvterm_relationship%ROWTYPE;
  635. BEGIN
  636. SELECT INTO ttype cvterm_id FROM cvterm WHERE (name = ''isa'' OR name = ''is_a'');
  637. PERFORM _fill_cvtermpath4node(rootid, rootid, cvid, ttype, 0);
  638. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = rootid LOOP
  639. PERFORM _fill_cvtermpath4root(cterm.subject_id, cvid);
  640. -- RAISE NOTICE ''DONE for term, %'', cterm.subject_id;
  641. END LOOP;
  642. RETURN 1;
  643. END;
  644. '
  645. LANGUAGE 'plpgsql';
  646. CREATE OR REPLACE FUNCTION fill_cvtermpath(INTEGER) RETURNS INTEGER AS
  647. '
  648. DECLARE
  649. cvid alias for $1;
  650. root cvterm%ROWTYPE;
  651. BEGIN
  652. DELETE FROM cvtermpath WHERE cv_id = cvid;
  653. 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
  654. PERFORM _fill_cvtermpath4root(root.cvterm_id, root.cv_id);
  655. END LOOP;
  656. RETURN 1;
  657. END;
  658. '
  659. LANGUAGE 'plpgsql';
  660. CREATE OR REPLACE FUNCTION fill_cvtermpath(cv.name%TYPE) RETURNS INTEGER AS
  661. '
  662. DECLARE
  663. cvname alias for $1;
  664. cv_id int;
  665. rtn int;
  666. BEGIN
  667. SELECT INTO cv_id cv.cv_id from cv WHERE cv.name = cvname;
  668. SELECT INTO rtn fill_cvtermpath(cv_id);
  669. RETURN rtn;
  670. END;
  671. '
  672. LANGUAGE 'plpgsql';
  673. CREATE OR REPLACE FUNCTION _fill_cvtermpath4node2detect_cycle(INTEGER, INTEGER, INTEGER, INTEGER, INTEGER) RETURNS INTEGER AS
  674. '
  675. DECLARE
  676. origin alias for $1;
  677. child_id alias for $2;
  678. cvid alias for $3;
  679. typeid alias for $4;
  680. depth alias for $5;
  681. cterm cvterm_relationship%ROWTYPE;
  682. exist_c int;
  683. ccount int;
  684. ecount int;
  685. rtn int;
  686. BEGIN
  687. 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'';
  688. GET DIAGNOSTICS ccount = ROW_COUNT;
  689. IF (ccount > 0) THEN
  690. --RAISE EXCEPTION ''FOUND CYCLE: node % on cycle path'',origin;
  691. RETURN origin;
  692. END IF;
  693. EXECUTE ''SELECT * FROM tmpcvtermpath WHERE cv_id = '' || cvid || '' AND object_id = '' || origin || '' AND subject_id = '' || child_id || '' AND '' || origin || ''<>'' || child_id;
  694. GET DIAGNOSTICS ecount = ROW_COUNT;
  695. IF (ecount > 0) THEN
  696. --RAISE NOTICE ''FOUND TWICE (node), will check root obj % subj %'',origin, child_id;
  697. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(child_id, cvid);
  698. IF (rtn > 0) THEN
  699. RETURN rtn;
  700. END IF;
  701. END IF;
  702. EXECUTE ''SELECT * FROM tmpcvtermpath WHERE cv_id = '' || cvid || '' AND object_id = '' || origin || '' AND subject_id = '' || child_id || '' AND pathdistance = '' || depth;
  703. GET DIAGNOSTICS exist_c = ROW_COUNT;
  704. IF (exist_c = 0) THEN
  705. EXECUTE ''INSERT INTO tmpcvtermpath (object_id, subject_id, cv_id, type_id, pathdistance) VALUES('' || origin || '', '' || child_id || '', '' || cvid || '', '' || typeid || '', '' || depth || '')'';
  706. END IF;
  707. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = child_id LOOP
  708. --RAISE NOTICE ''DOING for node, % %'', origin, cterm.subject_id;
  709. SELECT INTO rtn _fill_cvtermpath4node2detect_cycle(origin, cterm.subject_id, cvid, cterm.type_id, depth+1);
  710. IF (rtn > 0) THEN
  711. RETURN rtn;
  712. END IF;
  713. END LOOP;
  714. RETURN 0;
  715. END;
  716. '
  717. LANGUAGE 'plpgsql';
  718. CREATE OR REPLACE FUNCTION _fill_cvtermpath4root2detect_cycle(INTEGER, INTEGER) RETURNS INTEGER AS
  719. '
  720. DECLARE
  721. rootid alias for $1;
  722. cvid alias for $2;
  723. ttype int;
  724. ccount int;
  725. cterm cvterm_relationship%ROWTYPE;
  726. child cvterm_relationship%ROWTYPE;
  727. rtn int;
  728. BEGIN
  729. SELECT INTO ttype cvterm_id FROM cvterm WHERE (name = ''isa'' OR name = ''is_a'');
  730. SELECT INTO rtn _fill_cvtermpath4node2detect_cycle(rootid, rootid, cvid, ttype, 0);
  731. IF (rtn > 0) THEN
  732. RETURN rtn;
  733. END IF;
  734. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = rootid LOOP
  735. 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;
  736. GET DIAGNOSTICS ccount = ROW_COUNT;
  737. IF (ccount > 0) THEN
  738. --RAISE NOTICE ''FOUND TWICE (root), will check root obj % subj %'',rootid,cterm.subject_id;
  739. SELECT INTO rtn _fill_cvtermpath4node2detect_cycle(rootid, cterm.subject_id, cvid, ttype, 0);
  740. IF (rtn > 0) THEN
  741. RETURN rtn;
  742. END IF;
  743. ELSE
  744. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(cterm.subject_id, cvid);
  745. IF (rtn > 0) THEN
  746. RETURN rtn;
  747. END IF;
  748. END IF;
  749. END LOOP;
  750. RETURN 0;
  751. END;
  752. '
  753. LANGUAGE 'plpgsql';
  754. CREATE OR REPLACE FUNCTION get_cycle_cvterm_id(INTEGER, INTEGER) RETURNS INTEGER AS
  755. '
  756. DECLARE
  757. cvid alias for $1;
  758. rootid alias for $2;
  759. rtn int;
  760. BEGIN
  761. CREATE TEMP TABLE tmpcvtermpath(object_id int, subject_id int, cv_id int, type_id int, pathdistance int);
  762. CREATE INDEX tmp_cvtpath1 ON tmpcvtermpath(object_id, subject_id);
  763. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(rootid, cvid);
  764. IF (rtn > 0) THEN
  765. DROP TABLE tmpcvtermpath;
  766. RETURN rtn;
  767. END IF;
  768. DROP TABLE tmpcvtermpath;
  769. RETURN 0;
  770. END;
  771. '
  772. LANGUAGE 'plpgsql';
  773. CREATE OR REPLACE FUNCTION get_cycle_cvterm_ids(INTEGER) RETURNS SETOF INTEGER AS
  774. '
  775. DECLARE
  776. cvid alias for $1;
  777. root cvterm%ROWTYPE;
  778. rtn int;
  779. BEGIN
  780. FOR root IN SELECT DISTINCT t.* from cvterm t WHERE cv_id = cvid LOOP
  781. SELECT INTO rtn get_cycle_cvterm_id(cvid,root.cvterm_id);
  782. IF (rtn > 0) THEN
  783. RETURN NEXT rtn;
  784. END IF;
  785. END LOOP;
  786. RETURN;
  787. END;
  788. '
  789. LANGUAGE 'plpgsql';
  790. CREATE OR REPLACE FUNCTION get_cycle_cvterm_id(INTEGER) RETURNS INTEGER AS
  791. '
  792. DECLARE
  793. cvid alias for $1;
  794. root cvterm%ROWTYPE;
  795. rtn int;
  796. BEGIN
  797. CREATE TEMP TABLE tmpcvtermpath(object_id int, subject_id int, cv_id int, type_id int, pathdistance int);
  798. CREATE INDEX tmp_cvtpath1 ON tmpcvtermpath(object_id, subject_id);
  799. 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
  800. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(root.cvterm_id, root.cv_id);
  801. IF (rtn > 0) THEN
  802. DROP TABLE tmpcvtermpath;
  803. RETURN rtn;
  804. END IF;
  805. END LOOP;
  806. DROP TABLE tmpcvtermpath;
  807. RETURN 0;
  808. END;
  809. '
  810. LANGUAGE 'plpgsql';
  811. CREATE OR REPLACE FUNCTION get_cycle_cvterm_id(cv.name%TYPE) RETURNS INTEGER AS
  812. '
  813. DECLARE
  814. cvname alias for $1;
  815. cv_id int;
  816. rtn int;
  817. BEGIN
  818. SELECT INTO cv_id cv.cv_id from cv WHERE cv.name = cvname;
  819. SELECT INTO rtn get_cycle_cvterm_id(cv_id);
  820. RETURN rtn;
  821. END;
  822. '
  823. LANGUAGE 'plpgsql';
  824. -- ==========================================
  825. -- Chado pub module
  826. --
  827. -- =================================================================
  828. -- Dependencies:
  829. --
  830. -- :import cvterm from cv
  831. -- :import dbxref from general
  832. -- =================================================================
  833. -- ================================================
  834. -- TABLE: pub
  835. -- ================================================
  836. create table pub (
  837. pub_id serial not null,
  838. primary key (pub_id),
  839. title text,
  840. volumetitle text,
  841. volume varchar(255),
  842. series_name varchar(255),
  843. issue varchar(255),
  844. pyear varchar(255),
  845. pages varchar(255),
  846. miniref varchar(255),
  847. uniquename text not null,
  848. type_id int not null,
  849. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  850. is_obsolete boolean default 'false',
  851. publisher varchar(255),
  852. pubplace varchar(255),
  853. constraint pub_c1 unique (uniquename)
  854. );
  855. CREATE INDEX pub_idx1 ON pub (type_id);
  856. COMMENT ON TABLE pub IS 'A documented provenance artefact - publications,
  857. documents, personal communication.';
  858. COMMENT ON COLUMN pub.title IS 'Descriptive general heading.';
  859. COMMENT ON COLUMN pub.volumetitle IS 'Title of part if one of a series.';
  860. COMMENT ON COLUMN pub.series_name IS 'Full name of (journal) series.';
  861. COMMENT ON COLUMN pub.pages IS 'Page number range[s], e.g. 457--459, viii + 664pp, lv--lvii.';
  862. COMMENT ON COLUMN pub.type_id IS 'The type of the publication (book, journal, poem, graffiti, etc). Uses pub cv.';
  863. -- ================================================
  864. -- TABLE: pub_relationship
  865. -- ================================================
  866. create table pub_relationship (
  867. pub_relationship_id serial not null,
  868. primary key (pub_relationship_id),
  869. subject_id int not null,
  870. foreign key (subject_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  871. object_id int not null,
  872. foreign key (object_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  873. type_id int not null,
  874. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  875. constraint pub_relationship_c1 unique (subject_id,object_id,type_id)
  876. );
  877. create index pub_relationship_idx1 on pub_relationship (subject_id);
  878. create index pub_relationship_idx2 on pub_relationship (object_id);
  879. create index pub_relationship_idx3 on pub_relationship (type_id);
  880. COMMENT ON TABLE pub_relationship IS 'Handle relationships between
  881. publications, e.g. when one publication makes others obsolete, when one
  882. publication contains errata with respect to other publication(s), or
  883. when one publication also appears in another pub.';
  884. -- ================================================
  885. -- TABLE: pub_dbxref
  886. -- ================================================
  887. create table pub_dbxref (
  888. pub_dbxref_id serial not null,
  889. primary key (pub_dbxref_id),
  890. pub_id int not null,
  891. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  892. dbxref_id int not null,
  893. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  894. is_current boolean not null default 'true',
  895. constraint pub_dbxref_c1 unique (pub_id,dbxref_id)
  896. );
  897. create index pub_dbxref_idx1 on pub_dbxref (pub_id);
  898. create index pub_dbxref_idx2 on pub_dbxref (dbxref_id);
  899. COMMENT ON TABLE pub_dbxref IS 'Handle links to repositories,
  900. e.g. Pubmed, Biosis, zoorec, OCLC, Medline, ISSN, coden...';
  901. -- ================================================
  902. -- TABLE: pubauthor
  903. -- ================================================
  904. create table pubauthor (
  905. pubauthor_id serial not null,
  906. primary key (pubauthor_id),
  907. pub_id int not null,
  908. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  909. rank int not null,
  910. editor boolean default 'false',
  911. surname varchar(100) not null,
  912. givennames varchar(100),
  913. suffix varchar(100),
  914. constraint pubauthor_c1 unique (pub_id, rank)
  915. );
  916. create index pubauthor_idx2 on pubauthor (pub_id);
  917. 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.';
  918. COMMENT ON COLUMN pubauthor.givennames IS 'First name, initials';
  919. COMMENT ON COLUMN pubauthor.suffix IS 'Jr., Sr., etc';
  920. COMMENT ON COLUMN pubauthor.rank IS 'Order of author in author list for this pub - order is important.';
  921. 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.';
  922. -- ================================================
  923. -- TABLE: pubprop
  924. -- ================================================
  925. create table pubprop (
  926. pubprop_id serial not null,
  927. primary key (pubprop_id),
  928. pub_id int not null,
  929. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  930. type_id int not null,
  931. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  932. value text not null,
  933. rank integer,
  934. constraint pubprop_c1 unique (pub_id,type_id,rank)
  935. );
  936. create index pubprop_idx1 on pubprop (pub_id);
  937. create index pubprop_idx2 on pubprop (type_id);
  938. COMMENT ON TABLE pubprop IS 'Property-value pairs for a pub. Follows standard chado pattern.';
  939. -- ==========================================
  940. -- Chado organism module
  941. --
  942. -- ============
  943. -- DEPENDENCIES
  944. -- ============
  945. -- :import cvterm from cv
  946. -- :import dbxref from general
  947. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  948. -- ================================================
  949. -- TABLE: organism
  950. -- ================================================
  951. create table organism (
  952. organism_id serial not null,
  953. primary key (organism_id),
  954. abbreviation varchar(255) null,
  955. genus varchar(255) not null,
  956. species varchar(255) not null,
  957. common_name varchar(255) null,
  958. comment text null,
  959. constraint organism_c1 unique (genus,species)
  960. );
  961. COMMENT ON TABLE organism IS 'The organismal taxonomic
  962. classification. Note that phylogenies are represented using the
  963. phylogeny module, and taxonomies can be represented using the cvterm
  964. module or the phylogeny module.';
  965. COMMENT ON COLUMN organism.species IS 'A type of organism is always
  966. uniquely identified by genus and species. When mapping from the NCBI
  967. taxonomy names.dmp file, this column must be used where it
  968. is present, as the common_name column is not always unique (e.g. environmental
  969. samples). If a particular strain or subspecies is to be represented,
  970. this is appended onto the species name. Follows standard NCBI taxonomy
  971. pattern.';
  972. -- ================================================
  973. -- TABLE: organism_dbxref
  974. -- ================================================
  975. create table organism_dbxref (
  976. organism_dbxref_id serial not null,
  977. primary key (organism_dbxref_id),
  978. organism_id int not null,
  979. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  980. dbxref_id int not null,
  981. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  982. constraint organism_dbxref_c1 unique (organism_id,dbxref_id)
  983. );
  984. create index organism_dbxref_idx1 on organism_dbxref (organism_id);
  985. create index organism_dbxref_idx2 on organism_dbxref (dbxref_id);
  986. -- ================================================
  987. -- TABLE: organismprop
  988. -- ================================================
  989. create table organismprop (
  990. organismprop_id serial not null,
  991. primary key (organismprop_id),
  992. organism_id int not null,
  993. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  994. type_id int not null,
  995. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  996. value text null,
  997. rank int not null default 0,
  998. constraint organismprop_c1 unique (organism_id,type_id,rank)
  999. );
  1000. create index organismprop_idx1 on organismprop (organism_id);
  1001. create index organismprop_idx2 on organismprop (type_id);
  1002. COMMENT ON TABLE organismprop IS 'Tag-value properties - follows standard chado model.';
  1003. CREATE OR REPLACE FUNCTION get_organism_id(VARCHAR,VARCHAR) RETURNS INT
  1004. AS '
  1005. SELECT organism_id
  1006. FROM organism
  1007. WHERE genus=$1
  1008. AND species=$2
  1009. ' LANGUAGE 'sql';
  1010. CREATE OR REPLACE FUNCTION get_organism_id(VARCHAR) RETURNS INT
  1011. AS '
  1012. SELECT organism_id
  1013. FROM organism
  1014. WHERE genus=substring($1,1,position('' '' IN $1)-1)
  1015. AND species=substring($1,position('' '' IN $1)+1)
  1016. ' LANGUAGE 'sql';
  1017. CREATE OR REPLACE FUNCTION get_organism_id_abbrev(VARCHAR) RETURNS INT
  1018. AS '
  1019. SELECT organism_id
  1020. FROM organism
  1021. WHERE substr(genus,1,1)=substring($1,1,1)
  1022. AND species=substring($1,position('' '' IN $1)+1)
  1023. ' LANGUAGE 'sql';
  1024. CREATE OR REPLACE FUNCTION store_organism (VARCHAR,VARCHAR,VARCHAR)
  1025. RETURNS INT AS
  1026. 'DECLARE
  1027. v_genus ALIAS FOR $1;
  1028. v_species ALIAS FOR $2;
  1029. v_common_name ALIAS FOR $3;
  1030. v_organism_id INTEGER;
  1031. BEGIN
  1032. SELECT INTO v_organism_id organism_id
  1033. FROM organism
  1034. WHERE genus=v_genus AND
  1035. species=v_species;
  1036. IF NOT FOUND THEN
  1037. INSERT INTO organism
  1038. (genus,species,common_name)
  1039. VALUES
  1040. (v_genus,v_species,v_common_name);
  1041. RETURN currval(''organism_organism_id_seq'');
  1042. ELSE
  1043. UPDATE organism
  1044. SET common_name=v_common_name
  1045. WHERE organism_id = v_organism_id;
  1046. END IF;
  1047. RETURN v_organism_id;
  1048. END;
  1049. ' LANGUAGE 'plpgsql';
  1050. -- ==========================================
  1051. -- Chado sequence module
  1052. --
  1053. -- =================================================================
  1054. -- Dependencies:
  1055. --
  1056. -- :import cvterm from cv
  1057. -- :import pub from pub
  1058. -- :import organism from organism
  1059. -- :import dbxref from general
  1060. -- =================================================================
  1061. -- ================================================
  1062. -- TABLE: feature
  1063. -- ================================================
  1064. create table feature (
  1065. feature_id serial not null,
  1066. primary key (feature_id),
  1067. dbxref_id int,
  1068. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  1069. organism_id int not null,
  1070. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  1071. name varchar(255),
  1072. uniquename text not null,
  1073. residues text,
  1074. seqlen int,
  1075. md5checksum char(32),
  1076. type_id int not null,
  1077. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1078. is_analysis boolean not null default 'false',
  1079. is_obsolete boolean not null default 'false',
  1080. timeaccessioned timestamp not null default current_timestamp,
  1081. timelastmodified timestamp not null default current_timestamp,
  1082. constraint feature_c1 unique (organism_id,uniquename,type_id)
  1083. );
  1084. create sequence feature_uniquename_seq;
  1085. create index feature_name_ind1 on feature(name);
  1086. create index feature_idx1 on feature (dbxref_id);
  1087. create index feature_idx2 on feature (organism_id);
  1088. create index feature_idx3 on feature (type_id);
  1089. create index feature_idx4 on feature (uniquename);
  1090. create index feature_idx5 on feature (lower(name));
  1091. ALTER TABLE feature ALTER residues SET STORAGE EXTERNAL;
  1092. COMMENT ON TABLE feature IS 'A feature is a biological sequence or a
  1093. section of a biological sequence, or a collection of such
  1094. sections. Examples include genes, exons, transcripts, regulatory
  1095. regions, polypeptides, protein domains, chromosome sequences, sequence
  1096. variations, cross-genome match regions such as hits and HSPs and so
  1097. on; see the Sequence Ontology for more. The combination of
  1098. organism_id, uniquename and type_id should be unique.';
  1099. COMMENT ON COLUMN feature.dbxref_id IS 'An optional primary public stable
  1100. identifier for this feature. Secondary identifiers and external
  1101. dbxrefs go in the table feature_dbxref.';
  1102. COMMENT ON COLUMN feature.organism_id IS 'The organism to which this feature
  1103. belongs. This column is mandatory.';
  1104. COMMENT ON COLUMN feature.name IS 'The optional human-readable common name for
  1105. a feature, for display purposes.';
  1106. COMMENT ON COLUMN feature.uniquename IS 'The unique name for a feature; may
  1107. not be necessarily be particularly human-readable, although this is
  1108. preferred. This name must be unique for this type of feature within
  1109. this organism.';
  1110. COMMENT ON COLUMN feature.residues IS 'A sequence of alphabetic characters
  1111. representing biological residues (nucleic acids, amino acids). This
  1112. column does not need to be manifested for all features; it is optional
  1113. for features such as exons where the residues can be derived from the
  1114. featureloc. It is recommended that the value for this column be
  1115. manifested for features which may may non-contiguous sublocations (e.g.
  1116. transcripts), since derivation at query time is non-trivial. For
  1117. expressed sequence, the DNA sequence should be used rather than the
  1118. RNA sequence. The default storage method for the residues column is
  1119. EXTERNAL, which will store it uncompressed to make substring operations
  1120. faster.';
  1121. COMMENT ON COLUMN feature.seqlen IS 'The length of the residue feature. See
  1122. column:residues. This column is partially redundant with the residues
  1123. column, and also with featureloc. This column is required because the
  1124. location may be unknown and the residue sequence may not be
  1125. manifested, yet it may be desirable to store and query the length of
  1126. the feature. The seqlen should always be manifested where the length
  1127. of the sequence is known.';
  1128. COMMENT ON COLUMN feature.md5checksum IS 'The 32-character checksum of the sequence,
  1129. calculated using the MD5 algorithm. This is practically guaranteed to
  1130. be unique for any feature. This column thus acts as a unique
  1131. identifier on the mathematical sequence.';
  1132. COMMENT ON COLUMN feature.type_id IS 'A required reference to a table:cvterm
  1133. giving the feature type. This will typically be a Sequence Ontology
  1134. identifier. This column is thus used to subclass the feature table.';
  1135. COMMENT ON COLUMN feature.is_analysis IS 'Boolean indicating whether this
  1136. feature is annotated or the result of an automated analysis. Analysis
  1137. results also use the companalysis module. Note that the dividing line
  1138. between analysis and annotation may be fuzzy, this should be determined on
  1139. a per-project basis in a consistent manner. One requirement is that
  1140. there should only be one non-analysis version of each wild-type gene
  1141. feature in a genome, whereas the same gene feature can be predicted
  1142. multiple times in different analyses.';
  1143. COMMENT ON COLUMN feature.is_obsolete IS 'Boolean indicating whether this
  1144. feature has been obsoleted. Some chado instances may choose to simply
  1145. remove the feature altogether, others may choose to keep an obsolete
  1146. row in the table.';
  1147. COMMENT ON COLUMN feature.timeaccessioned IS 'For handling object
  1148. accession or modification timestamps (as opposed to database auditing data,
  1149. handled elsewhere). The expectation is that these fields would be
  1150. available to software interacting with chado.';
  1151. COMMENT ON COLUMN feature.timelastmodified IS 'For handling object
  1152. accession or modification timestamps (as opposed to database auditing data,
  1153. handled elsewhere). The expectation is that these fields would be
  1154. available to software interacting with chado.';
  1155. --- COMMENT ON INDEX feature_c1 IS 'Any feature can be globally identified
  1156. --- by the combination of organism, uniquename and feature type';
  1157. -- ================================================
  1158. -- TABLE: featureloc
  1159. -- ================================================
  1160. create table featureloc (
  1161. featureloc_id serial not null,
  1162. primary key (featureloc_id),
  1163. feature_id int not null,
  1164. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1165. srcfeature_id int,
  1166. foreign key (srcfeature_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  1167. fmin int,
  1168. is_fmin_partial boolean not null default 'false',
  1169. fmax int,
  1170. is_fmax_partial boolean not null default 'false',
  1171. strand smallint,
  1172. phase int,
  1173. residue_info text,
  1174. locgroup int not null default 0,
  1175. rank int not null default 0,
  1176. constraint featureloc_c1 unique (feature_id,locgroup,rank),
  1177. constraint featureloc_c2 check (fmin <= fmax)
  1178. );
  1179. create index featureloc_idx1 on featureloc (feature_id);
  1180. create index featureloc_idx2 on featureloc (srcfeature_id);
  1181. create index featureloc_idx3 on featureloc (srcfeature_id,fmin,fmax);
  1182. COMMENT ON TABLE featureloc IS 'The location of a feature relative to
  1183. another feature. Important: interbase coordinates are used. This is
  1184. vital as it allows us to represent zero-length features e.g. splice
  1185. sites, insertion points without an awkward fuzzy system. Features
  1186. typically have exactly ONE location, but this need not be the
  1187. case. Some features may not be localized (e.g. a gene that has been
  1188. characterized genetically but no sequence or molecular information is
  1189. available). Note on multiple locations: Each feature can have 0 or
  1190. more locations. Multiple locations do NOT indicate non-contiguous
  1191. locations (if a feature such as a transcript has a non-contiguous
  1192. location, then the subfeatures such as exons should always be
  1193. manifested). Instead, multiple featurelocs for a feature designate
  1194. alternate locations or grouped locations; for instance, a feature
  1195. designating a blast hit or hsp will have two locations, one on the
  1196. query feature, one on the subject feature. Features representing
  1197. sequence variation could have alternate locations instantiated on a
  1198. feature on the mutant strain. The column:rank is used to
  1199. differentiate these different locations. Reflexive locations should
  1200. never be stored - this is for -proper- (i.e. non-self) locations only; nothing should be located relative to itself.';
  1201. COMMENT ON COLUMN featureloc.feature_id IS 'The feature that is being located. Any feature can have zero or more featurelocs.';
  1202. 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.';
  1203. 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.';
  1204. 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).';
  1205. COMMENT ON COLUMN featureloc.strand IS 'The orientation/directionality of the
  1206. location. Should be 0, -1 or +1.';
  1207. COMMENT ON COLUMN featureloc.rank IS 'Used when a feature has >1
  1208. location, otherwise the default rank 0 is used. Some features (e.g.
  1209. blast hits and HSPs) have two locations - one on the query and one on
  1210. the subject. Rank is used to differentiate these. Rank=0 is always
  1211. used for the query, Rank=1 for the subject. For multiple alignments,
  1212. assignment of rank is arbitrary. Rank is also used for
  1213. sequence_variant features, such as SNPs. Rank=0 indicates the wildtype
  1214. (or baseline) feature, Rank=1 indicates the mutant (or compared) feature.';
  1215. COMMENT ON COLUMN featureloc.locgroup IS 'This is used to manifest redundant,
  1216. derivable extra locations for a feature. The default locgroup=0 is
  1217. used for the DIRECT location of a feature. Important: most Chado users may
  1218. never use featurelocs WITH logroup > 0. Transitively derived locations
  1219. are indicated with locgroup > 0. For example, the position of an exon on
  1220. a BAC and in global chromosome coordinates. This column is used to
  1221. differentiate these groupings of locations. The default locgroup 0
  1222. is used for the main or primary location, from which the others can be
  1223. derived via coordinate transformations. Another example of redundant
  1224. locations is storing ORF coordinates relative to both transcript and
  1225. genome. Redundant locations open the possibility of the database
  1226. getting into inconsistent states; this schema gives us the flexibility
  1227. of both warehouse instantiations with redundant locations (easier for
  1228. querying) and management instantiations with no redundant
  1229. locations. An example of using both locgroup and rank: imagine a
  1230. feature indicating a conserved region between the chromosomes of two
  1231. different species. We may want to keep redundant locations on both
  1232. contigs and chromosomes. We would thus have 4 locations for the single
  1233. conserved region feature - two distinct locgroups (contig level and
  1234. chromosome level) and two distinct ranks (for the two species).';
  1235. COMMENT ON COLUMN featureloc.residue_info IS 'Alternative residues,
  1236. when these differ from feature.residues. For instance, a SNP feature
  1237. located on a wild and mutant protein would have different alternative residues.
  1238. for alignment/similarity features, the alternative residues is used to
  1239. represent the alignment string (CIGAR format). Note on variation
  1240. features; even if we do not want to instantiate a mutant
  1241. chromosome/contig feature, we can still represent a SNP etc with 2
  1242. locations, one (rank 0) on the genome, the other (rank 1) would have
  1243. most fields null, except for alternative residues.';
  1244. COMMENT ON COLUMN featureloc.phase IS 'Phase of translation with
  1245. respect to srcfeature_id.
  1246. Values are 0, 1, 2. It may not be possible to manifest this column for
  1247. some features such as exons, because the phase is dependant on the
  1248. spliceform (the same exon can appear in multiple spliceforms). This column is mostly useful for predicted exons and CDSs.';
  1249. COMMENT ON COLUMN featureloc.is_fmin_partial IS 'This is typically
  1250. false, but may be true if the value for column:fmin is inaccurate or
  1251. the leftmost part of the range is unknown/unbounded.';
  1252. COMMENT ON COLUMN featureloc.is_fmax_partial IS 'This is typically
  1253. false, but may be true if the value for column:fmax is inaccurate or
  1254. the rightmost part of the range is unknown/unbounded.';
  1255. --- COMMENT ON INDEX featureloc_c1 IS 'locgroup and rank serve to uniquely
  1256. --- partition locations for any one feature';
  1257. -- ================================================
  1258. -- TABLE: featureloc_pub
  1259. -- ================================================
  1260. create table featureloc_pub (
  1261. featureloc_pub_id serial not null,
  1262. primary key (featureloc_pub_id),
  1263. featureloc_id int not null,
  1264. foreign key (featureloc_id) references featureloc (featureloc_id) on delete cascade INITIALLY DEFERRED,
  1265. pub_id int not null,
  1266. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1267. constraint featureloc_pub_c1 unique (featureloc_id,pub_id)
  1268. );
  1269. create index featureloc_pub_idx1 on featureloc_pub (featureloc_id);
  1270. create index featureloc_pub_idx2 on featureloc_pub (pub_id);
  1271. COMMENT ON TABLE featureloc_pub IS 'Provenance of featureloc. Linking table between featurelocs and publications that mention them.';
  1272. -- ================================================
  1273. -- TABLE: feature_pub
  1274. -- ================================================
  1275. create table feature_pub (
  1276. feature_pub_id serial not null,
  1277. primary key (feature_pub_id),
  1278. feature_id int not null,
  1279. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1280. pub_id int not null,
  1281. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1282. constraint feature_pub_c1 unique (feature_id,pub_id)
  1283. );
  1284. create index feature_pub_idx1 on feature_pub (feature_id);
  1285. create index feature_pub_idx2 on feature_pub (pub_id);
  1286. COMMENT ON TABLE feature_pub IS 'Provenance. Linking table between features and publications that mention them.';
  1287. -- ================================================
  1288. -- TABLE: feature_pubprop
  1289. -- ================================================
  1290. create table feature_pubprop (
  1291. feature_pubprop_id serial not null,
  1292. primary key (feature_pubprop_id),
  1293. feature_pub_id int not null,
  1294. foreign key (feature_pub_id) references feature_pub (feature_pub_id) on delete cascade INITIALLY DEFERRED,
  1295. type_id int not null,
  1296. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1297. value text null,
  1298. rank int not null default 0,
  1299. constraint feature_pubprop_c1 unique (feature_pub_id,type_id,rank)
  1300. );
  1301. create index feature_pubprop_idx1 on feature_pubprop (feature_pub_id);
  1302. COMMENT ON TABLE feature_pubprop IS 'Property or attribute of a feature_pub link.';
  1303. -- ================================================
  1304. -- TABLE: featureprop
  1305. -- ================================================
  1306. create table featureprop (
  1307. featureprop_id serial not null,
  1308. primary key (featureprop_id),
  1309. feature_id int not null,
  1310. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1311. type_id int not null,
  1312. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1313. value text null,
  1314. rank int not null default 0,
  1315. constraint featureprop_c1 unique (feature_id,type_id,rank)
  1316. );
  1317. create index featureprop_idx1 on featureprop (feature_id);
  1318. create index featureprop_idx2 on featureprop (type_id);
  1319. 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.';
  1320. COMMENT ON COLUMN featureprop.type_id IS 'The name of the
  1321. property/slot is a cvterm. The meaning of the property is defined in
  1322. that cvterm. Certain property types will only apply to certain feature
  1323. types (e.g. the anticodon property will only apply to tRNA features) ;
  1324. the types here come from the sequence feature property ontology.';
  1325. 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.';
  1326. COMMENT ON COLUMN featureprop.rank IS 'Property-Value ordering. Any
  1327. feature can have multiple values for any particular property type -
  1328. these are ordered in a list using rank, counting from zero. For
  1329. properties that are single-valued rather than multi-valued, the
  1330. default 0 value should be used';
  1331. COMMENT ON INDEX featureprop_c1 IS 'For any one feature, multivalued
  1332. property-value pairs must be differentiated by rank.';
  1333. -- ================================================
  1334. -- TABLE: featureprop_pub
  1335. -- ================================================
  1336. create table featureprop_pub (
  1337. featureprop_pub_id serial not null,
  1338. primary key (featureprop_pub_id),
  1339. featureprop_id int not null,
  1340. foreign key (featureprop_id) references featureprop (featureprop_id) on delete cascade INITIALLY DEFERRED,
  1341. pub_id int not null,
  1342. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1343. constraint featureprop_pub_c1 unique (featureprop_id,pub_id)
  1344. );
  1345. create index featureprop_pub_idx1 on featureprop_pub (featureprop_id);
  1346. create index featureprop_pub_idx2 on featureprop_pub (pub_id);
  1347. COMMENT ON TABLE featureprop_pub IS 'Provenance. Any featureprop assignment can optionally be supported by a publication.';
  1348. -- ================================================
  1349. -- TABLE: feature_dbxref
  1350. -- ================================================
  1351. create table feature_dbxref (
  1352. feature_dbxref_id serial not null,
  1353. primary key (feature_dbxref_id),
  1354. feature_id int not null,
  1355. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1356. dbxref_id int not null,
  1357. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  1358. is_current boolean not null default 'true',
  1359. constraint feature_dbxref_c1 unique (feature_id,dbxref_id)
  1360. );
  1361. create index feature_dbxref_idx1 on feature_dbxref (feature_id);
  1362. create index feature_dbxref_idx2 on feature_dbxref (dbxref_id);
  1363. COMMENT ON TABLE feature_dbxref IS 'Links a feature to dbxrefs. This is for secondary identifiers; primary identifiers should use feature.dbxref_id.';
  1364. 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';
  1365. -- ================================================
  1366. -- TABLE: feature_relationship
  1367. -- ================================================
  1368. create table feature_relationship (
  1369. feature_relationship_id serial not null,
  1370. primary key (feature_relationship_id),
  1371. subject_id int not null,
  1372. foreign key (subject_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1373. object_id int not null,
  1374. foreign key (object_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1375. type_id int not null,
  1376. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1377. value text null,
  1378. rank int not null default 0,
  1379. constraint feature_relationship_c1 unique (subject_id,object_id,type_id,rank)
  1380. );
  1381. create index feature_relationship_idx1 on feature_relationship (subject_id);
  1382. create index feature_relationship_idx2 on feature_relationship (object_id);
  1383. create index feature_relationship_idx3 on feature_relationship (type_id);
  1384. COMMENT ON TABLE feature_relationship IS 'Features can be arranged in
  1385. graphs, e.g. "exon part_of transcript part_of gene"; If type is
  1386. thought of as a verb, the each arc or edge makes a statement
  1387. [Subject Verb Object]. The object can also be thought of as parent
  1388. (containing feature), and subject as child (contained feature or
  1389. subfeature). We include the relationship rank/order, because even
  1390. though most of the time we can order things implicitly by sequence
  1391. coordinates, we can not always do this - e.g. transpliced genes. It is also
  1392. useful for quickly getting implicit introns.';
  1393. COMMENT ON COLUMN feature_relationship.subject_id IS 'The subject of the subj-predicate-obj sentence. This is typically the subfeature.';
  1394. COMMENT ON COLUMN feature_relationship.object_id IS 'The object of the subj-predicate-obj sentence. This is typically the container feature.';
  1395. 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.';
  1396. 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.';
  1397. COMMENT ON COLUMN feature_relationship.value IS 'Additional notes or comments.';
  1398. -- ================================================
  1399. -- TABLE: feature_relationship_pub
  1400. -- ================================================
  1401. create table feature_relationship_pub (
  1402. feature_relationship_pub_id serial not null,
  1403. primary key (feature_relationship_pub_id),
  1404. feature_relationship_id int not null,
  1405. foreign key (feature_relationship_id) references feature_relationship (feature_relationship_id) on delete cascade INITIALLY DEFERRED,
  1406. pub_id int not null,
  1407. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1408. constraint feature_relationship_pub_c1 unique (feature_relationship_id,pub_id)
  1409. );
  1410. create index feature_relationship_pub_idx1 on feature_relationship_pub (feature_relationship_id);
  1411. create index feature_relationship_pub_idx2 on feature_relationship_pub (pub_id);
  1412. COMMENT ON TABLE feature_relationship_pub IS 'Provenance. Attach optional evidence to a feature_relationship in the form of a publication.';
  1413. -- ================================================
  1414. -- TABLE: feature_relationshipprop
  1415. -- ================================================
  1416. create table feature_relationshipprop (
  1417. feature_relationshipprop_id serial not null,
  1418. primary key (feature_relationshipprop_id),
  1419. feature_relationship_id int not null,
  1420. foreign key (feature_relationship_id) references feature_relationship (feature_relationship_id) on delete cascade,
  1421. type_id int not null,
  1422. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1423. value text null,
  1424. rank int not null default 0,
  1425. constraint feature_relationshipprop_c1 unique (feature_relationship_id,type_id,rank)
  1426. );
  1427. create index feature_relationshipprop_idx1 on feature_relationshipprop (feature_relationship_id);
  1428. create index feature_relationshipprop_idx2 on feature_relationshipprop (type_id);
  1429. COMMENT ON TABLE feature_relationshipprop IS 'Extensible properties
  1430. for feature_relationships. Analagous structure to featureprop. This
  1431. table is largely optional and not used with a high frequency. Typical
  1432. scenarios may be if one wishes to attach additional data to a
  1433. feature_relationship - for example to say that the
  1434. feature_relationship is only true in certain contexts.';
  1435. COMMENT ON COLUMN feature_relationshipprop.type_id IS 'The name of the
  1436. property/slot is a cvterm. The meaning of the property is defined in
  1437. that cvterm. Currently there is no standard ontology for
  1438. feature_relationship property types.';
  1439. COMMENT ON COLUMN feature_relationshipprop.value IS 'The value of the
  1440. property, represented as text. Numeric values are converted to their
  1441. text representation. This is less efficient than using native database
  1442. types, but is easier to query.';
  1443. COMMENT ON COLUMN feature_relationshipprop.rank IS 'Property-Value
  1444. ordering. Any feature_relationship can have multiple values for any particular
  1445. property type - these are ordered in a list using rank, counting from
  1446. zero. For properties that are single-valued rather than multi-valued,
  1447. the default 0 value should be used.';
  1448. -- ================================================
  1449. -- TABLE: feature_relationshipprop_pub
  1450. -- ================================================
  1451. create table feature_relationshipprop_pub (
  1452. feature_relationshipprop_pub_id serial not null,
  1453. primary key (feature_relationshipprop_pub_id),
  1454. feature_relationshipprop_id int not null,
  1455. foreign key (feature_relationshipprop_id) references feature_relationshipprop (feature_relationshipprop_id) on delete cascade INITIALLY DEFERRED,
  1456. pub_id int not null,
  1457. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1458. constraint feature_relationshipprop_pub_c1 unique (feature_relationshipprop_id,pub_id)
  1459. );
  1460. create index feature_relationshipprop_pub_idx1 on feature_relationshipprop_pub (feature_relationshipprop_id);
  1461. create index feature_relationshipprop_pub_idx2 on feature_relationshipprop_pub (pub_id);
  1462. COMMENT ON TABLE feature_relationshipprop_pub IS 'Provenance for feature_relationshipprop.';
  1463. -- ================================================
  1464. -- TABLE: feature_cvterm
  1465. -- ================================================
  1466. create table feature_cvterm (
  1467. feature_cvterm_id serial not null,
  1468. primary key (feature_cvterm_id),
  1469. feature_id int not null,
  1470. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1471. cvterm_id int not null,
  1472. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1473. pub_id int not null,
  1474. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1475. is_not boolean not null default false,
  1476. rank integer not null default 0,
  1477. constraint feature_cvterm_c1 unique (feature_id,cvterm_id,pub_id,rank)
  1478. );
  1479. create index feature_cvterm_idx1 on feature_cvterm (feature_id);
  1480. create index feature_cvterm_idx2 on feature_cvterm (cvterm_id);
  1481. create index feature_cvterm_idx3 on feature_cvterm (pub_id);
  1482. COMMENT ON TABLE feature_cvterm IS 'Associate a term from a cv with a feature, for example, GO annotation.';
  1483. 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.';
  1484. 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.';
  1485. -- ================================================
  1486. -- TABLE: feature_cvtermprop
  1487. -- ================================================
  1488. create table feature_cvtermprop (
  1489. feature_cvtermprop_id serial not null,
  1490. primary key (feature_cvtermprop_id),
  1491. feature_cvterm_id int not null,
  1492. foreign key (feature_cvterm_id) references feature_cvterm (feature_cvterm_id) on delete cascade,
  1493. type_id int not null,
  1494. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1495. value text null,
  1496. rank int not null default 0,
  1497. constraint feature_cvtermprop_c1 unique (feature_cvterm_id,type_id,rank)
  1498. );
  1499. create index feature_cvtermprop_idx1 on feature_cvtermprop (feature_cvterm_id);
  1500. create index feature_cvtermprop_idx2 on feature_cvtermprop (type_id);
  1501. COMMENT ON TABLE feature_cvtermprop IS 'Extensible properties for
  1502. feature to cvterm associations. Examples: GO evidence codes;
  1503. qualifiers; metadata such as the date on which the entry was curated
  1504. and the source of the association. See the featureprop table for
  1505. meanings of type_id, value and rank.';
  1506. COMMENT ON COLUMN feature_cvtermprop.type_id IS 'The name of the
  1507. property/slot is a cvterm. The meaning of the property is defined in
  1508. that cvterm. cvterms may come from the OBO evidence code cv.';
  1509. COMMENT ON COLUMN feature_cvtermprop.value IS 'The value of the
  1510. property, represented as text. Numeric values are converted to their
  1511. text representation. This is less efficient than using native database
  1512. types, but is easier to query.';
  1513. COMMENT ON COLUMN feature_cvtermprop.rank IS 'Property-Value
  1514. ordering. Any feature_cvterm can have multiple values for any particular
  1515. property type - these are ordered in a list using rank, counting from
  1516. zero. For properties that are single-valued rather than multi-valued,
  1517. the default 0 value should be used.';
  1518. -- ================================================
  1519. -- TABLE: feature_cvterm_dbxref
  1520. -- ================================================
  1521. create table feature_cvterm_dbxref (
  1522. feature_cvterm_dbxref_id serial not null,
  1523. primary key (feature_cvterm_dbxref_id),
  1524. feature_cvterm_id int not null,
  1525. foreign key (feature_cvterm_id) references feature_cvterm (feature_cvterm_id) on delete cascade,
  1526. dbxref_id int not null,
  1527. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  1528. constraint feature_cvterm_dbxref_c1 unique (feature_cvterm_id,dbxref_id)
  1529. );
  1530. create index feature_cvterm_dbxref_idx1 on feature_cvterm_dbxref (feature_cvterm_id);
  1531. create index feature_cvterm_dbxref_idx2 on feature_cvterm_dbxref (dbxref_id);
  1532. 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.';
  1533. -- ================================================
  1534. -- TABLE: feature_cvterm_pub
  1535. -- ================================================
  1536. create table feature_cvterm_pub (
  1537. feature_cvterm_pub_id serial not null,
  1538. primary key (feature_cvterm_pub_id),
  1539. feature_cvterm_id int not null,
  1540. foreign key (feature_cvterm_id) references feature_cvterm (feature_cvterm_id) on delete cascade,
  1541. pub_id int not null,
  1542. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1543. constraint feature_cvterm_pub_c1 unique (feature_cvterm_id,pub_id)
  1544. );
  1545. create index feature_cvterm_pub_idx1 on feature_cvterm_pub (feature_cvterm_id);
  1546. create index feature_cvterm_pub_idx2 on feature_cvterm_pub (pub_id);
  1547. COMMENT ON TABLE feature_cvterm_pub IS 'Secondary pubs for an
  1548. association. Each feature_cvterm association is supported by a single
  1549. primary publication. Additional secondary pubs can be added using this
  1550. linking table (in a GO gene association file, these corresponding to
  1551. any IDs after the pipe symbol in the publications column.';
  1552. -- ================================================
  1553. -- TABLE: synonym
  1554. -- ================================================
  1555. create table synonym (
  1556. synonym_id serial not null,
  1557. primary key (synonym_id),
  1558. name varchar(255) not null,
  1559. type_id int not null,
  1560. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1561. synonym_sgml varchar(255) not null,
  1562. constraint synonym_c1 unique (name,type_id)
  1563. );
  1564. create index synonym_idx1 on synonym (type_id);
  1565. create index synonym_idx2 on synonym ((lower(synonym_sgml)));
  1566. 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.';
  1567. COMMENT ON COLUMN synonym.name IS 'The synonym itself. Should be human-readable machine-searchable ascii text.';
  1568. COMMENT ON COLUMN synonym.synonym_sgml IS 'The fully specified synonym, with any non-ascii characters encoded in SGML.';
  1569. COMMENT ON COLUMN synonym.type_id IS 'Types would be symbol and fullname for now.';
  1570. -- ================================================
  1571. -- TABLE: feature_synonym
  1572. -- ================================================
  1573. create table feature_synonym (
  1574. feature_synonym_id serial not null,
  1575. primary key (feature_synonym_id),
  1576. synonym_id int not null,
  1577. foreign key (synonym_id) references synonym (synonym_id) on delete cascade INITIALLY DEFERRED,
  1578. feature_id int not null,
  1579. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1580. pub_id int not null,
  1581. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1582. is_current boolean not null default 'false',
  1583. is_internal boolean not null default 'false',
  1584. constraint feature_synonym_c1 unique (synonym_id,feature_id,pub_id)
  1585. );
  1586. create index feature_synonym_idx1 on feature_synonym (synonym_id);
  1587. create index feature_synonym_idx2 on feature_synonym (feature_id);
  1588. create index feature_synonym_idx3 on feature_synonym (pub_id);
  1589. COMMENT ON TABLE feature_synonym IS 'Linking table between feature and synonym.';
  1590. 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.';
  1591. 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.';
  1592. 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.';
  1593. CREATE VIEW type_feature_count AS
  1594. SELECT t.name AS type,count(*) AS num_features
  1595. FROM cvterm AS t INNER JOIN feature ON (type_id=t.cvterm_id)
  1596. GROUP BY t.name;
  1597. COMMENT ON VIEW type_feature_count IS 'per-feature-type feature counts';
  1598. CREATE SCHEMA genetic_code;
  1599. SET search_path = genetic_code,public,pg_catalog;
  1600. CREATE TABLE gencode (
  1601. gencode_id INTEGER PRIMARY KEY NOT NULL,
  1602. organismstr VARCHAR(512) NOT NULL
  1603. );
  1604. CREATE TABLE gencode_codon_aa (
  1605. gencode_id INTEGER NOT NULL REFERENCES gencode(gencode_id),
  1606. codon CHAR(3) NOT NULL,
  1607. aa CHAR(1) NOT NULL
  1608. );
  1609. CREATE INDEX gencode_codon_aa_i1 ON gencode_codon_aa(gencode_id,codon,aa);
  1610. CREATE TABLE gencode_startcodon (
  1611. gencode_id INTEGER NOT NULL REFERENCES gencode(gencode_id),
  1612. codon CHAR(3)
  1613. );
  1614. SET search_path = public,pg_catalog;
  1615. --
  1616. -- functions operating on featureloc ranges
  1617. --
  1618. -- create a point
  1619. CREATE OR REPLACE FUNCTION create_point (int, int) RETURNS point AS
  1620. 'SELECT point ($1, $2)'
  1621. LANGUAGE 'sql';
  1622. -- create a range box
  1623. -- (make this immutable so we can index it)
  1624. CREATE OR REPLACE FUNCTION boxrange (int, int) RETURNS box AS
  1625. 'SELECT box (create_point(0, $1), create_point($2,500000000))'
  1626. LANGUAGE 'sql' IMMUTABLE;
  1627. -- create a query box
  1628. CREATE OR REPLACE FUNCTION boxquery (int, int) RETURNS box AS
  1629. 'SELECT box (create_point($1, $2), create_point($1, $2))'
  1630. LANGUAGE 'sql' IMMUTABLE;
  1631. --functional index that depends on the above functions
  1632. CREATE INDEX binloc_boxrange ON featureloc USING RTREE (boxrange(fmin, fmax));
  1633. CREATE OR REPLACE FUNCTION featureloc_slice(int, int) RETURNS setof featureloc AS
  1634. 'SELECT * from featureloc where boxquery($1, $2) @ boxrange(fmin,fmax)'
  1635. LANGUAGE 'sql';
  1636. CREATE OR REPLACE FUNCTION featureloc_slice(varchar, int, int)
  1637. RETURNS setof featureloc AS
  1638. 'SELECT featureloc.*
  1639. FROM featureloc
  1640. INNER JOIN feature AS srcf ON (srcf.feature_id = featureloc.srcfeature_id)
  1641. WHERE boxquery($2, $3) @ boxrange(fmin,fmax)
  1642. AND srcf.name = $1 '
  1643. LANGUAGE 'sql';
  1644. CREATE OR REPLACE FUNCTION featureloc_slice(int, int, int)
  1645. RETURNS setof featureloc AS
  1646. 'SELECT *
  1647. FROM featureloc
  1648. WHERE boxquery($2, $3) @ boxrange(fmin,fmax)
  1649. AND srcfeature_id = $1 '
  1650. LANGUAGE 'sql';
  1651. -- can we not just do these as views?
  1652. CREATE OR REPLACE FUNCTION feature_overlaps(int)
  1653. RETURNS setof feature AS
  1654. 'SELECT feature.*
  1655. FROM feature
  1656. INNER JOIN featureloc AS x ON (x.feature_id=feature.feature_id)
  1657. INNER JOIN featureloc AS y ON (y.feature_id = $1)
  1658. WHERE
  1659. x.srcfeature_id = y.srcfeature_id AND
  1660. ( x.fmax >= y.fmin AND x.fmin <= y.fmax ) '
  1661. LANGUAGE 'sql';
  1662. CREATE OR REPLACE FUNCTION feature_disjoint_from(int)
  1663. RETURNS setof feature AS
  1664. 'SELECT feature.*
  1665. FROM feature
  1666. INNER JOIN featureloc AS x ON (x.feature_id=feature.feature_id)
  1667. INNER JOIN featureloc AS y ON (y.feature_id = $1)
  1668. WHERE
  1669. x.srcfeature_id = y.srcfeature_id AND
  1670. ( x.fmax < y.fmin OR x.fmin > y.fmax ) '
  1671. LANGUAGE 'sql';
  1672. --Evolution of the methods found in range.plpgsql (C. Pommier)
  1673. --Goal : increase performances of segment fetching
  1674. -- Implies to optimise featureloc_slice
  1675. --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.
  1676. -- 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.
  1677. -- 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 :
  1678. -- boxrange : ((srcfeature_id,fmin),(srcfeature_id,fmax))
  1679. -- boxquery : ((srcfeature_id,fmin),(srcfeature_id,fmax))
  1680. CREATE OR REPLACE FUNCTION boxrange (int, int, int) RETURNS box AS
  1681. 'SELECT box (create_point($1, $2), create_point($1,$3))'
  1682. LANGUAGE 'sql' IMMUTABLE;
  1683. -- create a query box
  1684. CREATE OR REPLACE FUNCTION boxquery (int, int, int) RETURNS box AS
  1685. 'SELECT box (create_point($1, $2), create_point($1, $3))'
  1686. LANGUAGE 'sql' IMMUTABLE;
  1687. CREATE INDEX binloc_boxrange_src ON featureloc USING RTREE (boxrange(srcfeature_id,fmin, fmax));
  1688. CREATE OR REPLACE FUNCTION featureloc_slice(int, int, int)
  1689. RETURNS setof featureloc AS
  1690. 'SELECT *
  1691. FROM featureloc
  1692. WHERE boxquery($1, $2, $3) && boxrange(srcfeature_id,fmin,fmax)'
  1693. LANGUAGE 'sql';
  1694. -- reverse_string
  1695. CREATE OR REPLACE FUNCTION reverse_string(TEXT) RETURNS TEXT AS
  1696. '
  1697. DECLARE
  1698. reversed_string TEXT;
  1699. incoming ALIAS FOR $1;
  1700. BEGIN
  1701. reversed_string = '''';
  1702. FOR i IN REVERSE char_length(incoming)..1 loop
  1703. reversed_string = reversed_string || substring(incoming FROM i FOR 1);
  1704. END loop;
  1705. RETURN reversed_string;
  1706. END'
  1707. language plpgsql;
  1708. -- complements DNA
  1709. CREATE OR REPLACE FUNCTION complement_residues(text) RETURNS text AS
  1710. 'SELECT (translate($1,
  1711. ''acgtrymkswhbvdnxACGTRYMKSWHBVDNX'',
  1712. ''tgcayrkmswdvbhnxTGCAYRKMSWDVBHNX''))'
  1713. LANGUAGE 'sql';
  1714. -- revcomp
  1715. CREATE OR REPLACE FUNCTION reverse_complement(TEXT) RETURNS TEXT AS
  1716. 'SELECT reverse_string(complement_residues($1))'
  1717. LANGUAGE 'sql';
  1718. -- DNA to AA
  1719. CREATE OR REPLACE FUNCTION translate_dna(TEXT,INT) RETURNS TEXT AS
  1720. '
  1721. DECLARE
  1722. dnaseq ALIAS FOR $1;
  1723. gcode ALIAS FOR $2;
  1724. translation TEXT;
  1725. dnaseqlen INT;
  1726. codon CHAR(3);
  1727. aa CHAR(1);
  1728. i INT;
  1729. BEGIN
  1730. translation = '''';
  1731. dnaseqlen = char_length(dnaseq);
  1732. i=1;
  1733. WHILE i+1 < dnaseqlen loop
  1734. codon = substring(dnaseq,i,3);
  1735. aa = translate_codon(codon,gcode);
  1736. translation = translation || aa;
  1737. i = i+3;
  1738. END loop;
  1739. RETURN translation;
  1740. END'
  1741. language plpgsql;
  1742. -- DNA to AA, default genetic code
  1743. CREATE OR REPLACE FUNCTION translate_dna(TEXT) RETURNS TEXT AS
  1744. 'SELECT translate_dna($1,1)'
  1745. LANGUAGE 'sql';
  1746. CREATE OR REPLACE FUNCTION translate_codon(TEXT,INT) RETURNS CHAR AS
  1747. 'SELECT aa FROM genetic_code.gencode_codon_aa WHERE codon=$1 AND gencode_id=$2'
  1748. LANGUAGE 'sql';
  1749. CREATE OR REPLACE FUNCTION concat_pair (text, text) RETURNS text AS
  1750. 'SELECT $1 || $2'
  1751. LANGUAGE 'sql';
  1752. CREATE AGGREGATE concat (
  1753. sfunc = concat_pair,
  1754. basetype = text,
  1755. stype = text,
  1756. initcond = ''
  1757. );
  1758. --function to 'unshare' exons. It looks for exons that have the same fmin
  1759. --and fmax and belong to the same gene and only keeps one. The other,
  1760. --redundant exons are marked obsolete in the feature table. Nothing
  1761. --is done with those features' entries in the featureprop, feature_dbxref,
  1762. --feature_pub, or feature_cvterm tables. For the moment, I'm assuming
  1763. --that any annotations that they have when this script is run are
  1764. --identical to their non-obsoleted doppelgangers. If that's not the case,
  1765. --they could be merged via query.
  1766. --
  1767. --The bulk of this code was contributed by Robin Houston at
  1768. --GeneDB/Sanger Centre.
  1769. CREATE OR REPLACE FUNCTION share_exons () RETURNS void AS '
  1770. DECLARE
  1771. BEGIN
  1772. /* Generate a table of shared exons */
  1773. CREATE temporary TABLE shared_exons AS
  1774. SELECT gene.feature_id as gene_feature_id
  1775. , gene.uniquename as gene_uniquename
  1776. , transcript1.uniquename as transcript1
  1777. , exon1.feature_id as exon1_feature_id
  1778. , exon1.uniquename as exon1_uniquename
  1779. , transcript2.uniquename as transcript2
  1780. , exon2.feature_id as exon2_feature_id
  1781. , exon2.uniquename as exon2_uniquename
  1782. , exon1_loc.fmin /* = exon2_loc.fmin */
  1783. , exon1_loc.fmax /* = exon2_loc.fmax */
  1784. FROM feature gene
  1785. JOIN cvterm gene_type ON gene.type_id = gene_type.cvterm_id
  1786. JOIN cv gene_type_cv USING (cv_id)
  1787. JOIN feature_relationship gene_transcript1 ON gene.feature_id = gene_transcript1.object_id
  1788. JOIN feature transcript1 ON gene_transcript1.subject_id = transcript1.feature_id
  1789. JOIN cvterm transcript1_type ON transcript1.type_id = transcript1_type.cvterm_id
  1790. JOIN cv transcript1_type_cv ON transcript1_type.cv_id = transcript1_type_cv.cv_id
  1791. JOIN feature_relationship transcript1_exon1 ON transcript1_exon1.object_id = transcript1.feature_id
  1792. JOIN feature exon1 ON transcript1_exon1.subject_id = exon1.feature_id
  1793. JOIN cvterm exon1_type ON exon1.type_id = exon1_type.cvterm_id
  1794. JOIN cv exon1_type_cv ON exon1_type.cv_id = exon1_type_cv.cv_id
  1795. JOIN featureloc exon1_loc ON exon1_loc.feature_id = exon1.feature_id
  1796. JOIN feature_relationship gene_transcript2 ON gene.feature_id = gene_transcript2.object_id
  1797. JOIN feature transcript2 ON gene_transcript2.subject_id = transcript2.feature_id
  1798. JOIN cvterm transcript2_type ON transcript2.type_id = transcript2_type.cvterm_id
  1799. JOIN cv transcript2_type_cv ON transcript2_type.cv_id = transcript2_type_cv.cv_id
  1800. JOIN feature_relationship transcript2_exon2 ON transcript2_exon2.object_id = transcript2.feature_id
  1801. JOIN feature exon2 ON transcript2_exon2.subject_id = exon2.feature_id
  1802. JOIN cvterm exon2_type ON exon2.type_id = exon2_type.cvterm_id
  1803. JOIN cv exon2_type_cv ON exon2_type.cv_id = exon2_type_cv.cv_id
  1804. JOIN featureloc exon2_loc ON exon2_loc.feature_id = exon2.feature_id
  1805. WHERE gene_type_cv.name = ''sequence''
  1806. AND gene_type.name = ''gene''
  1807. AND transcript1_type_cv.name = ''sequence''
  1808. AND transcript1_type.name = ''mRNA''
  1809. AND transcript2_type_cv.name = ''sequence''
  1810. AND transcript2_type.name = ''mRNA''
  1811. AND exon1_type_cv.name = ''sequence''
  1812. AND exon1_type.name = ''exon''
  1813. AND exon2_type_cv.name = ''sequence''
  1814. AND exon2_type.name = ''exon''
  1815. AND exon1.feature_id < exon2.feature_id
  1816. AND exon1_loc.rank = 0
  1817. AND exon2_loc.rank = 0
  1818. AND exon1_loc.fmin = exon2_loc.fmin
  1819. AND exon1_loc.fmax = exon2_loc.fmax
  1820. ;
  1821. /* Choose one of the shared exons to be the canonical representative.
  1822. We pick the one with the smallest feature_id.
  1823. */
  1824. CREATE temporary TABLE canonical_exon_representatives AS
  1825. SELECT gene_feature_id, min(exon1_feature_id) AS canonical_feature_id, fmin
  1826. FROM shared_exons
  1827. GROUP BY gene_feature_id,fmin
  1828. ;
  1829. CREATE temporary TABLE exon_replacements AS
  1830. SELECT DISTINCT shared_exons.exon2_feature_id AS actual_feature_id
  1831. , canonical_exon_representatives.canonical_feature_id
  1832. , canonical_exon_representatives.fmin
  1833. FROM shared_exons
  1834. JOIN canonical_exon_representatives USING (gene_feature_id)
  1835. WHERE shared_exons.exon2_feature_id <> canonical_exon_representatives.canonical_feature_id
  1836. AND shared_exons.fmin = canonical_exon_representatives.fmin
  1837. ;
  1838. UPDATE feature_relationship
  1839. SET subject_id = (
  1840. SELECT canonical_feature_id
  1841. FROM exon_replacements
  1842. WHERE feature_relationship.subject_id = exon_replacements.actual_feature_id)
  1843. WHERE subject_id IN (
  1844. SELECT actual_feature_id FROM exon_replacements
  1845. );
  1846. UPDATE feature_relationship
  1847. SET object_id = (
  1848. SELECT canonical_feature_id
  1849. FROM exon_replacements
  1850. WHERE feature_relationship.subject_id = exon_replacements.actual_feature_id)
  1851. WHERE object_id IN (
  1852. SELECT actual_feature_id FROM exon_replacements
  1853. );
  1854. UPDATE feature
  1855. SET is_obsolete = true
  1856. WHERE feature_id IN (
  1857. SELECT actual_feature_id FROM exon_replacements
  1858. );
  1859. END;
  1860. ' LANGUAGE 'plpgsql';
  1861. --This is a function to seek out exons of transcripts and orders them,
  1862. --using feature_relationship.rank, in "transcript order" numbering
  1863. --from 0, taking strand into account. It will not touch transcripts that
  1864. --already have their exons ordered (in case they have a non-obvious
  1865. --ordering due to trans splicing). It takes as an argument the
  1866. --feature.type_id of the parent transcript type (typically, mRNA, although
  1867. --non coding transcript types should work too).
  1868. CREATE OR REPLACE FUNCTION order_exons (integer) RETURNS void AS '
  1869. DECLARE
  1870. parent_type ALIAS FOR $1;
  1871. exon_id int;
  1872. part_of int;
  1873. exon_type int;
  1874. strand int;
  1875. arow RECORD;
  1876. order_by varchar;
  1877. rowcount int;
  1878. exon_count int;
  1879. ordered_exons int;
  1880. transcript_id int;
  1881. transcript_row feature%ROWTYPE;
  1882. BEGIN
  1883. SELECT INTO part_of cvterm_id FROM cvterm WHERE name=''part_of''
  1884. AND cv_id IN (SELECT cv_id FROM cv WHERE name=''relationship'');
  1885. --SELECT INTO exon_type cvterm_id FROM cvterm WHERE name=''exon''
  1886. -- AND cv_id IN (SELECT cv_id FROM cv WHERE name=''sequence'');
  1887. --RAISE NOTICE ''part_of %, exon %'',part_of,exon_type;
  1888. FOR transcript_row IN
  1889. SELECT * FROM feature WHERE type_id = parent_type
  1890. LOOP
  1891. transcript_id = transcript_row.feature_id;
  1892. SELECT INTO rowcount count(*) FROM feature_relationship
  1893. WHERE object_id = transcript_id
  1894. AND rank = 0;
  1895. --Dont modify this transcript if there are already numbered exons or
  1896. --if there is only one exon
  1897. IF rowcount = 1 THEN
  1898. --RAISE NOTICE ''skipping transcript %, row count %'',transcript_id,rowcount;
  1899. CONTINUE;
  1900. END IF;
  1901. --need to reverse the order if the strand is negative
  1902. SELECT INTO strand strand FROM featureloc WHERE feature_id=transcript_id;
  1903. IF strand > 0 THEN
  1904. order_by = ''fl.fmin'';
  1905. ELSE
  1906. order_by = ''fl.fmax desc'';
  1907. END IF;
  1908. exon_count = 0;
  1909. FOR arow IN EXECUTE
  1910. ''SELECT fr.*, fl.fmin, fl.fmax
  1911. FROM feature_relationship fr, featureloc fl
  1912. WHERE fr.object_id = ''||transcript_id||''
  1913. AND fr.subject_id = fl.feature_id
  1914. AND fr.type_id = ''||part_of||''
  1915. ORDER BY ''||order_by
  1916. LOOP
  1917. --number the exons for a given transcript
  1918. UPDATE feature_relationship
  1919. SET rank = exon_count
  1920. WHERE feature_relationship_id = arow.feature_relationship_id;
  1921. exon_count = exon_count + 1;
  1922. END LOOP;
  1923. END LOOP;
  1924. END;
  1925. ' LANGUAGE 'plpgsql';
  1926. -- down the graph: eg from chromosome to contig
  1927. CREATE OR REPLACE FUNCTION project_point_up(int,int,int,int)
  1928. RETURNS int AS
  1929. 'SELECT
  1930. CASE WHEN $4<0
  1931. THEN $3-$1 -- rev strand
  1932. ELSE $1-$2 -- fwd strand
  1933. END AS p'
  1934. LANGUAGE 'sql';
  1935. -- down the graph: eg from contig to chromosome
  1936. CREATE OR REPLACE FUNCTION project_point_down(int,int,int,int)
  1937. RETURNS int AS
  1938. 'SELECT
  1939. CASE WHEN $4<0
  1940. THEN $3-$1
  1941. ELSE $1+$2
  1942. END AS p'
  1943. LANGUAGE 'sql';
  1944. CREATE OR REPLACE FUNCTION project_featureloc_up(int,int)
  1945. RETURNS featureloc AS
  1946. '
  1947. DECLARE
  1948. in_featureloc_id alias for $1;
  1949. up_srcfeature_id alias for $2;
  1950. in_featureloc featureloc%ROWTYPE;
  1951. up_featureloc featureloc%ROWTYPE;
  1952. nu_featureloc featureloc%ROWTYPE;
  1953. nu_fmin INT;
  1954. nu_fmax INT;
  1955. nu_strand INT;
  1956. BEGIN
  1957. SELECT INTO in_featureloc
  1958. featureloc.*
  1959. FROM featureloc
  1960. WHERE featureloc_id = in_featureloc_id;
  1961. SELECT INTO up_featureloc
  1962. up_fl.*
  1963. FROM featureloc AS in_fl
  1964. INNER JOIN featureloc AS up_fl
  1965. ON (in_fl.srcfeature_id = up_fl.feature_id)
  1966. WHERE
  1967. in_fl.featureloc_id = in_featureloc_id AND
  1968. up_fl.srcfeature_id = up_srcfeature_id;
  1969. IF up_featureloc.strand IS NULL
  1970. THEN RETURN NULL;
  1971. END IF;
  1972. IF up_featureloc.strand < 0
  1973. THEN
  1974. nu_fmin = project_point_up(in_featureloc.fmax,
  1975. up_featureloc.fmin,up_featureloc.fmax,-1);
  1976. nu_fmax = project_point_up(in_featureloc.fmin,
  1977. up_featureloc.fmin,up_featureloc.fmax,-1);
  1978. nu_strand = -in_featureloc.strand;
  1979. ELSE
  1980. nu_fmin = project_point_up(in_featureloc.fmin,
  1981. up_featureloc.fmin,up_featureloc.fmax,1);
  1982. nu_fmax = project_point_up(in_featureloc.fmax,
  1983. up_featureloc.fmin,up_featureloc.fmax,1);
  1984. nu_strand = in_featureloc.strand;
  1985. END IF;
  1986. in_featureloc.fmin = nu_fmin;
  1987. in_featureloc.fmax = nu_fmax;
  1988. in_featureloc.strand = nu_strand;
  1989. in_featureloc.srcfeature_id = up_featureloc.srcfeature_id;
  1990. RETURN in_featureloc;
  1991. END
  1992. '
  1993. LANGUAGE 'plpgsql';
  1994. CREATE OR REPLACE FUNCTION project_point_g2t(int,int,int)
  1995. RETURNS INT AS '
  1996. DECLARE
  1997. in_p alias for $1;
  1998. srcf_id alias for $2;
  1999. t_id alias for $3;
  2000. e_floc featureloc%ROWTYPE;
  2001. out_p INT;
  2002. exon_cvterm_id INT;
  2003. BEGIN
  2004. SELECT INTO exon_cvterm_id get_feature_type_id(''exon'');
  2005. SELECT INTO out_p
  2006. CASE
  2007. WHEN strand<0 THEN fmax-p
  2008. ELSE p-fmin
  2009. END AS p
  2010. FROM featureloc
  2011. INNER JOIN feature USING (feature_id)
  2012. INNER JOIN feature_relationship ON (feature.feature_id=subject_id)
  2013. WHERE
  2014. object_id = t_id AND
  2015. feature.type_id = exon_cvterm_id AND
  2016. featureloc.srcfeature_id = srcf_id AND
  2017. in_p >= fmin AND
  2018. in_p <= fmax;
  2019. RETURN in_featureloc;
  2020. END
  2021. '
  2022. LANGUAGE 'plpgsql';
  2023. CREATE OR REPLACE FUNCTION get_cv_id_for_feature() RETURNS INT
  2024. AS 'SELECT cv_id FROM cv WHERE name=''sequence''' LANGUAGE 'sql';
  2025. CREATE OR REPLACE FUNCTION get_cv_id_for_featureprop() RETURNS INT
  2026. AS 'SELECT cv_id FROM cv WHERE name=''feature_property''' LANGUAGE 'sql';
  2027. CREATE OR REPLACE FUNCTION get_cv_id_for_feature_relationsgip() RETURNS INT
  2028. AS 'SELECT cv_id FROM cv WHERE name=''relationship''' LANGUAGE 'sql';
  2029. CREATE OR REPLACE FUNCTION get_feature_type_id(VARCHAR) RETURNS INT
  2030. AS '
  2031. SELECT cvterm_id
  2032. FROM cv INNER JOIN cvterm USING (cv_id)
  2033. WHERE cvterm.name=$1 AND cv.name=''sequence''
  2034. ' LANGUAGE 'sql';
  2035. CREATE OR REPLACE FUNCTION get_featureprop_type_id(VARCHAR) RETURNS INT
  2036. AS '
  2037. SELECT cvterm_id
  2038. FROM cv INNER JOIN cvterm USING (cv_id)
  2039. WHERE cvterm.name=$1 AND cv.name=''feature_property''
  2040. ' LANGUAGE 'sql';
  2041. CREATE OR REPLACE FUNCTION get_feature_relationship_type_id(VARCHAR) RETURNS INT
  2042. AS '
  2043. SELECT cvterm_id
  2044. FROM cv INNER JOIN cvterm USING (cv_id)
  2045. WHERE cvterm.name=$1 AND cv.name=''relationship''
  2046. ' LANGUAGE 'sql';
  2047. -- depends on sequence-cv-helper
  2048. CREATE OR REPLACE FUNCTION get_feature_id(VARCHAR,VARCHAR,VARCHAR) RETURNS INT
  2049. AS '
  2050. SELECT feature_id
  2051. FROM feature
  2052. WHERE uniquename=$1
  2053. AND type_id=get_feature_type_id($2)
  2054. AND organism_id=get_organism_id($3)
  2055. ' LANGUAGE 'sql';
  2056. --This is an automatically generated file; do not edit it as changes will not
  2057. --be saved. Instead, modify bin/create-so-bridge.pl, which creates this file.
  2058. CREATE SCHEMA so;
  2059. SET search_path=so,public,pg_catalog;
  2060. --- ************************************************
  2061. --- *** relation: region ***
  2062. --- *** relation type: VIEW ***
  2063. --- *** ***
  2064. --- *** A sequence_feature with an extent greate ***
  2065. --- *** r than zero. A nucleotide region is comp ***
  2066. --- *** osed of bases and a polypeptide region i ***
  2067. --- *** s composed of amino acids. ***
  2068. --- ************************************************
  2069. ---
  2070. CREATE VIEW region AS
  2071. SELECT
  2072. feature_id AS region_id,
  2073. feature.*
  2074. FROM
  2075. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2076. 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 = '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 = '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 = 'QTL' 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 = 'read_pair' 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 = '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 = 'RFLP_fragment' OR cvterm.name = 'tiling_path_clone' OR cvterm.name = 'coding_conserved_region' OR cvterm.name = 'nc_conserved_region' OR cvterm.name = 'homologous_region' 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 = '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 = '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 = '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 = '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 = 'insertion' OR cvterm.name = 'gene' OR cvterm.name = 'nucleotide_motif' 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 = '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 = '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 = 'protein_binding_site' OR cvterm.name = 'miRNA_target_site' OR cvterm.name = 'epitope' OR cvterm.name = 'polypeptide_metal_contact' OR cvterm.name = 'protein_protein_contact' OR cvterm.name = 'polypeptide_ligand_contact' OR cvterm.name = 'DNA_binding_site' OR cvterm.name = 'primer_binding_site' OR cvterm.name = 'polypeptide_DNA_contact' 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 = 'INR_motif' OR cvterm.name = 'DPE_motif' OR cvterm.name = 'BRE_motif' OR cvterm.name = 'CAAT_signal' OR cvterm.name = 'TATA_box' OR cvterm.name = 'A_box' OR cvterm.name = 'B_box' OR cvterm.name = 'C_box' OR cvterm.name = 'DRE_motif' OR cvterm.name = 'E_box_motif' OR cvterm.name = 'MTE' OR cvterm.name = 'INR1_motif' OR cvterm.name = 'GAGA_motif' OR cvterm.name = 'octamer_motif' 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 = 'pseudogene' 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 = 'processed_pseudogene' OR cvterm.name = 'pseudogene_by_unequal_crossing_over' OR cvterm.name = 'nuclear_mt_pseudogene' OR cvterm.name = 'cassette_pseudogene' OR cvterm.name = 'transgenic_insertion' 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_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 = 'cryptogene' OR cvterm.name = 'DNA_motif' OR cvterm.name = 'RNA_motif' OR cvterm.name = 'PSE_motif' OR cvterm.name = 'GC_rich_promoter_region' OR cvterm.name = 'minus_10_signal' OR cvterm.name = 'minus_35_signal' 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 = '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 = '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 = '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 = '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 = '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 = '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 = '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 = 'edited_transcript_by_A_to_I_substitution' OR cvterm.name = 'attenuator' 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 = '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 = 'INR_motif' OR cvterm.name = 'DPE_motif' OR cvterm.name = 'BRE_motif' OR cvterm.name = 'CAAT_signal' OR cvterm.name = 'TATA_box' OR cvterm.name = 'A_box' OR cvterm.name = 'B_box' OR cvterm.name = 'C_box' OR cvterm.name = 'DRE_motif' OR cvterm.name = 'E_box_motif' OR cvterm.name = 'MTE' OR cvterm.name = 'INR1_motif' OR cvterm.name = 'GAGA_motif' OR cvterm.name = 'octamer_motif' OR cvterm.name = 'operator' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'bacterial_terminator' 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 = '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_III_promoter_type_1' OR cvterm.name = 'RNApol_III_promoter_type_2' OR cvterm.name = 'RNApol_III_promoter_type_3' 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 = 'RNApol_II_promoter' OR cvterm.name = 'RNApol_III_promoter' OR cvterm.name = 'silencer' OR cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' 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 = 'splice_enhancer' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' 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 = 'UTR' OR cvterm.name = 'CDS' OR cvterm.name = 'codon' 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 = '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 = '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 = 'ribosome_entry_site' OR cvterm.name = 'polyA_site' 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 = 'internal_ribosome_entry_site' OR cvterm.name = 'Shine_Dalgarno_sequence' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'coding_start' OR cvterm.name = 'coding_end' 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 = '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 = '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 = '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 = 'cleaved_initiator_methionine' OR cvterm.name = 'transit_peptide' 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 = '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 = 'mobile_intron' OR cvterm.name = 'extrachromosomal_mobile_genetic_element' OR cvterm.name = 'integrated_mobile_genetic_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 = 'natural_transposable_element' 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 = 'transposon_fragment' OR cvterm.name = 'LTR_retrotransposon' OR cvterm.name = 'non_LTR_retrotransposon' OR cvterm.name = 'RR_tract' 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 = '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 = 'natural_transposable_element' 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 = '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 = 'modified_base_site' 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 = 'methylated_base_feature' OR cvterm.name = 'methylated_C' OR cvterm.name = 'methylated_A' 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 = 'argenine' 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 = 'operon' 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 = 'SNP' OR cvterm.name = 'complex_substitution' OR cvterm.name = 'point_mutation' OR cvterm.name = 'simple_sequence_length_variation' OR cvterm.name = 'MNP' 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_region' OR cvterm.name = 'repeat_unit' 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 = '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 = 'repeat_fragment' 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 = 'non_LTR_retrotransposon_polymeric_tract' OR cvterm.name = 'LTR_component' OR cvterm.name = 'repeat_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';
  2077. --- ************************************************
  2078. --- *** relation: sequence_secondary_structure ***
  2079. --- *** relation type: VIEW ***
  2080. --- *** ***
  2081. --- *** A folded sequence. ***
  2082. --- ************************************************
  2083. ---
  2084. CREATE VIEW sequence_secondary_structure AS
  2085. SELECT
  2086. feature_id AS sequence_secondary_structure_id,
  2087. feature.*
  2088. FROM
  2089. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2090. 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';
  2091. --- ************************************************
  2092. --- *** relation: g_quartet ***
  2093. --- *** relation type: VIEW ***
  2094. --- *** ***
  2095. --- *** G-quartets are unusual nucleic acid stru ***
  2096. --- *** ctures consisting of a planar arrangemen ***
  2097. --- *** t where each guanine is hydrogen bonded ***
  2098. --- *** by hoogsteen pairing to another guanine ***
  2099. --- *** in the quartet. ***
  2100. --- ************************************************
  2101. ---
  2102. CREATE VIEW g_quartet AS
  2103. SELECT
  2104. feature_id AS g_quartet_id,
  2105. feature.*
  2106. FROM
  2107. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2108. WHERE cvterm.name = 'G_quartet';
  2109. --- ************************************************
  2110. --- *** relation: interior_coding_exon ***
  2111. --- *** relation type: VIEW ***
  2112. --- *** ***
  2113. --- ************************************************
  2114. ---
  2115. CREATE VIEW interior_coding_exon AS
  2116. SELECT
  2117. feature_id AS interior_coding_exon_id,
  2118. feature.*
  2119. FROM
  2120. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2121. WHERE cvterm.name = 'interior_coding_exon';
  2122. --- ************************************************
  2123. --- *** relation: satellite_dna ***
  2124. --- *** relation type: VIEW ***
  2125. --- *** ***
  2126. --- *** The many tandem repeats (identical or re ***
  2127. --- *** lated) of a short basic repeating unit; ***
  2128. --- *** many have a base composition or other pr ***
  2129. --- *** operty different from the genome average ***
  2130. --- *** that allows them to be separated from t ***
  2131. --- *** he bulk (main band) genomic DNA. ***
  2132. --- ************************************************
  2133. ---
  2134. CREATE VIEW satellite_dna AS
  2135. SELECT
  2136. feature_id AS satellite_dna_id,
  2137. feature.*
  2138. FROM
  2139. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2140. 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';
  2141. --- ************************************************
  2142. --- *** relation: pcr_product ***
  2143. --- *** relation type: VIEW ***
  2144. --- *** ***
  2145. --- *** A region amplified by a PCR reaction. ***
  2146. --- ************************************************
  2147. ---
  2148. CREATE VIEW pcr_product AS
  2149. SELECT
  2150. feature_id AS pcr_product_id,
  2151. feature.*
  2152. FROM
  2153. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2154. WHERE cvterm.name = 'RAPD' OR cvterm.name = 'PCR_product';
  2155. --- ************************************************
  2156. --- *** relation: read_pair ***
  2157. --- *** relation type: VIEW ***
  2158. --- *** ***
  2159. --- *** A pair of sequencing reads in which the ***
  2160. --- *** two members of the pair are related by o ***
  2161. --- *** riginating at either end of a clone inse ***
  2162. --- *** rt. ***
  2163. --- ************************************************
  2164. ---
  2165. CREATE VIEW read_pair AS
  2166. SELECT
  2167. feature_id AS read_pair_id,
  2168. feature.*
  2169. FROM
  2170. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2171. WHERE cvterm.name = 'read_pair';
  2172. --- ************************************************
  2173. --- *** relation: protein_coding ***
  2174. --- *** relation type: VIEW ***
  2175. --- *** ***
  2176. --- ************************************************
  2177. ---
  2178. CREATE VIEW protein_coding AS
  2179. SELECT
  2180. feature_id AS protein_coding_id,
  2181. feature.*
  2182. FROM
  2183. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2184. WHERE cvterm.name = 'intein_containing' OR cvterm.name = 'protein_coding';
  2185. --- ************************************************
  2186. --- *** relation: non_protein_coding ***
  2187. --- *** relation type: VIEW ***
  2188. --- *** ***
  2189. --- ************************************************
  2190. ---
  2191. CREATE VIEW non_protein_coding AS
  2192. SELECT
  2193. feature_id AS non_protein_coding_id,
  2194. feature.*
  2195. FROM
  2196. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2197. 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';
  2198. --- ************************************************
  2199. --- *** relation: scrna_primary_transcript ***
  2200. --- *** relation type: VIEW ***
  2201. --- *** ***
  2202. --- *** The primary transcript of any one of sev ***
  2203. --- *** eral small cytoplasmic RNA molecules pre ***
  2204. --- *** sent in the cytoplasm and sometimes nucl ***
  2205. --- *** eus of a eukaryote. ***
  2206. --- ************************************************
  2207. ---
  2208. CREATE VIEW scrna_primary_transcript AS
  2209. SELECT
  2210. feature_id AS scrna_primary_transcript_id,
  2211. feature.*
  2212. FROM
  2213. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2214. WHERE cvterm.name = 'scRNA_primary_transcript';
  2215. --- ************************************************
  2216. --- *** relation: scrna ***
  2217. --- *** relation type: VIEW ***
  2218. --- *** ***
  2219. --- *** Any one of several small cytoplasmic RNA ***
  2220. --- *** molecules present in the cytoplasm and ***
  2221. --- *** sometimes nucleus of a eukaryote. ***
  2222. --- ************************************************
  2223. ---
  2224. CREATE VIEW scrna AS
  2225. SELECT
  2226. feature_id AS scrna_id,
  2227. feature.*
  2228. FROM
  2229. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2230. WHERE cvterm.name = 'scRNA';
  2231. --- ************************************************
  2232. --- *** relation: inr_motif ***
  2233. --- *** relation type: VIEW ***
  2234. --- *** ***
  2235. --- *** A sequence element characteristic of som ***
  2236. --- *** e RNA polymerase II promoters required f ***
  2237. --- *** or the correct positioning of the polyme ***
  2238. --- *** rase for the start of transcription. Ove ***
  2239. --- *** rlaps the TSS. The mammalian consensus s ***
  2240. --- *** equence is YYAN(T|A)YY; the Drosophila c ***
  2241. --- *** onsensus sequence is TCA(G|T)t(T|C). In ***
  2242. --- *** each the A is at position +1 with respec ***
  2243. --- *** t to the TSS. Functionally similar to th ***
  2244. --- *** e TATA box element. ***
  2245. --- ************************************************
  2246. ---
  2247. CREATE VIEW inr_motif AS
  2248. SELECT
  2249. feature_id AS inr_motif_id,
  2250. feature.*
  2251. FROM
  2252. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2253. WHERE cvterm.name = 'INR_motif';
  2254. --- ************************************************
  2255. --- *** relation: dpe_motif ***
  2256. --- *** relation type: VIEW ***
  2257. --- *** ***
  2258. --- *** A sequence element characteristic of som ***
  2259. --- *** e RNA polymerase II promoters; Positione ***
  2260. --- *** d from +28 to +32 with respect to the TS ***
  2261. --- *** S (+1). Experimental results suggest tha ***
  2262. --- *** t the DPE acts in conjunction with the I ***
  2263. --- *** NR_motif to provide a binding site for T ***
  2264. --- *** FIID in the absence of a TATA box to med ***
  2265. --- *** iate transcription of TATA-less promoter ***
  2266. --- *** s. Consensus sequence (A|G)G(A|T)(C|T)(G ***
  2267. --- *** |A|C). ***
  2268. --- ************************************************
  2269. ---
  2270. CREATE VIEW dpe_motif AS
  2271. SELECT
  2272. feature_id AS dpe_motif_id,
  2273. feature.*
  2274. FROM
  2275. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2276. WHERE cvterm.name = 'DPE_motif';
  2277. --- ************************************************
  2278. --- *** relation: bre_motif ***
  2279. --- *** relation type: VIEW ***
  2280. --- *** ***
  2281. --- *** A sequence element characteristic of som ***
  2282. --- *** e RNA polymerase II promoters, located i ***
  2283. --- *** mmediately upstream of some TATA box ele ***
  2284. --- *** ments at -37 to -32 with respect to the ***
  2285. --- *** TSS (+1). Consensus sequence is (G|C)(G| ***
  2286. --- *** C)(G|A)CGCC. Binds TFIIB. ***
  2287. --- ************************************************
  2288. ---
  2289. CREATE VIEW bre_motif AS
  2290. SELECT
  2291. feature_id AS bre_motif_id,
  2292. feature.*
  2293. FROM
  2294. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2295. WHERE cvterm.name = 'BRE_motif';
  2296. --- ************************************************
  2297. --- *** relation: pse_motif ***
  2298. --- *** relation type: VIEW ***
  2299. --- *** ***
  2300. --- *** A sequence element characteristic of the ***
  2301. --- *** promoters of snRNA genes transcribed by ***
  2302. --- *** RNA polymerase II or by RNA polymerase ***
  2303. --- *** III. Located between -45 and -60 relativ ***
  2304. --- *** e to the TSS. The human PSE_motif consen ***
  2305. --- *** sus sequence is TCACCNTNA(C|G)TNAAAAG(T| ***
  2306. --- *** G). ***
  2307. --- ************************************************
  2308. ---
  2309. CREATE VIEW pse_motif AS
  2310. SELECT
  2311. feature_id AS pse_motif_id,
  2312. feature.*
  2313. FROM
  2314. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2315. WHERE cvterm.name = 'PSE_motif';
  2316. --- ************************************************
  2317. --- *** relation: linkage_group ***
  2318. --- *** relation type: VIEW ***
  2319. --- *** ***
  2320. --- *** A group of loci that can be grouped in a ***
  2321. --- *** linear order representing the different ***
  2322. --- *** degrees of linkage among the genes conc ***
  2323. --- *** erned. ***
  2324. --- ************************************************
  2325. ---
  2326. CREATE VIEW linkage_group AS
  2327. SELECT
  2328. feature_id AS linkage_group_id,
  2329. feature.*
  2330. FROM
  2331. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2332. WHERE cvterm.name = 'linkage_group';
  2333. --- ************************************************
  2334. --- *** relation: rna_internal_loop ***
  2335. --- *** relation type: VIEW ***
  2336. --- *** ***
  2337. --- *** A region of double stranded RNA where th ***
  2338. --- *** e bases do not conform to WC base pairin ***
  2339. --- *** g. The loop is closed on both sides by c ***
  2340. --- *** anonical base pairing. If the interrupti ***
  2341. --- *** on to base pairing occurs on one strand ***
  2342. --- *** only, it is known as a bulge. ***
  2343. --- ************************************************
  2344. ---
  2345. CREATE VIEW rna_internal_loop AS
  2346. SELECT
  2347. feature_id AS rna_internal_loop_id,
  2348. feature.*
  2349. FROM
  2350. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2351. 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';
  2352. --- ************************************************
  2353. --- *** relation: asymmetric_rna_internal_loop ***
  2354. --- *** relation type: VIEW ***
  2355. --- *** ***
  2356. --- *** An internal RNA loop where one of the st ***
  2357. --- *** rands includes more bases than the corre ***
  2358. --- *** sponding region on the other strand. ***
  2359. --- ************************************************
  2360. ---
  2361. CREATE VIEW asymmetric_rna_internal_loop AS
  2362. SELECT
  2363. feature_id AS asymmetric_rna_internal_loop_id,
  2364. feature.*
  2365. FROM
  2366. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2367. WHERE cvterm.name = 'K_turn_RNA_motif' OR cvterm.name = 'sarcin_like_RNA_motif' OR cvterm.name = 'asymmetric_RNA_internal_loop';
  2368. --- ************************************************
  2369. --- *** relation: a_minor_rna_motif ***
  2370. --- *** relation type: VIEW ***
  2371. --- *** ***
  2372. --- *** A region forming a motif, composed of ad ***
  2373. --- *** enines, where the minor groove edges are ***
  2374. --- *** inserted into the minor groove of anoth ***
  2375. --- *** er helix. ***
  2376. --- ************************************************
  2377. ---
  2378. CREATE VIEW a_minor_rna_motif AS
  2379. SELECT
  2380. feature_id AS a_minor_rna_motif_id,
  2381. feature.*
  2382. FROM
  2383. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2384. WHERE cvterm.name = 'A_minor_RNA_motif';
  2385. --- ************************************************
  2386. --- *** relation: k_turn_rna_motif ***
  2387. --- *** relation type: VIEW ***
  2388. --- *** ***
  2389. --- *** The kink turn (K-turn) is an RNA structu ***
  2390. --- *** ral motif that creates a sharp (~120 deg ***
  2391. --- *** ree) bend between two continuous helices ***
  2392. --- *** . ***
  2393. --- ************************************************
  2394. ---
  2395. CREATE VIEW k_turn_rna_motif AS
  2396. SELECT
  2397. feature_id AS k_turn_rna_motif_id,
  2398. feature.*
  2399. FROM
  2400. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2401. WHERE cvterm.name = 'K_turn_RNA_motif';
  2402. --- ************************************************
  2403. --- *** relation: sarcin_like_rna_motif ***
  2404. --- *** relation type: VIEW ***
  2405. --- *** ***
  2406. --- *** A loop in ribosomal RNA containing the s ***
  2407. --- *** ites of attack for ricin and sarcin. ***
  2408. --- ************************************************
  2409. ---
  2410. CREATE VIEW sarcin_like_rna_motif AS
  2411. SELECT
  2412. feature_id AS sarcin_like_rna_motif_id,
  2413. feature.*
  2414. FROM
  2415. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2416. WHERE cvterm.name = 'sarcin_like_RNA_motif';
  2417. --- ************************************************
  2418. --- *** relation: symmetric_rna_internal_loop ***
  2419. --- *** relation type: VIEW ***
  2420. --- *** ***
  2421. --- *** An internal RNA loop where the extent of ***
  2422. --- *** the loop on both stands is the same siz ***
  2423. --- *** e. ***
  2424. --- ************************************************
  2425. ---
  2426. CREATE VIEW symmetric_rna_internal_loop AS
  2427. SELECT
  2428. feature_id AS symmetric_rna_internal_loop_id,
  2429. feature.*
  2430. FROM
  2431. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2432. WHERE cvterm.name = 'symmetric_RNA_internal_loop';
  2433. --- ************************************************
  2434. --- *** relation: rna_junction_loop ***
  2435. --- *** relation type: VIEW ***
  2436. --- *** ***
  2437. --- ************************************************
  2438. ---
  2439. CREATE VIEW rna_junction_loop AS
  2440. SELECT
  2441. feature_id AS rna_junction_loop_id,
  2442. feature.*
  2443. FROM
  2444. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2445. WHERE cvterm.name = 'RNA_hook_turn' OR cvterm.name = 'RNA_junction_loop';
  2446. --- ************************************************
  2447. --- *** relation: rna_hook_turn ***
  2448. --- *** relation type: VIEW ***
  2449. --- *** ***
  2450. --- ************************************************
  2451. ---
  2452. CREATE VIEW rna_hook_turn AS
  2453. SELECT
  2454. feature_id AS rna_hook_turn_id,
  2455. feature.*
  2456. FROM
  2457. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2458. WHERE cvterm.name = 'RNA_hook_turn';
  2459. --- ************************************************
  2460. --- *** relation: base_pair ***
  2461. --- *** relation type: VIEW ***
  2462. --- *** ***
  2463. --- ************************************************
  2464. ---
  2465. CREATE VIEW base_pair AS
  2466. SELECT
  2467. feature_id AS base_pair_id,
  2468. feature.*
  2469. FROM
  2470. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2471. 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';
  2472. --- ************************************************
  2473. --- *** relation: wc_base_pair ***
  2474. --- *** relation type: VIEW ***
  2475. --- *** ***
  2476. --- *** The canonical base pair, where two bases ***
  2477. --- *** interact via WC edges, with glycosidic ***
  2478. --- *** bonds oriented cis relative to the axis ***
  2479. --- *** of orientation. ***
  2480. --- ************************************************
  2481. ---
  2482. CREATE VIEW wc_base_pair AS
  2483. SELECT
  2484. feature_id AS wc_base_pair_id,
  2485. feature.*
  2486. FROM
  2487. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2488. WHERE cvterm.name = 'WC_base_pair';
  2489. --- ************************************************
  2490. --- *** relation: sugar_edge_base_pair ***
  2491. --- *** relation type: VIEW ***
  2492. --- *** ***
  2493. --- *** A type of non-canonical base-pairing. ***
  2494. --- ************************************************
  2495. ---
  2496. CREATE VIEW sugar_edge_base_pair AS
  2497. SELECT
  2498. feature_id AS sugar_edge_base_pair_id,
  2499. feature.*
  2500. FROM
  2501. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2502. WHERE cvterm.name = 'sugar_edge_base_pair';
  2503. --- ************************************************
  2504. --- *** relation: aptamer ***
  2505. --- *** relation type: VIEW ***
  2506. --- *** ***
  2507. --- *** DNA or RNA molecules that have been sele ***
  2508. --- *** cted from random pools based on their ab ***
  2509. --- *** ility to bind other molecules. ***
  2510. --- ************************************************
  2511. ---
  2512. CREATE VIEW aptamer AS
  2513. SELECT
  2514. feature_id AS aptamer_id,
  2515. feature.*
  2516. FROM
  2517. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2518. WHERE cvterm.name = 'DNA_aptamer' OR cvterm.name = 'RNA_aptamer' OR cvterm.name = 'aptamer';
  2519. --- ************************************************
  2520. --- *** relation: dna_aptamer ***
  2521. --- *** relation type: VIEW ***
  2522. --- *** ***
  2523. --- *** DNA molecules that have been selected fr ***
  2524. --- *** om random pools based on their ability t ***
  2525. --- *** o bind other molecules. ***
  2526. --- ************************************************
  2527. ---
  2528. CREATE VIEW dna_aptamer AS
  2529. SELECT
  2530. feature_id AS dna_aptamer_id,
  2531. feature.*
  2532. FROM
  2533. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2534. WHERE cvterm.name = 'DNA_aptamer';
  2535. --- ************************************************
  2536. --- *** relation: rna_aptamer ***
  2537. --- *** relation type: VIEW ***
  2538. --- *** ***
  2539. --- *** RNA molecules that have been selected fr ***
  2540. --- *** om random pools based on their ability t ***
  2541. --- *** o bind other molecules. ***
  2542. --- ************************************************
  2543. ---
  2544. CREATE VIEW rna_aptamer AS
  2545. SELECT
  2546. feature_id AS rna_aptamer_id,
  2547. feature.*
  2548. FROM
  2549. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2550. WHERE cvterm.name = 'RNA_aptamer';
  2551. --- ************************************************
  2552. --- *** relation: morpholino_oligo ***
  2553. --- *** relation type: VIEW ***
  2554. --- *** ***
  2555. --- *** Morpholino oligos are synthesized from f ***
  2556. --- *** our different Morpholino subunits, each ***
  2557. --- *** of which contains one of the four geneti ***
  2558. --- *** c bases (A, C, G, T) linked to a 6-membe ***
  2559. --- *** red morpholine ring. Eighteen to 25 subu ***
  2560. --- *** nits of these four subunit types are joi ***
  2561. --- *** ned in a specific order by non-ionic pho ***
  2562. --- *** sphorodiamidate intersubunit linkages to ***
  2563. --- *** give a Morpholino. ***
  2564. --- ************************************************
  2565. ---
  2566. CREATE VIEW morpholino_oligo AS
  2567. SELECT
  2568. feature_id AS morpholino_oligo_id,
  2569. feature.*
  2570. FROM
  2571. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2572. WHERE cvterm.name = 'morpholino_oligo';
  2573. --- ************************************************
  2574. --- *** relation: riboswitch ***
  2575. --- *** relation type: VIEW ***
  2576. --- *** ***
  2577. --- *** A riboswitch is a part of an mRNA that c ***
  2578. --- *** an act as a direct sensor of small molec ***
  2579. --- *** ules to control their own expression. A ***
  2580. --- *** riboswitch is a cis element in the 5' en ***
  2581. --- *** d of an mRNA, that acts as a direct sens ***
  2582. --- *** or of metabolites. ***
  2583. --- ************************************************
  2584. ---
  2585. CREATE VIEW riboswitch AS
  2586. SELECT
  2587. feature_id AS riboswitch_id,
  2588. feature.*
  2589. FROM
  2590. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2591. WHERE cvterm.name = 'riboswitch';
  2592. --- ************************************************
  2593. --- *** relation: matrix_attachment_site ***
  2594. --- *** relation type: VIEW ***
  2595. --- *** ***
  2596. --- *** A DNA region that is required for the bi ***
  2597. --- *** nding of chromatin to the nuclear matrix ***
  2598. --- *** . ***
  2599. --- ************************************************
  2600. ---
  2601. CREATE VIEW matrix_attachment_site AS
  2602. SELECT
  2603. feature_id AS matrix_attachment_site_id,
  2604. feature.*
  2605. FROM
  2606. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2607. WHERE cvterm.name = 'matrix_attachment_site';
  2608. --- ************************************************
  2609. --- *** relation: locus_control_region ***
  2610. --- *** relation type: VIEW ***
  2611. --- *** ***
  2612. --- *** A DNA region that includes DNAse hyperse ***
  2613. --- *** nsitive sites located 5' to a gene that ***
  2614. --- *** confers the high-level, position-indepen ***
  2615. --- *** dent, and copy number-dependent expressi ***
  2616. --- *** on to that gene. ***
  2617. --- ************************************************
  2618. ---
  2619. CREATE VIEW locus_control_region AS
  2620. SELECT
  2621. feature_id AS locus_control_region_id,
  2622. feature.*
  2623. FROM
  2624. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2625. WHERE cvterm.name = 'locus_control_region';
  2626. --- ************************************************
  2627. --- *** relation: match_part ***
  2628. --- *** relation type: VIEW ***
  2629. --- *** ***
  2630. --- *** A part of a match, for example an hsp fr ***
  2631. --- *** om blast is a match_part. ***
  2632. --- ************************************************
  2633. ---
  2634. CREATE VIEW match_part AS
  2635. SELECT
  2636. feature_id AS match_part_id,
  2637. feature.*
  2638. FROM
  2639. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2640. WHERE cvterm.name = 'match_part';
  2641. --- ************************************************
  2642. --- *** relation: genomic_clone ***
  2643. --- *** relation type: VIEW ***
  2644. --- *** ***
  2645. --- *** A clone of a DNA region of a genome. ***
  2646. --- ************************************************
  2647. ---
  2648. CREATE VIEW genomic_clone AS
  2649. SELECT
  2650. feature_id AS genomic_clone_id,
  2651. feature.*
  2652. FROM
  2653. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2654. WHERE cvterm.name = 'genomic_clone';
  2655. --- ************************************************
  2656. --- *** relation: processed_pseudogene ***
  2657. --- *** relation type: VIEW ***
  2658. --- *** ***
  2659. --- *** A pseudogene where by an mRNA was retrot ***
  2660. --- *** ransposed. The mRNA sequence is transcri ***
  2661. --- *** bed back into the genome, lacking intron ***
  2662. --- *** s and promotors, but often including a p ***
  2663. --- *** olyA tail. ***
  2664. --- ************************************************
  2665. ---
  2666. CREATE VIEW processed_pseudogene AS
  2667. SELECT
  2668. feature_id AS processed_pseudogene_id,
  2669. feature.*
  2670. FROM
  2671. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2672. WHERE cvterm.name = 'processed_pseudogene';
  2673. --- ************************************************
  2674. --- *** relation: pseudogene_by_unequal_crossing_over ***
  2675. --- *** relation type: VIEW ***
  2676. --- *** ***
  2677. --- *** A pseudogene caused by unequal crossing ***
  2678. --- *** over at recombination. ***
  2679. --- ************************************************
  2680. ---
  2681. CREATE VIEW pseudogene_by_unequal_crossing_over AS
  2682. SELECT
  2683. feature_id AS pseudogene_by_unequal_crossing_over_id,
  2684. feature.*
  2685. FROM
  2686. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2687. WHERE cvterm.name = 'pseudogene_by_unequal_crossing_over';
  2688. --- ************************************************
  2689. --- *** relation: probe ***
  2690. --- *** relation type: VIEW ***
  2691. --- *** ***
  2692. --- *** A DNA sequence used experimentally to de ***
  2693. --- *** tect the presence or absence of a comple ***
  2694. --- *** mentary nucleic acid. ***
  2695. --- ************************************************
  2696. ---
  2697. CREATE VIEW probe AS
  2698. SELECT
  2699. feature_id AS probe_id,
  2700. feature.*
  2701. FROM
  2702. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2703. WHERE cvterm.name = 'microarray_oligo' OR cvterm.name = 'probe';
  2704. --- ************************************************
  2705. --- *** relation: sequence_variant_affecting_regulatory_region ***
  2706. --- *** relation type: VIEW ***
  2707. --- *** ***
  2708. --- *** A sequence_variant_effect which changes ***
  2709. --- *** the regulatory region of a gene. ***
  2710. --- ************************************************
  2711. ---
  2712. CREATE VIEW sequence_variant_affecting_regulatory_region AS
  2713. SELECT
  2714. feature_id AS sequence_variant_affecting_regulatory_region_id,
  2715. feature.*
  2716. FROM
  2717. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2718. WHERE cvterm.name = 'sequence_variant_affecting_regulatory_region';
  2719. --- ************************************************
  2720. --- *** relation: aneuploid ***
  2721. --- *** relation type: VIEW ***
  2722. --- *** ***
  2723. --- *** A kind of chromosome variation where the ***
  2724. --- *** chromosome complement is not an exact m ***
  2725. --- *** ultiple of the haploid number. ***
  2726. --- ************************************************
  2727. ---
  2728. CREATE VIEW aneuploid AS
  2729. SELECT
  2730. feature_id AS aneuploid_id,
  2731. feature.*
  2732. FROM
  2733. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2734. WHERE cvterm.name = 'hyperploid' OR cvterm.name = 'hypoploid' OR cvterm.name = 'aneuploid';
  2735. --- ************************************************
  2736. --- *** relation: hyperploid ***
  2737. --- *** relation type: VIEW ***
  2738. --- *** ***
  2739. --- *** A kind of chromosome variation where the ***
  2740. --- *** chromosome complement is not an exact m ***
  2741. --- *** ultiple of the haploid number as extra c ***
  2742. --- *** hromosomes are present. ***
  2743. --- ************************************************
  2744. ---
  2745. CREATE VIEW hyperploid AS
  2746. SELECT
  2747. feature_id AS hyperploid_id,
  2748. feature.*
  2749. FROM
  2750. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2751. WHERE cvterm.name = 'hyperploid';
  2752. --- ************************************************
  2753. --- *** relation: hypoploid ***
  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 some ch ***
  2759. --- *** romosomes are missing. ***
  2760. --- ************************************************
  2761. ---
  2762. CREATE VIEW hypoploid AS
  2763. SELECT
  2764. feature_id AS hypoploid_id,
  2765. feature.*
  2766. FROM
  2767. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2768. WHERE cvterm.name = 'hypoploid';
  2769. --- ************************************************
  2770. --- *** relation: operator ***
  2771. --- *** relation type: VIEW ***
  2772. --- *** ***
  2773. --- *** A regulatory element of an operon to whi ***
  2774. --- *** ch activators or repressors bind thereby ***
  2775. --- *** effecting translation of genes in that ***
  2776. --- *** operon. ***
  2777. --- ************************************************
  2778. ---
  2779. CREATE VIEW operator AS
  2780. SELECT
  2781. feature_id AS operator_id,
  2782. feature.*
  2783. FROM
  2784. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2785. WHERE cvterm.name = 'operator';
  2786. --- ************************************************
  2787. --- *** relation: nuclease_binding_site ***
  2788. --- *** relation type: VIEW ***
  2789. --- *** ***
  2790. --- *** A region of a molecule that binds to a n ***
  2791. --- *** uclease. ***
  2792. --- ************************************************
  2793. ---
  2794. CREATE VIEW nuclease_binding_site AS
  2795. SELECT
  2796. feature_id AS nuclease_binding_site_id,
  2797. feature.*
  2798. FROM
  2799. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2800. 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';
  2801. --- ************************************************
  2802. --- *** relation: compound_chromosome_arm ***
  2803. --- *** relation type: VIEW ***
  2804. --- *** ***
  2805. --- ************************************************
  2806. ---
  2807. CREATE VIEW compound_chromosome_arm AS
  2808. SELECT
  2809. feature_id AS compound_chromosome_arm_id,
  2810. feature.*
  2811. FROM
  2812. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2813. WHERE cvterm.name = 'compound_chromosome_arm';
  2814. --- ************************************************
  2815. --- *** relation: restriction_enzyme_binding_site ***
  2816. --- *** relation type: VIEW ***
  2817. --- *** ***
  2818. --- *** A region of a molecule that binds to a r ***
  2819. --- *** estriction enzyme. ***
  2820. --- ************************************************
  2821. ---
  2822. CREATE VIEW restriction_enzyme_binding_site AS
  2823. SELECT
  2824. feature_id AS restriction_enzyme_binding_site_id,
  2825. feature.*
  2826. FROM
  2827. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2828. WHERE cvterm.name = 'restriction_enzyme_binding_site';
  2829. --- ************************************************
  2830. --- *** relation: d_intrachr_transposition ***
  2831. --- *** relation type: VIEW ***
  2832. --- *** ***
  2833. --- ************************************************
  2834. ---
  2835. CREATE VIEW d_intrachr_transposition AS
  2836. SELECT
  2837. feature_id AS d_intrachr_transposition_id,
  2838. feature.*
  2839. FROM
  2840. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2841. WHERE cvterm.name = 'deficient_intrachromosomal_transposition';
  2842. --- ************************************************
  2843. --- *** relation: d_interchr_transposition ***
  2844. --- *** relation type: VIEW ***
  2845. --- *** ***
  2846. --- ************************************************
  2847. ---
  2848. CREATE VIEW d_interchr_transposition AS
  2849. SELECT
  2850. feature_id AS d_interchr_transposition_id,
  2851. feature.*
  2852. FROM
  2853. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2854. WHERE cvterm.name = 'deficient_interchromosomal_transposition';
  2855. --- ************************************************
  2856. --- *** relation: free_chromosome_arm ***
  2857. --- *** relation type: VIEW ***
  2858. --- *** ***
  2859. --- ************************************************
  2860. ---
  2861. CREATE VIEW free_chromosome_arm AS
  2862. SELECT
  2863. feature_id AS free_chromosome_arm_id,
  2864. feature.*
  2865. FROM
  2866. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2867. WHERE cvterm.name = 'free_chromosome_arm';
  2868. --- ************************************************
  2869. --- *** relation: gene_to_gene_feature ***
  2870. --- *** relation type: VIEW ***
  2871. --- *** ***
  2872. --- ************************************************
  2873. ---
  2874. CREATE VIEW gene_to_gene_feature AS
  2875. SELECT
  2876. feature_id AS gene_to_gene_feature_id,
  2877. feature.*
  2878. FROM
  2879. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2880. 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';
  2881. --- ************************************************
  2882. --- *** relation: overlapping ***
  2883. --- *** relation type: VIEW ***
  2884. --- *** ***
  2885. --- *** An attribute describing a gene that has ***
  2886. --- *** a sequence that overlaps the sequence of ***
  2887. --- *** another gene. ***
  2888. --- ************************************************
  2889. ---
  2890. CREATE VIEW overlapping AS
  2891. SELECT
  2892. feature_id AS overlapping_id,
  2893. feature.*
  2894. FROM
  2895. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2896. 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';
  2897. --- ************************************************
  2898. --- *** relation: inside_intron ***
  2899. --- *** relation type: VIEW ***
  2900. --- *** ***
  2901. --- *** An attribute to describe a gene when it ***
  2902. --- *** is located within the intron of another ***
  2903. --- *** gene. ***
  2904. --- ************************************************
  2905. ---
  2906. CREATE VIEW inside_intron AS
  2907. SELECT
  2908. feature_id AS inside_intron_id,
  2909. feature.*
  2910. FROM
  2911. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2912. WHERE cvterm.name = 'inside_intron_antiparallel' OR cvterm.name = 'inside_intron_parallel' OR cvterm.name = 'inside_intron';
  2913. --- ************************************************
  2914. --- *** relation: inside_intron_antiparallel ***
  2915. --- *** relation type: VIEW ***
  2916. --- *** ***
  2917. --- *** An attribute to describe a gene when it ***
  2918. --- *** is located within the intron of another ***
  2919. --- *** gene and on the opposite strand. ***
  2920. --- ************************************************
  2921. ---
  2922. CREATE VIEW inside_intron_antiparallel AS
  2923. SELECT
  2924. feature_id AS inside_intron_antiparallel_id,
  2925. feature.*
  2926. FROM
  2927. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2928. WHERE cvterm.name = 'inside_intron_antiparallel';
  2929. --- ************************************************
  2930. --- *** relation: inside_intron_parallel ***
  2931. --- *** relation type: VIEW ***
  2932. --- *** ***
  2933. --- *** An attribute to describe a gene when it ***
  2934. --- *** is located within the intron of another ***
  2935. --- *** gene and on the same strand. ***
  2936. --- ************************************************
  2937. ---
  2938. CREATE VIEW inside_intron_parallel AS
  2939. SELECT
  2940. feature_id AS inside_intron_parallel_id,
  2941. feature.*
  2942. FROM
  2943. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2944. WHERE cvterm.name = 'inside_intron_parallel';
  2945. --- ************************************************
  2946. --- *** relation: five_prime_three_prime_overlap ***
  2947. --- *** relation type: VIEW ***
  2948. --- *** ***
  2949. --- *** An attribute to describe a gene when the ***
  2950. --- *** five prime region overlaps with another ***
  2951. --- *** gene's 3' region. ***
  2952. --- ************************************************
  2953. ---
  2954. CREATE VIEW five_prime_three_prime_overlap AS
  2955. SELECT
  2956. feature_id AS five_prime_three_prime_overlap_id,
  2957. feature.*
  2958. FROM
  2959. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2960. WHERE cvterm.name = 'five_prime_three_prime_overlap';
  2961. --- ************************************************
  2962. --- *** relation: five_prime_five_prime_overlap ***
  2963. --- *** relation type: VIEW ***
  2964. --- *** ***
  2965. --- *** An attribute to describe a gene when the ***
  2966. --- *** five prime region overlaps with another ***
  2967. --- *** gene's five prime region. ***
  2968. --- ************************************************
  2969. ---
  2970. CREATE VIEW five_prime_five_prime_overlap AS
  2971. SELECT
  2972. feature_id AS five_prime_five_prime_overlap_id,
  2973. feature.*
  2974. FROM
  2975. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2976. WHERE cvterm.name = 'five_prime_five_prime_overlap';
  2977. --- ************************************************
  2978. --- *** relation: three_prime_three_prime_overlap ***
  2979. --- *** relation type: VIEW ***
  2980. --- *** ***
  2981. --- *** An attribute to describe a gene when the ***
  2982. --- *** 3' region overlaps with another gene's ***
  2983. --- *** 3' region. ***
  2984. --- ************************************************
  2985. ---
  2986. CREATE VIEW three_prime_three_prime_overlap AS
  2987. SELECT
  2988. feature_id AS three_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 = 'three_prime_three_prime_overlap';
  2993. --- ************************************************
  2994. --- *** relation: three_prime_five_prime_overlap ***
  2995. --- *** relation type: VIEW ***
  2996. --- *** ***
  2997. --- *** An attribute to describe a gene when the ***
  2998. --- *** 3' region overlaps with another gene's ***
  2999. --- *** 5' region. ***
  3000. --- ************************************************
  3001. ---
  3002. CREATE VIEW three_prime_five_prime_overlap AS
  3003. SELECT
  3004. feature_id AS three_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 = 'three_prime_five_prime_overlap';
  3009. --- ************************************************
  3010. --- *** relation: antisense ***
  3011. --- *** relation type: VIEW ***
  3012. --- *** ***
  3013. --- *** A region sequence that is complementary ***
  3014. --- *** to a sequence of messenger RNA. ***
  3015. --- ************************************************
  3016. ---
  3017. CREATE VIEW antisense AS
  3018. SELECT
  3019. feature_id AS antisense_id,
  3020. feature.*
  3021. FROM
  3022. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3023. WHERE cvterm.name = 'antisense';
  3024. --- ************************************************
  3025. --- *** relation: polycistronic_transcript ***
  3026. --- *** relation type: VIEW ***
  3027. --- *** ***
  3028. --- *** A transcript that is polycistronic. ***
  3029. --- ************************************************
  3030. ---
  3031. CREATE VIEW polycistronic_transcript AS
  3032. SELECT
  3033. feature_id AS polycistronic_transcript_id,
  3034. feature.*
  3035. FROM
  3036. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3037. 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';
  3038. --- ************************************************
  3039. --- *** relation: dicistronic_transcript ***
  3040. --- *** relation type: VIEW ***
  3041. --- *** ***
  3042. --- *** A transcript that is dicistronic. ***
  3043. --- ************************************************
  3044. ---
  3045. CREATE VIEW dicistronic_transcript AS
  3046. SELECT
  3047. feature_id AS dicistronic_transcript_id,
  3048. feature.*
  3049. FROM
  3050. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3051. WHERE cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'dicistronic_transcript';
  3052. --- ************************************************
  3053. --- *** relation: operon_member ***
  3054. --- *** relation type: VIEW ***
  3055. --- *** ***
  3056. --- ************************************************
  3057. ---
  3058. CREATE VIEW operon_member AS
  3059. SELECT
  3060. feature_id AS operon_member_id,
  3061. feature.*
  3062. FROM
  3063. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3064. WHERE cvterm.name = 'operon_member';
  3065. --- ************************************************
  3066. --- *** relation: gene_array_member ***
  3067. --- *** relation type: VIEW ***
  3068. --- *** ***
  3069. --- ************************************************
  3070. ---
  3071. CREATE VIEW gene_array_member AS
  3072. SELECT
  3073. feature_id AS gene_array_member_id,
  3074. feature.*
  3075. FROM
  3076. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3077. 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';
  3078. --- ************************************************
  3079. --- *** relation: macronuclear_sequence ***
  3080. --- *** relation type: VIEW ***
  3081. --- *** ***
  3082. --- ************************************************
  3083. ---
  3084. CREATE VIEW macronuclear_sequence AS
  3085. SELECT
  3086. feature_id AS macronuclear_sequence_id,
  3087. feature.*
  3088. FROM
  3089. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3090. WHERE cvterm.name = 'macronuclear_sequence';
  3091. --- ************************************************
  3092. --- *** relation: micronuclear_sequence ***
  3093. --- *** relation type: VIEW ***
  3094. --- *** ***
  3095. --- ************************************************
  3096. ---
  3097. CREATE VIEW micronuclear_sequence AS
  3098. SELECT
  3099. feature_id AS micronuclear_sequence_id,
  3100. feature.*
  3101. FROM
  3102. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3103. WHERE cvterm.name = 'micronuclear_sequence';
  3104. --- ************************************************
  3105. --- *** relation: nuclear_gene ***
  3106. --- *** relation type: VIEW ***
  3107. --- *** ***
  3108. --- *** A gene from nuclear sequence. ***
  3109. --- ************************************************
  3110. ---
  3111. CREATE VIEW nuclear_gene AS
  3112. SELECT
  3113. feature_id AS nuclear_gene_id,
  3114. feature.*
  3115. FROM
  3116. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3117. WHERE cvterm.name = 'nuclear_gene';
  3118. --- ************************************************
  3119. --- *** relation: mt_gene ***
  3120. --- *** relation type: VIEW ***
  3121. --- *** ***
  3122. --- *** A gene located in mitochondrial sequence ***
  3123. --- *** . ***
  3124. --- ************************************************
  3125. ---
  3126. CREATE VIEW mt_gene AS
  3127. SELECT
  3128. feature_id AS mt_gene_id,
  3129. feature.*
  3130. FROM
  3131. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3132. WHERE cvterm.name = 'kinetoplast_gene' OR cvterm.name = 'maxicircle_gene' OR cvterm.name = 'minicircle_gene' OR cvterm.name = 'cryptogene' OR cvterm.name = 'mt_gene';
  3133. --- ************************************************
  3134. --- *** relation: kinetoplast_gene ***
  3135. --- *** relation type: VIEW ***
  3136. --- *** ***
  3137. --- *** A gene located in kinetoplast sequence. ***
  3138. --- ************************************************
  3139. ---
  3140. CREATE VIEW kinetoplast_gene AS
  3141. SELECT
  3142. feature_id AS kinetoplast_gene_id,
  3143. feature.*
  3144. FROM
  3145. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3146. WHERE cvterm.name = 'maxicircle_gene' OR cvterm.name = 'minicircle_gene' OR cvterm.name = 'cryptogene' OR cvterm.name = 'kinetoplast_gene';
  3147. --- ************************************************
  3148. --- *** relation: plastid_gene ***
  3149. --- *** relation type: VIEW ***
  3150. --- *** ***
  3151. --- *** A gene from plastid sequence. ***
  3152. --- ************************************************
  3153. ---
  3154. CREATE VIEW plastid_gene AS
  3155. SELECT
  3156. feature_id AS plastid_gene_id,
  3157. feature.*
  3158. FROM
  3159. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3160. 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';
  3161. --- ************************************************
  3162. --- *** relation: apicoplast_gene ***
  3163. --- *** relation type: VIEW ***
  3164. --- *** ***
  3165. --- *** A gene from apicoplast sequence. ***
  3166. --- ************************************************
  3167. ---
  3168. CREATE VIEW apicoplast_gene AS
  3169. SELECT
  3170. feature_id AS apicoplast_gene_id,
  3171. feature.*
  3172. FROM
  3173. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3174. WHERE cvterm.name = 'apicoplast_gene';
  3175. --- ************************************************
  3176. --- *** relation: ct_gene ***
  3177. --- *** relation type: VIEW ***
  3178. --- *** ***
  3179. --- *** A gene from chloroplast sequence. ***
  3180. --- ************************************************
  3181. ---
  3182. CREATE VIEW ct_gene AS
  3183. SELECT
  3184. feature_id AS ct_gene_id,
  3185. feature.*
  3186. FROM
  3187. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3188. WHERE cvterm.name = 'ct_gene';
  3189. --- ************************************************
  3190. --- *** relation: chromoplast_gene ***
  3191. --- *** relation type: VIEW ***
  3192. --- *** ***
  3193. --- *** A gene from chromoplast_sequence. ***
  3194. --- ************************************************
  3195. ---
  3196. CREATE VIEW chromoplast_gene AS
  3197. SELECT
  3198. feature_id AS chromoplast_gene_id,
  3199. feature.*
  3200. FROM
  3201. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3202. WHERE cvterm.name = 'chromoplast_gene';
  3203. --- ************************************************
  3204. --- *** relation: cyanelle_gene ***
  3205. --- *** relation type: VIEW ***
  3206. --- *** ***
  3207. --- *** A gene from cyanelle sequence. ***
  3208. --- ************************************************
  3209. ---
  3210. CREATE VIEW cyanelle_gene AS
  3211. SELECT
  3212. feature_id AS cyanelle_gene_id,
  3213. feature.*
  3214. FROM
  3215. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3216. WHERE cvterm.name = 'cyanelle_gene';
  3217. --- ************************************************
  3218. --- *** relation: leucoplast_gene ***
  3219. --- *** relation type: VIEW ***
  3220. --- *** ***
  3221. --- *** A plastid gene from leucoplast sequence. ***
  3222. --- ************************************************
  3223. ---
  3224. CREATE VIEW leucoplast_gene AS
  3225. SELECT
  3226. feature_id AS leucoplast_gene_id,
  3227. feature.*
  3228. FROM
  3229. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3230. WHERE cvterm.name = 'leucoplast_gene';
  3231. --- ************************************************
  3232. --- *** relation: proplastid_gene ***
  3233. --- *** relation type: VIEW ***
  3234. --- *** ***
  3235. --- *** A gene from proplastid sequence. ***
  3236. --- ************************************************
  3237. ---
  3238. CREATE VIEW proplastid_gene AS
  3239. SELECT
  3240. feature_id AS proplastid_gene_id,
  3241. feature.*
  3242. FROM
  3243. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3244. WHERE cvterm.name = 'proplastid_gene';
  3245. --- ************************************************
  3246. --- *** relation: nucleomorph_gene ***
  3247. --- *** relation type: VIEW ***
  3248. --- *** ***
  3249. --- *** A gene from nucleomorph sequence. ***
  3250. --- ************************************************
  3251. ---
  3252. CREATE VIEW nucleomorph_gene AS
  3253. SELECT
  3254. feature_id AS nucleomorph_gene_id,
  3255. feature.*
  3256. FROM
  3257. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3258. WHERE cvterm.name = 'nucleomorph_gene';
  3259. --- ************************************************
  3260. --- *** relation: plasmid_gene ***
  3261. --- *** relation type: VIEW ***
  3262. --- *** ***
  3263. --- *** A gene from plasmid sequence. ***
  3264. --- ************************************************
  3265. ---
  3266. CREATE VIEW plasmid_gene AS
  3267. SELECT
  3268. feature_id AS plasmid_gene_id,
  3269. feature.*
  3270. FROM
  3271. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3272. WHERE cvterm.name = 'plasmid_gene';
  3273. --- ************************************************
  3274. --- *** relation: proviral_gene ***
  3275. --- *** relation type: VIEW ***
  3276. --- *** ***
  3277. --- *** A gene from proviral sequence. ***
  3278. --- ************************************************
  3279. ---
  3280. CREATE VIEW proviral_gene AS
  3281. SELECT
  3282. feature_id AS proviral_gene_id,
  3283. feature.*
  3284. FROM
  3285. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3286. WHERE cvterm.name = 'endogenous_retroviral_gene' OR cvterm.name = 'proviral_gene';
  3287. --- ************************************************
  3288. --- *** relation: endogenous_retroviral_gene ***
  3289. --- *** relation type: VIEW ***
  3290. --- *** ***
  3291. --- *** A proviral gene with origin endogenous r ***
  3292. --- *** etrovirus. ***
  3293. --- ************************************************
  3294. ---
  3295. CREATE VIEW endogenous_retroviral_gene AS
  3296. SELECT
  3297. feature_id AS endogenous_retroviral_gene_id,
  3298. feature.*
  3299. FROM
  3300. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3301. WHERE cvterm.name = 'endogenous_retroviral_gene';
  3302. --- ************************************************
  3303. --- *** relation: transposable_element ***
  3304. --- *** relation type: VIEW ***
  3305. --- *** ***
  3306. --- *** A transposon or insertion sequence. An e ***
  3307. --- *** lement that can insert in a variety of D ***
  3308. --- *** NA sequences. ***
  3309. --- ************************************************
  3310. ---
  3311. CREATE VIEW transposable_element AS
  3312. SELECT
  3313. feature_id AS transposable_element_id,
  3314. feature.*
  3315. FROM
  3316. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3317. 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 = 'transposon_fragment' OR cvterm.name = 'LTR_retrotransposon' OR cvterm.name = 'non_LTR_retrotransposon' OR cvterm.name = 'RR_tract' 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 = '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';
  3318. --- ************************************************
  3319. --- *** relation: expressed_sequence_match ***
  3320. --- *** relation type: VIEW ***
  3321. --- *** ***
  3322. --- *** A match to an EST or cDNA sequence. ***
  3323. --- ************************************************
  3324. ---
  3325. CREATE VIEW expressed_sequence_match AS
  3326. SELECT
  3327. feature_id AS expressed_sequence_match_id,
  3328. feature.*
  3329. FROM
  3330. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3331. 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';
  3332. --- ************************************************
  3333. --- *** relation: clone_insert_end ***
  3334. --- *** relation type: VIEW ***
  3335. --- *** ***
  3336. --- *** The end of the clone insert. ***
  3337. --- ************************************************
  3338. ---
  3339. CREATE VIEW clone_insert_end AS
  3340. SELECT
  3341. feature_id AS clone_insert_end_id,
  3342. feature.*
  3343. FROM
  3344. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3345. WHERE cvterm.name = 'clone_insert_end';
  3346. --- ************************************************
  3347. --- *** relation: polypeptide ***
  3348. --- *** relation type: VIEW ***
  3349. --- *** ***
  3350. --- *** A sequence of amino acids linked by pept ***
  3351. --- *** ide bonds which may lack appreciable ter ***
  3352. --- *** tiary structure and may not be liable to ***
  3353. --- *** irreversible denaturation. ***
  3354. --- ************************************************
  3355. ---
  3356. CREATE VIEW polypeptide AS
  3357. SELECT
  3358. feature_id AS polypeptide_id,
  3359. feature.*
  3360. FROM
  3361. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3362. WHERE cvterm.name = 'polypeptide';
  3363. --- ************************************************
  3364. --- *** relation: chromosome_arm ***
  3365. --- *** relation type: VIEW ***
  3366. --- *** ***
  3367. --- *** A region of the chromosome between the c ***
  3368. --- *** entromere and the telomere. Human chromo ***
  3369. --- *** somes have two arms, the p arm (short) a ***
  3370. --- *** nd the q arm (long) which are separated ***
  3371. --- *** from each other by the centromere. ***
  3372. --- ************************************************
  3373. ---
  3374. CREATE VIEW chromosome_arm AS
  3375. SELECT
  3376. feature_id AS chromosome_arm_id,
  3377. feature.*
  3378. FROM
  3379. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3380. WHERE cvterm.name = 'chromosome_arm';
  3381. --- ************************************************
  3382. --- *** relation: sequencing_primer ***
  3383. --- *** relation type: VIEW ***
  3384. --- *** ***
  3385. --- ************************************************
  3386. ---
  3387. CREATE VIEW sequencing_primer AS
  3388. SELECT
  3389. feature_id AS sequencing_primer_id,
  3390. feature.*
  3391. FROM
  3392. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3393. WHERE cvterm.name = 'sequencing_primer';
  3394. --- ************************************************
  3395. --- *** relation: mrna_with_frameshift ***
  3396. --- *** relation type: VIEW ***
  3397. --- *** ***
  3398. --- *** An mRNA with a frameshift. ***
  3399. --- ************************************************
  3400. ---
  3401. CREATE VIEW mrna_with_frameshift AS
  3402. SELECT
  3403. feature_id AS mrna_with_frameshift_id,
  3404. feature.*
  3405. FROM
  3406. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3407. 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';
  3408. --- ************************************************
  3409. --- *** relation: sequence_feature ***
  3410. --- *** relation type: VIEW ***
  3411. --- *** ***
  3412. --- *** An extent of biological sequence. ***
  3413. --- ************************************************
  3414. ---
  3415. CREATE VIEW sequence_feature AS
  3416. SELECT
  3417. feature_id AS sequence_feature_id,
  3418. feature.*
  3419. FROM
  3420. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3421. 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 = '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 = '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 = 'QTL' 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 = 'read_pair' 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 = '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 = 'RFLP_fragment' OR cvterm.name = 'tiling_path_clone' OR cvterm.name = 'coding_conserved_region' OR cvterm.name = 'nc_conserved_region' OR cvterm.name = 'homologous_region' 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 = '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 = '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 = '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 = '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 = 'insertion' OR cvterm.name = 'gene' OR cvterm.name = 'nucleotide_motif' 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 = '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 = '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 = 'protein_binding_site' OR cvterm.name = 'miRNA_target_site' OR cvterm.name = 'epitope' OR cvterm.name = 'polypeptide_metal_contact' OR cvterm.name = 'protein_protein_contact' OR cvterm.name = 'polypeptide_ligand_contact' OR cvterm.name = 'DNA_binding_site' OR cvterm.name = 'primer_binding_site' OR cvterm.name = 'polypeptide_DNA_contact' 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 = 'INR_motif' OR cvterm.name = 'DPE_motif' OR cvterm.name = 'BRE_motif' OR cvterm.name = 'CAAT_signal' OR cvterm.name = 'TATA_box' OR cvterm.name = 'A_box' OR cvterm.name = 'B_box' OR cvterm.name = 'C_box' OR cvterm.name = 'DRE_motif' OR cvterm.name = 'E_box_motif' OR cvterm.name = 'MTE' OR cvterm.name = 'INR1_motif' OR cvterm.name = 'GAGA_motif' OR cvterm.name = 'octamer_motif' 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 = 'pseudogene' 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 = 'processed_pseudogene' OR cvterm.name = 'pseudogene_by_unequal_crossing_over' OR cvterm.name = 'nuclear_mt_pseudogene' OR cvterm.name = 'cassette_pseudogene' OR cvterm.name = 'transgenic_insertion' 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_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 = 'cryptogene' OR cvterm.name = 'DNA_motif' OR cvterm.name = 'RNA_motif' OR cvterm.name = 'PSE_motif' OR cvterm.name = 'GC_rich_promoter_region' OR cvterm.name = 'minus_10_signal' OR cvterm.name = 'minus_35_signal' 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 = '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 = '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 = '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 = '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 = '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 = '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 = '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 = 'edited_transcript_by_A_to_I_substitution' OR cvterm.name = 'attenuator' 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 = '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 = 'INR_motif' OR cvterm.name = 'DPE_motif' OR cvterm.name = 'BRE_motif' OR cvterm.name = 'CAAT_signal' OR cvterm.name = 'TATA_box' OR cvterm.name = 'A_box' OR cvterm.name = 'B_box' OR cvterm.name = 'C_box' OR cvterm.name = 'DRE_motif' OR cvterm.name = 'E_box_motif' OR cvterm.name = 'MTE' OR cvterm.name = 'INR1_motif' OR cvterm.name = 'GAGA_motif' OR cvterm.name = 'octamer_motif' OR cvterm.name = 'operator' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'bacterial_terminator' 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 = '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_III_promoter_type_1' OR cvterm.name = 'RNApol_III_promoter_type_2' OR cvterm.name = 'RNApol_III_promoter_type_3' 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 = 'RNApol_II_promoter' OR cvterm.name = 'RNApol_III_promoter' OR cvterm.name = 'silencer' OR cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' 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 = 'splice_enhancer' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' 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 = 'UTR' OR cvterm.name = 'CDS' OR cvterm.name = 'codon' 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 = '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 = '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 = 'ribosome_entry_site' OR cvterm.name = 'polyA_site' 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 = 'internal_ribosome_entry_site' OR cvterm.name = 'Shine_Dalgarno_sequence' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'coding_start' OR cvterm.name = 'coding_end' 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 = '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 = '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 = '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 = 'cleaved_initiator_methionine' OR cvterm.name = 'transit_peptide' 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 = '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 = 'mobile_intron' OR cvterm.name = 'extrachromosomal_mobile_genetic_element' OR cvterm.name = 'integrated_mobile_genetic_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 = 'natural_transposable_element' 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 = 'transposon_fragment' OR cvterm.name = 'LTR_retrotransposon' OR cvterm.name = 'non_LTR_retrotransposon' OR cvterm.name = 'RR_tract' 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 = '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 = 'natural_transposable_element' 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 = '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 = 'modified_base_site' 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 = 'methylated_base_feature' OR cvterm.name = 'methylated_C' OR cvterm.name = 'methylated_A' 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 = 'argenine' 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 = 'operon' 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 = 'SNP' OR cvterm.name = 'complex_substitution' OR cvterm.name = 'point_mutation' OR cvterm.name = 'simple_sequence_length_variation' OR cvterm.name = 'MNP' 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_region' OR cvterm.name = 'repeat_unit' 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 = '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 = 'repeat_fragment' 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 = 'non_LTR_retrotransposon_polymeric_tract' OR cvterm.name = 'LTR_component' OR cvterm.name = 'repeat_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 = 'deletion_junction' OR cvterm.name = 'chromosome_breakpoint' OR cvterm.name = 'splice_junction' OR cvterm.name = 'polyA_junction' OR cvterm.name = 'trans_splice_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 = 'deletion' OR cvterm.name = 'translocation' OR cvterm.name = 'insertion' OR cvterm.name = 'substitution' OR cvterm.name = 'uncharacterised_change_in_nucleotide_sequence' OR cvterm.name = 'indel' OR cvterm.name = 'inversion' OR cvterm.name = 'transgenic_insertion' OR cvterm.name = 'sequence_length_variation' OR cvterm.name = 'SNP' OR cvterm.name = 'complex_substitution' OR cvterm.name = 'point_mutation' OR cvterm.name = 'simple_sequence_length_variation' OR cvterm.name = 'MNP' 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 = 'partially_characterised_change_in_DNA_sequence' OR cvterm.name = 'nucleotide_deletion' OR cvterm.name = 'nucleotide_insertion' OR cvterm.name = 'nucleotide_duplication' OR cvterm.name = 'sequence_feature';
  3422. --- ************************************************
  3423. --- *** relation: transposable_element_gene ***
  3424. --- *** relation type: VIEW ***
  3425. --- *** ***
  3426. --- *** A gene encoded within a transposable ele ***
  3427. --- *** ment. For example gag, int, env and pol ***
  3428. --- *** are the transposable element genes of th ***
  3429. --- *** e TY element in yeast. ***
  3430. --- ************************************************
  3431. ---
  3432. CREATE VIEW transposable_element_gene AS
  3433. SELECT
  3434. feature_id AS transposable_element_gene_id,
  3435. feature.*
  3436. FROM
  3437. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3438. WHERE cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'transposable_element_gene';
  3439. --- ************************************************
  3440. --- *** relation: primer ***
  3441. --- *** relation type: VIEW ***
  3442. --- *** ***
  3443. --- *** A short preexisting polynucleotide chain ***
  3444. --- *** to which new deoxyribonucleotides can b ***
  3445. --- *** e added by DNA polymerase. ***
  3446. --- ************************************************
  3447. ---
  3448. CREATE VIEW primer AS
  3449. SELECT
  3450. feature_id AS primer_id,
  3451. feature.*
  3452. FROM
  3453. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3454. WHERE cvterm.name = 'sequencing_primer' OR cvterm.name = 'forward_primer' OR cvterm.name = 'reverse_primer' OR cvterm.name = 'primer';
  3455. --- ************************************************
  3456. --- *** relation: proviral_region ***
  3457. --- *** relation type: VIEW ***
  3458. --- *** ***
  3459. --- *** A viral sequence which has integrated in ***
  3460. --- *** to a host genome. ***
  3461. --- ************************************************
  3462. ---
  3463. CREATE VIEW proviral_region AS
  3464. SELECT
  3465. feature_id AS proviral_region_id,
  3466. feature.*
  3467. FROM
  3468. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3469. WHERE cvterm.name = 'prophage' OR cvterm.name = 'proviral_region';
  3470. --- ************************************************
  3471. --- *** relation: methylated_c ***
  3472. --- *** relation type: VIEW ***
  3473. --- *** ***
  3474. --- *** A methylated deoxy-cytosine. ***
  3475. --- ************************************************
  3476. ---
  3477. CREATE VIEW methylated_c AS
  3478. SELECT
  3479. feature_id AS methylated_c_id,
  3480. feature.*
  3481. FROM
  3482. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3483. WHERE cvterm.name = 'methylated_C';
  3484. --- ************************************************
  3485. --- *** relation: edited ***
  3486. --- *** relation type: VIEW ***
  3487. --- *** ***
  3488. --- *** An attribute describing a sequence that ***
  3489. --- *** is modified by editing. ***
  3490. --- ************************************************
  3491. ---
  3492. CREATE VIEW edited AS
  3493. SELECT
  3494. feature_id AS edited_id,
  3495. feature.*
  3496. FROM
  3497. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3498. WHERE cvterm.name = 'edited';
  3499. --- ************************************************
  3500. --- *** relation: transcript_with_translational_frameshift ***
  3501. --- *** relation type: VIEW ***
  3502. --- *** ***
  3503. --- *** A transcript with a translational frames ***
  3504. --- *** hift. ***
  3505. --- ************************************************
  3506. ---
  3507. CREATE VIEW transcript_with_translational_frameshift AS
  3508. SELECT
  3509. feature_id AS transcript_with_translational_frameshift_id,
  3510. feature.*
  3511. FROM
  3512. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3513. WHERE cvterm.name = 'transcript_with_translational_frameshift';
  3514. --- ************************************************
  3515. --- *** relation: regulated ***
  3516. --- *** relation type: VIEW ***
  3517. --- *** ***
  3518. --- *** An attribute to describe a sequence that ***
  3519. --- *** is regulated. ***
  3520. --- ************************************************
  3521. ---
  3522. CREATE VIEW regulated AS
  3523. SELECT
  3524. feature_id AS regulated_id,
  3525. feature.*
  3526. FROM
  3527. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3528. 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';
  3529. --- ************************************************
  3530. --- *** relation: protein_coding_primary_transcript ***
  3531. --- *** relation type: VIEW ***
  3532. --- *** ***
  3533. --- *** A primary transcript that, at least in p ***
  3534. --- *** art, encodes one or more proteins. ***
  3535. --- ************************************************
  3536. ---
  3537. CREATE VIEW protein_coding_primary_transcript AS
  3538. SELECT
  3539. feature_id AS protein_coding_primary_transcript_id,
  3540. feature.*
  3541. FROM
  3542. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3543. WHERE cvterm.name = 'pre_edited_mRNA' OR cvterm.name = 'protein_coding_primary_transcript';
  3544. --- ************************************************
  3545. --- *** relation: forward_primer ***
  3546. --- *** relation type: VIEW ***
  3547. --- *** ***
  3548. --- *** A single stranded oligo used for polymer ***
  3549. --- *** ase chain reaction. ***
  3550. --- ************************************************
  3551. ---
  3552. CREATE VIEW forward_primer AS
  3553. SELECT
  3554. feature_id AS forward_primer_id,
  3555. feature.*
  3556. FROM
  3557. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3558. WHERE cvterm.name = 'forward_primer';
  3559. --- ************************************************
  3560. --- *** relation: rna_sequence_secondary_structure ***
  3561. --- *** relation type: VIEW ***
  3562. --- *** ***
  3563. --- *** A folded RNA sequence. ***
  3564. --- ************************************************
  3565. ---
  3566. CREATE VIEW rna_sequence_secondary_structure AS
  3567. SELECT
  3568. feature_id AS rna_sequence_secondary_structure_id,
  3569. feature.*
  3570. FROM
  3571. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3572. WHERE cvterm.name = 'stem_loop' OR cvterm.name = 'tetraloop' OR cvterm.name = 'RNA_sequence_secondary_structure';
  3573. --- ************************************************
  3574. --- *** relation: transcriptionally_regulated ***
  3575. --- *** relation type: VIEW ***
  3576. --- *** ***
  3577. --- *** An attribute describing a gene that is r ***
  3578. --- *** egulated at transcription. ***
  3579. --- ************************************************
  3580. ---
  3581. CREATE VIEW transcriptionally_regulated AS
  3582. SELECT
  3583. feature_id AS transcriptionally_regulated_id,
  3584. feature.*
  3585. FROM
  3586. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3587. 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';
  3588. --- ************************************************
  3589. --- *** relation: transcriptionally_constitutive ***
  3590. --- *** relation type: VIEW ***
  3591. --- *** ***
  3592. --- *** Expressed in relatively constant amounts ***
  3593. --- *** without regard to cellular environmenta ***
  3594. --- *** l conditions such as the concentration o ***
  3595. --- *** f a particular substrate. ***
  3596. --- ************************************************
  3597. ---
  3598. CREATE VIEW transcriptionally_constitutive AS
  3599. SELECT
  3600. feature_id AS transcriptionally_constitutive_id,
  3601. feature.*
  3602. FROM
  3603. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3604. WHERE cvterm.name = 'transcriptionally_constitutive';
  3605. --- ************************************************
  3606. --- *** relation: transcriptionally_induced ***
  3607. --- *** relation type: VIEW ***
  3608. --- *** ***
  3609. --- *** An inducer molecule is required for tran ***
  3610. --- *** scription to occur. ***
  3611. --- ************************************************
  3612. ---
  3613. CREATE VIEW transcriptionally_induced AS
  3614. SELECT
  3615. feature_id AS transcriptionally_induced_id,
  3616. feature.*
  3617. FROM
  3618. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3619. WHERE cvterm.name = 'positively_autoregulated' OR cvterm.name = 'transcriptionally_induced';
  3620. --- ************************************************
  3621. --- *** relation: transcriptionally_repressed ***
  3622. --- *** relation type: VIEW ***
  3623. --- *** ***
  3624. --- *** A repressor molecule is required for tra ***
  3625. --- *** nscription to stop. ***
  3626. --- ************************************************
  3627. ---
  3628. CREATE VIEW transcriptionally_repressed AS
  3629. SELECT
  3630. feature_id AS transcriptionally_repressed_id,
  3631. feature.*
  3632. FROM
  3633. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3634. 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';
  3635. --- ************************************************
  3636. --- *** relation: silenced_gene ***
  3637. --- *** relation type: VIEW ***
  3638. --- *** ***
  3639. --- *** A gene that is silenced. ***
  3640. --- ************************************************
  3641. ---
  3642. CREATE VIEW silenced_gene AS
  3643. SELECT
  3644. feature_id AS silenced_gene_id,
  3645. feature.*
  3646. FROM
  3647. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3648. 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';
  3649. --- ************************************************
  3650. --- *** relation: gene_silenced_by_dna_modification ***
  3651. --- *** relation type: VIEW ***
  3652. --- *** ***
  3653. --- *** A gene that is silenced by DNA modificat ***
  3654. --- *** ion. ***
  3655. --- ************************************************
  3656. ---
  3657. CREATE VIEW gene_silenced_by_dna_modification AS
  3658. SELECT
  3659. feature_id AS gene_silenced_by_dna_modification_id,
  3660. feature.*
  3661. FROM
  3662. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3663. WHERE cvterm.name = 'gene_silenced_by_DNA_methylation' OR cvterm.name = 'gene_silenced_by_DNA_modification';
  3664. --- ************************************************
  3665. --- *** relation: gene_silenced_by_dna_methylation ***
  3666. --- *** relation type: VIEW ***
  3667. --- *** ***
  3668. --- *** A gene that is silenced by DNA methylati ***
  3669. --- *** on. ***
  3670. --- ************************************************
  3671. ---
  3672. CREATE VIEW gene_silenced_by_dna_methylation AS
  3673. SELECT
  3674. feature_id AS gene_silenced_by_dna_methylation_id,
  3675. feature.*
  3676. FROM
  3677. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3678. WHERE cvterm.name = 'gene_silenced_by_DNA_methylation';
  3679. --- ************************************************
  3680. --- *** relation: post_translationally_regulated ***
  3681. --- *** relation type: VIEW ***
  3682. --- *** ***
  3683. --- *** An attribute describing a gene that is r ***
  3684. --- *** egulated after it has been translated. ***
  3685. --- ************************************************
  3686. ---
  3687. CREATE VIEW post_translationally_regulated AS
  3688. SELECT
  3689. feature_id AS post_translationally_regulated_id,
  3690. feature.*
  3691. FROM
  3692. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3693. WHERE cvterm.name = 'post_translationally_regulated_by_protein_stability' OR cvterm.name = 'post_translationally_regulated_by_protein_modification' OR cvterm.name = 'post_translationally_regulated';
  3694. --- ************************************************
  3695. --- *** relation: translationally_regulated ***
  3696. --- *** relation type: VIEW ***
  3697. --- *** ***
  3698. --- *** An attribute describing a gene that is r ***
  3699. --- *** egulated as it is translated. ***
  3700. --- ************************************************
  3701. ---
  3702. CREATE VIEW translationally_regulated AS
  3703. SELECT
  3704. feature_id AS translationally_regulated_id,
  3705. feature.*
  3706. FROM
  3707. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3708. WHERE cvterm.name = 'translationally_regulated';
  3709. --- ************************************************
  3710. --- *** relation: reverse_primer ***
  3711. --- *** relation type: VIEW ***
  3712. --- *** ***
  3713. --- *** A single stranded oligo used for polymer ***
  3714. --- *** ase chain reaction. ***
  3715. --- ************************************************
  3716. ---
  3717. CREATE VIEW reverse_primer AS
  3718. SELECT
  3719. feature_id AS reverse_primer_id,
  3720. feature.*
  3721. FROM
  3722. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3723. WHERE cvterm.name = 'reverse_primer';
  3724. --- ************************************************
  3725. --- *** relation: epigenetically_modified ***
  3726. --- *** relation type: VIEW ***
  3727. --- *** ***
  3728. --- *** This attribute describes a gene where he ***
  3729. --- *** ritable changes other than those in the ***
  3730. --- *** DNA sequence occur. These changes includ ***
  3731. --- *** e: modification to the DNA (such as DNA ***
  3732. --- *** methylation, the covalent modification o ***
  3733. --- *** f cytosine), and post-translational modi ***
  3734. --- *** fication of histones. ***
  3735. --- ************************************************
  3736. ---
  3737. CREATE VIEW epigenetically_modified AS
  3738. SELECT
  3739. feature_id AS epigenetically_modified_id,
  3740. feature.*
  3741. FROM
  3742. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3743. 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';
  3744. --- ************************************************
  3745. --- *** relation: imprinted ***
  3746. --- *** relation type: VIEW ***
  3747. --- *** ***
  3748. --- *** Imprinted genes are epigenetically modif ***
  3749. --- *** ied genes that are expressed monoallelic ***
  3750. --- *** ally according to their parent of origin ***
  3751. --- *** . ***
  3752. --- ************************************************
  3753. ---
  3754. CREATE VIEW imprinted AS
  3755. SELECT
  3756. feature_id AS imprinted_id,
  3757. feature.*
  3758. FROM
  3759. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3760. WHERE cvterm.name = 'maternally_imprinted' OR cvterm.name = 'paternally_imprinted' OR cvterm.name = 'imprinted';
  3761. --- ************************************************
  3762. --- *** relation: maternally_imprinted ***
  3763. --- *** relation type: VIEW ***
  3764. --- *** ***
  3765. --- *** The maternal copy of the gene is modifie ***
  3766. --- *** d, rendering it transcriptionally silent ***
  3767. --- *** . ***
  3768. --- ************************************************
  3769. ---
  3770. CREATE VIEW maternally_imprinted AS
  3771. SELECT
  3772. feature_id AS maternally_imprinted_id,
  3773. feature.*
  3774. FROM
  3775. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3776. WHERE cvterm.name = 'maternally_imprinted';
  3777. --- ************************************************
  3778. --- *** relation: paternally_imprinted ***
  3779. --- *** relation type: VIEW ***
  3780. --- *** ***
  3781. --- *** The paternal copy of the gene is modifie ***
  3782. --- *** d, rendering it transcriptionally silent ***
  3783. --- *** . ***
  3784. --- ************************************************
  3785. ---
  3786. CREATE VIEW paternally_imprinted AS
  3787. SELECT
  3788. feature_id AS paternally_imprinted_id,
  3789. feature.*
  3790. FROM
  3791. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3792. WHERE cvterm.name = 'paternally_imprinted';
  3793. --- ************************************************
  3794. --- *** relation: allelically_excluded ***
  3795. --- *** relation type: VIEW ***
  3796. --- *** ***
  3797. --- *** Allelic exclusion is a process occuring ***
  3798. --- *** in diploid organisms, where a gene is in ***
  3799. --- *** activated and not expressed in that cell ***
  3800. --- *** . ***
  3801. --- ************************************************
  3802. ---
  3803. CREATE VIEW allelically_excluded AS
  3804. SELECT
  3805. feature_id AS allelically_excluded_id,
  3806. feature.*
  3807. FROM
  3808. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3809. WHERE cvterm.name = 'allelically_excluded';
  3810. --- ************************************************
  3811. --- *** relation: gene_rearranged_at_dna_level ***
  3812. --- *** relation type: VIEW ***
  3813. --- *** ***
  3814. --- *** An epigenetically modified gene, rearran ***
  3815. --- *** ged at the DNA level. ***
  3816. --- ************************************************
  3817. ---
  3818. CREATE VIEW gene_rearranged_at_dna_level AS
  3819. SELECT
  3820. feature_id AS gene_rearranged_at_dna_level_id,
  3821. feature.*
  3822. FROM
  3823. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3824. WHERE cvterm.name = 'gene_rearranged_at_DNA_level';
  3825. --- ************************************************
  3826. --- *** relation: ribosome_entry_site ***
  3827. --- *** relation type: VIEW ***
  3828. --- *** ***
  3829. --- *** Region in mRNA where ribosome assembles. ***
  3830. --- ************************************************
  3831. ---
  3832. CREATE VIEW ribosome_entry_site AS
  3833. SELECT
  3834. feature_id AS ribosome_entry_site_id,
  3835. feature.*
  3836. FROM
  3837. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3838. WHERE cvterm.name = 'internal_ribosome_entry_site' OR cvterm.name = 'Shine_Dalgarno_sequence' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'ribosome_entry_site';
  3839. --- ************************************************
  3840. --- *** relation: attenuator ***
  3841. --- *** relation type: VIEW ***
  3842. --- *** ***
  3843. --- *** A sequence segment located within the fi ***
  3844. --- *** ve prime end of an mRNA that causes prem ***
  3845. --- *** ature termination of translation. ***
  3846. --- ************************************************
  3847. ---
  3848. CREATE VIEW attenuator AS
  3849. SELECT
  3850. feature_id AS attenuator_id,
  3851. feature.*
  3852. FROM
  3853. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3854. WHERE cvterm.name = 'attenuator';
  3855. --- ************************************************
  3856. --- *** relation: terminator ***
  3857. --- *** relation type: VIEW ***
  3858. --- *** ***
  3859. --- *** The sequence of DNA located either at th ***
  3860. --- *** e end of the transcript that causes RNA ***
  3861. --- *** polymerase to terminate transcription. ***
  3862. --- ************************************************
  3863. ---
  3864. CREATE VIEW terminator AS
  3865. SELECT
  3866. feature_id AS terminator_id,
  3867. feature.*
  3868. FROM
  3869. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3870. 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';
  3871. --- ************************************************
  3872. --- *** relation: dna_sequence_secondary_structure ***
  3873. --- *** relation type: VIEW ***
  3874. --- *** ***
  3875. --- *** A folded DNA sequence. ***
  3876. --- ************************************************
  3877. ---
  3878. CREATE VIEW dna_sequence_secondary_structure AS
  3879. SELECT
  3880. feature_id AS dna_sequence_secondary_structure_id,
  3881. feature.*
  3882. FROM
  3883. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3884. WHERE cvterm.name = 'i_motif' OR cvterm.name = 'DNA_sequence_secondary_structure';
  3885. --- ************************************************
  3886. --- *** relation: assembly_component ***
  3887. --- *** relation type: VIEW ***
  3888. --- *** ***
  3889. --- *** A region of known length which may be us ***
  3890. --- *** ed to manufacture a longer region. ***
  3891. --- ************************************************
  3892. ---
  3893. CREATE VIEW assembly_component AS
  3894. SELECT
  3895. feature_id AS assembly_component_id,
  3896. feature.*
  3897. FROM
  3898. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3899. WHERE cvterm.name = 'read_pair' 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 = '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 = 'RFLP_fragment' OR cvterm.name = 'tiling_path_clone' OR cvterm.name = 'assembly_component';
  3900. --- ************************************************
  3901. --- *** relation: recoded_codon ***
  3902. --- *** relation type: VIEW ***
  3903. --- *** ***
  3904. --- *** A codon that has been redefined at trans ***
  3905. --- *** lation. The redefinition may be as a res ***
  3906. --- *** ult of translational bypass, translation ***
  3907. --- *** al frameshifting or stop codon readthrou ***
  3908. --- *** gh. ***
  3909. --- ************************************************
  3910. ---
  3911. CREATE VIEW recoded_codon AS
  3912. SELECT
  3913. feature_id AS recoded_codon_id,
  3914. feature.*
  3915. FROM
  3916. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3917. 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';
  3918. --- ************************************************
  3919. --- *** relation: capped ***
  3920. --- *** relation type: VIEW ***
  3921. --- *** ***
  3922. --- *** An attribute describing when a sequence, ***
  3923. --- *** usually an mRNA is capped by the additi ***
  3924. --- *** on of a modified guanine nucleotide at t ***
  3925. --- *** he 5' end. ***
  3926. --- ************************************************
  3927. ---
  3928. CREATE VIEW capped AS
  3929. SELECT
  3930. feature_id AS capped_id,
  3931. feature.*
  3932. FROM
  3933. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3934. WHERE cvterm.name = 'capped';
  3935. --- ************************************************
  3936. --- *** relation: exon ***
  3937. --- *** relation type: VIEW ***
  3938. --- *** ***
  3939. --- *** A region of the transcript sequence with ***
  3940. --- *** in a gene which is not removed from the ***
  3941. --- *** primary RNA transcript by RNA splicing. ***
  3942. --- ************************************************
  3943. ---
  3944. CREATE VIEW exon AS
  3945. SELECT
  3946. feature_id AS exon_id,
  3947. feature.*
  3948. FROM
  3949. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3950. 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';
  3951. --- ************************************************
  3952. --- *** relation: supercontig ***
  3953. --- *** relation type: VIEW ***
  3954. --- *** ***
  3955. --- *** One or more contigs that have been order ***
  3956. --- *** ed and oriented using end-read informati ***
  3957. --- *** on. Contains gaps that are filled with N ***
  3958. --- *** 's. ***
  3959. --- ************************************************
  3960. ---
  3961. CREATE VIEW supercontig AS
  3962. SELECT
  3963. feature_id AS supercontig_id,
  3964. feature.*
  3965. FROM
  3966. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3967. WHERE cvterm.name = 'supercontig';
  3968. --- ************************************************
  3969. --- *** relation: contig ***
  3970. --- *** relation type: VIEW ***
  3971. --- *** ***
  3972. --- *** A contiguous sequence derived from seque ***
  3973. --- *** nce assembly. Has no gaps, but may conta ***
  3974. --- *** in N's from unvailable bases. ***
  3975. --- ************************************************
  3976. ---
  3977. CREATE VIEW contig AS
  3978. SELECT
  3979. feature_id AS contig_id,
  3980. feature.*
  3981. FROM
  3982. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3983. WHERE cvterm.name = 'contig';
  3984. --- ************************************************
  3985. --- *** relation: read ***
  3986. --- *** relation type: VIEW ***
  3987. --- *** ***
  3988. --- *** A sequence obtained from a single sequen ***
  3989. --- *** cing experiment. Typically a read is pro ***
  3990. --- *** duced when a base calling program interp ***
  3991. --- *** rets information from a chromatogram tra ***
  3992. --- *** ce file produced from a sequencing machi ***
  3993. --- *** ne. ***
  3994. --- ************************************************
  3995. ---
  3996. CREATE VIEW read AS
  3997. SELECT
  3998. feature_id AS read_id,
  3999. feature.*
  4000. FROM
  4001. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4002. WHERE 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 = 'read';
  4003. --- ************************************************
  4004. --- *** relation: clone ***
  4005. --- *** relation type: VIEW ***
  4006. --- *** ***
  4007. --- *** A piece of DNA that has been inserted in ***
  4008. --- *** a vector so that it can be propagated i ***
  4009. --- *** n a host bacterium or some other organis ***
  4010. --- *** m. ***
  4011. --- ************************************************
  4012. ---
  4013. CREATE VIEW clone AS
  4014. SELECT
  4015. feature_id AS clone_id,
  4016. feature.*
  4017. FROM
  4018. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4019. 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';
  4020. --- ************************************************
  4021. --- *** relation: yac ***
  4022. --- *** relation type: VIEW ***
  4023. --- *** ***
  4024. --- *** Yeast Artificial Chromosome, a vector co ***
  4025. --- *** nstructed from the telomeric, centromeri ***
  4026. --- *** c, and replication origin sequences need ***
  4027. --- *** ed for replication in yeast cells. ***
  4028. --- ************************************************
  4029. ---
  4030. CREATE VIEW yac AS
  4031. SELECT
  4032. feature_id AS yac_id,
  4033. feature.*
  4034. FROM
  4035. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4036. WHERE cvterm.name = 'YAC';
  4037. --- ************************************************
  4038. --- *** relation: bac ***
  4039. --- *** relation type: VIEW ***
  4040. --- *** ***
  4041. --- *** Bacterial Artificial Chromosome, a cloni ***
  4042. --- *** ng vector that can be propagated as mini ***
  4043. --- *** -chromosomes in a bacterial host. ***
  4044. --- ************************************************
  4045. ---
  4046. CREATE VIEW bac AS
  4047. SELECT
  4048. feature_id AS bac_id,
  4049. feature.*
  4050. FROM
  4051. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4052. WHERE cvterm.name = 'BAC';
  4053. --- ************************************************
  4054. --- *** relation: pac ***
  4055. --- *** relation type: VIEW ***
  4056. --- *** ***
  4057. --- *** The P1-derived artificial chromosome are ***
  4058. --- *** DNA constructs that are derived from th ***
  4059. --- *** e DNA of P1 bacteriophage. They can carr ***
  4060. --- *** y large amounts (about 100-300 kilobases ***
  4061. --- *** ) of other sequences for a variety of bi ***
  4062. --- *** oengineering purposes. It is one type of ***
  4063. --- *** vector used to clone DNA fragments (100 ***
  4064. --- *** - to 300-kb insert size; average, 150 kb ***
  4065. --- *** ) in Escherichia coli cells. ***
  4066. --- ************************************************
  4067. ---
  4068. CREATE VIEW pac AS
  4069. SELECT
  4070. feature_id AS pac_id,
  4071. feature.*
  4072. FROM
  4073. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4074. WHERE cvterm.name = 'PAC';
  4075. --- ************************************************
  4076. --- *** relation: plasmid ***
  4077. --- *** relation type: VIEW ***
  4078. --- *** ***
  4079. --- *** A self replicating, using the hosts cell ***
  4080. --- *** ular machinery, often circular nucleic a ***
  4081. --- *** cid molecule that is distinct from a chr ***
  4082. --- *** omosome in the organism. ***
  4083. --- ************************************************
  4084. ---
  4085. CREATE VIEW plasmid AS
  4086. SELECT
  4087. feature_id AS plasmid_id,
  4088. feature.*
  4089. FROM
  4090. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4091. 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 = 'natural_transposable_element' OR cvterm.name = 'plasmid';
  4092. --- ************************************************
  4093. --- *** relation: cosmid ***
  4094. --- *** relation type: VIEW ***
  4095. --- *** ***
  4096. --- *** A cloning vector that is a hybrid of lam ***
  4097. --- *** bda phages and a plasmid that can be pro ***
  4098. --- *** pagated as a plasmid or packaged as a ph ***
  4099. --- *** age,since they retain the lambda cos sit ***
  4100. --- *** es. ***
  4101. --- ************************************************
  4102. ---
  4103. CREATE VIEW cosmid AS
  4104. SELECT
  4105. feature_id AS cosmid_id,
  4106. feature.*
  4107. FROM
  4108. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4109. WHERE cvterm.name = 'cosmid';
  4110. --- ************************************************
  4111. --- *** relation: phagemid ***
  4112. --- *** relation type: VIEW ***
  4113. --- *** ***
  4114. --- *** A plasmid which carries within its seque ***
  4115. --- *** nce a bacteriophage replication origin. ***
  4116. --- *** When the host bacterium is infected with ***
  4117. --- *** "helper" phage, a phagemid is replicate ***
  4118. --- *** d along with the phage DNA and packaged ***
  4119. --- *** into phage capsids. ***
  4120. --- ************************************************
  4121. ---
  4122. CREATE VIEW phagemid AS
  4123. SELECT
  4124. feature_id AS phagemid_id,
  4125. feature.*
  4126. FROM
  4127. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4128. WHERE cvterm.name = 'phagemid';
  4129. --- ************************************************
  4130. --- *** relation: fosmid ***
  4131. --- *** relation type: VIEW ***
  4132. --- *** ***
  4133. --- *** A cloning vector that utilises the E. co ***
  4134. --- *** li F factor. ***
  4135. --- ************************************************
  4136. ---
  4137. CREATE VIEW fosmid AS
  4138. SELECT
  4139. feature_id AS fosmid_id,
  4140. feature.*
  4141. FROM
  4142. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4143. WHERE cvterm.name = 'fosmid';
  4144. --- ************************************************
  4145. --- *** relation: deletion ***
  4146. --- *** relation type: VIEW ***
  4147. --- *** ***
  4148. --- *** The point at which a deletion occured. ***
  4149. --- ************************************************
  4150. ---
  4151. CREATE VIEW deletion AS
  4152. SELECT
  4153. feature_id AS deletion_id,
  4154. feature.*
  4155. FROM
  4156. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4157. WHERE cvterm.name = 'deletion';
  4158. --- ************************************************
  4159. --- *** relation: methylated_a ***
  4160. --- *** relation type: VIEW ***
  4161. --- *** ***
  4162. --- *** A modified RNA base in which adenine has ***
  4163. --- *** been methylated. ***
  4164. --- ************************************************
  4165. ---
  4166. CREATE VIEW methylated_a AS
  4167. SELECT
  4168. feature_id AS methylated_a_id,
  4169. feature.*
  4170. FROM
  4171. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4172. WHERE cvterm.name = 'methylated_A';
  4173. --- ************************************************
  4174. --- *** relation: splice_site ***
  4175. --- *** relation type: VIEW ***
  4176. --- *** ***
  4177. --- *** Consensus region of primary transcript b ***
  4178. --- *** ordering junction of splicing. A region ***
  4179. --- *** that overlaps exactly 2 base and adjacen ***
  4180. --- *** t_to splice_junction. ***
  4181. --- ************************************************
  4182. ---
  4183. CREATE VIEW splice_site AS
  4184. SELECT
  4185. feature_id AS splice_site_id,
  4186. feature.*
  4187. FROM
  4188. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4189. WHERE cvterm.name = 'cis_splice_site' OR cvterm.name = 'trans_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 = 'splice_site';
  4190. --- ************************************************
  4191. --- *** relation: five_prime_cis_splice_site ***
  4192. --- *** relation type: VIEW ***
  4193. --- *** ***
  4194. --- *** Intronic 2 bp region bordering the exon, ***
  4195. --- *** at the 5' edge of the intron. A splice_ ***
  4196. --- *** site that is downstream_adjacent_to exon ***
  4197. --- *** and starts intron. ***
  4198. --- ************************************************
  4199. ---
  4200. CREATE VIEW five_prime_cis_splice_site AS
  4201. SELECT
  4202. feature_id AS five_prime_cis_splice_site_id,
  4203. feature.*
  4204. FROM
  4205. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4206. 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';
  4207. --- ************************************************
  4208. --- *** relation: three_prime_cis_splice_site ***
  4209. --- *** relation type: VIEW ***
  4210. --- *** ***
  4211. --- *** Intronic 2 bp region bordering the exon, ***
  4212. --- *** at the 3' edge of the intron. A splice_ ***
  4213. --- *** site that is upstream_adjacent_to exon a ***
  4214. --- *** nd finishes intron. ***
  4215. --- ************************************************
  4216. ---
  4217. CREATE VIEW three_prime_cis_splice_site AS
  4218. SELECT
  4219. feature_id AS three_prime_cis_splice_site_id,
  4220. feature.*
  4221. FROM
  4222. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4223. 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';
  4224. --- ************************************************
  4225. --- *** relation: enhancer ***
  4226. --- *** relation type: VIEW ***
  4227. --- *** ***
  4228. --- *** A cis-acting sequence that increases the ***
  4229. --- *** utilization of (some) eukaryotic promot ***
  4230. --- *** ers, and can function in either orientat ***
  4231. --- *** ion and in any location (upstream or dow ***
  4232. --- *** nstream) relative to the promoter. ***
  4233. --- ************************************************
  4234. ---
  4235. CREATE VIEW enhancer AS
  4236. SELECT
  4237. feature_id AS enhancer_id,
  4238. feature.*
  4239. FROM
  4240. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4241. WHERE cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' OR cvterm.name = 'enhancer';
  4242. --- ************************************************
  4243. --- *** relation: enhancer_bound_by_factor ***
  4244. --- *** relation type: VIEW ***
  4245. --- *** ***
  4246. --- *** An enhancer bound by a factor. ***
  4247. --- ************************************************
  4248. ---
  4249. CREATE VIEW enhancer_bound_by_factor AS
  4250. SELECT
  4251. feature_id AS enhancer_bound_by_factor_id,
  4252. feature.*
  4253. FROM
  4254. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4255. WHERE cvterm.name = 'enhancer_bound_by_factor';
  4256. --- ************************************************
  4257. --- *** relation: promoter ***
  4258. --- *** relation type: VIEW ***
  4259. --- *** ***
  4260. --- *** A regulatory_region composed of the TSS( ***
  4261. --- *** s) and binding sites for TF_complexes of ***
  4262. --- *** the basal transcription machinery. ***
  4263. --- ************************************************
  4264. ---
  4265. CREATE VIEW promoter AS
  4266. SELECT
  4267. feature_id AS promoter_id,
  4268. feature.*
  4269. FROM
  4270. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4271. 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_III_promoter_type_1' OR cvterm.name = 'RNApol_III_promoter_type_2' OR cvterm.name = 'RNApol_III_promoter_type_3' 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';
  4272. --- ************************************************
  4273. --- *** relation: rnapol_i_promoter ***
  4274. --- *** relation type: VIEW ***
  4275. --- *** ***
  4276. --- *** A DNA sequence in eukaryotic DNA to whic ***
  4277. --- *** h RNA polymerase I binds, to begin trans ***
  4278. --- *** cription. ***
  4279. --- ************************************************
  4280. ---
  4281. CREATE VIEW rnapol_i_promoter AS
  4282. SELECT
  4283. feature_id AS rnapol_i_promoter_id,
  4284. feature.*
  4285. FROM
  4286. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4287. WHERE cvterm.name = 'RNApol_I_promoter';
  4288. --- ************************************************
  4289. --- *** relation: rnapol_ii_promoter ***
  4290. --- *** relation type: VIEW ***
  4291. --- *** ***
  4292. --- *** A DNA sequence in eukaryotic DNA to whic ***
  4293. --- *** h RNA polymerase II binds, to begin tran ***
  4294. --- *** scription. ***
  4295. --- ************************************************
  4296. ---
  4297. CREATE VIEW rnapol_ii_promoter AS
  4298. SELECT
  4299. feature_id AS rnapol_ii_promoter_id,
  4300. feature.*
  4301. FROM
  4302. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4303. WHERE cvterm.name = 'RNApol_II_promoter';
  4304. --- ************************************************
  4305. --- *** relation: rnapol_iii_promoter ***
  4306. --- *** relation type: VIEW ***
  4307. --- *** ***
  4308. --- *** A DNA sequence in eukaryotic DNA to whic ***
  4309. --- *** h RNA polymerase III binds, to begin tra ***
  4310. --- *** nscription. ***
  4311. --- ************************************************
  4312. ---
  4313. CREATE VIEW rnapol_iii_promoter AS
  4314. SELECT
  4315. feature_id AS rnapol_iii_promoter_id,
  4316. feature.*
  4317. FROM
  4318. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4319. 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';
  4320. --- ************************************************
  4321. --- *** relation: caat_signal ***
  4322. --- *** relation type: VIEW ***
  4323. --- *** ***
  4324. --- *** Part of a conserved sequence located abo ***
  4325. --- *** ut 75-bp upstream of the start point of ***
  4326. --- *** eukaryotic transcription units which may ***
  4327. --- *** be involved in RNA polymerase binding; ***
  4328. --- *** consensus=GG(C|T)CAATCT. ***
  4329. --- ************************************************
  4330. ---
  4331. CREATE VIEW caat_signal AS
  4332. SELECT
  4333. feature_id AS caat_signal_id,
  4334. feature.*
  4335. FROM
  4336. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4337. WHERE cvterm.name = 'CAAT_signal';
  4338. --- ************************************************
  4339. --- *** relation: gc_rich_promoter_region ***
  4340. --- *** relation type: VIEW ***
  4341. --- *** ***
  4342. --- *** A conserved GC-rich region located upstr ***
  4343. --- *** eam of the start point of eukaryotic tra ***
  4344. --- *** nscription units which may occur in mult ***
  4345. --- *** iple copies or in either orientation; co ***
  4346. --- *** nsensus=GGGCGG. ***
  4347. --- ************************************************
  4348. ---
  4349. CREATE VIEW gc_rich_promoter_region AS
  4350. SELECT
  4351. feature_id AS gc_rich_promoter_region_id,
  4352. feature.*
  4353. FROM
  4354. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4355. WHERE cvterm.name = 'GC_rich_promoter_region';
  4356. --- ************************************************
  4357. --- *** relation: tata_box ***
  4358. --- *** relation type: VIEW ***
  4359. --- *** ***
  4360. --- *** A conserved AT-rich septamer found about ***
  4361. --- *** 25-bp before the start point of many eu ***
  4362. --- *** karyotic RNA polymerase II transcript un ***
  4363. --- *** its; may be involved in positioning the ***
  4364. --- *** enzyme for correct initiation; consensus ***
  4365. --- *** =TATA(A|T)A(A|T). ***
  4366. --- ************************************************
  4367. ---
  4368. CREATE VIEW tata_box AS
  4369. SELECT
  4370. feature_id AS tata_box_id,
  4371. feature.*
  4372. FROM
  4373. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4374. WHERE cvterm.name = 'TATA_box';
  4375. --- ************************************************
  4376. --- *** relation: minus_10_signal ***
  4377. --- *** relation type: VIEW ***
  4378. --- *** ***
  4379. --- *** A conserved region about 10-bp upstream ***
  4380. --- *** of the start point of bacterial transcri ***
  4381. --- *** ption units which may be involved in bin ***
  4382. --- *** ding RNA polymerase; consensus=TAtAaT. ***
  4383. --- ************************************************
  4384. ---
  4385. CREATE VIEW minus_10_signal AS
  4386. SELECT
  4387. feature_id AS minus_10_signal_id,
  4388. feature.*
  4389. FROM
  4390. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4391. WHERE cvterm.name = 'minus_10_signal';
  4392. --- ************************************************
  4393. --- *** relation: minus_35_signal ***
  4394. --- *** relation type: VIEW ***
  4395. --- *** ***
  4396. --- *** A conserved hexamer about 35-bp upstream ***
  4397. --- *** of the start point of bacterial transcr ***
  4398. --- *** iption units; consensus=TTGACa or TGTTGA ***
  4399. --- *** CA. ***
  4400. --- ************************************************
  4401. ---
  4402. CREATE VIEW minus_35_signal AS
  4403. SELECT
  4404. feature_id AS minus_35_signal_id,
  4405. feature.*
  4406. FROM
  4407. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4408. WHERE cvterm.name = 'minus_35_signal';
  4409. --- ************************************************
  4410. --- *** relation: cross_genome_match ***
  4411. --- *** relation type: VIEW ***
  4412. --- *** ***
  4413. --- *** A nucleotide match against a sequence fr ***
  4414. --- *** om another organism. ***
  4415. --- ************************************************
  4416. ---
  4417. CREATE VIEW cross_genome_match AS
  4418. SELECT
  4419. feature_id AS cross_genome_match_id,
  4420. feature.*
  4421. FROM
  4422. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4423. WHERE cvterm.name = 'cross_genome_match';
  4424. --- ************************************************
  4425. --- *** relation: operon ***
  4426. --- *** relation type: VIEW ***
  4427. --- *** ***
  4428. --- *** A group of contiguous genes transcribed ***
  4429. --- *** as a single (polycistronic) mRNA from a ***
  4430. --- *** single regulatory region. ***
  4431. --- ************************************************
  4432. ---
  4433. CREATE VIEW operon AS
  4434. SELECT
  4435. feature_id AS operon_id,
  4436. feature.*
  4437. FROM
  4438. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4439. WHERE cvterm.name = 'operon';
  4440. --- ************************************************
  4441. --- *** relation: clone_insert_start ***
  4442. --- *** relation type: VIEW ***
  4443. --- *** ***
  4444. --- *** The start of the clone insert. ***
  4445. --- ************************************************
  4446. ---
  4447. CREATE VIEW clone_insert_start AS
  4448. SELECT
  4449. feature_id AS clone_insert_start_id,
  4450. feature.*
  4451. FROM
  4452. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4453. WHERE cvterm.name = 'clone_insert_start';
  4454. --- ************************************************
  4455. --- *** relation: retrotransposon ***
  4456. --- *** relation type: VIEW ***
  4457. --- *** ***
  4458. --- *** A transposable element that is incorpora ***
  4459. --- *** ted into a chromosome by a mechanism tha ***
  4460. --- *** t requires reverse transcriptase. ***
  4461. --- ************************************************
  4462. ---
  4463. CREATE VIEW retrotransposon AS
  4464. SELECT
  4465. feature_id AS retrotransposon_id,
  4466. feature.*
  4467. FROM
  4468. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4469. WHERE cvterm.name = 'LTR_retrotransposon' OR cvterm.name = 'non_LTR_retrotransposon' OR cvterm.name = 'RR_tract' OR cvterm.name = 'LINE_element' OR cvterm.name = 'SINE_element' OR cvterm.name = 'retrotransposon';
  4470. --- ************************************************
  4471. --- *** relation: translated_nucleotide_match ***
  4472. --- *** relation type: VIEW ***
  4473. --- *** ***
  4474. --- *** A match against a translated sequence. ***
  4475. --- ************************************************
  4476. ---
  4477. CREATE VIEW translated_nucleotide_match AS
  4478. SELECT
  4479. feature_id AS translated_nucleotide_match_id,
  4480. feature.*
  4481. FROM
  4482. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4483. WHERE cvterm.name = 'translated_nucleotide_match';
  4484. --- ************************************************
  4485. --- *** relation: dna_transposon ***
  4486. --- *** relation type: VIEW ***
  4487. --- *** ***
  4488. --- *** A transposon where the mechanism of tran ***
  4489. --- *** sposition is via a DNA intermediate. ***
  4490. --- ************************************************
  4491. ---
  4492. CREATE VIEW dna_transposon AS
  4493. SELECT
  4494. feature_id AS dna_transposon_id,
  4495. feature.*
  4496. FROM
  4497. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4498. WHERE cvterm.name = 'terminal_inverted_repeat_element' OR cvterm.name = 'foldback_element' OR cvterm.name = 'conjugative_transposon' OR cvterm.name = 'helitron' OR cvterm.name = 'MITE' OR cvterm.name = 'insertion_sequence' OR cvterm.name = 'polinton' OR cvterm.name = 'DNA_transposon';
  4499. --- ************************************************
  4500. --- *** relation: non_transcribed_region ***
  4501. --- *** relation type: VIEW ***
  4502. --- *** ***
  4503. --- *** A region of the gene which is not transc ***
  4504. --- *** ribed. ***
  4505. --- ************************************************
  4506. ---
  4507. CREATE VIEW non_transcribed_region AS
  4508. SELECT
  4509. feature_id AS non_transcribed_region_id,
  4510. feature.*
  4511. FROM
  4512. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4513. WHERE cvterm.name = 'non_transcribed_region';
  4514. --- ************************************************
  4515. --- *** relation: u2_intron ***
  4516. --- *** relation type: VIEW ***
  4517. --- *** ***
  4518. --- *** A major type of spliceosomal intron spli ***
  4519. --- *** ced by the U2 spliceosome, that includes ***
  4520. --- *** U1, U2, U4/U6 and U5 snRNAs. ***
  4521. --- ************************************************
  4522. ---
  4523. CREATE VIEW u2_intron AS
  4524. SELECT
  4525. feature_id AS u2_intron_id,
  4526. feature.*
  4527. FROM
  4528. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4529. WHERE cvterm.name = 'U2_intron';
  4530. --- ************************************************
  4531. --- *** relation: primary_transcript ***
  4532. --- *** relation type: VIEW ***
  4533. --- *** ***
  4534. --- *** A transcript that in its initial state r ***
  4535. --- *** equires modification to be functional. ***
  4536. --- ************************************************
  4537. ---
  4538. CREATE VIEW primary_transcript AS
  4539. SELECT
  4540. feature_id AS primary_transcript_id,
  4541. feature.*
  4542. FROM
  4543. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4544. 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 = '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';
  4545. --- ************************************************
  4546. --- *** relation: ltr_retrotransposon ***
  4547. --- *** relation type: VIEW ***
  4548. --- *** ***
  4549. --- *** A retrotransposon flanked by long termin ***
  4550. --- *** al repeat sequences. ***
  4551. --- ************************************************
  4552. ---
  4553. CREATE VIEW ltr_retrotransposon AS
  4554. SELECT
  4555. feature_id AS ltr_retrotransposon_id,
  4556. feature.*
  4557. FROM
  4558. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4559. WHERE cvterm.name = 'RR_tract' OR cvterm.name = 'LTR_retrotransposon';
  4560. --- ************************************************
  4561. --- *** relation: intron ***
  4562. --- *** relation type: VIEW ***
  4563. --- *** ***
  4564. --- *** A segment of DNA that is transcribed, bu ***
  4565. --- *** t removed from within the transcript by ***
  4566. --- *** splicing together the sequences (exons) ***
  4567. --- *** on either side of it. ***
  4568. --- ************************************************
  4569. ---
  4570. CREATE VIEW intron AS
  4571. SELECT
  4572. feature_id AS intron_id,
  4573. feature.*
  4574. FROM
  4575. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4576. 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';
  4577. --- ************************************************
  4578. --- *** relation: non_ltr_retrotransposon ***
  4579. --- *** relation type: VIEW ***
  4580. --- *** ***
  4581. --- *** A retrotransposon without long terminal ***
  4582. --- *** repeat sequences. ***
  4583. --- ************************************************
  4584. ---
  4585. CREATE VIEW non_ltr_retrotransposon AS
  4586. SELECT
  4587. feature_id AS non_ltr_retrotransposon_id,
  4588. feature.*
  4589. FROM
  4590. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4591. WHERE cvterm.name = 'LINE_element' OR cvterm.name = 'SINE_element' OR cvterm.name = 'non_LTR_retrotransposon';
  4592. --- ************************************************
  4593. --- *** relation: five_prime_intron ***
  4594. --- *** relation type: VIEW ***
  4595. --- *** ***
  4596. --- ************************************************
  4597. ---
  4598. CREATE VIEW five_prime_intron AS
  4599. SELECT
  4600. feature_id AS five_prime_intron_id,
  4601. feature.*
  4602. FROM
  4603. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4604. WHERE cvterm.name = 'five_prime_intron';
  4605. --- ************************************************
  4606. --- *** relation: interior_intron ***
  4607. --- *** relation type: VIEW ***
  4608. --- *** ***
  4609. --- ************************************************
  4610. ---
  4611. CREATE VIEW interior_intron AS
  4612. SELECT
  4613. feature_id AS interior_intron_id,
  4614. feature.*
  4615. FROM
  4616. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4617. WHERE cvterm.name = 'interior_intron';
  4618. --- ************************************************
  4619. --- *** relation: three_prime_intron ***
  4620. --- *** relation type: VIEW ***
  4621. --- *** ***
  4622. --- ************************************************
  4623. ---
  4624. CREATE VIEW three_prime_intron AS
  4625. SELECT
  4626. feature_id AS three_prime_intron_id,
  4627. feature.*
  4628. FROM
  4629. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4630. WHERE cvterm.name = 'three_prime_intron';
  4631. --- ************************************************
  4632. --- *** relation: rflp_fragment ***
  4633. --- *** relation type: VIEW ***
  4634. --- *** ***
  4635. --- *** A DNA fragment used as a reagent to dete ***
  4636. --- *** ct the polymorphic genomic loci by hybri ***
  4637. --- *** dizing against the genomic DNA digested ***
  4638. --- *** with a given restriction enzyme. ***
  4639. --- ************************************************
  4640. ---
  4641. CREATE VIEW rflp_fragment AS
  4642. SELECT
  4643. feature_id AS rflp_fragment_id,
  4644. feature.*
  4645. FROM
  4646. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4647. WHERE cvterm.name = 'RFLP_fragment';
  4648. --- ************************************************
  4649. --- *** relation: line_element ***
  4650. --- *** relation type: VIEW ***
  4651. --- *** ***
  4652. --- *** A dispersed repeat family with many copi ***
  4653. --- *** es, each from 1 to 6 kb long. New elemen ***
  4654. --- *** ts are generated by retroposition of a t ***
  4655. --- *** ranscribed copy. Typically the LINE cont ***
  4656. --- *** ains 2 ORF's one of which is reverse tra ***
  4657. --- *** nscriptase, and 3'and 5' direct repeats. ***
  4658. --- ************************************************
  4659. ---
  4660. CREATE VIEW line_element AS
  4661. SELECT
  4662. feature_id AS line_element_id,
  4663. feature.*
  4664. FROM
  4665. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4666. WHERE cvterm.name = 'LINE_element';
  4667. --- ************************************************
  4668. --- *** relation: coding_exon ***
  4669. --- *** relation type: VIEW ***
  4670. --- *** ***
  4671. --- *** An exon whereby at least one base is par ***
  4672. --- *** t of a codon (here, 'codon'nis inclusive ***
  4673. --- *** of the stop_codon). ***
  4674. --- ************************************************
  4675. ---
  4676. CREATE VIEW coding_exon AS
  4677. SELECT
  4678. feature_id AS coding_exon_id,
  4679. feature.*
  4680. FROM
  4681. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4682. 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';
  4683. --- ************************************************
  4684. --- *** relation: five_prime_coding_exon_coding_region ***
  4685. --- *** relation type: VIEW ***
  4686. --- *** ***
  4687. --- *** The sequence of the five_prime_coding_ex ***
  4688. --- *** on that codes for protein. ***
  4689. --- ************************************************
  4690. ---
  4691. CREATE VIEW five_prime_coding_exon_coding_region AS
  4692. SELECT
  4693. feature_id AS five_prime_coding_exon_coding_region_id,
  4694. feature.*
  4695. FROM
  4696. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4697. WHERE cvterm.name = 'five_prime_coding_exon_coding_region';
  4698. --- ************************************************
  4699. --- *** relation: three_prime_coding_exon_coding_region ***
  4700. --- *** relation type: VIEW ***
  4701. --- *** ***
  4702. --- *** The sequence of the three_prime_coding_e ***
  4703. --- *** xon that codes for protein. ***
  4704. --- ************************************************
  4705. ---
  4706. CREATE VIEW three_prime_coding_exon_coding_region AS
  4707. SELECT
  4708. feature_id AS three_prime_coding_exon_coding_region_id,
  4709. feature.*
  4710. FROM
  4711. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4712. WHERE cvterm.name = 'three_prime_coding exon_coding_region';
  4713. --- ************************************************
  4714. --- *** relation: noncoding_exon ***
  4715. --- *** relation type: VIEW ***
  4716. --- *** ***
  4717. --- *** An exon that does not contain any codons ***
  4718. --- *** . ***
  4719. --- ************************************************
  4720. ---
  4721. CREATE VIEW noncoding_exon AS
  4722. SELECT
  4723. feature_id AS noncoding_exon_id,
  4724. feature.*
  4725. FROM
  4726. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4727. WHERE cvterm.name = 'three_prime_noncoding_exon' OR cvterm.name = 'five_prime_noncoding_exon' OR cvterm.name = 'noncoding_exon';
  4728. --- ************************************************
  4729. --- *** relation: translocation ***
  4730. --- *** relation type: VIEW ***
  4731. --- *** ***
  4732. --- *** A region of nucleotide sequence that has ***
  4733. --- *** translocated to a new position. ***
  4734. --- ************************************************
  4735. ---
  4736. CREATE VIEW translocation AS
  4737. SELECT
  4738. feature_id AS translocation_id,
  4739. feature.*
  4740. FROM
  4741. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4742. WHERE cvterm.name = 'translocation';
  4743. --- ************************************************
  4744. --- *** relation: five_prime_coding_exon ***
  4745. --- *** relation type: VIEW ***
  4746. --- *** ***
  4747. --- *** The 5' most coding exon. ***
  4748. --- ************************************************
  4749. ---
  4750. CREATE VIEW five_prime_coding_exon AS
  4751. SELECT
  4752. feature_id AS five_prime_coding_exon_id,
  4753. feature.*
  4754. FROM
  4755. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4756. WHERE cvterm.name = 'five_prime_coding_exon';
  4757. --- ************************************************
  4758. --- *** relation: interior_exon ***
  4759. --- *** relation type: VIEW ***
  4760. --- *** ***
  4761. --- *** An exon that is bounded by 5' and 3' spl ***
  4762. --- *** ice sites. ***
  4763. --- ************************************************
  4764. ---
  4765. CREATE VIEW interior_exon AS
  4766. SELECT
  4767. feature_id AS interior_exon_id,
  4768. feature.*
  4769. FROM
  4770. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4771. WHERE cvterm.name = 'interior_exon';
  4772. --- ************************************************
  4773. --- *** relation: three_prime_coding_exon ***
  4774. --- *** relation type: VIEW ***
  4775. --- *** ***
  4776. --- *** The coding exon that is most 3-prime on ***
  4777. --- *** a given transcript. ***
  4778. --- ************************************************
  4779. ---
  4780. CREATE VIEW three_prime_coding_exon AS
  4781. SELECT
  4782. feature_id AS three_prime_coding_exon_id,
  4783. feature.*
  4784. FROM
  4785. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4786. WHERE cvterm.name = 'three_prime_coding_exon';
  4787. --- ************************************************
  4788. --- *** relation: utr ***
  4789. --- *** relation type: VIEW ***
  4790. --- *** ***
  4791. --- *** Messenger RNA sequences that are untrans ***
  4792. --- *** lated and lie five prime or three prime ***
  4793. --- *** to sequences which are translated. ***
  4794. --- ************************************************
  4795. ---
  4796. CREATE VIEW utr AS
  4797. SELECT
  4798. feature_id AS utr_id,
  4799. feature.*
  4800. FROM
  4801. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4802. 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';
  4803. --- ************************************************
  4804. --- *** relation: five_prime_utr ***
  4805. --- *** relation type: VIEW ***
  4806. --- *** ***
  4807. --- *** A region at the 5' end of a mature trans ***
  4808. --- *** cript (preceding the initiation codon) t ***
  4809. --- *** hat is not translated into a protein. ***
  4810. --- ************************************************
  4811. ---
  4812. CREATE VIEW five_prime_utr AS
  4813. SELECT
  4814. feature_id AS five_prime_utr_id,
  4815. feature.*
  4816. FROM
  4817. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4818. WHERE cvterm.name = 'five_prime_UTR';
  4819. --- ************************************************
  4820. --- *** relation: three_prime_utr ***
  4821. --- *** relation type: VIEW ***
  4822. --- *** ***
  4823. --- *** A region at the 3' end of a mature trans ***
  4824. --- *** cript (following the stop codon) that is ***
  4825. --- *** not translated into a protein. ***
  4826. --- ************************************************
  4827. ---
  4828. CREATE VIEW three_prime_utr AS
  4829. SELECT
  4830. feature_id AS three_prime_utr_id,
  4831. feature.*
  4832. FROM
  4833. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4834. WHERE cvterm.name = 'three_prime_UTR';
  4835. --- ************************************************
  4836. --- *** relation: sine_element ***
  4837. --- *** relation type: VIEW ***
  4838. --- *** ***
  4839. --- *** A repetitive element, a few hundred base ***
  4840. --- *** pairs long, that is dispersed throughou ***
  4841. --- *** t the genome. A common human SINE is the ***
  4842. --- *** Alu element. ***
  4843. --- ************************************************
  4844. ---
  4845. CREATE VIEW sine_element AS
  4846. SELECT
  4847. feature_id AS sine_element_id,
  4848. feature.*
  4849. FROM
  4850. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4851. WHERE cvterm.name = 'SINE_element';
  4852. --- ************************************************
  4853. --- *** relation: simple_sequence_length_variation ***
  4854. --- *** relation type: VIEW ***
  4855. --- *** ***
  4856. --- ************************************************
  4857. ---
  4858. CREATE VIEW simple_sequence_length_variation AS
  4859. SELECT
  4860. feature_id AS simple_sequence_length_variation_id,
  4861. feature.*
  4862. FROM
  4863. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4864. WHERE cvterm.name = 'simple_sequence_length_variation';
  4865. --- ************************************************
  4866. --- *** relation: terminal_inverted_repeat_element ***
  4867. --- *** relation type: VIEW ***
  4868. --- *** ***
  4869. --- *** A DNA transposable element defined as ha ***
  4870. --- *** ving termini with perfect, or nearly per ***
  4871. --- *** fect short inverted repeats, generally 1 ***
  4872. --- *** 0 - 40 nucleotides long. ***
  4873. --- ************************************************
  4874. ---
  4875. CREATE VIEW terminal_inverted_repeat_element AS
  4876. SELECT
  4877. feature_id AS terminal_inverted_repeat_element_id,
  4878. feature.*
  4879. FROM
  4880. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4881. WHERE cvterm.name = 'MITE' OR cvterm.name = 'insertion_sequence' OR cvterm.name = 'polinton' OR cvterm.name = 'terminal_inverted_repeat_element';
  4882. --- ************************************************
  4883. --- *** relation: rrna_primary_transcript ***
  4884. --- *** relation type: VIEW ***
  4885. --- *** ***
  4886. --- *** A primary transcript encoding a ribosoma ***
  4887. --- *** l RNA. ***
  4888. --- ************************************************
  4889. ---
  4890. CREATE VIEW rrna_primary_transcript AS
  4891. SELECT
  4892. feature_id AS rrna_primary_transcript_id,
  4893. feature.*
  4894. FROM
  4895. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4896. WHERE cvterm.name = 'rRNA_small_subunit_primary_transcript' OR cvterm.name = 'rRNA_large_subunit_primary_transcript' OR cvterm.name = 'rRNA_primary_transcript';
  4897. --- ************************************************
  4898. --- *** relation: trna_primary_transcript ***
  4899. --- *** relation type: VIEW ***
  4900. --- *** ***
  4901. --- *** A primary transcript encoding a transfer ***
  4902. --- *** RNA (SO:0000253). ***
  4903. --- ************************************************
  4904. ---
  4905. CREATE VIEW trna_primary_transcript AS
  4906. SELECT
  4907. feature_id AS trna_primary_transcript_id,
  4908. feature.*
  4909. FROM
  4910. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4911. 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';
  4912. --- ************************************************
  4913. --- *** relation: alanine_trna_primary_transcript ***
  4914. --- *** relation type: VIEW ***
  4915. --- *** ***
  4916. --- *** A primary transcript encoding alanyl tRN ***
  4917. --- *** A. ***
  4918. --- ************************************************
  4919. ---
  4920. CREATE VIEW alanine_trna_primary_transcript AS
  4921. SELECT
  4922. feature_id AS alanine_trna_primary_transcript_id,
  4923. feature.*
  4924. FROM
  4925. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4926. WHERE cvterm.name = 'alanine_tRNA_primary_transcript';
  4927. --- ************************************************
  4928. --- *** relation: arg_trna_primary_transcript ***
  4929. --- *** relation type: VIEW ***
  4930. --- *** ***
  4931. --- *** A primary transcript encoding arginyl tR ***
  4932. --- *** NA (SO:0000255). ***
  4933. --- ************************************************
  4934. ---
  4935. CREATE VIEW arg_trna_primary_transcript AS
  4936. SELECT
  4937. feature_id AS arg_trna_primary_transcript_id,
  4938. feature.*
  4939. FROM
  4940. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4941. WHERE cvterm.name = 'arginine_tRNA_primary_transcript';
  4942. --- ************************************************
  4943. --- *** relation: asparagine_trna_primary_transcript ***
  4944. --- *** relation type: VIEW ***
  4945. --- *** ***
  4946. --- *** A primary transcript encoding asparaginy ***
  4947. --- *** l tRNA (SO:0000256). ***
  4948. --- ************************************************
  4949. ---
  4950. CREATE VIEW asparagine_trna_primary_transcript AS
  4951. SELECT
  4952. feature_id AS asparagine_trna_primary_transcript_id,
  4953. feature.*
  4954. FROM
  4955. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4956. WHERE cvterm.name = 'asparagine_tRNA_primary_transcript';
  4957. --- ************************************************
  4958. --- *** relation: aspartic_acid_trna_primary_transcript ***
  4959. --- *** relation type: VIEW ***
  4960. --- *** ***
  4961. --- *** A primary transcript encoding aspartyl t ***
  4962. --- *** RNA (SO:0000257). ***
  4963. --- ************************************************
  4964. ---
  4965. CREATE VIEW aspartic_acid_trna_primary_transcript AS
  4966. SELECT
  4967. feature_id AS aspartic_acid_trna_primary_transcript_id,
  4968. feature.*
  4969. FROM
  4970. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4971. WHERE cvterm.name = 'aspartic_acid_tRNA_primary_transcript';
  4972. --- ************************************************
  4973. --- *** relation: cysteine_trna_primary_transcript ***
  4974. --- *** relation type: VIEW ***
  4975. --- *** ***
  4976. --- *** A primary transcript encoding cysteinyl ***
  4977. --- *** tRNA (SO:0000258). ***
  4978. --- ************************************************
  4979. ---
  4980. CREATE VIEW cysteine_trna_primary_transcript AS
  4981. SELECT
  4982. feature_id AS cysteine_trna_primary_transcript_id,
  4983. feature.*
  4984. FROM
  4985. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4986. WHERE cvterm.name = 'cysteine_tRNA_primary_transcript';
  4987. --- ************************************************
  4988. --- *** relation: glutamic_acid_trna_primary_transcript ***
  4989. --- *** relation type: VIEW ***
  4990. --- *** ***
  4991. --- *** A primary transcript encoding glutaminyl ***
  4992. --- *** tRNA (SO:0000260). ***
  4993. --- ************************************************
  4994. ---
  4995. CREATE VIEW glutamic_acid_trna_primary_transcript AS
  4996. SELECT
  4997. feature_id AS glutamic_acid_trna_primary_transcript_id,
  4998. feature.*
  4999. FROM
  5000. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5001. WHERE cvterm.name = 'glutamic_acid_tRNA_primary_transcript';
  5002. --- ************************************************
  5003. --- *** relation: glutamine_trna_primary_transcript ***
  5004. --- *** relation type: VIEW ***
  5005. --- *** ***
  5006. --- *** A primary transcript encoding glutamyl t ***
  5007. --- *** RNA (SO:0000260). ***
  5008. --- ************************************************
  5009. ---
  5010. CREATE VIEW glutamine_trna_primary_transcript AS
  5011. SELECT
  5012. feature_id AS glutamine_trna_primary_transcript_id,
  5013. feature.*
  5014. FROM
  5015. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5016. WHERE cvterm.name = 'glutamine_tRNA_primary_transcript';
  5017. --- ************************************************
  5018. --- *** relation: glycine_trna_primary_transcript ***
  5019. --- *** relation type: VIEW ***
  5020. --- *** ***
  5021. --- *** A primary transcript encoding glycyl tRN ***
  5022. --- *** A (SO:0000263). ***
  5023. --- ************************************************
  5024. ---
  5025. CREATE VIEW glycine_trna_primary_transcript AS
  5026. SELECT
  5027. feature_id AS glycine_trna_primary_transcript_id,
  5028. feature.*
  5029. FROM
  5030. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5031. WHERE cvterm.name = 'glycine_tRNA_primary_transcript';
  5032. --- ************************************************
  5033. --- *** relation: histidine_trna_primary_transcript ***
  5034. --- *** relation type: VIEW ***
  5035. --- *** ***
  5036. --- *** A primary transcript encoding histidyl t ***
  5037. --- *** RNA (SO:0000262). ***
  5038. --- ************************************************
  5039. ---
  5040. CREATE VIEW histidine_trna_primary_transcript AS
  5041. SELECT
  5042. feature_id AS histidine_trna_primary_transcript_id,
  5043. feature.*
  5044. FROM
  5045. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5046. WHERE cvterm.name = 'histidine_tRNA_primary_transcript';
  5047. --- ************************************************
  5048. --- *** relation: isoleucine_trna_primary_transcript ***
  5049. --- *** relation type: VIEW ***
  5050. --- *** ***
  5051. --- *** A primary transcript encoding isoleucyl ***
  5052. --- *** tRNA (SO:0000263). ***
  5053. --- ************************************************
  5054. ---
  5055. CREATE VIEW isoleucine_trna_primary_transcript AS
  5056. SELECT
  5057. feature_id AS isoleucine_trna_primary_transcript_id,
  5058. feature.*
  5059. FROM
  5060. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5061. WHERE cvterm.name = 'isoleucine_tRNA_primary_transcript';
  5062. --- ************************************************
  5063. --- *** relation: leucine_trna_primary_transcript ***
  5064. --- *** relation type: VIEW ***
  5065. --- *** ***
  5066. --- *** A primary transcript encoding leucyl tRN ***
  5067. --- *** A (SO:0000264). ***
  5068. --- ************************************************
  5069. ---
  5070. CREATE VIEW leucine_trna_primary_transcript AS
  5071. SELECT
  5072. feature_id AS leucine_trna_primary_transcript_id,
  5073. feature.*
  5074. FROM
  5075. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5076. WHERE cvterm.name = 'leucine_tRNA_primary_transcript';
  5077. --- ************************************************
  5078. --- *** relation: lysine_trna_primary_transcript ***
  5079. --- *** relation type: VIEW ***
  5080. --- *** ***
  5081. --- *** A primary transcript encoding lysyl tRNA ***
  5082. --- *** (SO:0000265). ***
  5083. --- ************************************************
  5084. ---
  5085. CREATE VIEW lysine_trna_primary_transcript AS
  5086. SELECT
  5087. feature_id AS lysine_trna_primary_transcript_id,
  5088. feature.*
  5089. FROM
  5090. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5091. WHERE cvterm.name = 'lysine_tRNA_primary_transcript';
  5092. --- ************************************************
  5093. --- *** relation: methionine_trna_primary_transcript ***
  5094. --- *** relation type: VIEW ***
  5095. --- *** ***
  5096. --- *** A primary transcript encoding methionyl ***
  5097. --- *** tRNA (SO:0000266). ***
  5098. --- ************************************************
  5099. ---
  5100. CREATE VIEW methionine_trna_primary_transcript AS
  5101. SELECT
  5102. feature_id AS methionine_trna_primary_transcript_id,
  5103. feature.*
  5104. FROM
  5105. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5106. WHERE cvterm.name = 'methionine_tRNA_primary_transcript';
  5107. --- ************************************************
  5108. --- *** relation: phe_trna_primary_transcript ***
  5109. --- *** relation type: VIEW ***
  5110. --- *** ***
  5111. --- *** A primary transcript encoding phenylalan ***
  5112. --- *** yl tRNA (SO:0000267). ***
  5113. --- ************************************************
  5114. ---
  5115. CREATE VIEW phe_trna_primary_transcript AS
  5116. SELECT
  5117. feature_id AS phe_trna_primary_transcript_id,
  5118. feature.*
  5119. FROM
  5120. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5121. WHERE cvterm.name = 'phenylalanine_tRNA_primary_transcript';
  5122. --- ************************************************
  5123. --- *** relation: proline_trna_primary_transcript ***
  5124. --- *** relation type: VIEW ***
  5125. --- *** ***
  5126. --- *** A primary transcript encoding prolyl tRN ***
  5127. --- *** A (SO:0000268). ***
  5128. --- ************************************************
  5129. ---
  5130. CREATE VIEW proline_trna_primary_transcript AS
  5131. SELECT
  5132. feature_id AS proline_trna_primary_transcript_id,
  5133. feature.*
  5134. FROM
  5135. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5136. WHERE cvterm.name = 'proline_tRNA_primary_transcript';
  5137. --- ************************************************
  5138. --- *** relation: serine_trna_primary_transcript ***
  5139. --- *** relation type: VIEW ***
  5140. --- *** ***
  5141. --- *** A primary transcript encoding seryl tRNA ***
  5142. --- *** (SO:000269). ***
  5143. --- ************************************************
  5144. ---
  5145. CREATE VIEW serine_trna_primary_transcript AS
  5146. SELECT
  5147. feature_id AS serine_trna_primary_transcript_id,
  5148. feature.*
  5149. FROM
  5150. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5151. WHERE cvterm.name = 'serine_tRNA_primary_transcript';
  5152. --- ************************************************
  5153. --- *** relation: thr_trna_primary_transcript ***
  5154. --- *** relation type: VIEW ***
  5155. --- *** ***
  5156. --- *** A primary transcript encoding threonyl t ***
  5157. --- *** RNA (SO:000270). ***
  5158. --- ************************************************
  5159. ---
  5160. CREATE VIEW thr_trna_primary_transcript AS
  5161. SELECT
  5162. feature_id AS thr_trna_primary_transcript_id,
  5163. feature.*
  5164. FROM
  5165. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5166. WHERE cvterm.name = 'threonine_tRNA_primary_transcript';
  5167. --- ************************************************
  5168. --- *** relation: try_trna_primary_transcript ***
  5169. --- *** relation type: VIEW ***
  5170. --- *** ***
  5171. --- *** A primary transcript encoding tryptophan ***
  5172. --- *** yl tRNA (SO:000271). ***
  5173. --- ************************************************
  5174. ---
  5175. CREATE VIEW try_trna_primary_transcript AS
  5176. SELECT
  5177. feature_id AS try_trna_primary_transcript_id,
  5178. feature.*
  5179. FROM
  5180. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5181. WHERE cvterm.name = 'tryptophan_tRNA_primary_transcript';
  5182. --- ************************************************
  5183. --- *** relation: tyrosine_trna_primary_transcript ***
  5184. --- *** relation type: VIEW ***
  5185. --- *** ***
  5186. --- *** A primary transcript encoding tyrosyl tR ***
  5187. --- *** NA (SO:000272). ***
  5188. --- ************************************************
  5189. ---
  5190. CREATE VIEW tyrosine_trna_primary_transcript AS
  5191. SELECT
  5192. feature_id AS tyrosine_trna_primary_transcript_id,
  5193. feature.*
  5194. FROM
  5195. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5196. WHERE cvterm.name = 'tyrosine_tRNA_primary_transcript';
  5197. --- ************************************************
  5198. --- *** relation: valine_trna_primary_transcript ***
  5199. --- *** relation type: VIEW ***
  5200. --- *** ***
  5201. --- *** A primary transcript encoding valyl tRNA ***
  5202. --- *** (SO:000273). ***
  5203. --- ************************************************
  5204. ---
  5205. CREATE VIEW valine_trna_primary_transcript AS
  5206. SELECT
  5207. feature_id AS valine_trna_primary_transcript_id,
  5208. feature.*
  5209. FROM
  5210. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5211. WHERE cvterm.name = 'valine_tRNA_primary_transcript';
  5212. --- ************************************************
  5213. --- *** relation: snrna_primary_transcript ***
  5214. --- *** relation type: VIEW ***
  5215. --- *** ***
  5216. --- *** A primary transcript encoding a small nu ***
  5217. --- *** clear RNA (SO:0000274). ***
  5218. --- ************************************************
  5219. ---
  5220. CREATE VIEW snrna_primary_transcript AS
  5221. SELECT
  5222. feature_id AS snrna_primary_transcript_id,
  5223. feature.*
  5224. FROM
  5225. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5226. WHERE cvterm.name = 'snRNA_primary_transcript';
  5227. --- ************************************************
  5228. --- *** relation: snorna_primary_transcript ***
  5229. --- *** relation type: VIEW ***
  5230. --- *** ***
  5231. --- *** A primary transcript encoding a small nu ***
  5232. --- *** cleolar mRNA (SO:0000275). ***
  5233. --- ************************************************
  5234. ---
  5235. CREATE VIEW snorna_primary_transcript AS
  5236. SELECT
  5237. feature_id AS snorna_primary_transcript_id,
  5238. feature.*
  5239. FROM
  5240. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5241. 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';
  5242. --- ************************************************
  5243. --- *** relation: mature_transcript ***
  5244. --- *** relation type: VIEW ***
  5245. --- *** ***
  5246. --- *** A transcript which has undergone the nec ***
  5247. --- *** essary modifications, if any, for its fu ***
  5248. --- *** nction. In eukaryotes this includes, for ***
  5249. --- *** example, processing of introns, cleavag ***
  5250. --- *** e, base modification, and modifications ***
  5251. --- *** to the 5' and/or the 3' ends, other than ***
  5252. --- *** addition of bases. In bacteria function ***
  5253. --- *** al mRNAs are usually not modified. ***
  5254. --- ************************************************
  5255. ---
  5256. CREATE VIEW mature_transcript AS
  5257. SELECT
  5258. feature_id AS mature_transcript_id,
  5259. feature.*
  5260. FROM
  5261. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5262. 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 = '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 = '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';
  5263. --- ************************************************
  5264. --- *** relation: mrna ***
  5265. --- *** relation type: VIEW ***
  5266. --- *** ***
  5267. --- *** Messenger RNA is the intermediate molecu ***
  5268. --- *** le between DNA and protein. It includes ***
  5269. --- *** UTR and coding sequences. It does not co ***
  5270. --- *** ntain introns. ***
  5271. --- ************************************************
  5272. ---
  5273. CREATE VIEW mrna AS
  5274. SELECT
  5275. feature_id AS mrna_id,
  5276. feature.*
  5277. FROM
  5278. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5279. 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 = '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';
  5280. --- ************************************************
  5281. --- *** relation: tf_binding_site ***
  5282. --- *** relation type: VIEW ***
  5283. --- *** ***
  5284. --- *** A region of a molecule that binds a TF c ***
  5285. --- *** omplex [GO:0005667]. ***
  5286. --- ************************************************
  5287. ---
  5288. CREATE VIEW tf_binding_site AS
  5289. SELECT
  5290. feature_id AS tf_binding_site_id,
  5291. feature.*
  5292. FROM
  5293. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5294. WHERE cvterm.name = 'INR_motif' OR cvterm.name = 'DPE_motif' OR cvterm.name = 'BRE_motif' OR cvterm.name = 'CAAT_signal' OR cvterm.name = 'TATA_box' OR cvterm.name = 'A_box' OR cvterm.name = 'B_box' OR cvterm.name = 'C_box' OR cvterm.name = 'DRE_motif' OR cvterm.name = 'E_box_motif' OR cvterm.name = 'MTE' OR cvterm.name = 'INR1_motif' OR cvterm.name = 'GAGA_motif' OR cvterm.name = 'octamer_motif' OR cvterm.name = 'TF_binding_site';
  5295. --- ************************************************
  5296. --- *** relation: orf ***
  5297. --- *** relation type: VIEW ***
  5298. --- *** ***
  5299. --- *** The inframe interval between the stop co ***
  5300. --- *** dons of a reading frame which when read ***
  5301. --- *** as sequential triplets, has the potentia ***
  5302. --- *** l of encoding a sequential string of ami ***
  5303. --- *** no acids. TER(NNN)nTER. ***
  5304. --- ************************************************
  5305. ---
  5306. CREATE VIEW orf AS
  5307. SELECT
  5308. feature_id AS orf_id,
  5309. feature.*
  5310. FROM
  5311. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5312. WHERE cvterm.name = 'mini_gene' OR cvterm.name = 'rescue_mini_gene' OR cvterm.name = 'ORF';
  5313. --- ************************************************
  5314. --- *** relation: transcript_attribute ***
  5315. --- *** relation type: VIEW ***
  5316. --- *** ***
  5317. --- ************************************************
  5318. ---
  5319. CREATE VIEW transcript_attribute AS
  5320. SELECT
  5321. feature_id AS transcript_attribute_id,
  5322. feature.*
  5323. FROM
  5324. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5325. 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';
  5326. --- ************************************************
  5327. --- *** relation: foldback_element ***
  5328. --- *** relation type: VIEW ***
  5329. --- *** ***
  5330. --- *** A transposable element with extensive se ***
  5331. --- *** condary structure, characterised by larg ***
  5332. --- *** e modular imperfect long inverted repeat ***
  5333. --- *** s. ***
  5334. --- ************************************************
  5335. ---
  5336. CREATE VIEW foldback_element AS
  5337. SELECT
  5338. feature_id AS foldback_element_id,
  5339. feature.*
  5340. FROM
  5341. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5342. WHERE cvterm.name = 'foldback_element';
  5343. --- ************************************************
  5344. --- *** relation: flanking_region ***
  5345. --- *** relation type: VIEW ***
  5346. --- *** ***
  5347. --- *** The sequences extending on either side o ***
  5348. --- *** f a specific region. ***
  5349. --- ************************************************
  5350. ---
  5351. CREATE VIEW flanking_region AS
  5352. SELECT
  5353. feature_id AS flanking_region_id,
  5354. feature.*
  5355. FROM
  5356. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5357. 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';
  5358. --- ************************************************
  5359. --- *** relation: chromosome_variation ***
  5360. --- *** relation type: VIEW ***
  5361. --- *** ***
  5362. --- ************************************************
  5363. ---
  5364. CREATE VIEW chromosome_variation AS
  5365. SELECT
  5366. feature_id AS chromosome_variation_id,
  5367. feature.*
  5368. FROM
  5369. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5370. 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 = 'chromosome_number_variation' OR cvterm.name = 'chromosome_structure_variation' 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 = 'transposition' OR cvterm.name = 'aneuploid_chromosome' OR cvterm.name = 'intrachromosomal_mutation' OR cvterm.name = 'interchromosomal_mutation' 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 = 'unorientated_intrachromosomal_transposition' OR cvterm.name = 'deficient_interchromosomal_transposition' OR cvterm.name = 'inverted_interchromosomal_transposition' OR cvterm.name = 'uninverted_interchromosomal_transposition' OR cvterm.name = 'unorientated_interchromosomal_transposition' OR cvterm.name = 'inversion_derived_aneuploid_chromosome' OR cvterm.name = 'chromosomal_deletion' OR cvterm.name = 'chromosomal_duplication' 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 = '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 = 'tandem_duplication' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unorientated_intrachromosomal_transposition' OR cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' 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_deletion' OR cvterm.name = 'chromosomal_inversion' OR cvterm.name = 'intrachromosomal_duplication' OR cvterm.name = 'ring_chromosome' OR cvterm.name = 'chromosome_fission' 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 = '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 = 'tandem_duplication' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unorientated_intrachromosomal_transposition' OR cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' 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 = 'deficient_interchromosomal_transposition' OR cvterm.name = 'inverted_interchromosomal_transposition' OR cvterm.name = 'uninverted_interchromosomal_transposition' OR cvterm.name = 'unorientated_interchromosomal_transposition' 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';
  5371. --- ************************************************
  5372. --- *** relation: internal_utr ***
  5373. --- *** relation type: VIEW ***
  5374. --- *** ***
  5375. --- *** A UTR bordered by the terminal and initi ***
  5376. --- *** al codons of two CDSs in a polycistronic ***
  5377. --- *** transcript. Every UTR is either 5', 3' ***
  5378. --- *** or internal. ***
  5379. --- ************************************************
  5380. ---
  5381. CREATE VIEW internal_utr AS
  5382. SELECT
  5383. feature_id AS internal_utr_id,
  5384. feature.*
  5385. FROM
  5386. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5387. WHERE cvterm.name = 'internal_UTR';
  5388. --- ************************************************
  5389. --- *** relation: untranslated_region_polycistronic_mrna ***
  5390. --- *** relation type: VIEW ***
  5391. --- *** ***
  5392. --- *** The untranslated sequence separating the ***
  5393. --- *** 'cistrons' of multicistronic mRNA. ***
  5394. --- ************************************************
  5395. ---
  5396. CREATE VIEW untranslated_region_polycistronic_mrna AS
  5397. SELECT
  5398. feature_id AS untranslated_region_polycistronic_mrna_id,
  5399. feature.*
  5400. FROM
  5401. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5402. WHERE cvterm.name = 'untranslated_region_polycistronic_mRNA';
  5403. --- ************************************************
  5404. --- *** relation: internal_ribosome_entry_site ***
  5405. --- *** relation type: VIEW ***
  5406. --- *** ***
  5407. --- *** Sequence element that recruits a ribosom ***
  5408. --- *** al subunit to internal mRNA for translat ***
  5409. --- *** ion initiation. ***
  5410. --- ************************************************
  5411. ---
  5412. CREATE VIEW internal_ribosome_entry_site AS
  5413. SELECT
  5414. feature_id AS internal_ribosome_entry_site_id,
  5415. feature.*
  5416. FROM
  5417. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5418. WHERE cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'internal_ribosome_entry_site';
  5419. --- ************************************************
  5420. --- *** relation: polyadenylated ***
  5421. --- *** relation type: VIEW ***
  5422. --- *** ***
  5423. --- *** A attribute describing the addition of a ***
  5424. --- *** poly A tail to the 3' end of a mRNA mol ***
  5425. --- *** ecule. ***
  5426. --- ************************************************
  5427. ---
  5428. CREATE VIEW polyadenylated AS
  5429. SELECT
  5430. feature_id AS polyadenylated_id,
  5431. feature.*
  5432. FROM
  5433. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5434. WHERE cvterm.name = 'polyadenylated';
  5435. --- ************************************************
  5436. --- *** relation: sequence_length_variation ***
  5437. --- *** relation type: VIEW ***
  5438. --- *** ***
  5439. --- ************************************************
  5440. ---
  5441. CREATE VIEW sequence_length_variation AS
  5442. SELECT
  5443. feature_id AS sequence_length_variation_id,
  5444. feature.*
  5445. FROM
  5446. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5447. WHERE cvterm.name = 'simple_sequence_length_variation' OR cvterm.name = 'sequence_length_variation';
  5448. --- ************************************************
  5449. --- *** relation: modified_rna_base_feature ***
  5450. --- *** relation type: VIEW ***
  5451. --- *** ***
  5452. --- *** A post_transcriptionally modified base. ***
  5453. --- ************************************************
  5454. ---
  5455. CREATE VIEW modified_rna_base_feature AS
  5456. SELECT
  5457. feature_id AS modified_rna_base_feature_id,
  5458. feature.*
  5459. FROM
  5460. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5461. 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';
  5462. --- ************************************************
  5463. --- *** relation: rrna ***
  5464. --- *** relation type: VIEW ***
  5465. --- *** ***
  5466. --- *** RNA that comprises part of a ribosome, a ***
  5467. --- *** nd that can provide both structural scaf ***
  5468. --- *** folding and catalytic activity. ***
  5469. --- ************************************************
  5470. ---
  5471. CREATE VIEW rrna AS
  5472. SELECT
  5473. feature_id AS rrna_id,
  5474. feature.*
  5475. FROM
  5476. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5477. 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';
  5478. --- ************************************************
  5479. --- *** relation: trna ***
  5480. --- *** relation type: VIEW ***
  5481. --- *** ***
  5482. --- *** Transfer RNA (tRNA) molecules are approx ***
  5483. --- *** imately 80 nucleotides in length. Their ***
  5484. --- *** secondary structure includes four short ***
  5485. --- *** double-helical elements and three loops ***
  5486. --- *** (D, anti-codon, and T loops). Further hy ***
  5487. --- *** drogen bonds mediate the characteristic ***
  5488. --- *** L-shaped molecular structure. Transfer R ***
  5489. --- *** NAs have two regions of fundamental func ***
  5490. --- *** tional importance: the anti-codon, which ***
  5491. --- *** is responsible for specific mRNA codon ***
  5492. --- *** recognition, and the 3' end, to which th ***
  5493. --- *** e tRNA's corresponding amino acid is att ***
  5494. --- *** ached (by aminoacyl-tRNA synthetases). T ***
  5495. --- *** ransfer RNAs cope with the degeneracy of ***
  5496. --- *** the genetic code in two manners: having ***
  5497. --- *** more than one tRNA (with a specific ant ***
  5498. --- *** i-codon) for a particular amino acid; an ***
  5499. --- *** d 'wobble' base-pairing, i.e. permitting ***
  5500. --- *** non-standard base-pairing at the 3rd an ***
  5501. --- *** ti-codon position. ***
  5502. --- ************************************************
  5503. ---
  5504. CREATE VIEW trna AS
  5505. SELECT
  5506. feature_id AS trna_id,
  5507. feature.*
  5508. FROM
  5509. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5510. 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';
  5511. --- ************************************************
  5512. --- *** relation: alanyl_trna ***
  5513. --- *** relation type: VIEW ***
  5514. --- *** ***
  5515. --- *** A tRNA sequence that has an alanine anti ***
  5516. --- *** codon, and a 3' alanine binding region. ***
  5517. --- ************************************************
  5518. ---
  5519. CREATE VIEW alanyl_trna AS
  5520. SELECT
  5521. feature_id AS alanyl_trna_id,
  5522. feature.*
  5523. FROM
  5524. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5525. WHERE cvterm.name = 'alanyl_tRNA';
  5526. --- ************************************************
  5527. --- *** relation: rrna_small_subunit_primary_transcript ***
  5528. --- *** relation type: VIEW ***
  5529. --- *** ***
  5530. --- *** A primary transcript encoding a small ri ***
  5531. --- *** bosomal subunit RNA. ***
  5532. --- ************************************************
  5533. ---
  5534. CREATE VIEW rrna_small_subunit_primary_transcript AS
  5535. SELECT
  5536. feature_id AS rrna_small_subunit_primary_transcript_id,
  5537. feature.*
  5538. FROM
  5539. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5540. WHERE cvterm.name = 'rRNA_small_subunit_primary_transcript';
  5541. --- ************************************************
  5542. --- *** relation: asparaginyl_trna ***
  5543. --- *** relation type: VIEW ***
  5544. --- *** ***
  5545. --- *** A tRNA sequence that has an asparagine a ***
  5546. --- *** nticodon, and a 3' asparagine binding re ***
  5547. --- *** gion. ***
  5548. --- ************************************************
  5549. ---
  5550. CREATE VIEW asparaginyl_trna AS
  5551. SELECT
  5552. feature_id AS asparaginyl_trna_id,
  5553. feature.*
  5554. FROM
  5555. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5556. WHERE cvterm.name = 'asparaginyl_tRNA';
  5557. --- ************************************************
  5558. --- *** relation: aspartyl_trna ***
  5559. --- *** relation type: VIEW ***
  5560. --- *** ***
  5561. --- *** A tRNA sequence that has an aspartic aci ***
  5562. --- *** d anticodon, and a 3' aspartic acid bind ***
  5563. --- *** ing region. ***
  5564. --- ************************************************
  5565. ---
  5566. CREATE VIEW aspartyl_trna AS
  5567. SELECT
  5568. feature_id AS aspartyl_trna_id,
  5569. feature.*
  5570. FROM
  5571. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5572. WHERE cvterm.name = 'aspartyl_tRNA';
  5573. --- ************************************************
  5574. --- *** relation: cysteinyl_trna ***
  5575. --- *** relation type: VIEW ***
  5576. --- *** ***
  5577. --- *** A tRNA sequence that has a cysteine anti ***
  5578. --- *** codon, and a 3' cysteine binding region. ***
  5579. --- ************************************************
  5580. ---
  5581. CREATE VIEW cysteinyl_trna AS
  5582. SELECT
  5583. feature_id AS cysteinyl_trna_id,
  5584. feature.*
  5585. FROM
  5586. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5587. WHERE cvterm.name = 'cysteinyl_tRNA';
  5588. --- ************************************************
  5589. --- *** relation: glutaminyl_trna ***
  5590. --- *** relation type: VIEW ***
  5591. --- *** ***
  5592. --- *** A tRNA sequence that has a glutamine ant ***
  5593. --- *** icodon, and a 3' glutamine binding regio ***
  5594. --- *** n. ***
  5595. --- ************************************************
  5596. ---
  5597. CREATE VIEW glutaminyl_trna AS
  5598. SELECT
  5599. feature_id AS glutaminyl_trna_id,
  5600. feature.*
  5601. FROM
  5602. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5603. WHERE cvterm.name = 'glutaminyl_tRNA';
  5604. --- ************************************************
  5605. --- *** relation: glutamyl_trna ***
  5606. --- *** relation type: VIEW ***
  5607. --- *** ***
  5608. --- *** A tRNA sequence that has a glutamic acid ***
  5609. --- *** anticodon, and a 3' glutamic acid bindi ***
  5610. --- *** ng region. ***
  5611. --- ************************************************
  5612. ---
  5613. CREATE VIEW glutamyl_trna AS
  5614. SELECT
  5615. feature_id AS glutamyl_trna_id,
  5616. feature.*
  5617. FROM
  5618. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5619. WHERE cvterm.name = 'glutamyl_tRNA';
  5620. --- ************************************************
  5621. --- *** relation: glycyl_trna ***
  5622. --- *** relation type: VIEW ***
  5623. --- *** ***
  5624. --- *** A tRNA sequence that has a glycine antic ***
  5625. --- *** odon, and a 3' glycine binding region. ***
  5626. --- ************************************************
  5627. ---
  5628. CREATE VIEW glycyl_trna AS
  5629. SELECT
  5630. feature_id AS glycyl_trna_id,
  5631. feature.*
  5632. FROM
  5633. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5634. WHERE cvterm.name = 'glycyl_tRNA';
  5635. --- ************************************************
  5636. --- *** relation: histidyl_trna ***
  5637. --- *** relation type: VIEW ***
  5638. --- *** ***
  5639. --- *** A tRNA sequence that has a histidine ant ***
  5640. --- *** icodon, and a 3' histidine binding regio ***
  5641. --- *** n. ***
  5642. --- ************************************************
  5643. ---
  5644. CREATE VIEW histidyl_trna AS
  5645. SELECT
  5646. feature_id AS histidyl_trna_id,
  5647. feature.*
  5648. FROM
  5649. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5650. WHERE cvterm.name = 'histidyl_tRNA';
  5651. --- ************************************************
  5652. --- *** relation: isoleucyl_trna ***
  5653. --- *** relation type: VIEW ***
  5654. --- *** ***
  5655. --- *** A tRNA sequence that has an isoleucine a ***
  5656. --- *** nticodon, and a 3' isoleucine binding re ***
  5657. --- *** gion. ***
  5658. --- ************************************************
  5659. ---
  5660. CREATE VIEW isoleucyl_trna AS
  5661. SELECT
  5662. feature_id AS isoleucyl_trna_id,
  5663. feature.*
  5664. FROM
  5665. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5666. WHERE cvterm.name = 'isoleucyl_tRNA';
  5667. --- ************************************************
  5668. --- *** relation: leucyl_trna ***
  5669. --- *** relation type: VIEW ***
  5670. --- *** ***
  5671. --- *** A tRNA sequence that has a leucine antic ***
  5672. --- *** odon, and a 3' leucine binding region. ***
  5673. --- ************************************************
  5674. ---
  5675. CREATE VIEW leucyl_trna AS
  5676. SELECT
  5677. feature_id AS leucyl_trna_id,
  5678. feature.*
  5679. FROM
  5680. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5681. WHERE cvterm.name = 'leucyl_tRNA';
  5682. --- ************************************************
  5683. --- *** relation: lysyl_trna ***
  5684. --- *** relation type: VIEW ***
  5685. --- *** ***
  5686. --- *** A tRNA sequence that has a lysine antico ***
  5687. --- *** don, and a 3' lysine binding region. ***
  5688. --- ************************************************
  5689. ---
  5690. CREATE VIEW lysyl_trna AS
  5691. SELECT
  5692. feature_id AS lysyl_trna_id,
  5693. feature.*
  5694. FROM
  5695. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5696. WHERE cvterm.name = 'lysyl_tRNA';
  5697. --- ************************************************
  5698. --- *** relation: methionyl_trna ***
  5699. --- *** relation type: VIEW ***
  5700. --- *** ***
  5701. --- *** A tRNA sequence that has a methionine an ***
  5702. --- *** ticodon, and a 3' methionine binding reg ***
  5703. --- *** ion. ***
  5704. --- ************************************************
  5705. ---
  5706. CREATE VIEW methionyl_trna AS
  5707. SELECT
  5708. feature_id AS methionyl_trna_id,
  5709. feature.*
  5710. FROM
  5711. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5712. WHERE cvterm.name = 'methionyl_tRNA';
  5713. --- ************************************************
  5714. --- *** relation: phenylalanyl_trna ***
  5715. --- *** relation type: VIEW ***
  5716. --- *** ***
  5717. --- *** A tRNA sequence that has a phenylalanine ***
  5718. --- *** anticodon, and a 3' phenylalanine bindi ***
  5719. --- *** ng region. ***
  5720. --- ************************************************
  5721. ---
  5722. CREATE VIEW phenylalanyl_trna AS
  5723. SELECT
  5724. feature_id AS phenylalanyl_trna_id,
  5725. feature.*
  5726. FROM
  5727. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5728. WHERE cvterm.name = 'phenylalanyl_tRNA';
  5729. --- ************************************************
  5730. --- *** relation: prolyl_trna ***
  5731. --- *** relation type: VIEW ***
  5732. --- *** ***
  5733. --- *** A tRNA sequence that has a proline antic ***
  5734. --- *** odon, and a 3' proline binding region. ***
  5735. --- ************************************************
  5736. ---
  5737. CREATE VIEW prolyl_trna AS
  5738. SELECT
  5739. feature_id AS prolyl_trna_id,
  5740. feature.*
  5741. FROM
  5742. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5743. WHERE cvterm.name = 'prolyl_tRNA';
  5744. --- ************************************************
  5745. --- *** relation: seryl_trna ***
  5746. --- *** relation type: VIEW ***
  5747. --- *** ***
  5748. --- *** A tRNA sequence that has a serine antico ***
  5749. --- *** don, and a 3' serine binding region. ***
  5750. --- ************************************************
  5751. ---
  5752. CREATE VIEW seryl_trna AS
  5753. SELECT
  5754. feature_id AS seryl_trna_id,
  5755. feature.*
  5756. FROM
  5757. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5758. WHERE cvterm.name = 'seryl_tRNA';
  5759. --- ************************************************
  5760. --- *** relation: threonyl_trna ***
  5761. --- *** relation type: VIEW ***
  5762. --- *** ***
  5763. --- *** A tRNA sequence that has a threonine ant ***
  5764. --- *** icodon, and a 3' threonine binding regio ***
  5765. --- *** n. ***
  5766. --- ************************************************
  5767. ---
  5768. CREATE VIEW threonyl_trna AS
  5769. SELECT
  5770. feature_id AS threonyl_trna_id,
  5771. feature.*
  5772. FROM
  5773. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5774. WHERE cvterm.name = 'threonyl_tRNA';
  5775. --- ************************************************
  5776. --- *** relation: tryptophanyl_trna ***
  5777. --- *** relation type: VIEW ***
  5778. --- *** ***
  5779. --- *** A tRNA sequence that has a tryptophan an ***
  5780. --- *** ticodon, and a 3' tryptophan binding reg ***
  5781. --- *** ion. ***
  5782. --- ************************************************
  5783. ---
  5784. CREATE VIEW tryptophanyl_trna AS
  5785. SELECT
  5786. feature_id AS tryptophanyl_trna_id,
  5787. feature.*
  5788. FROM
  5789. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5790. WHERE cvterm.name = 'tryptophanyl_tRNA';
  5791. --- ************************************************
  5792. --- *** relation: tyrosyl_trna ***
  5793. --- *** relation type: VIEW ***
  5794. --- *** ***
  5795. --- *** A tRNA sequence that has a tyrosine anti ***
  5796. --- *** codon, and a 3' tyrosine binding region. ***
  5797. --- ************************************************
  5798. ---
  5799. CREATE VIEW tyrosyl_trna AS
  5800. SELECT
  5801. feature_id AS tyrosyl_trna_id,
  5802. feature.*
  5803. FROM
  5804. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5805. WHERE cvterm.name = 'tyrosyl_tRNA';
  5806. --- ************************************************
  5807. --- *** relation: valyl_trna ***
  5808. --- *** relation type: VIEW ***
  5809. --- *** ***
  5810. --- *** A tRNA sequence that has a valine antico ***
  5811. --- *** don, and a 3' valine binding region. ***
  5812. --- ************************************************
  5813. ---
  5814. CREATE VIEW valyl_trna AS
  5815. SELECT
  5816. feature_id AS valyl_trna_id,
  5817. feature.*
  5818. FROM
  5819. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5820. WHERE cvterm.name = 'valyl_tRNA';
  5821. --- ************************************************
  5822. --- *** relation: snrna ***
  5823. --- *** relation type: VIEW ***
  5824. --- *** ***
  5825. --- *** A small nuclear RNA molecule involved in ***
  5826. --- *** pre-mRNA splicing and processing. ***
  5827. --- ************************************************
  5828. ---
  5829. CREATE VIEW snrna AS
  5830. SELECT
  5831. feature_id AS snrna_id,
  5832. feature.*
  5833. FROM
  5834. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5835. 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';
  5836. --- ************************************************
  5837. --- *** relation: snorna ***
  5838. --- *** relation type: VIEW ***
  5839. --- *** ***
  5840. --- *** A snoRNA (small nucleolar RNA) is any on ***
  5841. --- *** e of a class of small RNAs that are asso ***
  5842. --- *** ciated with the eukaryotic nucleus as co ***
  5843. --- *** mponents of small nucleolar ribonucleopr ***
  5844. --- *** oteins. They participate in the processi ***
  5845. --- *** ng or modifications of many RNAs, mostly ***
  5846. --- *** ribosomal RNAs (rRNAs) though snoRNAs a ***
  5847. --- *** re also known to target other classes of ***
  5848. --- *** RNA, including spliceosomal RNAs, tRNAs ***
  5849. --- *** , and mRNAs via a stretch of sequence th ***
  5850. --- *** at is complementary to a sequence in the ***
  5851. --- *** targeted RNA. ***
  5852. --- ************************************************
  5853. ---
  5854. CREATE VIEW snorna AS
  5855. SELECT
  5856. feature_id AS snorna_id,
  5857. feature.*
  5858. FROM
  5859. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5860. 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';
  5861. --- ************************************************
  5862. --- *** relation: mirna ***
  5863. --- *** relation type: VIEW ***
  5864. --- *** ***
  5865. --- *** Small, ~22-nt, RNA molecule that is the ***
  5866. --- *** endogenous transcript of a miRNA gene. M ***
  5867. --- *** icro RNAs are produced from precursor mo ***
  5868. --- *** lecules (SO:0000647) that can form local ***
  5869. --- *** hairpin structures, which ordinarily ar ***
  5870. --- *** e processed (via the Dicer pathway) such ***
  5871. --- *** that a single miRNA molecule accumulate ***
  5872. --- *** s from one arm of a hairpin precursor mo ***
  5873. --- *** lecule. Micro RNAs may trigger the cleav ***
  5874. --- *** age of their target molecules or act as ***
  5875. --- *** translational repressors. ***
  5876. --- ************************************************
  5877. ---
  5878. CREATE VIEW mirna AS
  5879. SELECT
  5880. feature_id AS mirna_id,
  5881. feature.*
  5882. FROM
  5883. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5884. WHERE cvterm.name = 'miRNA';
  5885. --- ************************************************
  5886. --- *** relation: bound_by_factor ***
  5887. --- *** relation type: VIEW ***
  5888. --- *** ***
  5889. --- *** An attribute describing a sequence that ***
  5890. --- *** is bound by another molecule. ***
  5891. --- ************************************************
  5892. ---
  5893. CREATE VIEW bound_by_factor AS
  5894. SELECT
  5895. feature_id AS bound_by_factor_id,
  5896. feature.*
  5897. FROM
  5898. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5899. WHERE cvterm.name = 'bound_by_protein' OR cvterm.name = 'bound_by_nucleic_acid' OR cvterm.name = 'bound_by_factor';
  5900. --- ************************************************
  5901. --- *** relation: transcript_bound_by_nucleic_acid ***
  5902. --- *** relation type: VIEW ***
  5903. --- *** ***
  5904. --- *** A transcript that is bound by a nucleic ***
  5905. --- *** acid. ***
  5906. --- ************************************************
  5907. ---
  5908. CREATE VIEW transcript_bound_by_nucleic_acid AS
  5909. SELECT
  5910. feature_id AS transcript_bound_by_nucleic_acid_id,
  5911. feature.*
  5912. FROM
  5913. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5914. WHERE cvterm.name = 'transcript_bound_by_nucleic_acid';
  5915. --- ************************************************
  5916. --- *** relation: transcript_bound_by_protein ***
  5917. --- *** relation type: VIEW ***
  5918. --- *** ***
  5919. --- *** A transcript that is bound by a protein. ***
  5920. --- ************************************************
  5921. ---
  5922. CREATE VIEW transcript_bound_by_protein AS
  5923. SELECT
  5924. feature_id AS transcript_bound_by_protein_id,
  5925. feature.*
  5926. FROM
  5927. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5928. WHERE cvterm.name = 'transcript_bound_by_protein';
  5929. --- ************************************************
  5930. --- *** relation: engineered_gene ***
  5931. --- *** relation type: VIEW ***
  5932. --- *** ***
  5933. --- *** A gene that is engineered. ***
  5934. --- ************************************************
  5935. ---
  5936. CREATE VIEW engineered_gene AS
  5937. SELECT
  5938. feature_id AS engineered_gene_id,
  5939. feature.*
  5940. FROM
  5941. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5942. 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';
  5943. --- ************************************************
  5944. --- *** relation: engineered_foreign_gene ***
  5945. --- *** relation type: VIEW ***
  5946. --- *** ***
  5947. --- *** A gene that is engineered and foreign. ***
  5948. --- ************************************************
  5949. ---
  5950. CREATE VIEW engineered_foreign_gene AS
  5951. SELECT
  5952. feature_id AS engineered_foreign_gene_id,
  5953. feature.*
  5954. FROM
  5955. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5956. WHERE cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_foreign_gene';
  5957. --- ************************************************
  5958. --- *** relation: mrna_with_minus_1_frameshift ***
  5959. --- *** relation type: VIEW ***
  5960. --- *** ***
  5961. --- *** An mRNA with a minus 1 frameshift. ***
  5962. --- ************************************************
  5963. ---
  5964. CREATE VIEW mrna_with_minus_1_frameshift AS
  5965. SELECT
  5966. feature_id AS mrna_with_minus_1_frameshift_id,
  5967. feature.*
  5968. FROM
  5969. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5970. WHERE cvterm.name = 'mRNA_with_minus_1_frameshift';
  5971. --- ************************************************
  5972. --- *** relation: engineered_foreign_transposable_element_gene ***
  5973. --- *** relation type: VIEW ***
  5974. --- *** ***
  5975. --- *** A transposible_element that is engineere ***
  5976. --- *** d and foreign. ***
  5977. --- ************************************************
  5978. ---
  5979. CREATE VIEW engineered_foreign_transposable_element_gene AS
  5980. SELECT
  5981. feature_id AS engineered_foreign_transposable_element_gene_id,
  5982. feature.*
  5983. FROM
  5984. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5985. WHERE cvterm.name = 'engineered_foreign_transposable_element_gene';
  5986. --- ************************************************
  5987. --- *** relation: foreign_gene ***
  5988. --- *** relation type: VIEW ***
  5989. --- *** ***
  5990. --- *** A gene that is foreign. ***
  5991. --- ************************************************
  5992. ---
  5993. CREATE VIEW foreign_gene AS
  5994. SELECT
  5995. feature_id AS foreign_gene_id,
  5996. feature.*
  5997. FROM
  5998. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5999. WHERE cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'foreign_gene';
  6000. --- ************************************************
  6001. --- *** relation: long_terminal_repeat ***
  6002. --- *** relation type: VIEW ***
  6003. --- *** ***
  6004. --- *** A sequence directly repeated at both end ***
  6005. --- *** s of a defined sequence, of the sort typ ***
  6006. --- *** ically found in retroviruses. ***
  6007. --- ************************************************
  6008. ---
  6009. CREATE VIEW long_terminal_repeat AS
  6010. SELECT
  6011. feature_id AS long_terminal_repeat_id,
  6012. feature.*
  6013. FROM
  6014. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6015. WHERE cvterm.name = 'five_prime_LTR' OR cvterm.name = 'three_prime_LTR' OR cvterm.name = 'solo_LTR' OR cvterm.name = 'long_terminal_repeat';
  6016. --- ************************************************
  6017. --- *** relation: fusion_gene ***
  6018. --- *** relation type: VIEW ***
  6019. --- *** ***
  6020. --- *** A gene that is a fusion. ***
  6021. --- ************************************************
  6022. ---
  6023. CREATE VIEW fusion_gene AS
  6024. SELECT
  6025. feature_id AS fusion_gene_id,
  6026. feature.*
  6027. FROM
  6028. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6029. WHERE cvterm.name = 'engineered_fusion_gene' OR cvterm.name = 'fusion_gene';
  6030. --- ************************************************
  6031. --- *** relation: engineered_fusion_gene ***
  6032. --- *** relation type: VIEW ***
  6033. --- *** ***
  6034. --- *** A fusion gene that is engineered. ***
  6035. --- ************************************************
  6036. ---
  6037. CREATE VIEW engineered_fusion_gene AS
  6038. SELECT
  6039. feature_id AS engineered_fusion_gene_id,
  6040. feature.*
  6041. FROM
  6042. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6043. WHERE cvterm.name = 'engineered_fusion_gene';
  6044. --- ************************************************
  6045. --- *** relation: microsatellite ***
  6046. --- *** relation type: VIEW ***
  6047. --- *** ***
  6048. --- *** A repeat_region containing repeat_units ***
  6049. --- *** (2 to 4 bp) that is repeated multiple ti ***
  6050. --- *** mes in tandem. ***
  6051. --- ************************************************
  6052. ---
  6053. CREATE VIEW microsatellite AS
  6054. SELECT
  6055. feature_id AS microsatellite_id,
  6056. feature.*
  6057. FROM
  6058. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6059. 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';
  6060. --- ************************************************
  6061. --- *** relation: dinucleotide_repeat_microsatellite_feature ***
  6062. --- *** relation type: VIEW ***
  6063. --- *** ***
  6064. --- ************************************************
  6065. ---
  6066. CREATE VIEW dinucleotide_repeat_microsatellite_feature AS
  6067. SELECT
  6068. feature_id AS dinucleotide_repeat_microsatellite_feature_id,
  6069. feature.*
  6070. FROM
  6071. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6072. WHERE cvterm.name = 'dinucleotide_repeat_microsatellite_feature';
  6073. --- ************************************************
  6074. --- *** relation: trinuc_repeat_microsat ***
  6075. --- *** relation type: VIEW ***
  6076. --- *** ***
  6077. --- ************************************************
  6078. ---
  6079. CREATE VIEW trinuc_repeat_microsat AS
  6080. SELECT
  6081. feature_id AS trinuc_repeat_microsat_id,
  6082. feature.*
  6083. FROM
  6084. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6085. WHERE cvterm.name = 'trinucleotide_repeat_microsatellite_feature';
  6086. --- ************************************************
  6087. --- *** relation: engineered_foreign_repetitive_element ***
  6088. --- *** relation type: VIEW ***
  6089. --- *** ***
  6090. --- *** A repetitive element that is engineered ***
  6091. --- *** and foreign. ***
  6092. --- ************************************************
  6093. ---
  6094. CREATE VIEW engineered_foreign_repetitive_element AS
  6095. SELECT
  6096. feature_id AS engineered_foreign_repetitive_element_id,
  6097. feature.*
  6098. FROM
  6099. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6100. WHERE cvterm.name = 'engineered_foreign_repetitive_element';
  6101. --- ************************************************
  6102. --- *** relation: inverted_repeat ***
  6103. --- *** relation type: VIEW ***
  6104. --- *** ***
  6105. --- *** The sequence is complementarily repeated ***
  6106. --- *** on the opposite strand. It is a palindr ***
  6107. --- *** ome, and it may, or may not be hyphenate ***
  6108. --- *** d. Examples: GCTGATCAGC, or GCTGA-----TC ***
  6109. --- *** AGC. ***
  6110. --- ************************************************
  6111. ---
  6112. CREATE VIEW inverted_repeat AS
  6113. SELECT
  6114. feature_id AS inverted_repeat_id,
  6115. feature.*
  6116. FROM
  6117. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6118. 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';
  6119. --- ************************************************
  6120. --- *** relation: u12_intron ***
  6121. --- *** relation type: VIEW ***
  6122. --- *** ***
  6123. --- *** A type of spliceosomal intron spliced by ***
  6124. --- *** the U12 spliceosome, that includes U11, ***
  6125. --- *** U12, U4atac/U6atac and U5 snRNAs. ***
  6126. --- ************************************************
  6127. ---
  6128. CREATE VIEW u12_intron AS
  6129. SELECT
  6130. feature_id AS u12_intron_id,
  6131. feature.*
  6132. FROM
  6133. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6134. WHERE cvterm.name = 'U12_intron';
  6135. --- ************************************************
  6136. --- *** relation: origin_of_replication ***
  6137. --- *** relation type: VIEW ***
  6138. --- *** ***
  6139. --- *** The origin of replication; starting site ***
  6140. --- *** for duplication of a nucleic acid molec ***
  6141. --- *** ule to give two identical copies. ***
  6142. --- ************************************************
  6143. ---
  6144. CREATE VIEW origin_of_replication AS
  6145. SELECT
  6146. feature_id AS origin_of_replication_id,
  6147. feature.*
  6148. FROM
  6149. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6150. 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';
  6151. --- ************************************************
  6152. --- *** relation: d_loop ***
  6153. --- *** relation type: VIEW ***
  6154. --- *** ***
  6155. --- *** Displacement loop; a region within mitoc ***
  6156. --- *** hondrial DNA in which a short stretch of ***
  6157. --- *** RNA is paired with one strand of DNA, d ***
  6158. --- *** isplacing the original partner DNA stran ***
  6159. --- *** d in this region; also used to describe ***
  6160. --- *** the displacement of a region of one stra ***
  6161. --- *** nd of duplex DNA by a single stranded in ***
  6162. --- *** vader in the reaction catalyzed by RecA ***
  6163. --- *** protein. ***
  6164. --- ************************************************
  6165. ---
  6166. CREATE VIEW d_loop AS
  6167. SELECT
  6168. feature_id AS d_loop_id,
  6169. feature.*
  6170. FROM
  6171. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6172. WHERE cvterm.name = 'D_loop';
  6173. --- ************************************************
  6174. --- *** relation: recombination_feature ***
  6175. --- *** relation type: VIEW ***
  6176. --- *** ***
  6177. --- ************************************************
  6178. ---
  6179. CREATE VIEW recombination_feature AS
  6180. SELECT
  6181. feature_id AS recombination_feature_id,
  6182. feature.*
  6183. FROM
  6184. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6185. 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 = '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';
  6186. --- ************************************************
  6187. --- *** relation: specific_recombination_site ***
  6188. --- *** relation type: VIEW ***
  6189. --- *** ***
  6190. --- ************************************************
  6191. ---
  6192. CREATE VIEW specific_recombination_site AS
  6193. SELECT
  6194. feature_id AS specific_recombination_site_id,
  6195. feature.*
  6196. FROM
  6197. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6198. WHERE cvterm.name = 'recombination_feature_of_rearranged_gene' OR cvterm.name = 'site_specific_recombination_target_region' 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';
  6199. --- ************************************************
  6200. --- *** relation: recombination_feature_of_rearranged_gene ***
  6201. --- *** relation type: VIEW ***
  6202. --- *** ***
  6203. --- ************************************************
  6204. ---
  6205. CREATE VIEW recombination_feature_of_rearranged_gene AS
  6206. SELECT
  6207. feature_id AS recombination_feature_of_rearranged_gene_id,
  6208. feature.*
  6209. FROM
  6210. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6211. 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';
  6212. --- ************************************************
  6213. --- *** relation: vertebrate_immune_system_gene_recombination_feature ***
  6214. --- *** relation type: VIEW ***
  6215. --- *** ***
  6216. --- ************************************************
  6217. ---
  6218. CREATE VIEW vertebrate_immune_system_gene_recombination_feature AS
  6219. SELECT
  6220. feature_id AS vertebrate_immune_system_gene_recombination_feature_id,
  6221. feature.*
  6222. FROM
  6223. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6224. 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';
  6225. --- ************************************************
  6226. --- *** relation: j_gene_recombination_feature ***
  6227. --- *** relation type: VIEW ***
  6228. --- *** ***
  6229. --- *** Recombination signal including J-heptame ***
  6230. --- *** r, J-spacer and J-nonamer in 5' of J-reg ***
  6231. --- *** ion of a J-gene or J-sequence. ***
  6232. --- ************************************************
  6233. ---
  6234. CREATE VIEW j_gene_recombination_feature AS
  6235. SELECT
  6236. feature_id AS j_gene_recombination_feature_id,
  6237. feature.*
  6238. FROM
  6239. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6240. WHERE cvterm.name = 'J_gene_recombination_feature';
  6241. --- ************************************************
  6242. --- *** relation: clip ***
  6243. --- *** relation type: VIEW ***
  6244. --- *** ***
  6245. --- *** Part of the primary transcript that is c ***
  6246. --- *** lipped off during processing. ***
  6247. --- ************************************************
  6248. ---
  6249. CREATE VIEW clip AS
  6250. SELECT
  6251. feature_id AS clip_id,
  6252. feature.*
  6253. FROM
  6254. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6255. WHERE cvterm.name = 'five_prime_clip' OR cvterm.name = 'three_prime_clip' OR cvterm.name = 'clip';
  6256. --- ************************************************
  6257. --- *** relation: modified_base_site ***
  6258. --- *** relation type: VIEW ***
  6259. --- *** ***
  6260. --- *** A modified nucleotide, i.e. a nucleotide ***
  6261. --- *** other than A, T, C. G or (in RNA) U. ***
  6262. --- ************************************************
  6263. ---
  6264. CREATE VIEW modified_base_site AS
  6265. SELECT
  6266. feature_id AS modified_base_site_id,
  6267. feature.*
  6268. FROM
  6269. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6270. WHERE cvterm.name = 'methylated_base_feature' OR cvterm.name = 'methylated_C' OR cvterm.name = 'methylated_A' OR cvterm.name = 'modified_base_site';
  6271. --- ************************************************
  6272. --- *** relation: methylated_base_feature ***
  6273. --- *** relation type: VIEW ***
  6274. --- *** ***
  6275. --- *** A nucleotide modified by methylation. ***
  6276. --- ************************************************
  6277. ---
  6278. CREATE VIEW methylated_base_feature AS
  6279. SELECT
  6280. feature_id AS methylated_base_feature_id,
  6281. feature.*
  6282. FROM
  6283. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6284. WHERE cvterm.name = 'methylated_C' OR cvterm.name = 'methylated_A' OR cvterm.name = 'methylated_base_feature';
  6285. --- ************************************************
  6286. --- *** relation: cpg_island ***
  6287. --- *** relation type: VIEW ***
  6288. --- *** ***
  6289. --- *** Regions of a few hundred to a few thousa ***
  6290. --- *** nd bases in vertebrate genomes that are ***
  6291. --- *** relatively GC and CpG rich; they are typ ***
  6292. --- *** ically unmethylated and often found near ***
  6293. --- *** the 5' ends of genes. ***
  6294. --- ************************************************
  6295. ---
  6296. CREATE VIEW cpg_island AS
  6297. SELECT
  6298. feature_id AS cpg_island_id,
  6299. feature.*
  6300. FROM
  6301. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6302. WHERE cvterm.name = 'CpG_island';
  6303. --- ************************************************
  6304. --- *** relation: experimentally_determined ***
  6305. --- *** relation type: VIEW ***
  6306. --- *** ***
  6307. --- *** Attribute to describe a feature that has ***
  6308. --- *** been experiemntally verified. ***
  6309. --- ************************************************
  6310. ---
  6311. CREATE VIEW experimentally_determined AS
  6312. SELECT
  6313. feature_id AS experimentally_determined_id,
  6314. feature.*
  6315. FROM
  6316. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6317. WHERE cvterm.name = 'experimentally_determined';
  6318. --- ************************************************
  6319. --- *** relation: stem_loop ***
  6320. --- *** relation type: VIEW ***
  6321. --- *** ***
  6322. --- *** A double-helical region of nucleic acid ***
  6323. --- *** formed by base-pairing between adjacent ***
  6324. --- *** (inverted) complementary sequences. ***
  6325. --- ************************************************
  6326. ---
  6327. CREATE VIEW stem_loop AS
  6328. SELECT
  6329. feature_id AS stem_loop_id,
  6330. feature.*
  6331. FROM
  6332. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6333. WHERE cvterm.name = 'tetraloop' OR cvterm.name = 'stem_loop';
  6334. --- ************************************************
  6335. --- *** relation: direct_repeat ***
  6336. --- *** relation type: VIEW ***
  6337. --- *** ***
  6338. --- *** A repeat where the same sequence is repe ***
  6339. --- *** ated in the same direction. Example: GCT ***
  6340. --- *** GA-----GCTGA. ***
  6341. --- ************************************************
  6342. ---
  6343. CREATE VIEW direct_repeat AS
  6344. SELECT
  6345. feature_id AS direct_repeat_id,
  6346. feature.*
  6347. FROM
  6348. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6349. WHERE cvterm.name = 'target_site_duplication' OR cvterm.name = 'CRISPR' OR cvterm.name = 'direct_repeat';
  6350. --- ************************************************
  6351. --- *** relation: tss ***
  6352. --- *** relation type: VIEW ***
  6353. --- *** ***
  6354. --- *** The first base where RNA polymerase begi ***
  6355. --- *** ns to synthesize the RNA transcript. ***
  6356. --- ************************************************
  6357. ---
  6358. CREATE VIEW tss AS
  6359. SELECT
  6360. feature_id AS tss_id,
  6361. feature.*
  6362. FROM
  6363. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6364. WHERE cvterm.name = 'major_TSS' OR cvterm.name = 'minor_TSS' OR cvterm.name = 'TSS';
  6365. --- ************************************************
  6366. --- *** relation: cds ***
  6367. --- *** relation type: VIEW ***
  6368. --- *** ***
  6369. --- *** A contiguous sequence which begins with, ***
  6370. --- *** and includes, a start codon and ends wi ***
  6371. --- *** th, and includes, a stop codon. ***
  6372. --- ************************************************
  6373. ---
  6374. CREATE VIEW cds AS
  6375. SELECT
  6376. feature_id AS cds_id,
  6377. feature.*
  6378. FROM
  6379. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6380. 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';
  6381. --- ************************************************
  6382. --- *** relation: cdna_clone ***
  6383. --- *** relation type: VIEW ***
  6384. --- *** ***
  6385. --- *** Complementary DNA; A piece of DNA copied ***
  6386. --- *** from an mRNA and spliced into a vector ***
  6387. --- *** for propagation in a suitable host. ***
  6388. --- ************************************************
  6389. ---
  6390. CREATE VIEW cdna_clone AS
  6391. SELECT
  6392. feature_id AS cdna_clone_id,
  6393. feature.*
  6394. FROM
  6395. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6396. 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';
  6397. --- ************************************************
  6398. --- *** relation: start_codon ***
  6399. --- *** relation type: VIEW ***
  6400. --- *** ***
  6401. --- *** First codon to be translated by a riboso ***
  6402. --- *** me. ***
  6403. --- ************************************************
  6404. ---
  6405. CREATE VIEW start_codon AS
  6406. SELECT
  6407. feature_id AS start_codon_id,
  6408. feature.*
  6409. FROM
  6410. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6411. 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';
  6412. --- ************************************************
  6413. --- *** relation: stop_codon ***
  6414. --- *** relation type: VIEW ***
  6415. --- *** ***
  6416. --- *** In mRNA, a set of three nucleotides that ***
  6417. --- *** indicates the end of information for pr ***
  6418. --- *** otein synthesis. ***
  6419. --- ************************************************
  6420. ---
  6421. CREATE VIEW stop_codon AS
  6422. SELECT
  6423. feature_id AS stop_codon_id,
  6424. feature.*
  6425. FROM
  6426. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6427. WHERE cvterm.name = 'stop_codon';
  6428. --- ************************************************
  6429. --- *** relation: intronic_splice_enhancer ***
  6430. --- *** relation type: VIEW ***
  6431. --- *** ***
  6432. --- *** Sequences within the intron that modulat ***
  6433. --- *** e splice site selection for some introns ***
  6434. --- *** . ***
  6435. --- ************************************************
  6436. ---
  6437. CREATE VIEW intronic_splice_enhancer AS
  6438. SELECT
  6439. feature_id AS intronic_splice_enhancer_id,
  6440. feature.*
  6441. FROM
  6442. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6443. WHERE cvterm.name = 'intronic_splice_enhancer';
  6444. --- ************************************************
  6445. --- *** relation: mrna_with_plus_1_frameshift ***
  6446. --- *** relation type: VIEW ***
  6447. --- *** ***
  6448. --- *** An mRNA with a plus 1 frameshift. ***
  6449. --- ************************************************
  6450. ---
  6451. CREATE VIEW mrna_with_plus_1_frameshift AS
  6452. SELECT
  6453. feature_id AS mrna_with_plus_1_frameshift_id,
  6454. feature.*
  6455. FROM
  6456. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6457. WHERE cvterm.name = 'mRNA_with_plus_1_frameshift';
  6458. --- ************************************************
  6459. --- *** relation: nuclease_hypersensitive_site ***
  6460. --- *** relation type: VIEW ***
  6461. --- *** ***
  6462. --- ************************************************
  6463. ---
  6464. CREATE VIEW nuclease_hypersensitive_site AS
  6465. SELECT
  6466. feature_id AS nuclease_hypersensitive_site_id,
  6467. feature.*
  6468. FROM
  6469. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6470. WHERE cvterm.name = 'DNAseI_hypersensitive_site' OR cvterm.name = 'nuclease_hypersensitive_site';
  6471. --- ************************************************
  6472. --- *** relation: coding_start ***
  6473. --- *** relation type: VIEW ***
  6474. --- *** ***
  6475. --- *** The first base to be translated into pro ***
  6476. --- *** tein. ***
  6477. --- ************************************************
  6478. ---
  6479. CREATE VIEW coding_start AS
  6480. SELECT
  6481. feature_id AS coding_start_id,
  6482. feature.*
  6483. FROM
  6484. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6485. WHERE cvterm.name = 'coding_start';
  6486. --- ************************************************
  6487. --- *** relation: tag ***
  6488. --- *** relation type: VIEW ***
  6489. --- *** ***
  6490. --- *** A nucleotide sequence that may be used t ***
  6491. --- *** o identify a larger sequence. ***
  6492. --- ************************************************
  6493. ---
  6494. CREATE VIEW tag AS
  6495. SELECT
  6496. feature_id AS tag_id,
  6497. feature.*
  6498. FROM
  6499. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6500. 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';
  6501. --- ************************************************
  6502. --- *** relation: rrna_large_subunit_primary_transcript ***
  6503. --- *** relation type: VIEW ***
  6504. --- *** ***
  6505. --- *** A primary transcript encoding a large ri ***
  6506. --- *** bosomal subunit RNA. ***
  6507. --- ************************************************
  6508. ---
  6509. CREATE VIEW rrna_large_subunit_primary_transcript AS
  6510. SELECT
  6511. feature_id AS rrna_large_subunit_primary_transcript_id,
  6512. feature.*
  6513. FROM
  6514. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6515. WHERE cvterm.name = 'rRNA_large_subunit_primary_transcript';
  6516. --- ************************************************
  6517. --- *** relation: sage_tag ***
  6518. --- *** relation type: VIEW ***
  6519. --- *** ***
  6520. --- *** A short diagnostic sequence tag, serial ***
  6521. --- *** analysis of gene expression (SAGE), that ***
  6522. --- *** allows the quantitative and simultaneou ***
  6523. --- *** s analysis of a large number of transcri ***
  6524. --- *** pts. ***
  6525. --- ************************************************
  6526. ---
  6527. CREATE VIEW sage_tag AS
  6528. SELECT
  6529. feature_id AS sage_tag_id,
  6530. feature.*
  6531. FROM
  6532. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6533. WHERE cvterm.name = 'SAGE_tag';
  6534. --- ************************************************
  6535. --- *** relation: coding_end ***
  6536. --- *** relation type: VIEW ***
  6537. --- *** ***
  6538. --- *** The last base to be translated into prot ***
  6539. --- *** ein. It does not include the stop codon. ***
  6540. --- ************************************************
  6541. ---
  6542. CREATE VIEW coding_end AS
  6543. SELECT
  6544. feature_id AS coding_end_id,
  6545. feature.*
  6546. FROM
  6547. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6548. WHERE cvterm.name = 'coding_end';
  6549. --- ************************************************
  6550. --- *** relation: microarray_oligo ***
  6551. --- *** relation type: VIEW ***
  6552. --- *** ***
  6553. --- ************************************************
  6554. ---
  6555. CREATE VIEW microarray_oligo AS
  6556. SELECT
  6557. feature_id AS microarray_oligo_id,
  6558. feature.*
  6559. FROM
  6560. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6561. WHERE cvterm.name = 'microarray_oligo';
  6562. --- ************************************************
  6563. --- *** relation: mrna_with_plus_2_frameshift ***
  6564. --- *** relation type: VIEW ***
  6565. --- *** ***
  6566. --- *** An mRNA with a plus 2 frameshift. ***
  6567. --- ************************************************
  6568. ---
  6569. CREATE VIEW mrna_with_plus_2_frameshift AS
  6570. SELECT
  6571. feature_id AS mrna_with_plus_2_frameshift_id,
  6572. feature.*
  6573. FROM
  6574. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6575. WHERE cvterm.name = 'mRNA_with_plus_2_frameshift';
  6576. --- ************************************************
  6577. --- *** relation: conserved_region ***
  6578. --- *** relation type: VIEW ***
  6579. --- *** ***
  6580. --- *** Region of sequence similarity by descent ***
  6581. --- *** from a common ancestor. ***
  6582. --- ************************************************
  6583. ---
  6584. CREATE VIEW conserved_region AS
  6585. SELECT
  6586. feature_id AS conserved_region_id,
  6587. feature.*
  6588. FROM
  6589. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6590. WHERE cvterm.name = 'coding_conserved_region' OR cvterm.name = 'nc_conserved_region' OR cvterm.name = 'homologous_region' OR cvterm.name = 'syntenic_region' OR cvterm.name = 'paralogous_region' OR cvterm.name = 'orthologous_region' OR cvterm.name = 'conserved_region';
  6591. --- ************************************************
  6592. --- *** relation: sts ***
  6593. --- *** relation type: VIEW ***
  6594. --- *** ***
  6595. --- *** Short (typically a few hundred base pair ***
  6596. --- *** s) DNA sequence that has a single occurr ***
  6597. --- *** ence in a genome and whose location and ***
  6598. --- *** base sequence are known. ***
  6599. --- ************************************************
  6600. ---
  6601. CREATE VIEW sts AS
  6602. SELECT
  6603. feature_id AS sts_id,
  6604. feature.*
  6605. FROM
  6606. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6607. WHERE cvterm.name = 'STS';
  6608. --- ************************************************
  6609. --- *** relation: coding_conserved_region ***
  6610. --- *** relation type: VIEW ***
  6611. --- *** ***
  6612. --- *** Coding region of sequence similarity by ***
  6613. --- *** descent from a common ancestor. ***
  6614. --- ************************************************
  6615. ---
  6616. CREATE VIEW coding_conserved_region AS
  6617. SELECT
  6618. feature_id AS coding_conserved_region_id,
  6619. feature.*
  6620. FROM
  6621. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6622. WHERE cvterm.name = 'coding_conserved_region';
  6623. --- ************************************************
  6624. --- *** relation: exon_junction ***
  6625. --- *** relation type: VIEW ***
  6626. --- *** ***
  6627. --- *** The boundary between two exons in a proc ***
  6628. --- *** essed transcript. ***
  6629. --- ************************************************
  6630. ---
  6631. CREATE VIEW exon_junction AS
  6632. SELECT
  6633. feature_id AS exon_junction_id,
  6634. feature.*
  6635. FROM
  6636. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6637. WHERE cvterm.name = 'exon_junction';
  6638. --- ************************************************
  6639. --- *** relation: nc_conserved_region ***
  6640. --- *** relation type: VIEW ***
  6641. --- *** ***
  6642. --- *** Non-coding region of sequence similarity ***
  6643. --- *** by descent from a common ancestor. ***
  6644. --- ************************************************
  6645. ---
  6646. CREATE VIEW nc_conserved_region AS
  6647. SELECT
  6648. feature_id AS nc_conserved_region_id,
  6649. feature.*
  6650. FROM
  6651. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6652. WHERE cvterm.name = 'nc_conserved_region';
  6653. --- ************************************************
  6654. --- *** relation: mrna_with_minus_2_frameshift ***
  6655. --- *** relation type: VIEW ***
  6656. --- *** ***
  6657. --- *** A mRNA with a minus 2 frameshift. ***
  6658. --- ************************************************
  6659. ---
  6660. CREATE VIEW mrna_with_minus_2_frameshift AS
  6661. SELECT
  6662. feature_id AS mrna_with_minus_2_frameshift_id,
  6663. feature.*
  6664. FROM
  6665. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6666. WHERE cvterm.name = 'mRNA_with_minus_2_frameshift';
  6667. --- ************************************************
  6668. --- *** relation: pseudogene ***
  6669. --- *** relation type: VIEW ***
  6670. --- *** ***
  6671. --- *** A sequence that closely resembles a know ***
  6672. --- *** n functional gene, at another locus with ***
  6673. --- *** in a genome, that is non-functional as a ***
  6674. --- *** consequence of (usually several) mutati ***
  6675. --- *** ons that prevent either its transcriptio ***
  6676. --- *** n or translation (or both). In general, ***
  6677. --- *** pseudogenes result from either reverse t ***
  6678. --- *** ranscription of a transcript of their "n ***
  6679. --- *** ormal" paralog (SO:0000043) (in which ca ***
  6680. --- *** se the pseudogene typically lacks intron ***
  6681. --- *** s and includes a poly(A) tail) or from r ***
  6682. --- *** ecombination (SO:0000044) (in which case ***
  6683. --- *** the pseudogene is typically a tandem du ***
  6684. --- *** plication of its "normal" paralog). ***
  6685. --- ************************************************
  6686. ---
  6687. CREATE VIEW pseudogene AS
  6688. SELECT
  6689. feature_id AS pseudogene_id,
  6690. feature.*
  6691. FROM
  6692. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6693. WHERE cvterm.name = 'processed_pseudogene' OR cvterm.name = 'pseudogene_by_unequal_crossing_over' OR cvterm.name = 'nuclear_mt_pseudogene' OR cvterm.name = 'cassette_pseudogene' OR cvterm.name = 'pseudogene';
  6694. --- ************************************************
  6695. --- *** relation: rnai_reagent ***
  6696. --- *** relation type: VIEW ***
  6697. --- *** ***
  6698. --- *** A double stranded RNA duplex, at least 2 ***
  6699. --- *** 0bp long, used experimentally to inhibit ***
  6700. --- *** gene function by RNA interference. ***
  6701. --- ************************************************
  6702. ---
  6703. CREATE VIEW rnai_reagent AS
  6704. SELECT
  6705. feature_id AS rnai_reagent_id,
  6706. feature.*
  6707. FROM
  6708. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6709. WHERE cvterm.name = 'RNAi_reagent';
  6710. --- ************************************************
  6711. --- *** relation: mite ***
  6712. --- *** relation type: VIEW ***
  6713. --- *** ***
  6714. --- *** A highly repetitive and short (100-500 b ***
  6715. --- *** ase pair) transposable element with term ***
  6716. --- *** inal inverted repeats (TIR) and target s ***
  6717. --- *** ite duplication (TSD). MITEs do not enco ***
  6718. --- *** de proteins. ***
  6719. --- ************************************************
  6720. ---
  6721. CREATE VIEW mite AS
  6722. SELECT
  6723. feature_id AS mite_id,
  6724. feature.*
  6725. FROM
  6726. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6727. WHERE cvterm.name = 'MITE';
  6728. --- ************************************************
  6729. --- *** relation: recombination_hotspot ***
  6730. --- *** relation type: VIEW ***
  6731. --- *** ***
  6732. --- *** A region in a genome which promotes reco ***
  6733. --- *** mbination. ***
  6734. --- ************************************************
  6735. ---
  6736. CREATE VIEW recombination_hotspot AS
  6737. SELECT
  6738. feature_id AS recombination_hotspot_id,
  6739. feature.*
  6740. FROM
  6741. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6742. WHERE cvterm.name = 'recombination_hotspot';
  6743. --- ************************************************
  6744. --- *** relation: chromosome ***
  6745. --- *** relation type: VIEW ***
  6746. --- *** ***
  6747. --- *** Structural unit composed of a nucleic ac ***
  6748. --- *** id molecule which controls its own repli ***
  6749. --- *** cation through the interaction of specif ***
  6750. --- *** ic proteins at one or more origins of re ***
  6751. --- *** plication. ***
  6752. --- ************************************************
  6753. ---
  6754. CREATE VIEW chromosome AS
  6755. SELECT
  6756. feature_id AS chromosome_id,
  6757. feature.*
  6758. FROM
  6759. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6760. 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';
  6761. --- ************************************************
  6762. --- *** relation: chromosome_band ***
  6763. --- *** relation type: VIEW ***
  6764. --- *** ***
  6765. --- *** A cytologically distinguishable feature ***
  6766. --- *** of a chromosome, often made visible by s ***
  6767. --- *** taining, and usually alternating light a ***
  6768. --- *** nd dark. ***
  6769. --- ************************************************
  6770. ---
  6771. CREATE VIEW chromosome_band AS
  6772. SELECT
  6773. feature_id AS chromosome_band_id,
  6774. feature.*
  6775. FROM
  6776. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6777. WHERE cvterm.name = 'chromosome_band';
  6778. --- ************************************************
  6779. --- *** relation: site_specific_recombination_target_region ***
  6780. --- *** relation type: VIEW ***
  6781. --- *** ***
  6782. --- ************************************************
  6783. ---
  6784. CREATE VIEW site_specific_recombination_target_region AS
  6785. SELECT
  6786. feature_id AS site_specific_recombination_target_region_id,
  6787. feature.*
  6788. FROM
  6789. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6790. 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';
  6791. --- ************************************************
  6792. --- *** relation: match ***
  6793. --- *** relation type: VIEW ***
  6794. --- *** ***
  6795. --- *** A region of sequence, aligned to another ***
  6796. --- *** sequence with some statistical signific ***
  6797. --- *** ance, using an algorithm such as BLAST o ***
  6798. --- *** r SIM4. ***
  6799. --- ************************************************
  6800. ---
  6801. CREATE VIEW match AS
  6802. SELECT
  6803. feature_id AS match_id,
  6804. feature.*
  6805. FROM
  6806. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6807. 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';
  6808. --- ************************************************
  6809. --- *** relation: splice_enhancer ***
  6810. --- *** relation type: VIEW ***
  6811. --- *** ***
  6812. --- *** Region of a transcript that regulates sp ***
  6813. --- *** licing. ***
  6814. --- ************************************************
  6815. ---
  6816. CREATE VIEW splice_enhancer AS
  6817. SELECT
  6818. feature_id AS splice_enhancer_id,
  6819. feature.*
  6820. FROM
  6821. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6822. WHERE cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' OR cvterm.name = 'splice_enhancer';
  6823. --- ************************************************
  6824. --- *** relation: est ***
  6825. --- *** relation type: VIEW ***
  6826. --- *** ***
  6827. --- *** A tag produced from a single sequencing ***
  6828. --- *** read from a cDNA clone or PCR product; t ***
  6829. --- *** ypically a few hundred base pairs long. ***
  6830. --- ************************************************
  6831. ---
  6832. CREATE VIEW est AS
  6833. SELECT
  6834. feature_id AS est_id,
  6835. feature.*
  6836. FROM
  6837. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6838. 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';
  6839. --- ************************************************
  6840. --- *** relation: loxp_site ***
  6841. --- *** relation type: VIEW ***
  6842. --- *** ***
  6843. --- ************************************************
  6844. ---
  6845. CREATE VIEW loxp_site AS
  6846. SELECT
  6847. feature_id AS loxp_site_id,
  6848. feature.*
  6849. FROM
  6850. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6851. WHERE cvterm.name = 'loxP_site';
  6852. --- ************************************************
  6853. --- *** relation: nucleotide_match ***
  6854. --- *** relation type: VIEW ***
  6855. --- *** ***
  6856. --- *** A match against a nucleotide sequence. ***
  6857. --- ************************************************
  6858. ---
  6859. CREATE VIEW nucleotide_match AS
  6860. SELECT
  6861. feature_id AS nucleotide_match_id,
  6862. feature.*
  6863. FROM
  6864. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6865. 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';
  6866. --- ************************************************
  6867. --- *** relation: nucleic_acid ***
  6868. --- *** relation type: VIEW ***
  6869. --- *** ***
  6870. --- *** An attribute describing a sequence consi ***
  6871. --- *** sting of nucleobases bound to repeating ***
  6872. --- *** units. The forms found in nature are deo ***
  6873. --- *** xyribonucleic acid (DNA), where the repe ***
  6874. --- *** ating units are 2-deoxy-D-ribose rings c ***
  6875. --- *** onnected to a phosphate backbone, and ri ***
  6876. --- *** bonucleic acid (RNA), where the repeatin ***
  6877. --- *** g units are D-ribose rings connected to ***
  6878. --- *** a phosphate backbone. ***
  6879. --- ************************************************
  6880. ---
  6881. CREATE VIEW nucleic_acid AS
  6882. SELECT
  6883. feature_id AS nucleic_acid_id,
  6884. feature.*
  6885. FROM
  6886. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6887. WHERE cvterm.name = 'DNA' OR cvterm.name = 'RNA' OR cvterm.name = 'morpholino' 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';
  6888. --- ************************************************
  6889. --- *** relation: protein_match ***
  6890. --- *** relation type: VIEW ***
  6891. --- *** ***
  6892. --- *** A match against a protein sequence. ***
  6893. --- ************************************************
  6894. ---
  6895. CREATE VIEW protein_match AS
  6896. SELECT
  6897. feature_id AS protein_match_id,
  6898. feature.*
  6899. FROM
  6900. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6901. WHERE cvterm.name = 'protein_match';
  6902. --- ************************************************
  6903. --- *** relation: frt_site ***
  6904. --- *** relation type: VIEW ***
  6905. --- *** ***
  6906. --- *** An inversion site found on the Saccharom ***
  6907. --- *** yces cerevisiae 2 micron plasmid. ***
  6908. --- ************************************************
  6909. ---
  6910. CREATE VIEW frt_site AS
  6911. SELECT
  6912. feature_id AS frt_site_id,
  6913. feature.*
  6914. FROM
  6915. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6916. WHERE cvterm.name = 'FRT_site';
  6917. --- ************************************************
  6918. --- *** relation: synthetic_sequence ***
  6919. --- *** relation type: VIEW ***
  6920. --- *** ***
  6921. --- *** An attribute to decide a sequence of nuc ***
  6922. --- *** leotides, nucleotide analogs, or amino a ***
  6923. --- *** cids that has been designed by an experi ***
  6924. --- *** menter and which may, or may not, corres ***
  6925. --- *** pond with any natural sequence. ***
  6926. --- ************************************************
  6927. ---
  6928. CREATE VIEW synthetic_sequence AS
  6929. SELECT
  6930. feature_id AS synthetic_sequence_id,
  6931. feature.*
  6932. FROM
  6933. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6934. WHERE cvterm.name = 'random_sequence' OR cvterm.name = 'designed_sequence' OR cvterm.name = 'synthetic_sequence';
  6935. --- ************************************************
  6936. --- *** relation: dna ***
  6937. --- *** relation type: VIEW ***
  6938. --- *** ***
  6939. --- *** An attribute describing a sequence consi ***
  6940. --- *** sting of nucleobases bound to a repeatin ***
  6941. --- *** g unit made of a 2-deoxy-D-ribose ring c ***
  6942. --- *** onnected to a phosphate backbone. ***
  6943. --- ************************************************
  6944. ---
  6945. CREATE VIEW dna AS
  6946. SELECT
  6947. feature_id AS dna_id,
  6948. feature.*
  6949. FROM
  6950. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6951. 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';
  6952. --- ************************************************
  6953. --- *** relation: sequence_assembly ***
  6954. --- *** relation type: VIEW ***
  6955. --- *** ***
  6956. --- *** A sequence of nucleotides that has been ***
  6957. --- *** algorithmically derived from an alignmen ***
  6958. --- *** t of two or more different sequences. ***
  6959. --- ************************************************
  6960. ---
  6961. CREATE VIEW sequence_assembly AS
  6962. SELECT
  6963. feature_id AS sequence_assembly_id,
  6964. feature.*
  6965. FROM
  6966. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6967. 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';
  6968. --- ************************************************
  6969. --- *** relation: group_1_intron_homing_endonuclease_target_region ***
  6970. --- *** relation type: VIEW ***
  6971. --- *** ***
  6972. --- ************************************************
  6973. ---
  6974. CREATE VIEW group_1_intron_homing_endonuclease_target_region AS
  6975. SELECT
  6976. feature_id AS group_1_intron_homing_endonuclease_target_region_id,
  6977. feature.*
  6978. FROM
  6979. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6980. WHERE cvterm.name = 'group_1_intron_homing_endonuclease_target_region';
  6981. --- ************************************************
  6982. --- *** relation: haplotype_block ***
  6983. --- *** relation type: VIEW ***
  6984. --- *** ***
  6985. --- *** A region of the genome which is co-inher ***
  6986. --- *** ited as the result of the lack of histor ***
  6987. --- *** ic recombination within it. ***
  6988. --- ************************************************
  6989. ---
  6990. CREATE VIEW haplotype_block AS
  6991. SELECT
  6992. feature_id AS haplotype_block_id,
  6993. feature.*
  6994. FROM
  6995. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6996. WHERE cvterm.name = 'haplotype_block';
  6997. --- ************************************************
  6998. --- *** relation: rna ***
  6999. --- *** relation type: VIEW ***
  7000. --- *** ***
  7001. --- *** An attribute describing a sequence consi ***
  7002. --- *** sting of nucleobases bound to a repeatin ***
  7003. --- *** g unit made of a D-ribose ring connected ***
  7004. --- *** to a phosphate backbone. ***
  7005. --- ************************************************
  7006. ---
  7007. CREATE VIEW rna AS
  7008. SELECT
  7009. feature_id AS rna_id,
  7010. feature.*
  7011. FROM
  7012. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7013. WHERE cvterm.name = 'RNA';
  7014. --- ************************************************
  7015. --- *** relation: flanked ***
  7016. --- *** relation type: VIEW ***
  7017. --- *** ***
  7018. --- *** An attribute describing a region that is ***
  7019. --- *** bounded either side by a paricular kind ***
  7020. --- *** of region. ***
  7021. --- ************************************************
  7022. ---
  7023. CREATE VIEW flanked AS
  7024. SELECT
  7025. feature_id AS flanked_id,
  7026. feature.*
  7027. FROM
  7028. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7029. WHERE cvterm.name = 'floxed' OR cvterm.name = 'FRT_flanked' OR cvterm.name = 'flanked';
  7030. --- ************************************************
  7031. --- *** relation: floxed ***
  7032. --- *** relation type: VIEW ***
  7033. --- *** ***
  7034. --- *** An attribute describing sequence that is ***
  7035. --- *** flanked by Lox-P sites. ***
  7036. --- ************************************************
  7037. ---
  7038. CREATE VIEW floxed AS
  7039. SELECT
  7040. feature_id AS floxed_id,
  7041. feature.*
  7042. FROM
  7043. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7044. WHERE cvterm.name = 'floxed';
  7045. --- ************************************************
  7046. --- *** relation: codon ***
  7047. --- *** relation type: VIEW ***
  7048. --- *** ***
  7049. --- *** A set of (usually) three nucleotide base ***
  7050. --- *** s in a DNA or RNA sequence, which togeth ***
  7051. --- *** er code for a unique amino acid or the t ***
  7052. --- *** ermination of translation and are contai ***
  7053. --- *** ned within the CDS. ***
  7054. --- ************************************************
  7055. ---
  7056. CREATE VIEW codon AS
  7057. SELECT
  7058. feature_id AS codon_id,
  7059. feature.*
  7060. FROM
  7061. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7062. 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';
  7063. --- ************************************************
  7064. --- *** relation: frt_flanked ***
  7065. --- *** relation type: VIEW ***
  7066. --- *** ***
  7067. --- *** An attribute to describe sequence that i ***
  7068. --- *** s flanked by the FLP recombinase recogni ***
  7069. --- *** tion site, FRT. ***
  7070. --- ************************************************
  7071. ---
  7072. CREATE VIEW frt_flanked AS
  7073. SELECT
  7074. feature_id AS frt_flanked_id,
  7075. feature.*
  7076. FROM
  7077. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7078. WHERE cvterm.name = 'FRT_flanked';
  7079. --- ************************************************
  7080. --- *** relation: invalidated_by_chimeric_cdna ***
  7081. --- *** relation type: VIEW ***
  7082. --- *** ***
  7083. --- *** A cDNA clone constructed from more than ***
  7084. --- *** one mRNA. Usually an experimental artifa ***
  7085. --- *** ct. ***
  7086. --- ************************************************
  7087. ---
  7088. CREATE VIEW invalidated_by_chimeric_cdna AS
  7089. SELECT
  7090. feature_id AS invalidated_by_chimeric_cdna_id,
  7091. feature.*
  7092. FROM
  7093. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7094. WHERE cvterm.name = 'invalidated_by_chimeric_cDNA';
  7095. --- ************************************************
  7096. --- *** relation: floxed_gene ***
  7097. --- *** relation type: VIEW ***
  7098. --- *** ***
  7099. --- *** A transgene that is floxed. ***
  7100. --- ************************************************
  7101. ---
  7102. CREATE VIEW floxed_gene AS
  7103. SELECT
  7104. feature_id AS floxed_gene_id,
  7105. feature.*
  7106. FROM
  7107. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7108. WHERE cvterm.name = 'floxed_gene';
  7109. --- ************************************************
  7110. --- *** relation: transposable_element_flanking_region ***
  7111. --- *** relation type: VIEW ***
  7112. --- *** ***
  7113. --- *** The region of sequence surrounding a tra ***
  7114. --- *** nsposible element. ***
  7115. --- ************************************************
  7116. ---
  7117. CREATE VIEW transposable_element_flanking_region AS
  7118. SELECT
  7119. feature_id AS transposable_element_flanking_region_id,
  7120. feature.*
  7121. FROM
  7122. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7123. WHERE cvterm.name = 'transposable_element_flanking_region';
  7124. --- ************************************************
  7125. --- *** relation: integron ***
  7126. --- *** relation type: VIEW ***
  7127. --- *** ***
  7128. --- *** A region encoding an integrase which act ***
  7129. --- *** s at a site adjacent to it (attI_site) t ***
  7130. --- *** o insert DNA which must include but is n ***
  7131. --- *** ot limited to an attC_site. ***
  7132. --- ************************************************
  7133. ---
  7134. CREATE VIEW integron AS
  7135. SELECT
  7136. feature_id AS integron_id,
  7137. feature.*
  7138. FROM
  7139. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7140. WHERE cvterm.name = 'integron';
  7141. --- ************************************************
  7142. --- *** relation: insertion_site ***
  7143. --- *** relation type: VIEW ***
  7144. --- *** ***
  7145. --- *** The junction where an insertion occurred ***
  7146. --- *** . ***
  7147. --- ************************************************
  7148. ---
  7149. CREATE VIEW insertion_site AS
  7150. SELECT
  7151. feature_id AS insertion_site_id,
  7152. feature.*
  7153. FROM
  7154. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7155. WHERE cvterm.name = 'transposable_element_insertion_site' OR cvterm.name = 'insertion_site';
  7156. --- ************************************************
  7157. --- *** relation: atti_site ***
  7158. --- *** relation type: VIEW ***
  7159. --- *** ***
  7160. --- *** A region within an integron, adjacent to ***
  7161. --- *** an integrase, at which site specific re ***
  7162. --- *** combination involving an attC_site takes ***
  7163. --- *** place. ***
  7164. --- ************************************************
  7165. ---
  7166. CREATE VIEW atti_site AS
  7167. SELECT
  7168. feature_id AS atti_site_id,
  7169. feature.*
  7170. FROM
  7171. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7172. WHERE cvterm.name = 'attI_site';
  7173. --- ************************************************
  7174. --- *** relation: transposable_element_insertion_site ***
  7175. --- *** relation type: VIEW ***
  7176. --- *** ***
  7177. --- *** The junction in a genome where a transpo ***
  7178. --- *** sable_element has inserted. ***
  7179. --- ************************************************
  7180. ---
  7181. CREATE VIEW transposable_element_insertion_site AS
  7182. SELECT
  7183. feature_id AS transposable_element_insertion_site_id,
  7184. feature.*
  7185. FROM
  7186. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7187. WHERE cvterm.name = 'transposable_element_insertion_site';
  7188. --- ************************************************
  7189. --- *** relation: small_regulatory_ncrna ***
  7190. --- *** relation type: VIEW ***
  7191. --- *** ***
  7192. --- *** A non-coding RNA, usually with a specifi ***
  7193. --- *** c secondary structure, that acts to regu ***
  7194. --- *** late gene expression. ***
  7195. --- ************************************************
  7196. ---
  7197. CREATE VIEW small_regulatory_ncrna AS
  7198. SELECT
  7199. feature_id AS small_regulatory_ncrna_id,
  7200. feature.*
  7201. FROM
  7202. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7203. 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';
  7204. --- ************************************************
  7205. --- *** relation: conjugative_transposon ***
  7206. --- *** relation type: VIEW ***
  7207. --- *** ***
  7208. --- *** A transposon that encodes function requi ***
  7209. --- *** red for conjugation. ***
  7210. --- ************************************************
  7211. ---
  7212. CREATE VIEW conjugative_transposon AS
  7213. SELECT
  7214. feature_id AS conjugative_transposon_id,
  7215. feature.*
  7216. FROM
  7217. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7218. WHERE cvterm.name = 'conjugative_transposon';
  7219. --- ************************************************
  7220. --- *** relation: enzymatic_rna ***
  7221. --- *** relation type: VIEW ***
  7222. --- *** ***
  7223. --- *** An RNA sequence that has catalytic activ ***
  7224. --- *** ity with or without an associated ribonu ***
  7225. --- *** cleoprotein. ***
  7226. --- ************************************************
  7227. ---
  7228. CREATE VIEW enzymatic_rna AS
  7229. SELECT
  7230. feature_id AS enzymatic_rna_id,
  7231. feature.*
  7232. FROM
  7233. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7234. WHERE cvterm.name = 'ribozyme' OR cvterm.name = 'enzymatic_RNA';
  7235. --- ************************************************
  7236. --- *** relation: recombinationally_inverted_gene ***
  7237. --- *** relation type: VIEW ***
  7238. --- *** ***
  7239. --- *** A recombinationally rearranged gene by i ***
  7240. --- *** nversion. ***
  7241. --- ************************************************
  7242. ---
  7243. CREATE VIEW recombinationally_inverted_gene AS
  7244. SELECT
  7245. feature_id AS recombinationally_inverted_gene_id,
  7246. feature.*
  7247. FROM
  7248. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7249. WHERE cvterm.name = 'recombinationally_inverted_gene';
  7250. --- ************************************************
  7251. --- *** relation: ribozyme ***
  7252. --- *** relation type: VIEW ***
  7253. --- *** ***
  7254. --- *** An RNA with catalytic activity. ***
  7255. --- ************************************************
  7256. ---
  7257. CREATE VIEW ribozyme AS
  7258. SELECT
  7259. feature_id AS ribozyme_id,
  7260. feature.*
  7261. FROM
  7262. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7263. WHERE cvterm.name = 'ribozyme';
  7264. --- ************************************************
  7265. --- *** relation: rrna_5_8s ***
  7266. --- *** relation type: VIEW ***
  7267. --- *** ***
  7268. --- *** 5_8S ribosomal RNA (5. 8S rRNA) is a com ***
  7269. --- *** ponent of the large subunit of the eukar ***
  7270. --- *** yotic ribosome. It is transcribed by RNA ***
  7271. --- *** polymerase I as part of the 45S precurs ***
  7272. --- *** or that also contains 18S and 28S rRNA. ***
  7273. --- *** Functionally, it is thought that 5.8S rR ***
  7274. --- *** NA may be involved in ribosome transloca ***
  7275. --- *** tion. It is also known to form covalent ***
  7276. --- *** linkage to the p53 tumour suppressor pro ***
  7277. --- *** tein. 5_8S rRNA is also found in archaea ***
  7278. --- *** . ***
  7279. --- ************************************************
  7280. ---
  7281. CREATE VIEW rrna_5_8s AS
  7282. SELECT
  7283. feature_id AS rrna_5_8s_id,
  7284. feature.*
  7285. FROM
  7286. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7287. WHERE cvterm.name = 'rRNA_5_8S';
  7288. --- ************************************************
  7289. --- *** relation: rna_6s ***
  7290. --- *** relation type: VIEW ***
  7291. --- *** ***
  7292. --- *** A small (184-nt in E. coli) RNA that for ***
  7293. --- *** ms a hairpin type structure. 6S RNA asso ***
  7294. --- *** ciates with RNA polymerase in a highly s ***
  7295. --- *** pecific manner. 6S RNA represses express ***
  7296. --- *** ion from a sigma70-dependent promoter du ***
  7297. --- *** ring stationary phase. ***
  7298. --- ************************************************
  7299. ---
  7300. CREATE VIEW rna_6s AS
  7301. SELECT
  7302. feature_id AS rna_6s_id,
  7303. feature.*
  7304. FROM
  7305. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7306. WHERE cvterm.name = 'RNA_6S';
  7307. --- ************************************************
  7308. --- *** relation: csrb_rsmb_rna ***
  7309. --- *** relation type: VIEW ***
  7310. --- *** ***
  7311. --- *** An enterobacterial RNA that binds the Cs ***
  7312. --- *** rA protein. The CsrB RNAs contain a cons ***
  7313. --- *** erved motif CAGGXXG that is found in up ***
  7314. --- *** to 18 copies and has been suggested to b ***
  7315. --- *** ind CsrA. The Csr regulatory system has ***
  7316. --- *** a strong negative regulatory effect on g ***
  7317. --- *** lycogen biosynthesis, glyconeogenesis an ***
  7318. --- *** d glycogen catabolism and a positive reg ***
  7319. --- *** ulatory effect on glycolysis. In other b ***
  7320. --- *** acteria such as Erwinia caratovara the R ***
  7321. --- *** smA protein has been shown to regulate t ***
  7322. --- *** he production of virulence determinants, ***
  7323. --- *** such extracellular enzymes. RsmA binds ***
  7324. --- *** to RsmB regulatory RNA which is also a m ***
  7325. --- *** ember of this family. ***
  7326. --- ************************************************
  7327. ---
  7328. CREATE VIEW csrb_rsmb_rna AS
  7329. SELECT
  7330. feature_id AS csrb_rsmb_rna_id,
  7331. feature.*
  7332. FROM
  7333. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7334. WHERE cvterm.name = 'CsrB_RsmB_RNA';
  7335. --- ************************************************
  7336. --- *** relation: dsra_rna ***
  7337. --- *** relation type: VIEW ***
  7338. --- *** ***
  7339. --- *** DsrA RNA regulates both transcription, b ***
  7340. --- *** y overcoming transcriptional silencing b ***
  7341. --- *** y the nucleoid-associated H-NS protein, ***
  7342. --- *** and translation, by promoting efficient ***
  7343. --- *** translation of the stress sigma factor, ***
  7344. --- *** RpoS. These two activities of DsrA can b ***
  7345. --- *** e separated by mutation: the first of th ***
  7346. --- *** ree stem-loops of the 85 nucleotide RNA ***
  7347. --- *** is necessary for RpoS translation but no ***
  7348. --- *** t for anti-H-NS action, while the second ***
  7349. --- *** stem-loop is essential for antisilencin ***
  7350. --- *** g and less critical for RpoS translation ***
  7351. --- *** . The third stem-loop, which behaves as ***
  7352. --- *** a transcription terminator, can be subst ***
  7353. --- *** ituted by the trp transcription terminat ***
  7354. --- *** or without loss of either DsrA function. ***
  7355. --- *** The sequence of the first stem-loop of ***
  7356. --- *** DsrA is complementary with the upstream ***
  7357. --- *** leader portion of RpoS messenger RNA, su ***
  7358. --- *** ggesting that pairing of DsrA with the R ***
  7359. --- *** poS message might be important for trans ***
  7360. --- *** lational regulation. ***
  7361. --- ************************************************
  7362. ---
  7363. CREATE VIEW dsra_rna AS
  7364. SELECT
  7365. feature_id AS dsra_rna_id,
  7366. feature.*
  7367. FROM
  7368. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7369. WHERE cvterm.name = 'GcvB_RNA' OR cvterm.name = 'DsrA_RNA';
  7370. --- ************************************************
  7371. --- *** relation: gcvb_rna ***
  7372. --- *** relation type: VIEW ***
  7373. --- *** ***
  7374. --- *** A small untranslated RNA involved in exp ***
  7375. --- *** ression of the dipeptide and oligopeptid ***
  7376. --- *** e transport systems in Escherichia coli. ***
  7377. --- ************************************************
  7378. ---
  7379. CREATE VIEW gcvb_rna AS
  7380. SELECT
  7381. feature_id AS gcvb_rna_id,
  7382. feature.*
  7383. FROM
  7384. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7385. WHERE cvterm.name = 'GcvB_RNA';
  7386. --- ************************************************
  7387. --- *** relation: hammerhead_ribozyme ***
  7388. --- *** relation type: VIEW ***
  7389. --- *** ***
  7390. --- *** A small catalytic RNA motif that catalyz ***
  7391. --- *** es self-cleavage reaction. Its name come ***
  7392. --- *** s from its secondary structure which res ***
  7393. --- *** embles a carpenter's hammer. The hammerh ***
  7394. --- *** ead ribozyme is involved in the replicat ***
  7395. --- *** ion of some viroid and some satellite RN ***
  7396. --- *** As. ***
  7397. --- ************************************************
  7398. ---
  7399. CREATE VIEW hammerhead_ribozyme AS
  7400. SELECT
  7401. feature_id AS hammerhead_ribozyme_id,
  7402. feature.*
  7403. FROM
  7404. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7405. WHERE cvterm.name = 'hammerhead_ribozyme';
  7406. --- ************************************************
  7407. --- *** relation: group_iia_intron ***
  7408. --- *** relation type: VIEW ***
  7409. --- *** ***
  7410. --- ************************************************
  7411. ---
  7412. CREATE VIEW group_iia_intron AS
  7413. SELECT
  7414. feature_id AS group_iia_intron_id,
  7415. feature.*
  7416. FROM
  7417. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7418. WHERE cvterm.name = 'group_IIA_intron';
  7419. --- ************************************************
  7420. --- *** relation: group_iib_intron ***
  7421. --- *** relation type: VIEW ***
  7422. --- *** ***
  7423. --- ************************************************
  7424. ---
  7425. CREATE VIEW group_iib_intron AS
  7426. SELECT
  7427. feature_id AS group_iib_intron_id,
  7428. feature.*
  7429. FROM
  7430. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7431. WHERE cvterm.name = 'group_IIB_intron';
  7432. --- ************************************************
  7433. --- *** relation: micf_rna ***
  7434. --- *** relation type: VIEW ***
  7435. --- *** ***
  7436. --- *** A non-translated 93 nt antisense RNA tha ***
  7437. --- *** t binds its target ompF mRNA and regulat ***
  7438. --- *** es ompF expression by inhibiting transla ***
  7439. --- *** tion and inducing degradation of the mes ***
  7440. --- *** sage. ***
  7441. --- ************************************************
  7442. ---
  7443. CREATE VIEW micf_rna AS
  7444. SELECT
  7445. feature_id AS micf_rna_id,
  7446. feature.*
  7447. FROM
  7448. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7449. WHERE cvterm.name = 'MicF_RNA';
  7450. --- ************************************************
  7451. --- *** relation: oxys_rna ***
  7452. --- *** relation type: VIEW ***
  7453. --- *** ***
  7454. --- *** A small untranslated RNA which is induce ***
  7455. --- *** d in response to oxidative stress in Esc ***
  7456. --- *** herichia coli. Acts as a global regulato ***
  7457. --- *** r to activate or repress the expression ***
  7458. --- *** of as many as 40 genes, including the fh ***
  7459. --- *** lA-encoded transcriptional activator and ***
  7460. --- *** the rpoS-encoded sigma(s) subunit of RN ***
  7461. --- *** A polymerase. OxyS is bound by the Hfq p ***
  7462. --- *** rotein, that increases the OxyS RNA inte ***
  7463. --- *** raction with its target messages. ***
  7464. --- ************************************************
  7465. ---
  7466. CREATE VIEW oxys_rna AS
  7467. SELECT
  7468. feature_id AS oxys_rna_id,
  7469. feature.*
  7470. FROM
  7471. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7472. WHERE cvterm.name = 'OxyS_RNA';
  7473. --- ************************************************
  7474. --- *** relation: rnase_mrp_rna ***
  7475. --- *** relation type: VIEW ***
  7476. --- *** ***
  7477. --- *** The RNA molecule essential for the catal ***
  7478. --- *** ytic activity of RNase MRP, an enzymatic ***
  7479. --- *** ally active ribonucleoprotein with two d ***
  7480. --- *** istinct roles in eukaryotes. In mitochon ***
  7481. --- *** dria it plays a direct role in the initi ***
  7482. --- *** ation of mitochondrial DNA replication. ***
  7483. --- *** In the nucleus it is involved in precurs ***
  7484. --- *** or rRNA processing, where it cleaves the ***
  7485. --- *** internal transcribed spacer 1 between 1 ***
  7486. --- *** 8S and 5.8S rRNAs. ***
  7487. --- ************************************************
  7488. ---
  7489. CREATE VIEW rnase_mrp_rna AS
  7490. SELECT
  7491. feature_id AS rnase_mrp_rna_id,
  7492. feature.*
  7493. FROM
  7494. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7495. WHERE cvterm.name = 'RNase_MRP_RNA';
  7496. --- ************************************************
  7497. --- *** relation: rnase_p_rna ***
  7498. --- *** relation type: VIEW ***
  7499. --- *** ***
  7500. --- *** The RNA component of Ribonuclease P (RNa ***
  7501. --- *** se P), a ubiquitous endoribonuclease, fo ***
  7502. --- *** und in archaea, bacteria and eukarya as ***
  7503. --- *** well as chloroplasts and mitochondria. I ***
  7504. --- *** ts best characterised activity is the ge ***
  7505. --- *** neration of mature 5 prime ends of tRNAs ***
  7506. --- *** by cleaving the 5 prime leader elements ***
  7507. --- *** of precursor-tRNAs. Cellular RNase Ps a ***
  7508. --- *** re ribonucleoproteins. RNA from bacteria ***
  7509. --- *** l RNase Ps retains its catalytic activit ***
  7510. --- *** y in the absence of the protein subunit, ***
  7511. --- *** i.e. it is a ribozyme. Isolated eukaryo ***
  7512. --- *** tic and archaeal RNase P RNA has not bee ***
  7513. --- *** n shown to retain its catalytic function ***
  7514. --- *** , but is still essential for the catalyt ***
  7515. --- *** ic activity of the holoenzyme. Although ***
  7516. --- *** the archaeal and eukaryotic holoenzymes ***
  7517. --- *** have a much greater protein content than ***
  7518. --- *** the bacterial ones, the RNA cores from ***
  7519. --- *** all the three lineages are homologous. H ***
  7520. --- *** elices corresponding to P1, P2, P3, P4, ***
  7521. --- *** and P10/11 are common to all cellular RN ***
  7522. --- *** ase P RNAs. Yet, there is considerable s ***
  7523. --- *** equence variation, particularly among th ***
  7524. --- *** e eukaryotic RNAs. ***
  7525. --- ************************************************
  7526. ---
  7527. CREATE VIEW rnase_p_rna AS
  7528. SELECT
  7529. feature_id AS rnase_p_rna_id,
  7530. feature.*
  7531. FROM
  7532. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7533. WHERE cvterm.name = 'RNase_P_RNA';
  7534. --- ************************************************
  7535. --- *** relation: rpra_rna ***
  7536. --- *** relation type: VIEW ***
  7537. --- *** ***
  7538. --- *** Translational regulation of the stationa ***
  7539. --- *** ry phase sigma factor RpoS is mediated b ***
  7540. --- *** y the formation of a double-stranded RNA ***
  7541. --- *** stem-loop structure in the upstream reg ***
  7542. --- *** ion of the rpoS messenger RNA, occluding ***
  7543. --- *** the translation initiation site. Clones ***
  7544. --- *** carrying rprA (RpoS regulator RNA) incr ***
  7545. --- *** eased the translation of RpoS. The rprA ***
  7546. --- *** gene encodes a 106 nucleotide regulatory ***
  7547. --- *** RNA. As with DsrA Rfam:RF00014, RprA is ***
  7548. --- *** predicted to form three stem-loops. Thu ***
  7549. --- *** s, at least two small RNAs, DsrA and Rpr ***
  7550. --- *** A, participate in the positive regulatio ***
  7551. --- *** n of RpoS translation. Unlike DsrA, RprA ***
  7552. --- *** does not have an extensive region of co ***
  7553. --- *** mplementarity to the RpoS leader, leavin ***
  7554. --- *** g its mechanism of action unclear. RprA ***
  7555. --- *** is non-essential. ***
  7556. --- ************************************************
  7557. ---
  7558. CREATE VIEW rpra_rna AS
  7559. SELECT
  7560. feature_id AS rpra_rna_id,
  7561. feature.*
  7562. FROM
  7563. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7564. WHERE cvterm.name = 'RprA_RNA';
  7565. --- ************************************************
  7566. --- *** relation: rre_rna ***
  7567. --- *** relation type: VIEW ***
  7568. --- *** ***
  7569. --- *** The Rev response element (RRE) is encode ***
  7570. --- *** d within the HIV-env gene. Rev is an ess ***
  7571. --- *** ential regulatory protein of HIV that bi ***
  7572. --- *** nds an internal loop of the RRE leading, ***
  7573. --- *** encouraging further Rev-RRE binding. Th ***
  7574. --- *** is RNP complex is critical for mRNA expo ***
  7575. --- *** rt and hence for expression of the HIV s ***
  7576. --- *** tructural proteins. ***
  7577. --- ************************************************
  7578. ---
  7579. CREATE VIEW rre_rna AS
  7580. SELECT
  7581. feature_id AS rre_rna_id,
  7582. feature.*
  7583. FROM
  7584. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7585. WHERE cvterm.name = 'RRE_RNA';
  7586. --- ************************************************
  7587. --- *** relation: spot_42_rna ***
  7588. --- *** relation type: VIEW ***
  7589. --- *** ***
  7590. --- *** A 109-nucleotide RNA of E. coli that see ***
  7591. --- *** ms to have a regulatory role on the gala ***
  7592. --- *** ctose operon. Changes in Spot 42 levels ***
  7593. --- *** are implicated in affecting DNA polymera ***
  7594. --- *** se I levels. ***
  7595. --- ************************************************
  7596. ---
  7597. CREATE VIEW spot_42_rna AS
  7598. SELECT
  7599. feature_id AS spot_42_rna_id,
  7600. feature.*
  7601. FROM
  7602. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7603. WHERE cvterm.name = 'spot_42_RNA';
  7604. --- ************************************************
  7605. --- *** relation: telomerase_rna ***
  7606. --- *** relation type: VIEW ***
  7607. --- *** ***
  7608. --- *** The RNA component of telomerase, a rever ***
  7609. --- *** se transcriptase that synthesises telome ***
  7610. --- *** ric DNA. ***
  7611. --- ************************************************
  7612. ---
  7613. CREATE VIEW telomerase_rna AS
  7614. SELECT
  7615. feature_id AS telomerase_rna_id,
  7616. feature.*
  7617. FROM
  7618. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7619. WHERE cvterm.name = 'telomerase_RNA';
  7620. --- ************************************************
  7621. --- *** relation: u1_snrna ***
  7622. --- *** relation type: VIEW ***
  7623. --- *** ***
  7624. --- *** U1 is a small nuclear RNA (snRNA) compon ***
  7625. --- *** ent of the spliceosome (involved in pre- ***
  7626. --- *** mRNA splicing). Its 5' end forms complem ***
  7627. --- *** entary base pairs with the 5' splice jun ***
  7628. --- *** ction, thus defining the 5' donor site o ***
  7629. --- *** f an intron. There are significant diffe ***
  7630. --- *** rences in sequence and secondary structu ***
  7631. --- *** re between metazoan and yeast U1 snRNAs, ***
  7632. --- *** the latter being much longer (568 nucle ***
  7633. --- *** otides as compared to 164 nucleotides in ***
  7634. --- *** human). Nevertheless, secondary structu ***
  7635. --- *** re predictions suggest that all U1 snRNA ***
  7636. --- *** s share a 'common core' consisting of he ***
  7637. --- *** lices I, II, the proximal region of III, ***
  7638. --- *** and IV. ***
  7639. --- ************************************************
  7640. ---
  7641. CREATE VIEW u1_snrna AS
  7642. SELECT
  7643. feature_id AS u1_snrna_id,
  7644. feature.*
  7645. FROM
  7646. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7647. WHERE cvterm.name = 'U1_snRNA';
  7648. --- ************************************************
  7649. --- *** relation: u2_snrna ***
  7650. --- *** relation type: VIEW ***
  7651. --- *** ***
  7652. --- *** U2 is a small nuclear RNA (snRNA) compon ***
  7653. --- *** ent of the spliceosome (involved in pre- ***
  7654. --- *** mRNA splicing). Complementary binding be ***
  7655. --- *** tween U2 snRNA (in an area lying towards ***
  7656. --- *** the 5' end but 3' to hairpin I) and the ***
  7657. --- *** branchpoint sequence (BPS) of the intro ***
  7658. --- *** n results in the bulging out of an unpai ***
  7659. --- *** red adenine, on the BPS, which initiates ***
  7660. --- *** a nucleophilic attack at the intronic 5 ***
  7661. --- *** ' splice site, thus starting the first o ***
  7662. --- *** f two transesterification reactions that ***
  7663. --- *** mediate splicing. ***
  7664. --- ************************************************
  7665. ---
  7666. CREATE VIEW u2_snrna AS
  7667. SELECT
  7668. feature_id AS u2_snrna_id,
  7669. feature.*
  7670. FROM
  7671. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7672. WHERE cvterm.name = 'U2_snRNA';
  7673. --- ************************************************
  7674. --- *** relation: u4_snrna ***
  7675. --- *** relation type: VIEW ***
  7676. --- *** ***
  7677. --- *** U4 small nuclear RNA (U4 snRNA) is a com ***
  7678. --- *** ponent of the major U2-dependent spliceo ***
  7679. --- *** some. It forms a duplex with U6, and wit ***
  7680. --- *** h each splicing round, it is displaced f ***
  7681. --- *** rom U6 (and the spliceosome) in an ATP-d ***
  7682. --- *** ependent manner, allowing U6 to refold a ***
  7683. --- *** nd create the active site for splicing c ***
  7684. --- *** atalysis. A recycling process involving ***
  7685. --- *** protein Prp24 re-anneals U4 and U6. ***
  7686. --- ************************************************
  7687. ---
  7688. CREATE VIEW u4_snrna AS
  7689. SELECT
  7690. feature_id AS u4_snrna_id,
  7691. feature.*
  7692. FROM
  7693. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7694. WHERE cvterm.name = 'U4_snRNA';
  7695. --- ************************************************
  7696. --- *** relation: u4atac_snrna ***
  7697. --- *** relation type: VIEW ***
  7698. --- *** ***
  7699. --- *** An snRNA required for the splicing of th ***
  7700. --- *** e minor U12-dependent class of eukaryoti ***
  7701. --- *** c nuclear introns. It forms a base paire ***
  7702. --- *** d complex with U6atac_snRNA (SO:0000397) ***
  7703. --- *** . ***
  7704. --- ************************************************
  7705. ---
  7706. CREATE VIEW u4atac_snrna AS
  7707. SELECT
  7708. feature_id AS u4atac_snrna_id,
  7709. feature.*
  7710. FROM
  7711. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7712. WHERE cvterm.name = 'U4atac_snRNA';
  7713. --- ************************************************
  7714. --- *** relation: u5_snrna ***
  7715. --- *** relation type: VIEW ***
  7716. --- *** ***
  7717. --- *** U5 RNA is a component of both types of k ***
  7718. --- *** nown spliceosome. The precise function o ***
  7719. --- *** f this molecule is unknown, though it is ***
  7720. --- *** known that the 5' loop is required for ***
  7721. --- *** splice site selection and p220 binding, ***
  7722. --- *** and that both the 3' stem-loop and the S ***
  7723. --- *** m site are important for Sm protein bind ***
  7724. --- *** ing and cap methylation. ***
  7725. --- ************************************************
  7726. ---
  7727. CREATE VIEW u5_snrna AS
  7728. SELECT
  7729. feature_id AS u5_snrna_id,
  7730. feature.*
  7731. FROM
  7732. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7733. WHERE cvterm.name = 'U5_snRNA';
  7734. --- ************************************************
  7735. --- *** relation: u6_snrna ***
  7736. --- *** relation type: VIEW ***
  7737. --- *** ***
  7738. --- *** U6 snRNA is a component of the spliceoso ***
  7739. --- *** me which is involved in splicing pre-mRN ***
  7740. --- *** A. The putative secondary structure cons ***
  7741. --- *** ensus base pairing is confined to a shor ***
  7742. --- *** t 5' stem loop, but U6 snRNA is thought ***
  7743. --- *** to form extensive base-pair interactions ***
  7744. --- *** with U4 snRNA. ***
  7745. --- ************************************************
  7746. ---
  7747. CREATE VIEW u6_snrna AS
  7748. SELECT
  7749. feature_id AS u6_snrna_id,
  7750. feature.*
  7751. FROM
  7752. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7753. WHERE cvterm.name = 'U6_snRNA';
  7754. --- ************************************************
  7755. --- *** relation: u6atac_snrna ***
  7756. --- *** relation type: VIEW ***
  7757. --- *** ***
  7758. --- *** U6atac_snRNA is an snRNA required for th ***
  7759. --- *** e splicing of the minor U12-dependent cl ***
  7760. --- *** ass of eukaryotic nuclear introns. It fo ***
  7761. --- *** rms a base paired complex with U4atac_sn ***
  7762. --- *** RNA (SO:0000394). ***
  7763. --- ************************************************
  7764. ---
  7765. CREATE VIEW u6atac_snrna AS
  7766. SELECT
  7767. feature_id AS u6atac_snrna_id,
  7768. feature.*
  7769. FROM
  7770. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7771. WHERE cvterm.name = 'U6atac_snRNA';
  7772. --- ************************************************
  7773. --- *** relation: u11_snrna ***
  7774. --- *** relation type: VIEW ***
  7775. --- *** ***
  7776. --- *** U11 snRNA plays a role in splicing of th ***
  7777. --- *** e minor U12-dependent class of eukaryoti ***
  7778. --- *** c nuclear introns, similar to U1 snRNA i ***
  7779. --- *** n the major class spliceosome it base pa ***
  7780. --- *** irs to the conserved 5' splice site sequ ***
  7781. --- *** ence. ***
  7782. --- ************************************************
  7783. ---
  7784. CREATE VIEW u11_snrna AS
  7785. SELECT
  7786. feature_id AS u11_snrna_id,
  7787. feature.*
  7788. FROM
  7789. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7790. WHERE cvterm.name = 'U11_snRNA';
  7791. --- ************************************************
  7792. --- *** relation: u12_snrna ***
  7793. --- *** relation type: VIEW ***
  7794. --- *** ***
  7795. --- *** The U12 small nuclear (snRNA), together ***
  7796. --- *** with U4atac/U6atac, U5, and U11 snRNAs a ***
  7797. --- *** nd associated proteins, forms a spliceos ***
  7798. --- *** ome that cleaves a divergent class of lo ***
  7799. --- *** w-abundance pre-mRNA introns. ***
  7800. --- ************************************************
  7801. ---
  7802. CREATE VIEW u12_snrna AS
  7803. SELECT
  7804. feature_id AS u12_snrna_id,
  7805. feature.*
  7806. FROM
  7807. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7808. WHERE cvterm.name = 'U12_snRNA';
  7809. --- ************************************************
  7810. --- *** relation: sequence_attribute ***
  7811. --- *** relation type: VIEW ***
  7812. --- *** ***
  7813. --- *** An attribute describes a quality of sequ ***
  7814. --- *** ence. ***
  7815. --- ************************************************
  7816. ---
  7817. CREATE VIEW sequence_attribute AS
  7818. SELECT
  7819. feature_id AS sequence_attribute_id,
  7820. feature.*
  7821. FROM
  7822. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7823. WHERE cvterm.name = 'polymer_attribute' OR cvterm.name = 'feature_attribute' OR cvterm.name = 'sequence_location' 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' 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 = '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 = '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 = 'single' OR cvterm.name = 'double' OR cvterm.name = 'forward' OR cvterm.name = 'reverse' OR cvterm.name = 'ribozymic' 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 = 'sequence_attribute';
  7824. --- ************************************************
  7825. --- *** relation: gene_attribute ***
  7826. --- *** relation type: VIEW ***
  7827. --- *** ***
  7828. --- ************************************************
  7829. ---
  7830. CREATE VIEW gene_attribute AS
  7831. SELECT
  7832. feature_id AS gene_attribute_id,
  7833. feature.*
  7834. FROM
  7835. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7836. 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';
  7837. --- ************************************************
  7838. --- *** relation: u14_snorna ***
  7839. --- *** relation type: VIEW ***
  7840. --- *** ***
  7841. --- *** U14 small nucleolar RNA (U14 snoRNA) is ***
  7842. --- *** required for early cleavages of eukaryot ***
  7843. --- *** ic precursor rRNAs. In yeasts, this mole ***
  7844. --- *** cule possess a stem-loop region (known a ***
  7845. --- *** s the Y-domain) which is essential for f ***
  7846. --- *** unction. A similar structure, but with a ***
  7847. --- *** different consensus sequence, is found ***
  7848. --- *** in plants, but is absent in vertebrates. ***
  7849. --- ************************************************
  7850. ---
  7851. CREATE VIEW u14_snorna AS
  7852. SELECT
  7853. feature_id AS u14_snorna_id,
  7854. feature.*
  7855. FROM
  7856. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7857. WHERE cvterm.name = 'U14_snoRNA';
  7858. --- ************************************************
  7859. --- *** relation: vault_rna ***
  7860. --- *** relation type: VIEW ***
  7861. --- *** ***
  7862. --- *** A family of RNAs are found as part of th ***
  7863. --- *** e enigmatic vault ribonucleoprotein comp ***
  7864. --- *** lex. The complex consists of a major vau ***
  7865. --- *** lt protein (MVP), two minor vault protei ***
  7866. --- *** ns (VPARP and TEP1), and several small u ***
  7867. --- *** ntranslated RNA molecules. It has been s ***
  7868. --- *** uggested that the vault complex is invol ***
  7869. --- *** ved in drug resistance. ***
  7870. --- ************************************************
  7871. ---
  7872. CREATE VIEW vault_rna AS
  7873. SELECT
  7874. feature_id AS vault_rna_id,
  7875. feature.*
  7876. FROM
  7877. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7878. WHERE cvterm.name = 'vault_RNA';
  7879. --- ************************************************
  7880. --- *** relation: y_rna ***
  7881. --- *** relation type: VIEW ***
  7882. --- *** ***
  7883. --- *** Y RNAs are components of the Ro ribonucl ***
  7884. --- *** eoprotein particle (Ro RNP), in associat ***
  7885. --- *** ion with Ro60 and La proteins. The Y RNA ***
  7886. --- *** s and Ro60 and La proteins are well cons ***
  7887. --- *** erved, but the function of the Ro RNP is ***
  7888. --- *** not known. In humans the RNA component ***
  7889. --- *** can be one of four small RNAs: hY1, hY3, ***
  7890. --- *** hY4 and hY5. These small RNAs are predi ***
  7891. --- *** cted to fold into a conserved secondary ***
  7892. --- *** structure containing three stem structur ***
  7893. --- *** es. The largest of the four, hY1, contai ***
  7894. --- *** ns an additional hairpin. ***
  7895. --- ************************************************
  7896. ---
  7897. CREATE VIEW y_rna AS
  7898. SELECT
  7899. feature_id AS y_rna_id,
  7900. feature.*
  7901. FROM
  7902. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7903. WHERE cvterm.name = 'Y_RNA';
  7904. --- ************************************************
  7905. --- *** relation: twintron ***
  7906. --- *** relation type: VIEW ***
  7907. --- *** ***
  7908. --- *** An intron within an intron. Twintrons ar ***
  7909. --- *** e group II or III introns, into which an ***
  7910. --- *** other group II or III intron has been tr ***
  7911. --- *** ansposed. ***
  7912. --- ************************************************
  7913. ---
  7914. CREATE VIEW twintron AS
  7915. SELECT
  7916. feature_id AS twintron_id,
  7917. feature.*
  7918. FROM
  7919. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7920. WHERE cvterm.name = 'twintron';
  7921. --- ************************************************
  7922. --- *** relation: rrna_18s ***
  7923. --- *** relation type: VIEW ***
  7924. --- *** ***
  7925. --- *** A large polynucleotide in eukaryotes, wh ***
  7926. --- *** ich functions as the small subunit of th ***
  7927. --- *** e ribosome. ***
  7928. --- ************************************************
  7929. ---
  7930. CREATE VIEW rrna_18s AS
  7931. SELECT
  7932. feature_id AS rrna_18s_id,
  7933. feature.*
  7934. FROM
  7935. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7936. WHERE cvterm.name = 'rRNA_18S';
  7937. --- ************************************************
  7938. --- *** relation: binding_site ***
  7939. --- *** relation type: VIEW ***
  7940. --- *** ***
  7941. --- *** A region on the surface of a molecule th ***
  7942. --- *** at may interact with another molecule. W ***
  7943. --- *** hen applied to polypeptides: Amino acids ***
  7944. --- *** involved in binding or interactions. It ***
  7945. --- *** can also apply to an amino acid bond wh ***
  7946. --- *** ich is represented by the positions of t ***
  7947. --- *** he two flanking amino acids. ***
  7948. --- ************************************************
  7949. ---
  7950. CREATE VIEW binding_site AS
  7951. SELECT
  7952. feature_id AS binding_site_id,
  7953. feature.*
  7954. FROM
  7955. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7956. WHERE cvterm.name = 'protein_binding_site' OR cvterm.name = 'miRNA_target_site' OR cvterm.name = 'epitope' OR cvterm.name = 'polypeptide_metal_contact' OR cvterm.name = 'protein_protein_contact' OR cvterm.name = 'polypeptide_ligand_contact' OR cvterm.name = 'DNA_binding_site' OR cvterm.name = 'primer_binding_site' OR cvterm.name = 'polypeptide_DNA_contact' 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 = 'INR_motif' OR cvterm.name = 'DPE_motif' OR cvterm.name = 'BRE_motif' OR cvterm.name = 'CAAT_signal' OR cvterm.name = 'TATA_box' OR cvterm.name = 'A_box' OR cvterm.name = 'B_box' OR cvterm.name = 'C_box' OR cvterm.name = 'DRE_motif' OR cvterm.name = 'E_box_motif' OR cvterm.name = 'MTE' OR cvterm.name = 'INR1_motif' OR cvterm.name = 'GAGA_motif' OR cvterm.name = 'octamer_motif' 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 = 'binding_site';
  7957. --- ************************************************
  7958. --- *** relation: protein_binding_site ***
  7959. --- *** relation type: VIEW ***
  7960. --- *** ***
  7961. --- *** A region of a molecule that binds to a p ***
  7962. --- *** rotein. ***
  7963. --- ************************************************
  7964. ---
  7965. CREATE VIEW protein_binding_site AS
  7966. SELECT
  7967. feature_id AS protein_binding_site_id,
  7968. feature.*
  7969. FROM
  7970. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7971. 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 = 'INR_motif' OR cvterm.name = 'DPE_motif' OR cvterm.name = 'BRE_motif' OR cvterm.name = 'CAAT_signal' OR cvterm.name = 'TATA_box' OR cvterm.name = 'A_box' OR cvterm.name = 'B_box' OR cvterm.name = 'C_box' OR cvterm.name = 'DRE_motif' OR cvterm.name = 'E_box_motif' OR cvterm.name = 'MTE' OR cvterm.name = 'INR1_motif' OR cvterm.name = 'GAGA_motif' OR cvterm.name = 'octamer_motif' OR cvterm.name = 'protein_binding_site';
  7972. --- ************************************************
  7973. --- *** relation: rescue_region ***
  7974. --- *** relation type: VIEW ***
  7975. --- *** ***
  7976. --- *** A region that rescues. ***
  7977. --- ************************************************
  7978. ---
  7979. CREATE VIEW rescue_region AS
  7980. SELECT
  7981. feature_id AS rescue_region_id,
  7982. feature.*
  7983. FROM
  7984. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7985. WHERE cvterm.name = 'engineered_rescue_region' OR cvterm.name = 'rescue_region';
  7986. --- ************************************************
  7987. --- *** relation: restriction_fragment ***
  7988. --- *** relation type: VIEW ***
  7989. --- *** ***
  7990. --- *** A region of polynucleotide sequence prod ***
  7991. --- *** uced by digestion with a restriction end ***
  7992. --- *** onuclease. ***
  7993. --- ************************************************
  7994. ---
  7995. CREATE VIEW restriction_fragment AS
  7996. SELECT
  7997. feature_id AS restriction_fragment_id,
  7998. feature.*
  7999. FROM
  8000. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8001. WHERE cvterm.name = 'RFLP_fragment' OR cvterm.name = 'restriction_fragment';
  8002. --- ************************************************
  8003. --- *** relation: sequence_difference ***
  8004. --- *** relation type: VIEW ***
  8005. --- *** ***
  8006. --- *** A region where the sequence differs from ***
  8007. --- *** that of a specified sequence. ***
  8008. --- ************************************************
  8009. ---
  8010. CREATE VIEW sequence_difference AS
  8011. SELECT
  8012. feature_id AS sequence_difference_id,
  8013. feature.*
  8014. FROM
  8015. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8016. WHERE cvterm.name = 'possible_base_call_error' OR cvterm.name = 'possible_assembly_error' OR cvterm.name = 'sequence_difference';
  8017. --- ************************************************
  8018. --- *** relation: invalidated_by_genomic_contamination ***
  8019. --- *** relation type: VIEW ***
  8020. --- *** ***
  8021. --- *** An attribute to describe a feature that ***
  8022. --- *** is invalidated due to genomic contaminat ***
  8023. --- *** ion. ***
  8024. --- ************************************************
  8025. ---
  8026. CREATE VIEW invalidated_by_genomic_contamination AS
  8027. SELECT
  8028. feature_id AS invalidated_by_genomic_contamination_id,
  8029. feature.*
  8030. FROM
  8031. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8032. WHERE cvterm.name = 'invalidated_by_genomic_contamination';
  8033. --- ************************************************
  8034. --- *** relation: invalidated_by_genomic_polya_primed_cdna ***
  8035. --- *** relation type: VIEW ***
  8036. --- *** ***
  8037. --- *** An attribute to describe a feature that ***
  8038. --- *** is invalidated due to polyA priming. ***
  8039. --- ************************************************
  8040. ---
  8041. CREATE VIEW invalidated_by_genomic_polya_primed_cdna AS
  8042. SELECT
  8043. feature_id AS invalidated_by_genomic_polya_primed_cdna_id,
  8044. feature.*
  8045. FROM
  8046. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8047. WHERE cvterm.name = 'invalidated_by_genomic_polyA_primed_cDNA';
  8048. --- ************************************************
  8049. --- *** relation: invalidated_by_partial_processing ***
  8050. --- *** relation type: VIEW ***
  8051. --- *** ***
  8052. --- *** An attribute to describe a feature that ***
  8053. --- *** is invalidated due to partial processing ***
  8054. --- *** . ***
  8055. --- ************************************************
  8056. ---
  8057. CREATE VIEW invalidated_by_partial_processing AS
  8058. SELECT
  8059. feature_id AS invalidated_by_partial_processing_id,
  8060. feature.*
  8061. FROM
  8062. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8063. WHERE cvterm.name = 'invalidated_by_partial_processing';
  8064. --- ************************************************
  8065. --- *** relation: polypeptide_domain ***
  8066. --- *** relation type: VIEW ***
  8067. --- *** ***
  8068. --- *** A structurally or functionally defined p ***
  8069. --- *** rotein region. In proteins with multiple ***
  8070. --- *** domains, the combination of the domains ***
  8071. --- *** determines the function of the protein. ***
  8072. --- *** A region which has been shown to recur ***
  8073. --- *** throughout evolution. ***
  8074. --- ************************************************
  8075. ---
  8076. CREATE VIEW polypeptide_domain AS
  8077. SELECT
  8078. feature_id AS polypeptide_domain_id,
  8079. feature.*
  8080. FROM
  8081. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8082. WHERE cvterm.name = 'polypeptide_domain';
  8083. --- ************************************************
  8084. --- *** relation: signal_peptide ***
  8085. --- *** relation type: VIEW ***
  8086. --- *** ***
  8087. --- *** The signal_peptide is a short region of ***
  8088. --- *** the peptide located at the N-terminus th ***
  8089. --- *** at directs the protein to be secreted or ***
  8090. --- *** part of membrane components. ***
  8091. --- ************************************************
  8092. ---
  8093. CREATE VIEW signal_peptide AS
  8094. SELECT
  8095. feature_id AS signal_peptide_id,
  8096. feature.*
  8097. FROM
  8098. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8099. WHERE cvterm.name = 'signal_peptide';
  8100. --- ************************************************
  8101. --- *** relation: mature_protein_region ***
  8102. --- *** relation type: VIEW ***
  8103. --- *** ***
  8104. --- *** The polypeptide sequence that remains wh ***
  8105. --- *** en the cleaved peptide regions have been ***
  8106. --- *** cleaved from the immature peptide. ***
  8107. --- ************************************************
  8108. ---
  8109. CREATE VIEW mature_protein_region AS
  8110. SELECT
  8111. feature_id AS mature_protein_region_id,
  8112. feature.*
  8113. FROM
  8114. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8115. WHERE cvterm.name = 'active_peptide' OR cvterm.name = 'mature_protein_region';
  8116. --- ************************************************
  8117. --- *** relation: five_prime_terminal_inverted_repeat ***
  8118. --- *** relation type: VIEW ***
  8119. --- *** ***
  8120. --- ************************************************
  8121. ---
  8122. CREATE VIEW five_prime_terminal_inverted_repeat AS
  8123. SELECT
  8124. feature_id AS five_prime_terminal_inverted_repeat_id,
  8125. feature.*
  8126. FROM
  8127. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8128. WHERE cvterm.name = 'five_prime_terminal_inverted_repeat';
  8129. --- ************************************************
  8130. --- *** relation: three_prime_terminal_inverted_repeat ***
  8131. --- *** relation type: VIEW ***
  8132. --- *** ***
  8133. --- ************************************************
  8134. ---
  8135. CREATE VIEW three_prime_terminal_inverted_repeat AS
  8136. SELECT
  8137. feature_id AS three_prime_terminal_inverted_repeat_id,
  8138. feature.*
  8139. FROM
  8140. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8141. WHERE cvterm.name = 'three_prime_terminal_inverted_repeat';
  8142. --- ************************************************
  8143. --- *** relation: u5_ltr_region ***
  8144. --- *** relation type: VIEW ***
  8145. --- *** ***
  8146. --- ************************************************
  8147. ---
  8148. CREATE VIEW u5_ltr_region AS
  8149. SELECT
  8150. feature_id AS u5_ltr_region_id,
  8151. feature.*
  8152. FROM
  8153. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8154. WHERE cvterm.name = 'U5_five_prime_LTR_region' OR cvterm.name = 'U5_LTR_region';
  8155. --- ************************************************
  8156. --- *** relation: r_ltr_region ***
  8157. --- *** relation type: VIEW ***
  8158. --- *** ***
  8159. --- ************************************************
  8160. ---
  8161. CREATE VIEW r_ltr_region AS
  8162. SELECT
  8163. feature_id AS r_ltr_region_id,
  8164. feature.*
  8165. FROM
  8166. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8167. WHERE cvterm.name = 'R_five_prime_LTR_region' OR cvterm.name = 'R_LTR_region';
  8168. --- ************************************************
  8169. --- *** relation: u3_ltr_region ***
  8170. --- *** relation type: VIEW ***
  8171. --- *** ***
  8172. --- ************************************************
  8173. ---
  8174. CREATE VIEW u3_ltr_region AS
  8175. SELECT
  8176. feature_id AS u3_ltr_region_id,
  8177. feature.*
  8178. FROM
  8179. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8180. WHERE cvterm.name = 'U3_five_prime_LTR_region' OR cvterm.name = 'U3_LTR_region';
  8181. --- ************************************************
  8182. --- *** relation: five_prime_ltr ***
  8183. --- *** relation type: VIEW ***
  8184. --- *** ***
  8185. --- ************************************************
  8186. ---
  8187. CREATE VIEW five_prime_ltr AS
  8188. SELECT
  8189. feature_id AS five_prime_ltr_id,
  8190. feature.*
  8191. FROM
  8192. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8193. WHERE cvterm.name = 'five_prime_LTR';
  8194. --- ************************************************
  8195. --- *** relation: three_prime_ltr ***
  8196. --- *** relation type: VIEW ***
  8197. --- *** ***
  8198. --- ************************************************
  8199. ---
  8200. CREATE VIEW three_prime_ltr AS
  8201. SELECT
  8202. feature_id AS three_prime_ltr_id,
  8203. feature.*
  8204. FROM
  8205. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8206. WHERE cvterm.name = 'three_prime_LTR';
  8207. --- ************************************************
  8208. --- *** relation: r_five_prime_ltr_region ***
  8209. --- *** relation type: VIEW ***
  8210. --- *** ***
  8211. --- ************************************************
  8212. ---
  8213. CREATE VIEW r_five_prime_ltr_region AS
  8214. SELECT
  8215. feature_id AS r_five_prime_ltr_region_id,
  8216. feature.*
  8217. FROM
  8218. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8219. WHERE cvterm.name = 'R_five_prime_LTR_region';
  8220. --- ************************************************
  8221. --- *** relation: u5_five_prime_ltr_region ***
  8222. --- *** relation type: VIEW ***
  8223. --- *** ***
  8224. --- ************************************************
  8225. ---
  8226. CREATE VIEW u5_five_prime_ltr_region AS
  8227. SELECT
  8228. feature_id AS u5_five_prime_ltr_region_id,
  8229. feature.*
  8230. FROM
  8231. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8232. WHERE cvterm.name = 'U5_five_prime_LTR_region';
  8233. --- ************************************************
  8234. --- *** relation: u3_five_prime_ltr_region ***
  8235. --- *** relation type: VIEW ***
  8236. --- *** ***
  8237. --- ************************************************
  8238. ---
  8239. CREATE VIEW u3_five_prime_ltr_region AS
  8240. SELECT
  8241. feature_id AS u3_five_prime_ltr_region_id,
  8242. feature.*
  8243. FROM
  8244. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8245. WHERE cvterm.name = 'U3_five_prime_LTR_region';
  8246. --- ************************************************
  8247. --- *** relation: r_three_prime_ltr_region ***
  8248. --- *** relation type: VIEW ***
  8249. --- *** ***
  8250. --- ************************************************
  8251. ---
  8252. CREATE VIEW r_three_prime_ltr_region AS
  8253. SELECT
  8254. feature_id AS r_three_prime_ltr_region_id,
  8255. feature.*
  8256. FROM
  8257. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8258. WHERE cvterm.name = 'R_three_prime_LTR_region';
  8259. --- ************************************************
  8260. --- *** relation: u3_three_prime_ltr_region ***
  8261. --- *** relation type: VIEW ***
  8262. --- *** ***
  8263. --- ************************************************
  8264. ---
  8265. CREATE VIEW u3_three_prime_ltr_region AS
  8266. SELECT
  8267. feature_id AS u3_three_prime_ltr_region_id,
  8268. feature.*
  8269. FROM
  8270. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8271. WHERE cvterm.name = 'U3_three_prime_LTR_region';
  8272. --- ************************************************
  8273. --- *** relation: u5_three_prime_ltr_region ***
  8274. --- *** relation type: VIEW ***
  8275. --- *** ***
  8276. --- ************************************************
  8277. ---
  8278. CREATE VIEW u5_three_prime_ltr_region AS
  8279. SELECT
  8280. feature_id AS u5_three_prime_ltr_region_id,
  8281. feature.*
  8282. FROM
  8283. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8284. WHERE cvterm.name = 'U5_three_prime_LTR_region';
  8285. --- ************************************************
  8286. --- *** relation: non_ltr_retrotransposon_polymeric_tract ***
  8287. --- *** relation type: VIEW ***
  8288. --- *** ***
  8289. --- *** A polymeric tract, such as poly(dA), wit ***
  8290. --- *** hin a non_LTR_retrotransposon. ***
  8291. --- ************************************************
  8292. ---
  8293. CREATE VIEW non_ltr_retrotransposon_polymeric_tract AS
  8294. SELECT
  8295. feature_id AS non_ltr_retrotransposon_polymeric_tract_id,
  8296. feature.*
  8297. FROM
  8298. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8299. WHERE cvterm.name = 'non_LTR_retrotransposon_polymeric_tract';
  8300. --- ************************************************
  8301. --- *** relation: target_site_duplication ***
  8302. --- *** relation type: VIEW ***
  8303. --- *** ***
  8304. --- *** A sequence of the target DNA that is dup ***
  8305. --- *** licated when a transposable element or p ***
  8306. --- *** hage inserts; usually found at each end ***
  8307. --- *** the insertion. ***
  8308. --- ************************************************
  8309. ---
  8310. CREATE VIEW target_site_duplication AS
  8311. SELECT
  8312. feature_id AS target_site_duplication_id,
  8313. feature.*
  8314. FROM
  8315. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8316. WHERE cvterm.name = 'target_site_duplication';
  8317. --- ************************************************
  8318. --- *** relation: rr_tract ***
  8319. --- *** relation type: VIEW ***
  8320. --- *** ***
  8321. --- *** A polypurine tract within an LTR_retrotr ***
  8322. --- *** ansposon. ***
  8323. --- ************************************************
  8324. ---
  8325. CREATE VIEW rr_tract AS
  8326. SELECT
  8327. feature_id AS rr_tract_id,
  8328. feature.*
  8329. FROM
  8330. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8331. WHERE cvterm.name = 'RR_tract';
  8332. --- ************************************************
  8333. --- *** relation: ars ***
  8334. --- *** relation type: VIEW ***
  8335. --- *** ***
  8336. --- *** A sequence that can autonomously replica ***
  8337. --- *** te, as a plasmid, when transformed into ***
  8338. --- *** a bacterial host. ***
  8339. --- ************************************************
  8340. ---
  8341. CREATE VIEW ars AS
  8342. SELECT
  8343. feature_id AS ars_id,
  8344. feature.*
  8345. FROM
  8346. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8347. WHERE cvterm.name = 'ARS';
  8348. --- ************************************************
  8349. --- *** relation: inverted_ring_chromosome ***
  8350. --- *** relation type: VIEW ***
  8351. --- *** ***
  8352. --- ************************************************
  8353. ---
  8354. CREATE VIEW inverted_ring_chromosome AS
  8355. SELECT
  8356. feature_id AS inverted_ring_chromosome_id,
  8357. feature.*
  8358. FROM
  8359. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8360. WHERE cvterm.name = 'inverted_ring_chromosome';
  8361. --- ************************************************
  8362. --- *** relation: vector_replicon ***
  8363. --- *** relation type: VIEW ***
  8364. --- *** ***
  8365. --- *** A replicon that has been modified to act ***
  8366. --- *** as a vector for foreign sequence. ***
  8367. --- ************************************************
  8368. ---
  8369. CREATE VIEW vector_replicon AS
  8370. SELECT
  8371. feature_id AS vector_replicon_id,
  8372. feature.*
  8373. FROM
  8374. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8375. 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 = 'vector_replicon';
  8376. --- ************************************************
  8377. --- *** relation: ss_oligo ***
  8378. --- *** relation type: VIEW ***
  8379. --- *** ***
  8380. --- *** A single stranded oligonucleotide. ***
  8381. --- ************************************************
  8382. ---
  8383. CREATE VIEW ss_oligo AS
  8384. SELECT
  8385. feature_id AS ss_oligo_id,
  8386. feature.*
  8387. FROM
  8388. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8389. WHERE cvterm.name = 'primer' OR cvterm.name = 'sequencing_primer' OR cvterm.name = 'forward_primer' OR cvterm.name = 'reverse_primer' OR cvterm.name = 'ss_oligo';
  8390. --- ************************************************
  8391. --- *** relation: ds_oligo ***
  8392. --- *** relation type: VIEW ***
  8393. --- *** ***
  8394. --- *** A double stranded oligonucleotide. ***
  8395. --- ************************************************
  8396. ---
  8397. CREATE VIEW ds_oligo AS
  8398. SELECT
  8399. feature_id AS ds_oligo_id,
  8400. feature.*
  8401. FROM
  8402. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8403. WHERE cvterm.name = 'RNAi_reagent' OR cvterm.name = 'DNA_constraint_sequence' OR cvterm.name = 'ds_oligo';
  8404. --- ************************************************
  8405. --- *** relation: polymer_attribute ***
  8406. --- *** relation type: VIEW ***
  8407. --- *** ***
  8408. --- *** An attribute to describe the kind of bio ***
  8409. --- *** logical sequence. ***
  8410. --- ************************************************
  8411. ---
  8412. CREATE VIEW polymer_attribute AS
  8413. SELECT
  8414. feature_id AS polymer_attribute_id,
  8415. feature.*
  8416. FROM
  8417. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8418. 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' 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';
  8419. --- ************************************************
  8420. --- *** relation: three_prime_noncoding_exon ***
  8421. --- *** relation type: VIEW ***
  8422. --- *** ***
  8423. --- *** Non-coding exon in the 3' UTR. ***
  8424. --- ************************************************
  8425. ---
  8426. CREATE VIEW three_prime_noncoding_exon AS
  8427. SELECT
  8428. feature_id AS three_prime_noncoding_exon_id,
  8429. feature.*
  8430. FROM
  8431. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8432. WHERE cvterm.name = 'three_prime_noncoding_exon';
  8433. --- ************************************************
  8434. --- *** relation: five_prime_noncoding_exon ***
  8435. --- *** relation type: VIEW ***
  8436. --- *** ***
  8437. --- *** Non-coding exon in the 5' UTR. ***
  8438. --- ************************************************
  8439. ---
  8440. CREATE VIEW five_prime_noncoding_exon AS
  8441. SELECT
  8442. feature_id AS five_prime_noncoding_exon_id,
  8443. feature.*
  8444. FROM
  8445. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8446. WHERE cvterm.name = 'five_prime_noncoding_exon';
  8447. --- ************************************************
  8448. --- *** relation: utr_intron ***
  8449. --- *** relation type: VIEW ***
  8450. --- *** ***
  8451. --- *** Intron located in the untranslated regio ***
  8452. --- *** n. ***
  8453. --- ************************************************
  8454. ---
  8455. CREATE VIEW utr_intron AS
  8456. SELECT
  8457. feature_id AS utr_intron_id,
  8458. feature.*
  8459. FROM
  8460. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8461. WHERE cvterm.name = 'five_prime_UTR_intron' OR cvterm.name = 'three_prime_UTR_intron' OR cvterm.name = 'UTR_intron';
  8462. --- ************************************************
  8463. --- *** relation: five_prime_utr_intron ***
  8464. --- *** relation type: VIEW ***
  8465. --- *** ***
  8466. --- *** An intron located in the 5' UTR. ***
  8467. --- ************************************************
  8468. ---
  8469. CREATE VIEW five_prime_utr_intron AS
  8470. SELECT
  8471. feature_id AS five_prime_utr_intron_id,
  8472. feature.*
  8473. FROM
  8474. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8475. WHERE cvterm.name = 'five_prime_UTR_intron';
  8476. --- ************************************************
  8477. --- *** relation: three_prime_utr_intron ***
  8478. --- *** relation type: VIEW ***
  8479. --- *** ***
  8480. --- *** An intron located in the 3' UTR. ***
  8481. --- ************************************************
  8482. ---
  8483. CREATE VIEW three_prime_utr_intron AS
  8484. SELECT
  8485. feature_id AS three_prime_utr_intron_id,
  8486. feature.*
  8487. FROM
  8488. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8489. WHERE cvterm.name = 'three_prime_UTR_intron';
  8490. --- ************************************************
  8491. --- *** relation: random_sequence ***
  8492. --- *** relation type: VIEW ***
  8493. --- *** ***
  8494. --- *** A sequence of nucleotides or amino acids ***
  8495. --- *** which, by design, has a "random" order ***
  8496. --- *** of components, given a predetermined inp ***
  8497. --- *** ut frequency of these components. ***
  8498. --- ************************************************
  8499. ---
  8500. CREATE VIEW random_sequence AS
  8501. SELECT
  8502. feature_id AS random_sequence_id,
  8503. feature.*
  8504. FROM
  8505. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8506. WHERE cvterm.name = 'random_sequence';
  8507. --- ************************************************
  8508. --- *** relation: interband ***
  8509. --- *** relation type: VIEW ***
  8510. --- *** ***
  8511. --- *** A light region between two darkly staini ***
  8512. --- *** ng bands in a polytene chromosome. ***
  8513. --- ************************************************
  8514. ---
  8515. CREATE VIEW interband AS
  8516. SELECT
  8517. feature_id AS interband_id,
  8518. feature.*
  8519. FROM
  8520. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8521. WHERE cvterm.name = 'interband';
  8522. --- ************************************************
  8523. --- *** relation: gene_with_polyadenylated_mrna ***
  8524. --- *** relation type: VIEW ***
  8525. --- *** ***
  8526. --- *** A gene that encodes a polyadenylated mRN ***
  8527. --- *** A. ***
  8528. --- ************************************************
  8529. ---
  8530. CREATE VIEW gene_with_polyadenylated_mrna AS
  8531. SELECT
  8532. feature_id AS gene_with_polyadenylated_mrna_id,
  8533. feature.*
  8534. FROM
  8535. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8536. WHERE cvterm.name = 'gene_with_polyadenylated_mRNA';
  8537. --- ************************************************
  8538. --- *** relation: transposition ***
  8539. --- *** relation type: VIEW ***
  8540. --- *** ***
  8541. --- ************************************************
  8542. ---
  8543. CREATE VIEW transposition AS
  8544. SELECT
  8545. feature_id AS transposition_id,
  8546. feature.*
  8547. FROM
  8548. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8549. 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 = 'unorientated_intrachromosomal_transposition' OR cvterm.name = 'deficient_interchromosomal_transposition' OR cvterm.name = 'inverted_interchromosomal_transposition' OR cvterm.name = 'uninverted_interchromosomal_transposition' OR cvterm.name = 'unorientated_interchromosomal_transposition' OR cvterm.name = 'transposition';
  8550. --- ************************************************
  8551. --- *** relation: rasirna ***
  8552. --- *** relation type: VIEW ***
  8553. --- *** ***
  8554. --- *** A small, 17-28-nt, small interfering RNA ***
  8555. --- *** derived from transcripts of repetitive ***
  8556. --- *** elements. ***
  8557. --- ************************************************
  8558. ---
  8559. CREATE VIEW rasirna AS
  8560. SELECT
  8561. feature_id AS rasirna_id,
  8562. feature.*
  8563. FROM
  8564. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8565. WHERE cvterm.name = 'rasiRNA';
  8566. --- ************************************************
  8567. --- *** relation: gene_with_mrna_with_frameshift ***
  8568. --- *** relation type: VIEW ***
  8569. --- *** ***
  8570. --- *** A gene that encodes an mRNA with a frame ***
  8571. --- *** shift. ***
  8572. --- ************************************************
  8573. ---
  8574. CREATE VIEW gene_with_mrna_with_frameshift AS
  8575. SELECT
  8576. feature_id AS gene_with_mrna_with_frameshift_id,
  8577. feature.*
  8578. FROM
  8579. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8580. WHERE cvterm.name = 'gene_with_mRNA_with_frameshift';
  8581. --- ************************************************
  8582. --- *** relation: recombinationally_rearranged_gene ***
  8583. --- *** relation type: VIEW ***
  8584. --- *** ***
  8585. --- *** A gene that is recombinationally rearran ***
  8586. --- *** ged. ***
  8587. --- ************************************************
  8588. ---
  8589. CREATE VIEW recombinationally_rearranged_gene AS
  8590. SELECT
  8591. feature_id AS recombinationally_rearranged_gene_id,
  8592. feature.*
  8593. FROM
  8594. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8595. WHERE cvterm.name = 'recombinationally_inverted_gene' OR cvterm.name = 'recombinationally_rearranged_vertebrate_immune_system_gene' OR cvterm.name = 'recombinationally_rearranged_gene';
  8596. --- ************************************************
  8597. --- *** relation: interchromosomal_duplication ***
  8598. --- *** relation type: VIEW ***
  8599. --- *** ***
  8600. --- *** A chromosome duplication involving an in ***
  8601. --- *** sertion from another chromosome. ***
  8602. --- ************************************************
  8603. ---
  8604. CREATE VIEW interchromosomal_duplication AS
  8605. SELECT
  8606. feature_id AS interchromosomal_duplication_id,
  8607. feature.*
  8608. FROM
  8609. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8610. WHERE cvterm.name = 'interchromosomal_duplication';
  8611. --- ************************************************
  8612. --- *** relation: d_gene ***
  8613. --- *** relation type: VIEW ***
  8614. --- *** ***
  8615. --- *** Germline genomic DNA including D-region ***
  8616. --- *** with 5' UTR and 3' UTR, also designated ***
  8617. --- *** as D-segment. ***
  8618. --- ************************************************
  8619. ---
  8620. CREATE VIEW d_gene AS
  8621. SELECT
  8622. feature_id AS d_gene_id,
  8623. feature.*
  8624. FROM
  8625. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8626. WHERE cvterm.name = 'D_gene';
  8627. --- ************************************************
  8628. --- *** relation: gene_with_trans_spliced_transcript ***
  8629. --- *** relation type: VIEW ***
  8630. --- *** ***
  8631. --- *** A gene with a transcript that is trans-s ***
  8632. --- *** pliced. ***
  8633. --- ************************************************
  8634. ---
  8635. CREATE VIEW gene_with_trans_spliced_transcript AS
  8636. SELECT
  8637. feature_id AS gene_with_trans_spliced_transcript_id,
  8638. feature.*
  8639. FROM
  8640. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8641. WHERE cvterm.name = 'gene_with_trans_spliced_transcript';
  8642. --- ************************************************
  8643. --- *** relation: vertebrate_immunoglobulin_t_cell_receptor_segment ***
  8644. --- *** relation type: VIEW ***
  8645. --- *** ***
  8646. --- ************************************************
  8647. ---
  8648. CREATE VIEW vertebrate_immunoglobulin_t_cell_receptor_segment AS
  8649. SELECT
  8650. feature_id AS vertebrate_immunoglobulin_t_cell_receptor_segment_id,
  8651. feature.*
  8652. FROM
  8653. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8654. 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';
  8655. --- ************************************************
  8656. --- *** relation: inversion_derived_bipartite_deficiency ***
  8657. --- *** relation type: VIEW ***
  8658. --- *** ***
  8659. --- *** A chromosome generated by recombination ***
  8660. --- *** between two inversions; has a deficiency ***
  8661. --- *** at each end of the inversion. ***
  8662. --- ************************************************
  8663. ---
  8664. CREATE VIEW inversion_derived_bipartite_deficiency AS
  8665. SELECT
  8666. feature_id AS inversion_derived_bipartite_deficiency_id,
  8667. feature.*
  8668. FROM
  8669. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8670. WHERE cvterm.name = 'inversion_derived_bipartite_deficiency';
  8671. --- ************************************************
  8672. --- *** relation: pseudogenic_region ***
  8673. --- *** relation type: VIEW ***
  8674. --- *** ***
  8675. --- *** A non-functional descendent of a functio ***
  8676. --- *** nal entity. ***
  8677. --- ************************************************
  8678. ---
  8679. CREATE VIEW pseudogenic_region AS
  8680. SELECT
  8681. feature_id AS pseudogenic_region_id,
  8682. feature.*
  8683. FROM
  8684. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8685. WHERE cvterm.name = 'pseudogene' 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 = 'processed_pseudogene' OR cvterm.name = 'pseudogene_by_unequal_crossing_over' OR cvterm.name = 'nuclear_mt_pseudogene' OR cvterm.name = 'cassette_pseudogene' OR cvterm.name = 'pseudogenic_region';
  8686. --- ************************************************
  8687. --- *** relation: encodes_alternately_spliced_transcripts ***
  8688. --- *** relation type: VIEW ***
  8689. --- *** ***
  8690. --- *** A gene that encodes more than one transc ***
  8691. --- *** ript. ***
  8692. --- ************************************************
  8693. ---
  8694. CREATE VIEW encodes_alternately_spliced_transcripts AS
  8695. SELECT
  8696. feature_id AS encodes_alternately_spliced_transcripts_id,
  8697. feature.*
  8698. FROM
  8699. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8700. 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';
  8701. --- ************************************************
  8702. --- *** relation: decayed_exon ***
  8703. --- *** relation type: VIEW ***
  8704. --- *** ***
  8705. --- *** A non-functional descendant of an exon. ***
  8706. --- ************************************************
  8707. ---
  8708. CREATE VIEW decayed_exon AS
  8709. SELECT
  8710. feature_id AS decayed_exon_id,
  8711. feature.*
  8712. FROM
  8713. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8714. WHERE cvterm.name = 'decayed_exon';
  8715. --- ************************************************
  8716. --- *** relation: inversion_derived_deficiency_plus_duplication ***
  8717. --- *** relation type: VIEW ***
  8718. --- *** ***
  8719. --- *** A chromosome generated by recombination ***
  8720. --- *** between two inversions; there is a defic ***
  8721. --- *** iency at one end of the inversion and a ***
  8722. --- *** duplication at the other end of the inve ***
  8723. --- *** rsion. ***
  8724. --- ************************************************
  8725. ---
  8726. CREATE VIEW inversion_derived_deficiency_plus_duplication AS
  8727. SELECT
  8728. feature_id AS inversion_derived_deficiency_plus_duplication_id,
  8729. feature.*
  8730. FROM
  8731. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8732. WHERE cvterm.name = 'inversion_derived_deficiency_plus_duplication';
  8733. --- ************************************************
  8734. --- *** relation: v_gene ***
  8735. --- *** relation type: VIEW ***
  8736. --- *** ***
  8737. --- *** Germline genomic DNA including L-part1, ***
  8738. --- *** V-intron and V-exon, with the 5' UTR and ***
  8739. --- *** 3' UTR. ***
  8740. --- ************************************************
  8741. ---
  8742. CREATE VIEW v_gene AS
  8743. SELECT
  8744. feature_id AS v_gene_id,
  8745. feature.*
  8746. FROM
  8747. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8748. WHERE cvterm.name = 'V_gene';
  8749. --- ************************************************
  8750. --- *** relation: post_translationally_regulated_by_protein_stability ***
  8751. --- *** relation type: VIEW ***
  8752. --- *** ***
  8753. --- *** An attribute describing a gene sequence ***
  8754. --- *** where the resulting protein is regulated ***
  8755. --- *** by the stability of the resulting prote ***
  8756. --- *** in. ***
  8757. --- ************************************************
  8758. ---
  8759. CREATE VIEW post_translationally_regulated_by_protein_stability AS
  8760. SELECT
  8761. feature_id AS post_translationally_regulated_by_protein_stability_id,
  8762. feature.*
  8763. FROM
  8764. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8765. WHERE cvterm.name = 'post_translationally_regulated_by_protein_stability';
  8766. --- ************************************************
  8767. --- *** relation: golden_path_fragment ***
  8768. --- *** relation type: VIEW ***
  8769. --- *** ***
  8770. --- *** One of the pieces of sequence that make ***
  8771. --- *** up a golden path. ***
  8772. --- ************************************************
  8773. ---
  8774. CREATE VIEW golden_path_fragment AS
  8775. SELECT
  8776. feature_id AS golden_path_fragment_id,
  8777. feature.*
  8778. FROM
  8779. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8780. WHERE cvterm.name = 'golden_path_fragment';
  8781. --- ************************************************
  8782. --- *** relation: post_translationally_regulated_by_protein_modification ***
  8783. --- *** relation type: VIEW ***
  8784. --- *** ***
  8785. --- *** An attribute describing a gene sequence ***
  8786. --- *** where the resulting protein is modified ***
  8787. --- *** to regulate it. ***
  8788. --- ************************************************
  8789. ---
  8790. CREATE VIEW post_translationally_regulated_by_protein_modification AS
  8791. SELECT
  8792. feature_id AS post_translationally_regulated_by_protein_modification_id,
  8793. feature.*
  8794. FROM
  8795. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8796. WHERE cvterm.name = 'post_translationally_regulated_by_protein_modification';
  8797. --- ************************************************
  8798. --- *** relation: j_gene ***
  8799. --- *** relation type: VIEW ***
  8800. --- *** ***
  8801. --- *** Germline genomic DNA of an immunoglobuli ***
  8802. --- *** n/T-cell receptor gene including J-regio ***
  8803. --- *** n with 5' UTR (SO:0000204) and 3' UTR (S ***
  8804. --- *** O:0000205), also designated as J-segment ***
  8805. --- *** . ***
  8806. --- ************************************************
  8807. ---
  8808. CREATE VIEW j_gene AS
  8809. SELECT
  8810. feature_id AS j_gene_id,
  8811. feature.*
  8812. FROM
  8813. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8814. WHERE cvterm.name = 'J_gene';
  8815. --- ************************************************
  8816. --- *** relation: autoregulated ***
  8817. --- *** relation type: VIEW ***
  8818. --- *** ***
  8819. --- *** The gene product is involved in its own ***
  8820. --- *** transcriptional regulation. ***
  8821. --- ************************************************
  8822. ---
  8823. CREATE VIEW autoregulated AS
  8824. SELECT
  8825. feature_id AS autoregulated_id,
  8826. feature.*
  8827. FROM
  8828. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8829. WHERE cvterm.name = 'negatively_autoregulated' OR cvterm.name = 'positively_autoregulated' OR cvterm.name = 'autoregulated';
  8830. --- ************************************************
  8831. --- *** relation: tiling_path ***
  8832. --- *** relation type: VIEW ***
  8833. --- *** ***
  8834. --- *** A set of regions which overlap with mini ***
  8835. --- *** mal polymorphism to form a linear sequen ***
  8836. --- *** ce. ***
  8837. --- ************************************************
  8838. ---
  8839. CREATE VIEW tiling_path AS
  8840. SELECT
  8841. feature_id AS tiling_path_id,
  8842. feature.*
  8843. FROM
  8844. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8845. WHERE cvterm.name = 'tiling_path';
  8846. --- ************************************************
  8847. --- *** relation: negatively_autoregulated ***
  8848. --- *** relation type: VIEW ***
  8849. --- *** ***
  8850. --- *** The gene product is involved in its own ***
  8851. --- *** transcriptional regulation where it decr ***
  8852. --- *** eases transcription. ***
  8853. --- ************************************************
  8854. ---
  8855. CREATE VIEW negatively_autoregulated AS
  8856. SELECT
  8857. feature_id AS negatively_autoregulated_id,
  8858. feature.*
  8859. FROM
  8860. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8861. WHERE cvterm.name = 'negatively_autoregulated';
  8862. --- ************************************************
  8863. --- *** relation: tiling_path_fragment ***
  8864. --- *** relation type: VIEW ***
  8865. --- *** ***
  8866. --- *** A piece of sequence that makes up a tili ***
  8867. --- *** ng_path (SO:0000472). ***
  8868. --- ************************************************
  8869. ---
  8870. CREATE VIEW tiling_path_fragment AS
  8871. SELECT
  8872. feature_id AS tiling_path_fragment_id,
  8873. feature.*
  8874. FROM
  8875. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8876. WHERE cvterm.name = 'tiling_path_clone' OR cvterm.name = 'tiling_path_fragment';
  8877. --- ************************************************
  8878. --- *** relation: positively_autoregulated ***
  8879. --- *** relation type: VIEW ***
  8880. --- *** ***
  8881. --- *** The gene product is involved in its own ***
  8882. --- *** transcriptional regulation, where it inc ***
  8883. --- *** reases transcription. ***
  8884. --- ************************************************
  8885. ---
  8886. CREATE VIEW positively_autoregulated AS
  8887. SELECT
  8888. feature_id AS positively_autoregulated_id,
  8889. feature.*
  8890. FROM
  8891. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8892. WHERE cvterm.name = 'positively_autoregulated';
  8893. --- ************************************************
  8894. --- *** relation: contig_read ***
  8895. --- *** relation type: VIEW ***
  8896. --- *** ***
  8897. --- *** A DNA sequencer read which is part of a ***
  8898. --- *** contig. ***
  8899. --- ************************************************
  8900. ---
  8901. CREATE VIEW contig_read AS
  8902. SELECT
  8903. feature_id AS contig_read_id,
  8904. feature.*
  8905. FROM
  8906. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8907. WHERE cvterm.name = 'contig_read';
  8908. --- ************************************************
  8909. --- *** relation: c_gene ***
  8910. --- *** relation type: VIEW ***
  8911. --- *** ***
  8912. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  8913. --- *** eptor gene including C-region (and intro ***
  8914. --- *** ns if present) with 5' UTR (SO:0000204) ***
  8915. --- *** and 3' UTR (SO:0000205). ***
  8916. --- ************************************************
  8917. ---
  8918. CREATE VIEW c_gene AS
  8919. SELECT
  8920. feature_id AS c_gene_id,
  8921. feature.*
  8922. FROM
  8923. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8924. WHERE cvterm.name = 'C_gene';
  8925. --- ************************************************
  8926. --- *** relation: trans_spliced_transcript ***
  8927. --- *** relation type: VIEW ***
  8928. --- *** ***
  8929. --- *** A transcript that is trans-spliced. ***
  8930. --- ************************************************
  8931. ---
  8932. CREATE VIEW trans_spliced_transcript AS
  8933. SELECT
  8934. feature_id AS trans_spliced_transcript_id,
  8935. feature.*
  8936. FROM
  8937. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8938. WHERE cvterm.name = 'trans_spliced_mRNA' OR cvterm.name = 'trans_spliced_transcript';
  8939. --- ************************************************
  8940. --- *** relation: tiling_path_clone ***
  8941. --- *** relation type: VIEW ***
  8942. --- *** ***
  8943. --- *** A clone which is part of a tiling path. ***
  8944. --- *** A tiling path is a set of sequencing sub ***
  8945. --- *** strates, typically clones, which have be ***
  8946. --- *** en selected in order to efficiently cove ***
  8947. --- *** r a region of the genome in preparation ***
  8948. --- *** for sequencing and assembly. ***
  8949. --- ************************************************
  8950. ---
  8951. CREATE VIEW tiling_path_clone AS
  8952. SELECT
  8953. feature_id AS tiling_path_clone_id,
  8954. feature.*
  8955. FROM
  8956. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8957. WHERE cvterm.name = 'tiling_path_clone';
  8958. --- ************************************************
  8959. --- *** relation: terminal_inverted_repeat ***
  8960. --- *** relation type: VIEW ***
  8961. --- *** ***
  8962. --- *** An inverted repeat (SO:0000294) occuring ***
  8963. --- *** at the termini of a DNA transposon. ***
  8964. --- ************************************************
  8965. ---
  8966. CREATE VIEW terminal_inverted_repeat AS
  8967. SELECT
  8968. feature_id AS terminal_inverted_repeat_id,
  8969. feature.*
  8970. FROM
  8971. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8972. WHERE cvterm.name = 'five_prime_terminal_inverted_repeat' OR cvterm.name = 'three_prime_terminal_inverted_repeat' OR cvterm.name = 'terminal_inverted_repeat';
  8973. --- ************************************************
  8974. --- *** relation: vertebrate_immunoglobulin_t_cell_receptor_gene_cluster ***
  8975. --- *** relation type: VIEW ***
  8976. --- *** ***
  8977. --- ************************************************
  8978. ---
  8979. CREATE VIEW vertebrate_immunoglobulin_t_cell_receptor_gene_cluster AS
  8980. SELECT
  8981. feature_id AS vertebrate_immunoglobulin_t_cell_receptor_gene_cluster_id,
  8982. feature.*
  8983. FROM
  8984. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8985. 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';
  8986. --- ************************************************
  8987. --- *** relation: nc_primary_transcript ***
  8988. --- *** relation type: VIEW ***
  8989. --- *** ***
  8990. --- *** A primary transcript that is never trans ***
  8991. --- *** lated into a protein. ***
  8992. --- ************************************************
  8993. ---
  8994. CREATE VIEW nc_primary_transcript AS
  8995. SELECT
  8996. feature_id AS nc_primary_transcript_id,
  8997. feature.*
  8998. FROM
  8999. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9000. 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 = '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';
  9001. --- ************************************************
  9002. --- *** relation: three_prime_coding_exon_noncoding_region ***
  9003. --- *** relation type: VIEW ***
  9004. --- *** ***
  9005. --- *** The sequence of the 3' exon that is not ***
  9006. --- *** coding. ***
  9007. --- ************************************************
  9008. ---
  9009. CREATE VIEW three_prime_coding_exon_noncoding_region AS
  9010. SELECT
  9011. feature_id AS three_prime_coding_exon_noncoding_region_id,
  9012. feature.*
  9013. FROM
  9014. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9015. WHERE cvterm.name = 'three_prime_coding_exon_noncoding_region';
  9016. --- ************************************************
  9017. --- *** relation: dj_j_cluster ***
  9018. --- *** relation type: VIEW ***
  9019. --- *** ***
  9020. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9021. --- *** eptor gene in rearranged configuration i ***
  9022. --- *** ncluding at least one DJ-gene, and one J ***
  9023. --- *** -gene. ***
  9024. --- ************************************************
  9025. ---
  9026. CREATE VIEW dj_j_cluster AS
  9027. SELECT
  9028. feature_id AS dj_j_cluster_id,
  9029. feature.*
  9030. FROM
  9031. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9032. WHERE cvterm.name = 'DJ_J_cluster';
  9033. --- ************************************************
  9034. --- *** relation: five_prime_coding_exon_noncoding_region ***
  9035. --- *** relation type: VIEW ***
  9036. --- *** ***
  9037. --- *** The sequence of the 5' exon preceding th ***
  9038. --- *** e start codon. ***
  9039. --- ************************************************
  9040. ---
  9041. CREATE VIEW five_prime_coding_exon_noncoding_region AS
  9042. SELECT
  9043. feature_id AS five_prime_coding_exon_noncoding_region_id,
  9044. feature.*
  9045. FROM
  9046. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9047. WHERE cvterm.name = 'five_prime_coding_exon_noncoding_region';
  9048. --- ************************************************
  9049. --- *** relation: vdj_j_c_cluster ***
  9050. --- *** relation type: VIEW ***
  9051. --- *** ***
  9052. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9053. --- *** eptor gene in rearranged configuration i ***
  9054. --- *** ncluding at least one VDJ-gene, one J-ge ***
  9055. --- *** ne and one C-gene. ***
  9056. --- ************************************************
  9057. ---
  9058. CREATE VIEW vdj_j_c_cluster AS
  9059. SELECT
  9060. feature_id AS vdj_j_c_cluster_id,
  9061. feature.*
  9062. FROM
  9063. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9064. WHERE cvterm.name = 'VDJ_J_C_cluster';
  9065. --- ************************************************
  9066. --- *** relation: vdj_j_cluster ***
  9067. --- *** relation type: VIEW ***
  9068. --- *** ***
  9069. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9070. --- *** eptor gene in rearranged configuration i ***
  9071. --- *** ncluding at least one VDJ-gene and one J ***
  9072. --- *** -gene. ***
  9073. --- ************************************************
  9074. ---
  9075. CREATE VIEW vdj_j_cluster AS
  9076. SELECT
  9077. feature_id AS vdj_j_cluster_id,
  9078. feature.*
  9079. FROM
  9080. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9081. WHERE cvterm.name = 'VDJ_J_cluster';
  9082. --- ************************************************
  9083. --- *** relation: vj_c_cluster ***
  9084. --- *** relation type: VIEW ***
  9085. --- *** ***
  9086. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9087. --- *** eptor gene in rearranged configuration i ***
  9088. --- *** ncluding at least one VJ-gene and one C- ***
  9089. --- *** gene. ***
  9090. --- ************************************************
  9091. ---
  9092. CREATE VIEW vj_c_cluster AS
  9093. SELECT
  9094. feature_id AS vj_c_cluster_id,
  9095. feature.*
  9096. FROM
  9097. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9098. WHERE cvterm.name = 'VJ_C_cluster';
  9099. --- ************************************************
  9100. --- *** relation: vj_j_c_cluster ***
  9101. --- *** relation type: VIEW ***
  9102. --- *** ***
  9103. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9104. --- *** eptor gene in rearranged configuration i ***
  9105. --- *** ncluding at least one VJ-gene, one J-gen ***
  9106. --- *** e and one C-gene. ***
  9107. --- ************************************************
  9108. ---
  9109. CREATE VIEW vj_j_c_cluster AS
  9110. SELECT
  9111. feature_id AS vj_j_c_cluster_id,
  9112. feature.*
  9113. FROM
  9114. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9115. WHERE cvterm.name = 'VJ_J_C_cluster';
  9116. --- ************************************************
  9117. --- *** relation: vj_j_cluster ***
  9118. --- *** relation type: VIEW ***
  9119. --- *** ***
  9120. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9121. --- *** eptor gene in rearranged configuration i ***
  9122. --- *** ncluding at least one VJ-gene and one J- ***
  9123. --- *** gene. ***
  9124. --- ************************************************
  9125. ---
  9126. CREATE VIEW vj_j_cluster AS
  9127. SELECT
  9128. feature_id AS vj_j_cluster_id,
  9129. feature.*
  9130. FROM
  9131. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9132. WHERE cvterm.name = 'VJ_J_cluster';
  9133. --- ************************************************
  9134. --- *** relation: d_gene_recombination_feature ***
  9135. --- *** relation type: VIEW ***
  9136. --- *** ***
  9137. --- ************************************************
  9138. ---
  9139. CREATE VIEW d_gene_recombination_feature AS
  9140. SELECT
  9141. feature_id AS d_gene_recombination_feature_id,
  9142. feature.*
  9143. FROM
  9144. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9145. 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';
  9146. --- ************************************************
  9147. --- *** relation: three_prime_d_heptamer ***
  9148. --- *** relation type: VIEW ***
  9149. --- *** ***
  9150. --- *** 7 nucleotide recombination site like CAC ***
  9151. --- *** AGTG, part of a 3' D-recombination signa ***
  9152. --- *** l sequence of an immunoglobulin/T-cell r ***
  9153. --- *** eceptor gene. ***
  9154. --- ************************************************
  9155. ---
  9156. CREATE VIEW three_prime_d_heptamer AS
  9157. SELECT
  9158. feature_id AS three_prime_d_heptamer_id,
  9159. feature.*
  9160. FROM
  9161. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9162. WHERE cvterm.name = 'three_prime_D_heptamer';
  9163. --- ************************************************
  9164. --- *** relation: three_prime_d_nonamer ***
  9165. --- *** relation type: VIEW ***
  9166. --- *** ***
  9167. --- *** A 9 nucleotide recombination site (e.g. ***
  9168. --- *** ACAAAAACC), part of a 3' D-recombination ***
  9169. --- *** signal sequence of an immunoglobulin/T- ***
  9170. --- *** cell receptor gene. ***
  9171. --- ************************************************
  9172. ---
  9173. CREATE VIEW three_prime_d_nonamer AS
  9174. SELECT
  9175. feature_id AS three_prime_d_nonamer_id,
  9176. feature.*
  9177. FROM
  9178. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9179. WHERE cvterm.name = 'three_prime_D_nonamer';
  9180. --- ************************************************
  9181. --- *** relation: three_prime_d_spacer ***
  9182. --- *** relation type: VIEW ***
  9183. --- *** ***
  9184. --- *** A 12 or 23 nucleotide spacer between the ***
  9185. --- *** 3'D-HEPTAMER and 3'D-NONAMER of a 3'D-R ***
  9186. --- *** S. ***
  9187. --- ************************************************
  9188. ---
  9189. CREATE VIEW three_prime_d_spacer AS
  9190. SELECT
  9191. feature_id AS three_prime_d_spacer_id,
  9192. feature.*
  9193. FROM
  9194. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9195. WHERE cvterm.name = 'three_prime_D_spacer';
  9196. --- ************************************************
  9197. --- *** relation: five_prime_d_heptamer ***
  9198. --- *** relation type: VIEW ***
  9199. --- *** ***
  9200. --- *** 7 nucleotide recombination site (e.g. CA ***
  9201. --- *** CTGTG), part of a 5' D-recombination sig ***
  9202. --- *** nal sequence (SO:0000556) of an immunogl ***
  9203. --- *** obulin/T-cell receptor gene. ***
  9204. --- ************************************************
  9205. ---
  9206. CREATE VIEW five_prime_d_heptamer AS
  9207. SELECT
  9208. feature_id AS five_prime_d_heptamer_id,
  9209. feature.*
  9210. FROM
  9211. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9212. WHERE cvterm.name = 'five_prime_D_heptamer';
  9213. --- ************************************************
  9214. --- *** relation: five_prime_d_nonamer ***
  9215. --- *** relation type: VIEW ***
  9216. --- *** ***
  9217. --- *** 9 nucleotide recombination site (e.g. GG ***
  9218. --- *** TTTTTGT), part of a five_prime_D-recombi ***
  9219. --- *** nation signal sequence (SO:0000556) of a ***
  9220. --- *** n immunoglobulin/T-cell receptor gene. ***
  9221. --- ************************************************
  9222. ---
  9223. CREATE VIEW five_prime_d_nonamer AS
  9224. SELECT
  9225. feature_id AS five_prime_d_nonamer_id,
  9226. feature.*
  9227. FROM
  9228. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9229. WHERE cvterm.name = 'five_prime_D_nonamer';
  9230. --- ************************************************
  9231. --- *** relation: five_prime_d_spacer ***
  9232. --- *** relation type: VIEW ***
  9233. --- *** ***
  9234. --- *** 12 or 23 nucleotide spacer between the 5 ***
  9235. --- *** ' D-heptamer (SO:0000496) and 5' D-nonam ***
  9236. --- *** er (SO:0000497) of a 5' D-recombination ***
  9237. --- *** signal sequence (SO:0000556) of an immun ***
  9238. --- *** oglobulin/T-cell receptor gene. ***
  9239. --- ************************************************
  9240. ---
  9241. CREATE VIEW five_prime_d_spacer AS
  9242. SELECT
  9243. feature_id AS five_prime_d_spacer_id,
  9244. feature.*
  9245. FROM
  9246. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9247. WHERE cvterm.name = 'five_prime_D_spacer';
  9248. --- ************************************************
  9249. --- *** relation: virtual_sequence ***
  9250. --- *** relation type: VIEW ***
  9251. --- *** ***
  9252. --- *** A continuous piece of sequence similar t ***
  9253. --- *** o the 'virtual contig' concept of the En ***
  9254. --- *** sembl database. ***
  9255. --- ************************************************
  9256. ---
  9257. CREATE VIEW virtual_sequence AS
  9258. SELECT
  9259. feature_id AS virtual_sequence_id,
  9260. feature.*
  9261. FROM
  9262. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9263. WHERE cvterm.name = 'virtual_sequence';
  9264. --- ************************************************
  9265. --- *** relation: hoogsteen_base_pair ***
  9266. --- *** relation type: VIEW ***
  9267. --- *** ***
  9268. --- *** A type of non-canonical base-pairing. Th ***
  9269. --- *** is is less energetically favourable than ***
  9270. --- *** watson crick base pairing. Hoogsteen GC ***
  9271. --- *** base pairs only have two hydrogen bonds ***
  9272. --- *** . ***
  9273. --- ************************************************
  9274. ---
  9275. CREATE VIEW hoogsteen_base_pair AS
  9276. SELECT
  9277. feature_id AS hoogsteen_base_pair_id,
  9278. feature.*
  9279. FROM
  9280. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9281. WHERE cvterm.name = 'Hoogsteen_base_pair';
  9282. --- ************************************************
  9283. --- *** relation: reverse_hoogsteen_base_pair ***
  9284. --- *** relation type: VIEW ***
  9285. --- *** ***
  9286. --- *** A type of non-canonical base-pairing. ***
  9287. --- ************************************************
  9288. ---
  9289. CREATE VIEW reverse_hoogsteen_base_pair AS
  9290. SELECT
  9291. feature_id AS reverse_hoogsteen_base_pair_id,
  9292. feature.*
  9293. FROM
  9294. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9295. WHERE cvterm.name = 'reverse_Hoogsteen_base_pair';
  9296. --- ************************************************
  9297. --- *** relation: d_dj_c_cluster ***
  9298. --- *** relation type: VIEW ***
  9299. --- *** ***
  9300. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9301. --- *** eptor gene in rearranged configuration i ***
  9302. --- *** ncluding at least one D-gene, one DJ-gen ***
  9303. --- *** e and one C-gene. ***
  9304. --- ************************************************
  9305. ---
  9306. CREATE VIEW d_dj_c_cluster AS
  9307. SELECT
  9308. feature_id AS d_dj_c_cluster_id,
  9309. feature.*
  9310. FROM
  9311. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9312. WHERE cvterm.name = 'D_DJ_C_cluster';
  9313. --- ************************************************
  9314. --- *** relation: d_dj_cluster ***
  9315. --- *** relation type: VIEW ***
  9316. --- *** ***
  9317. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9318. --- *** eptor gene in rearranged configuration i ***
  9319. --- *** ncluding at least one D-gene and one DJ- ***
  9320. --- *** gene. ***
  9321. --- ************************************************
  9322. ---
  9323. CREATE VIEW d_dj_cluster AS
  9324. SELECT
  9325. feature_id AS d_dj_cluster_id,
  9326. feature.*
  9327. FROM
  9328. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9329. WHERE cvterm.name = 'D_DJ_cluster';
  9330. --- ************************************************
  9331. --- *** relation: d_dj_j_c_cluster ***
  9332. --- *** relation type: VIEW ***
  9333. --- *** ***
  9334. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9335. --- *** eptor gene in rearranged configuration i ***
  9336. --- *** ncluding at least one D-gene, one DJ-gen ***
  9337. --- *** e, one J-gene and one C-gene. ***
  9338. --- ************************************************
  9339. ---
  9340. CREATE VIEW d_dj_j_c_cluster AS
  9341. SELECT
  9342. feature_id AS d_dj_j_c_cluster_id,
  9343. feature.*
  9344. FROM
  9345. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9346. WHERE cvterm.name = 'D_DJ_J_C_cluster';
  9347. --- ************************************************
  9348. --- *** relation: pseudogenic_exon ***
  9349. --- *** relation type: VIEW ***
  9350. --- *** ***
  9351. --- *** A non functional descendant of an exon, ***
  9352. --- *** part of a pseudogene. ***
  9353. --- ************************************************
  9354. ---
  9355. CREATE VIEW pseudogenic_exon AS
  9356. SELECT
  9357. feature_id AS pseudogenic_exon_id,
  9358. feature.*
  9359. FROM
  9360. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9361. WHERE cvterm.name = 'pseudogenic_exon';
  9362. --- ************************************************
  9363. --- *** relation: d_dj_j_cluster ***
  9364. --- *** relation type: VIEW ***
  9365. --- *** ***
  9366. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9367. --- *** eptor gene in rearranged configuration i ***
  9368. --- *** ncluding at least one D-gene, one DJ-gen ***
  9369. --- *** e, and one J-gene. ***
  9370. --- ************************************************
  9371. ---
  9372. CREATE VIEW d_dj_j_cluster AS
  9373. SELECT
  9374. feature_id AS d_dj_j_cluster_id,
  9375. feature.*
  9376. FROM
  9377. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9378. WHERE cvterm.name = 'D_DJ_J_cluster';
  9379. --- ************************************************
  9380. --- *** relation: d_j_c_cluster ***
  9381. --- *** relation type: VIEW ***
  9382. --- *** ***
  9383. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9384. --- *** eptor gene in germline configuration inc ***
  9385. --- *** luding at least one D-gene, one J-gene a ***
  9386. --- *** nd one C-gene. ***
  9387. --- ************************************************
  9388. ---
  9389. CREATE VIEW d_j_c_cluster AS
  9390. SELECT
  9391. feature_id AS d_j_c_cluster_id,
  9392. feature.*
  9393. FROM
  9394. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9395. WHERE cvterm.name = 'D_J_C_cluster';
  9396. --- ************************************************
  9397. --- *** relation: vd_gene ***
  9398. --- *** relation type: VIEW ***
  9399. --- *** ***
  9400. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9401. --- *** eptor gene in partially rearranged genom ***
  9402. --- *** ic DNA including L-part1, V-intron and V ***
  9403. --- *** -D-exon, with the 5' UTR (SO:0000204) an ***
  9404. --- *** d 3' UTR (SO:0000205). ***
  9405. --- ************************************************
  9406. ---
  9407. CREATE VIEW vd_gene AS
  9408. SELECT
  9409. feature_id AS vd_gene_id,
  9410. feature.*
  9411. FROM
  9412. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9413. WHERE cvterm.name = 'VD_gene';
  9414. --- ************************************************
  9415. --- *** relation: j_c_cluster ***
  9416. --- *** relation type: VIEW ***
  9417. --- *** ***
  9418. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9419. --- *** eptor gene in germline configuration inc ***
  9420. --- *** luding at least one J-gene and one C-gen ***
  9421. --- *** e. ***
  9422. --- ************************************************
  9423. ---
  9424. CREATE VIEW j_c_cluster AS
  9425. SELECT
  9426. feature_id AS j_c_cluster_id,
  9427. feature.*
  9428. FROM
  9429. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9430. WHERE cvterm.name = 'J_C_cluster';
  9431. --- ************************************************
  9432. --- *** relation: inversion_derived_deficiency_plus_aneuploid ***
  9433. --- *** relation type: VIEW ***
  9434. --- *** ***
  9435. --- *** A chromosome generated by recombination ***
  9436. --- *** between two inversions; has a deficiency ***
  9437. --- *** at one end and presumed to have a defic ***
  9438. --- *** iency or duplication at the other end of ***
  9439. --- *** the inversion. ***
  9440. --- ************************************************
  9441. ---
  9442. CREATE VIEW inversion_derived_deficiency_plus_aneuploid AS
  9443. SELECT
  9444. feature_id AS inversion_derived_deficiency_plus_aneuploid_id,
  9445. feature.*
  9446. FROM
  9447. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9448. WHERE cvterm.name = 'inversion_derived_deficiency_plus_aneuploid';
  9449. --- ************************************************
  9450. --- *** relation: j_cluster ***
  9451. --- *** relation type: VIEW ***
  9452. --- *** ***
  9453. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9454. --- *** eptor gene in germline configuration inc ***
  9455. --- *** luding more than one J-gene. ***
  9456. --- ************************************************
  9457. ---
  9458. CREATE VIEW j_cluster AS
  9459. SELECT
  9460. feature_id AS j_cluster_id,
  9461. feature.*
  9462. FROM
  9463. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9464. WHERE cvterm.name = 'J_cluster';
  9465. --- ************************************************
  9466. --- *** relation: j_nonamer ***
  9467. --- *** relation type: VIEW ***
  9468. --- *** ***
  9469. --- *** 9 nucleotide recombination site (e.g. GG ***
  9470. --- *** TTTTTGT), part of a J-gene recombination ***
  9471. --- *** feature of an immunoglobulin/T-cell rec ***
  9472. --- *** eptor gene. ***
  9473. --- ************************************************
  9474. ---
  9475. CREATE VIEW j_nonamer AS
  9476. SELECT
  9477. feature_id AS j_nonamer_id,
  9478. feature.*
  9479. FROM
  9480. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9481. WHERE cvterm.name = 'J_nonamer';
  9482. --- ************************************************
  9483. --- *** relation: j_heptamer ***
  9484. --- *** relation type: VIEW ***
  9485. --- *** ***
  9486. --- *** 7 nucleotide recombination site (e.g. CA ***
  9487. --- *** CAGTG), part of a J-gene recombination f ***
  9488. --- *** eature of an immunoglobulin/T-cell recep ***
  9489. --- *** tor gene. ***
  9490. --- ************************************************
  9491. ---
  9492. CREATE VIEW j_heptamer AS
  9493. SELECT
  9494. feature_id AS j_heptamer_id,
  9495. feature.*
  9496. FROM
  9497. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9498. WHERE cvterm.name = 'J_heptamer';
  9499. --- ************************************************
  9500. --- *** relation: pseudogenic_transcript ***
  9501. --- *** relation type: VIEW ***
  9502. --- *** ***
  9503. --- *** A non functional descendant of a transcr ***
  9504. --- *** ipt, part of a pseudogene. ***
  9505. --- ************************************************
  9506. ---
  9507. CREATE VIEW pseudogenic_transcript AS
  9508. SELECT
  9509. feature_id AS pseudogenic_transcript_id,
  9510. feature.*
  9511. FROM
  9512. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9513. WHERE cvterm.name = 'pseudogenic_transcript';
  9514. --- ************************************************
  9515. --- *** relation: j_spacer ***
  9516. --- *** relation type: VIEW ***
  9517. --- *** ***
  9518. --- *** 12 or 23 nucleotide spacer between the J ***
  9519. --- *** -nonamer and the J-heptamer of a J-gene ***
  9520. --- *** recombination feature of an immunoglobul ***
  9521. --- *** in/T-cell receptor gene. ***
  9522. --- ************************************************
  9523. ---
  9524. CREATE VIEW j_spacer AS
  9525. SELECT
  9526. feature_id AS j_spacer_id,
  9527. feature.*
  9528. FROM
  9529. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9530. WHERE cvterm.name = 'J_spacer';
  9531. --- ************************************************
  9532. --- *** relation: v_dj_cluster ***
  9533. --- *** relation type: VIEW ***
  9534. --- *** ***
  9535. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9536. --- *** eptor gene in rearranged configuration i ***
  9537. --- *** ncluding at least one V-gene and one DJ- ***
  9538. --- *** gene. ***
  9539. --- ************************************************
  9540. ---
  9541. CREATE VIEW v_dj_cluster AS
  9542. SELECT
  9543. feature_id AS v_dj_cluster_id,
  9544. feature.*
  9545. FROM
  9546. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9547. WHERE cvterm.name = 'V_DJ_cluster';
  9548. --- ************************************************
  9549. --- *** relation: v_dj_j_cluster ***
  9550. --- *** relation type: VIEW ***
  9551. --- *** ***
  9552. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9553. --- *** eptor gene in rearranged configuration i ***
  9554. --- *** ncluding at least one V-gene, one DJ-gen ***
  9555. --- *** e and one J-gene. ***
  9556. --- ************************************************
  9557. ---
  9558. CREATE VIEW v_dj_j_cluster AS
  9559. SELECT
  9560. feature_id AS v_dj_j_cluster_id,
  9561. feature.*
  9562. FROM
  9563. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9564. WHERE cvterm.name = 'V_DJ_J_cluster';
  9565. --- ************************************************
  9566. --- *** relation: v_vdj_c_cluster ***
  9567. --- *** relation type: VIEW ***
  9568. --- *** ***
  9569. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9570. --- *** eptor gene in rearranged configuration i ***
  9571. --- *** ncluding at least one V-gene, one VDJ-ge ***
  9572. --- *** ne and one C-gene. ***
  9573. --- ************************************************
  9574. ---
  9575. CREATE VIEW v_vdj_c_cluster AS
  9576. SELECT
  9577. feature_id AS v_vdj_c_cluster_id,
  9578. feature.*
  9579. FROM
  9580. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9581. WHERE cvterm.name = 'V_VDJ_C_cluster';
  9582. --- ************************************************
  9583. --- *** relation: v_vdj_cluster ***
  9584. --- *** relation type: VIEW ***
  9585. --- *** ***
  9586. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9587. --- *** eptor gene in rearranged configuration i ***
  9588. --- *** ncluding at least one V-gene and one VDJ ***
  9589. --- *** -gene. ***
  9590. --- ************************************************
  9591. ---
  9592. CREATE VIEW v_vdj_cluster AS
  9593. SELECT
  9594. feature_id AS v_vdj_cluster_id,
  9595. feature.*
  9596. FROM
  9597. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9598. WHERE cvterm.name = 'V_VDJ_cluster';
  9599. --- ************************************************
  9600. --- *** relation: v_vdj_j_cluster ***
  9601. --- *** relation type: VIEW ***
  9602. --- *** ***
  9603. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9604. --- *** eptor gene in rearranged configuration i ***
  9605. --- *** ncluding at least one V-gene, one VDJ-ge ***
  9606. --- *** ne and one J-gene. ***
  9607. --- ************************************************
  9608. ---
  9609. CREATE VIEW v_vdj_j_cluster AS
  9610. SELECT
  9611. feature_id AS v_vdj_j_cluster_id,
  9612. feature.*
  9613. FROM
  9614. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9615. WHERE cvterm.name = 'V_VDJ_J_cluster';
  9616. --- ************************************************
  9617. --- *** relation: v_vj_c_cluster ***
  9618. --- *** relation type: VIEW ***
  9619. --- *** ***
  9620. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9621. --- *** eptor gene in rearranged configuration i ***
  9622. --- *** ncluding at least one V-gene, one VJ-gen ***
  9623. --- *** e and one C-gene. ***
  9624. --- ************************************************
  9625. ---
  9626. CREATE VIEW v_vj_c_cluster AS
  9627. SELECT
  9628. feature_id AS v_vj_c_cluster_id,
  9629. feature.*
  9630. FROM
  9631. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9632. WHERE cvterm.name = 'V_VJ_C_cluster';
  9633. --- ************************************************
  9634. --- *** relation: v_vj_cluster ***
  9635. --- *** relation type: VIEW ***
  9636. --- *** ***
  9637. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9638. --- *** eptor gene in rearranged configuration i ***
  9639. --- *** ncluding at least one V-gene and one VJ- ***
  9640. --- *** gene. ***
  9641. --- ************************************************
  9642. ---
  9643. CREATE VIEW v_vj_cluster AS
  9644. SELECT
  9645. feature_id AS v_vj_cluster_id,
  9646. feature.*
  9647. FROM
  9648. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9649. WHERE cvterm.name = 'V_VJ_cluster';
  9650. --- ************************************************
  9651. --- *** relation: v_vj_j_cluster ***
  9652. --- *** relation type: VIEW ***
  9653. --- *** ***
  9654. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9655. --- *** eptor gene in rearranged configuration i ***
  9656. --- *** ncluding at least one V-gene, one VJ-gen ***
  9657. --- *** e and one J-gene. ***
  9658. --- ************************************************
  9659. ---
  9660. CREATE VIEW v_vj_j_cluster AS
  9661. SELECT
  9662. feature_id AS v_vj_j_cluster_id,
  9663. feature.*
  9664. FROM
  9665. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9666. WHERE cvterm.name = 'V_VJ_J_cluster';
  9667. --- ************************************************
  9668. --- *** relation: v_cluster ***
  9669. --- *** relation type: VIEW ***
  9670. --- *** ***
  9671. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9672. --- *** eptor gene in germline configuration inc ***
  9673. --- *** luding more than one V-gene. ***
  9674. --- ************************************************
  9675. ---
  9676. CREATE VIEW v_cluster AS
  9677. SELECT
  9678. feature_id AS v_cluster_id,
  9679. feature.*
  9680. FROM
  9681. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9682. WHERE cvterm.name = 'V_cluster';
  9683. --- ************************************************
  9684. --- *** relation: v_d_dj_c_cluster ***
  9685. --- *** relation type: VIEW ***
  9686. --- *** ***
  9687. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9688. --- *** eptor gene in rearranged configuration i ***
  9689. --- *** ncluding at least one V-gene, one D-gene ***
  9690. --- *** , one DJ-gene and one C-gene. ***
  9691. --- ************************************************
  9692. ---
  9693. CREATE VIEW v_d_dj_c_cluster AS
  9694. SELECT
  9695. feature_id AS v_d_dj_c_cluster_id,
  9696. feature.*
  9697. FROM
  9698. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9699. WHERE cvterm.name = 'V_D_DJ_C_cluster';
  9700. --- ************************************************
  9701. --- *** relation: v_d_dj_cluster ***
  9702. --- *** relation type: VIEW ***
  9703. --- *** ***
  9704. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9705. --- *** eptor gene in rearranged configuration i ***
  9706. --- *** ncluding at least one V-gene, one D-gene ***
  9707. --- *** , one DJ-gene. ***
  9708. --- ************************************************
  9709. ---
  9710. CREATE VIEW v_d_dj_cluster AS
  9711. SELECT
  9712. feature_id AS v_d_dj_cluster_id,
  9713. feature.*
  9714. FROM
  9715. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9716. WHERE cvterm.name = 'V_D_DJ_cluster';
  9717. --- ************************************************
  9718. --- *** relation: v_d_dj_j_c_cluster ***
  9719. --- *** relation type: VIEW ***
  9720. --- *** ***
  9721. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9722. --- *** eptor gene in rearranged configuration i ***
  9723. --- *** ncluding at least one V-gene, one D-gene ***
  9724. --- *** , one DJ-gene, one J-gene and one C-gene ***
  9725. --- *** . ***
  9726. --- ************************************************
  9727. ---
  9728. CREATE VIEW v_d_dj_j_c_cluster AS
  9729. SELECT
  9730. feature_id AS v_d_dj_j_c_cluster_id,
  9731. feature.*
  9732. FROM
  9733. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9734. WHERE cvterm.name = 'V_D_DJ_J_C_cluster';
  9735. --- ************************************************
  9736. --- *** relation: v_d_dj_j_cluster ***
  9737. --- *** relation type: VIEW ***
  9738. --- *** ***
  9739. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9740. --- *** eptor gene in rearranged configuration i ***
  9741. --- *** ncluding at least one V-gene, one D-gene ***
  9742. --- *** , one DJ-gene and one J-gene. ***
  9743. --- ************************************************
  9744. ---
  9745. CREATE VIEW v_d_dj_j_cluster AS
  9746. SELECT
  9747. feature_id AS v_d_dj_j_cluster_id,
  9748. feature.*
  9749. FROM
  9750. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9751. WHERE cvterm.name = 'V_D_DJ_J_cluster';
  9752. --- ************************************************
  9753. --- *** relation: v_d_j_c_cluster ***
  9754. --- *** relation type: VIEW ***
  9755. --- *** ***
  9756. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9757. --- *** eptor gene in germline configuration inc ***
  9758. --- *** luding at least one V-gene, one D-gene a ***
  9759. --- *** nd one J-gene and one C-gene. ***
  9760. --- ************************************************
  9761. ---
  9762. CREATE VIEW v_d_j_c_cluster AS
  9763. SELECT
  9764. feature_id AS v_d_j_c_cluster_id,
  9765. feature.*
  9766. FROM
  9767. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9768. WHERE cvterm.name = 'V_D_J_C_cluster';
  9769. --- ************************************************
  9770. --- *** relation: v_d_j_cluster ***
  9771. --- *** relation type: VIEW ***
  9772. --- *** ***
  9773. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9774. --- *** eptor gene in germline configuration inc ***
  9775. --- *** luding at least one V-gene, one D-gene a ***
  9776. --- *** nd one J-gene. ***
  9777. --- ************************************************
  9778. ---
  9779. CREATE VIEW v_d_j_cluster AS
  9780. SELECT
  9781. feature_id AS v_d_j_cluster_id,
  9782. feature.*
  9783. FROM
  9784. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9785. WHERE cvterm.name = 'V_D_J_cluster';
  9786. --- ************************************************
  9787. --- *** relation: v_heptamer ***
  9788. --- *** relation type: VIEW ***
  9789. --- *** ***
  9790. --- *** 7 nucleotide recombination site (e.g. CA ***
  9791. --- *** CAGTG), part of V-gene recombination fea ***
  9792. --- *** ture of an immunoglobulin/T-cell recepto ***
  9793. --- *** r gene. ***
  9794. --- ************************************************
  9795. ---
  9796. CREATE VIEW v_heptamer AS
  9797. SELECT
  9798. feature_id AS v_heptamer_id,
  9799. feature.*
  9800. FROM
  9801. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9802. WHERE cvterm.name = 'V_heptamer';
  9803. --- ************************************************
  9804. --- *** relation: v_j_cluster ***
  9805. --- *** relation type: VIEW ***
  9806. --- *** ***
  9807. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9808. --- *** eptor gene in germline configuration inc ***
  9809. --- *** luding at least one V-gene and one J-gen ***
  9810. --- *** e. ***
  9811. --- ************************************************
  9812. ---
  9813. CREATE VIEW v_j_cluster AS
  9814. SELECT
  9815. feature_id AS v_j_cluster_id,
  9816. feature.*
  9817. FROM
  9818. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9819. WHERE cvterm.name = 'V_J_cluster';
  9820. --- ************************************************
  9821. --- *** relation: v_j_c_cluster ***
  9822. --- *** relation type: VIEW ***
  9823. --- *** ***
  9824. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9825. --- *** eptor gene in germline configuration inc ***
  9826. --- *** luding at least one V-gene, one J-gene a ***
  9827. --- *** nd one C-gene. ***
  9828. --- ************************************************
  9829. ---
  9830. CREATE VIEW v_j_c_cluster AS
  9831. SELECT
  9832. feature_id AS v_j_c_cluster_id,
  9833. feature.*
  9834. FROM
  9835. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9836. WHERE cvterm.name = 'V_J_C_cluster';
  9837. --- ************************************************
  9838. --- *** relation: v_nonamer ***
  9839. --- *** relation type: VIEW ***
  9840. --- *** ***
  9841. --- *** 9 nucleotide recombination site (e.g. AC ***
  9842. --- *** AAAAACC), part of V-gene recombination f ***
  9843. --- *** eature of an immunoglobulin/T-cell recep ***
  9844. --- *** tor gene. ***
  9845. --- ************************************************
  9846. ---
  9847. CREATE VIEW v_nonamer AS
  9848. SELECT
  9849. feature_id AS v_nonamer_id,
  9850. feature.*
  9851. FROM
  9852. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9853. WHERE cvterm.name = 'V_nonamer';
  9854. --- ************************************************
  9855. --- *** relation: v_spacer ***
  9856. --- *** relation type: VIEW ***
  9857. --- *** ***
  9858. --- *** 12 or 23 nucleotide spacer between the V ***
  9859. --- *** -heptamer and the V-nonamer of a V-gene ***
  9860. --- *** recombination feature of an immunoglobul ***
  9861. --- *** in/T-cell receptor gene. ***
  9862. --- ************************************************
  9863. ---
  9864. CREATE VIEW v_spacer AS
  9865. SELECT
  9866. feature_id AS v_spacer_id,
  9867. feature.*
  9868. FROM
  9869. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9870. WHERE cvterm.name = 'V_spacer';
  9871. --- ************************************************
  9872. --- *** relation: v_gene_recombination_feature ***
  9873. --- *** relation type: VIEW ***
  9874. --- *** ***
  9875. --- *** Recombination signal including V-heptame ***
  9876. --- *** r, V-spacer and V-nonamer in 3' of V-reg ***
  9877. --- *** ion of a V-gene or V-sequence of an immu ***
  9878. --- *** noglobulin/T-cell receptor gene. ***
  9879. --- ************************************************
  9880. ---
  9881. CREATE VIEW v_gene_recombination_feature AS
  9882. SELECT
  9883. feature_id AS v_gene_recombination_feature_id,
  9884. feature.*
  9885. FROM
  9886. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9887. WHERE cvterm.name = 'V_gene_recombination_feature';
  9888. --- ************************************************
  9889. --- *** relation: dj_c_cluster ***
  9890. --- *** relation type: VIEW ***
  9891. --- *** ***
  9892. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9893. --- *** eptor gene in rearranged configuration i ***
  9894. --- *** ncluding at least one DJ-gene and one C- ***
  9895. --- *** gene. ***
  9896. --- ************************************************
  9897. ---
  9898. CREATE VIEW dj_c_cluster AS
  9899. SELECT
  9900. feature_id AS dj_c_cluster_id,
  9901. feature.*
  9902. FROM
  9903. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9904. WHERE cvterm.name = 'DJ_C_cluster';
  9905. --- ************************************************
  9906. --- *** relation: dj_j_c_cluster ***
  9907. --- *** relation type: VIEW ***
  9908. --- *** ***
  9909. --- *** Genomic DNA in rearranged configuration ***
  9910. --- *** including at least one D-J-GENE, one J-G ***
  9911. --- *** ENE and one C-GENE. ***
  9912. --- ************************************************
  9913. ---
  9914. CREATE VIEW dj_j_c_cluster AS
  9915. SELECT
  9916. feature_id AS dj_j_c_cluster_id,
  9917. feature.*
  9918. FROM
  9919. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9920. WHERE cvterm.name = 'DJ_J_C_cluster';
  9921. --- ************************************************
  9922. --- *** relation: vdj_c_cluster ***
  9923. --- *** relation type: VIEW ***
  9924. --- *** ***
  9925. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9926. --- *** eptor gene in rearranged configuration i ***
  9927. --- *** ncluding at least one VDJ-gene and one C ***
  9928. --- *** -gene. ***
  9929. --- ************************************************
  9930. ---
  9931. CREATE VIEW vdj_c_cluster AS
  9932. SELECT
  9933. feature_id AS vdj_c_cluster_id,
  9934. feature.*
  9935. FROM
  9936. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9937. WHERE cvterm.name = 'VDJ_C_cluster';
  9938. --- ************************************************
  9939. --- *** relation: v_dj_c_cluster ***
  9940. --- *** relation type: VIEW ***
  9941. --- *** ***
  9942. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9943. --- *** eptor gene in rearranged configuration i ***
  9944. --- *** ncluding at least one V-gene, one DJ-gen ***
  9945. --- *** e and one C-gene. ***
  9946. --- ************************************************
  9947. ---
  9948. CREATE VIEW v_dj_c_cluster AS
  9949. SELECT
  9950. feature_id AS v_dj_c_cluster_id,
  9951. feature.*
  9952. FROM
  9953. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9954. WHERE cvterm.name = 'V_DJ_C_cluster';
  9955. --- ************************************************
  9956. --- *** relation: helitron ***
  9957. --- *** relation type: VIEW ***
  9958. --- *** ***
  9959. --- *** A rolling circle transposon. Autonomous ***
  9960. --- *** helitrons encode a 5'-to-3' DNA helicase ***
  9961. --- *** and nuclease/ligase similar to those en ***
  9962. --- *** coded by known rolling-circle replicons. ***
  9963. --- ************************************************
  9964. ---
  9965. CREATE VIEW helitron AS
  9966. SELECT
  9967. feature_id AS helitron_id,
  9968. feature.*
  9969. FROM
  9970. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9971. WHERE cvterm.name = 'helitron';
  9972. --- ************************************************
  9973. --- *** relation: recoding_pseudoknot ***
  9974. --- *** relation type: VIEW ***
  9975. --- *** ***
  9976. --- *** The pseudoknots involved in recoding are ***
  9977. --- *** unique in that, as they play their role ***
  9978. --- *** as a structure, they are immediately un ***
  9979. --- *** folded and their now linear sequence ser ***
  9980. --- *** ves as a template for decoding. ***
  9981. --- ************************************************
  9982. ---
  9983. CREATE VIEW recoding_pseudoknot AS
  9984. SELECT
  9985. feature_id AS recoding_pseudoknot_id,
  9986. feature.*
  9987. FROM
  9988. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9989. WHERE cvterm.name = 'recoding_pseudoknot';
  9990. --- ************************************************
  9991. --- *** relation: designed_sequence ***
  9992. --- *** relation type: VIEW ***
  9993. --- *** ***
  9994. --- ************************************************
  9995. ---
  9996. CREATE VIEW designed_sequence AS
  9997. SELECT
  9998. feature_id AS designed_sequence_id,
  9999. feature.*
  10000. FROM
  10001. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10002. WHERE cvterm.name = 'designed_sequence';
  10003. --- ************************************************
  10004. --- *** relation: inversion_derived_bipartite_duplication ***
  10005. --- *** relation type: VIEW ***
  10006. --- *** ***
  10007. --- *** A chromosome generated by recombination ***
  10008. --- *** between two inversions; there is a dupli ***
  10009. --- *** cation at each end of the inversion. ***
  10010. --- ************************************************
  10011. ---
  10012. CREATE VIEW inversion_derived_bipartite_duplication AS
  10013. SELECT
  10014. feature_id AS inversion_derived_bipartite_duplication_id,
  10015. feature.*
  10016. FROM
  10017. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10018. WHERE cvterm.name = 'inversion_derived_bipartite_duplication';
  10019. --- ************************************************
  10020. --- *** relation: gene_with_edited_transcript ***
  10021. --- *** relation type: VIEW ***
  10022. --- *** ***
  10023. --- *** A gene that encodes a transcript that is ***
  10024. --- *** edited. ***
  10025. --- ************************************************
  10026. ---
  10027. CREATE VIEW gene_with_edited_transcript AS
  10028. SELECT
  10029. feature_id AS gene_with_edited_transcript_id,
  10030. feature.*
  10031. FROM
  10032. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10033. WHERE cvterm.name = 'gene_with_edited_transcript';
  10034. --- ************************************************
  10035. --- *** relation: inversion_derived_duplication_plus_aneuploid ***
  10036. --- *** relation type: VIEW ***
  10037. --- *** ***
  10038. --- *** A chromosome generated by recombination ***
  10039. --- *** between two inversions; has a duplicatio ***
  10040. --- *** n at one end and presumed to have a defi ***
  10041. --- *** ciency or duplication at the other end o ***
  10042. --- *** f the inversion. ***
  10043. --- ************************************************
  10044. ---
  10045. CREATE VIEW inversion_derived_duplication_plus_aneuploid AS
  10046. SELECT
  10047. feature_id AS inversion_derived_duplication_plus_aneuploid_id,
  10048. feature.*
  10049. FROM
  10050. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10051. WHERE cvterm.name = 'inversion_derived_duplication_plus_aneuploid';
  10052. --- ************************************************
  10053. --- *** relation: aneuploid_chromosome ***
  10054. --- *** relation type: VIEW ***
  10055. --- *** ***
  10056. --- ************************************************
  10057. ---
  10058. CREATE VIEW aneuploid_chromosome AS
  10059. SELECT
  10060. feature_id AS aneuploid_chromosome_id,
  10061. feature.*
  10062. FROM
  10063. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10064. WHERE cvterm.name = 'inversion_derived_aneuploid_chromosome' OR cvterm.name = 'chromosomal_deletion' OR cvterm.name = 'chromosomal_duplication' 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 = '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 = 'tandem_duplication' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unorientated_intrachromosomal_transposition' OR cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' 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 = 'aneuploid_chromosome';
  10065. --- ************************************************
  10066. --- *** relation: polya_signal_sequence ***
  10067. --- *** relation type: VIEW ***
  10068. --- *** ***
  10069. --- *** The recognition sequence necessary for e ***
  10070. --- *** ndonuclease cleavage of an RNA transcrip ***
  10071. --- *** t that is followed by polyadenylation; c ***
  10072. --- *** onsensus=AATAAA. ***
  10073. --- ************************************************
  10074. ---
  10075. CREATE VIEW polya_signal_sequence AS
  10076. SELECT
  10077. feature_id AS polya_signal_sequence_id,
  10078. feature.*
  10079. FROM
  10080. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10081. WHERE cvterm.name = 'polyA_signal_sequence';
  10082. --- ************************************************
  10083. --- *** relation: shine_dalgarno_sequence ***
  10084. --- *** relation type: VIEW ***
  10085. --- *** ***
  10086. --- *** Region in 5' UTR where ribosome assemble ***
  10087. --- *** s on mRNA. ***
  10088. --- ************************************************
  10089. ---
  10090. CREATE VIEW shine_dalgarno_sequence AS
  10091. SELECT
  10092. feature_id AS shine_dalgarno_sequence_id,
  10093. feature.*
  10094. FROM
  10095. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10096. WHERE cvterm.name = 'Shine_Dalgarno_sequence';
  10097. --- ************************************************
  10098. --- *** relation: polya_site ***
  10099. --- *** relation type: VIEW ***
  10100. --- *** ***
  10101. --- *** The site on an RNA transcript to which w ***
  10102. --- *** ill be added adenine residues by post-tr ***
  10103. --- *** anscriptional polyadenylation. ***
  10104. --- ************************************************
  10105. ---
  10106. CREATE VIEW polya_site AS
  10107. SELECT
  10108. feature_id AS polya_site_id,
  10109. feature.*
  10110. FROM
  10111. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10112. WHERE cvterm.name = 'polyA_site';
  10113. --- ************************************************
  10114. --- *** relation: five_prime_clip ***
  10115. --- *** relation type: VIEW ***
  10116. --- *** ***
  10117. --- *** 5' most region of a precursor transcript ***
  10118. --- *** that is clipped off during processing. ***
  10119. --- ************************************************
  10120. ---
  10121. CREATE VIEW five_prime_clip AS
  10122. SELECT
  10123. feature_id AS five_prime_clip_id,
  10124. feature.*
  10125. FROM
  10126. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10127. WHERE cvterm.name = 'five_prime_clip';
  10128. --- ************************************************
  10129. --- *** relation: five_prime_d_recombination_signal_sequence ***
  10130. --- *** relation type: VIEW ***
  10131. --- *** ***
  10132. --- *** Recombination signal of an immunoglobuli ***
  10133. --- *** n/T-cell receptor gene, including the 5' ***
  10134. --- *** D-nonamer (SO:0000497), 5' D-spacer (SO ***
  10135. --- *** :0000498), and 5' D-heptamer (SO:0000396 ***
  10136. --- *** ) in 5' of the D-region of a D-gene, or ***
  10137. --- *** in 5' of the D-region of DJ-gene. ***
  10138. --- ************************************************
  10139. ---
  10140. CREATE VIEW five_prime_d_recombination_signal_sequence AS
  10141. SELECT
  10142. feature_id AS five_prime_d_recombination_signal_sequence_id,
  10143. feature.*
  10144. FROM
  10145. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10146. WHERE cvterm.name = 'five_prime_D_recombination_signal_sequence';
  10147. --- ************************************************
  10148. --- *** relation: three_prime_clip ***
  10149. --- *** relation type: VIEW ***
  10150. --- *** ***
  10151. --- *** 3'-most region of a precursor transcript ***
  10152. --- *** that is clipped off during processing. ***
  10153. --- ************************************************
  10154. ---
  10155. CREATE VIEW three_prime_clip AS
  10156. SELECT
  10157. feature_id AS three_prime_clip_id,
  10158. feature.*
  10159. FROM
  10160. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10161. WHERE cvterm.name = 'three_prime_clip';
  10162. --- ************************************************
  10163. --- *** relation: c_cluster ***
  10164. --- *** relation type: VIEW ***
  10165. --- *** ***
  10166. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10167. --- *** eptor gene including more than one C-gen ***
  10168. --- *** e. ***
  10169. --- ************************************************
  10170. ---
  10171. CREATE VIEW c_cluster AS
  10172. SELECT
  10173. feature_id AS c_cluster_id,
  10174. feature.*
  10175. FROM
  10176. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10177. WHERE cvterm.name = 'C_cluster';
  10178. --- ************************************************
  10179. --- *** relation: d_cluster ***
  10180. --- *** relation type: VIEW ***
  10181. --- *** ***
  10182. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10183. --- *** eptor gene in germline configuration inc ***
  10184. --- *** luding more than one D-gene. ***
  10185. --- ************************************************
  10186. ---
  10187. CREATE VIEW d_cluster AS
  10188. SELECT
  10189. feature_id AS d_cluster_id,
  10190. feature.*
  10191. FROM
  10192. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10193. WHERE cvterm.name = 'D_cluster';
  10194. --- ************************************************
  10195. --- *** relation: d_j_cluster ***
  10196. --- *** relation type: VIEW ***
  10197. --- *** ***
  10198. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10199. --- *** eptor gene in germline configuration inc ***
  10200. --- *** luding at least one D-gene and one J-gen ***
  10201. --- *** e. ***
  10202. --- ************************************************
  10203. ---
  10204. CREATE VIEW d_j_cluster AS
  10205. SELECT
  10206. feature_id AS d_j_cluster_id,
  10207. feature.*
  10208. FROM
  10209. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10210. WHERE cvterm.name = 'D_J_cluster';
  10211. --- ************************************************
  10212. --- *** relation: heptamer_of_recombination_feature_of_vertebrate_im_sys_gene ***
  10213. --- *** relation type: VIEW ***
  10214. --- *** ***
  10215. --- *** Seven nucleotide recombination site (e.g ***
  10216. --- *** . CACAGTG), part of V-gene, D-gene or J- ***
  10217. --- *** gene recombination feature of an immunog ***
  10218. --- *** lobulin or T-cell receptor gene. ***
  10219. --- ************************************************
  10220. ---
  10221. CREATE VIEW heptamer_of_recombination_feature_of_vertebrate_im_sys_gene AS
  10222. SELECT
  10223. feature_id AS heptamer_of_recombination_feature_of_vertebrate_im_sys_gene_id,
  10224. feature.*
  10225. FROM
  10226. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10227. 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';
  10228. --- ************************************************
  10229. --- *** relation: nonamer_of_recombination_feature_of_vertebrate_im_sys_gene ***
  10230. --- *** relation type: VIEW ***
  10231. --- *** ***
  10232. --- ************************************************
  10233. ---
  10234. CREATE VIEW nonamer_of_recombination_feature_of_vertebrate_im_sys_gene AS
  10235. SELECT
  10236. feature_id AS nonamer_of_recombination_feature_of_vertebrate_im_sys_gene_id,
  10237. feature.*
  10238. FROM
  10239. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10240. 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';
  10241. --- ************************************************
  10242. --- *** relation: vertebrate_immune_system_gene_recombination_spacer ***
  10243. --- *** relation type: VIEW ***
  10244. --- *** ***
  10245. --- ************************************************
  10246. ---
  10247. CREATE VIEW vertebrate_immune_system_gene_recombination_spacer AS
  10248. SELECT
  10249. feature_id AS vertebrate_immune_system_gene_recombination_spacer_id,
  10250. feature.*
  10251. FROM
  10252. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10253. 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';
  10254. --- ************************************************
  10255. --- *** relation: v_dj_j_c_cluster ***
  10256. --- *** relation type: VIEW ***
  10257. --- *** ***
  10258. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10259. --- *** eptor gene in rearranged configuration i ***
  10260. --- *** ncluding at least one V-gene, one DJ-gen ***
  10261. --- *** e, one J-gene and one C-gene. ***
  10262. --- ************************************************
  10263. ---
  10264. CREATE VIEW v_dj_j_c_cluster AS
  10265. SELECT
  10266. feature_id AS v_dj_j_c_cluster_id,
  10267. feature.*
  10268. FROM
  10269. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10270. WHERE cvterm.name = 'V_DJ_J_C_cluster';
  10271. --- ************************************************
  10272. --- *** relation: v_vdj_j_c_cluster ***
  10273. --- *** relation type: VIEW ***
  10274. --- *** ***
  10275. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10276. --- *** eptor gene in rearranged configuration i ***
  10277. --- *** ncluding at least one V-gene, one VDJ-ge ***
  10278. --- *** ne, one J-gene and one C-gene. ***
  10279. --- ************************************************
  10280. ---
  10281. CREATE VIEW v_vdj_j_c_cluster AS
  10282. SELECT
  10283. feature_id AS v_vdj_j_c_cluster_id,
  10284. feature.*
  10285. FROM
  10286. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10287. WHERE cvterm.name = 'V_VDJ_J_C_cluster';
  10288. --- ************************************************
  10289. --- *** relation: v_vj_j_c_cluster ***
  10290. --- *** relation type: VIEW ***
  10291. --- *** ***
  10292. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10293. --- *** eptor gene in rearranged configuration i ***
  10294. --- *** ncluding at least one V-gene, one VJ-gen ***
  10295. --- *** e, one J-gene and one C-gene. ***
  10296. --- ************************************************
  10297. ---
  10298. CREATE VIEW v_vj_j_c_cluster AS
  10299. SELECT
  10300. feature_id AS v_vj_j_c_cluster_id,
  10301. feature.*
  10302. FROM
  10303. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10304. WHERE cvterm.name = 'V_VJ_J_C_cluster';
  10305. --- ************************************************
  10306. --- *** relation: inversion_derived_aneuploid_chromosome ***
  10307. --- *** relation type: VIEW ***
  10308. --- *** ***
  10309. --- *** A chromosome may be generated by recombi ***
  10310. --- *** nation between two inverversions; presum ***
  10311. --- *** ed to have a deficiency or duplication a ***
  10312. --- *** t each end of the inversion. ***
  10313. --- ************************************************
  10314. ---
  10315. CREATE VIEW inversion_derived_aneuploid_chromosome AS
  10316. SELECT
  10317. feature_id AS inversion_derived_aneuploid_chromosome_id,
  10318. feature.*
  10319. FROM
  10320. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10321. WHERE cvterm.name = 'inversion_derived_aneuploid_chromosome';
  10322. --- ************************************************
  10323. --- *** relation: bidirectional_promoter ***
  10324. --- *** relation type: VIEW ***
  10325. --- *** ***
  10326. --- ************************************************
  10327. ---
  10328. CREATE VIEW bidirectional_promoter AS
  10329. SELECT
  10330. feature_id AS bidirectional_promoter_id,
  10331. feature.*
  10332. FROM
  10333. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10334. WHERE cvterm.name = 'bidirectional_promoter';
  10335. --- ************************************************
  10336. --- *** relation: retrotransposed ***
  10337. --- *** relation type: VIEW ***
  10338. --- *** ***
  10339. --- *** An attribute of a feature that occured a ***
  10340. --- *** s the product of a reverse transcriptase ***
  10341. --- *** mediated event. ***
  10342. --- ************************************************
  10343. ---
  10344. CREATE VIEW retrotransposed AS
  10345. SELECT
  10346. feature_id AS retrotransposed_id,
  10347. feature.*
  10348. FROM
  10349. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10350. WHERE cvterm.name = 'retrotransposed';
  10351. --- ************************************************
  10352. --- *** relation: three_prime_d_recombination_signal_sequence ***
  10353. --- *** relation type: VIEW ***
  10354. --- *** ***
  10355. --- *** Recombination signal of an immunoglobuli ***
  10356. --- *** n/T-cell receptor gene, including the 3' ***
  10357. --- *** D-heptamer (SO:0000493), 3' D-spacer, a ***
  10358. --- *** nd 3' D-nonamer (SO:0000494) in 3' of th ***
  10359. --- *** e D-region of a D-gene. ***
  10360. --- ************************************************
  10361. ---
  10362. CREATE VIEW three_prime_d_recombination_signal_sequence AS
  10363. SELECT
  10364. feature_id AS three_prime_d_recombination_signal_sequence_id,
  10365. feature.*
  10366. FROM
  10367. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10368. WHERE cvterm.name = 'three_prime_D_recombination_signal_sequence';
  10369. --- ************************************************
  10370. --- *** relation: mirna_encoding ***
  10371. --- *** relation type: VIEW ***
  10372. --- *** ***
  10373. --- ************************************************
  10374. ---
  10375. CREATE VIEW mirna_encoding AS
  10376. SELECT
  10377. feature_id AS mirna_encoding_id,
  10378. feature.*
  10379. FROM
  10380. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10381. WHERE cvterm.name = 'miRNA_encoding';
  10382. --- ************************************************
  10383. --- *** relation: dj_gene ***
  10384. --- *** relation type: VIEW ***
  10385. --- *** ***
  10386. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10387. --- *** eptor gene in partially rearranged genom ***
  10388. --- *** ic DNA including D-J-region with 5' UTR ***
  10389. --- *** and 3' UTR, also designated as D-J-segme ***
  10390. --- *** nt. ***
  10391. --- ************************************************
  10392. ---
  10393. CREATE VIEW dj_gene AS
  10394. SELECT
  10395. feature_id AS dj_gene_id,
  10396. feature.*
  10397. FROM
  10398. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10399. WHERE cvterm.name = 'DJ_gene';
  10400. --- ************************************************
  10401. --- *** relation: rrna_encoding ***
  10402. --- *** relation type: VIEW ***
  10403. --- *** ***
  10404. --- ************************************************
  10405. ---
  10406. CREATE VIEW rrna_encoding AS
  10407. SELECT
  10408. feature_id AS rrna_encoding_id,
  10409. feature.*
  10410. FROM
  10411. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10412. WHERE cvterm.name = 'rRNA_encoding';
  10413. --- ************************************************
  10414. --- *** relation: vdj_gene ***
  10415. --- *** relation type: VIEW ***
  10416. --- *** ***
  10417. --- *** Rearranged genomic DNA of immunoglobulin ***
  10418. --- *** /T-cell receptor gene including L-part1, ***
  10419. --- *** V-intron and V-D-J-exon, with the 5'UTR ***
  10420. --- *** (SO:0000204) and 3'UTR (SO:0000205). ***
  10421. --- ************************************************
  10422. ---
  10423. CREATE VIEW vdj_gene AS
  10424. SELECT
  10425. feature_id AS vdj_gene_id,
  10426. feature.*
  10427. FROM
  10428. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10429. WHERE cvterm.name = 'VDJ_gene';
  10430. --- ************************************************
  10431. --- *** relation: scrna_encoding ***
  10432. --- *** relation type: VIEW ***
  10433. --- *** ***
  10434. --- ************************************************
  10435. ---
  10436. CREATE VIEW scrna_encoding AS
  10437. SELECT
  10438. feature_id AS scrna_encoding_id,
  10439. feature.*
  10440. FROM
  10441. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10442. WHERE cvterm.name = 'scRNA_encoding';
  10443. --- ************************************************
  10444. --- *** relation: vj_gene ***
  10445. --- *** relation type: VIEW ***
  10446. --- *** ***
  10447. --- *** Rearranged genomic DNA of immunoglobulin ***
  10448. --- *** /T-cell receptor gene including L-part1, ***
  10449. --- *** V-intron and V-J-exon, with the 5'UTR ( ***
  10450. --- *** SO:0000204) and 3'UTR (SO:0000205). ***
  10451. --- ************************************************
  10452. ---
  10453. CREATE VIEW vj_gene AS
  10454. SELECT
  10455. feature_id AS vj_gene_id,
  10456. feature.*
  10457. FROM
  10458. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10459. WHERE cvterm.name = 'VJ_gene';
  10460. --- ************************************************
  10461. --- *** relation: centromere ***
  10462. --- *** relation type: VIEW ***
  10463. --- *** ***
  10464. --- *** A region of chromosome where the spindle ***
  10465. --- *** fibers attach during mitosis and meiosi ***
  10466. --- *** s. ***
  10467. --- ************************************************
  10468. ---
  10469. CREATE VIEW centromere AS
  10470. SELECT
  10471. feature_id AS centromere_id,
  10472. feature.*
  10473. FROM
  10474. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10475. WHERE cvterm.name = 'centromere';
  10476. --- ************************************************
  10477. --- *** relation: snorna_encoding ***
  10478. --- *** relation type: VIEW ***
  10479. --- *** ***
  10480. --- ************************************************
  10481. ---
  10482. CREATE VIEW snorna_encoding AS
  10483. SELECT
  10484. feature_id AS snorna_encoding_id,
  10485. feature.*
  10486. FROM
  10487. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10488. WHERE cvterm.name = 'C_D_box_snoRNA_encoding' OR cvterm.name = 'H_ACA_box_snoRNA_encoding' OR cvterm.name = 'snoRNA_encoding';
  10489. --- ************************************************
  10490. --- *** relation: edited_transcript_feature ***
  10491. --- *** relation type: VIEW ***
  10492. --- *** ***
  10493. --- *** A locatable feature on a transcript that ***
  10494. --- *** is edited. ***
  10495. --- ************************************************
  10496. ---
  10497. CREATE VIEW edited_transcript_feature AS
  10498. SELECT
  10499. feature_id AS edited_transcript_feature_id,
  10500. feature.*
  10501. FROM
  10502. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10503. 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';
  10504. --- ************************************************
  10505. --- *** relation: methylation_guide_snorna_primary_transcript ***
  10506. --- *** relation type: VIEW ***
  10507. --- *** ***
  10508. --- *** A primary transcript encoding a methylat ***
  10509. --- *** ion guide small nucleolar RNA. ***
  10510. --- ************************************************
  10511. ---
  10512. CREATE VIEW methylation_guide_snorna_primary_transcript AS
  10513. SELECT
  10514. feature_id AS methylation_guide_snorna_primary_transcript_id,
  10515. feature.*
  10516. FROM
  10517. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10518. WHERE cvterm.name = 'methylation_guide_snoRNA_primary_transcript';
  10519. --- ************************************************
  10520. --- *** relation: cap ***
  10521. --- *** relation type: VIEW ***
  10522. --- *** ***
  10523. --- *** A structure consisting of a 7-methylguan ***
  10524. --- *** osine in 5'-5' triphosphate linkage with ***
  10525. --- *** the first nucleotide of an mRNA. It is ***
  10526. --- *** added post-transcriptionally, and is not ***
  10527. --- *** encoded in the DNA. ***
  10528. --- ************************************************
  10529. ---
  10530. CREATE VIEW cap AS
  10531. SELECT
  10532. feature_id AS cap_id,
  10533. feature.*
  10534. FROM
  10535. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10536. WHERE cvterm.name = 'cap';
  10537. --- ************************************************
  10538. --- *** relation: rrna_cleavage_snorna_primary_transcript ***
  10539. --- *** relation type: VIEW ***
  10540. --- *** ***
  10541. --- *** A primary transcript encoding an rRNA cl ***
  10542. --- *** eavage snoRNA. ***
  10543. --- ************************************************
  10544. ---
  10545. CREATE VIEW rrna_cleavage_snorna_primary_transcript AS
  10546. SELECT
  10547. feature_id AS rrna_cleavage_snorna_primary_transcript_id,
  10548. feature.*
  10549. FROM
  10550. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10551. WHERE cvterm.name = 'rRNA_cleavage_snoRNA_primary_transcript';
  10552. --- ************************************************
  10553. --- *** relation: pre_edited_region ***
  10554. --- *** relation type: VIEW ***
  10555. --- *** ***
  10556. --- *** The region of a transcript that will be ***
  10557. --- *** edited. ***
  10558. --- ************************************************
  10559. ---
  10560. CREATE VIEW pre_edited_region AS
  10561. SELECT
  10562. feature_id AS pre_edited_region_id,
  10563. feature.*
  10564. FROM
  10565. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10566. WHERE cvterm.name = 'pre_edited_region';
  10567. --- ************************************************
  10568. --- *** relation: tmrna ***
  10569. --- *** relation type: VIEW ***
  10570. --- *** ***
  10571. --- *** A tmRNA liberates a mRNA from a stalled ***
  10572. --- *** ribosome. To accomplish this part of the ***
  10573. --- *** tmRNA is used as a reading frame that e ***
  10574. --- *** nds in a translation stop signal. The br ***
  10575. --- *** oken mRNA is replaced in the ribosome by ***
  10576. --- *** the tmRNA and translation of the tmRNA ***
  10577. --- *** leads to addition of a proteolysis tag t ***
  10578. --- *** o the incomplete protein enabling recogn ***
  10579. --- *** ition by a protease. Recently a number o ***
  10580. --- *** f permuted tmRNAs genes have been found ***
  10581. --- *** encoded in two parts. TmRNAs have been i ***
  10582. --- *** dentified in eubacteria and some chlorop ***
  10583. --- *** lasts but are absent from archeal and eu ***
  10584. --- *** karyote nuclear genomes. ***
  10585. --- ************************************************
  10586. ---
  10587. CREATE VIEW tmrna AS
  10588. SELECT
  10589. feature_id AS tmrna_id,
  10590. feature.*
  10591. FROM
  10592. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10593. WHERE cvterm.name = 'tmRNA';
  10594. --- ************************************************
  10595. --- *** relation: c_d_box_snorna_encoding ***
  10596. --- *** relation type: VIEW ***
  10597. --- *** ***
  10598. --- ************************************************
  10599. ---
  10600. CREATE VIEW c_d_box_snorna_encoding AS
  10601. SELECT
  10602. feature_id AS c_d_box_snorna_encoding_id,
  10603. feature.*
  10604. FROM
  10605. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10606. WHERE cvterm.name = 'C_D_box_snoRNA_encoding';
  10607. --- ************************************************
  10608. --- *** relation: tmrna_primary_transcript ***
  10609. --- *** relation type: VIEW ***
  10610. --- *** ***
  10611. --- *** A primary transcript encoding a tmRNA (S ***
  10612. --- *** O:0000584). ***
  10613. --- ************************************************
  10614. ---
  10615. CREATE VIEW tmrna_primary_transcript AS
  10616. SELECT
  10617. feature_id AS tmrna_primary_transcript_id,
  10618. feature.*
  10619. FROM
  10620. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10621. WHERE cvterm.name = 'tmRNA_primary_transcript';
  10622. --- ************************************************
  10623. --- *** relation: group_i_intron ***
  10624. --- *** relation type: VIEW ***
  10625. --- *** ***
  10626. --- *** Group I catalytic introns are large self ***
  10627. --- *** -splicing ribozymes. They catalyse their ***
  10628. --- *** own excision from mRNA, tRNA and rRNA p ***
  10629. --- *** recursors in a wide range of organisms. ***
  10630. --- *** The core secondary structure consists of ***
  10631. --- *** 9 paired regions (P1-P9). These fold to ***
  10632. --- *** essentially two domains, the P4-P6 doma ***
  10633. --- *** in (formed from the stacking of P5, P4, ***
  10634. --- *** P6 and P6a helices) and the P3-P9 domain ***
  10635. --- *** (formed from the P8, P3, P7 and P9 heli ***
  10636. --- *** ces). Group I catalytic introns often ha ***
  10637. --- *** ve long ORFs inserted in loop regions. ***
  10638. --- ************************************************
  10639. ---
  10640. CREATE VIEW group_i_intron AS
  10641. SELECT
  10642. feature_id AS group_i_intron_id,
  10643. feature.*
  10644. FROM
  10645. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10646. WHERE cvterm.name = 'group_I_intron';
  10647. --- ************************************************
  10648. --- *** relation: autocatalytically_spliced_intron ***
  10649. --- *** relation type: VIEW ***
  10650. --- *** ***
  10651. --- *** A self spliced intron. ***
  10652. --- ************************************************
  10653. ---
  10654. CREATE VIEW autocatalytically_spliced_intron AS
  10655. SELECT
  10656. feature_id AS autocatalytically_spliced_intron_id,
  10657. feature.*
  10658. FROM
  10659. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10660. 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';
  10661. --- ************************************************
  10662. --- *** relation: srp_rna_primary_transcript ***
  10663. --- *** relation type: VIEW ***
  10664. --- *** ***
  10665. --- *** A primary transcript encoding a signal r ***
  10666. --- *** ecognition particle RNA. ***
  10667. --- ************************************************
  10668. ---
  10669. CREATE VIEW srp_rna_primary_transcript AS
  10670. SELECT
  10671. feature_id AS srp_rna_primary_transcript_id,
  10672. feature.*
  10673. FROM
  10674. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10675. WHERE cvterm.name = 'SRP_RNA_primary_transcript';
  10676. --- ************************************************
  10677. --- *** relation: srp_rna ***
  10678. --- *** relation type: VIEW ***
  10679. --- *** ***
  10680. --- *** The signal recognition particle (SRP) is ***
  10681. --- *** a universally conserved ribonucleoprote ***
  10682. --- *** in. It is involved in the co-translation ***
  10683. --- *** al targeting of proteins to membranes. T ***
  10684. --- *** he eukaryotic SRP consists of a 300-nucl ***
  10685. --- *** eotide 7S RNA and six proteins: SRPs 72, ***
  10686. --- *** 68, 54, 19, 14, and 9. Archaeal SRP con ***
  10687. --- *** sists of a 7S RNA and homologues of the ***
  10688. --- *** eukaryotic SRP19 and SRP54 proteins. In ***
  10689. --- *** most eubacteria, the SRP consists of a 4 ***
  10690. --- *** .5S RNA and the Ffh protein (a homologue ***
  10691. --- *** of the eukaryotic SRP54 protein). Eukar ***
  10692. --- *** yotic and archaeal 7S RNAs have very sim ***
  10693. --- *** ilar secondary structures, with eight he ***
  10694. --- *** lical elements. These fold into the Alu ***
  10695. --- *** and S domains, separated by a long linke ***
  10696. --- *** r region. Eubacterial SRP is generally a ***
  10697. --- *** simpler structure, with the M domain of ***
  10698. --- *** Ffh bound to a region of the 4.5S RNA t ***
  10699. --- *** hat corresponds to helix 8 of the eukary ***
  10700. --- *** otic and archaeal SRP S domain. Some Gra ***
  10701. --- *** m-positive bacteria (e.g. Bacillus subti ***
  10702. --- *** lis), however, have a larger SRP RNA tha ***
  10703. --- *** t also has an Alu domain. The Alu domain ***
  10704. --- *** is thought to mediate the peptide chain ***
  10705. --- *** elongation retardation function of the ***
  10706. --- *** SRP. The universally conserved helix whi ***
  10707. --- *** ch interacts with the SRP54/Ffh M domain ***
  10708. --- *** mediates signal sequence recognition. I ***
  10709. --- *** n eukaryotes and archaea, the SRP19-heli ***
  10710. --- *** x 6 complex is thought to be involved in ***
  10711. --- *** SRP assembly and stabilizes helix 8 for ***
  10712. --- *** SRP54 binding. ***
  10713. --- ************************************************
  10714. ---
  10715. CREATE VIEW srp_rna AS
  10716. SELECT
  10717. feature_id AS srp_rna_id,
  10718. feature.*
  10719. FROM
  10720. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10721. WHERE cvterm.name = 'SRP_RNA';
  10722. --- ************************************************
  10723. --- *** relation: pseudoknot ***
  10724. --- *** relation type: VIEW ***
  10725. --- *** ***
  10726. --- *** A tertiary structure in RNA where nucleo ***
  10727. --- *** tides in a loop form base pairs with a r ***
  10728. --- *** egion of RNA downstream of the loop. ***
  10729. --- ************************************************
  10730. ---
  10731. CREATE VIEW pseudoknot AS
  10732. SELECT
  10733. feature_id AS pseudoknot_id,
  10734. feature.*
  10735. FROM
  10736. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10737. WHERE cvterm.name = 'recoding_pseudoknot' OR cvterm.name = 'H_pseudoknot' OR cvterm.name = 'pseudoknot';
  10738. --- ************************************************
  10739. --- *** relation: h_pseudoknot ***
  10740. --- *** relation type: VIEW ***
  10741. --- *** ***
  10742. --- *** A pseudoknot which contains two stems an ***
  10743. --- *** d at least two loops. ***
  10744. --- ************************************************
  10745. ---
  10746. CREATE VIEW h_pseudoknot AS
  10747. SELECT
  10748. feature_id AS h_pseudoknot_id,
  10749. feature.*
  10750. FROM
  10751. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10752. WHERE cvterm.name = 'H_pseudoknot';
  10753. --- ************************************************
  10754. --- *** relation: c_d_box_snorna ***
  10755. --- *** relation type: VIEW ***
  10756. --- *** ***
  10757. --- *** Most box C/D snoRNAs also contain long ( ***
  10758. --- *** >10 nt) sequences complementary to rRNA. ***
  10759. --- *** Boxes C and D, as well as boxes C' and ***
  10760. --- *** D', are usually located in close proximi ***
  10761. --- *** ty, and form a structure known as the bo ***
  10762. --- *** x C/D motif. This motif is important for ***
  10763. --- *** snoRNA stability, processing, nucleolar ***
  10764. --- *** targeting and function. A small number ***
  10765. --- *** of box C/D snoRNAs are involved in rRNA ***
  10766. --- *** processing; most, however, are known or ***
  10767. --- *** predicted to serve as guide RNAs in ribo ***
  10768. --- *** se methylation of rRNA. Targeting involv ***
  10769. --- *** es direct base pairing of the snoRNA at ***
  10770. --- *** the rRNA site to be modified and selecti ***
  10771. --- *** on of a rRNA nucleotide a fixed distance ***
  10772. --- *** from box D or D'. ***
  10773. --- ************************************************
  10774. ---
  10775. CREATE VIEW c_d_box_snorna AS
  10776. SELECT
  10777. feature_id AS c_d_box_snorna_id,
  10778. feature.*
  10779. FROM
  10780. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10781. WHERE cvterm.name = 'U14_snoRNA' OR cvterm.name = 'U3_snoRNA' OR cvterm.name = 'methylation_guide_snoRNA' OR cvterm.name = 'C_D_box_snoRNA';
  10782. --- ************************************************
  10783. --- *** relation: h_aca_box_snorna ***
  10784. --- *** relation type: VIEW ***
  10785. --- *** ***
  10786. --- *** Members of the box H/ACA family contain ***
  10787. --- *** an ACA triplet, exactly 3 nt upstream fr ***
  10788. --- *** om the 3' end and an H-box in a hinge re ***
  10789. --- *** gion that links two structurally similar ***
  10790. --- *** functional domains of the molecule. Bot ***
  10791. --- *** h boxes are important for snoRNA biosynt ***
  10792. --- *** hesis and function. A few box H/ACA snoR ***
  10793. --- *** NAs are involved in rRNA processing; mos ***
  10794. --- *** t others are known or predicted to parti ***
  10795. --- *** cipate in selection of uridine nucleosid ***
  10796. --- *** es in rRNA to be converted to pseudourid ***
  10797. --- *** ines. Site selection is mediated by dire ***
  10798. --- *** ct base pairing of the snoRNA with rRNA ***
  10799. --- *** through one or both targeting domains. ***
  10800. --- ************************************************
  10801. ---
  10802. CREATE VIEW h_aca_box_snorna AS
  10803. SELECT
  10804. feature_id AS h_aca_box_snorna_id,
  10805. feature.*
  10806. FROM
  10807. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10808. WHERE cvterm.name = 'pseudouridylation_guide_snoRNA' OR cvterm.name = 'H_ACA_box_snoRNA';
  10809. --- ************************************************
  10810. --- *** relation: c_d_box_snorna_primary_transcript ***
  10811. --- *** relation type: VIEW ***
  10812. --- *** ***
  10813. --- *** A primary transcript encoding a small nu ***
  10814. --- *** cleolar RNA of the box C/D family. ***
  10815. --- ************************************************
  10816. ---
  10817. CREATE VIEW c_d_box_snorna_primary_transcript AS
  10818. SELECT
  10819. feature_id AS c_d_box_snorna_primary_transcript_id,
  10820. feature.*
  10821. FROM
  10822. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10823. WHERE cvterm.name = 'C_D_box_snoRNA_primary_transcript';
  10824. --- ************************************************
  10825. --- *** relation: h_aca_box_snorna_primary_transcript ***
  10826. --- *** relation type: VIEW ***
  10827. --- *** ***
  10828. --- *** A primary transcript encoding a small nu ***
  10829. --- *** cleolar RNA of the box H/ACA family. ***
  10830. --- ************************************************
  10831. ---
  10832. CREATE VIEW h_aca_box_snorna_primary_transcript AS
  10833. SELECT
  10834. feature_id AS h_aca_box_snorna_primary_transcript_id,
  10835. feature.*
  10836. FROM
  10837. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10838. WHERE cvterm.name = 'H_ACA_box_snoRNA_primary_transcript';
  10839. --- ************************************************
  10840. --- *** relation: guide_rna ***
  10841. --- *** relation type: VIEW ***
  10842. --- *** ***
  10843. --- *** A short 3'-uridylated RNA that can form ***
  10844. --- *** a duplex (except for its post-transcript ***
  10845. --- *** ionally added oligo_U tail (SO:0000609)) ***
  10846. --- *** with a stretch of mature edited mRNA. ***
  10847. --- ************************************************
  10848. ---
  10849. CREATE VIEW guide_rna AS
  10850. SELECT
  10851. feature_id AS guide_rna_id,
  10852. feature.*
  10853. FROM
  10854. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10855. WHERE cvterm.name = 'guide_RNA';
  10856. --- ************************************************
  10857. --- *** relation: group_ii_intron ***
  10858. --- *** relation type: VIEW ***
  10859. --- *** ***
  10860. --- *** Group II introns are found in rRNA, tRNA ***
  10861. --- *** and mRNA of organelles in fungi, plants ***
  10862. --- *** and protists, and also in mRNA in bacte ***
  10863. --- *** ria. They are large self-splicing ribozy ***
  10864. --- *** mes and have 6 structural domains (usual ***
  10865. --- *** ly designated dI to dVI). A subset of gr ***
  10866. --- *** oup II introns also encode essential spl ***
  10867. --- *** icing proteins in intronic ORFs. The len ***
  10868. --- *** gth of these introns can therefore be up ***
  10869. --- *** to 3kb. Splicing occurs in almost ident ***
  10870. --- *** ical fashion to nuclear pre-mRNA splicin ***
  10871. --- *** g with two transesterification steps. Th ***
  10872. --- *** e 2' hydroxyl of a bulged adenosine in d ***
  10873. --- *** omain VI attacks the 5' splice site, fol ***
  10874. --- *** lowed by nucleophilic attack on the 3' s ***
  10875. --- *** plice site by the 3' OH of the upstream ***
  10876. --- *** exon. Protein machinery is required for ***
  10877. --- *** splicing in vivo, and long range intron- ***
  10878. --- *** intron and intron-exon interactions are ***
  10879. --- *** important for splice site positioning. G ***
  10880. --- *** roup II introns are further sub-classifi ***
  10881. --- *** ed into groups IIA and IIB which differ ***
  10882. --- *** in splice site consensus, distance of bu ***
  10883. --- *** lged A from 3' splice site, some tertiar ***
  10884. --- *** y interactions, and intronic ORF phyloge ***
  10885. --- *** ny. ***
  10886. --- ************************************************
  10887. ---
  10888. CREATE VIEW group_ii_intron AS
  10889. SELECT
  10890. feature_id AS group_ii_intron_id,
  10891. feature.*
  10892. FROM
  10893. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10894. WHERE cvterm.name = 'group_IIA_intron' OR cvterm.name = 'group_IIB_intron' OR cvterm.name = 'group_II_intron';
  10895. --- ************************************************
  10896. --- *** relation: editing_block ***
  10897. --- *** relation type: VIEW ***
  10898. --- *** ***
  10899. --- *** Edited mRNA sequence mediated by a singl ***
  10900. --- *** e guide RNA (SO:0000602). ***
  10901. --- ************************************************
  10902. ---
  10903. CREATE VIEW editing_block AS
  10904. SELECT
  10905. feature_id AS editing_block_id,
  10906. feature.*
  10907. FROM
  10908. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10909. WHERE cvterm.name = 'editing_block';
  10910. --- ************************************************
  10911. --- *** relation: intergenic_region ***
  10912. --- *** relation type: VIEW ***
  10913. --- *** ***
  10914. --- *** A region containing or overlapping no ge ***
  10915. --- *** nes that is bounded on either side by a ***
  10916. --- *** gene, or bounded by a gene and the end o ***
  10917. --- *** f the chromosome. ***
  10918. --- ************************************************
  10919. ---
  10920. CREATE VIEW intergenic_region AS
  10921. SELECT
  10922. feature_id AS intergenic_region_id,
  10923. feature.*
  10924. FROM
  10925. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10926. WHERE cvterm.name = 'intergenic_region';
  10927. --- ************************************************
  10928. --- *** relation: editing_domain ***
  10929. --- *** relation type: VIEW ***
  10930. --- *** ***
  10931. --- *** Edited mRNA sequence mediated by two or ***
  10932. --- *** more overlapping guide RNAs (SO:0000602) ***
  10933. --- *** . ***
  10934. --- ************************************************
  10935. ---
  10936. CREATE VIEW editing_domain AS
  10937. SELECT
  10938. feature_id AS editing_domain_id,
  10939. feature.*
  10940. FROM
  10941. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10942. WHERE cvterm.name = 'editing_domain';
  10943. --- ************************************************
  10944. --- *** relation: unedited_region ***
  10945. --- *** relation type: VIEW ***
  10946. --- *** ***
  10947. --- *** The region of an edited transcript that ***
  10948. --- *** will not be edited. ***
  10949. --- ************************************************
  10950. ---
  10951. CREATE VIEW unedited_region AS
  10952. SELECT
  10953. feature_id AS unedited_region_id,
  10954. feature.*
  10955. FROM
  10956. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10957. WHERE cvterm.name = 'unedited_region';
  10958. --- ************************************************
  10959. --- *** relation: h_aca_box_snorna_encoding ***
  10960. --- *** relation type: VIEW ***
  10961. --- *** ***
  10962. --- ************************************************
  10963. ---
  10964. CREATE VIEW h_aca_box_snorna_encoding AS
  10965. SELECT
  10966. feature_id AS h_aca_box_snorna_encoding_id,
  10967. feature.*
  10968. FROM
  10969. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10970. WHERE cvterm.name = 'H_ACA_box_snoRNA_encoding';
  10971. --- ************************************************
  10972. --- *** relation: oligo_u_tail ***
  10973. --- *** relation type: VIEW ***
  10974. --- *** ***
  10975. --- *** The string of non-encoded U's at the 3' ***
  10976. --- *** end of a guide RNA (SO:0000602). ***
  10977. --- ************************************************
  10978. ---
  10979. CREATE VIEW oligo_u_tail AS
  10980. SELECT
  10981. feature_id AS oligo_u_tail_id,
  10982. feature.*
  10983. FROM
  10984. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10985. WHERE cvterm.name = 'oligo_U_tail';
  10986. --- ************************************************
  10987. --- *** relation: polya_sequence ***
  10988. --- *** relation type: VIEW ***
  10989. --- *** ***
  10990. --- *** Sequence of about 100 nucleotides of A a ***
  10991. --- *** dded to the 3' end of most eukaryotic mR ***
  10992. --- *** NAs. ***
  10993. --- ************************************************
  10994. ---
  10995. CREATE VIEW polya_sequence AS
  10996. SELECT
  10997. feature_id AS polya_sequence_id,
  10998. feature.*
  10999. FROM
  11000. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11001. WHERE cvterm.name = 'polyA_sequence';
  11002. --- ************************************************
  11003. --- *** relation: branch_site ***
  11004. --- *** relation type: VIEW ***
  11005. --- *** ***
  11006. --- *** A pyrimidine rich sequence near the 3' e ***
  11007. --- *** nd of an intron to which the 5'end becom ***
  11008. --- *** es covalently bound during nuclear splic ***
  11009. --- *** ing. The resulting structure resembles a ***
  11010. --- *** lariat. ***
  11011. --- ************************************************
  11012. ---
  11013. CREATE VIEW branch_site AS
  11014. SELECT
  11015. feature_id AS branch_site_id,
  11016. feature.*
  11017. FROM
  11018. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11019. WHERE cvterm.name = 'branch_site';
  11020. --- ************************************************
  11021. --- *** relation: polypyrimidine_tract ***
  11022. --- *** relation type: VIEW ***
  11023. --- *** ***
  11024. --- *** The polypyrimidine tract is one of the c ***
  11025. --- *** is-acting sequence elements directing in ***
  11026. --- *** tron removal in pre-mRNA splicing. ***
  11027. --- ************************************************
  11028. ---
  11029. CREATE VIEW polypyrimidine_tract AS
  11030. SELECT
  11031. feature_id AS polypyrimidine_tract_id,
  11032. feature.*
  11033. FROM
  11034. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11035. WHERE cvterm.name = 'polypyrimidine_tract';
  11036. --- ************************************************
  11037. --- *** relation: bacterial_rnapol_promoter ***
  11038. --- *** relation type: VIEW ***
  11039. --- *** ***
  11040. --- *** A DNA sequence to which bacterial RNA po ***
  11041. --- *** lymerase binds, to begin transcription. ***
  11042. --- ************************************************
  11043. ---
  11044. CREATE VIEW bacterial_rnapol_promoter AS
  11045. SELECT
  11046. feature_id AS bacterial_rnapol_promoter_id,
  11047. feature.*
  11048. FROM
  11049. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11050. WHERE cvterm.name = 'bacterial_RNApol_promoter';
  11051. --- ************************************************
  11052. --- *** relation: bacterial_terminator ***
  11053. --- *** relation type: VIEW ***
  11054. --- *** ***
  11055. --- *** A terminator signal for bacterial transc ***
  11056. --- *** ription. ***
  11057. --- ************************************************
  11058. ---
  11059. CREATE VIEW bacterial_terminator AS
  11060. SELECT
  11061. feature_id AS bacterial_terminator_id,
  11062. feature.*
  11063. FROM
  11064. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11065. WHERE cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'bacterial_terminator';
  11066. --- ************************************************
  11067. --- *** relation: terminator_of_type_2_rnapol_iii_promoter ***
  11068. --- *** relation type: VIEW ***
  11069. --- *** ***
  11070. --- *** A terminator signal for RNA polymerase I ***
  11071. --- *** II transcription. ***
  11072. --- ************************************************
  11073. ---
  11074. CREATE VIEW terminator_of_type_2_rnapol_iii_promoter AS
  11075. SELECT
  11076. feature_id AS terminator_of_type_2_rnapol_iii_promoter_id,
  11077. feature.*
  11078. FROM
  11079. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11080. WHERE cvterm.name = 'terminator_of_type_2_RNApol_III_promoter';
  11081. --- ************************************************
  11082. --- *** relation: transcription_end_site ***
  11083. --- *** relation type: VIEW ***
  11084. --- *** ***
  11085. --- *** The base where transcription ends. ***
  11086. --- ************************************************
  11087. ---
  11088. CREATE VIEW transcription_end_site AS
  11089. SELECT
  11090. feature_id AS transcription_end_site_id,
  11091. feature.*
  11092. FROM
  11093. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11094. WHERE cvterm.name = 'transcription_end_site';
  11095. --- ************************************************
  11096. --- *** relation: rnapol_iii_promoter_type_1 ***
  11097. --- *** relation type: VIEW ***
  11098. --- *** ***
  11099. --- ************************************************
  11100. ---
  11101. CREATE VIEW rnapol_iii_promoter_type_1 AS
  11102. SELECT
  11103. feature_id AS rnapol_iii_promoter_type_1_id,
  11104. feature.*
  11105. FROM
  11106. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11107. WHERE cvterm.name = 'RNApol_III_promoter_type_1';
  11108. --- ************************************************
  11109. --- *** relation: rnapol_iii_promoter_type_2 ***
  11110. --- *** relation type: VIEW ***
  11111. --- *** ***
  11112. --- ************************************************
  11113. ---
  11114. CREATE VIEW rnapol_iii_promoter_type_2 AS
  11115. SELECT
  11116. feature_id AS rnapol_iii_promoter_type_2_id,
  11117. feature.*
  11118. FROM
  11119. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11120. WHERE cvterm.name = 'RNApol_III_promoter_type_2';
  11121. --- ************************************************
  11122. --- *** relation: a_box ***
  11123. --- *** relation type: VIEW ***
  11124. --- *** ***
  11125. --- *** A variably distant linear promoter regio ***
  11126. --- *** n recognised by TFIIIC, with consensus s ***
  11127. --- *** equence TGGCnnAGTGG. ***
  11128. --- ************************************************
  11129. ---
  11130. CREATE VIEW a_box AS
  11131. SELECT
  11132. feature_id AS a_box_id,
  11133. feature.*
  11134. FROM
  11135. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11136. WHERE cvterm.name = 'A_box';
  11137. --- ************************************************
  11138. --- *** relation: b_box ***
  11139. --- *** relation type: VIEW ***
  11140. --- *** ***
  11141. --- *** A variably distant linear promoter regio ***
  11142. --- *** n recognised by TFIIIC, with consensus s ***
  11143. --- *** equence AGGTTCCAnnCC. ***
  11144. --- ************************************************
  11145. ---
  11146. CREATE VIEW b_box AS
  11147. SELECT
  11148. feature_id AS b_box_id,
  11149. feature.*
  11150. FROM
  11151. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11152. WHERE cvterm.name = 'B_box';
  11153. --- ************************************************
  11154. --- *** relation: rnapol_iii_promoter_type_3 ***
  11155. --- *** relation type: VIEW ***
  11156. --- *** ***
  11157. --- ************************************************
  11158. ---
  11159. CREATE VIEW rnapol_iii_promoter_type_3 AS
  11160. SELECT
  11161. feature_id AS rnapol_iii_promoter_type_3_id,
  11162. feature.*
  11163. FROM
  11164. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11165. WHERE cvterm.name = 'RNApol_III_promoter_type_3';
  11166. --- ************************************************
  11167. --- *** relation: c_box ***
  11168. --- *** relation type: VIEW ***
  11169. --- *** ***
  11170. --- *** An RNA polymerase III type 1 promoter wi ***
  11171. --- *** th consensus sequence CAnnCCn. ***
  11172. --- ************************************************
  11173. ---
  11174. CREATE VIEW c_box AS
  11175. SELECT
  11176. feature_id AS c_box_id,
  11177. feature.*
  11178. FROM
  11179. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11180. WHERE cvterm.name = 'C_box';
  11181. --- ************************************************
  11182. --- *** relation: snrna_encoding ***
  11183. --- *** relation type: VIEW ***
  11184. --- *** ***
  11185. --- ************************************************
  11186. ---
  11187. CREATE VIEW snrna_encoding AS
  11188. SELECT
  11189. feature_id AS snrna_encoding_id,
  11190. feature.*
  11191. FROM
  11192. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11193. WHERE cvterm.name = 'snRNA_encoding';
  11194. --- ************************************************
  11195. --- *** relation: telomere ***
  11196. --- *** relation type: VIEW ***
  11197. --- *** ***
  11198. --- *** A specific structure at the end of a lin ***
  11199. --- *** ear chromosome, required for the integri ***
  11200. --- *** ty and maintenance of the end. ***
  11201. --- ************************************************
  11202. ---
  11203. CREATE VIEW telomere AS
  11204. SELECT
  11205. feature_id AS telomere_id,
  11206. feature.*
  11207. FROM
  11208. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11209. WHERE cvterm.name = 'telomere';
  11210. --- ************************************************
  11211. --- *** relation: silencer ***
  11212. --- *** relation type: VIEW ***
  11213. --- *** ***
  11214. --- *** A regulatory region which upon binding o ***
  11215. --- *** f transcription factors, suppress the tr ***
  11216. --- *** anscription of the gene or genes they co ***
  11217. --- *** ntrol. ***
  11218. --- ************************************************
  11219. ---
  11220. CREATE VIEW silencer AS
  11221. SELECT
  11222. feature_id AS silencer_id,
  11223. feature.*
  11224. FROM
  11225. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11226. WHERE cvterm.name = 'silencer';
  11227. --- ************************************************
  11228. --- *** relation: chromosomal_regulatory_element ***
  11229. --- *** relation type: VIEW ***
  11230. --- *** ***
  11231. --- ************************************************
  11232. ---
  11233. CREATE VIEW chromosomal_regulatory_element AS
  11234. SELECT
  11235. feature_id AS chromosomal_regulatory_element_id,
  11236. feature.*
  11237. FROM
  11238. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11239. WHERE cvterm.name = 'matrix_attachment_site' OR cvterm.name = 'chromosomal_regulatory_element';
  11240. --- ************************************************
  11241. --- *** relation: insulator ***
  11242. --- *** relation type: VIEW ***
  11243. --- *** ***
  11244. --- *** A trancriptional cis regulatory region t ***
  11245. --- *** hat when located between a CM and a gene ***
  11246. --- *** 's promoter prevents the CRM from modula ***
  11247. --- *** ting that genes expression. ***
  11248. --- ************************************************
  11249. ---
  11250. CREATE VIEW insulator AS
  11251. SELECT
  11252. feature_id AS insulator_id,
  11253. feature.*
  11254. FROM
  11255. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11256. WHERE cvterm.name = 'insulator';
  11257. --- ************************************************
  11258. --- *** relation: chromosomal_structural_element ***
  11259. --- *** relation type: VIEW ***
  11260. --- *** ***
  11261. --- ************************************************
  11262. ---
  11263. CREATE VIEW chromosomal_structural_element AS
  11264. SELECT
  11265. feature_id AS chromosomal_structural_element_id,
  11266. feature.*
  11267. FROM
  11268. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11269. WHERE cvterm.name = 'centromere' OR cvterm.name = 'telomere' OR cvterm.name = 'chromosomal_structural_element';
  11270. --- ************************************************
  11271. --- *** relation: five_prime_open_reading_frame ***
  11272. --- *** relation type: VIEW ***
  11273. --- *** ***
  11274. --- ************************************************
  11275. ---
  11276. CREATE VIEW five_prime_open_reading_frame AS
  11277. SELECT
  11278. feature_id AS five_prime_open_reading_frame_id,
  11279. feature.*
  11280. FROM
  11281. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11282. WHERE cvterm.name = 'five_prime_open_reading_frame';
  11283. --- ************************************************
  11284. --- *** relation: upstream_aug_codon ***
  11285. --- *** relation type: VIEW ***
  11286. --- *** ***
  11287. --- *** A start codon upstream of the ORF. ***
  11288. --- ************************************************
  11289. ---
  11290. CREATE VIEW upstream_aug_codon AS
  11291. SELECT
  11292. feature_id AS upstream_aug_codon_id,
  11293. feature.*
  11294. FROM
  11295. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11296. WHERE cvterm.name = 'upstream_AUG_codon';
  11297. --- ************************************************
  11298. --- *** relation: polycistronic_primary_transcript ***
  11299. --- *** relation type: VIEW ***
  11300. --- *** ***
  11301. --- *** A primary transcript encoding for more t ***
  11302. --- *** han one gene product. ***
  11303. --- ************************************************
  11304. ---
  11305. CREATE VIEW polycistronic_primary_transcript AS
  11306. SELECT
  11307. feature_id AS polycistronic_primary_transcript_id,
  11308. feature.*
  11309. FROM
  11310. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11311. WHERE cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'polycistronic_primary_transcript';
  11312. --- ************************************************
  11313. --- *** relation: monocistronic_primary_transcript ***
  11314. --- *** relation type: VIEW ***
  11315. --- *** ***
  11316. --- *** A primary transcript encoding for one ge ***
  11317. --- *** ne product. ***
  11318. --- ************************************************
  11319. ---
  11320. CREATE VIEW monocistronic_primary_transcript AS
  11321. SELECT
  11322. feature_id AS monocistronic_primary_transcript_id,
  11323. feature.*
  11324. FROM
  11325. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11326. WHERE cvterm.name = 'monocistronic_primary_transcript';
  11327. --- ************************************************
  11328. --- *** relation: monocistronic_mrna ***
  11329. --- *** relation type: VIEW ***
  11330. --- *** ***
  11331. --- *** An mRNA with either a single protein pro ***
  11332. --- *** duct, or for which the regions encoding ***
  11333. --- *** all its protein products overlap. ***
  11334. --- ************************************************
  11335. ---
  11336. CREATE VIEW monocistronic_mrna AS
  11337. SELECT
  11338. feature_id AS monocistronic_mrna_id,
  11339. feature.*
  11340. FROM
  11341. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11342. WHERE cvterm.name = 'monocistronic_mRNA';
  11343. --- ************************************************
  11344. --- *** relation: polycistronic_mrna ***
  11345. --- *** relation type: VIEW ***
  11346. --- *** ***
  11347. --- *** An mRNA that encodes multiple proteins f ***
  11348. --- *** rom at least two non-overlapping regions ***
  11349. --- *** . ***
  11350. --- ************************************************
  11351. ---
  11352. CREATE VIEW polycistronic_mrna AS
  11353. SELECT
  11354. feature_id AS polycistronic_mrna_id,
  11355. feature.*
  11356. FROM
  11357. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11358. WHERE cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'polycistronic_mRNA';
  11359. --- ************************************************
  11360. --- *** relation: mini_exon_donor_rna ***
  11361. --- *** relation type: VIEW ***
  11362. --- *** ***
  11363. --- *** A primary transcript that donates the sp ***
  11364. --- *** liced leader to other mRNA. ***
  11365. --- ************************************************
  11366. ---
  11367. CREATE VIEW mini_exon_donor_rna AS
  11368. SELECT
  11369. feature_id AS mini_exon_donor_rna_id,
  11370. feature.*
  11371. FROM
  11372. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11373. WHERE cvterm.name = 'mini_exon_donor_RNA';
  11374. --- ************************************************
  11375. --- *** relation: spliced_leader_rna ***
  11376. --- *** relation type: VIEW ***
  11377. --- *** ***
  11378. --- ************************************************
  11379. ---
  11380. CREATE VIEW spliced_leader_rna AS
  11381. SELECT
  11382. feature_id AS spliced_leader_rna_id,
  11383. feature.*
  11384. FROM
  11385. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11386. WHERE cvterm.name = 'spliced_leader_RNA';
  11387. --- ************************************************
  11388. --- *** relation: engineered_plasmid ***
  11389. --- *** relation type: VIEW ***
  11390. --- *** ***
  11391. --- *** A plasmid that is engineered. ***
  11392. --- ************************************************
  11393. ---
  11394. CREATE VIEW engineered_plasmid AS
  11395. SELECT
  11396. feature_id AS engineered_plasmid_id,
  11397. feature.*
  11398. FROM
  11399. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11400. 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';
  11401. --- ************************************************
  11402. --- *** relation: transcribed_spacer_region ***
  11403. --- *** relation type: VIEW ***
  11404. --- *** ***
  11405. --- *** Part of an rRNA transcription unit that ***
  11406. --- *** is transcribed but discarded during matu ***
  11407. --- *** ration, not giving rise to any part of r ***
  11408. --- *** RNA. ***
  11409. --- ************************************************
  11410. ---
  11411. CREATE VIEW transcribed_spacer_region AS
  11412. SELECT
  11413. feature_id AS transcribed_spacer_region_id,
  11414. feature.*
  11415. FROM
  11416. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11417. WHERE cvterm.name = 'internal_transcribed_spacer_region' OR cvterm.name = 'external_transcribed_spacer_region' OR cvterm.name = 'transcribed_spacer_region';
  11418. --- ************************************************
  11419. --- *** relation: internal_transcribed_spacer_region ***
  11420. --- *** relation type: VIEW ***
  11421. --- *** ***
  11422. --- *** Non-coding regions of DNA sequence that ***
  11423. --- *** separate genes coding for the 28S, 5.8S, ***
  11424. --- *** and 18S ribosomal RNAs. ***
  11425. --- ************************************************
  11426. ---
  11427. CREATE VIEW internal_transcribed_spacer_region AS
  11428. SELECT
  11429. feature_id AS internal_transcribed_spacer_region_id,
  11430. feature.*
  11431. FROM
  11432. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11433. WHERE cvterm.name = 'internal_transcribed_spacer_region';
  11434. --- ************************************************
  11435. --- *** relation: external_transcribed_spacer_region ***
  11436. --- *** relation type: VIEW ***
  11437. --- *** ***
  11438. --- *** Non-coding regions of DNA that precede t ***
  11439. --- *** he sequence that codes for the ribosomal ***
  11440. --- *** RNA. ***
  11441. --- ************************************************
  11442. ---
  11443. CREATE VIEW external_transcribed_spacer_region AS
  11444. SELECT
  11445. feature_id AS external_transcribed_spacer_region_id,
  11446. feature.*
  11447. FROM
  11448. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11449. WHERE cvterm.name = 'external_transcribed_spacer_region';
  11450. --- ************************************************
  11451. --- *** relation: tetranuc_repeat_microsat ***
  11452. --- *** relation type: VIEW ***
  11453. --- *** ***
  11454. --- ************************************************
  11455. ---
  11456. CREATE VIEW tetranuc_repeat_microsat AS
  11457. SELECT
  11458. feature_id AS tetranuc_repeat_microsat_id,
  11459. feature.*
  11460. FROM
  11461. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11462. WHERE cvterm.name = 'tetranucleotide_repeat_microsatellite_feature';
  11463. --- ************************************************
  11464. --- *** relation: srp_rna_encoding ***
  11465. --- *** relation type: VIEW ***
  11466. --- *** ***
  11467. --- ************************************************
  11468. ---
  11469. CREATE VIEW srp_rna_encoding AS
  11470. SELECT
  11471. feature_id AS srp_rna_encoding_id,
  11472. feature.*
  11473. FROM
  11474. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11475. WHERE cvterm.name = 'SRP_RNA_encoding';
  11476. --- ************************************************
  11477. --- *** relation: minisatellite ***
  11478. --- *** relation type: VIEW ***
  11479. --- *** ***
  11480. --- *** A repeat region containing tandemly repe ***
  11481. --- *** ated sequences having a unit length of 1 ***
  11482. --- *** 0 to 40 bp. ***
  11483. --- ************************************************
  11484. ---
  11485. CREATE VIEW minisatellite AS
  11486. SELECT
  11487. feature_id AS minisatellite_id,
  11488. feature.*
  11489. FROM
  11490. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11491. WHERE cvterm.name = 'minisatellite';
  11492. --- ************************************************
  11493. --- *** relation: antisense_rna ***
  11494. --- *** relation type: VIEW ***
  11495. --- *** ***
  11496. --- *** Antisense RNA is RNA that is transcribed ***
  11497. --- *** from the coding, rather than the templa ***
  11498. --- *** te, strand of DNA. It is therefore compl ***
  11499. --- *** ementary to mRNA. ***
  11500. --- ************************************************
  11501. ---
  11502. CREATE VIEW antisense_rna AS
  11503. SELECT
  11504. feature_id AS antisense_rna_id,
  11505. feature.*
  11506. FROM
  11507. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11508. WHERE cvterm.name = 'MicF_RNA' OR cvterm.name = 'antisense_RNA';
  11509. --- ************************************************
  11510. --- *** relation: antisense_primary_transcript ***
  11511. --- *** relation type: VIEW ***
  11512. --- *** ***
  11513. --- *** The reverse complement of the primary tr ***
  11514. --- *** anscript. ***
  11515. --- ************************************************
  11516. ---
  11517. CREATE VIEW antisense_primary_transcript AS
  11518. SELECT
  11519. feature_id AS antisense_primary_transcript_id,
  11520. feature.*
  11521. FROM
  11522. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11523. WHERE cvterm.name = 'antisense_primary_transcript';
  11524. --- ************************************************
  11525. --- *** relation: sirna ***
  11526. --- *** relation type: VIEW ***
  11527. --- *** ***
  11528. --- *** A small RNA molecule that is the product ***
  11529. --- *** of a longer exogenous or endogenous dsR ***
  11530. --- *** NA, which is either a bimolecular duplex ***
  11531. --- *** or very long hairpin, processed (via th ***
  11532. --- *** e Dicer pathway) such that numerous siRN ***
  11533. --- *** As accumulate from both strands of the d ***
  11534. --- *** sRNA. SRNAs trigger the cleavage of thei ***
  11535. --- *** r target molecules. ***
  11536. --- ************************************************
  11537. ---
  11538. CREATE VIEW sirna AS
  11539. SELECT
  11540. feature_id AS sirna_id,
  11541. feature.*
  11542. FROM
  11543. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11544. WHERE cvterm.name = 'siRNA';
  11545. --- ************************************************
  11546. --- *** relation: mirna_primary_transcript ***
  11547. --- *** relation type: VIEW ***
  11548. --- *** ***
  11549. --- *** A primary transcript encoding a micro RN ***
  11550. --- *** A. ***
  11551. --- ************************************************
  11552. ---
  11553. CREATE VIEW mirna_primary_transcript AS
  11554. SELECT
  11555. feature_id AS mirna_primary_transcript_id,
  11556. feature.*
  11557. FROM
  11558. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11559. WHERE cvterm.name = 'stRNA_primary_transcript' OR cvterm.name = 'miRNA_primary_transcript';
  11560. --- ************************************************
  11561. --- *** relation: strna_primary_transcript ***
  11562. --- *** relation type: VIEW ***
  11563. --- *** ***
  11564. --- *** A primary transcript encoding a small te ***
  11565. --- *** mporal mRNA (SO:0000649). ***
  11566. --- ************************************************
  11567. ---
  11568. CREATE VIEW strna_primary_transcript AS
  11569. SELECT
  11570. feature_id AS strna_primary_transcript_id,
  11571. feature.*
  11572. FROM
  11573. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11574. WHERE cvterm.name = 'stRNA_primary_transcript';
  11575. --- ************************************************
  11576. --- *** relation: strna ***
  11577. --- *** relation type: VIEW ***
  11578. --- *** ***
  11579. --- *** Non-coding RNAs of about 21 nucleotides ***
  11580. --- *** in length that regulate temporal develop ***
  11581. --- *** ment; first discovered in C. elegans. ***
  11582. --- ************************************************
  11583. ---
  11584. CREATE VIEW strna AS
  11585. SELECT
  11586. feature_id AS strna_id,
  11587. feature.*
  11588. FROM
  11589. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11590. WHERE cvterm.name = 'stRNA';
  11591. --- ************************************************
  11592. --- *** relation: small_subunit_rrna ***
  11593. --- *** relation type: VIEW ***
  11594. --- *** ***
  11595. --- *** Ribosomal RNA transcript that structures ***
  11596. --- *** the small subunit of the ribosome. ***
  11597. --- ************************************************
  11598. ---
  11599. CREATE VIEW small_subunit_rrna AS
  11600. SELECT
  11601. feature_id AS small_subunit_rrna_id,
  11602. feature.*
  11603. FROM
  11604. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11605. WHERE cvterm.name = 'rRNA_18S' OR cvterm.name = 'rRNA_16S' OR cvterm.name = 'small_subunit_rRNA';
  11606. --- ************************************************
  11607. --- *** relation: large_subunit_rrna ***
  11608. --- *** relation type: VIEW ***
  11609. --- *** ***
  11610. --- *** Ribosomal RNA transcript that structures ***
  11611. --- *** the large subunit of the ribosome. ***
  11612. --- ************************************************
  11613. ---
  11614. CREATE VIEW large_subunit_rrna AS
  11615. SELECT
  11616. feature_id AS large_subunit_rrna_id,
  11617. feature.*
  11618. FROM
  11619. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11620. 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';
  11621. --- ************************************************
  11622. --- *** relation: rrna_5s ***
  11623. --- *** relation type: VIEW ***
  11624. --- *** ***
  11625. --- *** 5S ribosomal RNA (5S rRNA) is a componen ***
  11626. --- *** t of the large ribosomal subunit in both ***
  11627. --- *** prokaryotes and eukaryotes. In eukaryot ***
  11628. --- *** es, it is synthesised by RNA polymerase ***
  11629. --- *** III (the other eukaryotic rRNAs are clea ***
  11630. --- *** ved from a 45S precursor synthesised by ***
  11631. --- *** RNA polymerase I). In Xenopus oocytes, i ***
  11632. --- *** t has been shown that fingers 4-7 of the ***
  11633. --- *** nine-zinc finger transcription factor T ***
  11634. --- *** FIIIA can bind to the central region of ***
  11635. --- *** 5S RNA. Thus, in addition to positively ***
  11636. --- *** regulating 5S rRNA transcription, TFIIIA ***
  11637. --- *** also stabilises 5S rRNA until it is req ***
  11638. --- *** uired for transcription. ***
  11639. --- ************************************************
  11640. ---
  11641. CREATE VIEW rrna_5s AS
  11642. SELECT
  11643. feature_id AS rrna_5s_id,
  11644. feature.*
  11645. FROM
  11646. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11647. WHERE cvterm.name = 'rRNA_5S';
  11648. --- ************************************************
  11649. --- *** relation: rrna_28s ***
  11650. --- *** relation type: VIEW ***
  11651. --- *** ***
  11652. --- *** A component of the large ribosomal subun ***
  11653. --- *** it. ***
  11654. --- ************************************************
  11655. ---
  11656. CREATE VIEW rrna_28s AS
  11657. SELECT
  11658. feature_id AS rrna_28s_id,
  11659. feature.*
  11660. FROM
  11661. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11662. WHERE cvterm.name = 'rRNA_28S';
  11663. --- ************************************************
  11664. --- *** relation: maxicircle_gene ***
  11665. --- *** relation type: VIEW ***
  11666. --- *** ***
  11667. --- *** A mitochondrial gene located in a maxici ***
  11668. --- *** rcle. ***
  11669. --- ************************************************
  11670. ---
  11671. CREATE VIEW maxicircle_gene AS
  11672. SELECT
  11673. feature_id AS maxicircle_gene_id,
  11674. feature.*
  11675. FROM
  11676. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11677. WHERE cvterm.name = 'cryptogene' OR cvterm.name = 'maxicircle_gene';
  11678. --- ************************************************
  11679. --- *** relation: ncrna ***
  11680. --- *** relation type: VIEW ***
  11681. --- *** ***
  11682. --- *** An RNA transcript that does not encode f ***
  11683. --- *** or a protein rather the RNA molecule is ***
  11684. --- *** the gene product. ***
  11685. --- ************************************************
  11686. ---
  11687. CREATE VIEW ncrna AS
  11688. SELECT
  11689. feature_id AS ncrna_id,
  11690. feature.*
  11691. FROM
  11692. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11693. 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 = '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';
  11694. --- ************************************************
  11695. --- *** relation: strna_encoding ***
  11696. --- *** relation type: VIEW ***
  11697. --- *** ***
  11698. --- ************************************************
  11699. ---
  11700. CREATE VIEW strna_encoding AS
  11701. SELECT
  11702. feature_id AS strna_encoding_id,
  11703. feature.*
  11704. FROM
  11705. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11706. WHERE cvterm.name = 'stRNA_encoding';
  11707. --- ************************************************
  11708. --- *** relation: repeat_region ***
  11709. --- *** relation type: VIEW ***
  11710. --- *** ***
  11711. --- *** A region of sequence containing one or m ***
  11712. --- *** ore repeat units. ***
  11713. --- ************************************************
  11714. ---
  11715. CREATE VIEW repeat_region AS
  11716. SELECT
  11717. feature_id AS repeat_region_id,
  11718. feature.*
  11719. FROM
  11720. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11721. 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 = 'repeat_fragment' 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 = 'repeat_region';
  11722. --- ************************************************
  11723. --- *** relation: dispersed_repeat ***
  11724. --- *** relation type: VIEW ***
  11725. --- *** ***
  11726. --- *** A repeat that is located at dispersed si ***
  11727. --- *** tes in the genome. ***
  11728. --- ************************************************
  11729. ---
  11730. CREATE VIEW dispersed_repeat AS
  11731. SELECT
  11732. feature_id AS dispersed_repeat_id,
  11733. feature.*
  11734. FROM
  11735. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11736. WHERE cvterm.name = 'dispersed_repeat';
  11737. --- ************************************************
  11738. --- *** relation: tmrna_encoding ***
  11739. --- *** relation type: VIEW ***
  11740. --- *** ***
  11741. --- ************************************************
  11742. ---
  11743. CREATE VIEW tmrna_encoding AS
  11744. SELECT
  11745. feature_id AS tmrna_encoding_id,
  11746. feature.*
  11747. FROM
  11748. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11749. WHERE cvterm.name = 'tmRNA_encoding';
  11750. --- ************************************************
  11751. --- *** relation: spliceosomal_intron ***
  11752. --- *** relation type: VIEW ***
  11753. --- *** ***
  11754. --- *** An intron which is spliced by the splice ***
  11755. --- *** osome. ***
  11756. --- ************************************************
  11757. ---
  11758. CREATE VIEW spliceosomal_intron AS
  11759. SELECT
  11760. feature_id AS spliceosomal_intron_id,
  11761. feature.*
  11762. FROM
  11763. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11764. WHERE cvterm.name = 'U2_intron' OR cvterm.name = 'U12_intron' OR cvterm.name = 'spliceosomal_intron';
  11765. --- ************************************************
  11766. --- *** relation: trna_encoding ***
  11767. --- *** relation type: VIEW ***
  11768. --- *** ***
  11769. --- ************************************************
  11770. ---
  11771. CREATE VIEW trna_encoding AS
  11772. SELECT
  11773. feature_id AS trna_encoding_id,
  11774. feature.*
  11775. FROM
  11776. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11777. WHERE cvterm.name = 'tRNA_encoding';
  11778. --- ************************************************
  11779. --- *** relation: introgressed_chromosome_region ***
  11780. --- *** relation type: VIEW ***
  11781. --- *** ***
  11782. --- ************************************************
  11783. ---
  11784. CREATE VIEW introgressed_chromosome_region AS
  11785. SELECT
  11786. feature_id AS introgressed_chromosome_region_id,
  11787. feature.*
  11788. FROM
  11789. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11790. WHERE cvterm.name = 'introgressed_chromosome_region';
  11791. --- ************************************************
  11792. --- *** relation: monocistronic_transcript ***
  11793. --- *** relation type: VIEW ***
  11794. --- *** ***
  11795. --- *** A transcript that is monocistronic. ***
  11796. --- ************************************************
  11797. ---
  11798. CREATE VIEW monocistronic_transcript AS
  11799. SELECT
  11800. feature_id AS monocistronic_transcript_id,
  11801. feature.*
  11802. FROM
  11803. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11804. WHERE cvterm.name = 'monocistronic_primary_transcript' OR cvterm.name = 'monocistronic_mRNA' OR cvterm.name = 'monocistronic_transcript';
  11805. --- ************************************************
  11806. --- *** relation: mobile_intron ***
  11807. --- *** relation type: VIEW ***
  11808. --- *** ***
  11809. --- *** An intron (mitochondrial, chloroplast, n ***
  11810. --- *** uclear or prokaryotic) that encodes a do ***
  11811. --- *** uble strand sequence specific endonuclea ***
  11812. --- *** se allowing for mobility. ***
  11813. --- ************************************************
  11814. ---
  11815. CREATE VIEW mobile_intron AS
  11816. SELECT
  11817. feature_id AS mobile_intron_id,
  11818. feature.*
  11819. FROM
  11820. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11821. WHERE cvterm.name = 'mobile_intron';
  11822. --- ************************************************
  11823. --- *** relation: insertion ***
  11824. --- *** relation type: VIEW ***
  11825. --- *** ***
  11826. --- *** A region of sequence that has been inser ***
  11827. --- *** ted. ***
  11828. --- ************************************************
  11829. ---
  11830. CREATE VIEW insertion AS
  11831. SELECT
  11832. feature_id AS insertion_id,
  11833. feature.*
  11834. FROM
  11835. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11836. WHERE cvterm.name = 'transgenic_insertion' OR cvterm.name = 'insertion';
  11837. --- ************************************************
  11838. --- *** relation: est_match ***
  11839. --- *** relation type: VIEW ***
  11840. --- *** ***
  11841. --- *** A match against an EST sequence. ***
  11842. --- ************************************************
  11843. ---
  11844. CREATE VIEW est_match AS
  11845. SELECT
  11846. feature_id AS est_match_id,
  11847. feature.*
  11848. FROM
  11849. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11850. WHERE cvterm.name = 'EST_match';
  11851. --- ************************************************
  11852. --- *** relation: sequence_rearrangement_feature ***
  11853. --- *** relation type: VIEW ***
  11854. --- *** ***
  11855. --- ************************************************
  11856. ---
  11857. CREATE VIEW sequence_rearrangement_feature AS
  11858. SELECT
  11859. feature_id AS sequence_rearrangement_feature_id,
  11860. feature.*
  11861. FROM
  11862. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11863. 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 = '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';
  11864. --- ************************************************
  11865. --- *** relation: chromosome_breakage_sequence ***
  11866. --- *** relation type: VIEW ***
  11867. --- *** ***
  11868. --- *** A sequence within the micronuclear DNA o ***
  11869. --- *** f ciliates at which chromosome breakage ***
  11870. --- *** and telomere addition occurs during nucl ***
  11871. --- *** ear differentiation. ***
  11872. --- ************************************************
  11873. ---
  11874. CREATE VIEW chromosome_breakage_sequence AS
  11875. SELECT
  11876. feature_id AS chromosome_breakage_sequence_id,
  11877. feature.*
  11878. FROM
  11879. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11880. WHERE cvterm.name = 'chromosome_breakage_sequence';
  11881. --- ************************************************
  11882. --- *** relation: internal_eliminated_sequence ***
  11883. --- *** relation type: VIEW ***
  11884. --- *** ***
  11885. --- *** A sequence eliminated from the genome of ***
  11886. --- *** ciliates during nuclear differentiation ***
  11887. --- *** . ***
  11888. --- ************************************************
  11889. ---
  11890. CREATE VIEW internal_eliminated_sequence AS
  11891. SELECT
  11892. feature_id AS internal_eliminated_sequence_id,
  11893. feature.*
  11894. FROM
  11895. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11896. WHERE cvterm.name = 'internal_eliminated_sequence';
  11897. --- ************************************************
  11898. --- *** relation: macronucleus_destined_segment ***
  11899. --- *** relation type: VIEW ***
  11900. --- *** ***
  11901. --- *** A sequence that is conserved, although r ***
  11902. --- *** earranged relative to the micronucleus, ***
  11903. --- *** in the macronucleus of a ciliate genome. ***
  11904. --- ************************************************
  11905. ---
  11906. CREATE VIEW macronucleus_destined_segment AS
  11907. SELECT
  11908. feature_id AS macronucleus_destined_segment_id,
  11909. feature.*
  11910. FROM
  11911. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11912. WHERE cvterm.name = 'macronucleus_destined_segment';
  11913. --- ************************************************
  11914. --- *** relation: transcript ***
  11915. --- *** relation type: VIEW ***
  11916. --- *** ***
  11917. --- *** An RNA synthesized on a DNA or RNA templ ***
  11918. --- *** ate by an RNA polymerase. ***
  11919. --- ************************************************
  11920. ---
  11921. CREATE VIEW transcript AS
  11922. SELECT
  11923. feature_id AS transcript_id,
  11924. feature.*
  11925. FROM
  11926. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11927. 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 = '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 = '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 = '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 = '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 = 'edited_transcript_by_A_to_I_substitution' OR cvterm.name = 'transcript';
  11928. --- ************************************************
  11929. --- *** relation: canonical_three_prime_splice_site ***
  11930. --- *** relation type: VIEW ***
  11931. --- *** ***
  11932. --- *** The canonical 3' splice site has the seq ***
  11933. --- *** uence "AG". ***
  11934. --- ************************************************
  11935. ---
  11936. CREATE VIEW canonical_three_prime_splice_site AS
  11937. SELECT
  11938. feature_id AS canonical_three_prime_splice_site_id,
  11939. feature.*
  11940. FROM
  11941. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11942. WHERE cvterm.name = 'canonical_three_prime_splice_site';
  11943. --- ************************************************
  11944. --- *** relation: canonical_five_prime_splice_site ***
  11945. --- *** relation type: VIEW ***
  11946. --- *** ***
  11947. --- *** The canonical 5' splice site has the seq ***
  11948. --- *** uence "GT". ***
  11949. --- ************************************************
  11950. ---
  11951. CREATE VIEW canonical_five_prime_splice_site AS
  11952. SELECT
  11953. feature_id AS canonical_five_prime_splice_site_id,
  11954. feature.*
  11955. FROM
  11956. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11957. WHERE cvterm.name = 'canonical_five_prime_splice_site';
  11958. --- ************************************************
  11959. --- *** relation: non_canonical_three_prime_splice_site ***
  11960. --- *** relation type: VIEW ***
  11961. --- *** ***
  11962. --- *** A 3' splice site that does not have the ***
  11963. --- *** sequence "AG". ***
  11964. --- ************************************************
  11965. ---
  11966. CREATE VIEW non_canonical_three_prime_splice_site AS
  11967. SELECT
  11968. feature_id AS non_canonical_three_prime_splice_site_id,
  11969. feature.*
  11970. FROM
  11971. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11972. WHERE cvterm.name = 'non_canonical_three_prime_splice_site';
  11973. --- ************************************************
  11974. --- *** relation: non_canonical_five_prime_splice_site ***
  11975. --- *** relation type: VIEW ***
  11976. --- *** ***
  11977. --- *** A 5' splice site which does not have the ***
  11978. --- *** sequence "GT". ***
  11979. --- ************************************************
  11980. ---
  11981. CREATE VIEW non_canonical_five_prime_splice_site AS
  11982. SELECT
  11983. feature_id AS non_canonical_five_prime_splice_site_id,
  11984. feature.*
  11985. FROM
  11986. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11987. WHERE cvterm.name = 'non_canonical_five_prime_splice_site';
  11988. --- ************************************************
  11989. --- *** relation: non_canonical_start_codon ***
  11990. --- *** relation type: VIEW ***
  11991. --- *** ***
  11992. --- *** A start codon that is not the usual AUG ***
  11993. --- *** sequence. ***
  11994. --- ************************************************
  11995. ---
  11996. CREATE VIEW non_canonical_start_codon AS
  11997. SELECT
  11998. feature_id AS non_canonical_start_codon_id,
  11999. feature.*
  12000. FROM
  12001. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12002. WHERE cvterm.name = 'four_bp_start_codon' OR cvterm.name = 'CTG_start_codon' OR cvterm.name = 'non_canonical_start_codon';
  12003. --- ************************************************
  12004. --- *** relation: aberrant_processed_transcript ***
  12005. --- *** relation type: VIEW ***
  12006. --- *** ***
  12007. --- *** A transcript that has been processed "in ***
  12008. --- *** correctly", for example by the failure o ***
  12009. --- *** f splicing of one or more exons. ***
  12010. --- ************************************************
  12011. ---
  12012. CREATE VIEW aberrant_processed_transcript AS
  12013. SELECT
  12014. feature_id AS aberrant_processed_transcript_id,
  12015. feature.*
  12016. FROM
  12017. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12018. WHERE cvterm.name = 'aberrant_processed_transcript';
  12019. --- ************************************************
  12020. --- *** relation: exonic_splice_enhancer ***
  12021. --- *** relation type: VIEW ***
  12022. --- *** ***
  12023. --- *** Exonic splicing enhancers (ESEs) facilit ***
  12024. --- *** ate exon definition by assisting in the ***
  12025. --- *** recruitment of splicing factors to the a ***
  12026. --- *** djacent intron. ***
  12027. --- ************************************************
  12028. ---
  12029. CREATE VIEW exonic_splice_enhancer AS
  12030. SELECT
  12031. feature_id AS exonic_splice_enhancer_id,
  12032. feature.*
  12033. FROM
  12034. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12035. WHERE cvterm.name = 'exonic_splice_enhancer';
  12036. --- ************************************************
  12037. --- *** relation: nuclease_sensitive_site ***
  12038. --- *** relation type: VIEW ***
  12039. --- *** ***
  12040. --- *** A region of nucleotide sequence targeted ***
  12041. --- *** by a nuclease enzyme. ***
  12042. --- ************************************************
  12043. ---
  12044. CREATE VIEW nuclease_sensitive_site AS
  12045. SELECT
  12046. feature_id AS nuclease_sensitive_site_id,
  12047. feature.*
  12048. FROM
  12049. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12050. 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';
  12051. --- ************************************************
  12052. --- *** relation: dnasei_hypersensitive_site ***
  12053. --- *** relation type: VIEW ***
  12054. --- *** ***
  12055. --- ************************************************
  12056. ---
  12057. CREATE VIEW dnasei_hypersensitive_site AS
  12058. SELECT
  12059. feature_id AS dnasei_hypersensitive_site_id,
  12060. feature.*
  12061. FROM
  12062. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12063. WHERE cvterm.name = 'DNAseI_hypersensitive_site';
  12064. --- ************************************************
  12065. --- *** relation: translocation_element ***
  12066. --- *** relation type: VIEW ***
  12067. --- *** ***
  12068. --- *** For some translocations, particularly bu ***
  12069. --- *** t not exclusively, reciprocal translocat ***
  12070. --- *** ions, the chromosomes carrying non-homol ***
  12071. --- *** ogous centromeres may be recovered indep ***
  12072. --- *** endently. These chromosomes are describe ***
  12073. --- *** d as translocation elements. ***
  12074. --- ************************************************
  12075. ---
  12076. CREATE VIEW translocation_element AS
  12077. SELECT
  12078. feature_id AS translocation_element_id,
  12079. feature.*
  12080. FROM
  12081. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12082. WHERE cvterm.name = 'translocation_element';
  12083. --- ************************************************
  12084. --- *** relation: deletion_junction ***
  12085. --- *** relation type: VIEW ***
  12086. --- *** ***
  12087. --- *** The space between two bases in a sequenc ***
  12088. --- *** e which marks the position where a delet ***
  12089. --- *** ion has occurred. ***
  12090. --- ************************************************
  12091. ---
  12092. CREATE VIEW deletion_junction AS
  12093. SELECT
  12094. feature_id AS deletion_junction_id,
  12095. feature.*
  12096. FROM
  12097. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12098. WHERE cvterm.name = 'deletion_junction';
  12099. --- ************************************************
  12100. --- *** relation: golden_path ***
  12101. --- *** relation type: VIEW ***
  12102. --- *** ***
  12103. --- *** A set of subregions selected from sequen ***
  12104. --- *** ce contigs which when concatenated form ***
  12105. --- *** a nonredundant linear sequence. ***
  12106. --- ************************************************
  12107. ---
  12108. CREATE VIEW golden_path AS
  12109. SELECT
  12110. feature_id AS golden_path_id,
  12111. feature.*
  12112. FROM
  12113. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12114. WHERE cvterm.name = 'golden_path';
  12115. --- ************************************************
  12116. --- *** relation: cdna_match ***
  12117. --- *** relation type: VIEW ***
  12118. --- *** ***
  12119. --- *** A match against cDNA sequence. ***
  12120. --- ************************************************
  12121. ---
  12122. CREATE VIEW cdna_match AS
  12123. SELECT
  12124. feature_id AS cdna_match_id,
  12125. feature.*
  12126. FROM
  12127. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12128. WHERE cvterm.name = 'cDNA_match';
  12129. --- ************************************************
  12130. --- *** relation: gene_with_polycistronic_transcript ***
  12131. --- *** relation type: VIEW ***
  12132. --- *** ***
  12133. --- *** A gene that encodes a polycistronic tran ***
  12134. --- *** script. ***
  12135. --- ************************************************
  12136. ---
  12137. CREATE VIEW gene_with_polycistronic_transcript AS
  12138. SELECT
  12139. feature_id AS gene_with_polycistronic_transcript_id,
  12140. feature.*
  12141. FROM
  12142. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12143. 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';
  12144. --- ************************************************
  12145. --- *** relation: cleaved_initiator_methionine ***
  12146. --- *** relation type: VIEW ***
  12147. --- *** ***
  12148. --- *** The initiator methionine that has been c ***
  12149. --- *** leaved from a mature polypeptide sequenc ***
  12150. --- *** e. ***
  12151. --- ************************************************
  12152. ---
  12153. CREATE VIEW cleaved_initiator_methionine AS
  12154. SELECT
  12155. feature_id AS cleaved_initiator_methionine_id,
  12156. feature.*
  12157. FROM
  12158. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12159. WHERE cvterm.name = 'cleaved_initiator_methionine';
  12160. --- ************************************************
  12161. --- *** relation: gene_with_dicistronic_transcript ***
  12162. --- *** relation type: VIEW ***
  12163. --- *** ***
  12164. --- *** A gene that encodes a dicistronic transc ***
  12165. --- *** ript. ***
  12166. --- ************************************************
  12167. ---
  12168. CREATE VIEW gene_with_dicistronic_transcript AS
  12169. SELECT
  12170. feature_id AS gene_with_dicistronic_transcript_id,
  12171. feature.*
  12172. FROM
  12173. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12174. WHERE cvterm.name = 'gene_with_dicistronic_primary_transcript' OR cvterm.name = 'gene_with_dicistronic_mRNA' OR cvterm.name = 'gene_with_dicistronic_transcript';
  12175. --- ************************************************
  12176. --- *** relation: gene_with_recoded_mrna ***
  12177. --- *** relation type: VIEW ***
  12178. --- *** ***
  12179. --- *** A gene that encodes an mRNA that is reco ***
  12180. --- *** ded. ***
  12181. --- ************************************************
  12182. ---
  12183. CREATE VIEW gene_with_recoded_mrna AS
  12184. SELECT
  12185. feature_id AS gene_with_recoded_mrna_id,
  12186. feature.*
  12187. FROM
  12188. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12189. 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';
  12190. --- ************************************************
  12191. --- *** relation: snp ***
  12192. --- *** relation type: VIEW ***
  12193. --- *** ***
  12194. --- *** SNPs are single base pair positions in g ***
  12195. --- *** enomic DNA at which different sequence a ***
  12196. --- *** lternatives (alleles) exist in normal in ***
  12197. --- *** dividuals in some population(s), wherein ***
  12198. --- *** the least frequent allele has an abunda ***
  12199. --- *** nce of 1% or greater. ***
  12200. --- ************************************************
  12201. ---
  12202. CREATE VIEW snp AS
  12203. SELECT
  12204. feature_id AS snp_id,
  12205. feature.*
  12206. FROM
  12207. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12208. WHERE cvterm.name = 'SNP';
  12209. --- ************************************************
  12210. --- *** relation: reagent ***
  12211. --- *** relation type: VIEW ***
  12212. --- *** ***
  12213. --- *** A sequence used in experiment. ***
  12214. --- ************************************************
  12215. ---
  12216. CREATE VIEW reagent AS
  12217. SELECT
  12218. feature_id AS reagent_id,
  12219. feature.*
  12220. FROM
  12221. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12222. 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 = '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';
  12223. --- ************************************************
  12224. --- *** relation: oligo ***
  12225. --- *** relation type: VIEW ***
  12226. --- *** ***
  12227. --- *** A short oligonucleotide sequence, of len ***
  12228. --- *** gth on the order of 10's of bases; eithe ***
  12229. --- *** r single or double stranded. ***
  12230. --- ************************************************
  12231. ---
  12232. CREATE VIEW oligo AS
  12233. SELECT
  12234. feature_id AS oligo_id,
  12235. feature.*
  12236. FROM
  12237. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12238. 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 = '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';
  12239. --- ************************************************
  12240. --- *** relation: gene_with_stop_codon_read_through ***
  12241. --- *** relation type: VIEW ***
  12242. --- *** ***
  12243. --- *** A gene that encodes a transcript with st ***
  12244. --- *** op codon readthrough. ***
  12245. --- ************************************************
  12246. ---
  12247. CREATE VIEW gene_with_stop_codon_read_through AS
  12248. SELECT
  12249. feature_id AS gene_with_stop_codon_read_through_id,
  12250. feature.*
  12251. FROM
  12252. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12253. 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';
  12254. --- ************************************************
  12255. --- *** relation: gene_with_stop_codon_redefined_as_pyrrolysine ***
  12256. --- *** relation type: VIEW ***
  12257. --- *** ***
  12258. --- *** A gene encoding an mRNA that has the sto ***
  12259. --- *** p codon redefined as pyrrolysine. ***
  12260. --- ************************************************
  12261. ---
  12262. CREATE VIEW gene_with_stop_codon_redefined_as_pyrrolysine AS
  12263. SELECT
  12264. feature_id AS gene_with_stop_codon_redefined_as_pyrrolysine_id,
  12265. feature.*
  12266. FROM
  12267. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12268. WHERE cvterm.name = 'gene_with_stop_codon_redefined_as_pyrrolysine';
  12269. --- ************************************************
  12270. --- *** relation: junction ***
  12271. --- *** relation type: VIEW ***
  12272. --- *** ***
  12273. --- *** A sequence_feature with an extent of zer ***
  12274. --- *** o. ***
  12275. --- ************************************************
  12276. ---
  12277. CREATE VIEW junction AS
  12278. SELECT
  12279. feature_id AS junction_id,
  12280. feature.*
  12281. FROM
  12282. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12283. 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 = 'deletion_junction' OR cvterm.name = 'chromosome_breakpoint' OR cvterm.name = 'splice_junction' OR cvterm.name = 'polyA_junction' OR cvterm.name = 'trans_splice_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 = 'junction';
  12284. --- ************************************************
  12285. --- *** relation: remark ***
  12286. --- *** relation type: VIEW ***
  12287. --- *** ***
  12288. --- *** A comment about the sequence. ***
  12289. --- ************************************************
  12290. ---
  12291. CREATE VIEW remark AS
  12292. SELECT
  12293. feature_id AS remark_id,
  12294. feature.*
  12295. FROM
  12296. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12297. 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 = '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 = 'remark';
  12298. --- ************************************************
  12299. --- *** relation: possible_base_call_error ***
  12300. --- *** relation type: VIEW ***
  12301. --- *** ***
  12302. --- *** A region of sequence where the validity ***
  12303. --- *** of the base calling is questionable. ***
  12304. --- ************************************************
  12305. ---
  12306. CREATE VIEW possible_base_call_error AS
  12307. SELECT
  12308. feature_id AS possible_base_call_error_id,
  12309. feature.*
  12310. FROM
  12311. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12312. WHERE cvterm.name = 'possible_base_call_error';
  12313. --- ************************************************
  12314. --- *** relation: possible_assembly_error ***
  12315. --- *** relation type: VIEW ***
  12316. --- *** ***
  12317. --- *** A region of sequence where there may hav ***
  12318. --- *** e been an error in the assembly. ***
  12319. --- ************************************************
  12320. ---
  12321. CREATE VIEW possible_assembly_error AS
  12322. SELECT
  12323. feature_id AS possible_assembly_error_id,
  12324. feature.*
  12325. FROM
  12326. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12327. WHERE cvterm.name = 'possible_assembly_error';
  12328. --- ************************************************
  12329. --- *** relation: experimental_result_region ***
  12330. --- *** relation type: VIEW ***
  12331. --- *** ***
  12332. --- *** A region of sequence implicated in an ex ***
  12333. --- *** perimental result. ***
  12334. --- ************************************************
  12335. ---
  12336. CREATE VIEW experimental_result_region AS
  12337. SELECT
  12338. feature_id AS experimental_result_region_id,
  12339. feature.*
  12340. FROM
  12341. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12342. WHERE cvterm.name = 'overlapping_feature_set' OR cvterm.name = 'no_output' OR cvterm.name = 'overlapping_EST_set' OR cvterm.name = 'experimental_result_region';
  12343. --- ************************************************
  12344. --- *** relation: gene ***
  12345. --- *** relation type: VIEW ***
  12346. --- *** ***
  12347. --- *** A region (or regions) that includes all ***
  12348. --- *** of the sequence elements necessary to en ***
  12349. --- *** code a functional transcript. A gene may ***
  12350. --- *** include regulatory regions, transcribed ***
  12351. --- *** regions and/or other functional sequenc ***
  12352. --- *** e regions. ***
  12353. --- ************************************************
  12354. ---
  12355. CREATE VIEW gene AS
  12356. SELECT
  12357. feature_id AS gene_id,
  12358. feature.*
  12359. FROM
  12360. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12361. 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_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 = 'cryptogene' OR cvterm.name = 'gene';
  12362. --- ************************************************
  12363. --- *** relation: tandem_repeat ***
  12364. --- *** relation type: VIEW ***
  12365. --- *** ***
  12366. --- *** Two or more adjcent copies of a region ( ***
  12367. --- *** of length greater than 1). ***
  12368. --- ************************************************
  12369. ---
  12370. CREATE VIEW tandem_repeat AS
  12371. SELECT
  12372. feature_id AS tandem_repeat_id,
  12373. feature.*
  12374. FROM
  12375. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12376. 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';
  12377. --- ************************************************
  12378. --- *** relation: trans_splice_acceptor_site ***
  12379. --- *** relation type: VIEW ***
  12380. --- *** ***
  12381. --- *** The 3' splice site of the acceptor prima ***
  12382. --- *** ry transcript. ***
  12383. --- ************************************************
  12384. ---
  12385. CREATE VIEW trans_splice_acceptor_site AS
  12386. SELECT
  12387. feature_id AS trans_splice_acceptor_site_id,
  12388. feature.*
  12389. FROM
  12390. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12391. WHERE cvterm.name = 'SL1_acceptor_site' OR cvterm.name = 'SL2_acceptor_site' OR cvterm.name = 'trans_splice_acceptor_site';
  12392. --- ************************************************
  12393. --- *** relation: trans_splice_donor_site ***
  12394. --- *** relation type: VIEW ***
  12395. --- *** ***
  12396. --- *** The 5' five prime splice site region of ***
  12397. --- *** the donor RNA. ***
  12398. --- ************************************************
  12399. ---
  12400. CREATE VIEW trans_splice_donor_site AS
  12401. SELECT
  12402. feature_id AS trans_splice_donor_site_id,
  12403. feature.*
  12404. FROM
  12405. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12406. WHERE cvterm.name = 'trans_splice_donor_site';
  12407. --- ************************************************
  12408. --- *** relation: sl1_acceptor_site ***
  12409. --- *** relation type: VIEW ***
  12410. --- *** ***
  12411. --- ************************************************
  12412. ---
  12413. CREATE VIEW sl1_acceptor_site AS
  12414. SELECT
  12415. feature_id AS sl1_acceptor_site_id,
  12416. feature.*
  12417. FROM
  12418. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12419. WHERE cvterm.name = 'SL1_acceptor_site';
  12420. --- ************************************************
  12421. --- *** relation: sl2_acceptor_site ***
  12422. --- *** relation type: VIEW ***
  12423. --- *** ***
  12424. --- ************************************************
  12425. ---
  12426. CREATE VIEW sl2_acceptor_site AS
  12427. SELECT
  12428. feature_id AS sl2_acceptor_site_id,
  12429. feature.*
  12430. FROM
  12431. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12432. WHERE cvterm.name = 'SL2_acceptor_site';
  12433. --- ************************************************
  12434. --- *** relation: gene_with_stop_codon_redefined_as_selenocysteine ***
  12435. --- *** relation type: VIEW ***
  12436. --- *** ***
  12437. --- *** A gene encoding an mRNA that has the sto ***
  12438. --- *** p codon redefined as selenocysteine. ***
  12439. --- ************************************************
  12440. ---
  12441. CREATE VIEW gene_with_stop_codon_redefined_as_selenocysteine AS
  12442. SELECT
  12443. feature_id AS gene_with_stop_codon_redefined_as_selenocysteine_id,
  12444. feature.*
  12445. FROM
  12446. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12447. WHERE cvterm.name = 'gene_with_stop_codon_redefined_as_selenocysteine';
  12448. --- ************************************************
  12449. --- *** relation: gene_with_mrna_recoded_by_translational_bypass ***
  12450. --- *** relation type: VIEW ***
  12451. --- *** ***
  12452. --- *** A gene with mRNA recoded by translationa ***
  12453. --- *** l bypass. ***
  12454. --- ************************************************
  12455. ---
  12456. CREATE VIEW gene_with_mrna_recoded_by_translational_bypass AS
  12457. SELECT
  12458. feature_id AS gene_with_mrna_recoded_by_translational_bypass_id,
  12459. feature.*
  12460. FROM
  12461. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12462. WHERE cvterm.name = 'gene_with_mRNA_recoded_by_translational_bypass';
  12463. --- ************************************************
  12464. --- *** relation: gene_with_transcript_with_translational_frameshift ***
  12465. --- *** relation type: VIEW ***
  12466. --- *** ***
  12467. --- *** A gene encoding a transcript that has a ***
  12468. --- *** translational frameshift. ***
  12469. --- ************************************************
  12470. ---
  12471. CREATE VIEW gene_with_transcript_with_translational_frameshift AS
  12472. SELECT
  12473. feature_id AS gene_with_transcript_with_translational_frameshift_id,
  12474. feature.*
  12475. FROM
  12476. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12477. WHERE cvterm.name = 'gene_with_transcript_with_translational_frameshift';
  12478. --- ************************************************
  12479. --- *** relation: dna_motif ***
  12480. --- *** relation type: VIEW ***
  12481. --- *** ***
  12482. --- *** A motif that is active in the DNA form o ***
  12483. --- *** f the sequence. ***
  12484. --- ************************************************
  12485. ---
  12486. CREATE VIEW dna_motif AS
  12487. SELECT
  12488. feature_id AS dna_motif_id,
  12489. feature.*
  12490. FROM
  12491. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12492. WHERE cvterm.name = 'PSE_motif' OR cvterm.name = 'GC_rich_promoter_region' OR cvterm.name = 'minus_10_signal' OR cvterm.name = 'minus_35_signal' 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 = 'DNA_motif';
  12493. --- ************************************************
  12494. --- *** relation: nucleotide_motif ***
  12495. --- *** relation type: VIEW ***
  12496. --- *** ***
  12497. --- *** A region of nucleotide sequence correspo ***
  12498. --- *** nding to a known motif. ***
  12499. --- ************************************************
  12500. ---
  12501. CREATE VIEW nucleotide_motif AS
  12502. SELECT
  12503. feature_id AS nucleotide_motif_id,
  12504. feature.*
  12505. FROM
  12506. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12507. WHERE cvterm.name = 'DNA_motif' OR cvterm.name = 'RNA_motif' OR cvterm.name = 'PSE_motif' OR cvterm.name = 'GC_rich_promoter_region' OR cvterm.name = 'minus_10_signal' OR cvterm.name = 'minus_35_signal' 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 = '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';
  12508. --- ************************************************
  12509. --- *** relation: rna_motif ***
  12510. --- *** relation type: VIEW ***
  12511. --- *** ***
  12512. --- *** A motif that is active in RNA sequence. ***
  12513. --- ************************************************
  12514. ---
  12515. CREATE VIEW rna_motif AS
  12516. SELECT
  12517. feature_id AS rna_motif_id,
  12518. feature.*
  12519. FROM
  12520. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12521. 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';
  12522. --- ************************************************
  12523. --- *** relation: dicistronic_mrna ***
  12524. --- *** relation type: VIEW ***
  12525. --- *** ***
  12526. --- *** An mRNA that has the quality dicistronic ***
  12527. --- *** . ***
  12528. --- ************************************************
  12529. ---
  12530. CREATE VIEW dicistronic_mrna AS
  12531. SELECT
  12532. feature_id AS dicistronic_mrna_id,
  12533. feature.*
  12534. FROM
  12535. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12536. WHERE cvterm.name = 'dicistronic_mRNA';
  12537. --- ************************************************
  12538. --- *** relation: reading_frame ***
  12539. --- *** relation type: VIEW ***
  12540. --- *** ***
  12541. --- *** A nucleic acid sequence that when read a ***
  12542. --- *** s sequential triplets, has the potential ***
  12543. --- *** of encoding a sequential string of amin ***
  12544. --- *** o acids. It need not contain the start o ***
  12545. --- *** r stop codon. ***
  12546. --- ************************************************
  12547. ---
  12548. CREATE VIEW reading_frame AS
  12549. SELECT
  12550. feature_id AS reading_frame_id,
  12551. feature.*
  12552. FROM
  12553. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12554. 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';
  12555. --- ************************************************
  12556. --- *** relation: blocked_reading_frame ***
  12557. --- *** relation type: VIEW ***
  12558. --- *** ***
  12559. --- *** A reading_frame that is interrupted by o ***
  12560. --- *** ne or more stop codons; usually identifi ***
  12561. --- *** ed through intergenomic sequence compari ***
  12562. --- *** sons. ***
  12563. --- ************************************************
  12564. ---
  12565. CREATE VIEW blocked_reading_frame AS
  12566. SELECT
  12567. feature_id AS blocked_reading_frame_id,
  12568. feature.*
  12569. FROM
  12570. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12571. WHERE cvterm.name = 'blocked_reading_frame';
  12572. --- ************************************************
  12573. --- *** relation: ultracontig ***
  12574. --- *** relation type: VIEW ***
  12575. --- *** ***
  12576. --- *** An ordered and oriented set of scaffolds ***
  12577. --- *** based on somewhat weaker sets of infere ***
  12578. --- *** ntial evidence such as one set of mate p ***
  12579. --- *** air reads together with supporting evide ***
  12580. --- *** nce from ESTs or location of markers fro ***
  12581. --- *** m SNP or microsatellite maps, or cytogen ***
  12582. --- *** etic localization of contained markers. ***
  12583. --- ************************************************
  12584. ---
  12585. CREATE VIEW ultracontig AS
  12586. SELECT
  12587. feature_id AS ultracontig_id,
  12588. feature.*
  12589. FROM
  12590. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12591. WHERE cvterm.name = 'ultracontig';
  12592. --- ************************************************
  12593. --- *** relation: foreign_transposable_element ***
  12594. --- *** relation type: VIEW ***
  12595. --- *** ***
  12596. --- *** A transposable element that is foreign. ***
  12597. --- ************************************************
  12598. ---
  12599. CREATE VIEW foreign_transposable_element AS
  12600. SELECT
  12601. feature_id AS foreign_transposable_element_id,
  12602. feature.*
  12603. FROM
  12604. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12605. WHERE cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'foreign_transposable_element';
  12606. --- ************************************************
  12607. --- *** relation: gene_with_dicistronic_primary_transcript ***
  12608. --- *** relation type: VIEW ***
  12609. --- *** ***
  12610. --- *** A gene that encodes a dicistronic primar ***
  12611. --- *** y transcript. ***
  12612. --- ************************************************
  12613. ---
  12614. CREATE VIEW gene_with_dicistronic_primary_transcript AS
  12615. SELECT
  12616. feature_id AS gene_with_dicistronic_primary_transcript_id,
  12617. feature.*
  12618. FROM
  12619. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12620. WHERE cvterm.name = 'gene_with_dicistronic_primary_transcript';
  12621. --- ************************************************
  12622. --- *** relation: gene_with_dicistronic_mrna ***
  12623. --- *** relation type: VIEW ***
  12624. --- *** ***
  12625. --- *** A gene that encodes a polycistronic mRNA ***
  12626. --- *** . ***
  12627. --- ************************************************
  12628. ---
  12629. CREATE VIEW gene_with_dicistronic_mrna AS
  12630. SELECT
  12631. feature_id AS gene_with_dicistronic_mrna_id,
  12632. feature.*
  12633. FROM
  12634. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12635. WHERE cvterm.name = 'gene_with_dicistronic_mRNA';
  12636. --- ************************************************
  12637. --- *** relation: idna ***
  12638. --- *** relation type: VIEW ***
  12639. --- *** ***
  12640. --- *** Genomic sequence removed from the genome ***
  12641. --- *** , as a normal event, by a process of rec ***
  12642. --- *** ombination. ***
  12643. --- ************************************************
  12644. ---
  12645. CREATE VIEW idna AS
  12646. SELECT
  12647. feature_id AS idna_id,
  12648. feature.*
  12649. FROM
  12650. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12651. WHERE cvterm.name = 'iDNA';
  12652. --- ************************************************
  12653. --- *** relation: orit ***
  12654. --- *** relation type: VIEW ***
  12655. --- *** ***
  12656. --- *** A region of a DNA molecule where transfe ***
  12657. --- *** r is initiated during the process of con ***
  12658. --- *** jugation or mobilization. ***
  12659. --- ************************************************
  12660. ---
  12661. CREATE VIEW orit AS
  12662. SELECT
  12663. feature_id AS orit_id,
  12664. feature.*
  12665. FROM
  12666. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12667. WHERE cvterm.name = 'oriT';
  12668. --- ************************************************
  12669. --- *** relation: transit_peptide ***
  12670. --- *** relation type: VIEW ***
  12671. --- *** ***
  12672. --- *** The transit_peptide is a short region at ***
  12673. --- *** the N-terminus of the peptide that dire ***
  12674. --- *** cts the protein to an organelle (chlorop ***
  12675. --- *** last, mitochondrion, microbody or cyanel ***
  12676. --- *** le). ***
  12677. --- ************************************************
  12678. ---
  12679. CREATE VIEW transit_peptide AS
  12680. SELECT
  12681. feature_id AS transit_peptide_id,
  12682. feature.*
  12683. FROM
  12684. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12685. WHERE cvterm.name = 'transit_peptide';
  12686. --- ************************************************
  12687. --- *** relation: repeat_unit ***
  12688. --- *** relation type: VIEW ***
  12689. --- *** ***
  12690. --- *** The simplest repeated component of a rep ***
  12691. --- *** eat region. A single repeat. ***
  12692. --- ************************************************
  12693. ---
  12694. CREATE VIEW repeat_unit AS
  12695. SELECT
  12696. feature_id AS repeat_unit_id,
  12697. feature.*
  12698. FROM
  12699. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12700. WHERE cvterm.name = 'repeat_unit';
  12701. --- ************************************************
  12702. --- *** relation: crm ***
  12703. --- *** relation type: VIEW ***
  12704. --- *** ***
  12705. --- *** A regulatory_region where more than 1 TF ***
  12706. --- *** _binding_site together are regulatorily ***
  12707. --- *** active. ***
  12708. --- ************************************************
  12709. ---
  12710. CREATE VIEW crm AS
  12711. SELECT
  12712. feature_id AS crm_id,
  12713. feature.*
  12714. FROM
  12715. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12716. WHERE cvterm.name = 'locus_control_region' OR cvterm.name = 'enhancer' OR cvterm.name = 'RNApol_II_promoter' OR cvterm.name = 'RNApol_III_promoter' OR cvterm.name = 'silencer' OR cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' 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 = 'CRM';
  12717. --- ************************************************
  12718. --- *** relation: intein ***
  12719. --- *** relation type: VIEW ***
  12720. --- *** ***
  12721. --- *** A region of a peptide that is able to ex ***
  12722. --- *** cise itself and rejoin the remaining por ***
  12723. --- *** tions with a peptide bond. ***
  12724. --- ************************************************
  12725. ---
  12726. CREATE VIEW intein AS
  12727. SELECT
  12728. feature_id AS intein_id,
  12729. feature.*
  12730. FROM
  12731. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12732. WHERE cvterm.name = 'intein';
  12733. --- ************************************************
  12734. --- *** relation: intein_containing ***
  12735. --- *** relation type: VIEW ***
  12736. --- *** ***
  12737. --- *** An attribute of protein-coding genes whe ***
  12738. --- *** re the initial protein product contains ***
  12739. --- *** an intein. ***
  12740. --- ************************************************
  12741. ---
  12742. CREATE VIEW intein_containing AS
  12743. SELECT
  12744. feature_id AS intein_containing_id,
  12745. feature.*
  12746. FROM
  12747. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12748. WHERE cvterm.name = 'intein_containing';
  12749. --- ************************************************
  12750. --- *** relation: gap ***
  12751. --- *** relation type: VIEW ***
  12752. --- *** ***
  12753. --- *** A gap in the sequence of known length. T ***
  12754. --- *** he unknown bases are filled in with N's. ***
  12755. --- ************************************************
  12756. ---
  12757. CREATE VIEW gap AS
  12758. SELECT
  12759. feature_id AS gap_id,
  12760. feature.*
  12761. FROM
  12762. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12763. WHERE cvterm.name = 'gap';
  12764. --- ************************************************
  12765. --- *** relation: fragmentary ***
  12766. --- *** relation type: VIEW ***
  12767. --- *** ***
  12768. --- *** An attribute to describe a feature that ***
  12769. --- *** is incomplete. ***
  12770. --- ************************************************
  12771. ---
  12772. CREATE VIEW fragmentary AS
  12773. SELECT
  12774. feature_id AS fragmentary_id,
  12775. feature.*
  12776. FROM
  12777. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12778. WHERE cvterm.name = 'fragmentary';
  12779. --- ************************************************
  12780. --- *** relation: predicted ***
  12781. --- *** relation type: VIEW ***
  12782. --- *** ***
  12783. --- *** An attribute describing an unverified re ***
  12784. --- *** gion. ***
  12785. --- ************************************************
  12786. ---
  12787. CREATE VIEW predicted AS
  12788. SELECT
  12789. feature_id AS predicted_id,
  12790. feature.*
  12791. FROM
  12792. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12793. 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';
  12794. --- ************************************************
  12795. --- *** relation: feature_attribute ***
  12796. --- *** relation type: VIEW ***
  12797. --- *** ***
  12798. --- *** An attribute describing a located_sequen ***
  12799. --- *** ce_feature. ***
  12800. --- ************************************************
  12801. ---
  12802. CREATE VIEW feature_attribute AS
  12803. SELECT
  12804. feature_id AS feature_attribute_id,
  12805. feature.*
  12806. FROM
  12807. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12808. 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 = '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 = '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 = 'single' OR cvterm.name = 'double' OR cvterm.name = 'forward' OR cvterm.name = 'reverse' OR cvterm.name = 'ribozymic' OR cvterm.name = 'feature_attribute';
  12809. --- ************************************************
  12810. --- *** relation: exemplar_mrna ***
  12811. --- *** relation type: VIEW ***
  12812. --- *** ***
  12813. --- *** An exemplar is a representative cDNA seq ***
  12814. --- *** uence for each gene. The exemplar approa ***
  12815. --- *** ch is a method that usually involves som ***
  12816. --- *** e initial clustering into gene groups an ***
  12817. --- *** d the subsequent selection of a represen ***
  12818. --- *** tative from each gene group. ***
  12819. --- ************************************************
  12820. ---
  12821. CREATE VIEW exemplar_mrna AS
  12822. SELECT
  12823. feature_id AS exemplar_mrna_id,
  12824. feature.*
  12825. FROM
  12826. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12827. WHERE cvterm.name = 'exemplar_mRNA';
  12828. --- ************************************************
  12829. --- *** relation: sequence_location ***
  12830. --- *** relation type: VIEW ***
  12831. --- *** ***
  12832. --- ************************************************
  12833. ---
  12834. CREATE VIEW sequence_location AS
  12835. SELECT
  12836. feature_id AS sequence_location_id,
  12837. feature.*
  12838. FROM
  12839. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12840. 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';
  12841. --- ************************************************
  12842. --- *** relation: organelle_sequence ***
  12843. --- *** relation type: VIEW ***
  12844. --- *** ***
  12845. --- ************************************************
  12846. ---
  12847. CREATE VIEW organelle_sequence AS
  12848. SELECT
  12849. feature_id AS organelle_sequence_id,
  12850. feature.*
  12851. FROM
  12852. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12853. 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';
  12854. --- ************************************************
  12855. --- *** relation: mitochondrial_sequence ***
  12856. --- *** relation type: VIEW ***
  12857. --- *** ***
  12858. --- ************************************************
  12859. ---
  12860. CREATE VIEW mitochondrial_sequence AS
  12861. SELECT
  12862. feature_id AS mitochondrial_sequence_id,
  12863. feature.*
  12864. FROM
  12865. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12866. WHERE cvterm.name = 'mitochondrial_DNA' OR cvterm.name = 'mitochondrial_sequence';
  12867. --- ************************************************
  12868. --- *** relation: nuclear_sequence ***
  12869. --- *** relation type: VIEW ***
  12870. --- *** ***
  12871. --- ************************************************
  12872. ---
  12873. CREATE VIEW nuclear_sequence AS
  12874. SELECT
  12875. feature_id AS nuclear_sequence_id,
  12876. feature.*
  12877. FROM
  12878. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12879. WHERE cvterm.name = 'nuclear_sequence';
  12880. --- ************************************************
  12881. --- *** relation: nucleomorphic_sequence ***
  12882. --- *** relation type: VIEW ***
  12883. --- *** ***
  12884. --- ************************************************
  12885. ---
  12886. CREATE VIEW nucleomorphic_sequence AS
  12887. SELECT
  12888. feature_id AS nucleomorphic_sequence_id,
  12889. feature.*
  12890. FROM
  12891. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12892. WHERE cvterm.name = 'nucleomorphic_sequence';
  12893. --- ************************************************
  12894. --- *** relation: plastid_sequence ***
  12895. --- *** relation type: VIEW ***
  12896. --- *** ***
  12897. --- ************************************************
  12898. ---
  12899. CREATE VIEW plastid_sequence AS
  12900. SELECT
  12901. feature_id AS plastid_sequence_id,
  12902. feature.*
  12903. FROM
  12904. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12905. 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';
  12906. --- ************************************************
  12907. --- *** relation: kinetoplast ***
  12908. --- *** relation type: VIEW ***
  12909. --- *** ***
  12910. --- *** A kinetoplast is an interlocked network ***
  12911. --- *** of thousands of minicircles and tens of ***
  12912. --- *** maxi circles, located near the base of t ***
  12913. --- *** he flagellum of some protozoan species. ***
  12914. --- ************************************************
  12915. ---
  12916. CREATE VIEW kinetoplast AS
  12917. SELECT
  12918. feature_id AS kinetoplast_id,
  12919. feature.*
  12920. FROM
  12921. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12922. WHERE cvterm.name = 'kinetoplast';
  12923. --- ************************************************
  12924. --- *** relation: maxicircle ***
  12925. --- *** relation type: VIEW ***
  12926. --- *** ***
  12927. --- *** A maxicircle is a replicon, part of a ki ***
  12928. --- *** netoplast, that contains open reading fr ***
  12929. --- *** ames and replicates via a rolling circle ***
  12930. --- *** method. ***
  12931. --- ************************************************
  12932. ---
  12933. CREATE VIEW maxicircle AS
  12934. SELECT
  12935. feature_id AS maxicircle_id,
  12936. feature.*
  12937. FROM
  12938. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12939. WHERE cvterm.name = 'maxicircle';
  12940. --- ************************************************
  12941. --- *** relation: apicoplast_sequence ***
  12942. --- *** relation type: VIEW ***
  12943. --- *** ***
  12944. --- ************************************************
  12945. ---
  12946. CREATE VIEW apicoplast_sequence AS
  12947. SELECT
  12948. feature_id AS apicoplast_sequence_id,
  12949. feature.*
  12950. FROM
  12951. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12952. WHERE cvterm.name = 'apicoplast_sequence';
  12953. --- ************************************************
  12954. --- *** relation: chromoplast_sequence ***
  12955. --- *** relation type: VIEW ***
  12956. --- *** ***
  12957. --- ************************************************
  12958. ---
  12959. CREATE VIEW chromoplast_sequence AS
  12960. SELECT
  12961. feature_id AS chromoplast_sequence_id,
  12962. feature.*
  12963. FROM
  12964. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12965. WHERE cvterm.name = 'chromoplast_sequence';
  12966. --- ************************************************
  12967. --- *** relation: chloroplast_sequence ***
  12968. --- *** relation type: VIEW ***
  12969. --- *** ***
  12970. --- ************************************************
  12971. ---
  12972. CREATE VIEW chloroplast_sequence AS
  12973. SELECT
  12974. feature_id AS chloroplast_sequence_id,
  12975. feature.*
  12976. FROM
  12977. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12978. WHERE cvterm.name = 'chloroplast_DNA' OR cvterm.name = 'chloroplast_sequence';
  12979. --- ************************************************
  12980. --- *** relation: cyanelle_sequence ***
  12981. --- *** relation type: VIEW ***
  12982. --- *** ***
  12983. --- ************************************************
  12984. ---
  12985. CREATE VIEW cyanelle_sequence AS
  12986. SELECT
  12987. feature_id AS cyanelle_sequence_id,
  12988. feature.*
  12989. FROM
  12990. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12991. WHERE cvterm.name = 'cyanelle_sequence';
  12992. --- ************************************************
  12993. --- *** relation: leucoplast_sequence ***
  12994. --- *** relation type: VIEW ***
  12995. --- *** ***
  12996. --- ************************************************
  12997. ---
  12998. CREATE VIEW leucoplast_sequence AS
  12999. SELECT
  13000. feature_id AS leucoplast_sequence_id,
  13001. feature.*
  13002. FROM
  13003. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13004. WHERE cvterm.name = 'leucoplast_sequence';
  13005. --- ************************************************
  13006. --- *** relation: proplastid_sequence ***
  13007. --- *** relation type: VIEW ***
  13008. --- *** ***
  13009. --- ************************************************
  13010. ---
  13011. CREATE VIEW proplastid_sequence AS
  13012. SELECT
  13013. feature_id AS proplastid_sequence_id,
  13014. feature.*
  13015. FROM
  13016. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13017. WHERE cvterm.name = 'proplastid_sequence';
  13018. --- ************************************************
  13019. --- *** relation: plasmid_location ***
  13020. --- *** relation type: VIEW ***
  13021. --- *** ***
  13022. --- ************************************************
  13023. ---
  13024. CREATE VIEW plasmid_location AS
  13025. SELECT
  13026. feature_id AS plasmid_location_id,
  13027. feature.*
  13028. FROM
  13029. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13030. WHERE cvterm.name = 'plasmid_location';
  13031. --- ************************************************
  13032. --- *** relation: amplification_origin ***
  13033. --- *** relation type: VIEW ***
  13034. --- *** ***
  13035. --- *** An origin_of_replication that is used fo ***
  13036. --- *** r the amplification of a chromosomal nuc ***
  13037. --- *** leic acid sequence. ***
  13038. --- ************************************************
  13039. ---
  13040. CREATE VIEW amplification_origin AS
  13041. SELECT
  13042. feature_id AS amplification_origin_id,
  13043. feature.*
  13044. FROM
  13045. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13046. WHERE cvterm.name = 'amplification_origin';
  13047. --- ************************************************
  13048. --- *** relation: proviral_location ***
  13049. --- *** relation type: VIEW ***
  13050. --- *** ***
  13051. --- ************************************************
  13052. ---
  13053. CREATE VIEW proviral_location AS
  13054. SELECT
  13055. feature_id AS proviral_location_id,
  13056. feature.*
  13057. FROM
  13058. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13059. WHERE cvterm.name = 'endogenous_retroviral_sequence' OR cvterm.name = 'proviral_location';
  13060. --- ************************************************
  13061. --- *** relation: gene_group_regulatory_region ***
  13062. --- *** relation type: VIEW ***
  13063. --- *** ***
  13064. --- ************************************************
  13065. ---
  13066. CREATE VIEW gene_group_regulatory_region AS
  13067. SELECT
  13068. feature_id AS gene_group_regulatory_region_id,
  13069. feature.*
  13070. FROM
  13071. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13072. WHERE cvterm.name = 'operator' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'bacterial_terminator' OR cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'gene_group_regulatory_region';
  13073. --- ************************************************
  13074. --- *** relation: clone_insert ***
  13075. --- *** relation type: VIEW ***
  13076. --- *** ***
  13077. --- *** The region of sequence that has been ins ***
  13078. --- *** erted and is being propogated by the clo ***
  13079. --- *** ne. ***
  13080. --- ************************************************
  13081. ---
  13082. CREATE VIEW clone_insert AS
  13083. SELECT
  13084. feature_id AS clone_insert_id,
  13085. feature.*
  13086. FROM
  13087. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13088. 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';
  13089. --- ************************************************
  13090. --- *** relation: lambda_vector ***
  13091. --- *** relation type: VIEW ***
  13092. --- *** ***
  13093. --- *** The lambda bacteriophage is the vector f ***
  13094. --- *** or the linear lambda clone. The genes in ***
  13095. --- *** volved in the lysogenic pathway are remo ***
  13096. --- *** ved from the from the viral DNA. Up to 2 ***
  13097. --- *** 5 kb of foreign DNA can then be inserted ***
  13098. --- *** into the lambda genome. ***
  13099. --- ************************************************
  13100. ---
  13101. CREATE VIEW lambda_vector AS
  13102. SELECT
  13103. feature_id AS lambda_vector_id,
  13104. feature.*
  13105. FROM
  13106. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13107. WHERE cvterm.name = 'lambda_vector';
  13108. --- ************************************************
  13109. --- *** relation: plasmid_vector ***
  13110. --- *** relation type: VIEW ***
  13111. --- *** ***
  13112. --- ************************************************
  13113. ---
  13114. CREATE VIEW plasmid_vector AS
  13115. SELECT
  13116. feature_id AS plasmid_vector_id,
  13117. feature.*
  13118. FROM
  13119. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13120. WHERE cvterm.name = 'plasmid_vector';
  13121. --- ************************************************
  13122. --- *** relation: cdna ***
  13123. --- *** relation type: VIEW ***
  13124. --- *** ***
  13125. --- *** DNA synthesized by reverse transcriptase ***
  13126. --- *** using RNA as a template. ***
  13127. --- ************************************************
  13128. ---
  13129. CREATE VIEW cdna AS
  13130. SELECT
  13131. feature_id AS cdna_id,
  13132. feature.*
  13133. FROM
  13134. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13135. WHERE cvterm.name = 'single_stranded_cDNA' OR cvterm.name = 'double_stranded_cDNA' OR cvterm.name = 'cDNA';
  13136. --- ************************************************
  13137. --- *** relation: single_stranded_cdna ***
  13138. --- *** relation type: VIEW ***
  13139. --- *** ***
  13140. --- ************************************************
  13141. ---
  13142. CREATE VIEW single_stranded_cdna AS
  13143. SELECT
  13144. feature_id AS single_stranded_cdna_id,
  13145. feature.*
  13146. FROM
  13147. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13148. WHERE cvterm.name = 'single_stranded_cDNA';
  13149. --- ************************************************
  13150. --- *** relation: double_stranded_cdna ***
  13151. --- *** relation type: VIEW ***
  13152. --- *** ***
  13153. --- ************************************************
  13154. ---
  13155. CREATE VIEW double_stranded_cdna AS
  13156. SELECT
  13157. feature_id AS double_stranded_cdna_id,
  13158. feature.*
  13159. FROM
  13160. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13161. WHERE cvterm.name = 'double_stranded_cDNA';
  13162. --- ************************************************
  13163. --- *** relation: pyrrolysyl_trna ***
  13164. --- *** relation type: VIEW ***
  13165. --- *** ***
  13166. --- *** A tRNA sequence that has a pyrrolysine a ***
  13167. --- *** nticodon, and a 3' pyrrolysine binding r ***
  13168. --- *** egion. ***
  13169. --- ************************************************
  13170. ---
  13171. CREATE VIEW pyrrolysyl_trna AS
  13172. SELECT
  13173. feature_id AS pyrrolysyl_trna_id,
  13174. feature.*
  13175. FROM
  13176. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13177. WHERE cvterm.name = 'pyrrolysyl_tRNA';
  13178. --- ************************************************
  13179. --- *** relation: episome ***
  13180. --- *** relation type: VIEW ***
  13181. --- *** ***
  13182. --- *** A plasmid that may integrate with a chro ***
  13183. --- *** mosome. ***
  13184. --- ************************************************
  13185. ---
  13186. CREATE VIEW episome AS
  13187. SELECT
  13188. feature_id AS episome_id,
  13189. feature.*
  13190. FROM
  13191. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13192. WHERE cvterm.name = 'engineered_episome' OR cvterm.name = 'episome';
  13193. --- ************************************************
  13194. --- *** relation: tmrna_coding_piece ***
  13195. --- *** relation type: VIEW ***
  13196. --- *** ***
  13197. --- *** The region of a two-piece tmRNA that bea ***
  13198. --- *** rs the reading frame encoding the proteo ***
  13199. --- *** lysis tag. The tmRNA gene undergoes circ ***
  13200. --- *** ular permutation in some groups of bacte ***
  13201. --- *** ria. Processing of the transcripts from ***
  13202. --- *** such a gene leaves the mature tmRNA in t ***
  13203. --- *** wo pieces, base-paired together. ***
  13204. --- ************************************************
  13205. ---
  13206. CREATE VIEW tmrna_coding_piece AS
  13207. SELECT
  13208. feature_id AS tmrna_coding_piece_id,
  13209. feature.*
  13210. FROM
  13211. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13212. WHERE cvterm.name = 'tmRNA_coding_piece';
  13213. --- ************************************************
  13214. --- *** relation: tmrna_acceptor_piece ***
  13215. --- *** relation type: VIEW ***
  13216. --- *** ***
  13217. --- *** The acceptor region of a two-piece tmRNA ***
  13218. --- *** that when mature is charged at its 3' e ***
  13219. --- *** nd with alanine. The tmRNA gene undergoe ***
  13220. --- *** s circular permutation in some groups of ***
  13221. --- *** bacteria; processing of the transcripts ***
  13222. --- *** from such a gene leaves the mature tmRN ***
  13223. --- *** A in two pieces, base-paired together. ***
  13224. --- ************************************************
  13225. ---
  13226. CREATE VIEW tmrna_acceptor_piece AS
  13227. SELECT
  13228. feature_id AS tmrna_acceptor_piece_id,
  13229. feature.*
  13230. FROM
  13231. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13232. WHERE cvterm.name = 'tmRNA_acceptor_piece';
  13233. --- ************************************************
  13234. --- *** relation: qtl ***
  13235. --- *** relation type: VIEW ***
  13236. --- *** ***
  13237. --- *** A quantitative trait locus (QTL) is a po ***
  13238. --- *** lymorphic locus which contains alleles t ***
  13239. --- *** hat differentially affect the expression ***
  13240. --- *** of a continuously distributed phenotypi ***
  13241. --- *** c trait. Usually it is a marker describe ***
  13242. --- *** d by statistical association to quantita ***
  13243. --- *** tive variation in the particular phenoty ***
  13244. --- *** pic trait that is thought to be controll ***
  13245. --- *** ed by the cumulative action of alleles a ***
  13246. --- *** t multiple loci. ***
  13247. --- ************************************************
  13248. ---
  13249. CREATE VIEW qtl AS
  13250. SELECT
  13251. feature_id AS qtl_id,
  13252. feature.*
  13253. FROM
  13254. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13255. WHERE cvterm.name = 'QTL';
  13256. --- ************************************************
  13257. --- *** relation: genomic_island ***
  13258. --- *** relation type: VIEW ***
  13259. --- *** ***
  13260. --- *** A genomic island is an integrated mobile ***
  13261. --- *** genetic element, characterized by size ***
  13262. --- *** (over 10 Kb). It that has features that ***
  13263. --- *** suggest a foreign origin. These can incl ***
  13264. --- *** ude nucleotide distribution (oligonucleo ***
  13265. --- *** tides signature, CG content etc.) that d ***
  13266. --- *** iffers from the bulk of the chromosome a ***
  13267. --- *** nd/or genes suggesting DNA mobility. ***
  13268. --- ************************************************
  13269. ---
  13270. CREATE VIEW genomic_island AS
  13271. SELECT
  13272. feature_id AS genomic_island_id,
  13273. feature.*
  13274. FROM
  13275. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13276. 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';
  13277. --- ************************************************
  13278. --- *** relation: pathogenic_island ***
  13279. --- *** relation type: VIEW ***
  13280. --- *** ***
  13281. --- *** Mobile genetic elements that contribute ***
  13282. --- *** to rapid changes in virulence potential. ***
  13283. --- *** They are present on the genomes of path ***
  13284. --- *** ogenic strains but absent from the genom ***
  13285. --- *** es of non pathogenic members of the same ***
  13286. --- *** or related species. ***
  13287. --- ************************************************
  13288. ---
  13289. CREATE VIEW pathogenic_island AS
  13290. SELECT
  13291. feature_id AS pathogenic_island_id,
  13292. feature.*
  13293. FROM
  13294. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13295. WHERE cvterm.name = 'pathogenic_island';
  13296. --- ************************************************
  13297. --- *** relation: metabolic_island ***
  13298. --- *** relation type: VIEW ***
  13299. --- *** ***
  13300. --- *** A transmissible element containing genes ***
  13301. --- *** involved in metabolism, analogous to th ***
  13302. --- *** e pathogenicity islands of gram negative ***
  13303. --- *** bacteria. ***
  13304. --- ************************************************
  13305. ---
  13306. CREATE VIEW metabolic_island AS
  13307. SELECT
  13308. feature_id AS metabolic_island_id,
  13309. feature.*
  13310. FROM
  13311. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13312. WHERE cvterm.name = 'metabolic_island';
  13313. --- ************************************************
  13314. --- *** relation: adaptive_island ***
  13315. --- *** relation type: VIEW ***
  13316. --- *** ***
  13317. --- *** An adaptive island is a genomic island t ***
  13318. --- *** hat provides an adaptive advantage to th ***
  13319. --- *** e host. ***
  13320. --- ************************************************
  13321. ---
  13322. CREATE VIEW adaptive_island AS
  13323. SELECT
  13324. feature_id AS adaptive_island_id,
  13325. feature.*
  13326. FROM
  13327. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13328. WHERE cvterm.name = 'adaptive_island';
  13329. --- ************************************************
  13330. --- *** relation: symbiosis_island ***
  13331. --- *** relation type: VIEW ***
  13332. --- *** ***
  13333. --- *** A transmissible element containing genes ***
  13334. --- *** involved in symbiosis, analogous to the ***
  13335. --- *** pathogenicity islands of gram negative ***
  13336. --- *** bacteria. ***
  13337. --- ************************************************
  13338. ---
  13339. CREATE VIEW symbiosis_island AS
  13340. SELECT
  13341. feature_id AS symbiosis_island_id,
  13342. feature.*
  13343. FROM
  13344. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13345. WHERE cvterm.name = 'symbiosis_island';
  13346. --- ************************************************
  13347. --- *** relation: pseudogenic_rrna ***
  13348. --- *** relation type: VIEW ***
  13349. --- *** ***
  13350. --- *** A non functional descendent of an rRNA. ***
  13351. --- ************************************************
  13352. ---
  13353. CREATE VIEW pseudogenic_rrna AS
  13354. SELECT
  13355. feature_id AS pseudogenic_rrna_id,
  13356. feature.*
  13357. FROM
  13358. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13359. WHERE cvterm.name = 'pseudogenic_rRNA';
  13360. --- ************************************************
  13361. --- *** relation: pseudogenic_trna ***
  13362. --- *** relation type: VIEW ***
  13363. --- *** ***
  13364. --- *** A non functional descendent of a tRNA. ***
  13365. --- ************************************************
  13366. ---
  13367. CREATE VIEW pseudogenic_trna AS
  13368. SELECT
  13369. feature_id AS pseudogenic_trna_id,
  13370. feature.*
  13371. FROM
  13372. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13373. WHERE cvterm.name = 'pseudogenic_tRNA';
  13374. --- ************************************************
  13375. --- *** relation: engineered_episome ***
  13376. --- *** relation type: VIEW ***
  13377. --- *** ***
  13378. --- *** An episome that is engineered. ***
  13379. --- ************************************************
  13380. ---
  13381. CREATE VIEW engineered_episome AS
  13382. SELECT
  13383. feature_id AS engineered_episome_id,
  13384. feature.*
  13385. FROM
  13386. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13387. WHERE cvterm.name = 'engineered_episome';
  13388. --- ************************************************
  13389. --- *** relation: transgenic ***
  13390. --- *** relation type: VIEW ***
  13391. --- *** ***
  13392. --- *** Attribute describing sequence that has b ***
  13393. --- *** een integrated with foreign sequence. ***
  13394. --- ************************************************
  13395. ---
  13396. CREATE VIEW transgenic AS
  13397. SELECT
  13398. feature_id AS transgenic_id,
  13399. feature.*
  13400. FROM
  13401. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13402. WHERE cvterm.name = 'transgenic';
  13403. --- ************************************************
  13404. --- *** relation: so_natural ***
  13405. --- *** relation type: VIEW ***
  13406. --- *** ***
  13407. --- *** An attribute describing a feature that o ***
  13408. --- *** ccurs in nature. ***
  13409. --- ************************************************
  13410. ---
  13411. CREATE VIEW so_natural AS
  13412. SELECT
  13413. feature_id AS so_natural_id,
  13414. feature.*
  13415. FROM
  13416. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13417. WHERE cvterm.name = 'natural';
  13418. --- ************************************************
  13419. --- *** relation: engineered ***
  13420. --- *** relation type: VIEW ***
  13421. --- *** ***
  13422. --- *** An attribute to describe a region that w ***
  13423. --- *** as modified in vitro. ***
  13424. --- ************************************************
  13425. ---
  13426. CREATE VIEW engineered AS
  13427. SELECT
  13428. feature_id AS engineered_id,
  13429. feature.*
  13430. FROM
  13431. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13432. WHERE cvterm.name = 'engineered';
  13433. --- ************************************************
  13434. --- *** relation: so_foreign ***
  13435. --- *** relation type: VIEW ***
  13436. --- *** ***
  13437. --- *** An attribute to describe a region from a ***
  13438. --- *** nother species. ***
  13439. --- ************************************************
  13440. ---
  13441. CREATE VIEW so_foreign AS
  13442. SELECT
  13443. feature_id AS so_foreign_id,
  13444. feature.*
  13445. FROM
  13446. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13447. WHERE cvterm.name = 'foreign';
  13448. --- ************************************************
  13449. --- *** relation: cloned_region ***
  13450. --- *** relation type: VIEW ***
  13451. --- *** ***
  13452. --- ************************************************
  13453. ---
  13454. CREATE VIEW cloned_region AS
  13455. SELECT
  13456. feature_id AS cloned_region_id,
  13457. feature.*
  13458. FROM
  13459. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13460. WHERE cvterm.name = 'cloned_region';
  13461. --- ************************************************
  13462. --- *** relation: validated ***
  13463. --- *** relation type: VIEW ***
  13464. --- *** ***
  13465. --- *** An attribute to describe a feature that ***
  13466. --- *** has been proven. ***
  13467. --- ************************************************
  13468. ---
  13469. CREATE VIEW validated AS
  13470. SELECT
  13471. feature_id AS validated_id,
  13472. feature.*
  13473. FROM
  13474. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13475. WHERE cvterm.name = 'experimentally_determined' OR cvterm.name = 'validated';
  13476. --- ************************************************
  13477. --- *** relation: invalidated ***
  13478. --- *** relation type: VIEW ***
  13479. --- *** ***
  13480. --- *** An attribute describing a feature that i ***
  13481. --- *** s invalidated. ***
  13482. --- ************************************************
  13483. ---
  13484. CREATE VIEW invalidated AS
  13485. SELECT
  13486. feature_id AS invalidated_id,
  13487. feature.*
  13488. FROM
  13489. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13490. 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';
  13491. --- ************************************************
  13492. --- *** relation: engineered_rescue_region ***
  13493. --- *** relation type: VIEW ***
  13494. --- *** ***
  13495. --- *** A rescue region that is engineered. ***
  13496. --- ************************************************
  13497. ---
  13498. CREATE VIEW engineered_rescue_region AS
  13499. SELECT
  13500. feature_id AS engineered_rescue_region_id,
  13501. feature.*
  13502. FROM
  13503. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13504. WHERE cvterm.name = 'engineered_rescue_region';
  13505. --- ************************************************
  13506. --- *** relation: rescue_mini_gene ***
  13507. --- *** relation type: VIEW ***
  13508. --- *** ***
  13509. --- *** A mini_gene that rescues. ***
  13510. --- ************************************************
  13511. ---
  13512. CREATE VIEW rescue_mini_gene AS
  13513. SELECT
  13514. feature_id AS rescue_mini_gene_id,
  13515. feature.*
  13516. FROM
  13517. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13518. WHERE cvterm.name = 'rescue_mini_gene';
  13519. --- ************************************************
  13520. --- *** relation: transgenic_transposable_element ***
  13521. --- *** relation type: VIEW ***
  13522. --- *** ***
  13523. --- *** TE that has been modified in vitro, incl ***
  13524. --- *** uding insertion of DNA derived from a so ***
  13525. --- *** urce other than the originating TE. ***
  13526. --- ************************************************
  13527. ---
  13528. CREATE VIEW transgenic_transposable_element AS
  13529. SELECT
  13530. feature_id AS transgenic_transposable_element_id,
  13531. feature.*
  13532. FROM
  13533. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13534. WHERE cvterm.name = 'transgenic_transposable_element';
  13535. --- ************************************************
  13536. --- *** relation: natural_transposable_element ***
  13537. --- *** relation type: VIEW ***
  13538. --- *** ***
  13539. --- *** TE that exists (or existed) in nature. ***
  13540. --- ************************************************
  13541. ---
  13542. CREATE VIEW natural_transposable_element AS
  13543. SELECT
  13544. feature_id AS natural_transposable_element_id,
  13545. feature.*
  13546. FROM
  13547. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13548. WHERE cvterm.name = 'natural_transposable_element';
  13549. --- ************************************************
  13550. --- *** relation: engineered_transposable_element ***
  13551. --- *** relation type: VIEW ***
  13552. --- *** ***
  13553. --- *** TE that has been modified by manipulatio ***
  13554. --- *** ns in vitro. ***
  13555. --- ************************************************
  13556. ---
  13557. CREATE VIEW engineered_transposable_element AS
  13558. SELECT
  13559. feature_id AS engineered_transposable_element_id,
  13560. feature.*
  13561. FROM
  13562. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13563. WHERE cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_transposable_element';
  13564. --- ************************************************
  13565. --- *** relation: engineered_foreign_transposable_element ***
  13566. --- *** relation type: VIEW ***
  13567. --- *** ***
  13568. --- *** A transposable_element that is engineere ***
  13569. --- *** d and foreign. ***
  13570. --- ************************************************
  13571. ---
  13572. CREATE VIEW engineered_foreign_transposable_element AS
  13573. SELECT
  13574. feature_id AS engineered_foreign_transposable_element_id,
  13575. feature.*
  13576. FROM
  13577. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13578. WHERE cvterm.name = 'engineered_foreign_transposable_element';
  13579. --- ************************************************
  13580. --- *** relation: assortment_derived_duplication ***
  13581. --- *** relation type: VIEW ***
  13582. --- *** ***
  13583. --- *** A multi-chromosome duplication aberratio ***
  13584. --- *** n generated by reassortment of other abe ***
  13585. --- *** rration components. ***
  13586. --- ************************************************
  13587. ---
  13588. CREATE VIEW assortment_derived_duplication AS
  13589. SELECT
  13590. feature_id AS assortment_derived_duplication_id,
  13591. feature.*
  13592. FROM
  13593. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13594. WHERE cvterm.name = 'assortment_derived_duplication';
  13595. --- ************************************************
  13596. --- *** relation: assortment_derived_deficiency_plus_duplication ***
  13597. --- *** relation type: VIEW ***
  13598. --- *** ***
  13599. --- *** A multi-chromosome aberration generated ***
  13600. --- *** by reassortment of other aberration comp ***
  13601. --- *** onents; presumed to have a deficiency an ***
  13602. --- *** d a duplication. ***
  13603. --- ************************************************
  13604. ---
  13605. CREATE VIEW assortment_derived_deficiency_plus_duplication AS
  13606. SELECT
  13607. feature_id AS assortment_derived_deficiency_plus_duplication_id,
  13608. feature.*
  13609. FROM
  13610. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13611. WHERE cvterm.name = 'assortment_derived_deficiency_plus_duplication';
  13612. --- ************************************************
  13613. --- *** relation: assortment_derived_deficiency ***
  13614. --- *** relation type: VIEW ***
  13615. --- *** ***
  13616. --- *** A multi-chromosome deficiency aberration ***
  13617. --- *** generated by reassortment of other aber ***
  13618. --- *** ration components. ***
  13619. --- ************************************************
  13620. ---
  13621. CREATE VIEW assortment_derived_deficiency AS
  13622. SELECT
  13623. feature_id AS assortment_derived_deficiency_id,
  13624. feature.*
  13625. FROM
  13626. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13627. WHERE cvterm.name = 'assortment_derived_deficiency';
  13628. --- ************************************************
  13629. --- *** relation: assortment_derived_aneuploid ***
  13630. --- *** relation type: VIEW ***
  13631. --- *** ***
  13632. --- *** A multi-chromosome aberration generated ***
  13633. --- *** by reassortment of other aberration comp ***
  13634. --- *** onents; presumed to have a deficiency or ***
  13635. --- *** a duplication. ***
  13636. --- ************************************************
  13637. ---
  13638. CREATE VIEW assortment_derived_aneuploid AS
  13639. SELECT
  13640. feature_id AS assortment_derived_aneuploid_id,
  13641. feature.*
  13642. FROM
  13643. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13644. WHERE cvterm.name = 'assortment_derived_aneuploid';
  13645. --- ************************************************
  13646. --- *** relation: engineered_region ***
  13647. --- *** relation type: VIEW ***
  13648. --- *** ***
  13649. --- *** A region that is engineered. ***
  13650. --- ************************************************
  13651. ---
  13652. CREATE VIEW engineered_region AS
  13653. SELECT
  13654. feature_id AS engineered_region_id,
  13655. feature.*
  13656. FROM
  13657. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13658. 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 = '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';
  13659. --- ************************************************
  13660. --- *** relation: engineered_foreign_region ***
  13661. --- *** relation type: VIEW ***
  13662. --- *** ***
  13663. --- *** A region that is engineered and foreign. ***
  13664. --- ************************************************
  13665. ---
  13666. CREATE VIEW engineered_foreign_region AS
  13667. SELECT
  13668. feature_id AS engineered_foreign_region_id,
  13669. feature.*
  13670. FROM
  13671. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13672. 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';
  13673. --- ************************************************
  13674. --- *** relation: fusion ***
  13675. --- *** relation type: VIEW ***
  13676. --- *** ***
  13677. --- ************************************************
  13678. ---
  13679. CREATE VIEW fusion AS
  13680. SELECT
  13681. feature_id AS fusion_id,
  13682. feature.*
  13683. FROM
  13684. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13685. WHERE cvterm.name = 'fusion';
  13686. --- ************************************************
  13687. --- *** relation: engineered_tag ***
  13688. --- *** relation type: VIEW ***
  13689. --- *** ***
  13690. --- *** A tag that is engineered. ***
  13691. --- ************************************************
  13692. ---
  13693. CREATE VIEW engineered_tag AS
  13694. SELECT
  13695. feature_id AS engineered_tag_id,
  13696. feature.*
  13697. FROM
  13698. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13699. WHERE cvterm.name = 'engineered_tag';
  13700. --- ************************************************
  13701. --- *** relation: validated_cdna_clone ***
  13702. --- *** relation type: VIEW ***
  13703. --- *** ***
  13704. --- *** A cDNA clone that has been validated. ***
  13705. --- ************************************************
  13706. ---
  13707. CREATE VIEW validated_cdna_clone AS
  13708. SELECT
  13709. feature_id AS validated_cdna_clone_id,
  13710. feature.*
  13711. FROM
  13712. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13713. WHERE cvterm.name = 'validated_cDNA_clone';
  13714. --- ************************************************
  13715. --- *** relation: invalidated_cdna_clone ***
  13716. --- *** relation type: VIEW ***
  13717. --- *** ***
  13718. --- *** A cDNA clone that is invalid. ***
  13719. --- ************************************************
  13720. ---
  13721. CREATE VIEW invalidated_cdna_clone AS
  13722. SELECT
  13723. feature_id AS invalidated_cdna_clone_id,
  13724. feature.*
  13725. FROM
  13726. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13727. 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';
  13728. --- ************************************************
  13729. --- *** relation: chimeric_cdna_clone ***
  13730. --- *** relation type: VIEW ***
  13731. --- *** ***
  13732. --- *** A cDNA clone invalidated because it is c ***
  13733. --- *** himeric. ***
  13734. --- ************************************************
  13735. ---
  13736. CREATE VIEW chimeric_cdna_clone AS
  13737. SELECT
  13738. feature_id AS chimeric_cdna_clone_id,
  13739. feature.*
  13740. FROM
  13741. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13742. WHERE cvterm.name = 'chimeric_cDNA_clone';
  13743. --- ************************************************
  13744. --- *** relation: genomically_contaminated_cdna_clone ***
  13745. --- *** relation type: VIEW ***
  13746. --- *** ***
  13747. --- *** A cDNA clone invalidated by genomic cont ***
  13748. --- *** amination. ***
  13749. --- ************************************************
  13750. ---
  13751. CREATE VIEW genomically_contaminated_cdna_clone AS
  13752. SELECT
  13753. feature_id AS genomically_contaminated_cdna_clone_id,
  13754. feature.*
  13755. FROM
  13756. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13757. WHERE cvterm.name = 'genomically_contaminated_cDNA_clone';
  13758. --- ************************************************
  13759. --- *** relation: polya_primed_cdna_clone ***
  13760. --- *** relation type: VIEW ***
  13761. --- *** ***
  13762. --- *** A cDNA clone invalidated by polyA primin ***
  13763. --- *** g. ***
  13764. --- ************************************************
  13765. ---
  13766. CREATE VIEW polya_primed_cdna_clone AS
  13767. SELECT
  13768. feature_id AS polya_primed_cdna_clone_id,
  13769. feature.*
  13770. FROM
  13771. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13772. WHERE cvterm.name = 'polyA_primed_cDNA_clone';
  13773. --- ************************************************
  13774. --- *** relation: partially_processed_cdna_clone ***
  13775. --- *** relation type: VIEW ***
  13776. --- *** ***
  13777. --- *** A cDNA invalidated clone by partial proc ***
  13778. --- *** essing. ***
  13779. --- ************************************************
  13780. ---
  13781. CREATE VIEW partially_processed_cdna_clone AS
  13782. SELECT
  13783. feature_id AS partially_processed_cdna_clone_id,
  13784. feature.*
  13785. FROM
  13786. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13787. WHERE cvterm.name = 'partially_processed_cDNA_clone';
  13788. --- ************************************************
  13789. --- *** relation: rescue ***
  13790. --- *** relation type: VIEW ***
  13791. --- *** ***
  13792. --- *** An attribute describing a region's abili ***
  13793. --- *** ty, when introduced to a mutant organism ***
  13794. --- *** , to re-establish (rescue) a phenotype. ***
  13795. --- ************************************************
  13796. ---
  13797. CREATE VIEW rescue AS
  13798. SELECT
  13799. feature_id AS rescue_id,
  13800. feature.*
  13801. FROM
  13802. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13803. WHERE cvterm.name = 'rescue';
  13804. --- ************************************************
  13805. --- *** relation: mini_gene ***
  13806. --- *** relation type: VIEW ***
  13807. --- *** ***
  13808. --- *** By definition, minigenes are short open- ***
  13809. --- *** reading frames (ORF), usually encoding a ***
  13810. --- *** pproximately 9 to 20 amino acids, which ***
  13811. --- *** are expressed in vivo (as distinct from ***
  13812. --- *** being synthesized as peptide or protein ***
  13813. --- *** ex vivo and subsequently injected). The ***
  13814. --- *** in vivo synthesis confers a distinct adv ***
  13815. --- *** antage: the expressed sequences can ente ***
  13816. --- *** r both antigen presentation pathways, MH ***
  13817. --- *** C I (inducing CD8+ T- cells, which are u ***
  13818. --- *** sually cytotoxic T-lymphocytes (CTL)) an ***
  13819. --- *** d MHC II (inducing CD4+ T-cells, usually ***
  13820. --- *** 'T-helpers' (Th)); and can encounter B- ***
  13821. --- *** cells, inducing antibody responses. Thre ***
  13822. --- *** e main vector approaches have been used ***
  13823. --- *** to deliver minigenes: viral vectors, bac ***
  13824. --- *** terial vectors and plasmid DNA. ***
  13825. --- ************************************************
  13826. ---
  13827. CREATE VIEW mini_gene AS
  13828. SELECT
  13829. feature_id AS mini_gene_id,
  13830. feature.*
  13831. FROM
  13832. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13833. WHERE cvterm.name = 'rescue_mini_gene' OR cvterm.name = 'mini_gene';
  13834. --- ************************************************
  13835. --- *** relation: rescue_gene ***
  13836. --- *** relation type: VIEW ***
  13837. --- *** ***
  13838. --- *** A gene that rescues. ***
  13839. --- ************************************************
  13840. ---
  13841. CREATE VIEW rescue_gene AS
  13842. SELECT
  13843. feature_id AS rescue_gene_id,
  13844. feature.*
  13845. FROM
  13846. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13847. WHERE cvterm.name = 'wild_type_rescue_gene' OR cvterm.name = 'rescue_gene';
  13848. --- ************************************************
  13849. --- *** relation: wild_type ***
  13850. --- *** relation type: VIEW ***
  13851. --- *** ***
  13852. --- *** An attribute describing sequence with th ***
  13853. --- *** e genotype found in nature and/or standa ***
  13854. --- *** rd laboratory stock. ***
  13855. --- ************************************************
  13856. ---
  13857. CREATE VIEW wild_type AS
  13858. SELECT
  13859. feature_id AS wild_type_id,
  13860. feature.*
  13861. FROM
  13862. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13863. WHERE cvterm.name = 'wild_type';
  13864. --- ************************************************
  13865. --- *** relation: wild_type_rescue_gene ***
  13866. --- *** relation type: VIEW ***
  13867. --- *** ***
  13868. --- *** A gene that rescues. ***
  13869. --- ************************************************
  13870. ---
  13871. CREATE VIEW wild_type_rescue_gene AS
  13872. SELECT
  13873. feature_id AS wild_type_rescue_gene_id,
  13874. feature.*
  13875. FROM
  13876. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13877. WHERE cvterm.name = 'wild_type_rescue_gene';
  13878. --- ************************************************
  13879. --- *** relation: mitochondrial_chromosome ***
  13880. --- *** relation type: VIEW ***
  13881. --- *** ***
  13882. --- *** A chromosome originating in a mitochondr ***
  13883. --- *** ia. ***
  13884. --- ************************************************
  13885. ---
  13886. CREATE VIEW mitochondrial_chromosome AS
  13887. SELECT
  13888. feature_id AS mitochondrial_chromosome_id,
  13889. feature.*
  13890. FROM
  13891. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13892. WHERE cvterm.name = 'mitochondrial_chromosome';
  13893. --- ************************************************
  13894. --- *** relation: chloroplast_chromosome ***
  13895. --- *** relation type: VIEW ***
  13896. --- *** ***
  13897. --- *** A chromosome originating in a chloroplas ***
  13898. --- *** t. ***
  13899. --- ************************************************
  13900. ---
  13901. CREATE VIEW chloroplast_chromosome AS
  13902. SELECT
  13903. feature_id AS chloroplast_chromosome_id,
  13904. feature.*
  13905. FROM
  13906. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13907. WHERE cvterm.name = 'chloroplast_chromosome';
  13908. --- ************************************************
  13909. --- *** relation: chromoplast_chromosome ***
  13910. --- *** relation type: VIEW ***
  13911. --- *** ***
  13912. --- *** A chromosome originating in a chromoplas ***
  13913. --- *** t. ***
  13914. --- ************************************************
  13915. ---
  13916. CREATE VIEW chromoplast_chromosome AS
  13917. SELECT
  13918. feature_id AS chromoplast_chromosome_id,
  13919. feature.*
  13920. FROM
  13921. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13922. WHERE cvterm.name = 'chromoplast_chromosome';
  13923. --- ************************************************
  13924. --- *** relation: cyanelle_chromosome ***
  13925. --- *** relation type: VIEW ***
  13926. --- *** ***
  13927. --- *** A chromosome originating in a cyanelle. ***
  13928. --- ************************************************
  13929. ---
  13930. CREATE VIEW cyanelle_chromosome AS
  13931. SELECT
  13932. feature_id AS cyanelle_chromosome_id,
  13933. feature.*
  13934. FROM
  13935. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13936. WHERE cvterm.name = 'cyanelle_chromosome';
  13937. --- ************************************************
  13938. --- *** relation: leucoplast_chromosome ***
  13939. --- *** relation type: VIEW ***
  13940. --- *** ***
  13941. --- *** A chromosome with origin in a leucoplast ***
  13942. --- *** . ***
  13943. --- ************************************************
  13944. ---
  13945. CREATE VIEW leucoplast_chromosome AS
  13946. SELECT
  13947. feature_id AS leucoplast_chromosome_id,
  13948. feature.*
  13949. FROM
  13950. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13951. WHERE cvterm.name = 'leucoplast_chromosome';
  13952. --- ************************************************
  13953. --- *** relation: macronuclear_chromosome ***
  13954. --- *** relation type: VIEW ***
  13955. --- *** ***
  13956. --- *** A chromosome originating in a macronucle ***
  13957. --- *** us. ***
  13958. --- ************************************************
  13959. ---
  13960. CREATE VIEW macronuclear_chromosome AS
  13961. SELECT
  13962. feature_id AS macronuclear_chromosome_id,
  13963. feature.*
  13964. FROM
  13965. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13966. WHERE cvterm.name = 'macronuclear_chromosome';
  13967. --- ************************************************
  13968. --- *** relation: micronuclear_chromosome ***
  13969. --- *** relation type: VIEW ***
  13970. --- *** ***
  13971. --- *** A chromosome originating in a micronucle ***
  13972. --- *** us. ***
  13973. --- ************************************************
  13974. ---
  13975. CREATE VIEW micronuclear_chromosome AS
  13976. SELECT
  13977. feature_id AS micronuclear_chromosome_id,
  13978. feature.*
  13979. FROM
  13980. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13981. WHERE cvterm.name = 'micronuclear_chromosome';
  13982. --- ************************************************
  13983. --- *** relation: nuclear_chromosome ***
  13984. --- *** relation type: VIEW ***
  13985. --- *** ***
  13986. --- *** A chromosome originating in a nucleus. ***
  13987. --- ************************************************
  13988. ---
  13989. CREATE VIEW nuclear_chromosome AS
  13990. SELECT
  13991. feature_id AS nuclear_chromosome_id,
  13992. feature.*
  13993. FROM
  13994. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13995. WHERE cvterm.name = 'nuclear_chromosome';
  13996. --- ************************************************
  13997. --- *** relation: nucleomorphic_chromosome ***
  13998. --- *** relation type: VIEW ***
  13999. --- *** ***
  14000. --- *** A chromosome originating in a nucleomorp ***
  14001. --- *** h. ***
  14002. --- ************************************************
  14003. ---
  14004. CREATE VIEW nucleomorphic_chromosome AS
  14005. SELECT
  14006. feature_id AS nucleomorphic_chromosome_id,
  14007. feature.*
  14008. FROM
  14009. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14010. WHERE cvterm.name = 'nucleomorphic_chromosome';
  14011. --- ************************************************
  14012. --- *** relation: chromosome_part ***
  14013. --- *** relation type: VIEW ***
  14014. --- *** ***
  14015. --- *** A region of a chromosome. ***
  14016. --- ************************************************
  14017. ---
  14018. CREATE VIEW chromosome_part AS
  14019. SELECT
  14020. feature_id AS chromosome_part_id,
  14021. feature.*
  14022. FROM
  14023. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14024. 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 = 'chromosome_part';
  14025. --- ************************************************
  14026. --- *** relation: gene_member_region ***
  14027. --- *** relation type: VIEW ***
  14028. --- *** ***
  14029. --- *** A region of a gene. ***
  14030. --- ************************************************
  14031. ---
  14032. CREATE VIEW gene_member_region AS
  14033. SELECT
  14034. feature_id AS gene_member_region_id,
  14035. feature.*
  14036. FROM
  14037. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14038. 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 = '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 = '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 = '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 = '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 = 'edited_transcript_by_A_to_I_substitution' OR cvterm.name = 'attenuator' 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 = '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 = 'INR_motif' OR cvterm.name = 'DPE_motif' OR cvterm.name = 'BRE_motif' OR cvterm.name = 'CAAT_signal' OR cvterm.name = 'TATA_box' OR cvterm.name = 'A_box' OR cvterm.name = 'B_box' OR cvterm.name = 'C_box' OR cvterm.name = 'DRE_motif' OR cvterm.name = 'E_box_motif' OR cvterm.name = 'MTE' OR cvterm.name = 'INR1_motif' OR cvterm.name = 'GAGA_motif' OR cvterm.name = 'octamer_motif' OR cvterm.name = 'operator' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'bacterial_terminator' 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 = '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_III_promoter_type_1' OR cvterm.name = 'RNApol_III_promoter_type_2' OR cvterm.name = 'RNApol_III_promoter_type_3' 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 = 'RNApol_II_promoter' OR cvterm.name = 'RNApol_III_promoter' OR cvterm.name = 'silencer' OR cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' 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 = 'splice_enhancer' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' OR cvterm.name = 'gene_member_region';
  14039. --- ************************************************
  14040. --- *** relation: transcript_region ***
  14041. --- *** relation type: VIEW ***
  14042. --- *** ***
  14043. --- *** A region of a transcript. ***
  14044. --- ************************************************
  14045. ---
  14046. CREATE VIEW transcript_region AS
  14047. SELECT
  14048. feature_id AS transcript_region_id,
  14049. feature.*
  14050. FROM
  14051. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14052. 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 = 'UTR' OR cvterm.name = 'CDS' OR cvterm.name = 'codon' 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 = '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 = '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 = 'ribosome_entry_site' OR cvterm.name = 'polyA_site' 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 = 'internal_ribosome_entry_site' OR cvterm.name = 'Shine_Dalgarno_sequence' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'coding_start' OR cvterm.name = 'coding_end' 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 = '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 = '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';
  14053. --- ************************************************
  14054. --- *** relation: mature_transcript_region ***
  14055. --- *** relation type: VIEW ***
  14056. --- *** ***
  14057. --- *** A region of a mature transcript. ***
  14058. --- ************************************************
  14059. ---
  14060. CREATE VIEW mature_transcript_region AS
  14061. SELECT
  14062. feature_id AS mature_transcript_region_id,
  14063. feature.*
  14064. FROM
  14065. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14066. 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 = 'UTR' OR cvterm.name = 'CDS' OR cvterm.name = 'codon' 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 = '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 = '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 = 'ribosome_entry_site' OR cvterm.name = 'polyA_site' 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 = 'internal_ribosome_entry_site' OR cvterm.name = 'Shine_Dalgarno_sequence' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'coding_start' OR cvterm.name = 'coding_end' 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';
  14067. --- ************************************************
  14068. --- *** relation: primary_transcript_region ***
  14069. --- *** relation type: VIEW ***
  14070. --- *** ***
  14071. --- *** A part of a primary transcript. ***
  14072. --- ************************************************
  14073. ---
  14074. CREATE VIEW primary_transcript_region AS
  14075. SELECT
  14076. feature_id AS primary_transcript_region_id,
  14077. feature.*
  14078. FROM
  14079. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14080. 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 = '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 = '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';
  14081. --- ************************************************
  14082. --- *** relation: mrna_region ***
  14083. --- *** relation type: VIEW ***
  14084. --- *** ***
  14085. --- *** A region of an mRNA. ***
  14086. --- ************************************************
  14087. ---
  14088. CREATE VIEW mrna_region AS
  14089. SELECT
  14090. feature_id AS mrna_region_id,
  14091. feature.*
  14092. FROM
  14093. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14094. WHERE cvterm.name = 'riboswitch' OR cvterm.name = 'UTR' OR cvterm.name = 'CDS' OR cvterm.name = 'codon' 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 = '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 = '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 = 'ribosome_entry_site' OR cvterm.name = 'polyA_site' 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 = 'internal_ribosome_entry_site' OR cvterm.name = 'Shine_Dalgarno_sequence' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'coding_start' OR cvterm.name = 'coding_end' 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';
  14095. --- ************************************************
  14096. --- *** relation: utr_region ***
  14097. --- *** relation type: VIEW ***
  14098. --- *** ***
  14099. --- *** A region of UTR. ***
  14100. --- ************************************************
  14101. ---
  14102. CREATE VIEW utr_region AS
  14103. SELECT
  14104. feature_id AS utr_region_id,
  14105. feature.*
  14106. FROM
  14107. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14108. WHERE cvterm.name = 'ribosome_entry_site' OR cvterm.name = 'polyA_site' 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 = 'internal_ribosome_entry_site' OR cvterm.name = 'Shine_Dalgarno_sequence' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'UTR_region';
  14109. --- ************************************************
  14110. --- *** relation: rrna_primary_transcript_region ***
  14111. --- *** relation type: VIEW ***
  14112. --- *** ***
  14113. --- *** A region of an rRNA primary transcript. ***
  14114. --- ************************************************
  14115. ---
  14116. CREATE VIEW rrna_primary_transcript_region AS
  14117. SELECT
  14118. feature_id AS rrna_primary_transcript_region_id,
  14119. feature.*
  14120. FROM
  14121. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14122. 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';
  14123. --- ************************************************
  14124. --- *** relation: polypeptide_region ***
  14125. --- *** relation type: VIEW ***
  14126. --- *** ***
  14127. --- *** Biological sequence region that can be a ***
  14128. --- *** ssigned to a specific subsequence of a p ***
  14129. --- *** olypeptide. ***
  14130. --- ************************************************
  14131. ---
  14132. CREATE VIEW polypeptide_region AS
  14133. SELECT
  14134. feature_id AS polypeptide_region_id,
  14135. feature.*
  14136. FROM
  14137. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14138. 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 = '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 = 'cleaved_initiator_methionine' OR cvterm.name = 'transit_peptide' 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 = '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';
  14139. --- ************************************************
  14140. --- *** relation: repeat_component ***
  14141. --- *** relation type: VIEW ***
  14142. --- *** ***
  14143. --- *** A region of a repeated sequence. ***
  14144. --- ************************************************
  14145. ---
  14146. CREATE VIEW repeat_component AS
  14147. SELECT
  14148. feature_id AS repeat_component_id,
  14149. feature.*
  14150. FROM
  14151. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14152. WHERE cvterm.name = 'non_LTR_retrotransposon_polymeric_tract' OR cvterm.name = 'LTR_component' OR cvterm.name = 'repeat_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';
  14153. --- ************************************************
  14154. --- *** relation: spliceosomal_intron_region ***
  14155. --- *** relation type: VIEW ***
  14156. --- *** ***
  14157. --- *** A region within an intron. ***
  14158. --- ************************************************
  14159. ---
  14160. CREATE VIEW spliceosomal_intron_region AS
  14161. SELECT
  14162. feature_id AS spliceosomal_intron_region_id,
  14163. feature.*
  14164. FROM
  14165. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14166. WHERE cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'branch_site' OR cvterm.name = 'polypyrimidine_tract' OR cvterm.name = 'spliceosomal_intron_region';
  14167. --- ************************************************
  14168. --- *** relation: gene_component_region ***
  14169. --- *** relation type: VIEW ***
  14170. --- *** ***
  14171. --- ************************************************
  14172. ---
  14173. CREATE VIEW gene_component_region AS
  14174. SELECT
  14175. feature_id AS gene_component_region_id,
  14176. feature.*
  14177. FROM
  14178. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14179. WHERE cvterm.name = 'non_transcribed_region' OR cvterm.name = 'gene_fragment' OR cvterm.name = 'TSS_region' OR cvterm.name = 'gene_segment' OR cvterm.name = 'gene_component_region';
  14180. --- ************************************************
  14181. --- *** relation: tmrna_region ***
  14182. --- *** relation type: VIEW ***
  14183. --- *** ***
  14184. --- *** A region of a tmRNA. ***
  14185. --- ************************************************
  14186. ---
  14187. CREATE VIEW tmrna_region AS
  14188. SELECT
  14189. feature_id AS tmrna_region_id,
  14190. feature.*
  14191. FROM
  14192. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14193. WHERE cvterm.name = 'tmRNA_coding_piece' OR cvterm.name = 'tmRNA_acceptor_piece' OR cvterm.name = 'tmRNA_region';
  14194. --- ************************************************
  14195. --- *** relation: ltr_component ***
  14196. --- *** relation type: VIEW ***
  14197. --- *** ***
  14198. --- ************************************************
  14199. ---
  14200. CREATE VIEW ltr_component AS
  14201. SELECT
  14202. feature_id AS ltr_component_id,
  14203. feature.*
  14204. FROM
  14205. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14206. 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';
  14207. --- ************************************************
  14208. --- *** relation: three_prime_ltr_component ***
  14209. --- *** relation type: VIEW ***
  14210. --- *** ***
  14211. --- ************************************************
  14212. ---
  14213. CREATE VIEW three_prime_ltr_component AS
  14214. SELECT
  14215. feature_id AS three_prime_ltr_component_id,
  14216. feature.*
  14217. FROM
  14218. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14219. 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';
  14220. --- ************************************************
  14221. --- *** relation: five_prime_ltr_component ***
  14222. --- *** relation type: VIEW ***
  14223. --- *** ***
  14224. --- ************************************************
  14225. ---
  14226. CREATE VIEW five_prime_ltr_component AS
  14227. SELECT
  14228. feature_id AS five_prime_ltr_component_id,
  14229. feature.*
  14230. FROM
  14231. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14232. 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';
  14233. --- ************************************************
  14234. --- *** relation: cds_region ***
  14235. --- *** relation type: VIEW ***
  14236. --- *** ***
  14237. --- *** A region of a CDS. ***
  14238. --- ************************************************
  14239. ---
  14240. CREATE VIEW cds_region AS
  14241. SELECT
  14242. feature_id AS cds_region_id,
  14243. feature.*
  14244. FROM
  14245. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14246. WHERE cvterm.name = 'coding_start' OR cvterm.name = 'coding_end' OR cvterm.name = 'CDS_region';
  14247. --- ************************************************
  14248. --- *** relation: exon_region ***
  14249. --- *** relation type: VIEW ***
  14250. --- *** ***
  14251. --- *** A region of an exon. ***
  14252. --- ************************************************
  14253. ---
  14254. CREATE VIEW exon_region AS
  14255. SELECT
  14256. feature_id AS exon_region_id,
  14257. feature.*
  14258. FROM
  14259. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14260. 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';
  14261. --- ************************************************
  14262. --- *** relation: homologous_region ***
  14263. --- *** relation type: VIEW ***
  14264. --- *** ***
  14265. --- *** A region that is homologous to another r ***
  14266. --- *** egion. ***
  14267. --- ************************************************
  14268. ---
  14269. CREATE VIEW homologous_region AS
  14270. SELECT
  14271. feature_id AS homologous_region_id,
  14272. feature.*
  14273. FROM
  14274. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14275. WHERE cvterm.name = 'paralogous_region' OR cvterm.name = 'orthologous_region' OR cvterm.name = 'homologous_region';
  14276. --- ************************************************
  14277. --- *** relation: paralogous_region ***
  14278. --- *** relation type: VIEW ***
  14279. --- *** ***
  14280. --- *** A homologous_region that is paralogous t ***
  14281. --- *** o another region. ***
  14282. --- ************************************************
  14283. ---
  14284. CREATE VIEW paralogous_region AS
  14285. SELECT
  14286. feature_id AS paralogous_region_id,
  14287. feature.*
  14288. FROM
  14289. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14290. WHERE cvterm.name = 'paralogous_region';
  14291. --- ************************************************
  14292. --- *** relation: orthologous_region ***
  14293. --- *** relation type: VIEW ***
  14294. --- *** ***
  14295. --- *** A homologous_region that is orthologous ***
  14296. --- *** to another region. ***
  14297. --- ************************************************
  14298. ---
  14299. CREATE VIEW orthologous_region AS
  14300. SELECT
  14301. feature_id AS orthologous_region_id,
  14302. feature.*
  14303. FROM
  14304. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14305. WHERE cvterm.name = 'orthologous_region';
  14306. --- ************************************************
  14307. --- *** relation: conserved ***
  14308. --- *** relation type: VIEW ***
  14309. --- *** ***
  14310. --- ************************************************
  14311. ---
  14312. CREATE VIEW conserved AS
  14313. SELECT
  14314. feature_id AS conserved_id,
  14315. feature.*
  14316. FROM
  14317. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14318. WHERE cvterm.name = 'homologous' OR cvterm.name = 'syntenic' OR cvterm.name = 'orthologous' OR cvterm.name = 'paralogous' OR cvterm.name = 'conserved';
  14319. --- ************************************************
  14320. --- *** relation: homologous ***
  14321. --- *** relation type: VIEW ***
  14322. --- *** ***
  14323. --- *** Similarity due to common ancestry. ***
  14324. --- ************************************************
  14325. ---
  14326. CREATE VIEW homologous AS
  14327. SELECT
  14328. feature_id AS homologous_id,
  14329. feature.*
  14330. FROM
  14331. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14332. WHERE cvterm.name = 'orthologous' OR cvterm.name = 'paralogous' OR cvterm.name = 'homologous';
  14333. --- ************************************************
  14334. --- *** relation: orthologous ***
  14335. --- *** relation type: VIEW ***
  14336. --- *** ***
  14337. --- *** An attribute describing a kind of homolo ***
  14338. --- *** gy where divergence occured after a spec ***
  14339. --- *** iation event. ***
  14340. --- ************************************************
  14341. ---
  14342. CREATE VIEW orthologous AS
  14343. SELECT
  14344. feature_id AS orthologous_id,
  14345. feature.*
  14346. FROM
  14347. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14348. WHERE cvterm.name = 'orthologous';
  14349. --- ************************************************
  14350. --- *** relation: paralogous ***
  14351. --- *** relation type: VIEW ***
  14352. --- *** ***
  14353. --- *** An attribute describing a kind of homolo ***
  14354. --- *** gy where divergence occurred after a dup ***
  14355. --- *** lication event. ***
  14356. --- ************************************************
  14357. ---
  14358. CREATE VIEW paralogous AS
  14359. SELECT
  14360. feature_id AS paralogous_id,
  14361. feature.*
  14362. FROM
  14363. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14364. WHERE cvterm.name = 'paralogous';
  14365. --- ************************************************
  14366. --- *** relation: syntenic ***
  14367. --- *** relation type: VIEW ***
  14368. --- *** ***
  14369. --- *** Attribute describing sequence regions oc ***
  14370. --- *** curring in same order on chromosome of d ***
  14371. --- *** ifferent species. ***
  14372. --- ************************************************
  14373. ---
  14374. CREATE VIEW syntenic AS
  14375. SELECT
  14376. feature_id AS syntenic_id,
  14377. feature.*
  14378. FROM
  14379. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14380. WHERE cvterm.name = 'syntenic';
  14381. --- ************************************************
  14382. --- *** relation: capped_primary_transcript ***
  14383. --- *** relation type: VIEW ***
  14384. --- *** ***
  14385. --- *** A primary transcript that is capped. ***
  14386. --- ************************************************
  14387. ---
  14388. CREATE VIEW capped_primary_transcript AS
  14389. SELECT
  14390. feature_id AS capped_primary_transcript_id,
  14391. feature.*
  14392. FROM
  14393. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14394. WHERE cvterm.name = 'capped_primary_transcript';
  14395. --- ************************************************
  14396. --- *** relation: capped_mrna ***
  14397. --- *** relation type: VIEW ***
  14398. --- *** ***
  14399. --- *** An mRNA that is capped. ***
  14400. --- ************************************************
  14401. ---
  14402. CREATE VIEW capped_mrna AS
  14403. SELECT
  14404. feature_id AS capped_mrna_id,
  14405. feature.*
  14406. FROM
  14407. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14408. WHERE cvterm.name = 'capped_mRNA';
  14409. --- ************************************************
  14410. --- *** relation: mrna_attribute ***
  14411. --- *** relation type: VIEW ***
  14412. --- *** ***
  14413. --- *** An attribute describing an mRNA feature. ***
  14414. --- ************************************************
  14415. ---
  14416. CREATE VIEW mrna_attribute AS
  14417. SELECT
  14418. feature_id AS mrna_attribute_id,
  14419. feature.*
  14420. FROM
  14421. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14422. 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';
  14423. --- ************************************************
  14424. --- *** relation: exemplar ***
  14425. --- *** relation type: VIEW ***
  14426. --- *** ***
  14427. --- *** An attribute describing a sequence is re ***
  14428. --- *** presentative of a class of similar seque ***
  14429. --- *** nces. ***
  14430. --- ************************************************
  14431. ---
  14432. CREATE VIEW exemplar AS
  14433. SELECT
  14434. feature_id AS exemplar_id,
  14435. feature.*
  14436. FROM
  14437. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14438. WHERE cvterm.name = 'exemplar';
  14439. --- ************************************************
  14440. --- *** relation: frameshift ***
  14441. --- *** relation type: VIEW ***
  14442. --- *** ***
  14443. --- *** An attribute describing a sequence that ***
  14444. --- *** contains a mutation involving the deleti ***
  14445. --- *** on or insertion of one or more bases, wh ***
  14446. --- *** ere this number is not divisible by 3. ***
  14447. --- ************************************************
  14448. ---
  14449. CREATE VIEW frameshift AS
  14450. SELECT
  14451. feature_id AS frameshift_id,
  14452. feature.*
  14453. FROM
  14454. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14455. 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';
  14456. --- ************************************************
  14457. --- *** relation: minus_1_frameshift ***
  14458. --- *** relation type: VIEW ***
  14459. --- *** ***
  14460. --- *** A frameshift caused by deleting one base ***
  14461. --- *** . ***
  14462. --- ************************************************
  14463. ---
  14464. CREATE VIEW minus_1_frameshift AS
  14465. SELECT
  14466. feature_id AS minus_1_frameshift_id,
  14467. feature.*
  14468. FROM
  14469. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14470. WHERE cvterm.name = 'minus_1_frameshift';
  14471. --- ************************************************
  14472. --- *** relation: minus_2_frameshift ***
  14473. --- *** relation type: VIEW ***
  14474. --- *** ***
  14475. --- *** A frameshift caused by deleting two base ***
  14476. --- *** s. ***
  14477. --- ************************************************
  14478. ---
  14479. CREATE VIEW minus_2_frameshift AS
  14480. SELECT
  14481. feature_id AS minus_2_frameshift_id,
  14482. feature.*
  14483. FROM
  14484. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14485. WHERE cvterm.name = 'minus_2_frameshift';
  14486. --- ************************************************
  14487. --- *** relation: plus_1_frameshift ***
  14488. --- *** relation type: VIEW ***
  14489. --- *** ***
  14490. --- *** A frameshift caused by inserting one bas ***
  14491. --- *** e. ***
  14492. --- ************************************************
  14493. ---
  14494. CREATE VIEW plus_1_frameshift AS
  14495. SELECT
  14496. feature_id AS plus_1_frameshift_id,
  14497. feature.*
  14498. FROM
  14499. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14500. WHERE cvterm.name = 'plus_1_frameshift';
  14501. --- ************************************************
  14502. --- *** relation: plus_2_framshift ***
  14503. --- *** relation type: VIEW ***
  14504. --- *** ***
  14505. --- *** A frameshift caused by inserting two bas ***
  14506. --- *** es. ***
  14507. --- ************************************************
  14508. ---
  14509. CREATE VIEW plus_2_framshift AS
  14510. SELECT
  14511. feature_id AS plus_2_framshift_id,
  14512. feature.*
  14513. FROM
  14514. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14515. WHERE cvterm.name = 'plus_2_framshift';
  14516. --- ************************************************
  14517. --- *** relation: trans_spliced ***
  14518. --- *** relation type: VIEW ***
  14519. --- *** ***
  14520. --- *** An attribute describing transcript seque ***
  14521. --- *** nce that is created by splicing exons fr ***
  14522. --- *** om diferent genes. ***
  14523. --- ************************************************
  14524. ---
  14525. CREATE VIEW trans_spliced AS
  14526. SELECT
  14527. feature_id AS trans_spliced_id,
  14528. feature.*
  14529. FROM
  14530. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14531. WHERE cvterm.name = 'trans_spliced';
  14532. --- ************************************************
  14533. --- *** relation: polyadenylated_mrna ***
  14534. --- *** relation type: VIEW ***
  14535. --- *** ***
  14536. --- *** An mRNA that is polyadenylated. ***
  14537. --- ************************************************
  14538. ---
  14539. CREATE VIEW polyadenylated_mrna AS
  14540. SELECT
  14541. feature_id AS polyadenylated_mrna_id,
  14542. feature.*
  14543. FROM
  14544. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14545. WHERE cvterm.name = 'polyadenylated_mRNA';
  14546. --- ************************************************
  14547. --- *** relation: trans_spliced_mrna ***
  14548. --- *** relation type: VIEW ***
  14549. --- *** ***
  14550. --- *** An mRNA that is trans-spliced. ***
  14551. --- ************************************************
  14552. ---
  14553. CREATE VIEW trans_spliced_mrna AS
  14554. SELECT
  14555. feature_id AS trans_spliced_mrna_id,
  14556. feature.*
  14557. FROM
  14558. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14559. WHERE cvterm.name = 'trans_spliced_mRNA';
  14560. --- ************************************************
  14561. --- *** relation: edited_transcript ***
  14562. --- *** relation type: VIEW ***
  14563. --- *** ***
  14564. --- *** A transcript that is edited. ***
  14565. --- ************************************************
  14566. ---
  14567. CREATE VIEW edited_transcript AS
  14568. SELECT
  14569. feature_id AS edited_transcript_id,
  14570. feature.*
  14571. FROM
  14572. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14573. WHERE cvterm.name = 'edited_transcript_by_A_to_I_substitution' OR cvterm.name = 'edited_mRNA' OR cvterm.name = 'edited_transcript_by_A_to_I_substitution' OR cvterm.name = 'edited_transcript';
  14574. --- ************************************************
  14575. --- *** relation: edited_transcript_by_a_to_i_substitution ***
  14576. --- *** relation type: VIEW ***
  14577. --- *** ***
  14578. --- *** A transcript that has been edited by A t ***
  14579. --- *** o I substitution. ***
  14580. --- ************************************************
  14581. ---
  14582. CREATE VIEW edited_transcript_by_a_to_i_substitution AS
  14583. SELECT
  14584. feature_id AS edited_transcript_by_a_to_i_substitution_id,
  14585. feature.*
  14586. FROM
  14587. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14588. WHERE cvterm.name = 'edited_transcript_by_A_to_I_substitution';
  14589. --- ************************************************
  14590. --- *** relation: bound_by_protein ***
  14591. --- *** relation type: VIEW ***
  14592. --- *** ***
  14593. --- *** An attribute describing a sequence that ***
  14594. --- *** is bound by a protein. ***
  14595. --- ************************************************
  14596. ---
  14597. CREATE VIEW bound_by_protein AS
  14598. SELECT
  14599. feature_id AS bound_by_protein_id,
  14600. feature.*
  14601. FROM
  14602. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14603. WHERE cvterm.name = 'bound_by_protein';
  14604. --- ************************************************
  14605. --- *** relation: bound_by_nucleic_acid ***
  14606. --- *** relation type: VIEW ***
  14607. --- *** ***
  14608. --- *** An attribute describing a sequence that ***
  14609. --- *** is bound by a nucleic acid. ***
  14610. --- ************************************************
  14611. ---
  14612. CREATE VIEW bound_by_nucleic_acid AS
  14613. SELECT
  14614. feature_id AS bound_by_nucleic_acid_id,
  14615. feature.*
  14616. FROM
  14617. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14618. WHERE cvterm.name = 'bound_by_nucleic_acid';
  14619. --- ************************************************
  14620. --- *** relation: alternatively_spliced ***
  14621. --- *** relation type: VIEW ***
  14622. --- *** ***
  14623. --- *** An attribute describing a situation wher ***
  14624. --- *** e a gene may encode for more than 1 tran ***
  14625. --- *** script. ***
  14626. --- ************************************************
  14627. ---
  14628. CREATE VIEW alternatively_spliced AS
  14629. SELECT
  14630. feature_id AS alternatively_spliced_id,
  14631. feature.*
  14632. FROM
  14633. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14634. WHERE cvterm.name = 'alternatively_spliced';
  14635. --- ************************************************
  14636. --- *** relation: monocistronic ***
  14637. --- *** relation type: VIEW ***
  14638. --- *** ***
  14639. --- *** An attribute describing a sequence that ***
  14640. --- *** contains the code for one gene product. ***
  14641. --- ************************************************
  14642. ---
  14643. CREATE VIEW monocistronic AS
  14644. SELECT
  14645. feature_id AS monocistronic_id,
  14646. feature.*
  14647. FROM
  14648. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14649. WHERE cvterm.name = 'monocistronic';
  14650. --- ************************************************
  14651. --- *** relation: dicistronic ***
  14652. --- *** relation type: VIEW ***
  14653. --- *** ***
  14654. --- *** An attribute describing a sequence that ***
  14655. --- *** contains the code for two gene products. ***
  14656. --- ************************************************
  14657. ---
  14658. CREATE VIEW dicistronic AS
  14659. SELECT
  14660. feature_id AS dicistronic_id,
  14661. feature.*
  14662. FROM
  14663. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14664. WHERE cvterm.name = 'dicistronic';
  14665. --- ************************************************
  14666. --- *** relation: polycistronic ***
  14667. --- *** relation type: VIEW ***
  14668. --- *** ***
  14669. --- *** An attribute describing a sequence that ***
  14670. --- *** contains the code for more than one gene ***
  14671. --- *** product. ***
  14672. --- ************************************************
  14673. ---
  14674. CREATE VIEW polycistronic AS
  14675. SELECT
  14676. feature_id AS polycistronic_id,
  14677. feature.*
  14678. FROM
  14679. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14680. WHERE cvterm.name = 'dicistronic' OR cvterm.name = 'polycistronic';
  14681. --- ************************************************
  14682. --- *** relation: recoded ***
  14683. --- *** relation type: VIEW ***
  14684. --- *** ***
  14685. --- *** An attribute describing an mRNA sequence ***
  14686. --- *** that has been reprogrammed at translati ***
  14687. --- *** on, causing localized alterations. ***
  14688. --- ************************************************
  14689. ---
  14690. CREATE VIEW recoded AS
  14691. SELECT
  14692. feature_id AS recoded_id,
  14693. feature.*
  14694. FROM
  14695. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14696. 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';
  14697. --- ************************************************
  14698. --- *** relation: codon_redefined ***
  14699. --- *** relation type: VIEW ***
  14700. --- *** ***
  14701. --- *** An attribute describing the alteration o ***
  14702. --- *** f codon meaning. ***
  14703. --- ************************************************
  14704. ---
  14705. CREATE VIEW codon_redefined AS
  14706. SELECT
  14707. feature_id AS codon_redefined_id,
  14708. feature.*
  14709. FROM
  14710. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14711. WHERE cvterm.name = 'codon_redefined';
  14712. --- ************************************************
  14713. --- *** relation: stop_codon_read_through ***
  14714. --- *** relation type: VIEW ***
  14715. --- *** ***
  14716. --- *** A stop codon redefined to be a new amino ***
  14717. --- *** acid. ***
  14718. --- ************************************************
  14719. ---
  14720. CREATE VIEW stop_codon_read_through AS
  14721. SELECT
  14722. feature_id AS stop_codon_read_through_id,
  14723. feature.*
  14724. FROM
  14725. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14726. WHERE cvterm.name = 'stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'stop_codon_read_through';
  14727. --- ************************************************
  14728. --- *** relation: stop_codon_redefined_as_pyrrolysine ***
  14729. --- *** relation type: VIEW ***
  14730. --- *** ***
  14731. --- *** A stop codon redefined to be the new ami ***
  14732. --- *** no acid, pyrrolysine. ***
  14733. --- ************************************************
  14734. ---
  14735. CREATE VIEW stop_codon_redefined_as_pyrrolysine AS
  14736. SELECT
  14737. feature_id AS stop_codon_redefined_as_pyrrolysine_id,
  14738. feature.*
  14739. FROM
  14740. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14741. WHERE cvterm.name = 'stop_codon_redefined_as_pyrrolysine';
  14742. --- ************************************************
  14743. --- *** relation: stop_codon_redefined_as_selenocysteine ***
  14744. --- *** relation type: VIEW ***
  14745. --- *** ***
  14746. --- *** A stop codon redefined to be the new ami ***
  14747. --- *** no acid, selenocysteine. ***
  14748. --- ************************************************
  14749. ---
  14750. CREATE VIEW stop_codon_redefined_as_selenocysteine AS
  14751. SELECT
  14752. feature_id AS stop_codon_redefined_as_selenocysteine_id,
  14753. feature.*
  14754. FROM
  14755. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14756. WHERE cvterm.name = 'stop_codon_redefined_as_selenocysteine';
  14757. --- ************************************************
  14758. --- *** relation: recoded_by_translational_bypass ***
  14759. --- *** relation type: VIEW ***
  14760. --- *** ***
  14761. --- *** Recoded mRNA where a block of nucleotide ***
  14762. --- *** s is not translated. ***
  14763. --- ************************************************
  14764. ---
  14765. CREATE VIEW recoded_by_translational_bypass AS
  14766. SELECT
  14767. feature_id AS recoded_by_translational_bypass_id,
  14768. feature.*
  14769. FROM
  14770. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14771. WHERE cvterm.name = 'recoded_by_translational_bypass';
  14772. --- ************************************************
  14773. --- *** relation: translationally_frameshifted ***
  14774. --- *** relation type: VIEW ***
  14775. --- *** ***
  14776. --- *** Recoding by frameshifting a particular s ***
  14777. --- *** ite. ***
  14778. --- ************************************************
  14779. ---
  14780. CREATE VIEW translationally_frameshifted AS
  14781. SELECT
  14782. feature_id AS translationally_frameshifted_id,
  14783. feature.*
  14784. FROM
  14785. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14786. WHERE cvterm.name = 'minus_1_translationally_frameshifted' OR cvterm.name = 'plus_1_translationally_frameshifted' OR cvterm.name = 'translationally_frameshifted';
  14787. --- ************************************************
  14788. --- *** relation: maternally_imprinted_gene ***
  14789. --- *** relation type: VIEW ***
  14790. --- *** ***
  14791. --- *** A gene that is maternally_imprinted. ***
  14792. --- ************************************************
  14793. ---
  14794. CREATE VIEW maternally_imprinted_gene AS
  14795. SELECT
  14796. feature_id AS maternally_imprinted_gene_id,
  14797. feature.*
  14798. FROM
  14799. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14800. WHERE cvterm.name = 'maternally_imprinted_gene';
  14801. --- ************************************************
  14802. --- *** relation: paternally_imprinted_gene ***
  14803. --- *** relation type: VIEW ***
  14804. --- *** ***
  14805. --- *** A gene that is paternally imprinted. ***
  14806. --- ************************************************
  14807. ---
  14808. CREATE VIEW paternally_imprinted_gene AS
  14809. SELECT
  14810. feature_id AS paternally_imprinted_gene_id,
  14811. feature.*
  14812. FROM
  14813. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14814. WHERE cvterm.name = 'paternally_imprinted_gene';
  14815. --- ************************************************
  14816. --- *** relation: post_translationally_regulated_gene ***
  14817. --- *** relation type: VIEW ***
  14818. --- *** ***
  14819. --- *** A gene that is post translationally regu ***
  14820. --- *** lated. ***
  14821. --- ************************************************
  14822. ---
  14823. CREATE VIEW post_translationally_regulated_gene AS
  14824. SELECT
  14825. feature_id AS post_translationally_regulated_gene_id,
  14826. feature.*
  14827. FROM
  14828. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14829. WHERE cvterm.name = 'post_translationally_regulated_gene';
  14830. --- ************************************************
  14831. --- *** relation: negatively_autoregulated_gene ***
  14832. --- *** relation type: VIEW ***
  14833. --- *** ***
  14834. --- *** A gene that is negatively autoreguated. ***
  14835. --- ************************************************
  14836. ---
  14837. CREATE VIEW negatively_autoregulated_gene AS
  14838. SELECT
  14839. feature_id AS negatively_autoregulated_gene_id,
  14840. feature.*
  14841. FROM
  14842. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14843. WHERE cvterm.name = 'negatively_autoregulated_gene';
  14844. --- ************************************************
  14845. --- *** relation: positively_autoregulated_gene ***
  14846. --- *** relation type: VIEW ***
  14847. --- *** ***
  14848. --- *** A gene that is positively autoregulated. ***
  14849. --- ************************************************
  14850. ---
  14851. CREATE VIEW positively_autoregulated_gene AS
  14852. SELECT
  14853. feature_id AS positively_autoregulated_gene_id,
  14854. feature.*
  14855. FROM
  14856. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14857. WHERE cvterm.name = 'positively_autoregulated_gene';
  14858. --- ************************************************
  14859. --- *** relation: silenced ***
  14860. --- *** relation type: VIEW ***
  14861. --- *** ***
  14862. --- *** An attribute describing an epigenetic pr ***
  14863. --- *** ocess where a gene is inactivated at tra ***
  14864. --- *** nscriptional or translational level. ***
  14865. --- ************************************************
  14866. ---
  14867. CREATE VIEW silenced AS
  14868. SELECT
  14869. feature_id AS silenced_id,
  14870. feature.*
  14871. FROM
  14872. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14873. 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';
  14874. --- ************************************************
  14875. --- *** relation: silenced_by_dna_modification ***
  14876. --- *** relation type: VIEW ***
  14877. --- *** ***
  14878. --- *** An attribute describing an epigenetic pr ***
  14879. --- *** ocess where a gene is inactivated by DNA ***
  14880. --- *** modifications, resulting in repression ***
  14881. --- *** of transcription. ***
  14882. --- ************************************************
  14883. ---
  14884. CREATE VIEW silenced_by_dna_modification AS
  14885. SELECT
  14886. feature_id AS silenced_by_dna_modification_id,
  14887. feature.*
  14888. FROM
  14889. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14890. WHERE cvterm.name = 'silenced_by_DNA_methylation' OR cvterm.name = 'silenced_by_DNA_modification';
  14891. --- ************************************************
  14892. --- *** relation: silenced_by_dna_methylation ***
  14893. --- *** relation type: VIEW ***
  14894. --- *** ***
  14895. --- *** An attribute describing an epigenetic pr ***
  14896. --- *** ocess where a gene is inactivated by DNA ***
  14897. --- *** methylation, resulting in repression of ***
  14898. --- *** transcription. ***
  14899. --- ************************************************
  14900. ---
  14901. CREATE VIEW silenced_by_dna_methylation AS
  14902. SELECT
  14903. feature_id AS silenced_by_dna_methylation_id,
  14904. feature.*
  14905. FROM
  14906. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14907. WHERE cvterm.name = 'silenced_by_DNA_methylation';
  14908. --- ************************************************
  14909. --- *** relation: translationally_regulated_gene ***
  14910. --- *** relation type: VIEW ***
  14911. --- *** ***
  14912. --- *** A gene that is translationally regulated ***
  14913. --- *** . ***
  14914. --- ************************************************
  14915. ---
  14916. CREATE VIEW translationally_regulated_gene AS
  14917. SELECT
  14918. feature_id AS translationally_regulated_gene_id,
  14919. feature.*
  14920. FROM
  14921. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14922. WHERE cvterm.name = 'translationally_regulated_gene';
  14923. --- ************************************************
  14924. --- *** relation: allelically_excluded_gene ***
  14925. --- *** relation type: VIEW ***
  14926. --- *** ***
  14927. --- *** A gene that is allelically_excluded. ***
  14928. --- ************************************************
  14929. ---
  14930. CREATE VIEW allelically_excluded_gene AS
  14931. SELECT
  14932. feature_id AS allelically_excluded_gene_id,
  14933. feature.*
  14934. FROM
  14935. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14936. WHERE cvterm.name = 'allelically_excluded_gene';
  14937. --- ************************************************
  14938. --- *** relation: epigenetically_modified_gene ***
  14939. --- *** relation type: VIEW ***
  14940. --- *** ***
  14941. --- *** A gene that is epigenetically modified. ***
  14942. --- ************************************************
  14943. ---
  14944. CREATE VIEW epigenetically_modified_gene AS
  14945. SELECT
  14946. feature_id AS epigenetically_modified_gene_id,
  14947. feature.*
  14948. FROM
  14949. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14950. 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';
  14951. --- ************************************************
  14952. --- *** relation: transgene ***
  14953. --- *** relation type: VIEW ***
  14954. --- *** ***
  14955. --- *** A gene that is transgenic. ***
  14956. --- ************************************************
  14957. ---
  14958. CREATE VIEW transgene AS
  14959. SELECT
  14960. feature_id AS transgene_id,
  14961. feature.*
  14962. FROM
  14963. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14964. WHERE cvterm.name = 'floxed_gene' OR cvterm.name = 'transgene';
  14965. --- ************************************************
  14966. --- *** relation: endogenous_retroviral_sequence ***
  14967. --- *** relation type: VIEW ***
  14968. --- *** ***
  14969. --- ************************************************
  14970. ---
  14971. CREATE VIEW endogenous_retroviral_sequence AS
  14972. SELECT
  14973. feature_id AS endogenous_retroviral_sequence_id,
  14974. feature.*
  14975. FROM
  14976. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14977. WHERE cvterm.name = 'endogenous_retroviral_sequence';
  14978. --- ************************************************
  14979. --- *** relation: rearranged_at_dna_level ***
  14980. --- *** relation type: VIEW ***
  14981. --- *** ***
  14982. --- *** An attribute to describe the sequence of ***
  14983. --- *** a feature, where the DNA is rearranged. ***
  14984. --- ************************************************
  14985. ---
  14986. CREATE VIEW rearranged_at_dna_level AS
  14987. SELECT
  14988. feature_id AS rearranged_at_dna_level_id,
  14989. feature.*
  14990. FROM
  14991. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14992. WHERE cvterm.name = 'rearranged_at_DNA_level';
  14993. --- ************************************************
  14994. --- *** relation: status ***
  14995. --- *** relation type: VIEW ***
  14996. --- *** ***
  14997. --- *** An attribute describing the status of a ***
  14998. --- *** feature, based on the available evidence ***
  14999. --- *** . ***
  15000. --- ************************************************
  15001. ---
  15002. CREATE VIEW status AS
  15003. SELECT
  15004. feature_id AS status_id,
  15005. feature.*
  15006. FROM
  15007. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15008. 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 = '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 = 'status';
  15009. --- ************************************************
  15010. --- *** relation: independently_known ***
  15011. --- *** relation type: VIEW ***
  15012. --- *** ***
  15013. --- *** Attribute to describe a feature that is ***
  15014. --- *** independently known - not predicted. ***
  15015. --- ************************************************
  15016. ---
  15017. CREATE VIEW independently_known AS
  15018. SELECT
  15019. feature_id AS independently_known_id,
  15020. feature.*
  15021. FROM
  15022. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15023. WHERE cvterm.name = 'independently_known';
  15024. --- ************************************************
  15025. --- *** relation: supported_by_sequence_similarity ***
  15026. --- *** relation type: VIEW ***
  15027. --- *** ***
  15028. --- *** An attribute to describe a feature that ***
  15029. --- *** has been predicted using sequence simila ***
  15030. --- *** rity techniques. ***
  15031. --- ************************************************
  15032. ---
  15033. CREATE VIEW supported_by_sequence_similarity AS
  15034. SELECT
  15035. feature_id AS supported_by_sequence_similarity_id,
  15036. feature.*
  15037. FROM
  15038. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15039. WHERE cvterm.name = 'supported_by_domain_match' OR cvterm.name = 'supported_by_EST_or_cDNA' OR cvterm.name = 'supported_by_sequence_similarity';
  15040. --- ************************************************
  15041. --- *** relation: supported_by_domain_match ***
  15042. --- *** relation type: VIEW ***
  15043. --- *** ***
  15044. --- *** An attribute to describe a feature that ***
  15045. --- *** has been predicted using sequence simila ***
  15046. --- *** rity of a known domain. ***
  15047. --- ************************************************
  15048. ---
  15049. CREATE VIEW supported_by_domain_match AS
  15050. SELECT
  15051. feature_id AS supported_by_domain_match_id,
  15052. feature.*
  15053. FROM
  15054. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15055. WHERE cvterm.name = 'supported_by_domain_match';
  15056. --- ************************************************
  15057. --- *** relation: supported_by_est_or_cdna ***
  15058. --- *** relation type: VIEW ***
  15059. --- *** ***
  15060. --- *** An attribute to describe a feature that ***
  15061. --- *** has been predicted using sequence simila ***
  15062. --- *** rity to EST or cDNA data. ***
  15063. --- ************************************************
  15064. ---
  15065. CREATE VIEW supported_by_est_or_cdna AS
  15066. SELECT
  15067. feature_id AS supported_by_est_or_cdna_id,
  15068. feature.*
  15069. FROM
  15070. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15071. WHERE cvterm.name = 'supported_by_EST_or_cDNA';
  15072. --- ************************************************
  15073. --- *** relation: orphan ***
  15074. --- *** relation type: VIEW ***
  15075. --- *** ***
  15076. --- ************************************************
  15077. ---
  15078. CREATE VIEW orphan AS
  15079. SELECT
  15080. feature_id AS orphan_id,
  15081. feature.*
  15082. FROM
  15083. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15084. WHERE cvterm.name = 'orphan';
  15085. --- ************************************************
  15086. --- *** relation: predicted_by_ab_initio_computation ***
  15087. --- *** relation type: VIEW ***
  15088. --- *** ***
  15089. --- *** An attribute describing a feature that i ***
  15090. --- *** s predicted by a computer program that d ***
  15091. --- *** id not rely on sequence similarity. ***
  15092. --- ************************************************
  15093. ---
  15094. CREATE VIEW predicted_by_ab_initio_computation AS
  15095. SELECT
  15096. feature_id AS predicted_by_ab_initio_computation_id,
  15097. feature.*
  15098. FROM
  15099. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15100. WHERE cvterm.name = 'predicted_by_ab_initio_computation';
  15101. --- ************************************************
  15102. --- *** relation: asx_turn ***
  15103. --- *** relation type: VIEW ***
  15104. --- *** ***
  15105. --- *** A motif of three consecutive residues an ***
  15106. --- *** d one H-bond in which: residue(i) is Asp ***
  15107. --- *** artate or Asparagine (Asx), the side-cha ***
  15108. --- *** in O of residue(i) is H-bonded to the ma ***
  15109. --- *** in-chain NH of residue(i+2). ***
  15110. --- ************************************************
  15111. ---
  15112. CREATE VIEW asx_turn AS
  15113. SELECT
  15114. feature_id AS asx_turn_id,
  15115. feature.*
  15116. FROM
  15117. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15118. 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';
  15119. --- ************************************************
  15120. --- *** relation: cloned_cdna_insert ***
  15121. --- *** relation type: VIEW ***
  15122. --- *** ***
  15123. --- *** A clone insert made from cDNA. ***
  15124. --- ************************************************
  15125. ---
  15126. CREATE VIEW cloned_cdna_insert AS
  15127. SELECT
  15128. feature_id AS cloned_cdna_insert_id,
  15129. feature.*
  15130. FROM
  15131. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15132. WHERE cvterm.name = 'cloned_cDNA_insert';
  15133. --- ************************************************
  15134. --- *** relation: cloned_genomic_insert ***
  15135. --- *** relation type: VIEW ***
  15136. --- *** ***
  15137. --- *** A clone insert made from genomic DNA. ***
  15138. --- ************************************************
  15139. ---
  15140. CREATE VIEW cloned_genomic_insert AS
  15141. SELECT
  15142. feature_id AS cloned_genomic_insert_id,
  15143. feature.*
  15144. FROM
  15145. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15146. WHERE cvterm.name = 'BAC_cloned_genomic_insert' OR cvterm.name = 'cloned_genomic_insert';
  15147. --- ************************************************
  15148. --- *** relation: engineered_insert ***
  15149. --- *** relation type: VIEW ***
  15150. --- *** ***
  15151. --- *** A clone insert that is engineered. ***
  15152. --- ************************************************
  15153. ---
  15154. CREATE VIEW engineered_insert AS
  15155. SELECT
  15156. feature_id AS engineered_insert_id,
  15157. feature.*
  15158. FROM
  15159. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15160. WHERE cvterm.name = 'engineered_insert';
  15161. --- ************************************************
  15162. --- *** relation: edited_mrna ***
  15163. --- *** relation type: VIEW ***
  15164. --- *** ***
  15165. --- *** An mRNA that is edited. ***
  15166. --- ************************************************
  15167. ---
  15168. CREATE VIEW edited_mrna AS
  15169. SELECT
  15170. feature_id AS edited_mrna_id,
  15171. feature.*
  15172. FROM
  15173. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15174. WHERE cvterm.name = 'edited_transcript_by_A_to_I_substitution' OR cvterm.name = 'edited_mRNA';
  15175. --- ************************************************
  15176. --- *** relation: guide_rna_region ***
  15177. --- *** relation type: VIEW ***
  15178. --- *** ***
  15179. --- *** A region of guide RNA. ***
  15180. --- ************************************************
  15181. ---
  15182. CREATE VIEW guide_rna_region AS
  15183. SELECT
  15184. feature_id AS guide_rna_region_id,
  15185. feature.*
  15186. FROM
  15187. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15188. WHERE cvterm.name = 'anchor_region' OR cvterm.name = 'template_region' OR cvterm.name = 'guide_RNA_region';
  15189. --- ************************************************
  15190. --- *** relation: anchor_region ***
  15191. --- *** relation type: VIEW ***
  15192. --- *** ***
  15193. --- *** A region of a guide_RNA that base-pairs ***
  15194. --- *** to a target mRNA. ***
  15195. --- ************************************************
  15196. ---
  15197. CREATE VIEW anchor_region AS
  15198. SELECT
  15199. feature_id AS anchor_region_id,
  15200. feature.*
  15201. FROM
  15202. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15203. WHERE cvterm.name = 'anchor_region';
  15204. --- ************************************************
  15205. --- *** relation: pre_edited_mrna ***
  15206. --- *** relation type: VIEW ***
  15207. --- *** ***
  15208. --- ************************************************
  15209. ---
  15210. CREATE VIEW pre_edited_mrna AS
  15211. SELECT
  15212. feature_id AS pre_edited_mrna_id,
  15213. feature.*
  15214. FROM
  15215. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15216. WHERE cvterm.name = 'pre_edited_mRNA';
  15217. --- ************************************************
  15218. --- *** relation: intermediate ***
  15219. --- *** relation type: VIEW ***
  15220. --- *** ***
  15221. --- *** An attribute to describe a feature betwe ***
  15222. --- *** en stages of processing. ***
  15223. --- ************************************************
  15224. ---
  15225. CREATE VIEW intermediate AS
  15226. SELECT
  15227. feature_id AS intermediate_id,
  15228. feature.*
  15229. FROM
  15230. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15231. WHERE cvterm.name = 'intermediate';
  15232. --- ************************************************
  15233. --- *** relation: mirna_target_site ***
  15234. --- *** relation type: VIEW ***
  15235. --- *** ***
  15236. --- *** A miRNA target site is a binding site wh ***
  15237. --- *** ere the molecule is a micro RNA. ***
  15238. --- ************************************************
  15239. ---
  15240. CREATE VIEW mirna_target_site AS
  15241. SELECT
  15242. feature_id AS mirna_target_site_id,
  15243. feature.*
  15244. FROM
  15245. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15246. WHERE cvterm.name = 'miRNA_target_site';
  15247. --- ************************************************
  15248. --- *** relation: edited_cds ***
  15249. --- *** relation type: VIEW ***
  15250. --- *** ***
  15251. --- *** A CDS that is edited. ***
  15252. --- ************************************************
  15253. ---
  15254. CREATE VIEW edited_cds AS
  15255. SELECT
  15256. feature_id AS edited_cds_id,
  15257. feature.*
  15258. FROM
  15259. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15260. WHERE cvterm.name = 'edited_CDS';
  15261. --- ************************************************
  15262. --- *** relation: vertebrate_immunoglobulin_t_cell_receptor_rearranged_segment ***
  15263. --- *** relation type: VIEW ***
  15264. --- *** ***
  15265. --- ************************************************
  15266. ---
  15267. CREATE VIEW vertebrate_immunoglobulin_t_cell_receptor_rearranged_segment AS
  15268. SELECT
  15269. feature_id AS vertebrate_immunoglobulin_t_cell_receptor_rearranged_segment_id,
  15270. feature.*
  15271. FROM
  15272. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15273. 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';
  15274. --- ************************************************
  15275. --- *** relation: vertebrate_ig_t_cell_receptor_rearranged_gene_cluster ***
  15276. --- *** relation type: VIEW ***
  15277. --- *** ***
  15278. --- ************************************************
  15279. ---
  15280. CREATE VIEW vertebrate_ig_t_cell_receptor_rearranged_gene_cluster AS
  15281. SELECT
  15282. feature_id AS vertebrate_ig_t_cell_receptor_rearranged_gene_cluster_id,
  15283. feature.*
  15284. FROM
  15285. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15286. 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';
  15287. --- ************************************************
  15288. --- *** relation: vertebrate_immune_system_gene_recombination_signal_feature ***
  15289. --- *** relation type: VIEW ***
  15290. --- *** ***
  15291. --- ************************************************
  15292. ---
  15293. CREATE VIEW vertebrate_immune_system_gene_recombination_signal_feature AS
  15294. SELECT
  15295. feature_id AS vertebrate_immune_system_gene_recombination_signal_feature_id,
  15296. feature.*
  15297. FROM
  15298. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15299. 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';
  15300. --- ************************************************
  15301. --- *** relation: recombinationally_rearranged ***
  15302. --- *** relation type: VIEW ***
  15303. --- *** ***
  15304. --- ************************************************
  15305. ---
  15306. CREATE VIEW recombinationally_rearranged AS
  15307. SELECT
  15308. feature_id AS recombinationally_rearranged_id,
  15309. feature.*
  15310. FROM
  15311. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15312. WHERE cvterm.name = 'recombinationally_rearranged';
  15313. --- ************************************************
  15314. --- *** relation: recombinationally_rearranged_vertebrate_immune_system_gene ***
  15315. --- *** relation type: VIEW ***
  15316. --- *** ***
  15317. --- *** A recombinationally rearranged gene of t ***
  15318. --- *** he vertebrate immune system. ***
  15319. --- ************************************************
  15320. ---
  15321. CREATE VIEW recombinationally_rearranged_vertebrate_immune_system_gene AS
  15322. SELECT
  15323. feature_id AS recombinationally_rearranged_vertebrate_immune_system_gene_id,
  15324. feature.*
  15325. FROM
  15326. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15327. WHERE cvterm.name = 'recombinationally_rearranged_vertebrate_immune_system_gene';
  15328. --- ************************************************
  15329. --- *** relation: attp_site ***
  15330. --- *** relation type: VIEW ***
  15331. --- *** ***
  15332. --- *** An integration/excision site of a phage ***
  15333. --- *** chromosome at which a recombinase acts t ***
  15334. --- *** o insert the phage DNA at a cognate inte ***
  15335. --- *** gration/excision site on a bacterial chr ***
  15336. --- *** omosome. ***
  15337. --- ************************************************
  15338. ---
  15339. CREATE VIEW attp_site AS
  15340. SELECT
  15341. feature_id AS attp_site_id,
  15342. feature.*
  15343. FROM
  15344. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15345. WHERE cvterm.name = 'attP_site';
  15346. --- ************************************************
  15347. --- *** relation: attb_site ***
  15348. --- *** relation type: VIEW ***
  15349. --- *** ***
  15350. --- *** An integration/excision site of a bacter ***
  15351. --- *** ial chromosome at which a recombinase ac ***
  15352. --- *** ts to insert foreign DNA containing a co ***
  15353. --- *** gnate integration/excision site. ***
  15354. --- ************************************************
  15355. ---
  15356. CREATE VIEW attb_site AS
  15357. SELECT
  15358. feature_id AS attb_site_id,
  15359. feature.*
  15360. FROM
  15361. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15362. WHERE cvterm.name = 'attB_site';
  15363. --- ************************************************
  15364. --- *** relation: attl_site ***
  15365. --- *** relation type: VIEW ***
  15366. --- *** ***
  15367. --- *** A region that results from recombination ***
  15368. --- *** between attP_site and attB_site, compos ***
  15369. --- *** ed of the 5' portion of attB_site and th ***
  15370. --- *** e 3' portion of attP_site. ***
  15371. --- ************************************************
  15372. ---
  15373. CREATE VIEW attl_site AS
  15374. SELECT
  15375. feature_id AS attl_site_id,
  15376. feature.*
  15377. FROM
  15378. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15379. WHERE cvterm.name = 'attL_site';
  15380. --- ************************************************
  15381. --- *** relation: attr_site ***
  15382. --- *** relation type: VIEW ***
  15383. --- *** ***
  15384. --- *** A region that results from recombination ***
  15385. --- *** between attP_site and attB_site, compos ***
  15386. --- *** ed of the 5' portion of attP_site and th ***
  15387. --- *** e 3' portion of attB_site. ***
  15388. --- ************************************************
  15389. ---
  15390. CREATE VIEW attr_site AS
  15391. SELECT
  15392. feature_id AS attr_site_id,
  15393. feature.*
  15394. FROM
  15395. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15396. WHERE cvterm.name = 'attR_site';
  15397. --- ************************************************
  15398. --- *** relation: integration_excision_site ***
  15399. --- *** relation type: VIEW ***
  15400. --- *** ***
  15401. --- *** A region specifically recognised by a re ***
  15402. --- *** combinase, which inserts or removes anot ***
  15403. --- *** her region marked by a distinct cognate ***
  15404. --- *** integration/excision site. ***
  15405. --- ************************************************
  15406. ---
  15407. CREATE VIEW integration_excision_site AS
  15408. SELECT
  15409. feature_id AS integration_excision_site_id,
  15410. feature.*
  15411. FROM
  15412. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15413. 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';
  15414. --- ************************************************
  15415. --- *** relation: resolution_site ***
  15416. --- *** relation type: VIEW ***
  15417. --- *** ***
  15418. --- *** A region specifically recognised by a re ***
  15419. --- *** combinase, which separates a physically ***
  15420. --- *** contiguous circle of DNA into two physic ***
  15421. --- *** ally separate circles. ***
  15422. --- ************************************************
  15423. ---
  15424. CREATE VIEW resolution_site AS
  15425. SELECT
  15426. feature_id AS resolution_site_id,
  15427. feature.*
  15428. FROM
  15429. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15430. WHERE cvterm.name = 'loxP_site' OR cvterm.name = 'dif_site' OR cvterm.name = 'resolution_site';
  15431. --- ************************************************
  15432. --- *** relation: inversion_site ***
  15433. --- *** relation type: VIEW ***
  15434. --- *** ***
  15435. --- *** A region specifically recognised by a re ***
  15436. --- *** combinase, which inverts the region flan ***
  15437. --- *** ked by a pair of sites. ***
  15438. --- ************************************************
  15439. ---
  15440. CREATE VIEW inversion_site AS
  15441. SELECT
  15442. feature_id AS inversion_site_id,
  15443. feature.*
  15444. FROM
  15445. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15446. WHERE cvterm.name = 'FRT_site' OR cvterm.name = 'inversion_site';
  15447. --- ************************************************
  15448. --- *** relation: dif_site ***
  15449. --- *** relation type: VIEW ***
  15450. --- *** ***
  15451. --- *** A site at which replicated bacterial cir ***
  15452. --- *** cular chromosomes are decatenated by sit ***
  15453. --- *** e specific resolvase. ***
  15454. --- ************************************************
  15455. ---
  15456. CREATE VIEW dif_site AS
  15457. SELECT
  15458. feature_id AS dif_site_id,
  15459. feature.*
  15460. FROM
  15461. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15462. WHERE cvterm.name = 'dif_site';
  15463. --- ************************************************
  15464. --- *** relation: attc_site ***
  15465. --- *** relation type: VIEW ***
  15466. --- *** ***
  15467. --- *** An attC site is a sequence required for ***
  15468. --- *** the integration of a DNA of an integron. ***
  15469. --- ************************************************
  15470. ---
  15471. CREATE VIEW attc_site AS
  15472. SELECT
  15473. feature_id AS attc_site_id,
  15474. feature.*
  15475. FROM
  15476. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15477. WHERE cvterm.name = 'attC_site';
  15478. --- ************************************************
  15479. --- *** relation: eukaryotic_terminator ***
  15480. --- *** relation type: VIEW ***
  15481. --- *** ***
  15482. --- ************************************************
  15483. ---
  15484. CREATE VIEW eukaryotic_terminator AS
  15485. SELECT
  15486. feature_id AS eukaryotic_terminator_id,
  15487. feature.*
  15488. FROM
  15489. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15490. WHERE cvterm.name = 'terminator_of_type_2_RNApol_III_promoter' OR cvterm.name = 'eukaryotic_terminator';
  15491. --- ************************************************
  15492. --- *** relation: oriv ***
  15493. --- *** relation type: VIEW ***
  15494. --- *** ***
  15495. --- *** An origin of vegetative replication in p ***
  15496. --- *** lasmids and phages. ***
  15497. --- ************************************************
  15498. ---
  15499. CREATE VIEW oriv AS
  15500. SELECT
  15501. feature_id AS oriv_id,
  15502. feature.*
  15503. FROM
  15504. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15505. WHERE cvterm.name = 'oriV';
  15506. --- ************************************************
  15507. --- *** relation: oric ***
  15508. --- *** relation type: VIEW ***
  15509. --- *** ***
  15510. --- *** An origin of bacterial chromosome replic ***
  15511. --- *** ation. ***
  15512. --- ************************************************
  15513. ---
  15514. CREATE VIEW oric AS
  15515. SELECT
  15516. feature_id AS oric_id,
  15517. feature.*
  15518. FROM
  15519. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15520. WHERE cvterm.name = 'oriC';
  15521. --- ************************************************
  15522. --- *** relation: dna_chromosome ***
  15523. --- *** relation type: VIEW ***
  15524. --- *** ***
  15525. --- *** Structural unit composed of a self-repli ***
  15526. --- *** cating, DNA molecule. ***
  15527. --- ************************************************
  15528. ---
  15529. CREATE VIEW dna_chromosome AS
  15530. SELECT
  15531. feature_id AS dna_chromosome_id,
  15532. feature.*
  15533. FROM
  15534. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15535. 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';
  15536. --- ************************************************
  15537. --- *** relation: double_stranded_dna_chromosome ***
  15538. --- *** relation type: VIEW ***
  15539. --- *** ***
  15540. --- *** Structural unit composed of a self-repli ***
  15541. --- *** cating, double-stranded DNA molecule. ***
  15542. --- ************************************************
  15543. ---
  15544. CREATE VIEW double_stranded_dna_chromosome AS
  15545. SELECT
  15546. feature_id AS double_stranded_dna_chromosome_id,
  15547. feature.*
  15548. FROM
  15549. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15550. WHERE cvterm.name = 'linear_double_stranded_DNA_chromosome' OR cvterm.name = 'circular_double_stranded_DNA_chromosome' OR cvterm.name = 'double_stranded_DNA_chromosome';
  15551. --- ************************************************
  15552. --- *** relation: single_stranded_dna_chromosome ***
  15553. --- *** relation type: VIEW ***
  15554. --- *** ***
  15555. --- *** Structural unit composed of a self-repli ***
  15556. --- *** cating, single-stranded DNA molecule. ***
  15557. --- ************************************************
  15558. ---
  15559. CREATE VIEW single_stranded_dna_chromosome AS
  15560. SELECT
  15561. feature_id AS single_stranded_dna_chromosome_id,
  15562. feature.*
  15563. FROM
  15564. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15565. WHERE cvterm.name = 'linear_single_stranded_DNA_chromosome' OR cvterm.name = 'circular_single_stranded_DNA_chromosome' OR cvterm.name = 'single_stranded_DNA_chromosome';
  15566. --- ************************************************
  15567. --- *** relation: linear_double_stranded_dna_chromosome ***
  15568. --- *** relation type: VIEW ***
  15569. --- *** ***
  15570. --- *** Structural unit composed of a self-repli ***
  15571. --- *** cating, double-stranded, linear DNA mole ***
  15572. --- *** cule. ***
  15573. --- ************************************************
  15574. ---
  15575. CREATE VIEW linear_double_stranded_dna_chromosome AS
  15576. SELECT
  15577. feature_id AS linear_double_stranded_dna_chromosome_id,
  15578. feature.*
  15579. FROM
  15580. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15581. WHERE cvterm.name = 'linear_double_stranded_DNA_chromosome';
  15582. --- ************************************************
  15583. --- *** relation: circular_double_stranded_dna_chromosome ***
  15584. --- *** relation type: VIEW ***
  15585. --- *** ***
  15586. --- *** Structural unit composed of a self-repli ***
  15587. --- *** cating, double-stranded, circular DNA mo ***
  15588. --- *** lecule. ***
  15589. --- ************************************************
  15590. ---
  15591. CREATE VIEW circular_double_stranded_dna_chromosome AS
  15592. SELECT
  15593. feature_id AS circular_double_stranded_dna_chromosome_id,
  15594. feature.*
  15595. FROM
  15596. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15597. WHERE cvterm.name = 'circular_double_stranded_DNA_chromosome';
  15598. --- ************************************************
  15599. --- *** relation: linear_single_stranded_dna_chromosome ***
  15600. --- *** relation type: VIEW ***
  15601. --- *** ***
  15602. --- *** Structural unit composed of a self-repli ***
  15603. --- *** cating, single-stranded, linear DNA mole ***
  15604. --- *** cule. ***
  15605. --- ************************************************
  15606. ---
  15607. CREATE VIEW linear_single_stranded_dna_chromosome AS
  15608. SELECT
  15609. feature_id AS linear_single_stranded_dna_chromosome_id,
  15610. feature.*
  15611. FROM
  15612. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15613. WHERE cvterm.name = 'linear_single_stranded_DNA_chromosome';
  15614. --- ************************************************
  15615. --- *** relation: circular_single_stranded_dna_chromosome ***
  15616. --- *** relation type: VIEW ***
  15617. --- *** ***
  15618. --- *** Structural unit composed of a self-repli ***
  15619. --- *** cating, single-stranded, circular DNA mo ***
  15620. --- *** lecule. ***
  15621. --- ************************************************
  15622. ---
  15623. CREATE VIEW circular_single_stranded_dna_chromosome AS
  15624. SELECT
  15625. feature_id AS circular_single_stranded_dna_chromosome_id,
  15626. feature.*
  15627. FROM
  15628. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15629. WHERE cvterm.name = 'circular_single_stranded_DNA_chromosome';
  15630. --- ************************************************
  15631. --- *** relation: rna_chromosome ***
  15632. --- *** relation type: VIEW ***
  15633. --- *** ***
  15634. --- *** Structural unit composed of a self-repli ***
  15635. --- *** cating, RNA molecule. ***
  15636. --- ************************************************
  15637. ---
  15638. CREATE VIEW rna_chromosome AS
  15639. SELECT
  15640. feature_id AS rna_chromosome_id,
  15641. feature.*
  15642. FROM
  15643. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15644. 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';
  15645. --- ************************************************
  15646. --- *** relation: single_stranded_rna_chromosome ***
  15647. --- *** relation type: VIEW ***
  15648. --- *** ***
  15649. --- *** Structural unit composed of a self-repli ***
  15650. --- *** cating, single-stranded RNA molecule. ***
  15651. --- ************************************************
  15652. ---
  15653. CREATE VIEW single_stranded_rna_chromosome AS
  15654. SELECT
  15655. feature_id AS single_stranded_rna_chromosome_id,
  15656. feature.*
  15657. FROM
  15658. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15659. WHERE cvterm.name = 'linear_single_stranded_RNA_chromosome' OR cvterm.name = 'circular_single_stranded_RNA_chromosome' OR cvterm.name = 'single_stranded_RNA_chromosome';
  15660. --- ************************************************
  15661. --- *** relation: linear_single_stranded_rna_chromosome ***
  15662. --- *** relation type: VIEW ***
  15663. --- *** ***
  15664. --- *** Structural unit composed of a self-repli ***
  15665. --- *** cating, single-stranded, linear RNA mole ***
  15666. --- *** cule. ***
  15667. --- ************************************************
  15668. ---
  15669. CREATE VIEW linear_single_stranded_rna_chromosome AS
  15670. SELECT
  15671. feature_id AS linear_single_stranded_rna_chromosome_id,
  15672. feature.*
  15673. FROM
  15674. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15675. WHERE cvterm.name = 'linear_single_stranded_RNA_chromosome';
  15676. --- ************************************************
  15677. --- *** relation: linear_double_stranded_rna_chromosome ***
  15678. --- *** relation type: VIEW ***
  15679. --- *** ***
  15680. --- *** Structural unit composed of a self-repli ***
  15681. --- *** cating, double-stranded, linear RNA mole ***
  15682. --- *** cule. ***
  15683. --- ************************************************
  15684. ---
  15685. CREATE VIEW linear_double_stranded_rna_chromosome AS
  15686. SELECT
  15687. feature_id AS linear_double_stranded_rna_chromosome_id,
  15688. feature.*
  15689. FROM
  15690. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15691. WHERE cvterm.name = 'linear_double_stranded_RNA_chromosome';
  15692. --- ************************************************
  15693. --- *** relation: double_stranded_rna_chromosome ***
  15694. --- *** relation type: VIEW ***
  15695. --- *** ***
  15696. --- *** Structural unit composed of a self-repli ***
  15697. --- *** cating, double-stranded RNA molecule. ***
  15698. --- ************************************************
  15699. ---
  15700. CREATE VIEW double_stranded_rna_chromosome AS
  15701. SELECT
  15702. feature_id AS double_stranded_rna_chromosome_id,
  15703. feature.*
  15704. FROM
  15705. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15706. WHERE cvterm.name = 'linear_double_stranded_RNA_chromosome' OR cvterm.name = 'circular_double_stranded_RNA_chromosome' OR cvterm.name = 'double_stranded_RNA_chromosome';
  15707. --- ************************************************
  15708. --- *** relation: circular_single_stranded_rna_chromosome ***
  15709. --- *** relation type: VIEW ***
  15710. --- *** ***
  15711. --- *** Structural unit composed of a self-repli ***
  15712. --- *** cating, single-stranded, circular DNA mo ***
  15713. --- *** lecule. ***
  15714. --- ************************************************
  15715. ---
  15716. CREATE VIEW circular_single_stranded_rna_chromosome AS
  15717. SELECT
  15718. feature_id AS circular_single_stranded_rna_chromosome_id,
  15719. feature.*
  15720. FROM
  15721. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15722. WHERE cvterm.name = 'circular_single_stranded_RNA_chromosome';
  15723. --- ************************************************
  15724. --- *** relation: circular_double_stranded_rna_chromosome ***
  15725. --- *** relation type: VIEW ***
  15726. --- *** ***
  15727. --- *** Structural unit composed of a self-repli ***
  15728. --- *** cating, double-stranded, circular RNA mo ***
  15729. --- *** lecule. ***
  15730. --- ************************************************
  15731. ---
  15732. CREATE VIEW circular_double_stranded_rna_chromosome AS
  15733. SELECT
  15734. feature_id AS circular_double_stranded_rna_chromosome_id,
  15735. feature.*
  15736. FROM
  15737. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15738. WHERE cvterm.name = 'circular_double_stranded_RNA_chromosome';
  15739. --- ************************************************
  15740. --- *** relation: insertion_sequence ***
  15741. --- *** relation type: VIEW ***
  15742. --- *** ***
  15743. --- *** A terminal_inverted_repeat_element that ***
  15744. --- *** is bacterial and only encodes the functi ***
  15745. --- *** ons required for its transposition betwe ***
  15746. --- *** en these inverted repeats. ***
  15747. --- ************************************************
  15748. ---
  15749. CREATE VIEW insertion_sequence AS
  15750. SELECT
  15751. feature_id AS insertion_sequence_id,
  15752. feature.*
  15753. FROM
  15754. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15755. WHERE cvterm.name = 'insertion_sequence';
  15756. --- ************************************************
  15757. --- *** relation: minicircle_gene ***
  15758. --- *** relation type: VIEW ***
  15759. --- *** ***
  15760. --- ************************************************
  15761. ---
  15762. CREATE VIEW minicircle_gene AS
  15763. SELECT
  15764. feature_id AS minicircle_gene_id,
  15765. feature.*
  15766. FROM
  15767. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15768. WHERE cvterm.name = 'minicircle_gene';
  15769. --- ************************************************
  15770. --- *** relation: cryptic ***
  15771. --- *** relation type: VIEW ***
  15772. --- *** ***
  15773. --- *** A feature_attribute describing a feature ***
  15774. --- *** that is not manifest under normal condi ***
  15775. --- *** tions. ***
  15776. --- ************************************************
  15777. ---
  15778. CREATE VIEW cryptic AS
  15779. SELECT
  15780. feature_id AS cryptic_id,
  15781. feature.*
  15782. FROM
  15783. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15784. WHERE cvterm.name = 'cryptic';
  15785. --- ************************************************
  15786. --- *** relation: anchor_binding_site ***
  15787. --- *** relation type: VIEW ***
  15788. --- *** ***
  15789. --- ************************************************
  15790. ---
  15791. CREATE VIEW anchor_binding_site AS
  15792. SELECT
  15793. feature_id AS anchor_binding_site_id,
  15794. feature.*
  15795. FROM
  15796. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15797. WHERE cvterm.name = 'anchor_binding_site';
  15798. --- ************************************************
  15799. --- *** relation: template_region ***
  15800. --- *** relation type: VIEW ***
  15801. --- *** ***
  15802. --- *** A region of a guide_RNA that specifies t ***
  15803. --- *** he insertions and deletions of bases in ***
  15804. --- *** the editing of a target mRNA. ***
  15805. --- ************************************************
  15806. ---
  15807. CREATE VIEW template_region AS
  15808. SELECT
  15809. feature_id AS template_region_id,
  15810. feature.*
  15811. FROM
  15812. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15813. WHERE cvterm.name = 'template_region';
  15814. --- ************************************************
  15815. --- *** relation: grna_encoding ***
  15816. --- *** relation type: VIEW ***
  15817. --- *** ***
  15818. --- *** A non-protein_coding gene that encodes a ***
  15819. --- *** guide_RNA. ***
  15820. --- ************************************************
  15821. ---
  15822. CREATE VIEW grna_encoding AS
  15823. SELECT
  15824. feature_id AS grna_encoding_id,
  15825. feature.*
  15826. FROM
  15827. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15828. WHERE cvterm.name = 'gRNA_encoding';
  15829. --- ************************************************
  15830. --- *** relation: minicircle ***
  15831. --- *** relation type: VIEW ***
  15832. --- *** ***
  15833. --- *** A minicircle is a replicon, part of a ki ***
  15834. --- *** netoplast, that encodes for guide RNAs. ***
  15835. --- ************************************************
  15836. ---
  15837. CREATE VIEW minicircle AS
  15838. SELECT
  15839. feature_id AS minicircle_id,
  15840. feature.*
  15841. FROM
  15842. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15843. WHERE cvterm.name = 'minicircle';
  15844. --- ************************************************
  15845. --- *** relation: rho_dependent_bacterial_terminator ***
  15846. --- *** relation type: VIEW ***
  15847. --- *** ***
  15848. --- ************************************************
  15849. ---
  15850. CREATE VIEW rho_dependent_bacterial_terminator AS
  15851. SELECT
  15852. feature_id AS rho_dependent_bacterial_terminator_id,
  15853. feature.*
  15854. FROM
  15855. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15856. WHERE cvterm.name = 'rho_dependent_bacterial_terminator';
  15857. --- ************************************************
  15858. --- *** relation: rho_independent_bacterial_terminator ***
  15859. --- *** relation type: VIEW ***
  15860. --- *** ***
  15861. --- ************************************************
  15862. ---
  15863. CREATE VIEW rho_independent_bacterial_terminator AS
  15864. SELECT
  15865. feature_id AS rho_independent_bacterial_terminator_id,
  15866. feature.*
  15867. FROM
  15868. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15869. WHERE cvterm.name = 'rho_independent_bacterial_terminator';
  15870. --- ************************************************
  15871. --- *** relation: strand_attribute ***
  15872. --- *** relation type: VIEW ***
  15873. --- *** ***
  15874. --- ************************************************
  15875. ---
  15876. CREATE VIEW strand_attribute AS
  15877. SELECT
  15878. feature_id AS strand_attribute_id,
  15879. feature.*
  15880. FROM
  15881. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15882. WHERE cvterm.name = 'single' OR cvterm.name = 'double' OR cvterm.name = 'strand_attribute';
  15883. --- ************************************************
  15884. --- *** relation: single ***
  15885. --- *** relation type: VIEW ***
  15886. --- *** ***
  15887. --- ************************************************
  15888. ---
  15889. CREATE VIEW single AS
  15890. SELECT
  15891. feature_id AS single_id,
  15892. feature.*
  15893. FROM
  15894. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15895. WHERE cvterm.name = 'single';
  15896. --- ************************************************
  15897. --- *** relation: double ***
  15898. --- *** relation type: VIEW ***
  15899. --- *** ***
  15900. --- ************************************************
  15901. ---
  15902. CREATE VIEW double AS
  15903. SELECT
  15904. feature_id AS double_id,
  15905. feature.*
  15906. FROM
  15907. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15908. WHERE cvterm.name = 'double';
  15909. --- ************************************************
  15910. --- *** relation: topology_attribute ***
  15911. --- *** relation type: VIEW ***
  15912. --- *** ***
  15913. --- ************************************************
  15914. ---
  15915. CREATE VIEW topology_attribute AS
  15916. SELECT
  15917. feature_id AS topology_attribute_id,
  15918. feature.*
  15919. FROM
  15920. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15921. WHERE cvterm.name = 'linear' OR cvterm.name = 'circular' OR cvterm.name = 'topology_attribute';
  15922. --- ************************************************
  15923. --- *** relation: linear ***
  15924. --- *** relation type: VIEW ***
  15925. --- *** ***
  15926. --- *** A quality of a nucleotide polymer that h ***
  15927. --- *** as a 3'-terminal residue and a 5'-termin ***
  15928. --- *** al residue. ***
  15929. --- ************************************************
  15930. ---
  15931. CREATE VIEW linear AS
  15932. SELECT
  15933. feature_id AS linear_id,
  15934. feature.*
  15935. FROM
  15936. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15937. WHERE cvterm.name = 'linear';
  15938. --- ************************************************
  15939. --- *** relation: circular ***
  15940. --- *** relation type: VIEW ***
  15941. --- *** ***
  15942. --- *** A quality of a nucleotide polymer that h ***
  15943. --- *** as no terminal nucleotide residues. ***
  15944. --- ************************************************
  15945. ---
  15946. CREATE VIEW circular AS
  15947. SELECT
  15948. feature_id AS circular_id,
  15949. feature.*
  15950. FROM
  15951. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15952. WHERE cvterm.name = 'circular';
  15953. --- ************************************************
  15954. --- *** relation: class_ii_rna ***
  15955. --- *** relation type: VIEW ***
  15956. --- *** ***
  15957. --- *** Small non-coding RNA (59-60 nt long) con ***
  15958. --- *** taining 5' and 3' ends that are predicte ***
  15959. --- *** d to come together to form a stem struct ***
  15960. --- *** ure. Identified in the social amoeba Dic ***
  15961. --- *** tyostelium discoideum and localized in t ***
  15962. --- *** he cytoplasm. ***
  15963. --- ************************************************
  15964. ---
  15965. CREATE VIEW class_ii_rna AS
  15966. SELECT
  15967. feature_id AS class_ii_rna_id,
  15968. feature.*
  15969. FROM
  15970. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15971. WHERE cvterm.name = 'class_II_RNA';
  15972. --- ************************************************
  15973. --- *** relation: class_i_rna ***
  15974. --- *** relation type: VIEW ***
  15975. --- *** ***
  15976. --- *** Small non-coding RNA (55-65 nt long) con ***
  15977. --- *** taining highly conserved 5' and 3' ends ***
  15978. --- *** (16 and 8 nt, respectively) that are pre ***
  15979. --- *** dicted to come together to form a stem s ***
  15980. --- *** tructure. Identified in the social amoeb ***
  15981. --- *** a Dictyostelium discoideum and localized ***
  15982. --- *** in the cytoplasm. ***
  15983. --- ************************************************
  15984. ---
  15985. CREATE VIEW class_i_rna AS
  15986. SELECT
  15987. feature_id AS class_i_rna_id,
  15988. feature.*
  15989. FROM
  15990. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15991. WHERE cvterm.name = 'class_I_RNA';
  15992. --- ************************************************
  15993. --- *** relation: genomic_dna ***
  15994. --- *** relation type: VIEW ***
  15995. --- *** ***
  15996. --- ************************************************
  15997. ---
  15998. CREATE VIEW genomic_dna AS
  15999. SELECT
  16000. feature_id AS genomic_dna_id,
  16001. feature.*
  16002. FROM
  16003. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16004. WHERE cvterm.name = 'genomic_DNA';
  16005. --- ************************************************
  16006. --- *** relation: bac_cloned_genomic_insert ***
  16007. --- *** relation type: VIEW ***
  16008. --- *** ***
  16009. --- ************************************************
  16010. ---
  16011. CREATE VIEW bac_cloned_genomic_insert AS
  16012. SELECT
  16013. feature_id AS bac_cloned_genomic_insert_id,
  16014. feature.*
  16015. FROM
  16016. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16017. WHERE cvterm.name = 'BAC_cloned_genomic_insert';
  16018. --- ************************************************
  16019. --- *** relation: consensus ***
  16020. --- *** relation type: VIEW ***
  16021. --- *** ***
  16022. --- ************************************************
  16023. ---
  16024. CREATE VIEW consensus AS
  16025. SELECT
  16026. feature_id AS consensus_id,
  16027. feature.*
  16028. FROM
  16029. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16030. WHERE cvterm.name = 'consensus';
  16031. --- ************************************************
  16032. --- *** relation: consensus_region ***
  16033. --- *** relation type: VIEW ***
  16034. --- *** ***
  16035. --- ************************************************
  16036. ---
  16037. CREATE VIEW consensus_region AS
  16038. SELECT
  16039. feature_id AS consensus_region_id,
  16040. feature.*
  16041. FROM
  16042. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16043. WHERE cvterm.name = 'consensus_mRNA' OR cvterm.name = 'consensus_region';
  16044. --- ************************************************
  16045. --- *** relation: consensus_mrna ***
  16046. --- *** relation type: VIEW ***
  16047. --- *** ***
  16048. --- ************************************************
  16049. ---
  16050. CREATE VIEW consensus_mrna AS
  16051. SELECT
  16052. feature_id AS consensus_mrna_id,
  16053. feature.*
  16054. FROM
  16055. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16056. WHERE cvterm.name = 'consensus_mRNA';
  16057. --- ************************************************
  16058. --- *** relation: predicted_gene ***
  16059. --- *** relation type: VIEW ***
  16060. --- *** ***
  16061. --- ************************************************
  16062. ---
  16063. CREATE VIEW predicted_gene AS
  16064. SELECT
  16065. feature_id AS predicted_gene_id,
  16066. feature.*
  16067. FROM
  16068. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16069. WHERE cvterm.name = 'predicted_gene';
  16070. --- ************************************************
  16071. --- *** relation: gene_fragment ***
  16072. --- *** relation type: VIEW ***
  16073. --- *** ***
  16074. --- ************************************************
  16075. ---
  16076. CREATE VIEW gene_fragment AS
  16077. SELECT
  16078. feature_id AS gene_fragment_id,
  16079. feature.*
  16080. FROM
  16081. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16082. WHERE cvterm.name = 'gene_fragment';
  16083. --- ************************************************
  16084. --- *** relation: recursive_splice_site ***
  16085. --- *** relation type: VIEW ***
  16086. --- *** ***
  16087. --- *** A recursive splice site is a splice site ***
  16088. --- *** which subdivides a large intron. Recurs ***
  16089. --- *** ive splicing is a mechanism that splices ***
  16090. --- *** large introns by sub dividing the intro ***
  16091. --- *** n at non exonic elements and alternate e ***
  16092. --- *** xons. ***
  16093. --- ************************************************
  16094. ---
  16095. CREATE VIEW recursive_splice_site AS
  16096. SELECT
  16097. feature_id AS recursive_splice_site_id,
  16098. feature.*
  16099. FROM
  16100. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16101. WHERE cvterm.name = 'recursive_splice_site';
  16102. --- ************************************************
  16103. --- *** relation: bac_end ***
  16104. --- *** relation type: VIEW ***
  16105. --- *** ***
  16106. --- *** A region of sequence from the end of a B ***
  16107. --- *** AC clone that may provide a highly speci ***
  16108. --- *** fic marker. ***
  16109. --- ************************************************
  16110. ---
  16111. CREATE VIEW bac_end AS
  16112. SELECT
  16113. feature_id AS bac_end_id,
  16114. feature.*
  16115. FROM
  16116. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16117. WHERE cvterm.name = 'BAC_end';
  16118. --- ************************************************
  16119. --- *** relation: rrna_16s ***
  16120. --- *** relation type: VIEW ***
  16121. --- *** ***
  16122. --- *** A large polynucleotide in Bacteria and A ***
  16123. --- *** rchaea, which functions as the small sub ***
  16124. --- *** unit of the ribosome. ***
  16125. --- ************************************************
  16126. ---
  16127. CREATE VIEW rrna_16s AS
  16128. SELECT
  16129. feature_id AS rrna_16s_id,
  16130. feature.*
  16131. FROM
  16132. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16133. WHERE cvterm.name = 'rRNA_16S';
  16134. --- ************************************************
  16135. --- *** relation: rrna_23s ***
  16136. --- *** relation type: VIEW ***
  16137. --- *** ***
  16138. --- *** A large polynucleotide in Bacteria and A ***
  16139. --- *** rchaea, which functions as the large sub ***
  16140. --- *** unit of the ribosome. ***
  16141. --- ************************************************
  16142. ---
  16143. CREATE VIEW rrna_23s AS
  16144. SELECT
  16145. feature_id AS rrna_23s_id,
  16146. feature.*
  16147. FROM
  16148. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16149. WHERE cvterm.name = 'rRNA_23S';
  16150. --- ************************************************
  16151. --- *** relation: rrna_25s ***
  16152. --- *** relation type: VIEW ***
  16153. --- *** ***
  16154. --- *** A large polynucleotide which functions a ***
  16155. --- *** s part of the large subunit of the ribos ***
  16156. --- *** ome in some eukaryotes. ***
  16157. --- ************************************************
  16158. ---
  16159. CREATE VIEW rrna_25s AS
  16160. SELECT
  16161. feature_id AS rrna_25s_id,
  16162. feature.*
  16163. FROM
  16164. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16165. WHERE cvterm.name = 'rRNA_25S';
  16166. --- ************************************************
  16167. --- *** relation: solo_ltr ***
  16168. --- *** relation type: VIEW ***
  16169. --- *** ***
  16170. --- *** A recombination product between the 2 LT ***
  16171. --- *** R of the same element. ***
  16172. --- ************************************************
  16173. ---
  16174. CREATE VIEW solo_ltr AS
  16175. SELECT
  16176. feature_id AS solo_ltr_id,
  16177. feature.*
  16178. FROM
  16179. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16180. WHERE cvterm.name = 'solo_LTR';
  16181. --- ************************************************
  16182. --- *** relation: low_complexity ***
  16183. --- *** relation type: VIEW ***
  16184. --- *** ***
  16185. --- ************************************************
  16186. ---
  16187. CREATE VIEW low_complexity AS
  16188. SELECT
  16189. feature_id AS low_complexity_id,
  16190. feature.*
  16191. FROM
  16192. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16193. WHERE cvterm.name = 'low_complexity';
  16194. --- ************************************************
  16195. --- *** relation: low_complexity_region ***
  16196. --- *** relation type: VIEW ***
  16197. --- *** ***
  16198. --- ************************************************
  16199. ---
  16200. CREATE VIEW low_complexity_region AS
  16201. SELECT
  16202. feature_id AS low_complexity_region_id,
  16203. feature.*
  16204. FROM
  16205. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16206. WHERE cvterm.name = 'low_complexity_region';
  16207. --- ************************************************
  16208. --- *** relation: prophage ***
  16209. --- *** relation type: VIEW ***
  16210. --- *** ***
  16211. --- *** A phage genome after it has established ***
  16212. --- *** in the host genome in a latent/immune st ***
  16213. --- *** ate either as a plasmid or as an integra ***
  16214. --- *** ted "island". ***
  16215. --- ************************************************
  16216. ---
  16217. CREATE VIEW prophage AS
  16218. SELECT
  16219. feature_id AS prophage_id,
  16220. feature.*
  16221. FROM
  16222. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16223. WHERE cvterm.name = 'prophage';
  16224. --- ************************************************
  16225. --- *** relation: cryptic_prophage ***
  16226. --- *** relation type: VIEW ***
  16227. --- *** ***
  16228. --- *** A remnant of an integrated prophage in t ***
  16229. --- *** he host genome or an "island" in the hos ***
  16230. --- *** t genome that includes phage like-genes. ***
  16231. --- ************************************************
  16232. ---
  16233. CREATE VIEW cryptic_prophage AS
  16234. SELECT
  16235. feature_id AS cryptic_prophage_id,
  16236. feature.*
  16237. FROM
  16238. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16239. WHERE cvterm.name = 'cryptic_prophage';
  16240. --- ************************************************
  16241. --- *** relation: tetraloop ***
  16242. --- *** relation type: VIEW ***
  16243. --- *** ***
  16244. --- *** A base-paired stem with loop of 4 non-hy ***
  16245. --- *** drogen bonded nucleotides. ***
  16246. --- ************************************************
  16247. ---
  16248. CREATE VIEW tetraloop AS
  16249. SELECT
  16250. feature_id AS tetraloop_id,
  16251. feature.*
  16252. FROM
  16253. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16254. WHERE cvterm.name = 'tetraloop';
  16255. --- ************************************************
  16256. --- *** relation: dna_constraint_sequence ***
  16257. --- *** relation type: VIEW ***
  16258. --- *** ***
  16259. --- *** A double-stranded DNA used to control ma ***
  16260. --- *** cromolecular structure and function. ***
  16261. --- ************************************************
  16262. ---
  16263. CREATE VIEW dna_constraint_sequence AS
  16264. SELECT
  16265. feature_id AS dna_constraint_sequence_id,
  16266. feature.*
  16267. FROM
  16268. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16269. WHERE cvterm.name = 'DNA_constraint_sequence';
  16270. --- ************************************************
  16271. --- *** relation: i_motif ***
  16272. --- *** relation type: VIEW ***
  16273. --- *** ***
  16274. --- *** A cytosine rich domain whereby strands a ***
  16275. --- *** ssociate both inter- and intramolecularl ***
  16276. --- *** y at moderately acidic pH. ***
  16277. --- ************************************************
  16278. ---
  16279. CREATE VIEW i_motif AS
  16280. SELECT
  16281. feature_id AS i_motif_id,
  16282. feature.*
  16283. FROM
  16284. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16285. WHERE cvterm.name = 'i_motif';
  16286. --- ************************************************
  16287. --- *** relation: pna_oligo ***
  16288. --- *** relation type: VIEW ***
  16289. --- *** ***
  16290. --- *** Peptide nucleic acid, is a chemical not ***
  16291. --- *** known to occur naturally but is artifici ***
  16292. --- *** ally synthesized and used in some biolog ***
  16293. --- *** ical research and medical treatments. Th ***
  16294. --- *** e PNA backbone is composed of repeating ***
  16295. --- *** N-(2-aminoethyl)-glycine units linked by ***
  16296. --- *** peptide bonds. The purine and pyrimidin ***
  16297. --- *** e bases are linked to the backbone by me ***
  16298. --- *** thylene carbonyl bonds. ***
  16299. --- ************************************************
  16300. ---
  16301. CREATE VIEW pna_oligo AS
  16302. SELECT
  16303. feature_id AS pna_oligo_id,
  16304. feature.*
  16305. FROM
  16306. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16307. WHERE cvterm.name = 'PNA_oligo';
  16308. --- ************************************************
  16309. --- *** relation: dnazyme ***
  16310. --- *** relation type: VIEW ***
  16311. --- *** ***
  16312. --- *** A DNA sequence with catalytic activity. ***
  16313. --- ************************************************
  16314. ---
  16315. CREATE VIEW dnazyme AS
  16316. SELECT
  16317. feature_id AS dnazyme_id,
  16318. feature.*
  16319. FROM
  16320. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16321. WHERE cvterm.name = 'DNAzyme';
  16322. --- ************************************************
  16323. --- *** relation: mnp ***
  16324. --- *** relation type: VIEW ***
  16325. --- *** ***
  16326. --- *** A multiple nucleotide polymorphism with ***
  16327. --- *** alleles of common length > 1, for exampl ***
  16328. --- *** e AAA/TTT. ***
  16329. --- ************************************************
  16330. ---
  16331. CREATE VIEW mnp AS
  16332. SELECT
  16333. feature_id AS mnp_id,
  16334. feature.*
  16335. FROM
  16336. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16337. WHERE cvterm.name = 'MNP';
  16338. --- ************************************************
  16339. --- *** relation: intron_domain ***
  16340. --- *** relation type: VIEW ***
  16341. --- *** ***
  16342. --- ************************************************
  16343. ---
  16344. CREATE VIEW intron_domain AS
  16345. SELECT
  16346. feature_id AS intron_domain_id,
  16347. feature.*
  16348. FROM
  16349. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16350. WHERE cvterm.name = 'internal_guide_sequence' OR cvterm.name = 'mirtron' OR cvterm.name = 'intron_domain';
  16351. --- ************************************************
  16352. --- *** relation: wobble_base_pair ***
  16353. --- *** relation type: VIEW ***
  16354. --- *** ***
  16355. --- *** A type of non-canonical base pairing, mo ***
  16356. --- *** st commonly between G and U, which is im ***
  16357. --- *** portant for the secondary structure of R ***
  16358. --- *** NAs. It has similar thermodynamic stabil ***
  16359. --- *** ity to the Watson-Crick pairing. Wobble ***
  16360. --- *** base pairs only have two hydrogen bonds. ***
  16361. --- *** Other wobble base pair possibilities ar ***
  16362. --- *** e I-A, I-U and I-C. ***
  16363. --- ************************************************
  16364. ---
  16365. CREATE VIEW wobble_base_pair AS
  16366. SELECT
  16367. feature_id AS wobble_base_pair_id,
  16368. feature.*
  16369. FROM
  16370. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16371. WHERE cvterm.name = 'wobble_base_pair';
  16372. --- ************************************************
  16373. --- *** relation: internal_guide_sequence ***
  16374. --- *** relation type: VIEW ***
  16375. --- *** ***
  16376. --- *** A purine-rich sequence in the group I in ***
  16377. --- *** trons which determines the locations of ***
  16378. --- *** the splice sites in group I intron splic ***
  16379. --- *** ing and has catalytic activity. ***
  16380. --- ************************************************
  16381. ---
  16382. CREATE VIEW internal_guide_sequence AS
  16383. SELECT
  16384. feature_id AS internal_guide_sequence_id,
  16385. feature.*
  16386. FROM
  16387. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16388. WHERE cvterm.name = 'internal_guide_sequence';
  16389. --- ************************************************
  16390. --- *** relation: silent_mutation ***
  16391. --- *** relation type: VIEW ***
  16392. --- *** ***
  16393. --- ************************************************
  16394. ---
  16395. CREATE VIEW silent_mutation AS
  16396. SELECT
  16397. feature_id AS silent_mutation_id,
  16398. feature.*
  16399. FROM
  16400. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16401. WHERE cvterm.name = 'silent_mutation';
  16402. --- ************************************************
  16403. --- *** relation: epitope ***
  16404. --- *** relation type: VIEW ***
  16405. --- *** ***
  16406. --- *** A region of a macromolecule that is reco ***
  16407. --- *** gnized by the immune system. ***
  16408. --- ************************************************
  16409. ---
  16410. CREATE VIEW epitope AS
  16411. SELECT
  16412. feature_id AS epitope_id,
  16413. feature.*
  16414. FROM
  16415. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16416. WHERE cvterm.name = 'epitope';
  16417. --- ************************************************
  16418. --- *** relation: copy_number_variation ***
  16419. --- *** relation type: VIEW ***
  16420. --- *** ***
  16421. --- *** A variation that increases or decreases ***
  16422. --- *** the copy number of a given region. ***
  16423. --- ************************************************
  16424. ---
  16425. CREATE VIEW copy_number_variation AS
  16426. SELECT
  16427. feature_id AS copy_number_variation_id,
  16428. feature.*
  16429. FROM
  16430. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16431. WHERE cvterm.name = 'copy_number_variation';
  16432. --- ************************************************
  16433. --- *** relation: sequence_variant_affecting_copy_number ***
  16434. --- *** relation type: VIEW ***
  16435. --- *** ***
  16436. --- ************************************************
  16437. ---
  16438. CREATE VIEW sequence_variant_affecting_copy_number AS
  16439. SELECT
  16440. feature_id AS sequence_variant_affecting_copy_number_id,
  16441. feature.*
  16442. FROM
  16443. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16444. WHERE cvterm.name = 'sequence_variant_affecting_copy_number';
  16445. --- ************************************************
  16446. --- *** relation: chromosome_breakpoint ***
  16447. --- *** relation type: VIEW ***
  16448. --- *** ***
  16449. --- ************************************************
  16450. ---
  16451. CREATE VIEW chromosome_breakpoint AS
  16452. SELECT
  16453. feature_id AS chromosome_breakpoint_id,
  16454. feature.*
  16455. FROM
  16456. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16457. 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';
  16458. --- ************************************************
  16459. --- *** relation: inversion_breakpoint ***
  16460. --- *** relation type: VIEW ***
  16461. --- *** ***
  16462. --- *** The point within a chromosome where an i ***
  16463. --- *** nversion begins or ends. ***
  16464. --- ************************************************
  16465. ---
  16466. CREATE VIEW inversion_breakpoint AS
  16467. SELECT
  16468. feature_id AS inversion_breakpoint_id,
  16469. feature.*
  16470. FROM
  16471. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16472. WHERE cvterm.name = 'inversion_breakpoint';
  16473. --- ************************************************
  16474. --- *** relation: allele ***
  16475. --- *** relation type: VIEW ***
  16476. --- *** ***
  16477. --- *** An allele is one of a set of coexisting ***
  16478. --- *** sequence variants of a gene. ***
  16479. --- ************************************************
  16480. ---
  16481. CREATE VIEW allele AS
  16482. SELECT
  16483. feature_id AS allele_id,
  16484. feature.*
  16485. FROM
  16486. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16487. WHERE cvterm.name = 'allele';
  16488. --- ************************************************
  16489. --- *** relation: haplotype ***
  16490. --- *** relation type: VIEW ***
  16491. --- *** ***
  16492. --- *** A haplotype is one of a set of coexistin ***
  16493. --- *** g sequence variants of a haplotype block ***
  16494. --- *** . ***
  16495. --- ************************************************
  16496. ---
  16497. CREATE VIEW haplotype AS
  16498. SELECT
  16499. feature_id AS haplotype_id,
  16500. feature.*
  16501. FROM
  16502. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16503. WHERE cvterm.name = 'haplotype';
  16504. --- ************************************************
  16505. --- *** relation: polymorphic_sequence_variant ***
  16506. --- *** relation type: VIEW ***
  16507. --- *** ***
  16508. --- *** A sequence variant that is segregating i ***
  16509. --- *** n one or more natural populations of a s ***
  16510. --- *** pecies. ***
  16511. --- ************************************************
  16512. ---
  16513. CREATE VIEW polymorphic_sequence_variant AS
  16514. SELECT
  16515. feature_id AS polymorphic_sequence_variant_id,
  16516. feature.*
  16517. FROM
  16518. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16519. WHERE cvterm.name = 'polymorphic_sequence_variant';
  16520. --- ************************************************
  16521. --- *** relation: genome ***
  16522. --- *** relation type: VIEW ***
  16523. --- *** ***
  16524. --- *** A genome is the sum of genetic material ***
  16525. --- *** within a cell or virion. ***
  16526. --- ************************************************
  16527. ---
  16528. CREATE VIEW genome AS
  16529. SELECT
  16530. feature_id AS genome_id,
  16531. feature.*
  16532. FROM
  16533. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16534. WHERE cvterm.name = 'genome';
  16535. --- ************************************************
  16536. --- *** relation: genotype ***
  16537. --- *** relation type: VIEW ***
  16538. --- *** ***
  16539. --- *** A genotype is a variant genome, complete ***
  16540. --- *** or incomplete. ***
  16541. --- ************************************************
  16542. ---
  16543. CREATE VIEW genotype AS
  16544. SELECT
  16545. feature_id AS genotype_id,
  16546. feature.*
  16547. FROM
  16548. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16549. WHERE cvterm.name = 'diplotype' OR cvterm.name = 'genotype';
  16550. --- ************************************************
  16551. --- *** relation: diplotype ***
  16552. --- *** relation type: VIEW ***
  16553. --- *** ***
  16554. --- *** A diplotype is a pair of haplotypes from ***
  16555. --- *** a given individual. It is a genotype wh ***
  16556. --- *** ere the phase is known. ***
  16557. --- ************************************************
  16558. ---
  16559. CREATE VIEW diplotype AS
  16560. SELECT
  16561. feature_id AS diplotype_id,
  16562. feature.*
  16563. FROM
  16564. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16565. WHERE cvterm.name = 'diplotype';
  16566. --- ************************************************
  16567. --- *** relation: direction_attribute ***
  16568. --- *** relation type: VIEW ***
  16569. --- *** ***
  16570. --- ************************************************
  16571. ---
  16572. CREATE VIEW direction_attribute AS
  16573. SELECT
  16574. feature_id AS direction_attribute_id,
  16575. feature.*
  16576. FROM
  16577. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16578. WHERE cvterm.name = 'forward' OR cvterm.name = 'reverse' OR cvterm.name = 'direction_attribute';
  16579. --- ************************************************
  16580. --- *** relation: forward ***
  16581. --- *** relation type: VIEW ***
  16582. --- *** ***
  16583. --- *** Forward is an attribute of the feature, ***
  16584. --- *** where the feature is in the 5' to 3' dir ***
  16585. --- *** ection. ***
  16586. --- ************************************************
  16587. ---
  16588. CREATE VIEW forward AS
  16589. SELECT
  16590. feature_id AS forward_id,
  16591. feature.*
  16592. FROM
  16593. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16594. WHERE cvterm.name = 'forward';
  16595. --- ************************************************
  16596. --- *** relation: reverse ***
  16597. --- *** relation type: VIEW ***
  16598. --- *** ***
  16599. --- *** Reverse is an attribute of the feature, ***
  16600. --- *** where the feature is in the 3' to 5' dir ***
  16601. --- *** ection. Again could be applied to primer ***
  16602. --- *** . ***
  16603. --- ************************************************
  16604. ---
  16605. CREATE VIEW reverse AS
  16606. SELECT
  16607. feature_id AS reverse_id,
  16608. feature.*
  16609. FROM
  16610. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16611. WHERE cvterm.name = 'reverse';
  16612. --- ************************************************
  16613. --- *** relation: mitochondrial_dna ***
  16614. --- *** relation type: VIEW ***
  16615. --- *** ***
  16616. --- ************************************************
  16617. ---
  16618. CREATE VIEW mitochondrial_dna AS
  16619. SELECT
  16620. feature_id AS mitochondrial_dna_id,
  16621. feature.*
  16622. FROM
  16623. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16624. WHERE cvterm.name = 'mitochondrial_DNA';
  16625. --- ************************************************
  16626. --- *** relation: chloroplast_dna ***
  16627. --- *** relation type: VIEW ***
  16628. --- *** ***
  16629. --- ************************************************
  16630. ---
  16631. CREATE VIEW chloroplast_dna AS
  16632. SELECT
  16633. feature_id AS chloroplast_dna_id,
  16634. feature.*
  16635. FROM
  16636. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16637. WHERE cvterm.name = 'chloroplast_DNA';
  16638. --- ************************************************
  16639. --- *** relation: mirtron ***
  16640. --- *** relation type: VIEW ***
  16641. --- *** ***
  16642. --- *** A debranched intron which mimics the str ***
  16643. --- *** ucture of pre-miRNA and enters the miRNA ***
  16644. --- *** processing pathway without Drosha media ***
  16645. --- *** ted cleavage. ***
  16646. --- ************************************************
  16647. ---
  16648. CREATE VIEW mirtron AS
  16649. SELECT
  16650. feature_id AS mirtron_id,
  16651. feature.*
  16652. FROM
  16653. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16654. WHERE cvterm.name = 'mirtron';
  16655. --- ************************************************
  16656. --- *** relation: pirna ***
  16657. --- *** relation type: VIEW ***
  16658. --- *** ***
  16659. --- *** A small non coding RNA, part of a silenc ***
  16660. --- *** ing system that prevents the spreading o ***
  16661. --- *** f selfish genetic elements. ***
  16662. --- ************************************************
  16663. ---
  16664. CREATE VIEW pirna AS
  16665. SELECT
  16666. feature_id AS pirna_id,
  16667. feature.*
  16668. FROM
  16669. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16670. WHERE cvterm.name = 'piRNA';
  16671. --- ************************************************
  16672. --- *** relation: arginyl_trna ***
  16673. --- *** relation type: VIEW ***
  16674. --- *** ***
  16675. --- *** A tRNA sequence that has an arginine ant ***
  16676. --- *** icodon, and a 3' arginine binding region ***
  16677. --- *** . ***
  16678. --- ************************************************
  16679. ---
  16680. CREATE VIEW arginyl_trna AS
  16681. SELECT
  16682. feature_id AS arginyl_trna_id,
  16683. feature.*
  16684. FROM
  16685. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16686. WHERE cvterm.name = 'arginyl_tRNA';
  16687. --- ************************************************
  16688. --- *** relation: mobile_genetic_element ***
  16689. --- *** relation type: VIEW ***
  16690. --- *** ***
  16691. --- *** A nucleotide region with either intra-ge ***
  16692. --- *** nome or intracellular moblity, of varyin ***
  16693. --- *** g length, which often carry the informat ***
  16694. --- *** ion necessary for transfer and recombina ***
  16695. --- *** tion with the host genome. ***
  16696. --- ************************************************
  16697. ---
  16698. CREATE VIEW mobile_genetic_element AS
  16699. SELECT
  16700. feature_id AS mobile_genetic_element_id,
  16701. feature.*
  16702. FROM
  16703. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16704. WHERE cvterm.name = 'mobile_intron' OR cvterm.name = 'extrachromosomal_mobile_genetic_element' OR cvterm.name = 'integrated_mobile_genetic_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 = 'natural_transposable_element' 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 = 'transposon_fragment' OR cvterm.name = 'LTR_retrotransposon' OR cvterm.name = 'non_LTR_retrotransposon' OR cvterm.name = 'RR_tract' 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 = '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';
  16705. --- ************************************************
  16706. --- *** relation: extrachromosomal_mobile_genetic_element ***
  16707. --- *** relation type: VIEW ***
  16708. --- *** ***
  16709. --- *** An MGE that is not integrated into the h ***
  16710. --- *** ost chromosome. ***
  16711. --- ************************************************
  16712. ---
  16713. CREATE VIEW extrachromosomal_mobile_genetic_element AS
  16714. SELECT
  16715. feature_id AS extrachromosomal_mobile_genetic_element_id,
  16716. feature.*
  16717. FROM
  16718. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16719. WHERE 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 = 'natural_transposable_element' OR cvterm.name = 'extrachromosomal_mobile_genetic_element';
  16720. --- ************************************************
  16721. --- *** relation: integrated_mobile_genetic_element ***
  16722. --- *** relation type: VIEW ***
  16723. --- *** ***
  16724. --- *** An MGE that is integrated into the host ***
  16725. --- *** chromosome. ***
  16726. --- ************************************************
  16727. ---
  16728. CREATE VIEW integrated_mobile_genetic_element AS
  16729. SELECT
  16730. feature_id AS integrated_mobile_genetic_element_id,
  16731. feature.*
  16732. FROM
  16733. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16734. 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 = 'transposon_fragment' OR cvterm.name = 'LTR_retrotransposon' OR cvterm.name = 'non_LTR_retrotransposon' OR cvterm.name = 'RR_tract' 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 = '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';
  16735. --- ************************************************
  16736. --- *** relation: integrated_plasmid ***
  16737. --- *** relation type: VIEW ***
  16738. --- *** ***
  16739. --- *** A plasmid sequence that is integrated wi ***
  16740. --- *** thin the host chromosome. ***
  16741. --- ************************************************
  16742. ---
  16743. CREATE VIEW integrated_plasmid AS
  16744. SELECT
  16745. feature_id AS integrated_plasmid_id,
  16746. feature.*
  16747. FROM
  16748. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16749. WHERE cvterm.name = 'integrated_plasmid';
  16750. --- ************************************************
  16751. --- *** relation: viral_sequence ***
  16752. --- *** relation type: VIEW ***
  16753. --- *** ***
  16754. --- *** The region of nucleotide sequence of a v ***
  16755. --- *** irus, a submicroscopic particle that rep ***
  16756. --- *** licates by infecting a host cell. ***
  16757. --- ************************************************
  16758. ---
  16759. CREATE VIEW viral_sequence AS
  16760. SELECT
  16761. feature_id AS viral_sequence_id,
  16762. feature.*
  16763. FROM
  16764. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16765. 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';
  16766. --- ************************************************
  16767. --- *** relation: phage_sequence ***
  16768. --- *** relation type: VIEW ***
  16769. --- *** ***
  16770. --- *** The nucleotide sequence of a virus that ***
  16771. --- *** infects bacteria. ***
  16772. --- ************************************************
  16773. ---
  16774. CREATE VIEW phage_sequence AS
  16775. SELECT
  16776. feature_id AS phage_sequence_id,
  16777. feature.*
  16778. FROM
  16779. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16780. WHERE cvterm.name = 'phage_sequence';
  16781. --- ************************************************
  16782. --- *** relation: attctn_site ***
  16783. --- *** relation type: VIEW ***
  16784. --- *** ***
  16785. --- *** An attachment site located on a conjugat ***
  16786. --- *** ive transposon and used for site-specifi ***
  16787. --- *** c integration of a conjugative transposo ***
  16788. --- *** n. ***
  16789. --- ************************************************
  16790. ---
  16791. CREATE VIEW attctn_site AS
  16792. SELECT
  16793. feature_id AS attctn_site_id,
  16794. feature.*
  16795. FROM
  16796. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16797. WHERE cvterm.name = 'attCtn_site';
  16798. --- ************************************************
  16799. --- *** relation: nuclear_mt_pseudogene ***
  16800. --- *** relation type: VIEW ***
  16801. --- *** ***
  16802. --- *** A nuclear pseudogene of a mitochndrial g ***
  16803. --- *** ene. ***
  16804. --- ************************************************
  16805. ---
  16806. CREATE VIEW nuclear_mt_pseudogene AS
  16807. SELECT
  16808. feature_id AS nuclear_mt_pseudogene_id,
  16809. feature.*
  16810. FROM
  16811. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16812. WHERE cvterm.name = 'nuclear_mt_pseudogene';
  16813. --- ************************************************
  16814. --- *** relation: cointegrated_plasmid ***
  16815. --- *** relation type: VIEW ***
  16816. --- *** ***
  16817. --- *** A MGE region consisting of two fused pla ***
  16818. --- *** smids resulting from a replicative trans ***
  16819. --- *** position event. ***
  16820. --- ************************************************
  16821. ---
  16822. CREATE VIEW cointegrated_plasmid AS
  16823. SELECT
  16824. feature_id AS cointegrated_plasmid_id,
  16825. feature.*
  16826. FROM
  16827. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16828. WHERE cvterm.name = 'cointegrated_plasmid';
  16829. --- ************************************************
  16830. --- *** relation: irlinv_site ***
  16831. --- *** relation type: VIEW ***
  16832. --- *** ***
  16833. --- *** Component of the inversion site located ***
  16834. --- *** at the left of a region susceptible to s ***
  16835. --- *** ite-specific inversion. ***
  16836. --- ************************************************
  16837. ---
  16838. CREATE VIEW irlinv_site AS
  16839. SELECT
  16840. feature_id AS irlinv_site_id,
  16841. feature.*
  16842. FROM
  16843. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16844. WHERE cvterm.name = 'IRLinv_site';
  16845. --- ************************************************
  16846. --- *** relation: irrinv_site ***
  16847. --- *** relation type: VIEW ***
  16848. --- *** ***
  16849. --- *** Component of the inversion site located ***
  16850. --- *** at the right of a region susceptible to ***
  16851. --- *** site-specific inversion. ***
  16852. --- ************************************************
  16853. ---
  16854. CREATE VIEW irrinv_site AS
  16855. SELECT
  16856. feature_id AS irrinv_site_id,
  16857. feature.*
  16858. FROM
  16859. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16860. WHERE cvterm.name = 'IRRinv_site';
  16861. --- ************************************************
  16862. --- *** relation: inversion_site_part ***
  16863. --- *** relation type: VIEW ***
  16864. --- *** ***
  16865. --- *** A region located within an inversion sit ***
  16866. --- *** e. ***
  16867. --- ************************************************
  16868. ---
  16869. CREATE VIEW inversion_site_part AS
  16870. SELECT
  16871. feature_id AS inversion_site_part_id,
  16872. feature.*
  16873. FROM
  16874. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16875. WHERE cvterm.name = 'IRLinv_site' OR cvterm.name = 'IRRinv_site' OR cvterm.name = 'inversion_site_part';
  16876. --- ************************************************
  16877. --- *** relation: defective_conjugative_transposon ***
  16878. --- *** relation type: VIEW ***
  16879. --- *** ***
  16880. --- *** An island that contains genes for integr ***
  16881. --- *** ation/excision and the gene and site for ***
  16882. --- *** the initiation of intercellular transfe ***
  16883. --- *** r by conjugation. It can be complemented ***
  16884. --- *** for transfer by a conjugative transposo ***
  16885. --- *** n. ***
  16886. --- ************************************************
  16887. ---
  16888. CREATE VIEW defective_conjugative_transposon AS
  16889. SELECT
  16890. feature_id AS defective_conjugative_transposon_id,
  16891. feature.*
  16892. FROM
  16893. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16894. WHERE cvterm.name = 'defective_conjugative_transposon';
  16895. --- ************************************************
  16896. --- *** relation: repeat_fragment ***
  16897. --- *** relation type: VIEW ***
  16898. --- *** ***
  16899. --- *** A portion of a repeat, interrupted by th ***
  16900. --- *** e insertion of another element. ***
  16901. --- ************************************************
  16902. ---
  16903. CREATE VIEW repeat_fragment AS
  16904. SELECT
  16905. feature_id AS repeat_fragment_id,
  16906. feature.*
  16907. FROM
  16908. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16909. WHERE cvterm.name = 'repeat_fragment';
  16910. --- ************************************************
  16911. --- *** relation: transposon_fragment ***
  16912. --- *** relation type: VIEW ***
  16913. --- *** ***
  16914. --- ************************************************
  16915. ---
  16916. CREATE VIEW transposon_fragment AS
  16917. SELECT
  16918. feature_id AS transposon_fragment_id,
  16919. feature.*
  16920. FROM
  16921. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16922. WHERE cvterm.name = 'transposon_fragment';
  16923. --- ************************************************
  16924. --- *** relation: transcriptional_cis_regulatory_region ***
  16925. --- *** relation type: VIEW ***
  16926. --- *** ***
  16927. --- *** A regulatory_region that modulates the t ***
  16928. --- *** ranscription of a gene or genes. ***
  16929. --- ************************************************
  16930. ---
  16931. CREATE VIEW transcriptional_cis_regulatory_region AS
  16932. SELECT
  16933. feature_id AS transcriptional_cis_regulatory_region_id,
  16934. feature.*
  16935. FROM
  16936. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16937. WHERE cvterm.name = 'promoter' OR cvterm.name = 'insulator' OR cvterm.name = 'CRM' OR cvterm.name = 'promoter_targeting_sequence' 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_III_promoter_type_1' OR cvterm.name = 'RNApol_III_promoter_type_2' OR cvterm.name = 'RNApol_III_promoter_type_3' 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 = 'RNApol_II_promoter' OR cvterm.name = 'RNApol_III_promoter' OR cvterm.name = 'silencer' OR cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' 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 = 'transcriptional_cis_regulatory_region';
  16938. --- ************************************************
  16939. --- *** relation: splicing_regulatory_region ***
  16940. --- *** relation type: VIEW ***
  16941. --- *** ***
  16942. --- *** A regulatory_region that modulates splic ***
  16943. --- *** ing. ***
  16944. --- ************************************************
  16945. ---
  16946. CREATE VIEW splicing_regulatory_region AS
  16947. SELECT
  16948. feature_id AS splicing_regulatory_region_id,
  16949. feature.*
  16950. FROM
  16951. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16952. WHERE cvterm.name = 'splice_enhancer' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' OR cvterm.name = 'splicing_regulatory_region';
  16953. --- ************************************************
  16954. --- *** relation: promoter_targeting_sequence ***
  16955. --- *** relation type: VIEW ***
  16956. --- *** ***
  16957. --- *** A transcriptional_cis_regulatory_region ***
  16958. --- *** that restricts the activity of a CRM to ***
  16959. --- *** a single promoter and which functions on ***
  16960. --- *** ly when both itself and an insulator are ***
  16961. --- *** located between the CRM and the promote ***
  16962. --- *** r. ***
  16963. --- ************************************************
  16964. ---
  16965. CREATE VIEW promoter_targeting_sequence AS
  16966. SELECT
  16967. feature_id AS promoter_targeting_sequence_id,
  16968. feature.*
  16969. FROM
  16970. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16971. WHERE cvterm.name = 'promoter_targeting_sequence';
  16972. --- ************************************************
  16973. --- *** relation: sequence_alteration ***
  16974. --- *** relation type: VIEW ***
  16975. --- *** ***
  16976. --- *** A sequence_alteration is a sequence_feat ***
  16977. --- *** ure whose extent is the deviation from a ***
  16978. --- *** nother sequence. ***
  16979. --- ************************************************
  16980. ---
  16981. CREATE VIEW sequence_alteration AS
  16982. SELECT
  16983. feature_id AS sequence_alteration_id,
  16984. feature.*
  16985. FROM
  16986. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16987. WHERE cvterm.name = 'deletion' OR cvterm.name = 'translocation' OR cvterm.name = 'insertion' OR cvterm.name = 'substitution' OR cvterm.name = 'uncharacterised_change_in_nucleotide_sequence' OR cvterm.name = 'indel' OR cvterm.name = 'inversion' OR cvterm.name = 'transgenic_insertion' OR cvterm.name = 'sequence_length_variation' OR cvterm.name = 'SNP' OR cvterm.name = 'complex_substitution' OR cvterm.name = 'point_mutation' OR cvterm.name = 'simple_sequence_length_variation' OR cvterm.name = 'MNP' 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 = 'partially_characterised_change_in_DNA_sequence' OR cvterm.name = 'nucleotide_deletion' OR cvterm.name = 'nucleotide_insertion' OR cvterm.name = 'nucleotide_duplication' OR cvterm.name = 'sequence_alteration';
  16988. --- ************************************************
  16989. --- *** relation: sequence_variant ***
  16990. --- *** relation type: VIEW ***
  16991. --- *** ***
  16992. --- *** A sequence_variant is a non exact copy o ***
  16993. --- *** f a sequence_feature or genome exhibitin ***
  16994. --- *** g one or more sequence_alteration. ***
  16995. --- ************************************************
  16996. ---
  16997. CREATE VIEW sequence_variant AS
  16998. SELECT
  16999. feature_id AS sequence_variant_id,
  17000. feature.*
  17001. FROM
  17002. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17003. WHERE cvterm.name = 'copy_number_variation' OR cvterm.name = 'allele' OR cvterm.name = 'haplotype' OR cvterm.name = 'polymorphic_sequence_variant' OR cvterm.name = 'genotype' OR cvterm.name = 'diplotype' OR cvterm.name = 'sequence_variant';
  17004. --- ************************************************
  17005. --- *** relation: propeptide_cleavage_site ***
  17006. --- *** relation type: VIEW ***
  17007. --- *** ***
  17008. --- *** The propeptide_cleavage_site is the argi ***
  17009. --- *** nine/lysine boundary on a propeptide whe ***
  17010. --- *** re cleavage occurs. ***
  17011. --- ************************************************
  17012. ---
  17013. CREATE VIEW propeptide_cleavage_site AS
  17014. SELECT
  17015. feature_id AS propeptide_cleavage_site_id,
  17016. feature.*
  17017. FROM
  17018. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17019. WHERE cvterm.name = 'propeptide_cleavage_site';
  17020. --- ************************************************
  17021. --- *** relation: propeptide ***
  17022. --- *** relation type: VIEW ***
  17023. --- *** ***
  17024. --- *** Part of a peptide chain which is cleaved ***
  17025. --- *** off during the formation of the mature ***
  17026. --- *** protein. ***
  17027. --- ************************************************
  17028. ---
  17029. CREATE VIEW propeptide AS
  17030. SELECT
  17031. feature_id AS propeptide_id,
  17032. feature.*
  17033. FROM
  17034. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17035. WHERE cvterm.name = 'propeptide';
  17036. --- ************************************************
  17037. --- *** relation: immature_peptide_region ***
  17038. --- *** relation type: VIEW ***
  17039. --- *** ***
  17040. --- *** An immature_peptide_region is the extent ***
  17041. --- *** of the peptide after it has been transl ***
  17042. --- *** ated and before any processing occurs. ***
  17043. --- ************************************************
  17044. ---
  17045. CREATE VIEW immature_peptide_region AS
  17046. SELECT
  17047. feature_id AS immature_peptide_region_id,
  17048. feature.*
  17049. FROM
  17050. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17051. WHERE cvterm.name = 'immature_peptide_region';
  17052. --- ************************************************
  17053. --- *** relation: active_peptide ***
  17054. --- *** relation type: VIEW ***
  17055. --- *** ***
  17056. --- *** Active peptides are proteins which are b ***
  17057. --- *** iologically active, released from a prec ***
  17058. --- *** ursor molecule. ***
  17059. --- ************************************************
  17060. ---
  17061. CREATE VIEW active_peptide AS
  17062. SELECT
  17063. feature_id AS active_peptide_id,
  17064. feature.*
  17065. FROM
  17066. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17067. WHERE cvterm.name = 'active_peptide';
  17068. --- ************************************************
  17069. --- *** relation: compositionally_biased_region_of_peptide ***
  17070. --- *** relation type: VIEW ***
  17071. --- *** ***
  17072. --- *** Polypeptide region that is rich in a par ***
  17073. --- *** ticular amino acid or homopolymeric and ***
  17074. --- *** greater than three residues in length. ***
  17075. --- ************************************************
  17076. ---
  17077. CREATE VIEW compositionally_biased_region_of_peptide AS
  17078. SELECT
  17079. feature_id AS compositionally_biased_region_of_peptide_id,
  17080. feature.*
  17081. FROM
  17082. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17083. WHERE cvterm.name = 'compositionally_biased_region_of_peptide';
  17084. --- ************************************************
  17085. --- *** relation: polypeptide_motif ***
  17086. --- *** relation type: VIEW ***
  17087. --- *** ***
  17088. --- *** A sequence motif is a short (up to 20 am ***
  17089. --- *** ino acids) region of biological interest ***
  17090. --- *** . Such motifs, although they are too sho ***
  17091. --- *** rt to constitute functional domains, sha ***
  17092. --- *** re sequence similarities and are conserv ***
  17093. --- *** ed in different proteins. They display a ***
  17094. --- *** common function (protein-binding, subce ***
  17095. --- *** llular location etc.). ***
  17096. --- ************************************************
  17097. ---
  17098. CREATE VIEW polypeptide_motif AS
  17099. SELECT
  17100. feature_id AS polypeptide_motif_id,
  17101. feature.*
  17102. FROM
  17103. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17104. 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 = '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';
  17105. --- ************************************************
  17106. --- *** relation: polypeptide_repeat ***
  17107. --- *** relation type: VIEW ***
  17108. --- *** ***
  17109. --- *** A polypeptide_repeat is a single copy of ***
  17110. --- *** an internal sequence repetition. ***
  17111. --- ************************************************
  17112. ---
  17113. CREATE VIEW polypeptide_repeat AS
  17114. SELECT
  17115. feature_id AS polypeptide_repeat_id,
  17116. feature.*
  17117. FROM
  17118. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17119. WHERE cvterm.name = 'polypeptide_repeat';
  17120. --- ************************************************
  17121. --- *** relation: polypeptide_structural_region ***
  17122. --- *** relation type: VIEW ***
  17123. --- *** ***
  17124. --- *** Region of polypeptide with a given struc ***
  17125. --- *** tural property. ***
  17126. --- ************************************************
  17127. ---
  17128. CREATE VIEW polypeptide_structural_region AS
  17129. SELECT
  17130. feature_id AS polypeptide_structural_region_id,
  17131. feature.*
  17132. FROM
  17133. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17134. 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';
  17135. --- ************************************************
  17136. --- *** relation: membrane_structure ***
  17137. --- *** relation type: VIEW ***
  17138. --- *** ***
  17139. --- *** Arrangement of the polypeptide with resp ***
  17140. --- *** ect to the lipid bilayer. ***
  17141. --- ************************************************
  17142. ---
  17143. CREATE VIEW membrane_structure AS
  17144. SELECT
  17145. feature_id AS membrane_structure_id,
  17146. feature.*
  17147. FROM
  17148. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17149. WHERE cvterm.name = 'membrane_structure';
  17150. --- ************************************************
  17151. --- *** relation: extramembrane_polypeptide_region ***
  17152. --- *** relation type: VIEW ***
  17153. --- *** ***
  17154. --- *** Polypeptide region that is localized out ***
  17155. --- *** side of a lipid bilayer. ***
  17156. --- ************************************************
  17157. ---
  17158. CREATE VIEW extramembrane_polypeptide_region AS
  17159. SELECT
  17160. feature_id AS extramembrane_polypeptide_region_id,
  17161. feature.*
  17162. FROM
  17163. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17164. WHERE cvterm.name = 'cytoplasmic_polypeptide_region' OR cvterm.name = 'non_cytoplasmic_polypeptide_region' OR cvterm.name = 'extramembrane_polypeptide_region';
  17165. --- ************************************************
  17166. --- *** relation: cytoplasmic_polypeptide_region ***
  17167. --- *** relation type: VIEW ***
  17168. --- *** ***
  17169. --- *** Polypeptide region that is localized ins ***
  17170. --- *** ide the cytoplasm. ***
  17171. --- ************************************************
  17172. ---
  17173. CREATE VIEW cytoplasmic_polypeptide_region AS
  17174. SELECT
  17175. feature_id AS cytoplasmic_polypeptide_region_id,
  17176. feature.*
  17177. FROM
  17178. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17179. WHERE cvterm.name = 'cytoplasmic_polypeptide_region';
  17180. --- ************************************************
  17181. --- *** relation: non_cytoplasmic_polypeptide_region ***
  17182. --- *** relation type: VIEW ***
  17183. --- *** ***
  17184. --- *** Polypeptide region that is localized out ***
  17185. --- *** side of a lipid bilayer and outside of t ***
  17186. --- *** he cytoplasm. ***
  17187. --- ************************************************
  17188. ---
  17189. CREATE VIEW non_cytoplasmic_polypeptide_region AS
  17190. SELECT
  17191. feature_id AS non_cytoplasmic_polypeptide_region_id,
  17192. feature.*
  17193. FROM
  17194. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17195. WHERE cvterm.name = 'non_cytoplasmic_polypeptide_region';
  17196. --- ************************************************
  17197. --- *** relation: intramembrane_polypeptide_region ***
  17198. --- *** relation type: VIEW ***
  17199. --- *** ***
  17200. --- *** Polypeptide region present in the lipid ***
  17201. --- *** bilayer. ***
  17202. --- ************************************************
  17203. ---
  17204. CREATE VIEW intramembrane_polypeptide_region AS
  17205. SELECT
  17206. feature_id AS intramembrane_polypeptide_region_id,
  17207. feature.*
  17208. FROM
  17209. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17210. WHERE cvterm.name = 'membrane_peptide_loop' OR cvterm.name = 'transmembrane_polypeptide_region' OR cvterm.name = 'intramembrane_polypeptide_region';
  17211. --- ************************************************
  17212. --- *** relation: membrane_peptide_loop ***
  17213. --- *** relation type: VIEW ***
  17214. --- *** ***
  17215. --- *** Polypeptide region localized within the ***
  17216. --- *** lipid bilayer where both ends traverse t ***
  17217. --- *** he same membrane. ***
  17218. --- ************************************************
  17219. ---
  17220. CREATE VIEW membrane_peptide_loop AS
  17221. SELECT
  17222. feature_id AS membrane_peptide_loop_id,
  17223. feature.*
  17224. FROM
  17225. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17226. WHERE cvterm.name = 'membrane_peptide_loop';
  17227. --- ************************************************
  17228. --- *** relation: transmembrane_polypeptide_region ***
  17229. --- *** relation type: VIEW ***
  17230. --- *** ***
  17231. --- *** Polypeptide region traversing the lipid ***
  17232. --- *** bilayer. ***
  17233. --- ************************************************
  17234. ---
  17235. CREATE VIEW transmembrane_polypeptide_region AS
  17236. SELECT
  17237. feature_id AS transmembrane_polypeptide_region_id,
  17238. feature.*
  17239. FROM
  17240. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17241. WHERE cvterm.name = 'transmembrane_polypeptide_region';
  17242. --- ************************************************
  17243. --- *** relation: polypeptide_secondary_structure ***
  17244. --- *** relation type: VIEW ***
  17245. --- *** ***
  17246. --- *** A region of peptide with secondary struc ***
  17247. --- *** ture has hydrogen bonding along the pept ***
  17248. --- *** ide chain that causes a defined conforma ***
  17249. --- *** tion of the chain. ***
  17250. --- ************************************************
  17251. ---
  17252. CREATE VIEW polypeptide_secondary_structure AS
  17253. SELECT
  17254. feature_id AS polypeptide_secondary_structure_id,
  17255. feature.*
  17256. FROM
  17257. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17258. 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';
  17259. --- ************************************************
  17260. --- *** relation: polypeptide_structural_motif ***
  17261. --- *** relation type: VIEW ***
  17262. --- *** ***
  17263. --- *** Motif is a three-dimensional structural ***
  17264. --- *** element within the chain, which appears ***
  17265. --- *** also in a variety of other molecules. Un ***
  17266. --- *** like a domain, a motif does not need to ***
  17267. --- *** form a stable globular unit. ***
  17268. --- ************************************************
  17269. ---
  17270. CREATE VIEW polypeptide_structural_motif AS
  17271. SELECT
  17272. feature_id AS polypeptide_structural_motif_id,
  17273. feature.*
  17274. FROM
  17275. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17276. WHERE cvterm.name = 'coiled_coil' OR cvterm.name = 'helix_turn_helix' OR cvterm.name = 'polypeptide_structural_motif';
  17277. --- ************************************************
  17278. --- *** relation: coiled_coil ***
  17279. --- *** relation type: VIEW ***
  17280. --- *** ***
  17281. --- *** A coiled coil is a structural motif in p ***
  17282. --- *** roteins, in which alpha-helices are coil ***
  17283. --- *** ed together like the strands of a rope. ***
  17284. --- ************************************************
  17285. ---
  17286. CREATE VIEW coiled_coil AS
  17287. SELECT
  17288. feature_id AS coiled_coil_id,
  17289. feature.*
  17290. FROM
  17291. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17292. WHERE cvterm.name = 'coiled_coil';
  17293. --- ************************************************
  17294. --- *** relation: helix_turn_helix ***
  17295. --- *** relation type: VIEW ***
  17296. --- *** ***
  17297. --- *** A motif comprising two helices separated ***
  17298. --- *** by a turn. ***
  17299. --- ************************************************
  17300. ---
  17301. CREATE VIEW helix_turn_helix AS
  17302. SELECT
  17303. feature_id AS helix_turn_helix_id,
  17304. feature.*
  17305. FROM
  17306. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17307. WHERE cvterm.name = 'helix_turn_helix';
  17308. --- ************************************************
  17309. --- *** relation: polypeptide_sequencing_information ***
  17310. --- *** relation type: VIEW ***
  17311. --- *** ***
  17312. --- *** Incompatibility in the sequence due to s ***
  17313. --- *** ome experimental problem. ***
  17314. --- ************************************************
  17315. ---
  17316. CREATE VIEW polypeptide_sequencing_information AS
  17317. SELECT
  17318. feature_id AS polypeptide_sequencing_information_id,
  17319. feature.*
  17320. FROM
  17321. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17322. 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 = 'polypeptide_sequencing_information';
  17323. --- ************************************************
  17324. --- *** relation: non_adjacent_residues ***
  17325. --- *** relation type: VIEW ***
  17326. --- *** ***
  17327. --- *** Indicates that two consecutive residues ***
  17328. --- *** in a fragment sequence are not consecuti ***
  17329. --- *** ve in the full-length protein and that t ***
  17330. --- *** here are a number of unsequenced residue ***
  17331. --- *** s between them. ***
  17332. --- ************************************************
  17333. ---
  17334. CREATE VIEW non_adjacent_residues AS
  17335. SELECT
  17336. feature_id AS non_adjacent_residues_id,
  17337. feature.*
  17338. FROM
  17339. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17340. WHERE cvterm.name = 'non_adjacent_residues';
  17341. --- ************************************************
  17342. --- *** relation: non_terminal_residue ***
  17343. --- *** relation type: VIEW ***
  17344. --- *** ***
  17345. --- *** The residue at an extremity of the seque ***
  17346. --- *** nce is not the terminal residue. ***
  17347. --- ************************************************
  17348. ---
  17349. CREATE VIEW non_terminal_residue AS
  17350. SELECT
  17351. feature_id AS non_terminal_residue_id,
  17352. feature.*
  17353. FROM
  17354. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17355. WHERE cvterm.name = 'non_terminal_residue';
  17356. --- ************************************************
  17357. --- *** relation: sequence_conflict ***
  17358. --- *** relation type: VIEW ***
  17359. --- *** ***
  17360. --- *** Different sources report differing seque ***
  17361. --- *** nces. ***
  17362. --- ************************************************
  17363. ---
  17364. CREATE VIEW sequence_conflict AS
  17365. SELECT
  17366. feature_id AS sequence_conflict_id,
  17367. feature.*
  17368. FROM
  17369. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17370. WHERE cvterm.name = 'sequence_conflict';
  17371. --- ************************************************
  17372. --- *** relation: sequence_uncertainty ***
  17373. --- *** relation type: VIEW ***
  17374. --- *** ***
  17375. --- *** Describes the positions in a sequence wh ***
  17376. --- *** ere the authors are unsure about the seq ***
  17377. --- *** uence assignment. ***
  17378. --- ************************************************
  17379. ---
  17380. CREATE VIEW sequence_uncertainty AS
  17381. SELECT
  17382. feature_id AS sequence_uncertainty_id,
  17383. feature.*
  17384. FROM
  17385. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17386. WHERE cvterm.name = 'sequence_uncertainty';
  17387. --- ************************************************
  17388. --- *** relation: post_translationally_modified_region ***
  17389. --- *** relation type: VIEW ***
  17390. --- *** ***
  17391. --- *** A region where a transformation occurs i ***
  17392. --- *** n a protein after it has been synthesize ***
  17393. --- *** d. This which may regulate, stabilize, c ***
  17394. --- *** rosslink or introduce new chemical funct ***
  17395. --- *** ionalities in the protein. ***
  17396. --- ************************************************
  17397. ---
  17398. CREATE VIEW post_translationally_modified_region AS
  17399. SELECT
  17400. feature_id AS post_translationally_modified_region_id,
  17401. feature.*
  17402. FROM
  17403. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17404. WHERE cvterm.name = 'post_translationally_modified_region';
  17405. --- ************************************************
  17406. --- *** relation: polypeptide_metal_contact ***
  17407. --- *** relation type: VIEW ***
  17408. --- *** ***
  17409. --- *** Residue is part of a binding site for a ***
  17410. --- *** metal ion. ***
  17411. --- ************************************************
  17412. ---
  17413. CREATE VIEW polypeptide_metal_contact AS
  17414. SELECT
  17415. feature_id AS polypeptide_metal_contact_id,
  17416. feature.*
  17417. FROM
  17418. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17419. 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';
  17420. --- ************************************************
  17421. --- *** relation: protein_protein_contact ***
  17422. --- *** relation type: VIEW ***
  17423. --- *** ***
  17424. --- *** Residues involved in protein-protein int ***
  17425. --- *** eractions. ***
  17426. --- ************************************************
  17427. ---
  17428. CREATE VIEW protein_protein_contact AS
  17429. SELECT
  17430. feature_id AS protein_protein_contact_id,
  17431. feature.*
  17432. FROM
  17433. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17434. WHERE cvterm.name = 'protein_protein_contact';
  17435. --- ************************************************
  17436. --- *** relation: polypeptide_calcium_ion_contact_site ***
  17437. --- *** relation type: VIEW ***
  17438. --- *** ***
  17439. --- *** Residue involved in contact with calcium ***
  17440. --- *** . ***
  17441. --- ************************************************
  17442. ---
  17443. CREATE VIEW polypeptide_calcium_ion_contact_site AS
  17444. SELECT
  17445. feature_id AS polypeptide_calcium_ion_contact_site_id,
  17446. feature.*
  17447. FROM
  17448. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17449. WHERE cvterm.name = 'polypeptide_calcium_ion_contact_site';
  17450. --- ************************************************
  17451. --- *** relation: polypeptide_cobalt_ion_contact_site ***
  17452. --- *** relation type: VIEW ***
  17453. --- *** ***
  17454. --- *** Residue involved in contact with cobalt. ***
  17455. --- ************************************************
  17456. ---
  17457. CREATE VIEW polypeptide_cobalt_ion_contact_site AS
  17458. SELECT
  17459. feature_id AS polypeptide_cobalt_ion_contact_site_id,
  17460. feature.*
  17461. FROM
  17462. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17463. WHERE cvterm.name = 'polypeptide_cobalt_ion_contact_site';
  17464. --- ************************************************
  17465. --- *** relation: polypeptide_copper_ion_contact_site ***
  17466. --- *** relation type: VIEW ***
  17467. --- *** ***
  17468. --- *** Residue involved in contact with copper. ***
  17469. --- ************************************************
  17470. ---
  17471. CREATE VIEW polypeptide_copper_ion_contact_site AS
  17472. SELECT
  17473. feature_id AS polypeptide_copper_ion_contact_site_id,
  17474. feature.*
  17475. FROM
  17476. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17477. WHERE cvterm.name = 'polypeptide_copper_ion_contact_site';
  17478. --- ************************************************
  17479. --- *** relation: polypeptide_iron_ion_contact_site ***
  17480. --- *** relation type: VIEW ***
  17481. --- *** ***
  17482. --- *** Residue involved in contact with iron. ***
  17483. --- ************************************************
  17484. ---
  17485. CREATE VIEW polypeptide_iron_ion_contact_site AS
  17486. SELECT
  17487. feature_id AS polypeptide_iron_ion_contact_site_id,
  17488. feature.*
  17489. FROM
  17490. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17491. WHERE cvterm.name = 'polypeptide_iron_ion_contact_site';
  17492. --- ************************************************
  17493. --- *** relation: polypeptide_magnesium_ion_contact_site ***
  17494. --- *** relation type: VIEW ***
  17495. --- *** ***
  17496. --- *** Residue involved in contact with magnesi ***
  17497. --- *** um. ***
  17498. --- ************************************************
  17499. ---
  17500. CREATE VIEW polypeptide_magnesium_ion_contact_site AS
  17501. SELECT
  17502. feature_id AS polypeptide_magnesium_ion_contact_site_id,
  17503. feature.*
  17504. FROM
  17505. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17506. WHERE cvterm.name = 'polypeptide_magnesium_ion_contact_site';
  17507. --- ************************************************
  17508. --- *** relation: polypeptide_manganese_ion_contact_site ***
  17509. --- *** relation type: VIEW ***
  17510. --- *** ***
  17511. --- *** Residue involved in contact with mangane ***
  17512. --- *** se. ***
  17513. --- ************************************************
  17514. ---
  17515. CREATE VIEW polypeptide_manganese_ion_contact_site AS
  17516. SELECT
  17517. feature_id AS polypeptide_manganese_ion_contact_site_id,
  17518. feature.*
  17519. FROM
  17520. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17521. WHERE cvterm.name = 'polypeptide_manganese_ion_contact_site';
  17522. --- ************************************************
  17523. --- *** relation: polypeptide_molybdenum_ion_contact_site ***
  17524. --- *** relation type: VIEW ***
  17525. --- *** ***
  17526. --- *** Residue involved in contact with molybde ***
  17527. --- *** num. ***
  17528. --- ************************************************
  17529. ---
  17530. CREATE VIEW polypeptide_molybdenum_ion_contact_site AS
  17531. SELECT
  17532. feature_id AS polypeptide_molybdenum_ion_contact_site_id,
  17533. feature.*
  17534. FROM
  17535. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17536. WHERE cvterm.name = 'polypeptide_molybdenum_ion_contact_site';
  17537. --- ************************************************
  17538. --- *** relation: polypeptide_nickel_ion_contact_site ***
  17539. --- *** relation type: VIEW ***
  17540. --- *** ***
  17541. --- *** Residue involved in contact with nickel. ***
  17542. --- ************************************************
  17543. ---
  17544. CREATE VIEW polypeptide_nickel_ion_contact_site AS
  17545. SELECT
  17546. feature_id AS polypeptide_nickel_ion_contact_site_id,
  17547. feature.*
  17548. FROM
  17549. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17550. WHERE cvterm.name = 'polypeptide_nickel_ion_contact_site';
  17551. --- ************************************************
  17552. --- *** relation: polypeptide_tungsten_ion_contact_site ***
  17553. --- *** relation type: VIEW ***
  17554. --- *** ***
  17555. --- *** Residue involved in contact with tungste ***
  17556. --- *** n. ***
  17557. --- ************************************************
  17558. ---
  17559. CREATE VIEW polypeptide_tungsten_ion_contact_site AS
  17560. SELECT
  17561. feature_id AS polypeptide_tungsten_ion_contact_site_id,
  17562. feature.*
  17563. FROM
  17564. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17565. WHERE cvterm.name = 'polypeptide_tungsten_ion_contact_site';
  17566. --- ************************************************
  17567. --- *** relation: polypeptide_zinc_ion_contact_site ***
  17568. --- *** relation type: VIEW ***
  17569. --- *** ***
  17570. --- *** Residue involved in contact with zinc. ***
  17571. --- ************************************************
  17572. ---
  17573. CREATE VIEW polypeptide_zinc_ion_contact_site AS
  17574. SELECT
  17575. feature_id AS polypeptide_zinc_ion_contact_site_id,
  17576. feature.*
  17577. FROM
  17578. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17579. WHERE cvterm.name = 'polypeptide_zinc_ion_contact_site';
  17580. --- ************************************************
  17581. --- *** relation: catalytic_residue ***
  17582. --- *** relation type: VIEW ***
  17583. --- *** ***
  17584. --- *** Amino acid involved in the activity of a ***
  17585. --- *** n enzyme. ***
  17586. --- ************************************************
  17587. ---
  17588. CREATE VIEW catalytic_residue AS
  17589. SELECT
  17590. feature_id AS catalytic_residue_id,
  17591. feature.*
  17592. FROM
  17593. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17594. WHERE cvterm.name = 'catalytic_residue';
  17595. --- ************************************************
  17596. --- *** relation: polypeptide_ligand_contact ***
  17597. --- *** relation type: VIEW ***
  17598. --- *** ***
  17599. --- *** Residues which interact with a ligand. ***
  17600. --- ************************************************
  17601. ---
  17602. CREATE VIEW polypeptide_ligand_contact AS
  17603. SELECT
  17604. feature_id AS polypeptide_ligand_contact_id,
  17605. feature.*
  17606. FROM
  17607. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17608. WHERE cvterm.name = 'polypeptide_ligand_contact';
  17609. --- ************************************************
  17610. --- *** relation: asx_motif ***
  17611. --- *** relation type: VIEW ***
  17612. --- *** ***
  17613. --- *** A motif of five consecutive residues and ***
  17614. --- *** two H-bonds in which: Residue(i) is Asp ***
  17615. --- *** artate or Asparagine (Asx), side-chain O ***
  17616. --- *** of residue(i) is H-bonded to the main-c ***
  17617. --- *** hain NH of residue(i+2) or (i+3), main-c ***
  17618. --- *** hain CO of residue(i) is H-bonded to the ***
  17619. --- *** main-chain NH of residue(i+3) or (i+4). ***
  17620. --- ************************************************
  17621. ---
  17622. CREATE VIEW asx_motif AS
  17623. SELECT
  17624. feature_id AS asx_motif_id,
  17625. feature.*
  17626. FROM
  17627. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17628. WHERE cvterm.name = 'asx_motif';
  17629. --- ************************************************
  17630. --- *** relation: beta_bulge ***
  17631. --- *** relation type: VIEW ***
  17632. --- *** ***
  17633. --- *** A motif of three residues within a beta- ***
  17634. --- *** sheet in which the main chains of two co ***
  17635. --- *** nsecutive residues are H-bonded to that ***
  17636. --- *** of the third, and in which the dihedral ***
  17637. --- *** angles are as follows: Residue(i): -140 ***
  17638. --- *** degrees < phi(l) -20 degrees , -90 degre ***
  17639. --- *** es < psi(l) < 40 degrees. Residue (i+1): ***
  17640. --- *** -180 degrees < phi < -25 degrees or +12 ***
  17641. --- *** 0 degrees < phi < +180 degrees, +40 degr ***
  17642. --- *** ees < psi < +180 degrees or -180 degrees ***
  17643. --- *** < psi < -120 degrees. ***
  17644. --- ************************************************
  17645. ---
  17646. CREATE VIEW beta_bulge AS
  17647. SELECT
  17648. feature_id AS beta_bulge_id,
  17649. feature.*
  17650. FROM
  17651. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17652. WHERE cvterm.name = 'beta_bulge';
  17653. --- ************************************************
  17654. --- *** relation: beta_bulge_loop ***
  17655. --- *** relation type: VIEW ***
  17656. --- *** ***
  17657. --- *** A motif of three residues within a beta- ***
  17658. --- *** sheet consisting of two H-bonds. Beta bu ***
  17659. --- *** lge loops often occur at the loop ends o ***
  17660. --- *** f beta-hairpins. ***
  17661. --- ************************************************
  17662. ---
  17663. CREATE VIEW beta_bulge_loop AS
  17664. SELECT
  17665. feature_id AS beta_bulge_loop_id,
  17666. feature.*
  17667. FROM
  17668. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17669. WHERE cvterm.name = 'beta_bulge_loop_five' OR cvterm.name = 'beta_bulge_loop_six' OR cvterm.name = 'beta_bulge_loop';
  17670. --- ************************************************
  17671. --- *** relation: beta_bulge_loop_five ***
  17672. --- *** relation type: VIEW ***
  17673. --- *** ***
  17674. --- *** A motif of three residues within a beta- ***
  17675. --- *** sheet consisting of two H-bonds in which ***
  17676. --- *** : the main-chain NH of residue(i) is H-b ***
  17677. --- *** onded to the main-chain CO of residue(i+ ***
  17678. --- *** 4), the main-chain CO of residue i is H- ***
  17679. --- *** bonded to the main-chain NH of residue(i ***
  17680. --- *** +3), these loops have an RL nest at resi ***
  17681. --- *** dues i+2 and i+3. ***
  17682. --- ************************************************
  17683. ---
  17684. CREATE VIEW beta_bulge_loop_five AS
  17685. SELECT
  17686. feature_id AS beta_bulge_loop_five_id,
  17687. feature.*
  17688. FROM
  17689. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17690. WHERE cvterm.name = 'beta_bulge_loop_five';
  17691. --- ************************************************
  17692. --- *** relation: beta_bulge_loop_six ***
  17693. --- *** relation type: VIEW ***
  17694. --- *** ***
  17695. --- *** A motif of three residues within a beta- ***
  17696. --- *** sheet consisting of two H-bonds in which ***
  17697. --- *** : the main-chain NH of residue(i) is H-b ***
  17698. --- *** onded to the main-chain CO of residue(i+ ***
  17699. --- *** 5), the main-chain CO of residue i is H- ***
  17700. --- *** bonded to the main-chain NH of residue(i ***
  17701. --- *** +4), these loops have an RL nest at resi ***
  17702. --- *** dues i+3 and i+4. ***
  17703. --- ************************************************
  17704. ---
  17705. CREATE VIEW beta_bulge_loop_six AS
  17706. SELECT
  17707. feature_id AS beta_bulge_loop_six_id,
  17708. feature.*
  17709. FROM
  17710. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17711. WHERE cvterm.name = 'beta_bulge_loop_six';
  17712. --- ************************************************
  17713. --- *** relation: beta_strand ***
  17714. --- *** relation type: VIEW ***
  17715. --- *** ***
  17716. --- *** A beta strand describes a single length ***
  17717. --- *** of polypeptide chain that forms part of ***
  17718. --- *** a beta sheet. A single continuous stretc ***
  17719. --- *** h of amino acids adopting an extended co ***
  17720. --- *** nformation of hydrogen bonds between the ***
  17721. --- *** N-O and the C=O of another part of the ***
  17722. --- *** peptide. This forms a secondary protein ***
  17723. --- *** structure in which two or more extended ***
  17724. --- *** polypeptide regions are hydrogen-bonded ***
  17725. --- *** to one another in a planar array. ***
  17726. --- ************************************************
  17727. ---
  17728. CREATE VIEW beta_strand AS
  17729. SELECT
  17730. feature_id AS beta_strand_id,
  17731. feature.*
  17732. FROM
  17733. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17734. WHERE cvterm.name = 'antiparallel_beta_strand' OR cvterm.name = 'parallel_beta_strand' OR cvterm.name = 'beta_strand';
  17735. --- ************************************************
  17736. --- *** relation: antiparallel_beta_strand ***
  17737. --- *** relation type: VIEW ***
  17738. --- *** ***
  17739. --- *** A peptide region which hydrogen bonded t ***
  17740. --- *** o another region of peptide running in t ***
  17741. --- *** he oposite direction (one running N-term ***
  17742. --- *** inal to C-terminal and one running C-ter ***
  17743. --- *** minal to N-terminal). Hydrogen bonding o ***
  17744. --- *** ccurs between every other C=O from one s ***
  17745. --- *** trand to every other N-H on the adjacent ***
  17746. --- *** strand. In this case, if two atoms C-al ***
  17747. --- *** pha (i) and C-alpha (j) are adjacent in ***
  17748. --- *** two hydrogen-bonded beta strands, then t ***
  17749. --- *** hey form two mutual backbone hydrogen bo ***
  17750. --- *** nds to each other's flanking peptide gro ***
  17751. --- *** ups; this is known as a close pair of hy ***
  17752. --- *** drogen bonds. The peptide backbone dihed ***
  17753. --- *** ral angles (phi, psi) are about (-140 de ***
  17754. --- *** grees, 135 degrees) in antiparallel shee ***
  17755. --- *** ts. ***
  17756. --- ************************************************
  17757. ---
  17758. CREATE VIEW antiparallel_beta_strand AS
  17759. SELECT
  17760. feature_id AS antiparallel_beta_strand_id,
  17761. feature.*
  17762. FROM
  17763. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17764. WHERE cvterm.name = 'antiparallel_beta_strand';
  17765. --- ************************************************
  17766. --- *** relation: parallel_beta_strand ***
  17767. --- *** relation type: VIEW ***
  17768. --- *** ***
  17769. --- *** A peptide region which hydrogen bonded t ***
  17770. --- *** o another region of peptide running in t ***
  17771. --- *** he oposite direction (both running N-ter ***
  17772. --- *** minal to C-terminal). This orientation i ***
  17773. --- *** s slightly less stable because it introd ***
  17774. --- *** uces nonplanarity in the inter-strand hy ***
  17775. --- *** drogen bonding pattern. Hydrogen bonding ***
  17776. --- *** occurs between every other C=O from one ***
  17777. --- *** strand to every other N-H on the adjace ***
  17778. --- *** nt strand. In this case, if two atoms C- ***
  17779. --- *** alpha (i)and C-alpha (j) are adjacent in ***
  17780. --- *** two hydrogen-bonded beta strands, then ***
  17781. --- *** they do not hydrogen bond to each other; ***
  17782. --- *** rather, one residue forms hydrogen bond ***
  17783. --- *** s to the residues that flank the other ( ***
  17784. --- *** but not vice versa). For example, residu ***
  17785. --- *** e i may form hydrogen bonds to residues ***
  17786. --- *** j - 1 and j + 1; this is known as a wide ***
  17787. --- *** pair of hydrogen bonds. By contrast, re ***
  17788. --- *** sidue j may hydrogen-bond to different r ***
  17789. --- *** esidues altogether, or to none at all. T ***
  17790. --- *** he dihedral angles (phi, psi) are about ***
  17791. --- *** (-120 degrees, 115 degrees) in parallel ***
  17792. --- *** sheets. ***
  17793. --- ************************************************
  17794. ---
  17795. CREATE VIEW parallel_beta_strand AS
  17796. SELECT
  17797. feature_id AS parallel_beta_strand_id,
  17798. feature.*
  17799. FROM
  17800. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17801. WHERE cvterm.name = 'parallel_beta_strand';
  17802. --- ************************************************
  17803. --- *** relation: peptide_helix ***
  17804. --- *** relation type: VIEW ***
  17805. --- *** ***
  17806. --- *** A helix is a secondary_structure conform ***
  17807. --- *** ation where the peptide backbone forms a ***
  17808. --- *** coil. ***
  17809. --- ************************************************
  17810. ---
  17811. CREATE VIEW peptide_helix AS
  17812. SELECT
  17813. feature_id AS peptide_helix_id,
  17814. feature.*
  17815. FROM
  17816. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17817. 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';
  17818. --- ************************************************
  17819. --- *** relation: left_handed_peptide_helix ***
  17820. --- *** relation type: VIEW ***
  17821. --- *** ***
  17822. --- *** A left handed helix is a region of pepti ***
  17823. --- *** de where the coiled conformation turns i ***
  17824. --- *** n an anticlockwise, left handed screw. ***
  17825. --- ************************************************
  17826. ---
  17827. CREATE VIEW left_handed_peptide_helix AS
  17828. SELECT
  17829. feature_id AS left_handed_peptide_helix_id,
  17830. feature.*
  17831. FROM
  17832. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17833. WHERE cvterm.name = 'left_handed_peptide_helix';
  17834. --- ************************************************
  17835. --- *** relation: right_handed_peptide_helix ***
  17836. --- *** relation type: VIEW ***
  17837. --- *** ***
  17838. --- *** A right handed helix is a region of pept ***
  17839. --- *** ide where the coiled conformation turns ***
  17840. --- *** in a clockwise, right handed screw. ***
  17841. --- ************************************************
  17842. ---
  17843. CREATE VIEW right_handed_peptide_helix AS
  17844. SELECT
  17845. feature_id AS right_handed_peptide_helix_id,
  17846. feature.*
  17847. FROM
  17848. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17849. WHERE cvterm.name = 'alpha_helix' OR cvterm.name = 'pi_helix' OR cvterm.name = 'three_ten_helix' OR cvterm.name = 'right_handed_peptide_helix';
  17850. --- ************************************************
  17851. --- *** relation: alpha_helix ***
  17852. --- *** relation type: VIEW ***
  17853. --- *** ***
  17854. --- *** The helix has 3.6 residues per turn whic ***
  17855. --- *** h corersponds to a translation of 1.5 an ***
  17856. --- *** gstroms (= 0.15 nm) along the helical ax ***
  17857. --- *** is. Every backbone N-H group donates a h ***
  17858. --- *** ydrogen bond to the backbone C=O group o ***
  17859. --- *** f the amino acid four residues earlier. ***
  17860. --- ************************************************
  17861. ---
  17862. CREATE VIEW alpha_helix AS
  17863. SELECT
  17864. feature_id AS alpha_helix_id,
  17865. feature.*
  17866. FROM
  17867. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17868. WHERE cvterm.name = 'alpha_helix';
  17869. --- ************************************************
  17870. --- *** relation: pi_helix ***
  17871. --- *** relation type: VIEW ***
  17872. --- *** ***
  17873. --- *** The pi helix has 4.1 residues per turn a ***
  17874. --- *** nd a translation of 1.15 (=0.115 nm) al ***
  17875. --- *** ong the helical axis. The N-H group of a ***
  17876. --- *** n amino acid forms a hydrogen bond with ***
  17877. --- *** the C=O group of the amino acid five res ***
  17878. --- *** idues earlier. ***
  17879. --- ************************************************
  17880. ---
  17881. CREATE VIEW pi_helix AS
  17882. SELECT
  17883. feature_id AS pi_helix_id,
  17884. feature.*
  17885. FROM
  17886. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17887. WHERE cvterm.name = 'pi_helix';
  17888. --- ************************************************
  17889. --- *** relation: three_ten_helix ***
  17890. --- *** relation type: VIEW ***
  17891. --- *** ***
  17892. --- *** The 3-10 helix has 3 residues per turn w ***
  17893. --- *** ith a translation of 2.0 angstroms (=0.2 ***
  17894. --- *** nm) along the helical axis. The N-H gro ***
  17895. --- *** up of an amino acid forms a hydrogen bon ***
  17896. --- *** d with the C=O group of the amino acid t ***
  17897. --- *** hree residues earlier. ***
  17898. --- ************************************************
  17899. ---
  17900. CREATE VIEW three_ten_helix AS
  17901. SELECT
  17902. feature_id AS three_ten_helix_id,
  17903. feature.*
  17904. FROM
  17905. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17906. WHERE cvterm.name = 'three_ten_helix';
  17907. --- ************************************************
  17908. --- *** relation: polypeptide_nest_motif ***
  17909. --- *** relation type: VIEW ***
  17910. --- *** ***
  17911. --- *** A motif of two consecutive residues with ***
  17912. --- *** dihedral angles. Nest should not have P ***
  17913. --- *** roline as any residue. Nests frequently ***
  17914. --- *** occur as parts of other motifs such as S ***
  17915. --- *** chellman loops. ***
  17916. --- ************************************************
  17917. ---
  17918. CREATE VIEW polypeptide_nest_motif AS
  17919. SELECT
  17920. feature_id AS polypeptide_nest_motif_id,
  17921. feature.*
  17922. FROM
  17923. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17924. WHERE cvterm.name = 'polypeptide_nest_left_right_motif' OR cvterm.name = 'polypeptide_nest_right_left_motif' OR cvterm.name = 'polypeptide_nest_motif';
  17925. --- ************************************************
  17926. --- *** relation: polypeptide_nest_left_right_motif ***
  17927. --- *** relation type: VIEW ***
  17928. --- *** ***
  17929. --- *** A motif of two consecutive residues with ***
  17930. --- *** dihedral angles: Residue(i): +20 degree ***
  17931. --- *** s < phi < +140 degrees, -40 degrees < ps ***
  17932. --- *** i < +90 degrees. Residue(i+1): -140 degr ***
  17933. --- *** ees < phi < -20 degrees, -90 degrees < p ***
  17934. --- *** si < +40 degrees. ***
  17935. --- ************************************************
  17936. ---
  17937. CREATE VIEW polypeptide_nest_left_right_motif AS
  17938. SELECT
  17939. feature_id AS polypeptide_nest_left_right_motif_id,
  17940. feature.*
  17941. FROM
  17942. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17943. WHERE cvterm.name = 'polypeptide_nest_left_right_motif';
  17944. --- ************************************************
  17945. --- *** relation: polypeptide_nest_right_left_motif ***
  17946. --- *** relation type: VIEW ***
  17947. --- *** ***
  17948. --- *** A motif of two consecutive residues with ***
  17949. --- *** dihedral angles: Residue(i): -140 degre ***
  17950. --- *** es < phi < -20 degrees, -90 degrees < ps ***
  17951. --- *** i < +40 degrees. Residue(i+1): +20 degre ***
  17952. --- *** es < phi < +140 degrees, -40 degrees < p ***
  17953. --- *** si < +90 degrees. ***
  17954. --- ************************************************
  17955. ---
  17956. CREATE VIEW polypeptide_nest_right_left_motif AS
  17957. SELECT
  17958. feature_id AS polypeptide_nest_right_left_motif_id,
  17959. feature.*
  17960. FROM
  17961. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17962. WHERE cvterm.name = 'polypeptide_nest_right_left_motif';
  17963. --- ************************************************
  17964. --- *** relation: schellmann_loop ***
  17965. --- *** relation type: VIEW ***
  17966. --- *** ***
  17967. --- *** A motif of six or seven consecutive resi ***
  17968. --- *** dues that contains two H-bonds. ***
  17969. --- ************************************************
  17970. ---
  17971. CREATE VIEW schellmann_loop AS
  17972. SELECT
  17973. feature_id AS schellmann_loop_id,
  17974. feature.*
  17975. FROM
  17976. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17977. WHERE cvterm.name = 'schellmann_loop_seven' OR cvterm.name = 'schellmann_loop_six' OR cvterm.name = 'schellmann_loop';
  17978. --- ************************************************
  17979. --- *** relation: schellmann_loop_seven ***
  17980. --- *** relation type: VIEW ***
  17981. --- *** ***
  17982. --- *** Wild type: A motif of seven consecutive ***
  17983. --- *** residues that contains two H-bonds in wh ***
  17984. --- *** ich: the main-chain CO of residue(i) is ***
  17985. --- *** H-bonded to the main-chain NH of residue ***
  17986. --- *** (i+6), the main-chain CO of residue(i+1) ***
  17987. --- *** is H-bonded to the main-chain NH of res ***
  17988. --- *** idue(i+5). ***
  17989. --- ************************************************
  17990. ---
  17991. CREATE VIEW schellmann_loop_seven AS
  17992. SELECT
  17993. feature_id AS schellmann_loop_seven_id,
  17994. feature.*
  17995. FROM
  17996. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17997. WHERE cvterm.name = 'schellmann_loop_seven';
  17998. --- ************************************************
  17999. --- *** relation: schellmann_loop_six ***
  18000. --- *** relation type: VIEW ***
  18001. --- *** ***
  18002. --- *** Common Type: A motif of six consecutive ***
  18003. --- *** residues that contains two H-bonds in wh ***
  18004. --- *** ich: the main-chain CO of residue(i) is ***
  18005. --- *** H-bonded to the main-chain NH of residue ***
  18006. --- *** (i+5) the main-chain CO of residue(i+1) ***
  18007. --- *** is H-bonded to the main-chain NH of resi ***
  18008. --- *** due(i+4). ***
  18009. --- ************************************************
  18010. ---
  18011. CREATE VIEW schellmann_loop_six AS
  18012. SELECT
  18013. feature_id AS schellmann_loop_six_id,
  18014. feature.*
  18015. FROM
  18016. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18017. WHERE cvterm.name = 'schellmann_loop_six';
  18018. --- ************************************************
  18019. --- *** relation: serine_threonine_motif ***
  18020. --- *** relation type: VIEW ***
  18021. --- *** ***
  18022. --- *** A motif of five consecutive residues and ***
  18023. --- *** two hydrogen bonds in which: residue(i) ***
  18024. --- *** is Serine (S) or Threonine (T), the sid ***
  18025. --- *** e-chain O of residue(i) is H-bonded to t ***
  18026. --- *** he main-chain NH of residue(i+2) or (i+3 ***
  18027. --- *** ) , the main-chain CO group of residue(i ***
  18028. --- *** ) is H-bonded to the main-chain NH of re ***
  18029. --- *** sidue(i+3) or (i+4). ***
  18030. --- ************************************************
  18031. ---
  18032. CREATE VIEW serine_threonine_motif AS
  18033. SELECT
  18034. feature_id AS serine_threonine_motif_id,
  18035. feature.*
  18036. FROM
  18037. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18038. WHERE cvterm.name = 'serine_threonine_motif';
  18039. --- ************************************************
  18040. --- *** relation: serine_threonine_staple_motif ***
  18041. --- *** relation type: VIEW ***
  18042. --- *** ***
  18043. --- *** A motif of four or five consecutive resi ***
  18044. --- *** dues and one H-bond in which: residue(i) ***
  18045. --- *** is Serine (S) or Threonine (T), the sid ***
  18046. --- *** e-chain OH of residue(i) is H-bonded to ***
  18047. --- *** the main-chain CO of residue(i3) or (i4) ***
  18048. --- *** , Phi angles of residues(i1), (i2) and ( ***
  18049. --- *** i3) are negative. ***
  18050. --- ************************************************
  18051. ---
  18052. CREATE VIEW serine_threonine_staple_motif AS
  18053. SELECT
  18054. feature_id AS serine_threonine_staple_motif_id,
  18055. feature.*
  18056. FROM
  18057. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18058. WHERE cvterm.name = 'serine_threonine_staple_motif';
  18059. --- ************************************************
  18060. --- *** relation: polypeptide_turn_motif ***
  18061. --- *** relation type: VIEW ***
  18062. --- *** ***
  18063. --- *** A reversal in the direction of the backb ***
  18064. --- *** one of a protein that is stabilized by h ***
  18065. --- *** ydrogen bond between backbone NH and CO ***
  18066. --- *** groups, involving no more than 4 amino a ***
  18067. --- *** cid residues. ***
  18068. --- ************************************************
  18069. ---
  18070. CREATE VIEW polypeptide_turn_motif AS
  18071. SELECT
  18072. feature_id AS polypeptide_turn_motif_id,
  18073. feature.*
  18074. FROM
  18075. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18076. 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';
  18077. --- ************************************************
  18078. --- *** relation: asx_turn_left_handed_type_one ***
  18079. --- *** relation type: VIEW ***
  18080. --- *** ***
  18081. --- *** Left handed type I (dihedral angles):- R ***
  18082. --- *** esidue(i): -140 degrees < chi (1) -120 d ***
  18083. --- *** egrees < -20 degrees, -90 degrees < psi ***
  18084. --- *** +120 degrees < +40 degrees. Residue(i+1) ***
  18085. --- *** : -140 degrees < phi < -20 degrees, -90 ***
  18086. --- *** degrees < psi < +40 degrees. ***
  18087. --- ************************************************
  18088. ---
  18089. CREATE VIEW asx_turn_left_handed_type_one AS
  18090. SELECT
  18091. feature_id AS asx_turn_left_handed_type_one_id,
  18092. feature.*
  18093. FROM
  18094. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18095. WHERE cvterm.name = 'asx_turn_left_handed_type_one';
  18096. --- ************************************************
  18097. --- *** relation: asx_turn_left_handed_type_two ***
  18098. --- *** relation type: VIEW ***
  18099. --- *** ***
  18100. --- *** Left handed type II (dihedral angles):- ***
  18101. --- *** Residue(i): -140 degrees < chi (1) -120 ***
  18102. --- *** degrees < -20 degrees, +80 degrees < psi ***
  18103. --- *** +120 degrees < +180 degrees. Residue(i+ ***
  18104. --- *** 1): +20 degrees < phi < +140 degrees, -4 ***
  18105. --- *** 0 degrees < psi < +90 degrees. ***
  18106. --- ************************************************
  18107. ---
  18108. CREATE VIEW asx_turn_left_handed_type_two AS
  18109. SELECT
  18110. feature_id AS asx_turn_left_handed_type_two_id,
  18111. feature.*
  18112. FROM
  18113. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18114. WHERE cvterm.name = 'asx_turn_left_handed_type_two';
  18115. --- ************************************************
  18116. --- *** relation: asx_turn_right_handed_type_two ***
  18117. --- *** relation type: VIEW ***
  18118. --- *** ***
  18119. --- *** Right handed type II (dihedral angles):- ***
  18120. --- *** Residue(i): -140 degrees < chi (1) -120 ***
  18121. --- *** degrees < -20 degrees, +80 degrees < ps ***
  18122. --- *** i +120 degrees < +180 degrees. Residue(i ***
  18123. --- *** +1): +20 degrees < phi < +140 degrees, - ***
  18124. --- *** 40 degrees < psi < +90 degrees. ***
  18125. --- ************************************************
  18126. ---
  18127. CREATE VIEW asx_turn_right_handed_type_two AS
  18128. SELECT
  18129. feature_id AS asx_turn_right_handed_type_two_id,
  18130. feature.*
  18131. FROM
  18132. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18133. WHERE cvterm.name = 'asx_turn_right_handed_type_two';
  18134. --- ************************************************
  18135. --- *** relation: asx_turn_right_handed_type_one ***
  18136. --- *** relation type: VIEW ***
  18137. --- *** ***
  18138. --- *** Right handed type I (dihedral angles):- ***
  18139. --- *** Residue(i): -140 degrees < chi (1) -120 ***
  18140. --- *** degrees < -20 degrees, -90 degrees < psi ***
  18141. --- *** +120 degrees < +40 degrees. Residue(i+1 ***
  18142. --- *** ): -140 degrees < phi < -20 degrees, -90 ***
  18143. --- *** degrees < psi < +40 degrees. ***
  18144. --- ************************************************
  18145. ---
  18146. CREATE VIEW asx_turn_right_handed_type_one AS
  18147. SELECT
  18148. feature_id AS asx_turn_right_handed_type_one_id,
  18149. feature.*
  18150. FROM
  18151. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18152. WHERE cvterm.name = 'asx_turn_right_handed_type_one';
  18153. --- ************************************************
  18154. --- *** relation: beta_turn ***
  18155. --- *** relation type: VIEW ***
  18156. --- *** ***
  18157. --- *** A motif of four consecutive residues tha ***
  18158. --- *** t may contain one H-bond, which, if pres ***
  18159. --- *** ent, is between the main-chain CO of the ***
  18160. --- *** first residue and the main-chain NH of ***
  18161. --- *** the fourth. It is characterized by the d ***
  18162. --- *** ihedral angles of the second and third r ***
  18163. --- *** esidues, which are the basis for sub-cat ***
  18164. --- *** egorization. ***
  18165. --- ************************************************
  18166. ---
  18167. CREATE VIEW beta_turn AS
  18168. SELECT
  18169. feature_id AS beta_turn_id,
  18170. feature.*
  18171. FROM
  18172. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18173. 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';
  18174. --- ************************************************
  18175. --- *** relation: beta_turn_left_handed_type_one ***
  18176. --- *** relation type: VIEW ***
  18177. --- *** ***
  18178. --- *** Left handed type I:A motif of four conse ***
  18179. --- *** cutive residues that may contain one H-b ***
  18180. --- *** ond, which, if present, is between the m ***
  18181. --- *** ain-chain CO of the first residue and th ***
  18182. --- *** e main-chain NH of the fourth. It is cha ***
  18183. --- *** racterized by the dihedral angles:- Resi ***
  18184. --- *** due(i+1): -140 degrees > phi > -20 degre ***
  18185. --- *** es, -90 degrees > psi > +40 degrees. Res ***
  18186. --- *** idue(i+2): -140 degrees > phi > -20 degr ***
  18187. --- *** ees, -90 degrees > psi > +40 degrees. ***
  18188. --- ************************************************
  18189. ---
  18190. CREATE VIEW beta_turn_left_handed_type_one AS
  18191. SELECT
  18192. feature_id AS beta_turn_left_handed_type_one_id,
  18193. feature.*
  18194. FROM
  18195. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18196. WHERE cvterm.name = 'beta_turn_left_handed_type_one';
  18197. --- ************************************************
  18198. --- *** relation: beta_turn_left_handed_type_two ***
  18199. --- *** relation type: VIEW ***
  18200. --- *** ***
  18201. --- *** Left handed type II: A motif of four con ***
  18202. --- *** secutive residues that may contain one H ***
  18203. --- *** -bond, which, if present, is between the ***
  18204. --- *** main-chain CO of the first residue and ***
  18205. --- *** the main-chain NH of the fourth. It is c ***
  18206. --- *** haracterized by the dihedral angles: Res ***
  18207. --- *** idue(i+1): -140 degrees > phi > -20 degr ***
  18208. --- *** ees, +80 degrees > psi > +180 degrees. R ***
  18209. --- *** esidue(i+2): +20 degrees > phi > +140 de ***
  18210. --- *** grees, -40 degrees > psi > +90 degrees. ***
  18211. --- ************************************************
  18212. ---
  18213. CREATE VIEW beta_turn_left_handed_type_two AS
  18214. SELECT
  18215. feature_id AS beta_turn_left_handed_type_two_id,
  18216. feature.*
  18217. FROM
  18218. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18219. WHERE cvterm.name = 'beta_turn_left_handed_type_two';
  18220. --- ************************************************
  18221. --- *** relation: beta_turn_right_handed_type_one ***
  18222. --- *** relation type: VIEW ***
  18223. --- *** ***
  18224. --- *** Right handed type I:A motif of four cons ***
  18225. --- *** ecutive residues that may contain one H- ***
  18226. --- *** bond, which, if present, is between the ***
  18227. --- *** main-chain CO of the first residue and t ***
  18228. --- *** he main-chain NH of the fourth. It is ch ***
  18229. --- *** aracterized by the dihedral angles: Resi ***
  18230. --- *** due(i+1): -140 degrees < phi < -20 degre ***
  18231. --- *** es, -90 degrees < psi < +40 degrees. Res ***
  18232. --- *** idue(i+2): -140 degrees < phi < -20 degr ***
  18233. --- *** ees, -90 degrees < psi < +40 degrees. ***
  18234. --- ************************************************
  18235. ---
  18236. CREATE VIEW beta_turn_right_handed_type_one AS
  18237. SELECT
  18238. feature_id AS beta_turn_right_handed_type_one_id,
  18239. feature.*
  18240. FROM
  18241. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18242. WHERE cvterm.name = 'beta_turn_right_handed_type_one';
  18243. --- ************************************************
  18244. --- *** relation: beta_turn_right_handed_type_two ***
  18245. --- *** relation type: VIEW ***
  18246. --- *** ***
  18247. --- *** Right handed type II:A motif of four con ***
  18248. --- *** secutive residues that may contain one H ***
  18249. --- *** -bond, which, if present, is between the ***
  18250. --- *** main-chain CO of the first residue and ***
  18251. --- *** the main-chain NH of the fourth. It is c ***
  18252. --- *** haracterized by the dihedral angles: Res ***
  18253. --- *** idue(i+1): -140 degrees < phi < -20 degr ***
  18254. --- *** ees, +80 degrees < psi < +180 degrees. R ***
  18255. --- *** esidue(i+2): +20 degrees < phi < +140 de ***
  18256. --- *** grees, -40 degrees < psi < +90 degrees. ***
  18257. --- ************************************************
  18258. ---
  18259. CREATE VIEW beta_turn_right_handed_type_two AS
  18260. SELECT
  18261. feature_id AS beta_turn_right_handed_type_two_id,
  18262. feature.*
  18263. FROM
  18264. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18265. WHERE cvterm.name = 'beta_turn_right_handed_type_two';
  18266. --- ************************************************
  18267. --- *** relation: gamma_turn ***
  18268. --- *** relation type: VIEW ***
  18269. --- *** ***
  18270. --- *** Gamma turns, defined for 3 residues i, i ***
  18271. --- *** +1, i+2 if a hydrogen bond exists betwee ***
  18272. --- *** n residues i and i+2 and the phi and psi ***
  18273. --- *** angles of residue i+1 fall within 40 de ***
  18274. --- *** grees. ***
  18275. --- ************************************************
  18276. ---
  18277. CREATE VIEW gamma_turn AS
  18278. SELECT
  18279. feature_id AS gamma_turn_id,
  18280. feature.*
  18281. FROM
  18282. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18283. WHERE cvterm.name = 'gamma_turn_classic' OR cvterm.name = 'gamma_turn_inverse' OR cvterm.name = 'gamma_turn';
  18284. --- ************************************************
  18285. --- *** relation: gamma_turn_classic ***
  18286. --- *** relation type: VIEW ***
  18287. --- *** ***
  18288. --- *** Gamma turns, defined for 3 residues i, i ***
  18289. --- *** +1, i+2 if a hydrogen bond exists betwee ***
  18290. --- *** n residues i and i+2 and the phi and psi ***
  18291. --- *** angles of residue i+1 fall within 40 de ***
  18292. --- *** grees: phi(i+1)=75.0 - psi(i+1)=-64.0. ***
  18293. --- ************************************************
  18294. ---
  18295. CREATE VIEW gamma_turn_classic AS
  18296. SELECT
  18297. feature_id AS gamma_turn_classic_id,
  18298. feature.*
  18299. FROM
  18300. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18301. WHERE cvterm.name = 'gamma_turn_classic';
  18302. --- ************************************************
  18303. --- *** relation: gamma_turn_inverse ***
  18304. --- *** relation type: VIEW ***
  18305. --- *** ***
  18306. --- *** Gamma turns, defined for 3 residues i, i ***
  18307. --- *** +1, i+2 if a hydrogen bond exists betwee ***
  18308. --- *** n residues i and i+2 and the phi and psi ***
  18309. --- *** angles of residue i+1 fall within 40 de ***
  18310. --- *** grees: phi(i+1)=-79.0 - psi(i+1)=69.0. ***
  18311. --- ************************************************
  18312. ---
  18313. CREATE VIEW gamma_turn_inverse AS
  18314. SELECT
  18315. feature_id AS gamma_turn_inverse_id,
  18316. feature.*
  18317. FROM
  18318. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18319. WHERE cvterm.name = 'gamma_turn_inverse';
  18320. --- ************************************************
  18321. --- *** relation: serine_threonine_turn ***
  18322. --- *** relation type: VIEW ***
  18323. --- *** ***
  18324. --- *** A motif of three consecutive residues an ***
  18325. --- *** d one H-bond in which: residue(i) is Ser ***
  18326. --- *** ine (S) or Threonine (T), the side-chain ***
  18327. --- *** O of residue(i) is H-bonded to the main ***
  18328. --- *** -chain NH of residue(i+2). ***
  18329. --- ************************************************
  18330. ---
  18331. CREATE VIEW serine_threonine_turn AS
  18332. SELECT
  18333. feature_id AS serine_threonine_turn_id,
  18334. feature.*
  18335. FROM
  18336. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18337. 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';
  18338. --- ************************************************
  18339. --- *** relation: st_turn_left_handed_type_one ***
  18340. --- *** relation type: VIEW ***
  18341. --- *** ***
  18342. --- *** The peptide twists in an anticlockwise, ***
  18343. --- *** left handed manner. The dihedral angles ***
  18344. --- *** for this turn are: Residue(i): -140 degr ***
  18345. --- *** ees < chi(1) -120 degrees < -20 degrees, ***
  18346. --- *** -90 degrees psi +120 degrees < +40 degr ***
  18347. --- *** ees, residue(i+1): -140 degrees < phi < ***
  18348. --- *** -20 degrees, -90 < psi < +40 degrees. ***
  18349. --- ************************************************
  18350. ---
  18351. CREATE VIEW st_turn_left_handed_type_one AS
  18352. SELECT
  18353. feature_id AS st_turn_left_handed_type_one_id,
  18354. feature.*
  18355. FROM
  18356. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18357. WHERE cvterm.name = 'st_turn_left_handed_type_one';
  18358. --- ************************************************
  18359. --- *** relation: st_turn_left_handed_type_two ***
  18360. --- *** relation type: VIEW ***
  18361. --- *** ***
  18362. --- *** The peptide twists in an anticlockwise, ***
  18363. --- *** left handed manner. The dihedral angles ***
  18364. --- *** for this turn are: Residue(i): -140 degr ***
  18365. --- *** ees < chi(1) -120 degrees < -20 degrees, ***
  18366. --- *** +80 degrees psi +120 degrees < +180 deg ***
  18367. --- *** rees, residue(i+1): +20 degrees < phi < ***
  18368. --- *** +140 degrees, -40 < psi < +90 degrees. ***
  18369. --- ************************************************
  18370. ---
  18371. CREATE VIEW st_turn_left_handed_type_two AS
  18372. SELECT
  18373. feature_id AS st_turn_left_handed_type_two_id,
  18374. feature.*
  18375. FROM
  18376. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18377. WHERE cvterm.name = 'st_turn_left_handed_type_two';
  18378. --- ************************************************
  18379. --- *** relation: st_turn_right_handed_type_one ***
  18380. --- *** relation type: VIEW ***
  18381. --- *** ***
  18382. --- *** The peptide twists in an clockwise, righ ***
  18383. --- *** t handed manner. The dihedral angles for ***
  18384. --- *** this turn are: Residue(i): -140 degrees ***
  18385. --- *** < chi(1) -120 degrees < -20 degrees, -9 ***
  18386. --- *** 0 degrees psi +120 degrees < +40 degrees ***
  18387. --- *** , residue(i+1): -140 degrees < phi < -20 ***
  18388. --- *** degrees, -90 < psi < +40 degrees. ***
  18389. --- ************************************************
  18390. ---
  18391. CREATE VIEW st_turn_right_handed_type_one AS
  18392. SELECT
  18393. feature_id AS st_turn_right_handed_type_one_id,
  18394. feature.*
  18395. FROM
  18396. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18397. WHERE cvterm.name = 'st_turn_right_handed_type_one';
  18398. --- ************************************************
  18399. --- *** relation: st_turn_right_handed_type_two ***
  18400. --- *** relation type: VIEW ***
  18401. --- *** ***
  18402. --- *** The peptide twists in an clockwise, righ ***
  18403. --- *** t handed manner. The dihedral angles for ***
  18404. --- *** this turn are: Residue(i): -140 degrees ***
  18405. --- *** < chi(1) -120 degrees < -20 degrees, +8 ***
  18406. --- *** 0 degrees psi +120 degrees < +180 degree ***
  18407. --- *** s, residue(i+1): +20 degrees < phi < +14 ***
  18408. --- *** 0 degrees, -40 < psi < +90 degrees. ***
  18409. --- ************************************************
  18410. ---
  18411. CREATE VIEW st_turn_right_handed_type_two AS
  18412. SELECT
  18413. feature_id AS st_turn_right_handed_type_two_id,
  18414. feature.*
  18415. FROM
  18416. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18417. WHERE cvterm.name = 'st_turn_right_handed_type_two';
  18418. --- ************************************************
  18419. --- *** relation: polypeptide_variation_site ***
  18420. --- *** relation type: VIEW ***
  18421. --- *** ***
  18422. --- *** A site of sequence variation (alteration ***
  18423. --- *** ). Alternative sequence due to naturally ***
  18424. --- *** occuring events such as polymorphisms a ***
  18425. --- *** nd altermatve splicing or experimental m ***
  18426. --- *** ethods such as site directed mutagenesis ***
  18427. --- *** . ***
  18428. --- ************************************************
  18429. ---
  18430. CREATE VIEW polypeptide_variation_site AS
  18431. SELECT
  18432. feature_id AS polypeptide_variation_site_id,
  18433. feature.*
  18434. FROM
  18435. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18436. WHERE cvterm.name = 'natural_variant_site' OR cvterm.name = 'mutated_variant_site' OR cvterm.name = 'alternate_sequence_site' OR cvterm.name = 'polypeptide_variation_site';
  18437. --- ************************************************
  18438. --- *** relation: natural_variant_site ***
  18439. --- *** relation type: VIEW ***
  18440. --- *** ***
  18441. --- *** Describes the natural sequence variants ***
  18442. --- *** due to polymorphisms, disease-associated ***
  18443. --- *** mutations, RNA editing and variations b ***
  18444. --- *** etween strains, isolates or cultivars. ***
  18445. --- ************************************************
  18446. ---
  18447. CREATE VIEW natural_variant_site AS
  18448. SELECT
  18449. feature_id AS natural_variant_site_id,
  18450. feature.*
  18451. FROM
  18452. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18453. WHERE cvterm.name = 'natural_variant_site';
  18454. --- ************************************************
  18455. --- *** relation: mutated_variant_site ***
  18456. --- *** relation type: VIEW ***
  18457. --- *** ***
  18458. --- *** Site which has been experimentally alter ***
  18459. --- *** ed. ***
  18460. --- ************************************************
  18461. ---
  18462. CREATE VIEW mutated_variant_site AS
  18463. SELECT
  18464. feature_id AS mutated_variant_site_id,
  18465. feature.*
  18466. FROM
  18467. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18468. WHERE cvterm.name = 'mutated_variant_site';
  18469. --- ************************************************
  18470. --- *** relation: alternate_sequence_site ***
  18471. --- *** relation type: VIEW ***
  18472. --- *** ***
  18473. --- *** Description of sequence variants produce ***
  18474. --- *** d by alternative splicing, alternative p ***
  18475. --- *** romoter usage, alternative initiation an ***
  18476. --- *** d ribosomal frameshifting. ***
  18477. --- ************************************************
  18478. ---
  18479. CREATE VIEW alternate_sequence_site AS
  18480. SELECT
  18481. feature_id AS alternate_sequence_site_id,
  18482. feature.*
  18483. FROM
  18484. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18485. WHERE cvterm.name = 'alternate_sequence_site';
  18486. --- ************************************************
  18487. --- *** relation: beta_turn_type_six ***
  18488. --- *** relation type: VIEW ***
  18489. --- *** ***
  18490. --- *** A motif of four consecutive peptide resi ***
  18491. --- *** des of type VIa or type VIb and where th ***
  18492. --- *** e i+2 residue is cis-proline. ***
  18493. --- ************************************************
  18494. ---
  18495. CREATE VIEW beta_turn_type_six AS
  18496. SELECT
  18497. feature_id AS beta_turn_type_six_id,
  18498. feature.*
  18499. FROM
  18500. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18501. 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';
  18502. --- ************************************************
  18503. --- *** relation: beta_turn_type_six_a ***
  18504. --- *** relation type: VIEW ***
  18505. --- *** ***
  18506. --- *** A motif of four consecutive peptide resi ***
  18507. --- *** dues, of which the i+2 residue is prolin ***
  18508. --- *** e, and that may contain one H-bond, whic ***
  18509. --- *** h, if present, is between the main-chain ***
  18510. --- *** CO of the first residue and the main-ch ***
  18511. --- *** ain NH of the fourth and is characterize ***
  18512. --- *** d by the dihedral angles: Residue(i+1): ***
  18513. --- *** phi ~ -60 degrees, psi ~ 120 degrees. Re ***
  18514. --- *** sidue(i+2): phi ~ -90 degrees, psi ~ 0 d ***
  18515. --- *** egrees. ***
  18516. --- ************************************************
  18517. ---
  18518. CREATE VIEW beta_turn_type_six_a AS
  18519. SELECT
  18520. feature_id AS beta_turn_type_six_a_id,
  18521. feature.*
  18522. FROM
  18523. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18524. 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';
  18525. --- ************************************************
  18526. --- *** relation: beta_turn_type_six_a_one ***
  18527. --- *** relation type: VIEW ***
  18528. --- *** ***
  18529. --- ************************************************
  18530. ---
  18531. CREATE VIEW beta_turn_type_six_a_one AS
  18532. SELECT
  18533. feature_id AS beta_turn_type_six_a_one_id,
  18534. feature.*
  18535. FROM
  18536. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18537. WHERE cvterm.name = 'beta_turn_type_six_a_one';
  18538. --- ************************************************
  18539. --- *** relation: beta_turn_type_six_a_two ***
  18540. --- *** relation type: VIEW ***
  18541. --- *** ***
  18542. --- ************************************************
  18543. ---
  18544. CREATE VIEW beta_turn_type_six_a_two AS
  18545. SELECT
  18546. feature_id AS beta_turn_type_six_a_two_id,
  18547. feature.*
  18548. FROM
  18549. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18550. WHERE cvterm.name = 'beta_turn_type_six_a_two';
  18551. --- ************************************************
  18552. --- *** relation: beta_turn_type_six_b ***
  18553. --- *** relation type: VIEW ***
  18554. --- *** ***
  18555. --- *** A motif of four consecutive peptide resi ***
  18556. --- *** dues, of which the i+2 residue is prolin ***
  18557. --- *** e, and that may contain one H-bond, whic ***
  18558. --- *** h, if present, is between the main-chain ***
  18559. --- *** CO of the first residue and the main-ch ***
  18560. --- *** ain NH of the fourth and is characterize ***
  18561. --- *** d by the dihedral angles: Residue(i+1): ***
  18562. --- *** phi ~ -120 degrees, psi ~ 120 degrees. R ***
  18563. --- *** esidue(i+2): phi ~ -60 degrees, psi ~ 0 ***
  18564. --- *** degrees. ***
  18565. --- ************************************************
  18566. ---
  18567. CREATE VIEW beta_turn_type_six_b AS
  18568. SELECT
  18569. feature_id AS beta_turn_type_six_b_id,
  18570. feature.*
  18571. FROM
  18572. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18573. WHERE cvterm.name = 'beta_turn_type_six_b';
  18574. --- ************************************************
  18575. --- *** relation: beta_turn_type_eight ***
  18576. --- *** relation type: VIEW ***
  18577. --- *** ***
  18578. --- *** A motif of four consecutive peptide resi ***
  18579. --- *** dues that may contain one H-bond, which, ***
  18580. --- *** if present, is between the main-chain C ***
  18581. --- *** O of the first residue and the main-chai ***
  18582. --- *** n NH of the fourth and is characterized ***
  18583. --- *** by the dihedral angles: Residue(i+1): ph ***
  18584. --- *** i ~ -60 degrees, psi ~ -30 degrees. Resi ***
  18585. --- *** due(i+2): phi ~ -120 degrees, psi ~ 120 ***
  18586. --- *** degrees. ***
  18587. --- ************************************************
  18588. ---
  18589. CREATE VIEW beta_turn_type_eight AS
  18590. SELECT
  18591. feature_id AS beta_turn_type_eight_id,
  18592. feature.*
  18593. FROM
  18594. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18595. WHERE cvterm.name = 'beta_turn_type_eight';
  18596. --- ************************************************
  18597. --- *** relation: dre_motif ***
  18598. --- *** relation type: VIEW ***
  18599. --- *** ***
  18600. --- *** A sequence element characteristic of som ***
  18601. --- *** e RNA polymerase II promoters, usually l ***
  18602. --- *** ocated between -10 and -60 relative to t ***
  18603. --- *** he TSS. Consensus sequence is WATCGATW. ***
  18604. --- ************************************************
  18605. ---
  18606. CREATE VIEW dre_motif AS
  18607. SELECT
  18608. feature_id AS dre_motif_id,
  18609. feature.*
  18610. FROM
  18611. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18612. WHERE cvterm.name = 'DRE_motif';
  18613. --- ************************************************
  18614. --- *** relation: dmv4_motif ***
  18615. --- *** relation type: VIEW ***
  18616. --- *** ***
  18617. --- *** A sequence element characteristic of som ***
  18618. --- *** e RNA polymerase II promoters, located i ***
  18619. --- *** mmediately upstream of some TATA box ele ***
  18620. --- *** ments with respect to the TSS (+1). Cons ***
  18621. --- *** ensus sequence is YGGTCACACTR. Marked sp ***
  18622. --- *** atial preference within core promoter; t ***
  18623. --- *** end to occur near the TSS, although not ***
  18624. --- *** as tightly as INR (SO:0000014). ***
  18625. --- ************************************************
  18626. ---
  18627. CREATE VIEW dmv4_motif AS
  18628. SELECT
  18629. feature_id AS dmv4_motif_id,
  18630. feature.*
  18631. FROM
  18632. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18633. WHERE cvterm.name = 'DMv4_motif';
  18634. --- ************************************************
  18635. --- *** relation: e_box_motif ***
  18636. --- *** relation type: VIEW ***
  18637. --- *** ***
  18638. --- *** A sequence element characteristic of som ***
  18639. --- *** e RNA polymerase II promoters, usually l ***
  18640. --- *** ocated between -60 and +1 relative to th ***
  18641. --- *** e TSS. Consensus sequence is AWCAGCTGWT. ***
  18642. --- *** Tends to co-occur with DMv2 (SO:0001161 ***
  18643. --- *** ). Tends to not occur with DPE motif (SO ***
  18644. --- *** :0000015). ***
  18645. --- ************************************************
  18646. ---
  18647. CREATE VIEW e_box_motif AS
  18648. SELECT
  18649. feature_id AS e_box_motif_id,
  18650. feature.*
  18651. FROM
  18652. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18653. WHERE cvterm.name = 'E_box_motif';
  18654. --- ************************************************
  18655. --- *** relation: dmv5_motif ***
  18656. --- *** relation type: VIEW ***
  18657. --- *** ***
  18658. --- *** A sequence element characteristic of som ***
  18659. --- *** e RNA polymerase II promoters, usually l ***
  18660. --- *** ocated between -50 and -10 relative to t ***
  18661. --- *** he TSS. Consensus sequence is KTYRGTATWT ***
  18662. --- *** TT. Tends to co-occur with DMv4 (SO:0001 ***
  18663. --- *** 157) . Tends to not occur with DPE motif ***
  18664. --- *** (SO:0000015) or MTE (SO:0001162). ***
  18665. --- ************************************************
  18666. ---
  18667. CREATE VIEW dmv5_motif AS
  18668. SELECT
  18669. feature_id AS dmv5_motif_id,
  18670. feature.*
  18671. FROM
  18672. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18673. WHERE cvterm.name = 'DMv5_motif';
  18674. --- ************************************************
  18675. --- *** relation: dmv3_motif ***
  18676. --- *** relation type: VIEW ***
  18677. --- *** ***
  18678. --- *** A sequence element characteristic of som ***
  18679. --- *** e RNA polymerase II promoters, usually l ***
  18680. --- *** ocated between -30 and +15 relative to t ***
  18681. --- *** he TSS. Consensus sequence is KNNCAKCNCT ***
  18682. --- *** RNY. Tends to co-occur with DMv2 (SO:000 ***
  18683. --- *** 1161). Tends to not occur with DPE motif ***
  18684. --- *** (SO:0000015) or MTE (0001162). ***
  18685. --- ************************************************
  18686. ---
  18687. CREATE VIEW dmv3_motif AS
  18688. SELECT
  18689. feature_id AS dmv3_motif_id,
  18690. feature.*
  18691. FROM
  18692. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18693. WHERE cvterm.name = 'DMv3_motif';
  18694. --- ************************************************
  18695. --- *** relation: dmv2_motif ***
  18696. --- *** relation type: VIEW ***
  18697. --- *** ***
  18698. --- *** A sequence element characteristic of som ***
  18699. --- *** e RNA polymerase II promoters, usually l ***
  18700. --- *** ocated between -60 and -45 relative to t ***
  18701. --- *** he TSS. Consensus sequence is MKSYGGCARC ***
  18702. --- *** GSYSS. Tends to co-occur with DMv3 (SO:0 ***
  18703. --- *** 001160). Tends to not occur with DPE mot ***
  18704. --- *** if (SO:0000015) or MTE (SO:0001162). ***
  18705. --- ************************************************
  18706. ---
  18707. CREATE VIEW dmv2_motif AS
  18708. SELECT
  18709. feature_id AS dmv2_motif_id,
  18710. feature.*
  18711. FROM
  18712. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18713. WHERE cvterm.name = 'DMv2_motif';
  18714. --- ************************************************
  18715. --- *** relation: mte ***
  18716. --- *** relation type: VIEW ***
  18717. --- *** ***
  18718. --- *** A sequence element characteristic of som ***
  18719. --- *** e RNA polymerase II promoters, usually l ***
  18720. --- *** ocated between +20 and +30 relative to t ***
  18721. --- *** he TSS. Consensus sequence is CSARCSSAAC ***
  18722. --- *** GS. Tends to co-occur with INR motif (SO ***
  18723. --- *** :0000014). Tends to not occur with DPE m ***
  18724. --- *** otif (SO:0000015) or DMv5 (SO:0001159). ***
  18725. --- ************************************************
  18726. ---
  18727. CREATE VIEW mte AS
  18728. SELECT
  18729. feature_id AS mte_id,
  18730. feature.*
  18731. FROM
  18732. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18733. WHERE cvterm.name = 'MTE';
  18734. --- ************************************************
  18735. --- *** relation: inr1_motif ***
  18736. --- *** relation type: VIEW ***
  18737. --- *** ***
  18738. --- *** A promoter motif with consensus sequence ***
  18739. --- *** TCATTCG. ***
  18740. --- ************************************************
  18741. ---
  18742. CREATE VIEW inr1_motif AS
  18743. SELECT
  18744. feature_id AS inr1_motif_id,
  18745. feature.*
  18746. FROM
  18747. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18748. WHERE cvterm.name = 'INR1_motif';
  18749. --- ************************************************
  18750. --- *** relation: dpe1_motif ***
  18751. --- *** relation type: VIEW ***
  18752. --- *** ***
  18753. --- *** A promoter motif with consensus sequence ***
  18754. --- *** CGGACGT. ***
  18755. --- ************************************************
  18756. ---
  18757. CREATE VIEW dpe1_motif AS
  18758. SELECT
  18759. feature_id AS dpe1_motif_id,
  18760. feature.*
  18761. FROM
  18762. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18763. WHERE cvterm.name = 'DPE1_motif';
  18764. --- ************************************************
  18765. --- *** relation: dmv1_motif ***
  18766. --- *** relation type: VIEW ***
  18767. --- *** ***
  18768. --- *** A promoter motif with consensus sequence ***
  18769. --- *** CARCCCT. ***
  18770. --- ************************************************
  18771. ---
  18772. CREATE VIEW dmv1_motif AS
  18773. SELECT
  18774. feature_id AS dmv1_motif_id,
  18775. feature.*
  18776. FROM
  18777. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18778. WHERE cvterm.name = 'DMv1_motif';
  18779. --- ************************************************
  18780. --- *** relation: gaga_motif ***
  18781. --- *** relation type: VIEW ***
  18782. --- *** ***
  18783. --- *** A non directional promoter motif with co ***
  18784. --- *** nsensus sequence GAGAGCG. ***
  18785. --- ************************************************
  18786. ---
  18787. CREATE VIEW gaga_motif AS
  18788. SELECT
  18789. feature_id AS gaga_motif_id,
  18790. feature.*
  18791. FROM
  18792. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18793. WHERE cvterm.name = 'GAGA_motif';
  18794. --- ************************************************
  18795. --- *** relation: ndm2_motif ***
  18796. --- *** relation type: VIEW ***
  18797. --- *** ***
  18798. --- *** A non directional promoter motif with co ***
  18799. --- *** nsensus CGMYGYCR. ***
  18800. --- ************************************************
  18801. ---
  18802. CREATE VIEW ndm2_motif AS
  18803. SELECT
  18804. feature_id AS ndm2_motif_id,
  18805. feature.*
  18806. FROM
  18807. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18808. WHERE cvterm.name = 'NDM2_motif';
  18809. --- ************************************************
  18810. --- *** relation: ndm3_motif ***
  18811. --- *** relation type: VIEW ***
  18812. --- *** ***
  18813. --- *** A non directional promoter motif with co ***
  18814. --- *** nsensus sequence GAAAGCT. ***
  18815. --- ************************************************
  18816. ---
  18817. CREATE VIEW ndm3_motif AS
  18818. SELECT
  18819. feature_id AS ndm3_motif_id,
  18820. feature.*
  18821. FROM
  18822. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18823. WHERE cvterm.name = 'NDM3_motif';
  18824. --- ************************************************
  18825. --- *** relation: ds_rna_viral_sequence ***
  18826. --- *** relation type: VIEW ***
  18827. --- *** ***
  18828. --- *** A ds_RNA_viral_sequence is a viral_seque ***
  18829. --- *** nce that is the sequence of a virus that ***
  18830. --- *** exists as double stranded RNA. ***
  18831. --- ************************************************
  18832. ---
  18833. CREATE VIEW ds_rna_viral_sequence AS
  18834. SELECT
  18835. feature_id AS ds_rna_viral_sequence_id,
  18836. feature.*
  18837. FROM
  18838. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18839. WHERE cvterm.name = 'ds_RNA_viral_sequence';
  18840. --- ************************************************
  18841. --- *** relation: polinton ***
  18842. --- *** relation type: VIEW ***
  18843. --- *** ***
  18844. --- *** A kind of DNA transposon that populates ***
  18845. --- *** the genomes of protists, fungi, and anim ***
  18846. --- *** als, characterized by a unique set of pr ***
  18847. --- *** oteins necessary for their transposition ***
  18848. --- *** , including a protein-primed DNA polymer ***
  18849. --- *** ase B, retroviral integrase, cysteine pr ***
  18850. --- *** otease, and ATPase. Polintons are charac ***
  18851. --- *** terized by 6-bp target site duplications ***
  18852. --- *** , terminal-inverted repeats that are sev ***
  18853. --- *** eral hundred nucleotides long, and 5'-AG ***
  18854. --- *** and TC-3' termini. Polintons exist as a ***
  18855. --- *** utonomous and nonautonomous elements. ***
  18856. --- ************************************************
  18857. ---
  18858. CREATE VIEW polinton AS
  18859. SELECT
  18860. feature_id AS polinton_id,
  18861. feature.*
  18862. FROM
  18863. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18864. WHERE cvterm.name = 'polinton';
  18865. --- ************************************************
  18866. --- *** relation: rrna_21s ***
  18867. --- *** relation type: VIEW ***
  18868. --- *** ***
  18869. --- *** A component of the large ribosomal subun ***
  18870. --- *** it in mitochondrial rRNA. ***
  18871. --- ************************************************
  18872. ---
  18873. CREATE VIEW rrna_21s AS
  18874. SELECT
  18875. feature_id AS rrna_21s_id,
  18876. feature.*
  18877. FROM
  18878. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18879. WHERE cvterm.name = 'rRNA_21S';
  18880. --- ************************************************
  18881. --- *** relation: trna_region ***
  18882. --- *** relation type: VIEW ***
  18883. --- *** ***
  18884. --- *** A region of a tRNA. ***
  18885. --- ************************************************
  18886. ---
  18887. CREATE VIEW trna_region AS
  18888. SELECT
  18889. feature_id AS trna_region_id,
  18890. feature.*
  18891. FROM
  18892. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18893. 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';
  18894. --- ************************************************
  18895. --- *** relation: anticodon_loop ***
  18896. --- *** relation type: VIEW ***
  18897. --- *** ***
  18898. --- *** A sequence of seven nucleotide bases in ***
  18899. --- *** tRNA which contains the anticodon. It ha ***
  18900. --- *** s the sequence 5'-pyrimidine-purine-anti ***
  18901. --- *** codon-modified purine-any base-3. ***
  18902. --- ************************************************
  18903. ---
  18904. CREATE VIEW anticodon_loop AS
  18905. SELECT
  18906. feature_id AS anticodon_loop_id,
  18907. feature.*
  18908. FROM
  18909. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18910. WHERE cvterm.name = 'anticodon_loop';
  18911. --- ************************************************
  18912. --- *** relation: anticodon ***
  18913. --- *** relation type: VIEW ***
  18914. --- *** ***
  18915. --- *** A sequence of three nucleotide bases in ***
  18916. --- *** tRNA which recognizes a codon in mRNA. ***
  18917. --- ************************************************
  18918. ---
  18919. CREATE VIEW anticodon AS
  18920. SELECT
  18921. feature_id AS anticodon_id,
  18922. feature.*
  18923. FROM
  18924. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18925. WHERE cvterm.name = 'anticodon';
  18926. --- ************************************************
  18927. --- *** relation: cca_tail ***
  18928. --- *** relation type: VIEW ***
  18929. --- *** ***
  18930. --- *** Base sequence at the 3' end of a tRNA. T ***
  18931. --- *** he 3'-hydroxyl group on the terminal ade ***
  18932. --- *** nosine is the attachment point for the a ***
  18933. --- *** mino acid. ***
  18934. --- ************************************************
  18935. ---
  18936. CREATE VIEW cca_tail AS
  18937. SELECT
  18938. feature_id AS cca_tail_id,
  18939. feature.*
  18940. FROM
  18941. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18942. WHERE cvterm.name = 'CCA_tail';
  18943. --- ************************************************
  18944. --- *** relation: dhu_loop ***
  18945. --- *** relation type: VIEW ***
  18946. --- *** ***
  18947. --- *** Non-base-paired sequence of nucleotide b ***
  18948. --- *** ases in tRNA. It contains several dihydr ***
  18949. --- *** ouracil residues. ***
  18950. --- ************************************************
  18951. ---
  18952. CREATE VIEW dhu_loop AS
  18953. SELECT
  18954. feature_id AS dhu_loop_id,
  18955. feature.*
  18956. FROM
  18957. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18958. WHERE cvterm.name = 'DHU_loop';
  18959. --- ************************************************
  18960. --- *** relation: t_loop ***
  18961. --- *** relation type: VIEW ***
  18962. --- *** ***
  18963. --- *** Non-base-paired sequence of three nucleo ***
  18964. --- *** tide bases in tRNA. It has sequence T-Ps ***
  18965. --- *** i-C. ***
  18966. --- ************************************************
  18967. ---
  18968. CREATE VIEW t_loop AS
  18969. SELECT
  18970. feature_id AS t_loop_id,
  18971. feature.*
  18972. FROM
  18973. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18974. WHERE cvterm.name = 'T_loop';
  18975. --- ************************************************
  18976. --- *** relation: pyrrolysine_trna_primary_transcript ***
  18977. --- *** relation type: VIEW ***
  18978. --- *** ***
  18979. --- *** A primary transcript encoding pyrrolysyl ***
  18980. --- *** tRNA (SO:0000766). ***
  18981. --- ************************************************
  18982. ---
  18983. CREATE VIEW pyrrolysine_trna_primary_transcript AS
  18984. SELECT
  18985. feature_id AS pyrrolysine_trna_primary_transcript_id,
  18986. feature.*
  18987. FROM
  18988. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18989. WHERE cvterm.name = 'pyrrolysine_tRNA_primary_transcript';
  18990. --- ************************************************
  18991. --- *** relation: u3_snorna ***
  18992. --- *** relation type: VIEW ***
  18993. --- *** ***
  18994. --- *** U3 snoRNA is a member of the box C/D cla ***
  18995. --- *** ss of small nucleolar RNAs. The U3 snoRN ***
  18996. --- *** A secondary structure is characterised b ***
  18997. --- *** y a small 5' domain (with boxes A and A' ***
  18998. --- *** ), and a larger 3' domain (with boxes B, ***
  18999. --- *** C, C', and D), the two domains being li ***
  19000. --- *** nked by a single-stranded hinge. Boxes B ***
  19001. --- *** and C form the B/C motif, which appears ***
  19002. --- *** to be exclusive to U3 snoRNAs, and boxe ***
  19003. --- *** s C' and D form the C'/D motif. The latt ***
  19004. --- *** er is functionally similar to the C/D mo ***
  19005. --- *** tifs found in other snoRNAs. The 5' doma ***
  19006. --- *** in and the hinge region act as a pre-rRN ***
  19007. --- *** A-binding domain. The 3' domain has cons ***
  19008. --- *** erved protein-binding sites. Both the bo ***
  19009. --- *** x B/C and box C'/D motifs are sufficient ***
  19010. --- *** for nuclear retention of U3 snoRNA. The ***
  19011. --- *** box C'/D motif is also necessary for nu ***
  19012. --- *** cleolar localization, stability and hype ***
  19013. --- *** rmethylation of U3 snoRNA. Both box B/C ***
  19014. --- *** and C'/D motifs are involved in specific ***
  19015. --- *** protein interactions and are necessary ***
  19016. --- *** for the rRNA processing functions of U3 ***
  19017. --- *** snoRNA. ***
  19018. --- ************************************************
  19019. ---
  19020. CREATE VIEW u3_snorna AS
  19021. SELECT
  19022. feature_id AS u3_snorna_id,
  19023. feature.*
  19024. FROM
  19025. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19026. WHERE cvterm.name = 'U3_snoRNA';
  19027. --- ************************************************
  19028. --- *** relation: au_rich_element ***
  19029. --- *** relation type: VIEW ***
  19030. --- *** ***
  19031. --- *** A cis-acting element found in the 3' UTR ***
  19032. --- *** of some mRNA which is rich in AUUUA pen ***
  19033. --- *** tamers. Messenger RNAs bearing multiple ***
  19034. --- *** AU-rich elements are often unstable. ***
  19035. --- ************************************************
  19036. ---
  19037. CREATE VIEW au_rich_element AS
  19038. SELECT
  19039. feature_id AS au_rich_element_id,
  19040. feature.*
  19041. FROM
  19042. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19043. WHERE cvterm.name = 'AU_rich_element';
  19044. --- ************************************************
  19045. --- *** relation: bruno_response_element ***
  19046. --- *** relation type: VIEW ***
  19047. --- *** ***
  19048. --- *** A cis-acting element found in the 3' UTR ***
  19049. --- *** of some mRNA which is bound by the Dros ***
  19050. --- *** ophila Bruno protein and its homologs. ***
  19051. --- ************************************************
  19052. ---
  19053. CREATE VIEW bruno_response_element AS
  19054. SELECT
  19055. feature_id AS bruno_response_element_id,
  19056. feature.*
  19057. FROM
  19058. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19059. WHERE cvterm.name = 'Bruno_response_element';
  19060. --- ************************************************
  19061. --- *** relation: iron_responsive_element ***
  19062. --- *** relation type: VIEW ***
  19063. --- *** ***
  19064. --- *** A regulatory sequence found in the 5' an ***
  19065. --- *** d 3' UTRs of many mRNAs which encode iro ***
  19066. --- *** n-binding proteins. It has a hairpin str ***
  19067. --- *** ucture and is recognized by trans-acting ***
  19068. --- *** proteins known as iron-regulatory prote ***
  19069. --- *** ins. ***
  19070. --- ************************************************
  19071. ---
  19072. CREATE VIEW iron_responsive_element AS
  19073. SELECT
  19074. feature_id AS iron_responsive_element_id,
  19075. feature.*
  19076. FROM
  19077. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19078. WHERE cvterm.name = 'iron_responsive_element';
  19079. --- ************************************************
  19080. --- *** relation: morpholino ***
  19081. --- *** relation type: VIEW ***
  19082. --- *** ***
  19083. --- *** An attribute describing a sequence compo ***
  19084. --- *** sed of nucleobases bound to a morpholino ***
  19085. --- *** backbone. A morpholino backbone consist ***
  19086. --- *** s of morpholine (CHEBI:34856) rings conn ***
  19087. --- *** ected by phosphorodiamidate linkages. ***
  19088. --- ************************************************
  19089. ---
  19090. CREATE VIEW morpholino AS
  19091. SELECT
  19092. feature_id AS morpholino_id,
  19093. feature.*
  19094. FROM
  19095. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19096. WHERE cvterm.name = 'morpholino';
  19097. --- ************************************************
  19098. --- *** relation: pna ***
  19099. --- *** relation type: VIEW ***
  19100. --- *** ***
  19101. --- *** An attribute describing a sequence compo ***
  19102. --- *** sed of peptide nucleic acid (CHEBI:48021 ***
  19103. --- *** ), a chemical consisting of nucleobases ***
  19104. --- *** bound to a backbone composed of repeatin ***
  19105. --- *** g N-(2-aminoethyl)-glycine units linked ***
  19106. --- *** by peptide bonds. The purine and pyrimid ***
  19107. --- *** ine bases are linked to the backbone by ***
  19108. --- *** methylene carbonyl bonds. ***
  19109. --- ************************************************
  19110. ---
  19111. CREATE VIEW pna AS
  19112. SELECT
  19113. feature_id AS pna_id,
  19114. feature.*
  19115. FROM
  19116. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19117. WHERE cvterm.name = 'PNA';
  19118. --- ************************************************
  19119. --- *** relation: enzymatic ***
  19120. --- *** relation type: VIEW ***
  19121. --- *** ***
  19122. --- *** An attribute describing the sequence of ***
  19123. --- *** a transcript that has catalytic activity ***
  19124. --- *** with or without an associated ribonucle ***
  19125. --- *** oprotein. ***
  19126. --- ************************************************
  19127. ---
  19128. CREATE VIEW enzymatic AS
  19129. SELECT
  19130. feature_id AS enzymatic_id,
  19131. feature.*
  19132. FROM
  19133. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19134. WHERE cvterm.name = 'ribozymic' OR cvterm.name = 'enzymatic';
  19135. --- ************************************************
  19136. --- *** relation: ribozymic ***
  19137. --- *** relation type: VIEW ***
  19138. --- *** ***
  19139. --- *** An attribute describing the sequence of ***
  19140. --- *** a transcript that has catalytic activity ***
  19141. --- *** even without an associated ribonucleopr ***
  19142. --- *** otein. ***
  19143. --- ************************************************
  19144. ---
  19145. CREATE VIEW ribozymic AS
  19146. SELECT
  19147. feature_id AS ribozymic_id,
  19148. feature.*
  19149. FROM
  19150. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19151. WHERE cvterm.name = 'ribozymic';
  19152. --- ************************************************
  19153. --- *** relation: pseudouridylation_guide_snorna ***
  19154. --- *** relation type: VIEW ***
  19155. --- *** ***
  19156. --- *** A snoRNA that specifies the site of pseu ***
  19157. --- *** douridylation in an RNA molecule by base ***
  19158. --- *** pairing with a short sequence around th ***
  19159. --- *** e target residue. ***
  19160. --- ************************************************
  19161. ---
  19162. CREATE VIEW pseudouridylation_guide_snorna AS
  19163. SELECT
  19164. feature_id AS pseudouridylation_guide_snorna_id,
  19165. feature.*
  19166. FROM
  19167. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19168. WHERE cvterm.name = 'pseudouridylation_guide_snoRNA';
  19169. --- ************************************************
  19170. --- *** relation: lna ***
  19171. --- *** relation type: VIEW ***
  19172. --- *** ***
  19173. --- *** An attribute describing a sequence consi ***
  19174. --- *** sting of nucleobases attached to a repea ***
  19175. --- *** ting unit made of 'locked' deoxyribose r ***
  19176. --- *** ings connected to a phosphate backbone. ***
  19177. --- *** The deoxyribose unit's conformation is ' ***
  19178. --- *** locked' by a 2'-C,4'-C-oxymethylene link ***
  19179. --- *** . ***
  19180. --- ************************************************
  19181. ---
  19182. CREATE VIEW lna AS
  19183. SELECT
  19184. feature_id AS lna_id,
  19185. feature.*
  19186. FROM
  19187. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19188. WHERE cvterm.name = 'LNA';
  19189. --- ************************************************
  19190. --- *** relation: lna_oligo ***
  19191. --- *** relation type: VIEW ***
  19192. --- *** ***
  19193. --- *** An oligo composed of LNA residues. ***
  19194. --- ************************************************
  19195. ---
  19196. CREATE VIEW lna_oligo AS
  19197. SELECT
  19198. feature_id AS lna_oligo_id,
  19199. feature.*
  19200. FROM
  19201. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19202. WHERE cvterm.name = 'LNA_oligo';
  19203. --- ************************************************
  19204. --- *** relation: tna ***
  19205. --- *** relation type: VIEW ***
  19206. --- *** ***
  19207. --- *** An attribute describing a sequence consi ***
  19208. --- *** sting of nucleobases attached to a repea ***
  19209. --- *** ting unit made of threose rings connecte ***
  19210. --- *** d to a phosphate backbone. ***
  19211. --- ************************************************
  19212. ---
  19213. CREATE VIEW tna AS
  19214. SELECT
  19215. feature_id AS tna_id,
  19216. feature.*
  19217. FROM
  19218. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19219. WHERE cvterm.name = 'TNA';
  19220. --- ************************************************
  19221. --- *** relation: tna_oligo ***
  19222. --- *** relation type: VIEW ***
  19223. --- *** ***
  19224. --- *** An oligo composed of TNA residues. ***
  19225. --- ************************************************
  19226. ---
  19227. CREATE VIEW tna_oligo AS
  19228. SELECT
  19229. feature_id AS tna_oligo_id,
  19230. feature.*
  19231. FROM
  19232. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19233. WHERE cvterm.name = 'TNA_oligo';
  19234. --- ************************************************
  19235. --- *** relation: gna ***
  19236. --- *** relation type: VIEW ***
  19237. --- *** ***
  19238. --- *** An attribute describing a sequence consi ***
  19239. --- *** sting of nucleobases attached to a repea ***
  19240. --- *** ting unit made of an acyclic three-carbo ***
  19241. --- *** n propylene glycol connected to a phosph ***
  19242. --- *** ate backbone. It has two enantiomeric fo ***
  19243. --- *** rms, (R)-GNA and (S)-GNA. ***
  19244. --- ************************************************
  19245. ---
  19246. CREATE VIEW gna AS
  19247. SELECT
  19248. feature_id AS gna_id,
  19249. feature.*
  19250. FROM
  19251. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19252. WHERE cvterm.name = 'R_GNA' OR cvterm.name = 'S_GNA' OR cvterm.name = 'GNA';
  19253. --- ************************************************
  19254. --- *** relation: gna_oligo ***
  19255. --- *** relation type: VIEW ***
  19256. --- *** ***
  19257. --- *** An oligo composed of GNA residues. ***
  19258. --- ************************************************
  19259. ---
  19260. CREATE VIEW gna_oligo AS
  19261. SELECT
  19262. feature_id AS gna_oligo_id,
  19263. feature.*
  19264. FROM
  19265. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19266. WHERE cvterm.name = 'R_GNA_oligo' OR cvterm.name = 'S_GNA_oligo' OR cvterm.name = 'GNA_oligo';
  19267. --- ************************************************
  19268. --- *** relation: r_gna ***
  19269. --- *** relation type: VIEW ***
  19270. --- *** ***
  19271. --- *** An attribute describing a GNA sequence i ***
  19272. --- *** n the (R)-GNA enantiomer. ***
  19273. --- ************************************************
  19274. ---
  19275. CREATE VIEW r_gna AS
  19276. SELECT
  19277. feature_id AS r_gna_id,
  19278. feature.*
  19279. FROM
  19280. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19281. WHERE cvterm.name = 'R_GNA';
  19282. --- ************************************************
  19283. --- *** relation: r_gna_oligo ***
  19284. --- *** relation type: VIEW ***
  19285. --- *** ***
  19286. --- *** An oligo composed of (R)-GNA residues. ***
  19287. --- ************************************************
  19288. ---
  19289. CREATE VIEW r_gna_oligo AS
  19290. SELECT
  19291. feature_id AS r_gna_oligo_id,
  19292. feature.*
  19293. FROM
  19294. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19295. WHERE cvterm.name = 'R_GNA_oligo';
  19296. --- ************************************************
  19297. --- *** relation: s_gna ***
  19298. --- *** relation type: VIEW ***
  19299. --- *** ***
  19300. --- *** An attribute describing a GNA sequence i ***
  19301. --- *** n the (S)-GNA enantiomer. ***
  19302. --- ************************************************
  19303. ---
  19304. CREATE VIEW s_gna AS
  19305. SELECT
  19306. feature_id AS s_gna_id,
  19307. feature.*
  19308. FROM
  19309. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19310. WHERE cvterm.name = 'S_GNA';
  19311. --- ************************************************
  19312. --- *** relation: s_gna_oligo ***
  19313. --- *** relation type: VIEW ***
  19314. --- *** ***
  19315. --- *** An oligo composed of (S)-GNA residues. ***
  19316. --- ************************************************
  19317. ---
  19318. CREATE VIEW s_gna_oligo AS
  19319. SELECT
  19320. feature_id AS s_gna_oligo_id,
  19321. feature.*
  19322. FROM
  19323. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19324. WHERE cvterm.name = 'S_GNA_oligo';
  19325. --- ************************************************
  19326. --- *** relation: ds_dna_viral_sequence ***
  19327. --- *** relation type: VIEW ***
  19328. --- *** ***
  19329. --- *** A ds_DNA_viral_sequence is a viral_seque ***
  19330. --- *** nce that is the sequence of a virus that ***
  19331. --- *** exists as double stranded DNA. ***
  19332. --- ************************************************
  19333. ---
  19334. CREATE VIEW ds_dna_viral_sequence AS
  19335. SELECT
  19336. feature_id AS ds_dna_viral_sequence_id,
  19337. feature.*
  19338. FROM
  19339. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19340. WHERE cvterm.name = 'ds_DNA_viral_sequence';
  19341. --- ************************************************
  19342. --- *** relation: ss_rna_viral_sequence ***
  19343. --- *** relation type: VIEW ***
  19344. --- *** ***
  19345. --- *** A ss_RNA_viral_sequence is a viral_seque ***
  19346. --- *** nce that is the sequence of a virus that ***
  19347. --- *** exists as single stranded RNA. ***
  19348. --- ************************************************
  19349. ---
  19350. CREATE VIEW ss_rna_viral_sequence AS
  19351. SELECT
  19352. feature_id AS ss_rna_viral_sequence_id,
  19353. feature.*
  19354. FROM
  19355. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19356. 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';
  19357. --- ************************************************
  19358. --- *** relation: negative_sense_ssrna_viral_sequence ***
  19359. --- *** relation type: VIEW ***
  19360. --- *** ***
  19361. --- *** A negative_sense_RNA_viral_sequence is a ***
  19362. --- *** ss_RNA_viral_sequence that is the seque ***
  19363. --- *** nce of a single stranded RNA virus that ***
  19364. --- *** is complementary to mRNA and must be con ***
  19365. --- *** verted to positive sense RNA by RNA poly ***
  19366. --- *** merase before translation. ***
  19367. --- ************************************************
  19368. ---
  19369. CREATE VIEW negative_sense_ssrna_viral_sequence AS
  19370. SELECT
  19371. feature_id AS negative_sense_ssrna_viral_sequence_id,
  19372. feature.*
  19373. FROM
  19374. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19375. WHERE cvterm.name = 'negative_sense_ssRNA_viral_sequence';
  19376. --- ************************************************
  19377. --- *** relation: positive_sense_ssrna_viral_sequence ***
  19378. --- *** relation type: VIEW ***
  19379. --- *** ***
  19380. --- *** A positive_sense_RNA_viral_sequence is a ***
  19381. --- *** ss_RNA_viral_sequence that is the seque ***
  19382. --- *** nce of a single stranded RNA virus that ***
  19383. --- *** can be immediately translated by the hos ***
  19384. --- *** t. ***
  19385. --- ************************************************
  19386. ---
  19387. CREATE VIEW positive_sense_ssrna_viral_sequence AS
  19388. SELECT
  19389. feature_id AS positive_sense_ssrna_viral_sequence_id,
  19390. feature.*
  19391. FROM
  19392. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19393. WHERE cvterm.name = 'positive_sense_ssRNA_viral_sequence';
  19394. --- ************************************************
  19395. --- *** relation: ambisense_ssrna_viral_sequence ***
  19396. --- *** relation type: VIEW ***
  19397. --- *** ***
  19398. --- *** A ambisense_RNA_virus is a ss_RNA_viral_ ***
  19399. --- *** sequence that is the sequence of a singl ***
  19400. --- *** e stranded RNA virus with both messenger ***
  19401. --- *** and anti messenger polarity. ***
  19402. --- ************************************************
  19403. ---
  19404. CREATE VIEW ambisense_ssrna_viral_sequence AS
  19405. SELECT
  19406. feature_id AS ambisense_ssrna_viral_sequence_id,
  19407. feature.*
  19408. FROM
  19409. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19410. WHERE cvterm.name = 'ambisense_ssRNA_viral_sequence';
  19411. --- ************************************************
  19412. --- *** relation: rna_polymerase_promoter ***
  19413. --- *** relation type: VIEW ***
  19414. --- *** ***
  19415. --- *** A region (DNA) to which RNA polymerase b ***
  19416. --- *** inds, to begin transcription. ***
  19417. --- ************************************************
  19418. ---
  19419. CREATE VIEW rna_polymerase_promoter AS
  19420. SELECT
  19421. feature_id AS rna_polymerase_promoter_id,
  19422. feature.*
  19423. FROM
  19424. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19425. 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_III_promoter_type_1' OR cvterm.name = 'RNApol_III_promoter_type_2' OR cvterm.name = 'RNApol_III_promoter_type_3' 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';
  19426. --- ************************************************
  19427. --- *** relation: phage_rna_polymerase_promoter ***
  19428. --- *** relation type: VIEW ***
  19429. --- *** ***
  19430. --- *** A region (DNA) to which Bacteriophage RN ***
  19431. --- *** A polymerase binds, to begin transcripti ***
  19432. --- *** on. ***
  19433. --- ************************************************
  19434. ---
  19435. CREATE VIEW phage_rna_polymerase_promoter AS
  19436. SELECT
  19437. feature_id AS phage_rna_polymerase_promoter_id,
  19438. feature.*
  19439. FROM
  19440. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19441. 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';
  19442. --- ************************************************
  19443. --- *** relation: sp6_rna_polymerase_promoter ***
  19444. --- *** relation type: VIEW ***
  19445. --- *** ***
  19446. --- *** A region (DNA) to which the SP6 RNA poly ***
  19447. --- *** merase binds, to begin transcription. ***
  19448. --- ************************************************
  19449. ---
  19450. CREATE VIEW sp6_rna_polymerase_promoter AS
  19451. SELECT
  19452. feature_id AS sp6_rna_polymerase_promoter_id,
  19453. feature.*
  19454. FROM
  19455. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19456. WHERE cvterm.name = 'SP6_RNA_Polymerase_Promoter';
  19457. --- ************************************************
  19458. --- *** relation: t3_rna_polymerase_promoter ***
  19459. --- *** relation type: VIEW ***
  19460. --- *** ***
  19461. --- *** A DNA sequence to which the T3 RNA polym ***
  19462. --- *** erase binds, to begin transcription. ***
  19463. --- ************************************************
  19464. ---
  19465. CREATE VIEW t3_rna_polymerase_promoter AS
  19466. SELECT
  19467. feature_id AS t3_rna_polymerase_promoter_id,
  19468. feature.*
  19469. FROM
  19470. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19471. WHERE cvterm.name = 'T3_RNA_Polymerase_Promoter';
  19472. --- ************************************************
  19473. --- *** relation: t7_rna_polymerase_promoter ***
  19474. --- *** relation type: VIEW ***
  19475. --- *** ***
  19476. --- *** A region (DNA) to which the T7 RNA polym ***
  19477. --- *** erase binds, to begin transcription. ***
  19478. --- ************************************************
  19479. ---
  19480. CREATE VIEW t7_rna_polymerase_promoter AS
  19481. SELECT
  19482. feature_id AS t7_rna_polymerase_promoter_id,
  19483. feature.*
  19484. FROM
  19485. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19486. WHERE cvterm.name = 'T7_RNA_Polymerase_Promoter';
  19487. --- ************************************************
  19488. --- *** relation: five_prime_est ***
  19489. --- *** relation type: VIEW ***
  19490. --- *** ***
  19491. --- *** An EST read from the 5' end of a transcr ***
  19492. --- *** ipt that usually codes for a protein. Th ***
  19493. --- *** ese regions tend to be conserved across ***
  19494. --- *** species and do not change much within a ***
  19495. --- *** gene family. ***
  19496. --- ************************************************
  19497. ---
  19498. CREATE VIEW five_prime_est AS
  19499. SELECT
  19500. feature_id AS five_prime_est_id,
  19501. feature.*
  19502. FROM
  19503. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19504. WHERE cvterm.name = 'five_prime_EST';
  19505. --- ************************************************
  19506. --- *** relation: three_prime_est ***
  19507. --- *** relation type: VIEW ***
  19508. --- *** ***
  19509. --- *** An EST read from the 3' end of a transcr ***
  19510. --- *** ipt. They are more likely to fall within ***
  19511. --- *** non-coding, or untranslated regions(UTR ***
  19512. --- *** s). ***
  19513. --- ************************************************
  19514. ---
  19515. CREATE VIEW three_prime_est AS
  19516. SELECT
  19517. feature_id AS three_prime_est_id,
  19518. feature.*
  19519. FROM
  19520. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19521. WHERE cvterm.name = 'three_prime_EST';
  19522. --- ************************************************
  19523. --- *** relation: translational_frameshift ***
  19524. --- *** relation type: VIEW ***
  19525. --- *** ***
  19526. --- *** The region of mRNA (not divisible by 3 b ***
  19527. --- *** ases) that is skipped during the process ***
  19528. --- *** of translational frameshifting (GO:0006 ***
  19529. --- *** 452), causing the reading frame to be di ***
  19530. --- *** fferent. ***
  19531. --- ************************************************
  19532. ---
  19533. CREATE VIEW translational_frameshift AS
  19534. SELECT
  19535. feature_id AS translational_frameshift_id,
  19536. feature.*
  19537. FROM
  19538. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19539. WHERE cvterm.name = 'plus_1_translational_frameshift' OR cvterm.name = 'plus_2_translational_frameshift' OR cvterm.name = 'translational_frameshift';
  19540. --- ************************************************
  19541. --- *** relation: plus_1_translational_frameshift ***
  19542. --- *** relation type: VIEW ***
  19543. --- *** ***
  19544. --- *** The region of mRNA 1 base long that is s ***
  19545. --- *** kipped during the process of translation ***
  19546. --- *** al frameshifting (GO:0006452), causing t ***
  19547. --- *** he reading frame to be different. ***
  19548. --- ************************************************
  19549. ---
  19550. CREATE VIEW plus_1_translational_frameshift AS
  19551. SELECT
  19552. feature_id AS plus_1_translational_frameshift_id,
  19553. feature.*
  19554. FROM
  19555. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19556. WHERE cvterm.name = 'plus_1_translational_frameshift';
  19557. --- ************************************************
  19558. --- *** relation: plus_2_translational_frameshift ***
  19559. --- *** relation type: VIEW ***
  19560. --- *** ***
  19561. --- *** The region of mRNA 2 bases long that is ***
  19562. --- *** skipped during the process of translatio ***
  19563. --- *** nal frameshifting (GO:0006452), causing ***
  19564. --- *** the reading frame to be different. ***
  19565. --- ************************************************
  19566. ---
  19567. CREATE VIEW plus_2_translational_frameshift AS
  19568. SELECT
  19569. feature_id AS plus_2_translational_frameshift_id,
  19570. feature.*
  19571. FROM
  19572. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19573. WHERE cvterm.name = 'plus_2_translational_frameshift';
  19574. --- ************************************************
  19575. --- *** relation: group_iii_intron ***
  19576. --- *** relation type: VIEW ***
  19577. --- *** ***
  19578. --- *** Group III introns are introns found in t ***
  19579. --- *** he mRNA of the plastids of euglenoid pro ***
  19580. --- *** tists. They are spliced by a two step tr ***
  19581. --- *** ansesterification with bulged adenosine ***
  19582. --- *** as initiating nucleophile. ***
  19583. --- ************************************************
  19584. ---
  19585. CREATE VIEW group_iii_intron AS
  19586. SELECT
  19587. feature_id AS group_iii_intron_id,
  19588. feature.*
  19589. FROM
  19590. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19591. WHERE cvterm.name = 'group_III_intron';
  19592. --- ************************************************
  19593. --- *** relation: noncoding_region_of_exon ***
  19594. --- *** relation type: VIEW ***
  19595. --- *** ***
  19596. --- *** The maximal intersection of exon and UTR ***
  19597. --- *** . ***
  19598. --- ************************************************
  19599. ---
  19600. CREATE VIEW noncoding_region_of_exon AS
  19601. SELECT
  19602. feature_id AS noncoding_region_of_exon_id,
  19603. feature.*
  19604. FROM
  19605. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19606. 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';
  19607. --- ************************************************
  19608. --- *** relation: coding_region_of_exon ***
  19609. --- *** relation type: VIEW ***
  19610. --- *** ***
  19611. --- *** The region of an exon that encodes for p ***
  19612. --- *** rotein sequence. ***
  19613. --- ************************************************
  19614. ---
  19615. CREATE VIEW coding_region_of_exon AS
  19616. SELECT
  19617. feature_id AS coding_region_of_exon_id,
  19618. feature.*
  19619. FROM
  19620. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19621. 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';
  19622. --- ************************************************
  19623. --- *** relation: endonuclease_spliced_intron ***
  19624. --- *** relation type: VIEW ***
  19625. --- *** ***
  19626. --- *** An intron that spliced via endonucleolyt ***
  19627. --- *** ic cleavage and ligation rather than tra ***
  19628. --- *** nsesterification. ***
  19629. --- ************************************************
  19630. ---
  19631. CREATE VIEW endonuclease_spliced_intron AS
  19632. SELECT
  19633. feature_id AS endonuclease_spliced_intron_id,
  19634. feature.*
  19635. FROM
  19636. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19637. WHERE cvterm.name = 'archaeal_intron' OR cvterm.name = 'tRNA_intron' OR cvterm.name = 'endonuclease_spliced_intron';
  19638. --- ************************************************
  19639. --- *** relation: protein_coding_gene ***
  19640. --- *** relation type: VIEW ***
  19641. --- *** ***
  19642. --- ************************************************
  19643. ---
  19644. CREATE VIEW protein_coding_gene AS
  19645. SELECT
  19646. feature_id AS protein_coding_gene_id,
  19647. feature.*
  19648. FROM
  19649. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19650. 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';
  19651. --- ************************************************
  19652. --- *** relation: transgenic_insertion ***
  19653. --- *** relation type: VIEW ***
  19654. --- *** ***
  19655. --- ************************************************
  19656. ---
  19657. CREATE VIEW transgenic_insertion AS
  19658. SELECT
  19659. feature_id AS transgenic_insertion_id,
  19660. feature.*
  19661. FROM
  19662. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19663. WHERE cvterm.name = 'transgenic_insertion';
  19664. --- ************************************************
  19665. --- *** relation: retrogene ***
  19666. --- *** relation type: VIEW ***
  19667. --- *** ***
  19668. --- ************************************************
  19669. ---
  19670. CREATE VIEW retrogene AS
  19671. SELECT
  19672. feature_id AS retrogene_id,
  19673. feature.*
  19674. FROM
  19675. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19676. WHERE cvterm.name = 'retrogene';
  19677. --- ************************************************
  19678. --- *** relation: silenced_by_rna_interference ***
  19679. --- *** relation type: VIEW ***
  19680. --- *** ***
  19681. --- *** An attribute describing an epigenetic pr ***
  19682. --- *** ocess where a gene is inactivated by RNA ***
  19683. --- *** interference. ***
  19684. --- ************************************************
  19685. ---
  19686. CREATE VIEW silenced_by_rna_interference AS
  19687. SELECT
  19688. feature_id AS silenced_by_rna_interference_id,
  19689. feature.*
  19690. FROM
  19691. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19692. WHERE cvterm.name = 'silenced_by_RNA_interference';
  19693. --- ************************************************
  19694. --- *** relation: silenced_by_histone_modification ***
  19695. --- *** relation type: VIEW ***
  19696. --- *** ***
  19697. --- *** An attribute describing an epigenetic pr ***
  19698. --- *** ocess where a gene is inactivated by his ***
  19699. --- *** tone modification. ***
  19700. --- ************************************************
  19701. ---
  19702. CREATE VIEW silenced_by_histone_modification AS
  19703. SELECT
  19704. feature_id AS silenced_by_histone_modification_id,
  19705. feature.*
  19706. FROM
  19707. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19708. WHERE cvterm.name = 'silenced_by_histone_methylation' OR cvterm.name = 'silenced_by_histone_deacetylation' OR cvterm.name = 'silenced_by_histone_modification';
  19709. --- ************************************************
  19710. --- *** relation: silenced_by_histone_methylation ***
  19711. --- *** relation type: VIEW ***
  19712. --- *** ***
  19713. --- *** An attribute describing an epigenetic pr ***
  19714. --- *** ocess where a gene is inactivated by his ***
  19715. --- *** tone methylation. ***
  19716. --- ************************************************
  19717. ---
  19718. CREATE VIEW silenced_by_histone_methylation AS
  19719. SELECT
  19720. feature_id AS silenced_by_histone_methylation_id,
  19721. feature.*
  19722. FROM
  19723. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19724. WHERE cvterm.name = 'silenced_by_histone_methylation';
  19725. --- ************************************************
  19726. --- *** relation: silenced_by_histone_deacetylation ***
  19727. --- *** relation type: VIEW ***
  19728. --- *** ***
  19729. --- *** An attribute describing an epigenetic pr ***
  19730. --- *** ocess where a gene is inactivated by his ***
  19731. --- *** tone deacetylation. ***
  19732. --- ************************************************
  19733. ---
  19734. CREATE VIEW silenced_by_histone_deacetylation AS
  19735. SELECT
  19736. feature_id AS silenced_by_histone_deacetylation_id,
  19737. feature.*
  19738. FROM
  19739. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19740. WHERE cvterm.name = 'silenced_by_histone_deacetylation';
  19741. --- ************************************************
  19742. --- *** relation: gene_silenced_by_rna_interference ***
  19743. --- *** relation type: VIEW ***
  19744. --- *** ***
  19745. --- *** A gene that is silenced by RNA interfere ***
  19746. --- *** nce. ***
  19747. --- ************************************************
  19748. ---
  19749. CREATE VIEW gene_silenced_by_rna_interference AS
  19750. SELECT
  19751. feature_id AS gene_silenced_by_rna_interference_id,
  19752. feature.*
  19753. FROM
  19754. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19755. WHERE cvterm.name = 'gene_silenced_by_RNA_interference';
  19756. --- ************************************************
  19757. --- *** relation: gene_silenced_by_histone_modification ***
  19758. --- *** relation type: VIEW ***
  19759. --- *** ***
  19760. --- *** A gene that is silenced by histone modif ***
  19761. --- *** ication. ***
  19762. --- ************************************************
  19763. ---
  19764. CREATE VIEW gene_silenced_by_histone_modification AS
  19765. SELECT
  19766. feature_id AS gene_silenced_by_histone_modification_id,
  19767. feature.*
  19768. FROM
  19769. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19770. WHERE cvterm.name = 'gene_silenced_by_histone_methylation' OR cvterm.name = 'gene_silenced_by_histone_deacetylation' OR cvterm.name = 'gene_silenced_by_histone_modification';
  19771. --- ************************************************
  19772. --- *** relation: gene_silenced_by_histone_methylation ***
  19773. --- *** relation type: VIEW ***
  19774. --- *** ***
  19775. --- *** A gene that is silenced by histone methy ***
  19776. --- *** lation. ***
  19777. --- ************************************************
  19778. ---
  19779. CREATE VIEW gene_silenced_by_histone_methylation AS
  19780. SELECT
  19781. feature_id AS gene_silenced_by_histone_methylation_id,
  19782. feature.*
  19783. FROM
  19784. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19785. WHERE cvterm.name = 'gene_silenced_by_histone_methylation';
  19786. --- ************************************************
  19787. --- *** relation: gene_silenced_by_histone_deacetylation ***
  19788. --- *** relation type: VIEW ***
  19789. --- *** ***
  19790. --- *** A gene that is silenced by histone deace ***
  19791. --- *** tylation. ***
  19792. --- ************************************************
  19793. ---
  19794. CREATE VIEW gene_silenced_by_histone_deacetylation AS
  19795. SELECT
  19796. feature_id AS gene_silenced_by_histone_deacetylation_id,
  19797. feature.*
  19798. FROM
  19799. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19800. WHERE cvterm.name = 'gene_silenced_by_histone_deacetylation';
  19801. --- ************************************************
  19802. --- *** relation: dihydrouridine ***
  19803. --- *** relation type: VIEW ***
  19804. --- *** ***
  19805. --- *** A modified RNA base in which the 5,6-dih ***
  19806. --- *** ydrouracil is bound to the ribose ring. ***
  19807. --- ************************************************
  19808. ---
  19809. CREATE VIEW dihydrouridine AS
  19810. SELECT
  19811. feature_id AS dihydrouridine_id,
  19812. feature.*
  19813. FROM
  19814. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19815. WHERE cvterm.name = 'dihydrouridine';
  19816. --- ************************************************
  19817. --- *** relation: pseudouridine ***
  19818. --- *** relation type: VIEW ***
  19819. --- *** ***
  19820. --- *** A modified RNA base in which the 5- posi ***
  19821. --- *** tion of the uracil is bound to the ribos ***
  19822. --- *** e ring instead of the 4- position. ***
  19823. --- ************************************************
  19824. ---
  19825. CREATE VIEW pseudouridine AS
  19826. SELECT
  19827. feature_id AS pseudouridine_id,
  19828. feature.*
  19829. FROM
  19830. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19831. WHERE cvterm.name = 'pseudouridine';
  19832. --- ************************************************
  19833. --- *** relation: inosine ***
  19834. --- *** relation type: VIEW ***
  19835. --- *** ***
  19836. --- *** A modified RNA base in which hypoxanthin ***
  19837. --- *** e is bound to the ribose ring. ***
  19838. --- ************************************************
  19839. ---
  19840. CREATE VIEW inosine AS
  19841. SELECT
  19842. feature_id AS inosine_id,
  19843. feature.*
  19844. FROM
  19845. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19846. 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';
  19847. --- ************************************************
  19848. --- *** relation: seven_methylguanine ***
  19849. --- *** relation type: VIEW ***
  19850. --- *** ***
  19851. --- *** A modified RNA base in which guanine is ***
  19852. --- *** methylated at the 7- position. ***
  19853. --- ************************************************
  19854. ---
  19855. CREATE VIEW seven_methylguanine AS
  19856. SELECT
  19857. feature_id AS seven_methylguanine_id,
  19858. feature.*
  19859. FROM
  19860. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19861. WHERE cvterm.name = 'seven_methylguanine';
  19862. --- ************************************************
  19863. --- *** relation: ribothymidine ***
  19864. --- *** relation type: VIEW ***
  19865. --- *** ***
  19866. --- *** A modified RNA base in which thymine is ***
  19867. --- *** bound to the ribose ring. ***
  19868. --- ************************************************
  19869. ---
  19870. CREATE VIEW ribothymidine AS
  19871. SELECT
  19872. feature_id AS ribothymidine_id,
  19873. feature.*
  19874. FROM
  19875. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19876. WHERE cvterm.name = 'ribothymidine';
  19877. --- ************************************************
  19878. --- *** relation: methylinosine ***
  19879. --- *** relation type: VIEW ***
  19880. --- *** ***
  19881. --- *** A modified RNA base in which methylhypox ***
  19882. --- *** anthine is bound to the ribose ring. ***
  19883. --- ************************************************
  19884. ---
  19885. CREATE VIEW methylinosine AS
  19886. SELECT
  19887. feature_id AS methylinosine_id,
  19888. feature.*
  19889. FROM
  19890. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19891. WHERE cvterm.name = 'methylinosine';
  19892. --- ************************************************
  19893. --- *** relation: mobile ***
  19894. --- *** relation type: VIEW ***
  19895. --- *** ***
  19896. --- *** An attribute describing a feature that h ***
  19897. --- *** as either intra-genome or intracellular ***
  19898. --- *** mobility. ***
  19899. --- ************************************************
  19900. ---
  19901. CREATE VIEW mobile AS
  19902. SELECT
  19903. feature_id AS mobile_id,
  19904. feature.*
  19905. FROM
  19906. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19907. WHERE cvterm.name = 'mobile';
  19908. --- ************************************************
  19909. --- *** relation: replicon ***
  19910. --- *** relation type: VIEW ***
  19911. --- *** ***
  19912. --- *** A region containing at least one unique ***
  19913. --- *** origin of replication and a unique termi ***
  19914. --- *** nation site. ***
  19915. --- ************************************************
  19916. ---
  19917. CREATE VIEW replicon AS
  19918. SELECT
  19919. feature_id AS replicon_id,
  19920. feature.*
  19921. FROM
  19922. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19923. 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 = 'natural_transposable_element' 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 = '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';
  19924. --- ************************************************
  19925. --- *** relation: base ***
  19926. --- *** relation type: VIEW ***
  19927. --- *** ***
  19928. --- *** A base is a sequence feature that corres ***
  19929. --- *** ponds to a single unit of a nucleotide p ***
  19930. --- *** olymer. ***
  19931. --- ************************************************
  19932. ---
  19933. CREATE VIEW base AS
  19934. SELECT
  19935. feature_id AS base_id,
  19936. feature.*
  19937. FROM
  19938. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19939. WHERE cvterm.name = 'modified_RNA_base_feature' OR cvterm.name = 'modified_base_site' 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 = 'methylated_base_feature' OR cvterm.name = 'methylated_C' OR cvterm.name = 'methylated_A' OR cvterm.name = 'base';
  19940. --- ************************************************
  19941. --- *** relation: amino_acid ***
  19942. --- *** relation type: VIEW ***
  19943. --- *** ***
  19944. --- *** A sequence feature that corresponds to a ***
  19945. --- *** single amino acid residue in a polypept ***
  19946. --- *** ide. ***
  19947. --- ************************************************
  19948. ---
  19949. CREATE VIEW amino_acid AS
  19950. SELECT
  19951. feature_id AS amino_acid_id,
  19952. feature.*
  19953. FROM
  19954. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19955. 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 = 'argenine' 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';
  19956. --- ************************************************
  19957. --- *** relation: major_tss ***
  19958. --- *** relation type: VIEW ***
  19959. --- *** ***
  19960. --- ************************************************
  19961. ---
  19962. CREATE VIEW major_tss AS
  19963. SELECT
  19964. feature_id AS major_tss_id,
  19965. feature.*
  19966. FROM
  19967. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19968. WHERE cvterm.name = 'major_TSS';
  19969. --- ************************************************
  19970. --- *** relation: minor_tss ***
  19971. --- *** relation type: VIEW ***
  19972. --- *** ***
  19973. --- ************************************************
  19974. ---
  19975. CREATE VIEW minor_tss AS
  19976. SELECT
  19977. feature_id AS minor_tss_id,
  19978. feature.*
  19979. FROM
  19980. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19981. WHERE cvterm.name = 'minor_TSS';
  19982. --- ************************************************
  19983. --- *** relation: tss_region ***
  19984. --- *** relation type: VIEW ***
  19985. --- *** ***
  19986. --- *** The region of a gene from the 5' most TS ***
  19987. --- *** S to the 3' TSS. ***
  19988. --- ************************************************
  19989. ---
  19990. CREATE VIEW tss_region AS
  19991. SELECT
  19992. feature_id AS tss_region_id,
  19993. feature.*
  19994. FROM
  19995. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19996. WHERE cvterm.name = 'TSS_region';
  19997. --- ************************************************
  19998. --- *** relation: encodes_alternate_transcription_start_sites ***
  19999. --- *** relation type: VIEW ***
  20000. --- *** ***
  20001. --- ************************************************
  20002. ---
  20003. CREATE VIEW encodes_alternate_transcription_start_sites AS
  20004. SELECT
  20005. feature_id AS encodes_alternate_transcription_start_sites_id,
  20006. feature.*
  20007. FROM
  20008. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20009. WHERE cvterm.name = 'encodes_alternate_transcription_start_sites';
  20010. --- ************************************************
  20011. --- *** relation: mirna_primary_transcript_region ***
  20012. --- *** relation type: VIEW ***
  20013. --- *** ***
  20014. --- *** A part of an miRNA primary_transcript. ***
  20015. --- ************************************************
  20016. ---
  20017. CREATE VIEW mirna_primary_transcript_region AS
  20018. SELECT
  20019. feature_id AS mirna_primary_transcript_region_id,
  20020. feature.*
  20021. FROM
  20022. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20023. 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';
  20024. --- ************************************************
  20025. --- *** relation: pre_mirna ***
  20026. --- *** relation type: VIEW ***
  20027. --- *** ***
  20028. --- *** The 60-70 nucleotide region remain after ***
  20029. --- *** Drosha processing of the primary transc ***
  20030. --- *** ript, that folds back upon itself to for ***
  20031. --- *** m a hairpin sructure. ***
  20032. --- ************************************************
  20033. ---
  20034. CREATE VIEW pre_mirna AS
  20035. SELECT
  20036. feature_id AS pre_mirna_id,
  20037. feature.*
  20038. FROM
  20039. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20040. WHERE cvterm.name = 'pre_miRNA';
  20041. --- ************************************************
  20042. --- *** relation: mirna_stem ***
  20043. --- *** relation type: VIEW ***
  20044. --- *** ***
  20045. --- *** The stem of the hairpin loop formed by f ***
  20046. --- *** olding of the pre-miRNA. ***
  20047. --- ************************************************
  20048. ---
  20049. CREATE VIEW mirna_stem AS
  20050. SELECT
  20051. feature_id AS mirna_stem_id,
  20052. feature.*
  20053. FROM
  20054. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20055. WHERE cvterm.name = 'miRNA_stem';
  20056. --- ************************************************
  20057. --- *** relation: mirna_loop ***
  20058. --- *** relation type: VIEW ***
  20059. --- *** ***
  20060. --- *** The loop of the hairpin loop formed by f ***
  20061. --- *** olding of the pre-miRNA. ***
  20062. --- ************************************************
  20063. ---
  20064. CREATE VIEW mirna_loop AS
  20065. SELECT
  20066. feature_id AS mirna_loop_id,
  20067. feature.*
  20068. FROM
  20069. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20070. WHERE cvterm.name = 'miRNA_loop';
  20071. --- ************************************************
  20072. --- *** relation: synthetic_oligo ***
  20073. --- *** relation type: VIEW ***
  20074. --- *** ***
  20075. --- *** An oligo composed of synthetic nucleotid ***
  20076. --- *** es. ***
  20077. --- ************************************************
  20078. ---
  20079. CREATE VIEW synthetic_oligo AS
  20080. SELECT
  20081. feature_id AS synthetic_oligo_id,
  20082. feature.*
  20083. FROM
  20084. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20085. 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';
  20086. --- ************************************************
  20087. --- *** relation: assembly ***
  20088. --- *** relation type: VIEW ***
  20089. --- *** ***
  20090. --- *** A region of the genome of known length t ***
  20091. --- *** hat is composed by ordering and aligning ***
  20092. --- *** two or more different regions. ***
  20093. --- ************************************************
  20094. ---
  20095. CREATE VIEW assembly AS
  20096. SELECT
  20097. feature_id AS assembly_id,
  20098. feature.*
  20099. FROM
  20100. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20101. 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';
  20102. --- ************************************************
  20103. --- *** relation: fragment_assembly ***
  20104. --- *** relation type: VIEW ***
  20105. --- *** ***
  20106. --- *** A fragment assembly is a genome assembly ***
  20107. --- *** that orders overlapping fragments of th ***
  20108. --- *** e genome based on landmark sequences. Th ***
  20109. --- *** e base pair distance between the landmar ***
  20110. --- *** ks is known allowing additivity of lengt ***
  20111. --- *** hs. ***
  20112. --- ************************************************
  20113. ---
  20114. CREATE VIEW fragment_assembly AS
  20115. SELECT
  20116. feature_id AS fragment_assembly_id,
  20117. feature.*
  20118. FROM
  20119. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20120. WHERE cvterm.name = 'fingerprint_map' OR cvterm.name = 'STS_map' OR cvterm.name = 'RH_map' OR cvterm.name = 'fragment_assembly';
  20121. --- ************************************************
  20122. --- *** relation: fingerprint_map ***
  20123. --- *** relation type: VIEW ***
  20124. --- *** ***
  20125. --- *** A fingerprint_map is a physical map comp ***
  20126. --- *** osed of restriction fragments. ***
  20127. --- ************************************************
  20128. ---
  20129. CREATE VIEW fingerprint_map AS
  20130. SELECT
  20131. feature_id AS fingerprint_map_id,
  20132. feature.*
  20133. FROM
  20134. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20135. WHERE cvterm.name = 'fingerprint_map';
  20136. --- ************************************************
  20137. --- *** relation: sts_map ***
  20138. --- *** relation type: VIEW ***
  20139. --- *** ***
  20140. --- *** An STS map is a physical map organized b ***
  20141. --- *** y the unique STS landmarks. ***
  20142. --- ************************************************
  20143. ---
  20144. CREATE VIEW sts_map AS
  20145. SELECT
  20146. feature_id AS sts_map_id,
  20147. feature.*
  20148. FROM
  20149. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20150. WHERE cvterm.name = 'STS_map';
  20151. --- ************************************************
  20152. --- *** relation: rh_map ***
  20153. --- *** relation type: VIEW ***
  20154. --- *** ***
  20155. --- *** A radiation hybrid map is a physical map ***
  20156. --- *** . ***
  20157. --- ************************************************
  20158. ---
  20159. CREATE VIEW rh_map AS
  20160. SELECT
  20161. feature_id AS rh_map_id,
  20162. feature.*
  20163. FROM
  20164. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20165. WHERE cvterm.name = 'RH_map';
  20166. --- ************************************************
  20167. --- *** relation: sonicate_fragment ***
  20168. --- *** relation type: VIEW ***
  20169. --- *** ***
  20170. --- *** A DNA fragment generated by sonication. ***
  20171. --- *** Sonication is a technique used to sheer ***
  20172. --- *** DNA into smaller fragments. ***
  20173. --- ************************************************
  20174. ---
  20175. CREATE VIEW sonicate_fragment AS
  20176. SELECT
  20177. feature_id AS sonicate_fragment_id,
  20178. feature.*
  20179. FROM
  20180. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20181. WHERE cvterm.name = 'sonicate_fragment';
  20182. --- ************************************************
  20183. --- *** relation: polyploid ***
  20184. --- *** relation type: VIEW ***
  20185. --- *** ***
  20186. --- *** A kind of chromosome variation where the ***
  20187. --- *** chromosome complement is an exact multi ***
  20188. --- *** ple of the haploid number and is greater ***
  20189. --- *** than the diploid number. ***
  20190. --- ************************************************
  20191. ---
  20192. CREATE VIEW polyploid AS
  20193. SELECT
  20194. feature_id AS polyploid_id,
  20195. feature.*
  20196. FROM
  20197. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20198. WHERE cvterm.name = 'autopolyploid' OR cvterm.name = 'allopolyploid' OR cvterm.name = 'polyploid';
  20199. --- ************************************************
  20200. --- *** relation: autopolyploid ***
  20201. --- *** relation type: VIEW ***
  20202. --- *** ***
  20203. --- *** A polyploid where the multiple chromosom ***
  20204. --- *** e set was derived from the same organism ***
  20205. --- *** . ***
  20206. --- ************************************************
  20207. ---
  20208. CREATE VIEW autopolyploid AS
  20209. SELECT
  20210. feature_id AS autopolyploid_id,
  20211. feature.*
  20212. FROM
  20213. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20214. WHERE cvterm.name = 'autopolyploid';
  20215. --- ************************************************
  20216. --- *** relation: allopolyploid ***
  20217. --- *** relation type: VIEW ***
  20218. --- *** ***
  20219. --- *** A polyploid where the multiple chromosom ***
  20220. --- *** e set was derived from a different organ ***
  20221. --- *** ism. ***
  20222. --- ************************************************
  20223. ---
  20224. CREATE VIEW allopolyploid AS
  20225. SELECT
  20226. feature_id AS allopolyploid_id,
  20227. feature.*
  20228. FROM
  20229. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20230. WHERE cvterm.name = 'allopolyploid';
  20231. --- ************************************************
  20232. --- *** relation: homing_endonuclease_binding_site ***
  20233. --- *** relation type: VIEW ***
  20234. --- *** ***
  20235. --- *** The binding site (recognition site) of a ***
  20236. --- *** homing endonuclease. The binding site i ***
  20237. --- *** s typically large. ***
  20238. --- ************************************************
  20239. ---
  20240. CREATE VIEW homing_endonuclease_binding_site AS
  20241. SELECT
  20242. feature_id AS homing_endonuclease_binding_site_id,
  20243. feature.*
  20244. FROM
  20245. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20246. WHERE cvterm.name = 'homing_endonuclease_binding_site';
  20247. --- ************************************************
  20248. --- *** relation: octamer_motif ***
  20249. --- *** relation type: VIEW ***
  20250. --- *** ***
  20251. --- *** A sequence element characteristic of som ***
  20252. --- *** e RNA polymerase II promoters with seque ***
  20253. --- *** nce ATTGCAT that binds Pou-domain transc ***
  20254. --- *** ription factors. ***
  20255. --- ************************************************
  20256. ---
  20257. CREATE VIEW octamer_motif AS
  20258. SELECT
  20259. feature_id AS octamer_motif_id,
  20260. feature.*
  20261. FROM
  20262. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20263. WHERE cvterm.name = 'octamer_motif';
  20264. --- ************************************************
  20265. --- *** relation: apicoplast_chromosome ***
  20266. --- *** relation type: VIEW ***
  20267. --- *** ***
  20268. --- *** A chromosome originating in an apicoplas ***
  20269. --- *** t. ***
  20270. --- ************************************************
  20271. ---
  20272. CREATE VIEW apicoplast_chromosome AS
  20273. SELECT
  20274. feature_id AS apicoplast_chromosome_id,
  20275. feature.*
  20276. FROM
  20277. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20278. WHERE cvterm.name = 'apicoplast_chromosome';
  20279. --- ************************************************
  20280. --- *** relation: sequence_collection ***
  20281. --- *** relation type: VIEW ***
  20282. --- *** ***
  20283. --- *** A collection of discontinuous sequences. ***
  20284. --- ************************************************
  20285. ---
  20286. CREATE VIEW sequence_collection AS
  20287. SELECT
  20288. feature_id AS sequence_collection_id,
  20289. feature.*
  20290. FROM
  20291. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20292. WHERE cvterm.name = 'kinetoplast' OR cvterm.name = 'genome' OR cvterm.name = 'contig_collection' OR cvterm.name = 'sequence_collection';
  20293. --- ************************************************
  20294. --- *** relation: overlapping_feature_set ***
  20295. --- *** relation type: VIEW ***
  20296. --- *** ***
  20297. --- *** A continuous region of sequence composed ***
  20298. --- *** of the overlapping of multiple sequence ***
  20299. --- *** _features, which ultimately provides evi ***
  20300. --- *** dence for another sequence_feature. ***
  20301. --- ************************************************
  20302. ---
  20303. CREATE VIEW overlapping_feature_set AS
  20304. SELECT
  20305. feature_id AS overlapping_feature_set_id,
  20306. feature.*
  20307. FROM
  20308. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20309. WHERE cvterm.name = 'overlapping_EST_set' OR cvterm.name = 'overlapping_feature_set';
  20310. --- ************************************************
  20311. --- *** relation: overlapping_est_set ***
  20312. --- *** relation type: VIEW ***
  20313. --- *** ***
  20314. --- *** A continous experimental result region e ***
  20315. --- *** xtending the length of multiple overlapp ***
  20316. --- *** ing EST's. ***
  20317. --- ************************************************
  20318. ---
  20319. CREATE VIEW overlapping_est_set AS
  20320. SELECT
  20321. feature_id AS overlapping_est_set_id,
  20322. feature.*
  20323. FROM
  20324. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20325. WHERE cvterm.name = 'overlapping_EST_set';
  20326. --- ************************************************
  20327. --- *** relation: ncrna_gene ***
  20328. --- *** relation type: VIEW ***
  20329. --- *** ***
  20330. --- ************************************************
  20331. ---
  20332. CREATE VIEW ncrna_gene AS
  20333. SELECT
  20334. feature_id AS ncrna_gene_id,
  20335. feature.*
  20336. FROM
  20337. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20338. 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 = 'ncRNA_gene';
  20339. --- ************************************************
  20340. --- *** relation: grna_gene ***
  20341. --- *** relation type: VIEW ***
  20342. --- *** ***
  20343. --- ************************************************
  20344. ---
  20345. CREATE VIEW grna_gene AS
  20346. SELECT
  20347. feature_id AS grna_gene_id,
  20348. feature.*
  20349. FROM
  20350. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20351. WHERE cvterm.name = 'gRNA_gene';
  20352. --- ************************************************
  20353. --- *** relation: mirna_gene ***
  20354. --- *** relation type: VIEW ***
  20355. --- *** ***
  20356. --- ************************************************
  20357. ---
  20358. CREATE VIEW mirna_gene AS
  20359. SELECT
  20360. feature_id AS mirna_gene_id,
  20361. feature.*
  20362. FROM
  20363. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20364. WHERE cvterm.name = 'miRNA_gene';
  20365. --- ************************************************
  20366. --- *** relation: scrna_gene ***
  20367. --- *** relation type: VIEW ***
  20368. --- *** ***
  20369. --- ************************************************
  20370. ---
  20371. CREATE VIEW scrna_gene AS
  20372. SELECT
  20373. feature_id AS scrna_gene_id,
  20374. feature.*
  20375. FROM
  20376. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20377. WHERE cvterm.name = 'scRNA_gene';
  20378. --- ************************************************
  20379. --- *** relation: snorna_gene ***
  20380. --- *** relation type: VIEW ***
  20381. --- *** ***
  20382. --- ************************************************
  20383. ---
  20384. CREATE VIEW snorna_gene AS
  20385. SELECT
  20386. feature_id AS snorna_gene_id,
  20387. feature.*
  20388. FROM
  20389. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20390. WHERE cvterm.name = 'snoRNA_gene';
  20391. --- ************************************************
  20392. --- *** relation: snrna_gene ***
  20393. --- *** relation type: VIEW ***
  20394. --- *** ***
  20395. --- ************************************************
  20396. ---
  20397. CREATE VIEW snrna_gene AS
  20398. SELECT
  20399. feature_id AS snrna_gene_id,
  20400. feature.*
  20401. FROM
  20402. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20403. WHERE cvterm.name = 'snRNA_gene';
  20404. --- ************************************************
  20405. --- *** relation: srp_rna_gene ***
  20406. --- *** relation type: VIEW ***
  20407. --- *** ***
  20408. --- ************************************************
  20409. ---
  20410. CREATE VIEW srp_rna_gene AS
  20411. SELECT
  20412. feature_id AS srp_rna_gene_id,
  20413. feature.*
  20414. FROM
  20415. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20416. WHERE cvterm.name = 'SRP_RNA_gene';
  20417. --- ************************************************
  20418. --- *** relation: strna_gene ***
  20419. --- *** relation type: VIEW ***
  20420. --- *** ***
  20421. --- ************************************************
  20422. ---
  20423. CREATE VIEW strna_gene AS
  20424. SELECT
  20425. feature_id AS strna_gene_id,
  20426. feature.*
  20427. FROM
  20428. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20429. WHERE cvterm.name = 'stRNA_gene';
  20430. --- ************************************************
  20431. --- *** relation: tmrna_gene ***
  20432. --- *** relation type: VIEW ***
  20433. --- *** ***
  20434. --- ************************************************
  20435. ---
  20436. CREATE VIEW tmrna_gene AS
  20437. SELECT
  20438. feature_id AS tmrna_gene_id,
  20439. feature.*
  20440. FROM
  20441. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20442. WHERE cvterm.name = 'tmRNA_gene';
  20443. --- ************************************************
  20444. --- *** relation: trna_gene ***
  20445. --- *** relation type: VIEW ***
  20446. --- *** ***
  20447. --- ************************************************
  20448. ---
  20449. CREATE VIEW trna_gene AS
  20450. SELECT
  20451. feature_id AS trna_gene_id,
  20452. feature.*
  20453. FROM
  20454. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20455. WHERE cvterm.name = 'tRNA_gene';
  20456. --- ************************************************
  20457. --- *** relation: modified_adenosine ***
  20458. --- *** relation type: VIEW ***
  20459. --- *** ***
  20460. --- *** A modified adenine is an adenine base fe ***
  20461. --- *** ature that has been altered. ***
  20462. --- ************************************************
  20463. ---
  20464. CREATE VIEW modified_adenosine AS
  20465. SELECT
  20466. feature_id AS modified_adenosine_id,
  20467. feature.*
  20468. FROM
  20469. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20470. 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';
  20471. --- ************************************************
  20472. --- *** relation: modified_inosine ***
  20473. --- *** relation type: VIEW ***
  20474. --- *** ***
  20475. --- *** A modified inosine is an inosine base fe ***
  20476. --- *** ature that has been altered. ***
  20477. --- ************************************************
  20478. ---
  20479. CREATE VIEW modified_inosine AS
  20480. SELECT
  20481. feature_id AS modified_inosine_id,
  20482. feature.*
  20483. FROM
  20484. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20485. 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';
  20486. --- ************************************************
  20487. --- *** relation: modified_cytidine ***
  20488. --- *** relation type: VIEW ***
  20489. --- *** ***
  20490. --- *** A modified cytidine is a cytidine base f ***
  20491. --- *** eature which has been altered. ***
  20492. --- ************************************************
  20493. ---
  20494. CREATE VIEW modified_cytidine AS
  20495. SELECT
  20496. feature_id AS modified_cytidine_id,
  20497. feature.*
  20498. FROM
  20499. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20500. 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';
  20501. --- ************************************************
  20502. --- *** relation: modified_guanosine ***
  20503. --- *** relation type: VIEW ***
  20504. --- *** ***
  20505. --- ************************************************
  20506. ---
  20507. CREATE VIEW modified_guanosine AS
  20508. SELECT
  20509. feature_id AS modified_guanosine_id,
  20510. feature.*
  20511. FROM
  20512. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20513. 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';
  20514. --- ************************************************
  20515. --- *** relation: modified_uridine ***
  20516. --- *** relation type: VIEW ***
  20517. --- *** ***
  20518. --- ************************************************
  20519. ---
  20520. CREATE VIEW modified_uridine AS
  20521. SELECT
  20522. feature_id AS modified_uridine_id,
  20523. feature.*
  20524. FROM
  20525. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20526. 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';
  20527. --- ************************************************
  20528. --- *** relation: one_methylinosine ***
  20529. --- *** relation type: VIEW ***
  20530. --- *** ***
  20531. --- *** 1-methylinosine is a modified insosine. ***
  20532. --- ************************************************
  20533. ---
  20534. CREATE VIEW one_methylinosine AS
  20535. SELECT
  20536. feature_id AS one_methylinosine_id,
  20537. feature.*
  20538. FROM
  20539. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20540. WHERE cvterm.name = 'one_methylinosine';
  20541. --- ************************************************
  20542. --- *** relation: one_two_prime_o_dimethylinosine ***
  20543. --- *** relation type: VIEW ***
  20544. --- *** ***
  20545. --- *** 1,2'-O-dimethylinosine is a modified ino ***
  20546. --- *** sine. ***
  20547. --- ************************************************
  20548. ---
  20549. CREATE VIEW one_two_prime_o_dimethylinosine AS
  20550. SELECT
  20551. feature_id AS one_two_prime_o_dimethylinosine_id,
  20552. feature.*
  20553. FROM
  20554. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20555. WHERE cvterm.name = 'one_two_prime_O_dimethylinosine';
  20556. --- ************************************************
  20557. --- *** relation: two_prime_o_methylinosine ***
  20558. --- *** relation type: VIEW ***
  20559. --- *** ***
  20560. --- *** 2'-O-methylinosine is a modified inosine ***
  20561. --- *** . ***
  20562. --- ************************************************
  20563. ---
  20564. CREATE VIEW two_prime_o_methylinosine AS
  20565. SELECT
  20566. feature_id AS two_prime_o_methylinosine_id,
  20567. feature.*
  20568. FROM
  20569. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20570. WHERE cvterm.name = 'two_prime_O_methylinosine';
  20571. --- ************************************************
  20572. --- *** relation: three_methylcytidine ***
  20573. --- *** relation type: VIEW ***
  20574. --- *** ***
  20575. --- *** 3-methylcytidine is a modified cytidine. ***
  20576. --- ************************************************
  20577. ---
  20578. CREATE VIEW three_methylcytidine AS
  20579. SELECT
  20580. feature_id AS three_methylcytidine_id,
  20581. feature.*
  20582. FROM
  20583. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20584. WHERE cvterm.name = 'three_methylcytidine';
  20585. --- ************************************************
  20586. --- *** relation: five_methylcytidine ***
  20587. --- *** relation type: VIEW ***
  20588. --- *** ***
  20589. --- *** 5-methylcytidine is a modified cytidine. ***
  20590. --- ************************************************
  20591. ---
  20592. CREATE VIEW five_methylcytidine AS
  20593. SELECT
  20594. feature_id AS five_methylcytidine_id,
  20595. feature.*
  20596. FROM
  20597. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20598. WHERE cvterm.name = 'five_methylcytidine';
  20599. --- ************************************************
  20600. --- *** relation: two_prime_o_methylcytidine ***
  20601. --- *** relation type: VIEW ***
  20602. --- *** ***
  20603. --- *** 2'-O-methylcytidine is a modified cytidi ***
  20604. --- *** ne. ***
  20605. --- ************************************************
  20606. ---
  20607. CREATE VIEW two_prime_o_methylcytidine AS
  20608. SELECT
  20609. feature_id AS two_prime_o_methylcytidine_id,
  20610. feature.*
  20611. FROM
  20612. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20613. WHERE cvterm.name = 'two_prime_O_methylcytidine';
  20614. --- ************************************************
  20615. --- *** relation: two_thiocytidine ***
  20616. --- *** relation type: VIEW ***
  20617. --- *** ***
  20618. --- *** 2-thiocytidine is a modified cytidine. ***
  20619. --- ************************************************
  20620. ---
  20621. CREATE VIEW two_thiocytidine AS
  20622. SELECT
  20623. feature_id AS two_thiocytidine_id,
  20624. feature.*
  20625. FROM
  20626. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20627. WHERE cvterm.name = 'two_thiocytidine';
  20628. --- ************************************************
  20629. --- *** relation: n4_acetylcytidine ***
  20630. --- *** relation type: VIEW ***
  20631. --- *** ***
  20632. --- *** N4-acetylcytidine is a modified cytidine ***
  20633. --- *** . ***
  20634. --- ************************************************
  20635. ---
  20636. CREATE VIEW n4_acetylcytidine AS
  20637. SELECT
  20638. feature_id AS n4_acetylcytidine_id,
  20639. feature.*
  20640. FROM
  20641. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20642. WHERE cvterm.name = 'N4_acetylcytidine';
  20643. --- ************************************************
  20644. --- *** relation: five_formylcytidine ***
  20645. --- *** relation type: VIEW ***
  20646. --- *** ***
  20647. --- *** 5-formylcytidine is a modified cytidine. ***
  20648. --- ************************************************
  20649. ---
  20650. CREATE VIEW five_formylcytidine AS
  20651. SELECT
  20652. feature_id AS five_formylcytidine_id,
  20653. feature.*
  20654. FROM
  20655. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20656. WHERE cvterm.name = 'five_formylcytidine';
  20657. --- ************************************************
  20658. --- *** relation: five_two_prime_o_dimethylcytidine ***
  20659. --- *** relation type: VIEW ***
  20660. --- *** ***
  20661. --- *** 5,2'-O-dimethylcytidine is a modified cy ***
  20662. --- *** tidine. ***
  20663. --- ************************************************
  20664. ---
  20665. CREATE VIEW five_two_prime_o_dimethylcytidine AS
  20666. SELECT
  20667. feature_id AS five_two_prime_o_dimethylcytidine_id,
  20668. feature.*
  20669. FROM
  20670. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20671. WHERE cvterm.name = 'five_two_prime_O_dimethylcytidine';
  20672. --- ************************************************
  20673. --- *** relation: n4_acetyl_2_prime_o_methylcytidine ***
  20674. --- *** relation type: VIEW ***
  20675. --- *** ***
  20676. --- *** N4-acetyl-2'-O-methylcytidine is a modif ***
  20677. --- *** ied cytidine. ***
  20678. --- ************************************************
  20679. ---
  20680. CREATE VIEW n4_acetyl_2_prime_o_methylcytidine AS
  20681. SELECT
  20682. feature_id AS n4_acetyl_2_prime_o_methylcytidine_id,
  20683. feature.*
  20684. FROM
  20685. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20686. WHERE cvterm.name = 'N4_acetyl_2_prime_O_methylcytidine';
  20687. --- ************************************************
  20688. --- *** relation: lysidine ***
  20689. --- *** relation type: VIEW ***
  20690. --- *** ***
  20691. --- *** Lysidine is a modified cytidine. ***
  20692. --- ************************************************
  20693. ---
  20694. CREATE VIEW lysidine AS
  20695. SELECT
  20696. feature_id AS lysidine_id,
  20697. feature.*
  20698. FROM
  20699. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20700. WHERE cvterm.name = 'lysidine';
  20701. --- ************************************************
  20702. --- *** relation: n4_methylcytidine ***
  20703. --- *** relation type: VIEW ***
  20704. --- *** ***
  20705. --- *** N4-methylcytidine is a modified cytidine ***
  20706. --- *** . ***
  20707. --- ************************************************
  20708. ---
  20709. CREATE VIEW n4_methylcytidine AS
  20710. SELECT
  20711. feature_id AS n4_methylcytidine_id,
  20712. feature.*
  20713. FROM
  20714. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20715. WHERE cvterm.name = 'N4_methylcytidine';
  20716. --- ************************************************
  20717. --- *** relation: n4_2_prime_o_dimethylcytidine ***
  20718. --- *** relation type: VIEW ***
  20719. --- *** ***
  20720. --- *** N4,2'-O-dimethylcytidine is a modified c ***
  20721. --- *** ytidine. ***
  20722. --- ************************************************
  20723. ---
  20724. CREATE VIEW n4_2_prime_o_dimethylcytidine AS
  20725. SELECT
  20726. feature_id AS n4_2_prime_o_dimethylcytidine_id,
  20727. feature.*
  20728. FROM
  20729. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20730. WHERE cvterm.name = 'N4_2_prime_O_dimethylcytidine';
  20731. --- ************************************************
  20732. --- *** relation: five_hydroxymethylcytidine ***
  20733. --- *** relation type: VIEW ***
  20734. --- *** ***
  20735. --- *** 5-hydroxymethylcytidine is a modified cy ***
  20736. --- *** tidine. ***
  20737. --- ************************************************
  20738. ---
  20739. CREATE VIEW five_hydroxymethylcytidine AS
  20740. SELECT
  20741. feature_id AS five_hydroxymethylcytidine_id,
  20742. feature.*
  20743. FROM
  20744. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20745. WHERE cvterm.name = 'five_hydroxymethylcytidine';
  20746. --- ************************************************
  20747. --- *** relation: five_formyl_two_prime_o_methylcytidine ***
  20748. --- *** relation type: VIEW ***
  20749. --- *** ***
  20750. --- *** 5-formyl-2'-O-methylcytidine is a modifi ***
  20751. --- *** ed cytidine. ***
  20752. --- ************************************************
  20753. ---
  20754. CREATE VIEW five_formyl_two_prime_o_methylcytidine AS
  20755. SELECT
  20756. feature_id AS five_formyl_two_prime_o_methylcytidine_id,
  20757. feature.*
  20758. FROM
  20759. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20760. WHERE cvterm.name = 'five_formyl_two_prime_O_methylcytidine';
  20761. --- ************************************************
  20762. --- *** relation: n4_n4_2_prime_o_trimethylcytidine ***
  20763. --- *** relation type: VIEW ***
  20764. --- *** ***
  20765. --- *** N4_N4_2_prime_O_trimethylcytidine is a m ***
  20766. --- *** odified cytidine. ***
  20767. --- ************************************************
  20768. ---
  20769. CREATE VIEW n4_n4_2_prime_o_trimethylcytidine AS
  20770. SELECT
  20771. feature_id AS n4_n4_2_prime_o_trimethylcytidine_id,
  20772. feature.*
  20773. FROM
  20774. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20775. WHERE cvterm.name = 'N4_N4_2_prime_O_trimethylcytidine';
  20776. --- ************************************************
  20777. --- *** relation: one_methyladenosine ***
  20778. --- *** relation type: VIEW ***
  20779. --- *** ***
  20780. --- *** 1_methyladenosine is a modified adenosin ***
  20781. --- *** e. ***
  20782. --- ************************************************
  20783. ---
  20784. CREATE VIEW one_methyladenosine AS
  20785. SELECT
  20786. feature_id AS one_methyladenosine_id,
  20787. feature.*
  20788. FROM
  20789. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20790. WHERE cvterm.name = 'one_methyladenosine';
  20791. --- ************************************************
  20792. --- *** relation: two_methyladenosine ***
  20793. --- *** relation type: VIEW ***
  20794. --- *** ***
  20795. --- *** 2_methyladenosine is a modified adenosin ***
  20796. --- *** e. ***
  20797. --- ************************************************
  20798. ---
  20799. CREATE VIEW two_methyladenosine AS
  20800. SELECT
  20801. feature_id AS two_methyladenosine_id,
  20802. feature.*
  20803. FROM
  20804. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20805. WHERE cvterm.name = 'two_methyladenosine';
  20806. --- ************************************************
  20807. --- *** relation: n6_methyladenosine ***
  20808. --- *** relation type: VIEW ***
  20809. --- *** ***
  20810. --- *** N6_methyladenosine is a modified adenosi ***
  20811. --- *** ne. ***
  20812. --- ************************************************
  20813. ---
  20814. CREATE VIEW n6_methyladenosine AS
  20815. SELECT
  20816. feature_id AS n6_methyladenosine_id,
  20817. feature.*
  20818. FROM
  20819. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20820. WHERE cvterm.name = 'N6_methyladenosine';
  20821. --- ************************************************
  20822. --- *** relation: two_prime_o_methyladenosine ***
  20823. --- *** relation type: VIEW ***
  20824. --- *** ***
  20825. --- *** 2prime_O_methyladenosine is a modified a ***
  20826. --- *** denosine. ***
  20827. --- ************************************************
  20828. ---
  20829. CREATE VIEW two_prime_o_methyladenosine AS
  20830. SELECT
  20831. feature_id AS two_prime_o_methyladenosine_id,
  20832. feature.*
  20833. FROM
  20834. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20835. WHERE cvterm.name = 'two_prime_O_methyladenosine';
  20836. --- ************************************************
  20837. --- *** relation: two_methylthio_n6_methyladenosine ***
  20838. --- *** relation type: VIEW ***
  20839. --- *** ***
  20840. --- *** 2_methylthio_N6_methyladenosine is a mod ***
  20841. --- *** ified adenosine. ***
  20842. --- ************************************************
  20843. ---
  20844. CREATE VIEW two_methylthio_n6_methyladenosine AS
  20845. SELECT
  20846. feature_id AS two_methylthio_n6_methyladenosine_id,
  20847. feature.*
  20848. FROM
  20849. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20850. WHERE cvterm.name = 'two_methylthio_N6_methyladenosine';
  20851. --- ************************************************
  20852. --- *** relation: n6_isopentenyladenosine ***
  20853. --- *** relation type: VIEW ***
  20854. --- *** ***
  20855. --- *** N6_isopentenyladenosine is a modified ad ***
  20856. --- *** enosine. ***
  20857. --- ************************************************
  20858. ---
  20859. CREATE VIEW n6_isopentenyladenosine AS
  20860. SELECT
  20861. feature_id AS n6_isopentenyladenosine_id,
  20862. feature.*
  20863. FROM
  20864. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20865. WHERE cvterm.name = 'N6_isopentenyladenosine';
  20866. --- ************************************************
  20867. --- *** relation: two_methylthio_n6_isopentenyladenosine ***
  20868. --- *** relation type: VIEW ***
  20869. --- *** ***
  20870. --- *** 2_methylthio_N6_isopentenyladenosine is ***
  20871. --- *** a modified adenosine. ***
  20872. --- ************************************************
  20873. ---
  20874. CREATE VIEW two_methylthio_n6_isopentenyladenosine AS
  20875. SELECT
  20876. feature_id AS two_methylthio_n6_isopentenyladenosine_id,
  20877. feature.*
  20878. FROM
  20879. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20880. WHERE cvterm.name = 'two_methylthio_N6_isopentenyladenosine';
  20881. --- ************************************************
  20882. --- *** relation: n6_cis_hydroxyisopentenyl_adenosine ***
  20883. --- *** relation type: VIEW ***
  20884. --- *** ***
  20885. --- *** N6_cis_hydroxyisopentenyl_adenosine is a ***
  20886. --- *** modified adenosine. ***
  20887. --- ************************************************
  20888. ---
  20889. CREATE VIEW n6_cis_hydroxyisopentenyl_adenosine AS
  20890. SELECT
  20891. feature_id AS n6_cis_hydroxyisopentenyl_adenosine_id,
  20892. feature.*
  20893. FROM
  20894. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20895. WHERE cvterm.name = 'N6_cis_hydroxyisopentenyl_adenosine';
  20896. --- ************************************************
  20897. --- *** relation: two_methylthio_n6_cis_hydroxyisopentenyl_adenosine ***
  20898. --- *** relation type: VIEW ***
  20899. --- *** ***
  20900. --- *** 2_methylthio_N6_cis_hydroxyisopentenyl_a ***
  20901. --- *** denosine is a modified adenosine. ***
  20902. --- ************************************************
  20903. ---
  20904. CREATE VIEW two_methylthio_n6_cis_hydroxyisopentenyl_adenosine AS
  20905. SELECT
  20906. feature_id AS two_methylthio_n6_cis_hydroxyisopentenyl_adenosine_id,
  20907. feature.*
  20908. FROM
  20909. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20910. WHERE cvterm.name = 'two_methylthio_N6_cis_hydroxyisopentenyl_adenosine';
  20911. --- ************************************************
  20912. --- *** relation: n6_glycinylcarbamoyladenosine ***
  20913. --- *** relation type: VIEW ***
  20914. --- *** ***
  20915. --- *** N6_glycinylcarbamoyladenosine is a modif ***
  20916. --- *** ied adenosine. ***
  20917. --- ************************************************
  20918. ---
  20919. CREATE VIEW n6_glycinylcarbamoyladenosine AS
  20920. SELECT
  20921. feature_id AS n6_glycinylcarbamoyladenosine_id,
  20922. feature.*
  20923. FROM
  20924. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20925. WHERE cvterm.name = 'N6_glycinylcarbamoyladenosine';
  20926. --- ************************************************
  20927. --- *** relation: n6_threonylcarbamoyladenosine ***
  20928. --- *** relation type: VIEW ***
  20929. --- *** ***
  20930. --- *** N6_threonylcarbamoyladenosine is a modif ***
  20931. --- *** ied adenosine. ***
  20932. --- ************************************************
  20933. ---
  20934. CREATE VIEW n6_threonylcarbamoyladenosine AS
  20935. SELECT
  20936. feature_id AS n6_threonylcarbamoyladenosine_id,
  20937. feature.*
  20938. FROM
  20939. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20940. WHERE cvterm.name = 'N6_threonylcarbamoyladenosine';
  20941. --- ************************************************
  20942. --- *** relation: two_methylthio_n6_threonyl_carbamoyladenosine ***
  20943. --- *** relation type: VIEW ***
  20944. --- *** ***
  20945. --- *** 2_methylthio_N6_threonyl_carbamoyladenos ***
  20946. --- *** ine is a modified adenosine. ***
  20947. --- ************************************************
  20948. ---
  20949. CREATE VIEW two_methylthio_n6_threonyl_carbamoyladenosine AS
  20950. SELECT
  20951. feature_id AS two_methylthio_n6_threonyl_carbamoyladenosine_id,
  20952. feature.*
  20953. FROM
  20954. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20955. WHERE cvterm.name = 'two_methylthio_N6_threonyl_carbamoyladenosine';
  20956. --- ************************************************
  20957. --- *** relation: n6_methyl_n6_threonylcarbamoyladenosine ***
  20958. --- *** relation type: VIEW ***
  20959. --- *** ***
  20960. --- *** N6_methyl_N6_threonylcarbamoyladenosine ***
  20961. --- *** is a modified adenosine. ***
  20962. --- ************************************************
  20963. ---
  20964. CREATE VIEW n6_methyl_n6_threonylcarbamoyladenosine AS
  20965. SELECT
  20966. feature_id AS n6_methyl_n6_threonylcarbamoyladenosine_id,
  20967. feature.*
  20968. FROM
  20969. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20970. WHERE cvterm.name = 'N6_methyl_N6_threonylcarbamoyladenosine';
  20971. --- ************************************************
  20972. --- *** relation: n6_hydroxynorvalylcarbamoyladenosine ***
  20973. --- *** relation type: VIEW ***
  20974. --- *** ***
  20975. --- *** N6_hydroxynorvalylcarbamoyladenosine is ***
  20976. --- *** a modified adenosine. ***
  20977. --- ************************************************
  20978. ---
  20979. CREATE VIEW n6_hydroxynorvalylcarbamoyladenosine AS
  20980. SELECT
  20981. feature_id AS n6_hydroxynorvalylcarbamoyladenosine_id,
  20982. feature.*
  20983. FROM
  20984. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20985. WHERE cvterm.name = 'N6_hydroxynorvalylcarbamoyladenosine';
  20986. --- ************************************************
  20987. --- *** relation: two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine ***
  20988. --- *** relation type: VIEW ***
  20989. --- *** ***
  20990. --- *** 2_methylthio_N6_hydroxynorvalyl_carbamoy ***
  20991. --- *** ladenosine is a modified adenosine. ***
  20992. --- ************************************************
  20993. ---
  20994. CREATE VIEW two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine AS
  20995. SELECT
  20996. feature_id AS two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine_id,
  20997. feature.*
  20998. FROM
  20999. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21000. WHERE cvterm.name = 'two_methylthio_N6_hydroxynorvalyl_carbamoyladenosine';
  21001. --- ************************************************
  21002. --- *** relation: two_prime_o_riboA_phosphate ***
  21003. --- *** relation type: VIEW ***
  21004. --- *** ***
  21005. --- *** 2prime_O_ribosyladenosine_phosphate is a ***
  21006. --- *** modified adenosine. ***
  21007. --- ************************************************
  21008. ---
  21009. CREATE VIEW two_prime_o_riboA_phosphate AS
  21010. SELECT
  21011. feature_id AS two_prime_o_riboA_phosphate_id,
  21012. feature.*
  21013. FROM
  21014. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21015. WHERE cvterm.name = 'two_prime_O_ribosyladenosine_phosphate';
  21016. --- ************************************************
  21017. --- *** relation: n6_n6_dimethyladenosine ***
  21018. --- *** relation type: VIEW ***
  21019. --- *** ***
  21020. --- *** N6_N6_dimethyladenosine is a modified ad ***
  21021. --- *** enosine. ***
  21022. --- ************************************************
  21023. ---
  21024. CREATE VIEW n6_n6_dimethyladenosine AS
  21025. SELECT
  21026. feature_id AS n6_n6_dimethyladenosine_id,
  21027. feature.*
  21028. FROM
  21029. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21030. WHERE cvterm.name = 'N6_N6_dimethyladenosine';
  21031. --- ************************************************
  21032. --- *** relation: n6_2_prime_o_dimethyladenosine ***
  21033. --- *** relation type: VIEW ***
  21034. --- *** ***
  21035. --- *** N6_2prime_O_dimethyladenosine is a modif ***
  21036. --- *** ied adenosine. ***
  21037. --- ************************************************
  21038. ---
  21039. CREATE VIEW n6_2_prime_o_dimethyladenosine AS
  21040. SELECT
  21041. feature_id AS n6_2_prime_o_dimethyladenosine_id,
  21042. feature.*
  21043. FROM
  21044. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21045. WHERE cvterm.name = 'N6_2_prime_O_dimethyladenosine';
  21046. --- ************************************************
  21047. --- *** relation: n6_n6_2_prime_o_trimethyladenosine ***
  21048. --- *** relation type: VIEW ***
  21049. --- *** ***
  21050. --- *** N6_N6_2prime_O_trimethyladenosine is a m ***
  21051. --- *** odified adenosine. ***
  21052. --- ************************************************
  21053. ---
  21054. CREATE VIEW n6_n6_2_prime_o_trimethyladenosine AS
  21055. SELECT
  21056. feature_id AS n6_n6_2_prime_o_trimethyladenosine_id,
  21057. feature.*
  21058. FROM
  21059. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21060. WHERE cvterm.name = 'N6_N6_2_prime_O_trimethyladenosine';
  21061. --- ************************************************
  21062. --- *** relation: one_two_prime_o_dimethyladenosine ***
  21063. --- *** relation type: VIEW ***
  21064. --- *** ***
  21065. --- *** 1,2'-O-dimethyladenosine is a modified a ***
  21066. --- *** denosine. ***
  21067. --- ************************************************
  21068. ---
  21069. CREATE VIEW one_two_prime_o_dimethyladenosine AS
  21070. SELECT
  21071. feature_id AS one_two_prime_o_dimethyladenosine_id,
  21072. feature.*
  21073. FROM
  21074. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21075. WHERE cvterm.name = 'one_two_prime_O_dimethyladenosine';
  21076. --- ************************************************
  21077. --- *** relation: n6_acetyladenosine ***
  21078. --- *** relation type: VIEW ***
  21079. --- *** ***
  21080. --- *** N6_acetyladenosine is a modified adenosi ***
  21081. --- *** ne. ***
  21082. --- ************************************************
  21083. ---
  21084. CREATE VIEW n6_acetyladenosine AS
  21085. SELECT
  21086. feature_id AS n6_acetyladenosine_id,
  21087. feature.*
  21088. FROM
  21089. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21090. WHERE cvterm.name = 'N6_acetyladenosine';
  21091. --- ************************************************
  21092. --- *** relation: seven_deazaguanosine ***
  21093. --- *** relation type: VIEW ***
  21094. --- *** ***
  21095. --- *** 7-deazaguanosine is a moddified guanosin ***
  21096. --- *** e. ***
  21097. --- ************************************************
  21098. ---
  21099. CREATE VIEW seven_deazaguanosine AS
  21100. SELECT
  21101. feature_id AS seven_deazaguanosine_id,
  21102. feature.*
  21103. FROM
  21104. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21105. 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';
  21106. --- ************************************************
  21107. --- *** relation: queuosine ***
  21108. --- *** relation type: VIEW ***
  21109. --- *** ***
  21110. --- *** Queuosine is a modified 7-deazoguanosine ***
  21111. --- *** . ***
  21112. --- ************************************************
  21113. ---
  21114. CREATE VIEW queuosine AS
  21115. SELECT
  21116. feature_id AS queuosine_id,
  21117. feature.*
  21118. FROM
  21119. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21120. WHERE cvterm.name = 'queuosine';
  21121. --- ************************************************
  21122. --- *** relation: epoxyqueuosine ***
  21123. --- *** relation type: VIEW ***
  21124. --- *** ***
  21125. --- *** Epoxyqueuosine is a modified 7-deazoguan ***
  21126. --- *** osine. ***
  21127. --- ************************************************
  21128. ---
  21129. CREATE VIEW epoxyqueuosine AS
  21130. SELECT
  21131. feature_id AS epoxyqueuosine_id,
  21132. feature.*
  21133. FROM
  21134. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21135. WHERE cvterm.name = 'epoxyqueuosine';
  21136. --- ************************************************
  21137. --- *** relation: galactosyl_queuosine ***
  21138. --- *** relation type: VIEW ***
  21139. --- *** ***
  21140. --- *** Galactosyl_queuosine is a modified 7-dea ***
  21141. --- *** zoguanosine. ***
  21142. --- ************************************************
  21143. ---
  21144. CREATE VIEW galactosyl_queuosine AS
  21145. SELECT
  21146. feature_id AS galactosyl_queuosine_id,
  21147. feature.*
  21148. FROM
  21149. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21150. WHERE cvterm.name = 'galactosyl_queuosine';
  21151. --- ************************************************
  21152. --- *** relation: mannosyl_queuosine ***
  21153. --- *** relation type: VIEW ***
  21154. --- *** ***
  21155. --- *** Mannosyl_queuosine is a modified 7-deazo ***
  21156. --- *** guanosine. ***
  21157. --- ************************************************
  21158. ---
  21159. CREATE VIEW mannosyl_queuosine AS
  21160. SELECT
  21161. feature_id AS mannosyl_queuosine_id,
  21162. feature.*
  21163. FROM
  21164. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21165. WHERE cvterm.name = 'mannosyl_queuosine';
  21166. --- ************************************************
  21167. --- *** relation: seven_cyano_seven_deazaguanosine ***
  21168. --- *** relation type: VIEW ***
  21169. --- *** ***
  21170. --- *** 7_cyano_7_deazaguanosine is a modified 7 ***
  21171. --- *** -deazoguanosine. ***
  21172. --- ************************************************
  21173. ---
  21174. CREATE VIEW seven_cyano_seven_deazaguanosine AS
  21175. SELECT
  21176. feature_id AS seven_cyano_seven_deazaguanosine_id,
  21177. feature.*
  21178. FROM
  21179. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21180. WHERE cvterm.name = 'seven_cyano_seven_deazaguanosine';
  21181. --- ************************************************
  21182. --- *** relation: seven_aminomethyl_seven_deazaguanosine ***
  21183. --- *** relation type: VIEW ***
  21184. --- *** ***
  21185. --- *** 7_aminomethyl_7_deazaguanosine is a modi ***
  21186. --- *** fied 7-deazoguanosine. ***
  21187. --- ************************************************
  21188. ---
  21189. CREATE VIEW seven_aminomethyl_seven_deazaguanosine AS
  21190. SELECT
  21191. feature_id AS seven_aminomethyl_seven_deazaguanosine_id,
  21192. feature.*
  21193. FROM
  21194. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21195. WHERE cvterm.name = 'seven_aminomethyl_seven_deazaguanosine';
  21196. --- ************************************************
  21197. --- *** relation: archaeosine ***
  21198. --- *** relation type: VIEW ***
  21199. --- *** ***
  21200. --- *** Archaeosine is a modified 7-deazoguanosi ***
  21201. --- *** ne. ***
  21202. --- ************************************************
  21203. ---
  21204. CREATE VIEW archaeosine AS
  21205. SELECT
  21206. feature_id AS archaeosine_id,
  21207. feature.*
  21208. FROM
  21209. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21210. WHERE cvterm.name = 'archaeosine';
  21211. --- ************************************************
  21212. --- *** relation: one_methylguanosine ***
  21213. --- *** relation type: VIEW ***
  21214. --- *** ***
  21215. --- *** 1_methylguanosine is a modified guanosin ***
  21216. --- *** e base feature. ***
  21217. --- ************************************************
  21218. ---
  21219. CREATE VIEW one_methylguanosine AS
  21220. SELECT
  21221. feature_id AS one_methylguanosine_id,
  21222. feature.*
  21223. FROM
  21224. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21225. WHERE cvterm.name = 'one_methylguanosine';
  21226. --- ************************************************
  21227. --- *** relation: n2_methylguanosine ***
  21228. --- *** relation type: VIEW ***
  21229. --- *** ***
  21230. --- *** N2_methylguanosine is a modified guanosi ***
  21231. --- *** ne base feature. ***
  21232. --- ************************************************
  21233. ---
  21234. CREATE VIEW n2_methylguanosine AS
  21235. SELECT
  21236. feature_id AS n2_methylguanosine_id,
  21237. feature.*
  21238. FROM
  21239. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21240. WHERE cvterm.name = 'N2_methylguanosine';
  21241. --- ************************************************
  21242. --- *** relation: seven_methylguanosine ***
  21243. --- *** relation type: VIEW ***
  21244. --- *** ***
  21245. --- *** 7_methylguanosine is a modified guanosin ***
  21246. --- *** e base feature. ***
  21247. --- ************************************************
  21248. ---
  21249. CREATE VIEW seven_methylguanosine AS
  21250. SELECT
  21251. feature_id AS seven_methylguanosine_id,
  21252. feature.*
  21253. FROM
  21254. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21255. WHERE cvterm.name = 'seven_methylguanosine';
  21256. --- ************************************************
  21257. --- *** relation: two_prime_o_methylguanosine ***
  21258. --- *** relation type: VIEW ***
  21259. --- *** ***
  21260. --- *** 2prime_O_methylguanosine is a modified g ***
  21261. --- *** uanosine base feature. ***
  21262. --- ************************************************
  21263. ---
  21264. CREATE VIEW two_prime_o_methylguanosine AS
  21265. SELECT
  21266. feature_id AS two_prime_o_methylguanosine_id,
  21267. feature.*
  21268. FROM
  21269. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21270. WHERE cvterm.name = 'two_prime_O_methylguanosine';
  21271. --- ************************************************
  21272. --- *** relation: n2_n2_dimethylguanosine ***
  21273. --- *** relation type: VIEW ***
  21274. --- *** ***
  21275. --- *** N2_N2_dimethylguanosine is a modified gu ***
  21276. --- *** anosine base feature. ***
  21277. --- ************************************************
  21278. ---
  21279. CREATE VIEW n2_n2_dimethylguanosine AS
  21280. SELECT
  21281. feature_id AS n2_n2_dimethylguanosine_id,
  21282. feature.*
  21283. FROM
  21284. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21285. WHERE cvterm.name = 'N2_N2_dimethylguanosine';
  21286. --- ************************************************
  21287. --- *** relation: n2_2_prime_o_dimethylguanosine ***
  21288. --- *** relation type: VIEW ***
  21289. --- *** ***
  21290. --- *** N2_2prime_O_dimethylguanosine is a modif ***
  21291. --- *** ied guanosine base feature. ***
  21292. --- ************************************************
  21293. ---
  21294. CREATE VIEW n2_2_prime_o_dimethylguanosine AS
  21295. SELECT
  21296. feature_id AS n2_2_prime_o_dimethylguanosine_id,
  21297. feature.*
  21298. FROM
  21299. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21300. WHERE cvterm.name = 'N2_2_prime_O_dimethylguanosine';
  21301. --- ************************************************
  21302. --- *** relation: n2_n2_2_prime_o_trimethylguanosine ***
  21303. --- *** relation type: VIEW ***
  21304. --- *** ***
  21305. --- *** N2_N2_2prime_O_trimethylguanosine is a m ***
  21306. --- *** odified guanosine base feature. ***
  21307. --- ************************************************
  21308. ---
  21309. CREATE VIEW n2_n2_2_prime_o_trimethylguanosine AS
  21310. SELECT
  21311. feature_id AS n2_n2_2_prime_o_trimethylguanosine_id,
  21312. feature.*
  21313. FROM
  21314. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21315. WHERE cvterm.name = 'N2_N2_2_prime_O_trimethylguanosine';
  21316. --- ************************************************
  21317. --- *** relation: two_prime_o_ribosylguanosine_phosphate ***
  21318. --- *** relation type: VIEW ***
  21319. --- *** ***
  21320. --- *** 2prime_O_ribosylguanosine_phosphate is a ***
  21321. --- *** modified guanosine base feature. ***
  21322. --- ************************************************
  21323. ---
  21324. CREATE VIEW two_prime_o_ribosylguanosine_phosphate AS
  21325. SELECT
  21326. feature_id AS two_prime_o_ribosylguanosine_phosphate_id,
  21327. feature.*
  21328. FROM
  21329. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21330. WHERE cvterm.name = 'two_prime_O_ribosylguanosine_phosphate';
  21331. --- ************************************************
  21332. --- *** relation: wybutosine ***
  21333. --- *** relation type: VIEW ***
  21334. --- *** ***
  21335. --- *** Wybutosine is a modified guanosine base ***
  21336. --- *** feature. ***
  21337. --- ************************************************
  21338. ---
  21339. CREATE VIEW wybutosine AS
  21340. SELECT
  21341. feature_id AS wybutosine_id,
  21342. feature.*
  21343. FROM
  21344. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21345. WHERE cvterm.name = 'wybutosine';
  21346. --- ************************************************
  21347. --- *** relation: peroxywybutosine ***
  21348. --- *** relation type: VIEW ***
  21349. --- *** ***
  21350. --- *** Peroxywybutosine is a modified guanosine ***
  21351. --- *** base feature. ***
  21352. --- ************************************************
  21353. ---
  21354. CREATE VIEW peroxywybutosine AS
  21355. SELECT
  21356. feature_id AS peroxywybutosine_id,
  21357. feature.*
  21358. FROM
  21359. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21360. WHERE cvterm.name = 'peroxywybutosine';
  21361. --- ************************************************
  21362. --- *** relation: hydroxywybutosine ***
  21363. --- *** relation type: VIEW ***
  21364. --- *** ***
  21365. --- *** Hydroxywybutosine is a modified guanosin ***
  21366. --- *** e base feature. ***
  21367. --- ************************************************
  21368. ---
  21369. CREATE VIEW hydroxywybutosine AS
  21370. SELECT
  21371. feature_id AS hydroxywybutosine_id,
  21372. feature.*
  21373. FROM
  21374. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21375. WHERE cvterm.name = 'hydroxywybutosine';
  21376. --- ************************************************
  21377. --- *** relation: undermodified_hydroxywybutosine ***
  21378. --- *** relation type: VIEW ***
  21379. --- *** ***
  21380. --- *** Undermodified_hydroxywybutosine is a mod ***
  21381. --- *** ified guanosine base feature. ***
  21382. --- ************************************************
  21383. ---
  21384. CREATE VIEW undermodified_hydroxywybutosine AS
  21385. SELECT
  21386. feature_id AS undermodified_hydroxywybutosine_id,
  21387. feature.*
  21388. FROM
  21389. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21390. WHERE cvterm.name = 'undermodified_hydroxywybutosine';
  21391. --- ************************************************
  21392. --- *** relation: wyosine ***
  21393. --- *** relation type: VIEW ***
  21394. --- *** ***
  21395. --- *** Wyosine is a modified guanosine base fea ***
  21396. --- *** ture. ***
  21397. --- ************************************************
  21398. ---
  21399. CREATE VIEW wyosine AS
  21400. SELECT
  21401. feature_id AS wyosine_id,
  21402. feature.*
  21403. FROM
  21404. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21405. WHERE cvterm.name = 'wyosine';
  21406. --- ************************************************
  21407. --- *** relation: methylwyosine ***
  21408. --- *** relation type: VIEW ***
  21409. --- *** ***
  21410. --- *** Methylwyosine is a modified guanosine ba ***
  21411. --- *** se feature. ***
  21412. --- ************************************************
  21413. ---
  21414. CREATE VIEW methylwyosine AS
  21415. SELECT
  21416. feature_id AS methylwyosine_id,
  21417. feature.*
  21418. FROM
  21419. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21420. WHERE cvterm.name = 'methylwyosine';
  21421. --- ************************************************
  21422. --- *** relation: n2_7_dimethylguanosine ***
  21423. --- *** relation type: VIEW ***
  21424. --- *** ***
  21425. --- *** N2_7_dimethylguanosine is a modified gua ***
  21426. --- *** nosine base feature. ***
  21427. --- ************************************************
  21428. ---
  21429. CREATE VIEW n2_7_dimethylguanosine AS
  21430. SELECT
  21431. feature_id AS n2_7_dimethylguanosine_id,
  21432. feature.*
  21433. FROM
  21434. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21435. WHERE cvterm.name = 'N2_7_dimethylguanosine';
  21436. --- ************************************************
  21437. --- *** relation: n2_n2_7_trimethylguanosine ***
  21438. --- *** relation type: VIEW ***
  21439. --- *** ***
  21440. --- *** N2_N2_7_trimethylguanosine is a modified ***
  21441. --- *** guanosine base feature. ***
  21442. --- ************************************************
  21443. ---
  21444. CREATE VIEW n2_n2_7_trimethylguanosine AS
  21445. SELECT
  21446. feature_id AS n2_n2_7_trimethylguanosine_id,
  21447. feature.*
  21448. FROM
  21449. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21450. WHERE cvterm.name = 'N2_N2_7_trimethylguanosine';
  21451. --- ************************************************
  21452. --- *** relation: one_two_prime_o_dimethylguanosine ***
  21453. --- *** relation type: VIEW ***
  21454. --- *** ***
  21455. --- *** 1_2prime_O_dimethylguanosine is a modifi ***
  21456. --- *** ed guanosine base feature. ***
  21457. --- ************************************************
  21458. ---
  21459. CREATE VIEW one_two_prime_o_dimethylguanosine AS
  21460. SELECT
  21461. feature_id AS one_two_prime_o_dimethylguanosine_id,
  21462. feature.*
  21463. FROM
  21464. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21465. WHERE cvterm.name = 'one_two_prime_O_dimethylguanosine';
  21466. --- ************************************************
  21467. --- *** relation: four_demethylwyosine ***
  21468. --- *** relation type: VIEW ***
  21469. --- *** ***
  21470. --- *** 4_demethylwyosine is a modified guanosin ***
  21471. --- *** e base feature. ***
  21472. --- ************************************************
  21473. ---
  21474. CREATE VIEW four_demethylwyosine AS
  21475. SELECT
  21476. feature_id AS four_demethylwyosine_id,
  21477. feature.*
  21478. FROM
  21479. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21480. WHERE cvterm.name = 'four_demethylwyosine';
  21481. --- ************************************************
  21482. --- *** relation: isowyosine ***
  21483. --- *** relation type: VIEW ***
  21484. --- *** ***
  21485. --- *** Isowyosine is a modified guanosine base ***
  21486. --- *** feature. ***
  21487. --- ************************************************
  21488. ---
  21489. CREATE VIEW isowyosine AS
  21490. SELECT
  21491. feature_id AS isowyosine_id,
  21492. feature.*
  21493. FROM
  21494. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21495. WHERE cvterm.name = 'isowyosine';
  21496. --- ************************************************
  21497. --- *** relation: n2_7_2prirme_o_trimethylguanosine ***
  21498. --- *** relation type: VIEW ***
  21499. --- *** ***
  21500. --- *** N2_7_2prirme_O_trimethylguanosine is a m ***
  21501. --- *** odified guanosine base feature. ***
  21502. --- ************************************************
  21503. ---
  21504. CREATE VIEW n2_7_2prirme_o_trimethylguanosine AS
  21505. SELECT
  21506. feature_id AS n2_7_2prirme_o_trimethylguanosine_id,
  21507. feature.*
  21508. FROM
  21509. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21510. WHERE cvterm.name = 'N2_7_2prirme_O_trimethylguanosine';
  21511. --- ************************************************
  21512. --- *** relation: five_methyluridine ***
  21513. --- *** relation type: VIEW ***
  21514. --- *** ***
  21515. --- *** 5_methyluridine is a modified uridine ba ***
  21516. --- *** se feature. ***
  21517. --- ************************************************
  21518. ---
  21519. CREATE VIEW five_methyluridine AS
  21520. SELECT
  21521. feature_id AS five_methyluridine_id,
  21522. feature.*
  21523. FROM
  21524. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21525. WHERE cvterm.name = 'five_methyluridine';
  21526. --- ************************************************
  21527. --- *** relation: two_prime_o_methyluridine ***
  21528. --- *** relation type: VIEW ***
  21529. --- *** ***
  21530. --- *** 2prime_O_methyluridine is a modified uri ***
  21531. --- *** dine base feature. ***
  21532. --- ************************************************
  21533. ---
  21534. CREATE VIEW two_prime_o_methyluridine AS
  21535. SELECT
  21536. feature_id AS two_prime_o_methyluridine_id,
  21537. feature.*
  21538. FROM
  21539. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21540. WHERE cvterm.name = 'two_prime_O_methyluridine';
  21541. --- ************************************************
  21542. --- *** relation: five_two_prime_o_dimethyluridine ***
  21543. --- *** relation type: VIEW ***
  21544. --- *** ***
  21545. --- *** 5_2_prime_O_dimethyluridine is a modifie ***
  21546. --- *** d uridine base feature. ***
  21547. --- ************************************************
  21548. ---
  21549. CREATE VIEW five_two_prime_o_dimethyluridine AS
  21550. SELECT
  21551. feature_id AS five_two_prime_o_dimethyluridine_id,
  21552. feature.*
  21553. FROM
  21554. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21555. WHERE cvterm.name = 'five_two_prime_O_dimethyluridine';
  21556. --- ************************************************
  21557. --- *** relation: one_methylpseudouridine ***
  21558. --- *** relation type: VIEW ***
  21559. --- *** ***
  21560. --- *** 1_methylpseudouridine is a modified urid ***
  21561. --- *** ine base feature. ***
  21562. --- ************************************************
  21563. ---
  21564. CREATE VIEW one_methylpseudouridine AS
  21565. SELECT
  21566. feature_id AS one_methylpseudouridine_id,
  21567. feature.*
  21568. FROM
  21569. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21570. WHERE cvterm.name = 'one_methylpseudouridine';
  21571. --- ************************************************
  21572. --- *** relation: two_prime_o_methylpseudouridine ***
  21573. --- *** relation type: VIEW ***
  21574. --- *** ***
  21575. --- *** 2prime_O_methylpseudouridine is a modifi ***
  21576. --- *** ed uridine base feature. ***
  21577. --- ************************************************
  21578. ---
  21579. CREATE VIEW two_prime_o_methylpseudouridine AS
  21580. SELECT
  21581. feature_id AS two_prime_o_methylpseudouridine_id,
  21582. feature.*
  21583. FROM
  21584. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21585. WHERE cvterm.name = 'two_prime_O_methylpseudouridine';
  21586. --- ************************************************
  21587. --- *** relation: two_thiouridine ***
  21588. --- *** relation type: VIEW ***
  21589. --- *** ***
  21590. --- *** 2_thiouridine is a modified uridine base ***
  21591. --- *** feature. ***
  21592. --- ************************************************
  21593. ---
  21594. CREATE VIEW two_thiouridine AS
  21595. SELECT
  21596. feature_id AS two_thiouridine_id,
  21597. feature.*
  21598. FROM
  21599. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21600. WHERE cvterm.name = 'two_thiouridine';
  21601. --- ************************************************
  21602. --- *** relation: four_thiouridine ***
  21603. --- *** relation type: VIEW ***
  21604. --- *** ***
  21605. --- *** 4_thiouridine is a modified uridine base ***
  21606. --- *** feature. ***
  21607. --- ************************************************
  21608. ---
  21609. CREATE VIEW four_thiouridine AS
  21610. SELECT
  21611. feature_id AS four_thiouridine_id,
  21612. feature.*
  21613. FROM
  21614. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21615. WHERE cvterm.name = 'four_thiouridine';
  21616. --- ************************************************
  21617. --- *** relation: five_methyl_2_thiouridine ***
  21618. --- *** relation type: VIEW ***
  21619. --- *** ***
  21620. --- *** 5_methyl_2_thiouridine is a modified uri ***
  21621. --- *** dine base feature. ***
  21622. --- ************************************************
  21623. ---
  21624. CREATE VIEW five_methyl_2_thiouridine AS
  21625. SELECT
  21626. feature_id AS five_methyl_2_thiouridine_id,
  21627. feature.*
  21628. FROM
  21629. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21630. WHERE cvterm.name = 'five_methyl_2_thiouridine';
  21631. --- ************************************************
  21632. --- *** relation: two_thio_two_prime_o_methyluridine ***
  21633. --- *** relation type: VIEW ***
  21634. --- *** ***
  21635. --- *** 2_thio_2prime_O_methyluridine is a modif ***
  21636. --- *** ied uridine base feature. ***
  21637. --- ************************************************
  21638. ---
  21639. CREATE VIEW two_thio_two_prime_o_methyluridine AS
  21640. SELECT
  21641. feature_id AS two_thio_two_prime_o_methyluridine_id,
  21642. feature.*
  21643. FROM
  21644. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21645. WHERE cvterm.name = 'two_thio_two_prime_O_methyluridine';
  21646. --- ************************************************
  21647. --- *** relation: three_three_amino_three_carboxypropyl_uridine ***
  21648. --- *** relation type: VIEW ***
  21649. --- *** ***
  21650. --- *** 3_3_amino_3_carboxypropyl_uridine is a m ***
  21651. --- *** odified uridine base feature. ***
  21652. --- ************************************************
  21653. ---
  21654. CREATE VIEW three_three_amino_three_carboxypropyl_uridine AS
  21655. SELECT
  21656. feature_id AS three_three_amino_three_carboxypropyl_uridine_id,
  21657. feature.*
  21658. FROM
  21659. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21660. WHERE cvterm.name = 'three_three_amino_three_carboxypropyl_uridine';
  21661. --- ************************************************
  21662. --- *** relation: five_hydroxyuridine ***
  21663. --- *** relation type: VIEW ***
  21664. --- *** ***
  21665. --- *** 5_hydroxyuridine is a modified uridine b ***
  21666. --- *** ase feature. ***
  21667. --- ************************************************
  21668. ---
  21669. CREATE VIEW five_hydroxyuridine AS
  21670. SELECT
  21671. feature_id AS five_hydroxyuridine_id,
  21672. feature.*
  21673. FROM
  21674. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21675. WHERE cvterm.name = 'five_hydroxyuridine';
  21676. --- ************************************************
  21677. --- *** relation: five_methoxyuridine ***
  21678. --- *** relation type: VIEW ***
  21679. --- *** ***
  21680. --- *** 5_methoxyuridine is a modified uridine b ***
  21681. --- *** ase feature. ***
  21682. --- ************************************************
  21683. ---
  21684. CREATE VIEW five_methoxyuridine AS
  21685. SELECT
  21686. feature_id AS five_methoxyuridine_id,
  21687. feature.*
  21688. FROM
  21689. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21690. WHERE cvterm.name = 'five_methoxyuridine';
  21691. --- ************************************************
  21692. --- *** relation: uridine_five_oxyacetic_acid ***
  21693. --- *** relation type: VIEW ***
  21694. --- *** ***
  21695. --- *** Uridine_5_oxyacetic_acid is a modified u ***
  21696. --- *** ridine base feature. ***
  21697. --- ************************************************
  21698. ---
  21699. CREATE VIEW uridine_five_oxyacetic_acid AS
  21700. SELECT
  21701. feature_id AS uridine_five_oxyacetic_acid_id,
  21702. feature.*
  21703. FROM
  21704. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21705. WHERE cvterm.name = 'uridine_five_oxyacetic_acid';
  21706. --- ************************************************
  21707. --- *** relation: uridine_five_oxyacetic_acid_methyl_ester ***
  21708. --- *** relation type: VIEW ***
  21709. --- *** ***
  21710. --- *** Uridine_5_oxyacetic_acid_methyl_ester is ***
  21711. --- *** a modified uridine base feature. ***
  21712. --- ************************************************
  21713. ---
  21714. CREATE VIEW uridine_five_oxyacetic_acid_methyl_ester AS
  21715. SELECT
  21716. feature_id AS uridine_five_oxyacetic_acid_methyl_ester_id,
  21717. feature.*
  21718. FROM
  21719. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21720. WHERE cvterm.name = 'uridine_five_oxyacetic_acid_methyl_ester';
  21721. --- ************************************************
  21722. --- *** relation: five_carboxyhydroxymethyl_uridine ***
  21723. --- *** relation type: VIEW ***
  21724. --- *** ***
  21725. --- *** 5_carboxyhydroxymethyl_uridine is a modi ***
  21726. --- *** fied uridine base feature. ***
  21727. --- ************************************************
  21728. ---
  21729. CREATE VIEW five_carboxyhydroxymethyl_uridine AS
  21730. SELECT
  21731. feature_id AS five_carboxyhydroxymethyl_uridine_id,
  21732. feature.*
  21733. FROM
  21734. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21735. WHERE cvterm.name = 'five_carboxyhydroxymethyl_uridine';
  21736. --- ************************************************
  21737. --- *** relation: five_carboxyhydroxymethyl_uridine_methyl_ester ***
  21738. --- *** relation type: VIEW ***
  21739. --- *** ***
  21740. --- *** 5_carboxyhydroxymethyl_uridine_methyl_es ***
  21741. --- *** ter is a modified uridine base feature. ***
  21742. --- ************************************************
  21743. ---
  21744. CREATE VIEW five_carboxyhydroxymethyl_uridine_methyl_ester AS
  21745. SELECT
  21746. feature_id AS five_carboxyhydroxymethyl_uridine_methyl_ester_id,
  21747. feature.*
  21748. FROM
  21749. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21750. WHERE cvterm.name = 'five_carboxyhydroxymethyl_uridine_methyl_ester';
  21751. --- ************************************************
  21752. --- *** relation: five_methoxycarbonylmethyluridine ***
  21753. --- *** relation type: VIEW ***
  21754. --- *** ***
  21755. --- *** Five_methoxycarbonylmethyluridine is a m ***
  21756. --- *** odified uridine base feature. ***
  21757. --- ************************************************
  21758. ---
  21759. CREATE VIEW five_methoxycarbonylmethyluridine AS
  21760. SELECT
  21761. feature_id AS five_methoxycarbonylmethyluridine_id,
  21762. feature.*
  21763. FROM
  21764. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21765. WHERE cvterm.name = 'five_methoxycarbonylmethyluridine';
  21766. --- ************************************************
  21767. --- *** relation: five_methoxycarbonylmethyl_two_prime_o_methyluridine ***
  21768. --- *** relation type: VIEW ***
  21769. --- *** ***
  21770. --- *** Five_methoxycarbonylmethyl_2_prime_O_met ***
  21771. --- *** hyluridine is a modified uridine base fe ***
  21772. --- *** ature. ***
  21773. --- ************************************************
  21774. ---
  21775. CREATE VIEW five_methoxycarbonylmethyl_two_prime_o_methyluridine AS
  21776. SELECT
  21777. feature_id AS five_methoxycarbonylmethyl_two_prime_o_methyluridine_id,
  21778. feature.*
  21779. FROM
  21780. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21781. WHERE cvterm.name = 'five_methoxycarbonylmethyl_two_prime_O_methyluridine';
  21782. --- ************************************************
  21783. --- *** relation: five_mcm_2_thiouridine ***
  21784. --- *** relation type: VIEW ***
  21785. --- *** ***
  21786. --- *** 5_methoxycarbonylmethyl_2_thiouridine is ***
  21787. --- *** a modified uridine base feature. ***
  21788. --- ************************************************
  21789. ---
  21790. CREATE VIEW five_mcm_2_thiouridine AS
  21791. SELECT
  21792. feature_id AS five_mcm_2_thiouridine_id,
  21793. feature.*
  21794. FROM
  21795. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21796. WHERE cvterm.name = 'five_methoxycarbonylmethyl_two_thiouridine';
  21797. --- ************************************************
  21798. --- *** relation: five_aminomethyl_two_thiouridine ***
  21799. --- *** relation type: VIEW ***
  21800. --- *** ***
  21801. --- *** 5_aminomethyl_2_thiouridine is a modifie ***
  21802. --- *** d uridine base feature. ***
  21803. --- ************************************************
  21804. ---
  21805. CREATE VIEW five_aminomethyl_two_thiouridine AS
  21806. SELECT
  21807. feature_id AS five_aminomethyl_two_thiouridine_id,
  21808. feature.*
  21809. FROM
  21810. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21811. WHERE cvterm.name = 'five_aminomethyl_two_thiouridine';
  21812. --- ************************************************
  21813. --- *** relation: five_methylaminomethyluridine ***
  21814. --- *** relation type: VIEW ***
  21815. --- *** ***
  21816. --- *** 5_methylaminomethyluridine is a modified ***
  21817. --- *** uridine base feature. ***
  21818. --- ************************************************
  21819. ---
  21820. CREATE VIEW five_methylaminomethyluridine AS
  21821. SELECT
  21822. feature_id AS five_methylaminomethyluridine_id,
  21823. feature.*
  21824. FROM
  21825. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21826. WHERE cvterm.name = 'five_methylaminomethyluridine';
  21827. --- ************************************************
  21828. --- *** relation: five_mam_2_thiouridine ***
  21829. --- *** relation type: VIEW ***
  21830. --- *** ***
  21831. --- *** 5_methylaminomethyl_2_thiouridine is a m ***
  21832. --- *** odified uridine base feature. ***
  21833. --- ************************************************
  21834. ---
  21835. CREATE VIEW five_mam_2_thiouridine AS
  21836. SELECT
  21837. feature_id AS five_mam_2_thiouridine_id,
  21838. feature.*
  21839. FROM
  21840. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21841. WHERE cvterm.name = 'five_methylaminomethyl_two_thiouridine';
  21842. --- ************************************************
  21843. --- *** relation: five_methylaminomethyl_two_selenouridine ***
  21844. --- *** relation type: VIEW ***
  21845. --- *** ***
  21846. --- *** 5_methylaminomethyl_2_selenouridine is a ***
  21847. --- *** modified uridine base feature. ***
  21848. --- ************************************************
  21849. ---
  21850. CREATE VIEW five_methylaminomethyl_two_selenouridine AS
  21851. SELECT
  21852. feature_id AS five_methylaminomethyl_two_selenouridine_id,
  21853. feature.*
  21854. FROM
  21855. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21856. WHERE cvterm.name = 'five_methylaminomethyl_two_selenouridine';
  21857. --- ************************************************
  21858. --- *** relation: five_carbamoylmethyluridine ***
  21859. --- *** relation type: VIEW ***
  21860. --- *** ***
  21861. --- *** 5_carbamoylmethyluridine is a modified u ***
  21862. --- *** ridine base feature. ***
  21863. --- ************************************************
  21864. ---
  21865. CREATE VIEW five_carbamoylmethyluridine AS
  21866. SELECT
  21867. feature_id AS five_carbamoylmethyluridine_id,
  21868. feature.*
  21869. FROM
  21870. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21871. WHERE cvterm.name = 'five_carbamoylmethyluridine';
  21872. --- ************************************************
  21873. --- *** relation: five_cm_2_prime_o_methU ***
  21874. --- *** relation type: VIEW ***
  21875. --- *** ***
  21876. --- *** 5_carbamoylmethyl_2_prime_O_methyluridin ***
  21877. --- *** e is a modified uridine base feature. ***
  21878. --- ************************************************
  21879. ---
  21880. CREATE VIEW five_cm_2_prime_o_methU AS
  21881. SELECT
  21882. feature_id AS five_cm_2_prime_o_methU_id,
  21883. feature.*
  21884. FROM
  21885. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21886. WHERE cvterm.name = 'five_carbamoylmethyl_two_prime_O_methyluridine';
  21887. --- ************************************************
  21888. --- *** relation: five_carboxymethylaminomethyluridine ***
  21889. --- *** relation type: VIEW ***
  21890. --- *** ***
  21891. --- *** 5_carboxymethylaminomethyluridine is a m ***
  21892. --- *** odified uridine base feature. ***
  21893. --- ************************************************
  21894. ---
  21895. CREATE VIEW five_carboxymethylaminomethyluridine AS
  21896. SELECT
  21897. feature_id AS five_carboxymethylaminomethyluridine_id,
  21898. feature.*
  21899. FROM
  21900. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21901. WHERE cvterm.name = 'five_carboxymethylaminomethyluridine';
  21902. --- ************************************************
  21903. --- *** relation: five_carboxymethylaminomethyl_two_prime_o_methyluridine ***
  21904. --- *** relation type: VIEW ***
  21905. --- *** ***
  21906. --- *** 5_carboxymethylaminomethyl_2_prime_O_met ***
  21907. --- *** hyluridine is a modified uridine base fe ***
  21908. --- *** ature. ***
  21909. --- ************************************************
  21910. ---
  21911. CREATE VIEW five_carboxymethylaminomethyl_two_prime_o_methyluridine AS
  21912. SELECT
  21913. feature_id AS five_carboxymethylaminomethyl_two_prime_o_methyluridine_id,
  21914. feature.*
  21915. FROM
  21916. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21917. WHERE cvterm.name = 'five_carboxymethylaminomethyl_two_prime_O_methyluridine';
  21918. --- ************************************************
  21919. --- *** relation: five_carboxymethylaminomethyl_two_thiouridine ***
  21920. --- *** relation type: VIEW ***
  21921. --- *** ***
  21922. --- *** 5_carboxymethylaminomethyl_2_thiouridine ***
  21923. --- *** is a modified uridine base feature. ***
  21924. --- ************************************************
  21925. ---
  21926. CREATE VIEW five_carboxymethylaminomethyl_two_thiouridine AS
  21927. SELECT
  21928. feature_id AS five_carboxymethylaminomethyl_two_thiouridine_id,
  21929. feature.*
  21930. FROM
  21931. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21932. WHERE cvterm.name = 'five_carboxymethylaminomethyl_two_thiouridine';
  21933. --- ************************************************
  21934. --- *** relation: three_methyluridine ***
  21935. --- *** relation type: VIEW ***
  21936. --- *** ***
  21937. --- *** 3_methyluridine is a modified uridine ba ***
  21938. --- *** se feature. ***
  21939. --- ************************************************
  21940. ---
  21941. CREATE VIEW three_methyluridine AS
  21942. SELECT
  21943. feature_id AS three_methyluridine_id,
  21944. feature.*
  21945. FROM
  21946. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21947. WHERE cvterm.name = 'three_methyluridine';
  21948. --- ************************************************
  21949. --- *** relation: one_methyl_3_3_amino_three_carboxypropyl_pseudouridine ***
  21950. --- *** relation type: VIEW ***
  21951. --- *** ***
  21952. --- *** 1_methyl_3_3_amino_3_carboxypropyl_pseud ***
  21953. --- *** ouridine is a modified uridine base feat ***
  21954. --- *** ure. ***
  21955. --- ************************************************
  21956. ---
  21957. CREATE VIEW one_methyl_3_3_amino_three_carboxypropyl_pseudouridine AS
  21958. SELECT
  21959. feature_id AS one_methyl_3_3_amino_three_carboxypropyl_pseudouridine_id,
  21960. feature.*
  21961. FROM
  21962. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21963. WHERE cvterm.name = 'one_methyl_three_three_amino_three_carboxypropyl_pseudouridine';
  21964. --- ************************************************
  21965. --- *** relation: five_carboxymethyluridine ***
  21966. --- *** relation type: VIEW ***
  21967. --- *** ***
  21968. --- *** 5_carboxymethyluridine is a modified uri ***
  21969. --- *** dine base feature. ***
  21970. --- ************************************************
  21971. ---
  21972. CREATE VIEW five_carboxymethyluridine AS
  21973. SELECT
  21974. feature_id AS five_carboxymethyluridine_id,
  21975. feature.*
  21976. FROM
  21977. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21978. WHERE cvterm.name = 'five_carboxymethyluridine';
  21979. --- ************************************************
  21980. --- *** relation: three_two_prime_o_dimethyluridine ***
  21981. --- *** relation type: VIEW ***
  21982. --- *** ***
  21983. --- *** 3_2prime_O_dimethyluridine is a modified ***
  21984. --- *** uridine base feature. ***
  21985. --- ************************************************
  21986. ---
  21987. CREATE VIEW three_two_prime_o_dimethyluridine AS
  21988. SELECT
  21989. feature_id AS three_two_prime_o_dimethyluridine_id,
  21990. feature.*
  21991. FROM
  21992. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21993. WHERE cvterm.name = 'three_two_prime_O_dimethyluridine';
  21994. --- ************************************************
  21995. --- *** relation: five_methyldihydrouridine ***
  21996. --- *** relation type: VIEW ***
  21997. --- *** ***
  21998. --- *** 5_methyldihydrouridine is a modified uri ***
  21999. --- *** dine base feature. ***
  22000. --- ************************************************
  22001. ---
  22002. CREATE VIEW five_methyldihydrouridine AS
  22003. SELECT
  22004. feature_id AS five_methyldihydrouridine_id,
  22005. feature.*
  22006. FROM
  22007. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22008. WHERE cvterm.name = 'five_methyldihydrouridine';
  22009. --- ************************************************
  22010. --- *** relation: three_methylpseudouridine ***
  22011. --- *** relation type: VIEW ***
  22012. --- *** ***
  22013. --- *** 3_methylpseudouridine is a modified urid ***
  22014. --- *** ine base feature. ***
  22015. --- ************************************************
  22016. ---
  22017. CREATE VIEW three_methylpseudouridine AS
  22018. SELECT
  22019. feature_id AS three_methylpseudouridine_id,
  22020. feature.*
  22021. FROM
  22022. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22023. WHERE cvterm.name = 'three_methylpseudouridine';
  22024. --- ************************************************
  22025. --- *** relation: five_taurinomethyluridine ***
  22026. --- *** relation type: VIEW ***
  22027. --- *** ***
  22028. --- *** 5_taurinomethyluridine is a modified uri ***
  22029. --- *** dine base feature. ***
  22030. --- ************************************************
  22031. ---
  22032. CREATE VIEW five_taurinomethyluridine AS
  22033. SELECT
  22034. feature_id AS five_taurinomethyluridine_id,
  22035. feature.*
  22036. FROM
  22037. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22038. WHERE cvterm.name = 'five_taurinomethyluridine';
  22039. --- ************************************************
  22040. --- *** relation: five_taurinomethyl_two_thiouridine ***
  22041. --- *** relation type: VIEW ***
  22042. --- *** ***
  22043. --- *** 5_taurinomethyl_2_thiouridineis a modifi ***
  22044. --- *** ed uridine base feature. ***
  22045. --- ************************************************
  22046. ---
  22047. CREATE VIEW five_taurinomethyl_two_thiouridine AS
  22048. SELECT
  22049. feature_id AS five_taurinomethyl_two_thiouridine_id,
  22050. feature.*
  22051. FROM
  22052. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22053. WHERE cvterm.name = 'five_taurinomethyl_two_thiouridine';
  22054. --- ************************************************
  22055. --- *** relation: five_isopentenylaminomethyl_uridine ***
  22056. --- *** relation type: VIEW ***
  22057. --- *** ***
  22058. --- *** 5_isopentenylaminomethyl_uridine is a mo ***
  22059. --- *** dified uridine base feature. ***
  22060. --- ************************************************
  22061. ---
  22062. CREATE VIEW five_isopentenylaminomethyl_uridine AS
  22063. SELECT
  22064. feature_id AS five_isopentenylaminomethyl_uridine_id,
  22065. feature.*
  22066. FROM
  22067. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22068. WHERE cvterm.name = 'five_isopentenylaminomethyl_uridine';
  22069. --- ************************************************
  22070. --- *** relation: five_isopentenylaminomethyl_two_thiouridine ***
  22071. --- *** relation type: VIEW ***
  22072. --- *** ***
  22073. --- *** 5_isopentenylaminomethyl_2_thiouridine i ***
  22074. --- *** s a modified uridine base feature. ***
  22075. --- ************************************************
  22076. ---
  22077. CREATE VIEW five_isopentenylaminomethyl_two_thiouridine AS
  22078. SELECT
  22079. feature_id AS five_isopentenylaminomethyl_two_thiouridine_id,
  22080. feature.*
  22081. FROM
  22082. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22083. WHERE cvterm.name = 'five_isopentenylaminomethyl_two_thiouridine';
  22084. --- ************************************************
  22085. --- *** relation: five_isopentenylaminomethyl_two_prime_o_methyluridine ***
  22086. --- *** relation type: VIEW ***
  22087. --- *** ***
  22088. --- *** 5_isopentenylaminomethyl_2prime_O_methyl ***
  22089. --- *** uridine is a modified uridine base featu ***
  22090. --- *** re. ***
  22091. --- ************************************************
  22092. ---
  22093. CREATE VIEW five_isopentenylaminomethyl_two_prime_o_methyluridine AS
  22094. SELECT
  22095. feature_id AS five_isopentenylaminomethyl_two_prime_o_methyluridine_id,
  22096. feature.*
  22097. FROM
  22098. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22099. WHERE cvterm.name = 'five_isopentenylaminomethyl_two_prime_O_methyluridine';
  22100. --- ************************************************
  22101. --- *** relation: histone_binding_site ***
  22102. --- *** relation type: VIEW ***
  22103. --- *** ***
  22104. --- *** A region of a DNA molecule that is bound ***
  22105. --- *** by a histone. ***
  22106. --- ************************************************
  22107. ---
  22108. CREATE VIEW histone_binding_site AS
  22109. SELECT
  22110. feature_id AS histone_binding_site_id,
  22111. feature.*
  22112. FROM
  22113. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22114. WHERE cvterm.name = 'histone_binding_site';
  22115. --- ************************************************
  22116. --- *** relation: cds_fragment ***
  22117. --- *** relation type: VIEW ***
  22118. --- *** ***
  22119. --- ************************************************
  22120. ---
  22121. CREATE VIEW cds_fragment AS
  22122. SELECT
  22123. feature_id AS cds_fragment_id,
  22124. feature.*
  22125. FROM
  22126. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22127. WHERE cvterm.name = 'CDS_fragment';
  22128. --- ************************************************
  22129. --- *** relation: modified_amino_acid_feature ***
  22130. --- *** relation type: VIEW ***
  22131. --- *** ***
  22132. --- *** A post translationally modified amino ac ***
  22133. --- *** id feature. ***
  22134. --- ************************************************
  22135. ---
  22136. CREATE VIEW modified_amino_acid_feature AS
  22137. SELECT
  22138. feature_id AS modified_amino_acid_feature_id,
  22139. feature.*
  22140. FROM
  22141. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22142. 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';
  22143. --- ************************************************
  22144. --- *** relation: modified_glycine ***
  22145. --- *** relation type: VIEW ***
  22146. --- *** ***
  22147. --- *** A post translationally modified glycine ***
  22148. --- *** amino acid feature. ***
  22149. --- ************************************************
  22150. ---
  22151. CREATE VIEW modified_glycine AS
  22152. SELECT
  22153. feature_id AS modified_glycine_id,
  22154. feature.*
  22155. FROM
  22156. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22157. WHERE cvterm.name = 'modified_glycine';
  22158. --- ************************************************
  22159. --- *** relation: modified_l_alanine ***
  22160. --- *** relation type: VIEW ***
  22161. --- *** ***
  22162. --- *** A post translationally modified alanine ***
  22163. --- *** amino acid feature. ***
  22164. --- ************************************************
  22165. ---
  22166. CREATE VIEW modified_l_alanine AS
  22167. SELECT
  22168. feature_id AS modified_l_alanine_id,
  22169. feature.*
  22170. FROM
  22171. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22172. WHERE cvterm.name = 'modified_L_alanine';
  22173. --- ************************************************
  22174. --- *** relation: modified_l_asparagine ***
  22175. --- *** relation type: VIEW ***
  22176. --- *** ***
  22177. --- *** A post translationally modified asparagi ***
  22178. --- *** ne amino acid feature. ***
  22179. --- ************************************************
  22180. ---
  22181. CREATE VIEW modified_l_asparagine AS
  22182. SELECT
  22183. feature_id AS modified_l_asparagine_id,
  22184. feature.*
  22185. FROM
  22186. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22187. WHERE cvterm.name = 'modified_L_asparagine';
  22188. --- ************************************************
  22189. --- *** relation: modified_l_aspartic_acid ***
  22190. --- *** relation type: VIEW ***
  22191. --- *** ***
  22192. --- *** A post translationally modified aspartic ***
  22193. --- *** acid amino acid feature. ***
  22194. --- ************************************************
  22195. ---
  22196. CREATE VIEW modified_l_aspartic_acid AS
  22197. SELECT
  22198. feature_id AS modified_l_aspartic_acid_id,
  22199. feature.*
  22200. FROM
  22201. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22202. WHERE cvterm.name = 'modified_L_aspartic_acid';
  22203. --- ************************************************
  22204. --- *** relation: modified_l_cysteine ***
  22205. --- *** relation type: VIEW ***
  22206. --- *** ***
  22207. --- *** A post translationally modified cysteine ***
  22208. --- *** amino acid feature. ***
  22209. --- ************************************************
  22210. ---
  22211. CREATE VIEW modified_l_cysteine AS
  22212. SELECT
  22213. feature_id AS modified_l_cysteine_id,
  22214. feature.*
  22215. FROM
  22216. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22217. WHERE cvterm.name = 'modified_L_cysteine';
  22218. --- ************************************************
  22219. --- *** relation: modified_l_glutamic_acid ***
  22220. --- *** relation type: VIEW ***
  22221. --- *** ***
  22222. --- ************************************************
  22223. ---
  22224. CREATE VIEW modified_l_glutamic_acid AS
  22225. SELECT
  22226. feature_id AS modified_l_glutamic_acid_id,
  22227. feature.*
  22228. FROM
  22229. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22230. WHERE cvterm.name = 'modified_L_glutamic_acid';
  22231. --- ************************************************
  22232. --- *** relation: modified_l_threonine ***
  22233. --- *** relation type: VIEW ***
  22234. --- *** ***
  22235. --- *** A post translationally modified threonin ***
  22236. --- *** e amino acid feature. ***
  22237. --- ************************************************
  22238. ---
  22239. CREATE VIEW modified_l_threonine AS
  22240. SELECT
  22241. feature_id AS modified_l_threonine_id,
  22242. feature.*
  22243. FROM
  22244. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22245. WHERE cvterm.name = 'modified_L_threonine';
  22246. --- ************************************************
  22247. --- *** relation: modified_l_tryptophan ***
  22248. --- *** relation type: VIEW ***
  22249. --- *** ***
  22250. --- *** A post translationally modified tryptoph ***
  22251. --- *** an amino acid feature. ***
  22252. --- ************************************************
  22253. ---
  22254. CREATE VIEW modified_l_tryptophan AS
  22255. SELECT
  22256. feature_id AS modified_l_tryptophan_id,
  22257. feature.*
  22258. FROM
  22259. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22260. WHERE cvterm.name = 'modified_L_tryptophan';
  22261. --- ************************************************
  22262. --- *** relation: modified_l_glutamine ***
  22263. --- *** relation type: VIEW ***
  22264. --- *** ***
  22265. --- *** A post translationally modified glutamin ***
  22266. --- *** e amino acid feature. ***
  22267. --- ************************************************
  22268. ---
  22269. CREATE VIEW modified_l_glutamine AS
  22270. SELECT
  22271. feature_id AS modified_l_glutamine_id,
  22272. feature.*
  22273. FROM
  22274. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22275. WHERE cvterm.name = 'modified_L_glutamine';
  22276. --- ************************************************
  22277. --- *** relation: modified_l_methionine ***
  22278. --- *** relation type: VIEW ***
  22279. --- *** ***
  22280. --- *** A post translationally modified methioni ***
  22281. --- *** ne amino acid feature. ***
  22282. --- ************************************************
  22283. ---
  22284. CREATE VIEW modified_l_methionine AS
  22285. SELECT
  22286. feature_id AS modified_l_methionine_id,
  22287. feature.*
  22288. FROM
  22289. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22290. WHERE cvterm.name = 'modified_L_methionine';
  22291. --- ************************************************
  22292. --- *** relation: modified_l_isoleucine ***
  22293. --- *** relation type: VIEW ***
  22294. --- *** ***
  22295. --- *** A post translationally modified isoleuci ***
  22296. --- *** ne amino acid feature. ***
  22297. --- ************************************************
  22298. ---
  22299. CREATE VIEW modified_l_isoleucine AS
  22300. SELECT
  22301. feature_id AS modified_l_isoleucine_id,
  22302. feature.*
  22303. FROM
  22304. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22305. WHERE cvterm.name = 'modified_L_isoleucine';
  22306. --- ************************************************
  22307. --- *** relation: modified_l_phenylalanine ***
  22308. --- *** relation type: VIEW ***
  22309. --- *** ***
  22310. --- *** A post translationally modified phenylal ***
  22311. --- *** anine amino acid feature. ***
  22312. --- ************************************************
  22313. ---
  22314. CREATE VIEW modified_l_phenylalanine AS
  22315. SELECT
  22316. feature_id AS modified_l_phenylalanine_id,
  22317. feature.*
  22318. FROM
  22319. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22320. WHERE cvterm.name = 'modified_L_phenylalanine';
  22321. --- ************************************************
  22322. --- *** relation: modified_l_histidine ***
  22323. --- *** relation type: VIEW ***
  22324. --- *** ***
  22325. --- *** A post translationally modified histidie ***
  22326. --- *** amino acid feature. ***
  22327. --- ************************************************
  22328. ---
  22329. CREATE VIEW modified_l_histidine AS
  22330. SELECT
  22331. feature_id AS modified_l_histidine_id,
  22332. feature.*
  22333. FROM
  22334. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22335. WHERE cvterm.name = 'modified_L_histidine';
  22336. --- ************************************************
  22337. --- *** relation: modified_l_serine ***
  22338. --- *** relation type: VIEW ***
  22339. --- *** ***
  22340. --- *** A post translationally modified serine a ***
  22341. --- *** mino acid feature. ***
  22342. --- ************************************************
  22343. ---
  22344. CREATE VIEW modified_l_serine AS
  22345. SELECT
  22346. feature_id AS modified_l_serine_id,
  22347. feature.*
  22348. FROM
  22349. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22350. WHERE cvterm.name = 'modified_L_serine';
  22351. --- ************************************************
  22352. --- *** relation: modified_l_lysine ***
  22353. --- *** relation type: VIEW ***
  22354. --- *** ***
  22355. --- *** A post translationally modified lysine a ***
  22356. --- *** mino acid feature. ***
  22357. --- ************************************************
  22358. ---
  22359. CREATE VIEW modified_l_lysine AS
  22360. SELECT
  22361. feature_id AS modified_l_lysine_id,
  22362. feature.*
  22363. FROM
  22364. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22365. WHERE cvterm.name = 'modified_L_lysine';
  22366. --- ************************************************
  22367. --- *** relation: modified_l_leucine ***
  22368. --- *** relation type: VIEW ***
  22369. --- *** ***
  22370. --- *** A post translationally modified leucine ***
  22371. --- *** amino acid feature. ***
  22372. --- ************************************************
  22373. ---
  22374. CREATE VIEW modified_l_leucine AS
  22375. SELECT
  22376. feature_id AS modified_l_leucine_id,
  22377. feature.*
  22378. FROM
  22379. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22380. WHERE cvterm.name = 'modified_L_leucine';
  22381. --- ************************************************
  22382. --- *** relation: modified_l_selenocysteine ***
  22383. --- *** relation type: VIEW ***
  22384. --- *** ***
  22385. --- *** A post translationally modified selenocy ***
  22386. --- *** steine amino acid feature. ***
  22387. --- ************************************************
  22388. ---
  22389. CREATE VIEW modified_l_selenocysteine AS
  22390. SELECT
  22391. feature_id AS modified_l_selenocysteine_id,
  22392. feature.*
  22393. FROM
  22394. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22395. WHERE cvterm.name = 'modified_L_selenocysteine';
  22396. --- ************************************************
  22397. --- *** relation: modified_l_valine ***
  22398. --- *** relation type: VIEW ***
  22399. --- *** ***
  22400. --- *** A post translationally modified valine a ***
  22401. --- *** mino acid feature. ***
  22402. --- ************************************************
  22403. ---
  22404. CREATE VIEW modified_l_valine AS
  22405. SELECT
  22406. feature_id AS modified_l_valine_id,
  22407. feature.*
  22408. FROM
  22409. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22410. WHERE cvterm.name = 'modified_L_valine';
  22411. --- ************************************************
  22412. --- *** relation: modified_l_proline ***
  22413. --- *** relation type: VIEW ***
  22414. --- *** ***
  22415. --- *** A post translationally modified proline ***
  22416. --- *** amino acid feature. ***
  22417. --- ************************************************
  22418. ---
  22419. CREATE VIEW modified_l_proline AS
  22420. SELECT
  22421. feature_id AS modified_l_proline_id,
  22422. feature.*
  22423. FROM
  22424. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22425. WHERE cvterm.name = 'modified_L_proline';
  22426. --- ************************************************
  22427. --- *** relation: modified_l_tyrosine ***
  22428. --- *** relation type: VIEW ***
  22429. --- *** ***
  22430. --- *** A post translationally modified tyrosine ***
  22431. --- *** amino acid feature. ***
  22432. --- ************************************************
  22433. ---
  22434. CREATE VIEW modified_l_tyrosine AS
  22435. SELECT
  22436. feature_id AS modified_l_tyrosine_id,
  22437. feature.*
  22438. FROM
  22439. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22440. WHERE cvterm.name = 'modified_L_tyrosine';
  22441. --- ************************************************
  22442. --- *** relation: modified_l_arginine ***
  22443. --- *** relation type: VIEW ***
  22444. --- *** ***
  22445. --- *** A post translationally modified arginine ***
  22446. --- *** amino acid feature. ***
  22447. --- ************************************************
  22448. ---
  22449. CREATE VIEW modified_l_arginine AS
  22450. SELECT
  22451. feature_id AS modified_l_arginine_id,
  22452. feature.*
  22453. FROM
  22454. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22455. WHERE cvterm.name = 'modified_L_arginine';
  22456. --- ************************************************
  22457. --- *** relation: peptidyl ***
  22458. --- *** relation type: VIEW ***
  22459. --- *** ***
  22460. --- *** An attribute describing the nature of a ***
  22461. --- *** proteinaceous polymer, where by the amin ***
  22462. --- *** o acid units are joined by peptide bonds ***
  22463. --- *** . ***
  22464. --- ************************************************
  22465. ---
  22466. CREATE VIEW peptidyl AS
  22467. SELECT
  22468. feature_id AS peptidyl_id,
  22469. feature.*
  22470. FROM
  22471. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22472. WHERE cvterm.name = 'peptidyl';
  22473. --- ************************************************
  22474. --- *** relation: cleaved_for_gpi_anchor_region ***
  22475. --- *** relation type: VIEW ***
  22476. --- *** ***
  22477. --- *** The C-terminal residues of a polypeptide ***
  22478. --- *** which are exchanged for a GPI-anchor. ***
  22479. --- ************************************************
  22480. ---
  22481. CREATE VIEW cleaved_for_gpi_anchor_region AS
  22482. SELECT
  22483. feature_id AS cleaved_for_gpi_anchor_region_id,
  22484. feature.*
  22485. FROM
  22486. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22487. WHERE cvterm.name = 'cleaved_for_gpi_anchor_region';
  22488. --- ************************************************
  22489. --- *** relation: biomaterial_region ***
  22490. --- *** relation type: VIEW ***
  22491. --- *** ***
  22492. --- *** A region which is intended for use in an ***
  22493. --- *** experiment. ***
  22494. --- ************************************************
  22495. ---
  22496. CREATE VIEW biomaterial_region AS
  22497. SELECT
  22498. feature_id AS biomaterial_region_id,
  22499. feature.*
  22500. FROM
  22501. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22502. 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 = '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 = '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';
  22503. --- ************************************************
  22504. --- *** relation: experimental_feature ***
  22505. --- *** relation type: VIEW ***
  22506. --- *** ***
  22507. --- *** A region which is the result of some arb ***
  22508. --- *** itrary experimental procedure. The proce ***
  22509. --- *** dure may be carried out with biological ***
  22510. --- *** material or inside a computer. ***
  22511. --- ************************************************
  22512. ---
  22513. CREATE VIEW experimental_feature AS
  22514. SELECT
  22515. feature_id AS experimental_feature_id,
  22516. feature.*
  22517. FROM
  22518. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22519. 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 = 'QTL' 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 = 'read_pair' 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 = '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 = 'RFLP_fragment' OR cvterm.name = 'tiling_path_clone' OR cvterm.name = 'coding_conserved_region' OR cvterm.name = 'nc_conserved_region' OR cvterm.name = 'homologous_region' 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 = '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 = '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 = 'experimental_feature';
  22520. --- ************************************************
  22521. --- *** relation: biological_region ***
  22522. --- *** relation type: VIEW ***
  22523. --- *** ***
  22524. --- *** A region defined by its disposition to b ***
  22525. --- *** e involved in a biological process. ***
  22526. --- ************************************************
  22527. ---
  22528. CREATE VIEW biological_region AS
  22529. SELECT
  22530. feature_id AS biological_region_id,
  22531. feature.*
  22532. FROM
  22533. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22534. 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 = '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 = 'insertion' OR cvterm.name = 'gene' OR cvterm.name = 'nucleotide_motif' 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 = '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 = '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 = 'protein_binding_site' OR cvterm.name = 'miRNA_target_site' OR cvterm.name = 'epitope' OR cvterm.name = 'polypeptide_metal_contact' OR cvterm.name = 'protein_protein_contact' OR cvterm.name = 'polypeptide_ligand_contact' OR cvterm.name = 'DNA_binding_site' OR cvterm.name = 'primer_binding_site' OR cvterm.name = 'polypeptide_DNA_contact' 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 = 'INR_motif' OR cvterm.name = 'DPE_motif' OR cvterm.name = 'BRE_motif' OR cvterm.name = 'CAAT_signal' OR cvterm.name = 'TATA_box' OR cvterm.name = 'A_box' OR cvterm.name = 'B_box' OR cvterm.name = 'C_box' OR cvterm.name = 'DRE_motif' OR cvterm.name = 'E_box_motif' OR cvterm.name = 'MTE' OR cvterm.name = 'INR1_motif' OR cvterm.name = 'GAGA_motif' OR cvterm.name = 'octamer_motif' 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 = 'pseudogene' 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 = 'processed_pseudogene' OR cvterm.name = 'pseudogene_by_unequal_crossing_over' OR cvterm.name = 'nuclear_mt_pseudogene' OR cvterm.name = 'cassette_pseudogene' OR cvterm.name = 'transgenic_insertion' 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_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 = 'cryptogene' OR cvterm.name = 'DNA_motif' OR cvterm.name = 'RNA_motif' OR cvterm.name = 'PSE_motif' OR cvterm.name = 'GC_rich_promoter_region' OR cvterm.name = 'minus_10_signal' OR cvterm.name = 'minus_35_signal' 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 = '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 = '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 = '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 = '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 = '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 = '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 = '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 = 'edited_transcript_by_A_to_I_substitution' OR cvterm.name = 'attenuator' 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 = '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 = 'INR_motif' OR cvterm.name = 'DPE_motif' OR cvterm.name = 'BRE_motif' OR cvterm.name = 'CAAT_signal' OR cvterm.name = 'TATA_box' OR cvterm.name = 'A_box' OR cvterm.name = 'B_box' OR cvterm.name = 'C_box' OR cvterm.name = 'DRE_motif' OR cvterm.name = 'E_box_motif' OR cvterm.name = 'MTE' OR cvterm.name = 'INR1_motif' OR cvterm.name = 'GAGA_motif' OR cvterm.name = 'octamer_motif' OR cvterm.name = 'operator' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'bacterial_terminator' 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 = '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_III_promoter_type_1' OR cvterm.name = 'RNApol_III_promoter_type_2' OR cvterm.name = 'RNApol_III_promoter_type_3' 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 = 'RNApol_II_promoter' OR cvterm.name = 'RNApol_III_promoter' OR cvterm.name = 'silencer' OR cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' 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 = 'splice_enhancer' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' 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 = 'UTR' OR cvterm.name = 'CDS' OR cvterm.name = 'codon' 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 = '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 = '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 = 'ribosome_entry_site' OR cvterm.name = 'polyA_site' 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 = 'internal_ribosome_entry_site' OR cvterm.name = 'Shine_Dalgarno_sequence' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'coding_start' OR cvterm.name = 'coding_end' 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 = '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 = '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 = '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 = 'cleaved_initiator_methionine' OR cvterm.name = 'transit_peptide' 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 = '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 = 'mobile_intron' OR cvterm.name = 'extrachromosomal_mobile_genetic_element' OR cvterm.name = 'integrated_mobile_genetic_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 = 'natural_transposable_element' 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 = 'transposon_fragment' OR cvterm.name = 'LTR_retrotransposon' OR cvterm.name = 'non_LTR_retrotransposon' OR cvterm.name = 'RR_tract' 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 = '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 = 'natural_transposable_element' 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 = '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 = 'modified_base_site' 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 = 'methylated_base_feature' OR cvterm.name = 'methylated_C' OR cvterm.name = 'methylated_A' 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 = 'argenine' 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 = 'operon' 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 = 'SNP' OR cvterm.name = 'complex_substitution' OR cvterm.name = 'point_mutation' OR cvterm.name = 'simple_sequence_length_variation' OR cvterm.name = 'MNP' 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';
  22535. --- ************************************************
  22536. --- *** relation: topologically_defined_region ***
  22537. --- *** relation type: VIEW ***
  22538. --- *** ***
  22539. --- *** A region that is defined according to it ***
  22540. --- *** s relations with other regions within th ***
  22541. --- *** e same sequence. ***
  22542. --- ************************************************
  22543. ---
  22544. CREATE VIEW topologically_defined_region AS
  22545. SELECT
  22546. feature_id AS topologically_defined_region_id,
  22547. feature.*
  22548. FROM
  22549. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22550. WHERE cvterm.name = 'flanking_region' OR cvterm.name = 'repeat_region' OR cvterm.name = 'repeat_unit' 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 = '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 = 'repeat_fragment' 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 = 'non_LTR_retrotransposon_polymeric_tract' OR cvterm.name = 'LTR_component' OR cvterm.name = 'repeat_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';
  22551. --- ************************************************
  22552. --- *** relation: translocation_breakpoint ***
  22553. --- *** relation type: VIEW ***
  22554. --- *** ***
  22555. --- *** The point within a chromosome where a tr ***
  22556. --- *** anslocation begins or ends. ***
  22557. --- ************************************************
  22558. ---
  22559. CREATE VIEW translocation_breakpoint AS
  22560. SELECT
  22561. feature_id AS translocation_breakpoint_id,
  22562. feature.*
  22563. FROM
  22564. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22565. WHERE cvterm.name = 'translocation_breakpoint';
  22566. --- ************************************************
  22567. --- *** relation: insertion_breakpoint ***
  22568. --- *** relation type: VIEW ***
  22569. --- *** ***
  22570. --- *** The point within a chromosome where a in ***
  22571. --- *** sertion begins or ends. ***
  22572. --- ************************************************
  22573. ---
  22574. CREATE VIEW insertion_breakpoint AS
  22575. SELECT
  22576. feature_id AS insertion_breakpoint_id,
  22577. feature.*
  22578. FROM
  22579. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22580. WHERE cvterm.name = 'insertion_breakpoint';
  22581. --- ************************************************
  22582. --- *** relation: deletion_breakpoint ***
  22583. --- *** relation type: VIEW ***
  22584. --- *** ***
  22585. --- *** The point within a chromosome where a de ***
  22586. --- *** letion begins or ends. ***
  22587. --- ************************************************
  22588. ---
  22589. CREATE VIEW deletion_breakpoint AS
  22590. SELECT
  22591. feature_id AS deletion_breakpoint_id,
  22592. feature.*
  22593. FROM
  22594. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22595. WHERE cvterm.name = 'deletion_breakpoint';
  22596. --- ************************************************
  22597. --- *** relation: five_prime_flanking_region ***
  22598. --- *** relation type: VIEW ***
  22599. --- *** ***
  22600. --- *** A flanking region located five prime of ***
  22601. --- *** a specific region. ***
  22602. --- ************************************************
  22603. ---
  22604. CREATE VIEW five_prime_flanking_region AS
  22605. SELECT
  22606. feature_id AS five_prime_flanking_region_id,
  22607. feature.*
  22608. FROM
  22609. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22610. WHERE cvterm.name = 'five_prime_flanking_region';
  22611. --- ************************************************
  22612. --- *** relation: three_prime_flanking_region ***
  22613. --- *** relation type: VIEW ***
  22614. --- *** ***
  22615. --- *** A flanking region located three prime of ***
  22616. --- *** a specific region. ***
  22617. --- ************************************************
  22618. ---
  22619. CREATE VIEW three_prime_flanking_region AS
  22620. SELECT
  22621. feature_id AS three_prime_flanking_region_id,
  22622. feature.*
  22623. FROM
  22624. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22625. WHERE cvterm.name = 'three_prime_flanking_region';
  22626. --- ************************************************
  22627. --- *** relation: transcribed_fragment ***
  22628. --- *** relation type: VIEW ***
  22629. --- *** ***
  22630. --- *** An experimental region, defined by a til ***
  22631. --- *** ing array experiment to be transcribed a ***
  22632. --- *** t some level. ***
  22633. --- ************************************************
  22634. ---
  22635. CREATE VIEW transcribed_fragment AS
  22636. SELECT
  22637. feature_id AS transcribed_fragment_id,
  22638. feature.*
  22639. FROM
  22640. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22641. WHERE cvterm.name = 'transcribed_fragment';
  22642. --- ************************************************
  22643. --- *** relation: cis_splice_site ***
  22644. --- *** relation type: VIEW ***
  22645. --- *** ***
  22646. --- *** Intronic 2 bp region bordering exon. A s ***
  22647. --- *** plice_site that adjacent_to exon and ove ***
  22648. --- *** rlaps intron. ***
  22649. --- ************************************************
  22650. ---
  22651. CREATE VIEW cis_splice_site AS
  22652. SELECT
  22653. feature_id AS cis_splice_site_id,
  22654. feature.*
  22655. FROM
  22656. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22657. 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';
  22658. --- ************************************************
  22659. --- *** relation: trans_splice_site ***
  22660. --- *** relation type: VIEW ***
  22661. --- *** ***
  22662. --- *** Primary transcript region bordering tran ***
  22663. --- *** s-splice junction. ***
  22664. --- ************************************************
  22665. ---
  22666. CREATE VIEW trans_splice_site AS
  22667. SELECT
  22668. feature_id AS trans_splice_site_id,
  22669. feature.*
  22670. FROM
  22671. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22672. 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 = 'trans_splice_site';
  22673. --- ************************************************
  22674. --- *** relation: splice_junction ***
  22675. --- *** relation type: VIEW ***
  22676. --- *** ***
  22677. --- *** The boundary between an intron and an ex ***
  22678. --- *** on. ***
  22679. --- ************************************************
  22680. ---
  22681. CREATE VIEW splice_junction AS
  22682. SELECT
  22683. feature_id AS splice_junction_id,
  22684. feature.*
  22685. FROM
  22686. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22687. WHERE cvterm.name = 'splice_junction';
  22688. --- ************************************************
  22689. --- *** relation: conformational_switch ***
  22690. --- *** relation type: VIEW ***
  22691. --- *** ***
  22692. --- *** A region of a polypeptide, involved in t ***
  22693. --- *** he transition from one conformational st ***
  22694. --- *** ate to another. ***
  22695. --- ************************************************
  22696. ---
  22697. CREATE VIEW conformational_switch AS
  22698. SELECT
  22699. feature_id AS conformational_switch_id,
  22700. feature.*
  22701. FROM
  22702. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22703. WHERE cvterm.name = 'conformational_switch';
  22704. --- ************************************************
  22705. --- *** relation: dye_terminator_read ***
  22706. --- *** relation type: VIEW ***
  22707. --- *** ***
  22708. --- *** A read produced by the dye terminator me ***
  22709. --- *** thod of sequencing. ***
  22710. --- ************************************************
  22711. ---
  22712. CREATE VIEW dye_terminator_read AS
  22713. SELECT
  22714. feature_id AS dye_terminator_read_id,
  22715. feature.*
  22716. FROM
  22717. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22718. WHERE cvterm.name = 'dye_terminator_read';
  22719. --- ************************************************
  22720. --- *** relation: pyrosequenced_read ***
  22721. --- *** relation type: VIEW ***
  22722. --- *** ***
  22723. --- *** A read produced by pyrosequencing techno ***
  22724. --- *** logy. ***
  22725. --- ************************************************
  22726. ---
  22727. CREATE VIEW pyrosequenced_read AS
  22728. SELECT
  22729. feature_id AS pyrosequenced_read_id,
  22730. feature.*
  22731. FROM
  22732. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22733. WHERE cvterm.name = 'pyrosequenced_read';
  22734. --- ************************************************
  22735. --- *** relation: ligation_based_read ***
  22736. --- *** relation type: VIEW ***
  22737. --- *** ***
  22738. --- *** A read produced by ligation based sequen ***
  22739. --- *** cing technologies. ***
  22740. --- ************************************************
  22741. ---
  22742. CREATE VIEW ligation_based_read AS
  22743. SELECT
  22744. feature_id AS ligation_based_read_id,
  22745. feature.*
  22746. FROM
  22747. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22748. WHERE cvterm.name = 'ligation_based_read';
  22749. --- ************************************************
  22750. --- *** relation: polymerase_synthesis_read ***
  22751. --- *** relation type: VIEW ***
  22752. --- *** ***
  22753. --- *** A read produced by the polymerase based ***
  22754. --- *** sequence by synthesis method. ***
  22755. --- ************************************************
  22756. ---
  22757. CREATE VIEW polymerase_synthesis_read AS
  22758. SELECT
  22759. feature_id AS polymerase_synthesis_read_id,
  22760. feature.*
  22761. FROM
  22762. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22763. WHERE cvterm.name = 'polymerase_synthesis_read';
  22764. --- ************************************************
  22765. --- *** relation: cis_regulatory_frameshift_element ***
  22766. --- *** relation type: VIEW ***
  22767. --- *** ***
  22768. --- *** A structural region in an RNA molecule w ***
  22769. --- *** hich promotes ribosomal frameshifting of ***
  22770. --- *** cis coding sequence. ***
  22771. --- ************************************************
  22772. ---
  22773. CREATE VIEW cis_regulatory_frameshift_element AS
  22774. SELECT
  22775. feature_id AS cis_regulatory_frameshift_element_id,
  22776. feature.*
  22777. FROM
  22778. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22779. WHERE cvterm.name = 'cis_regulatory_frameshift_element';
  22780. --- ************************************************
  22781. --- *** relation: expressed_sequence_assembly ***
  22782. --- *** relation type: VIEW ***
  22783. --- *** ***
  22784. --- *** A sequence assembly derived from express ***
  22785. --- *** ed sequences. ***
  22786. --- ************************************************
  22787. ---
  22788. CREATE VIEW expressed_sequence_assembly AS
  22789. SELECT
  22790. feature_id AS expressed_sequence_assembly_id,
  22791. feature.*
  22792. FROM
  22793. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22794. WHERE cvterm.name = 'expressed_sequence_assembly';
  22795. --- ************************************************
  22796. --- *** relation: dna_binding_site ***
  22797. --- *** relation type: VIEW ***
  22798. --- *** ***
  22799. --- *** A region of a molecule that binds to DNA ***
  22800. --- *** . ***
  22801. --- ************************************************
  22802. ---
  22803. CREATE VIEW dna_binding_site AS
  22804. SELECT
  22805. feature_id AS dna_binding_site_id,
  22806. feature.*
  22807. FROM
  22808. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22809. WHERE cvterm.name = 'DNA_binding_site';
  22810. --- ************************************************
  22811. --- *** relation: polya_junction ***
  22812. --- *** relation type: VIEW ***
  22813. --- *** ***
  22814. --- *** The boundary between the UTR and the pol ***
  22815. --- *** yA sequence. ***
  22816. --- ************************************************
  22817. ---
  22818. CREATE VIEW polya_junction AS
  22819. SELECT
  22820. feature_id AS polya_junction_id,
  22821. feature.*
  22822. FROM
  22823. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22824. WHERE cvterm.name = 'polyA_junction';
  22825. --- ************************************************
  22826. --- *** relation: cryptic_gene ***
  22827. --- *** relation type: VIEW ***
  22828. --- *** ***
  22829. --- *** A gene that is not transcribed under nor ***
  22830. --- *** mal conditions and is not critical to no ***
  22831. --- *** rmal cellular functioning. ***
  22832. --- ************************************************
  22833. ---
  22834. CREATE VIEW cryptic_gene AS
  22835. SELECT
  22836. feature_id AS cryptic_gene_id,
  22837. feature.*
  22838. FROM
  22839. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22840. WHERE cvterm.name = 'cryptogene' OR cvterm.name = 'cryptic_gene';
  22841. --- ************************************************
  22842. --- *** relation: sequence_variant_affecting_polyadenylation ***
  22843. --- *** relation type: VIEW ***
  22844. --- *** ***
  22845. --- ************************************************
  22846. ---
  22847. CREATE VIEW sequence_variant_affecting_polyadenylation AS
  22848. SELECT
  22849. feature_id AS sequence_variant_affecting_polyadenylation_id,
  22850. feature.*
  22851. FROM
  22852. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22853. WHERE cvterm.name = 'sequence_variant_affecting_polyadenylation';
  22854. --- ************************************************
  22855. --- *** relation: three_prime_race_clone ***
  22856. --- *** relation type: VIEW ***
  22857. --- *** ***
  22858. --- *** A three prime RACE (Rapid Amplification ***
  22859. --- *** of cDNA Ends) clone is a cDNA clone copi ***
  22860. --- *** ed from the 3' end of an mRNA (using a p ***
  22861. --- *** oly-dT primer to capture the polyA tail ***
  22862. --- *** and a gene-specific or randomly primed 5 ***
  22863. --- *** ' primer), and spliced into a vector for ***
  22864. --- *** propagation in a suitable host. ***
  22865. --- ************************************************
  22866. ---
  22867. CREATE VIEW three_prime_race_clone AS
  22868. SELECT
  22869. feature_id AS three_prime_race_clone_id,
  22870. feature.*
  22871. FROM
  22872. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22873. WHERE cvterm.name = 'three_prime_RACE_clone';
  22874. --- ************************************************
  22875. --- *** relation: cassette_pseudogene ***
  22876. --- *** relation type: VIEW ***
  22877. --- *** ***
  22878. --- *** A cassette pseudogene is a kind of gene ***
  22879. --- *** in an innactive form which may recombine ***
  22880. --- *** at a telomeric locus to form a function ***
  22881. --- *** al copy. ***
  22882. --- ************************************************
  22883. ---
  22884. CREATE VIEW cassette_pseudogene AS
  22885. SELECT
  22886. feature_id AS cassette_pseudogene_id,
  22887. feature.*
  22888. FROM
  22889. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22890. WHERE cvterm.name = 'cassette_pseudogene';
  22891. --- ************************************************
  22892. --- *** relation: alanine ***
  22893. --- *** relation type: VIEW ***
  22894. --- *** ***
  22895. --- ************************************************
  22896. ---
  22897. CREATE VIEW alanine AS
  22898. SELECT
  22899. feature_id AS alanine_id,
  22900. feature.*
  22901. FROM
  22902. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22903. WHERE cvterm.name = 'alanine';
  22904. --- ************************************************
  22905. --- *** relation: valine ***
  22906. --- *** relation type: VIEW ***
  22907. --- *** ***
  22908. --- ************************************************
  22909. ---
  22910. CREATE VIEW valine AS
  22911. SELECT
  22912. feature_id AS valine_id,
  22913. feature.*
  22914. FROM
  22915. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22916. WHERE cvterm.name = 'valine';
  22917. --- ************************************************
  22918. --- *** relation: leucine ***
  22919. --- *** relation type: VIEW ***
  22920. --- *** ***
  22921. --- ************************************************
  22922. ---
  22923. CREATE VIEW leucine AS
  22924. SELECT
  22925. feature_id AS leucine_id,
  22926. feature.*
  22927. FROM
  22928. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22929. WHERE cvterm.name = 'leucine';
  22930. --- ************************************************
  22931. --- *** relation: isoleucine ***
  22932. --- *** relation type: VIEW ***
  22933. --- *** ***
  22934. --- ************************************************
  22935. ---
  22936. CREATE VIEW isoleucine AS
  22937. SELECT
  22938. feature_id AS isoleucine_id,
  22939. feature.*
  22940. FROM
  22941. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22942. WHERE cvterm.name = 'isoleucine';
  22943. --- ************************************************
  22944. --- *** relation: proline ***
  22945. --- *** relation type: VIEW ***
  22946. --- *** ***
  22947. --- ************************************************
  22948. ---
  22949. CREATE VIEW proline AS
  22950. SELECT
  22951. feature_id AS proline_id,
  22952. feature.*
  22953. FROM
  22954. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22955. WHERE cvterm.name = 'proline';
  22956. --- ************************************************
  22957. --- *** relation: tryptophan ***
  22958. --- *** relation type: VIEW ***
  22959. --- *** ***
  22960. --- ************************************************
  22961. ---
  22962. CREATE VIEW tryptophan AS
  22963. SELECT
  22964. feature_id AS tryptophan_id,
  22965. feature.*
  22966. FROM
  22967. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22968. WHERE cvterm.name = 'tryptophan';
  22969. --- ************************************************
  22970. --- *** relation: phenylalanine ***
  22971. --- *** relation type: VIEW ***
  22972. --- *** ***
  22973. --- ************************************************
  22974. ---
  22975. CREATE VIEW phenylalanine AS
  22976. SELECT
  22977. feature_id AS phenylalanine_id,
  22978. feature.*
  22979. FROM
  22980. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22981. WHERE cvterm.name = 'phenylalanine';
  22982. --- ************************************************
  22983. --- *** relation: methionine ***
  22984. --- *** relation type: VIEW ***
  22985. --- *** ***
  22986. --- ************************************************
  22987. ---
  22988. CREATE VIEW methionine AS
  22989. SELECT
  22990. feature_id AS methionine_id,
  22991. feature.*
  22992. FROM
  22993. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22994. WHERE cvterm.name = 'methionine';
  22995. --- ************************************************
  22996. --- *** relation: glycine ***
  22997. --- *** relation type: VIEW ***
  22998. --- *** ***
  22999. --- ************************************************
  23000. ---
  23001. CREATE VIEW glycine AS
  23002. SELECT
  23003. feature_id AS glycine_id,
  23004. feature.*
  23005. FROM
  23006. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23007. WHERE cvterm.name = 'glycine';
  23008. --- ************************************************
  23009. --- *** relation: serine ***
  23010. --- *** relation type: VIEW ***
  23011. --- *** ***
  23012. --- ************************************************
  23013. ---
  23014. CREATE VIEW serine AS
  23015. SELECT
  23016. feature_id AS serine_id,
  23017. feature.*
  23018. FROM
  23019. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23020. WHERE cvterm.name = 'serine';
  23021. --- ************************************************
  23022. --- *** relation: threonine ***
  23023. --- *** relation type: VIEW ***
  23024. --- *** ***
  23025. --- ************************************************
  23026. ---
  23027. CREATE VIEW threonine AS
  23028. SELECT
  23029. feature_id AS threonine_id,
  23030. feature.*
  23031. FROM
  23032. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23033. WHERE cvterm.name = 'threonine';
  23034. --- ************************************************
  23035. --- *** relation: tyrosine ***
  23036. --- *** relation type: VIEW ***
  23037. --- *** ***
  23038. --- ************************************************
  23039. ---
  23040. CREATE VIEW tyrosine AS
  23041. SELECT
  23042. feature_id AS tyrosine_id,
  23043. feature.*
  23044. FROM
  23045. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23046. WHERE cvterm.name = 'tyrosine';
  23047. --- ************************************************
  23048. --- *** relation: cysteine ***
  23049. --- *** relation type: VIEW ***
  23050. --- *** ***
  23051. --- ************************************************
  23052. ---
  23053. CREATE VIEW cysteine AS
  23054. SELECT
  23055. feature_id AS cysteine_id,
  23056. feature.*
  23057. FROM
  23058. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23059. WHERE cvterm.name = 'cysteine';
  23060. --- ************************************************
  23061. --- *** relation: glutamine ***
  23062. --- *** relation type: VIEW ***
  23063. --- *** ***
  23064. --- ************************************************
  23065. ---
  23066. CREATE VIEW glutamine AS
  23067. SELECT
  23068. feature_id AS glutamine_id,
  23069. feature.*
  23070. FROM
  23071. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23072. WHERE cvterm.name = 'glutamine';
  23073. --- ************************************************
  23074. --- *** relation: asparagine ***
  23075. --- *** relation type: VIEW ***
  23076. --- *** ***
  23077. --- ************************************************
  23078. ---
  23079. CREATE VIEW asparagine AS
  23080. SELECT
  23081. feature_id AS asparagine_id,
  23082. feature.*
  23083. FROM
  23084. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23085. WHERE cvterm.name = 'asparagine';
  23086. --- ************************************************
  23087. --- *** relation: lysine ***
  23088. --- *** relation type: VIEW ***
  23089. --- *** ***
  23090. --- ************************************************
  23091. ---
  23092. CREATE VIEW lysine AS
  23093. SELECT
  23094. feature_id AS lysine_id,
  23095. feature.*
  23096. FROM
  23097. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23098. WHERE cvterm.name = 'lysine';
  23099. --- ************************************************
  23100. --- *** relation: argenine ***
  23101. --- *** relation type: VIEW ***
  23102. --- *** ***
  23103. --- ************************************************
  23104. ---
  23105. CREATE VIEW argenine AS
  23106. SELECT
  23107. feature_id AS argenine_id,
  23108. feature.*
  23109. FROM
  23110. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23111. WHERE cvterm.name = 'argenine';
  23112. --- ************************************************
  23113. --- *** relation: histidine ***
  23114. --- *** relation type: VIEW ***
  23115. --- *** ***
  23116. --- ************************************************
  23117. ---
  23118. CREATE VIEW histidine AS
  23119. SELECT
  23120. feature_id AS histidine_id,
  23121. feature.*
  23122. FROM
  23123. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23124. WHERE cvterm.name = 'histidine';
  23125. --- ************************************************
  23126. --- *** relation: aspartic_acid ***
  23127. --- *** relation type: VIEW ***
  23128. --- *** ***
  23129. --- ************************************************
  23130. ---
  23131. CREATE VIEW aspartic_acid AS
  23132. SELECT
  23133. feature_id AS aspartic_acid_id,
  23134. feature.*
  23135. FROM
  23136. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23137. WHERE cvterm.name = 'aspartic_acid';
  23138. --- ************************************************
  23139. --- *** relation: glutamic_acid ***
  23140. --- *** relation type: VIEW ***
  23141. --- *** ***
  23142. --- ************************************************
  23143. ---
  23144. CREATE VIEW glutamic_acid AS
  23145. SELECT
  23146. feature_id AS glutamic_acid_id,
  23147. feature.*
  23148. FROM
  23149. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23150. WHERE cvterm.name = 'glutamic_acid';
  23151. --- ************************************************
  23152. --- *** relation: selenocysteine ***
  23153. --- *** relation type: VIEW ***
  23154. --- *** ***
  23155. --- ************************************************
  23156. ---
  23157. CREATE VIEW selenocysteine AS
  23158. SELECT
  23159. feature_id AS selenocysteine_id,
  23160. feature.*
  23161. FROM
  23162. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23163. WHERE cvterm.name = 'selenocysteine';
  23164. --- ************************************************
  23165. --- *** relation: pyrrolysine ***
  23166. --- *** relation type: VIEW ***
  23167. --- *** ***
  23168. --- ************************************************
  23169. ---
  23170. CREATE VIEW pyrrolysine AS
  23171. SELECT
  23172. feature_id AS pyrrolysine_id,
  23173. feature.*
  23174. FROM
  23175. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23176. WHERE cvterm.name = 'pyrrolysine';
  23177. --- ************************************************
  23178. --- *** relation: transcribed_cluster ***
  23179. --- *** relation type: VIEW ***
  23180. --- *** ***
  23181. --- *** A region defined by a set of transcribed ***
  23182. --- *** sequences from the same gene or express ***
  23183. --- *** ed pseudogene. ***
  23184. --- ************************************************
  23185. ---
  23186. CREATE VIEW transcribed_cluster AS
  23187. SELECT
  23188. feature_id AS transcribed_cluster_id,
  23189. feature.*
  23190. FROM
  23191. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23192. WHERE cvterm.name = 'unigene_cluster' OR cvterm.name = 'transcribed_cluster';
  23193. --- ************************************************
  23194. --- *** relation: unigene_cluster ***
  23195. --- *** relation type: VIEW ***
  23196. --- *** ***
  23197. --- *** A kind of transcribed_cluster defined by ***
  23198. --- *** a set of transcribed sequences from the ***
  23199. --- *** a unique gene. ***
  23200. --- ************************************************
  23201. ---
  23202. CREATE VIEW unigene_cluster AS
  23203. SELECT
  23204. feature_id AS unigene_cluster_id,
  23205. feature.*
  23206. FROM
  23207. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23208. WHERE cvterm.name = 'unigene_cluster';
  23209. --- ************************************************
  23210. --- *** relation: crispr ***
  23211. --- *** relation type: VIEW ***
  23212. --- *** ***
  23213. --- *** Clustered Palindromic Repeats interspers ***
  23214. --- *** ed with bacteriophage derived spacer seq ***
  23215. --- *** uences. ***
  23216. --- ************************************************
  23217. ---
  23218. CREATE VIEW crispr AS
  23219. SELECT
  23220. feature_id AS crispr_id,
  23221. feature.*
  23222. FROM
  23223. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23224. WHERE cvterm.name = 'CRISPR';
  23225. --- ************************************************
  23226. --- *** relation: insulator_binding_site ***
  23227. --- *** relation type: VIEW ***
  23228. --- *** ***
  23229. --- *** A protein_binding_site located within an ***
  23230. --- *** insulator. ***
  23231. --- ************************************************
  23232. ---
  23233. CREATE VIEW insulator_binding_site AS
  23234. SELECT
  23235. feature_id AS insulator_binding_site_id,
  23236. feature.*
  23237. FROM
  23238. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23239. WHERE cvterm.name = 'insulator_binding_site';
  23240. --- ************************************************
  23241. --- *** relation: enhancer_binding_site ***
  23242. --- *** relation type: VIEW ***
  23243. --- *** ***
  23244. --- *** A protein_binding_site located within an ***
  23245. --- *** enhancer. ***
  23246. --- ************************************************
  23247. ---
  23248. CREATE VIEW enhancer_binding_site AS
  23249. SELECT
  23250. feature_id AS enhancer_binding_site_id,
  23251. feature.*
  23252. FROM
  23253. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23254. WHERE cvterm.name = 'enhancer_binding_site';
  23255. --- ************************************************
  23256. --- *** relation: contig_collection ***
  23257. --- *** relation type: VIEW ***
  23258. --- *** ***
  23259. --- *** A collection of contigs. ***
  23260. --- ************************************************
  23261. ---
  23262. CREATE VIEW contig_collection AS
  23263. SELECT
  23264. feature_id AS contig_collection_id,
  23265. feature.*
  23266. FROM
  23267. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23268. WHERE cvterm.name = 'contig_collection';
  23269. --- ************************************************
  23270. --- *** relation: lincrna ***
  23271. --- *** relation type: VIEW ***
  23272. --- *** ***
  23273. --- *** A multiexonic non-coding RNA transcribed ***
  23274. --- *** by RNA polymerase II. ***
  23275. --- ************************************************
  23276. ---
  23277. CREATE VIEW lincrna AS
  23278. SELECT
  23279. feature_id AS lincrna_id,
  23280. feature.*
  23281. FROM
  23282. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23283. WHERE cvterm.name = 'lincRNA';
  23284. --- ************************************************
  23285. --- *** relation: ust ***
  23286. --- *** relation type: VIEW ***
  23287. --- *** ***
  23288. --- *** An EST spanning part or all of the untra ***
  23289. --- *** nslated regions of a protein-coding tran ***
  23290. --- *** script. ***
  23291. --- ************************************************
  23292. ---
  23293. CREATE VIEW ust AS
  23294. SELECT
  23295. feature_id AS ust_id,
  23296. feature.*
  23297. FROM
  23298. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23299. WHERE cvterm.name = 'three_prime_UST' OR cvterm.name = 'five_prime_UST' OR cvterm.name = 'UST';
  23300. --- ************************************************
  23301. --- *** relation: three_prime_ust ***
  23302. --- *** relation type: VIEW ***
  23303. --- *** ***
  23304. --- *** A UST located in the 3'UTR of a protein- ***
  23305. --- *** coding transcript. ***
  23306. --- ************************************************
  23307. ---
  23308. CREATE VIEW three_prime_ust AS
  23309. SELECT
  23310. feature_id AS three_prime_ust_id,
  23311. feature.*
  23312. FROM
  23313. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23314. WHERE cvterm.name = 'three_prime_UST';
  23315. --- ************************************************
  23316. --- *** relation: five_prime_ust ***
  23317. --- *** relation type: VIEW ***
  23318. --- *** ***
  23319. --- *** An UST located in the 5'UTR of a protein ***
  23320. --- *** -coding transcript. ***
  23321. --- ************************************************
  23322. ---
  23323. CREATE VIEW five_prime_ust AS
  23324. SELECT
  23325. feature_id AS five_prime_ust_id,
  23326. feature.*
  23327. FROM
  23328. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23329. WHERE cvterm.name = 'five_prime_UST';
  23330. --- ************************************************
  23331. --- *** relation: rst ***
  23332. --- *** relation type: VIEW ***
  23333. --- *** ***
  23334. --- *** A tag produced from a single sequencing ***
  23335. --- *** read from a RACE product; typically a fe ***
  23336. --- *** w hundred base pairs long. ***
  23337. --- ************************************************
  23338. ---
  23339. CREATE VIEW rst AS
  23340. SELECT
  23341. feature_id AS rst_id,
  23342. feature.*
  23343. FROM
  23344. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23345. WHERE cvterm.name = 'three_prime_RST' OR cvterm.name = 'five_prime_RST' OR cvterm.name = 'RST';
  23346. --- ************************************************
  23347. --- *** relation: three_prime_rst ***
  23348. --- *** relation type: VIEW ***
  23349. --- *** ***
  23350. --- *** A tag produced from a single sequencing ***
  23351. --- *** read from a 3'-RACE product; typically a ***
  23352. --- *** few hundred base pairs long. ***
  23353. --- ************************************************
  23354. ---
  23355. CREATE VIEW three_prime_rst AS
  23356. SELECT
  23357. feature_id AS three_prime_rst_id,
  23358. feature.*
  23359. FROM
  23360. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23361. WHERE cvterm.name = 'three_prime_RST';
  23362. --- ************************************************
  23363. --- *** relation: five_prime_rst ***
  23364. --- *** relation type: VIEW ***
  23365. --- *** ***
  23366. --- *** A tag produced from a single sequencing ***
  23367. --- *** read from a 5'-RACE product; typically a ***
  23368. --- *** few hundred base pairs long. ***
  23369. --- ************************************************
  23370. ---
  23371. CREATE VIEW five_prime_rst AS
  23372. SELECT
  23373. feature_id AS five_prime_rst_id,
  23374. feature.*
  23375. FROM
  23376. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23377. WHERE cvterm.name = 'five_prime_RST';
  23378. --- ************************************************
  23379. --- *** relation: ust_match ***
  23380. --- *** relation type: VIEW ***
  23381. --- *** ***
  23382. --- *** A match against an UST sequence. ***
  23383. --- ************************************************
  23384. ---
  23385. CREATE VIEW ust_match AS
  23386. SELECT
  23387. feature_id AS ust_match_id,
  23388. feature.*
  23389. FROM
  23390. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23391. WHERE cvterm.name = 'UST_match';
  23392. --- ************************************************
  23393. --- *** relation: rst_match ***
  23394. --- *** relation type: VIEW ***
  23395. --- *** ***
  23396. --- *** A match against an RST sequence. ***
  23397. --- ************************************************
  23398. ---
  23399. CREATE VIEW rst_match AS
  23400. SELECT
  23401. feature_id AS rst_match_id,
  23402. feature.*
  23403. FROM
  23404. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23405. WHERE cvterm.name = 'RST_match';
  23406. --- ************************************************
  23407. --- *** relation: primer_match ***
  23408. --- *** relation type: VIEW ***
  23409. --- *** ***
  23410. --- *** A nucleotide match to a primer sequence. ***
  23411. --- ************************************************
  23412. ---
  23413. CREATE VIEW primer_match AS
  23414. SELECT
  23415. feature_id AS primer_match_id,
  23416. feature.*
  23417. FROM
  23418. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23419. WHERE cvterm.name = 'primer_match';
  23420. --- ************************************************
  23421. --- *** relation: mirna_antiguide ***
  23422. --- *** relation type: VIEW ***
  23423. --- *** ***
  23424. --- *** A region of the pri miRNA that basepairs ***
  23425. --- *** with the guide to form the hairpin. ***
  23426. --- ************************************************
  23427. ---
  23428. CREATE VIEW mirna_antiguide AS
  23429. SELECT
  23430. feature_id AS mirna_antiguide_id,
  23431. feature.*
  23432. FROM
  23433. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23434. WHERE cvterm.name = 'miRNA_antiguide';
  23435. --- ************************************************
  23436. --- *** relation: trans_splice_junction ***
  23437. --- *** relation type: VIEW ***
  23438. --- *** ***
  23439. --- *** The boundary between the spliced leader ***
  23440. --- *** and the first exon of the mRNA. ***
  23441. --- ************************************************
  23442. ---
  23443. CREATE VIEW trans_splice_junction AS
  23444. SELECT
  23445. feature_id AS trans_splice_junction_id,
  23446. feature.*
  23447. FROM
  23448. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23449. WHERE cvterm.name = 'trans_splice_junction';
  23450. --- ************************************************
  23451. --- *** relation: outron ***
  23452. --- *** relation type: VIEW ***
  23453. --- *** ***
  23454. --- *** A region of a primary transcript, that i ***
  23455. --- *** s removed via trans splicing. ***
  23456. --- ************************************************
  23457. ---
  23458. CREATE VIEW outron AS
  23459. SELECT
  23460. feature_id AS outron_id,
  23461. feature.*
  23462. FROM
  23463. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23464. WHERE cvterm.name = 'outron';
  23465. --- ************************************************
  23466. --- *** relation: natural_plasmid ***
  23467. --- *** relation type: VIEW ***
  23468. --- *** ***
  23469. --- *** A plasmid that occurs naturally. ***
  23470. --- ************************************************
  23471. ---
  23472. CREATE VIEW natural_plasmid AS
  23473. SELECT
  23474. feature_id AS natural_plasmid_id,
  23475. feature.*
  23476. FROM
  23477. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23478. WHERE cvterm.name = 'natural_transposable_element' OR cvterm.name = 'natural_plasmid';
  23479. --- ************************************************
  23480. --- *** relation: gene_trap_construct ***
  23481. --- *** relation type: VIEW ***
  23482. --- *** ***
  23483. --- *** A gene trap construct is a type of engin ***
  23484. --- *** eered plasmid which is designed to integ ***
  23485. --- *** rate into a genome and produce a fusion ***
  23486. --- *** transcript between exons of the gene int ***
  23487. --- *** o which it inserts and a reporter elemen ***
  23488. --- *** t in the construct. Gene traps contain a ***
  23489. --- *** splice acceptor, do not contain promote ***
  23490. --- *** r elements for the reporter, and are mut ***
  23491. --- *** agenic. Gene traps may be bicistronic wi ***
  23492. --- *** th the second cassette containing a prom ***
  23493. --- *** oter driving an a selectable marker. ***
  23494. --- ************************************************
  23495. ---
  23496. CREATE VIEW gene_trap_construct AS
  23497. SELECT
  23498. feature_id AS gene_trap_construct_id,
  23499. feature.*
  23500. FROM
  23501. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23502. WHERE cvterm.name = 'gene_trap_construct';
  23503. --- ************************************************
  23504. --- *** relation: promoter_trap_construct ***
  23505. --- *** relation type: VIEW ***
  23506. --- *** ***
  23507. --- *** A promoter trap construct is a type of e ***
  23508. --- *** ngineered plasmid which is designed to i ***
  23509. --- *** ntegrate into a genome and express a rep ***
  23510. --- *** orter when inserted in close proximity t ***
  23511. --- *** o a promoter element. Promoter traps typ ***
  23512. --- *** ically do not contain promoter elements ***
  23513. --- *** and are mutagenic. ***
  23514. --- ************************************************
  23515. ---
  23516. CREATE VIEW promoter_trap_construct AS
  23517. SELECT
  23518. feature_id AS promoter_trap_construct_id,
  23519. feature.*
  23520. FROM
  23521. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23522. WHERE cvterm.name = 'promoter_trap_construct';
  23523. --- ************************************************
  23524. --- *** relation: enhancer_trap_construct ***
  23525. --- *** relation type: VIEW ***
  23526. --- *** ***
  23527. --- *** An enhancer trap construct is a type of ***
  23528. --- *** engineered plasmid which is designed to ***
  23529. --- *** integrate into a genome and express a re ***
  23530. --- *** porter when the expression from a basic ***
  23531. --- *** minimal promoter is enhanced by genomic ***
  23532. --- *** enhancer elements. Enhancer traps contai ***
  23533. --- *** n promoter elements and are not usually ***
  23534. --- *** mutagenic. ***
  23535. --- ************************************************
  23536. ---
  23537. CREATE VIEW enhancer_trap_construct AS
  23538. SELECT
  23539. feature_id AS enhancer_trap_construct_id,
  23540. feature.*
  23541. FROM
  23542. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23543. WHERE cvterm.name = 'enhancer_trap_construct';
  23544. --- ************************************************
  23545. --- *** relation: pac_end ***
  23546. --- *** relation type: VIEW ***
  23547. --- *** ***
  23548. --- *** A region of sequence from the end of a P ***
  23549. --- *** AC clone that may provide anhighly speci ***
  23550. --- *** fic marker. ***
  23551. --- ************************************************
  23552. ---
  23553. CREATE VIEW pac_end AS
  23554. SELECT
  23555. feature_id AS pac_end_id,
  23556. feature.*
  23557. FROM
  23558. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23559. WHERE cvterm.name = 'PAC_end';
  23560. --- ************************************************
  23561. --- *** relation: rapd ***
  23562. --- *** relation type: VIEW ***
  23563. --- *** ***
  23564. --- *** RAPD is a 'PCR product' where a sequence ***
  23565. --- *** variant is identified through the use o ***
  23566. --- *** f PCR with random primers. ***
  23567. --- ************************************************
  23568. ---
  23569. CREATE VIEW rapd AS
  23570. SELECT
  23571. feature_id AS rapd_id,
  23572. feature.*
  23573. FROM
  23574. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23575. WHERE cvterm.name = 'RAPD';
  23576. --- ************************************************
  23577. --- *** relation: shadow_enhancer ***
  23578. --- *** relation type: VIEW ***
  23579. --- *** ***
  23580. --- ************************************************
  23581. ---
  23582. CREATE VIEW shadow_enhancer AS
  23583. SELECT
  23584. feature_id AS shadow_enhancer_id,
  23585. feature.*
  23586. FROM
  23587. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23588. WHERE cvterm.name = 'shadow_enhancer';
  23589. --- ************************************************
  23590. --- *** relation: regulatory_region ***
  23591. --- *** relation type: VIEW ***
  23592. --- *** ***
  23593. --- *** A DNA sequence that controls the express ***
  23594. --- *** ion of a gene. ***
  23595. --- ************************************************
  23596. ---
  23597. CREATE VIEW regulatory_region AS
  23598. SELECT
  23599. feature_id AS regulatory_region_id,
  23600. feature.*
  23601. FROM
  23602. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23603. WHERE cvterm.name = 'attenuator' 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 = '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 = 'INR_motif' OR cvterm.name = 'DPE_motif' OR cvterm.name = 'BRE_motif' OR cvterm.name = 'CAAT_signal' OR cvterm.name = 'TATA_box' OR cvterm.name = 'A_box' OR cvterm.name = 'B_box' OR cvterm.name = 'C_box' OR cvterm.name = 'DRE_motif' OR cvterm.name = 'E_box_motif' OR cvterm.name = 'MTE' OR cvterm.name = 'INR1_motif' OR cvterm.name = 'GAGA_motif' OR cvterm.name = 'octamer_motif' OR cvterm.name = 'operator' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'bacterial_terminator' 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 = '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_III_promoter_type_1' OR cvterm.name = 'RNApol_III_promoter_type_2' OR cvterm.name = 'RNApol_III_promoter_type_3' 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 = 'RNApol_II_promoter' OR cvterm.name = 'RNApol_III_promoter' OR cvterm.name = 'silencer' OR cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' 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 = 'splice_enhancer' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' OR cvterm.name = 'regulatory_region';
  23604. --- ************************************************
  23605. --- *** relation: u14_snorna_primary_transcript ***
  23606. --- *** relation type: VIEW ***
  23607. --- *** ***
  23608. --- *** The primary transcript of an evolutionar ***
  23609. --- *** ily conserved eukaryotic low molecular w ***
  23610. --- *** eight RNA capable of intermolecular hybr ***
  23611. --- *** idization with both homologous and heter ***
  23612. --- *** ologous 18S rRNA. ***
  23613. --- ************************************************
  23614. ---
  23615. CREATE VIEW u14_snorna_primary_transcript AS
  23616. SELECT
  23617. feature_id AS u14_snorna_primary_transcript_id,
  23618. feature.*
  23619. FROM
  23620. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23621. WHERE cvterm.name = 'U14_snoRNA_primary_transcript';
  23622. --- ************************************************
  23623. --- *** relation: methylation_guide_snorna ***
  23624. --- *** relation type: VIEW ***
  23625. --- *** ***
  23626. --- *** A snoRNA that specifies the site of 2'-O ***
  23627. --- *** -ribose methylation in an RNA molecule b ***
  23628. --- *** y base pairing with a short sequence aro ***
  23629. --- *** und the target residue. ***
  23630. --- ************************************************
  23631. ---
  23632. CREATE VIEW methylation_guide_snorna AS
  23633. SELECT
  23634. feature_id AS methylation_guide_snorna_id,
  23635. feature.*
  23636. FROM
  23637. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23638. WHERE cvterm.name = 'methylation_guide_snoRNA';
  23639. --- ************************************************
  23640. --- *** relation: rrna_cleavage_rna ***
  23641. --- *** relation type: VIEW ***
  23642. --- *** ***
  23643. --- *** An ncRNA that is part of a ribonucleopro ***
  23644. --- *** tein that cleaves the primary pre-rRNA t ***
  23645. --- *** ranscript in the process of producing ma ***
  23646. --- *** ture rRNA molecules. ***
  23647. --- ************************************************
  23648. ---
  23649. CREATE VIEW rrna_cleavage_rna AS
  23650. SELECT
  23651. feature_id AS rrna_cleavage_rna_id,
  23652. feature.*
  23653. FROM
  23654. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23655. WHERE cvterm.name = 'rRNA_cleavage_RNA';
  23656. --- ************************************************
  23657. --- *** relation: exon_of_single_exon_gene ***
  23658. --- *** relation type: VIEW ***
  23659. --- *** ***
  23660. --- *** An exon that is the only exon in a gene. ***
  23661. --- ************************************************
  23662. ---
  23663. CREATE VIEW exon_of_single_exon_gene AS
  23664. SELECT
  23665. feature_id AS exon_of_single_exon_gene_id,
  23666. feature.*
  23667. FROM
  23668. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23669. WHERE cvterm.name = 'exon_of_single_exon_gene';
  23670. --- ************************************************
  23671. --- *** relation: cassette_array_member ***
  23672. --- *** relation type: VIEW ***
  23673. --- *** ***
  23674. --- ************************************************
  23675. ---
  23676. CREATE VIEW cassette_array_member AS
  23677. SELECT
  23678. feature_id AS cassette_array_member_id,
  23679. feature.*
  23680. FROM
  23681. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23682. WHERE cvterm.name = 'cassette_array_member';
  23683. --- ************************************************
  23684. --- *** relation: gene_cassette_member ***
  23685. --- *** relation type: VIEW ***
  23686. --- *** ***
  23687. --- ************************************************
  23688. ---
  23689. CREATE VIEW gene_cassette_member AS
  23690. SELECT
  23691. feature_id AS gene_cassette_member_id,
  23692. feature.*
  23693. FROM
  23694. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23695. WHERE cvterm.name = 'cassette_array_member' OR cvterm.name = 'gene_cassette_member';
  23696. --- ************************************************
  23697. --- *** relation: gene_subarray_member ***
  23698. --- *** relation type: VIEW ***
  23699. --- *** ***
  23700. --- ************************************************
  23701. ---
  23702. CREATE VIEW gene_subarray_member AS
  23703. SELECT
  23704. feature_id AS gene_subarray_member_id,
  23705. feature.*
  23706. FROM
  23707. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23708. WHERE cvterm.name = 'gene_subarray_member';
  23709. --- ************************************************
  23710. --- *** relation: primer_binding_site ***
  23711. --- *** relation type: VIEW ***
  23712. --- *** ***
  23713. --- *** Non-covalent primer binding site for ini ***
  23714. --- *** tiation of replication, transcription, o ***
  23715. --- *** r reverse transcription. ***
  23716. --- ************************************************
  23717. ---
  23718. CREATE VIEW primer_binding_site AS
  23719. SELECT
  23720. feature_id AS primer_binding_site_id,
  23721. feature.*
  23722. FROM
  23723. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23724. WHERE cvterm.name = 'primer_binding_site';
  23725. --- ************************************************
  23726. --- *** relation: gene_array ***
  23727. --- *** relation type: VIEW ***
  23728. --- *** ***
  23729. --- *** An array includes two or more genes, or ***
  23730. --- *** two or more gene subarrays, contiguously ***
  23731. --- *** arranged where the individual genes, or ***
  23732. --- *** subarrays, are either identical in sequ ***
  23733. --- *** ence, or essentially so. ***
  23734. --- ************************************************
  23735. ---
  23736. CREATE VIEW gene_array AS
  23737. SELECT
  23738. feature_id AS gene_array_id,
  23739. feature.*
  23740. FROM
  23741. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23742. WHERE cvterm.name = 'gene_array';
  23743. --- ************************************************
  23744. --- *** relation: gene_subarray ***
  23745. --- *** relation type: VIEW ***
  23746. --- *** ***
  23747. --- *** A subarray is, by defintition, a member ***
  23748. --- *** of a gene array (SO:0005851); the member ***
  23749. --- *** s of a subarray may differ substantially ***
  23750. --- *** in sequence, but are closely related in ***
  23751. --- *** function. ***
  23752. --- ************************************************
  23753. ---
  23754. CREATE VIEW gene_subarray AS
  23755. SELECT
  23756. feature_id AS gene_subarray_id,
  23757. feature.*
  23758. FROM
  23759. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23760. WHERE cvterm.name = 'gene_subarray';
  23761. --- ************************************************
  23762. --- *** relation: gene_cassette ***
  23763. --- *** relation type: VIEW ***
  23764. --- *** ***
  23765. --- *** A gene that can be substituted for a rel ***
  23766. --- *** ated gene at a different site in the gen ***
  23767. --- *** ome. ***
  23768. --- ************************************************
  23769. ---
  23770. CREATE VIEW gene_cassette AS
  23771. SELECT
  23772. feature_id AS gene_cassette_id,
  23773. feature.*
  23774. FROM
  23775. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23776. WHERE cvterm.name = 'gene_cassette';
  23777. --- ************************************************
  23778. --- *** relation: gene_cassette_array ***
  23779. --- *** relation type: VIEW ***
  23780. --- *** ***
  23781. --- *** An array of non-functional genes whose m ***
  23782. --- *** embers, when captured by recombination f ***
  23783. --- *** orm functional genes. ***
  23784. --- ************************************************
  23785. ---
  23786. CREATE VIEW gene_cassette_array AS
  23787. SELECT
  23788. feature_id AS gene_cassette_array_id,
  23789. feature.*
  23790. FROM
  23791. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23792. WHERE cvterm.name = 'gene_cassette_array';
  23793. --- ************************************************
  23794. --- *** relation: gene_group ***
  23795. --- *** relation type: VIEW ***
  23796. --- *** ***
  23797. --- *** A collection of related genes. ***
  23798. --- ************************************************
  23799. ---
  23800. CREATE VIEW gene_group AS
  23801. SELECT
  23802. feature_id AS gene_group_id,
  23803. feature.*
  23804. FROM
  23805. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23806. WHERE cvterm.name = 'operon' 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';
  23807. --- ************************************************
  23808. --- *** relation: selenocysteine_trna_primary_transcript ***
  23809. --- *** relation type: VIEW ***
  23810. --- *** ***
  23811. --- *** A primary transcript encoding seryl tRNA ***
  23812. --- *** (SO:000269). ***
  23813. --- ************************************************
  23814. ---
  23815. CREATE VIEW selenocysteine_trna_primary_transcript AS
  23816. SELECT
  23817. feature_id AS selenocysteine_trna_primary_transcript_id,
  23818. feature.*
  23819. FROM
  23820. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23821. WHERE cvterm.name = 'selenocysteine_tRNA_primary_transcript';
  23822. --- ************************************************
  23823. --- *** relation: selenocysteinyl_trna ***
  23824. --- *** relation type: VIEW ***
  23825. --- *** ***
  23826. --- *** A tRNA sequence that has a selenocystein ***
  23827. --- *** e anticodon, and a 3' selenocysteine bin ***
  23828. --- *** ding region. ***
  23829. --- ************************************************
  23830. ---
  23831. CREATE VIEW selenocysteinyl_trna AS
  23832. SELECT
  23833. feature_id AS selenocysteinyl_trna_id,
  23834. feature.*
  23835. FROM
  23836. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23837. WHERE cvterm.name = 'selenocysteinyl_tRNA';
  23838. --- ************************************************
  23839. --- *** relation: syntenic_region ***
  23840. --- *** relation type: VIEW ***
  23841. --- *** ***
  23842. --- *** A region in which two or more pairs of h ***
  23843. --- *** omologous markers occur on the same chro ***
  23844. --- *** mosome in two or more species. ***
  23845. --- ************************************************
  23846. ---
  23847. CREATE VIEW syntenic_region AS
  23848. SELECT
  23849. feature_id AS syntenic_region_id,
  23850. feature.*
  23851. FROM
  23852. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23853. WHERE cvterm.name = 'syntenic_region';
  23854. --- ************************************************
  23855. --- *** relation: biochemical_region_of_peptide ***
  23856. --- *** relation type: VIEW ***
  23857. --- *** ***
  23858. --- *** A region of a peptide that is involved i ***
  23859. --- *** n a biochemical function. ***
  23860. --- ************************************************
  23861. ---
  23862. CREATE VIEW biochemical_region_of_peptide AS
  23863. SELECT
  23864. feature_id AS biochemical_region_of_peptide_id,
  23865. feature.*
  23866. FROM
  23867. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23868. 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 = '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';
  23869. --- ************************************************
  23870. --- *** relation: molecular_contact_region ***
  23871. --- *** relation type: VIEW ***
  23872. --- *** ***
  23873. --- *** A region that is involved a contact with ***
  23874. --- *** another molecule. ***
  23875. --- ************************************************
  23876. ---
  23877. CREATE VIEW molecular_contact_region AS
  23878. SELECT
  23879. feature_id AS molecular_contact_region_id,
  23880. feature.*
  23881. FROM
  23882. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23883. 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';
  23884. --- ************************************************
  23885. --- *** relation: intrinsically_unstructured_polypeptide_region ***
  23886. --- *** relation type: VIEW ***
  23887. --- *** ***
  23888. --- *** A region of polypeptide chain with high ***
  23889. --- *** conformational flexibility. ***
  23890. --- ************************************************
  23891. ---
  23892. CREATE VIEW intrinsically_unstructured_polypeptide_region AS
  23893. SELECT
  23894. feature_id AS intrinsically_unstructured_polypeptide_region_id,
  23895. feature.*
  23896. FROM
  23897. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23898. WHERE cvterm.name = 'intrinsically_unstructured_polypeptide_region';
  23899. --- ************************************************
  23900. --- *** relation: catmat_left_handed_three ***
  23901. --- *** relation type: VIEW ***
  23902. --- *** ***
  23903. --- *** A motif of 3 consecutive residues with d ***
  23904. --- *** ihedral angles as follows: res i: phi -9 ***
  23905. --- *** 0 bounds -120 to -60, res i: psi -10 bou ***
  23906. --- *** nds -50 to 30, res i+1: phi -75 bounds - ***
  23907. --- *** 100 to -50, res i+1: psi 140 bounds 110 ***
  23908. --- *** to 170. An extra restriction of the leng ***
  23909. --- *** th of the O to O distance would be usefu ***
  23910. --- *** l, that it be less than 5 Angstrom. More ***
  23911. --- *** precisely these two oxygens are the mai ***
  23912. --- *** n chain carbonyl oxygen atoms of residue ***
  23913. --- *** s i-1 and i+1. ***
  23914. --- ************************************************
  23915. ---
  23916. CREATE VIEW catmat_left_handed_three AS
  23917. SELECT
  23918. feature_id AS catmat_left_handed_three_id,
  23919. feature.*
  23920. FROM
  23921. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23922. WHERE cvterm.name = 'catmat_left_handed_three';
  23923. --- ************************************************
  23924. --- *** relation: catmat_left_handed_four ***
  23925. --- *** relation type: VIEW ***
  23926. --- *** ***
  23927. --- *** A motif of 4 consecutive residues with d ***
  23928. --- *** ihedral angles as follows: res i: phi -9 ***
  23929. --- *** 0 bounds -120 to -60, res i psi -10 boun ***
  23930. --- *** ds -50 to 30, res i+1: phi -90 bounds -1 ***
  23931. --- *** 20 to -60, res i+1: psi -10 bounds -50 t ***
  23932. --- *** o 30, res i+2: phi -75 bounds -100 to -5 ***
  23933. --- *** 0, res i+2: psi 140 bounds 110 to 170. ***
  23934. --- *** The extra restriction of the length of t ***
  23935. --- *** he O to O distance is similar, that it b ***
  23936. --- *** e less than 5 Angstrom. In this case the ***
  23937. --- *** se two Oxygen atoms are the main chain c ***
  23938. --- *** arbonyl oxygen atoms of residues i-1 and ***
  23939. --- *** i+2. ***
  23940. --- ************************************************
  23941. ---
  23942. CREATE VIEW catmat_left_handed_four AS
  23943. SELECT
  23944. feature_id AS catmat_left_handed_four_id,
  23945. feature.*
  23946. FROM
  23947. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23948. WHERE cvterm.name = 'catmat_left_handed_four';
  23949. --- ************************************************
  23950. --- *** relation: catmat_right_handed_three ***
  23951. --- *** relation type: VIEW ***
  23952. --- *** ***
  23953. --- *** A motif of 3 consecutive residues with d ***
  23954. --- *** ihedral angles as follows: res i: phi -9 ***
  23955. --- *** 0 bounds -120 to -60, res i: psi -10 bou ***
  23956. --- *** nds -50 to 30, res i+1: phi -75 bounds - ***
  23957. --- *** 100 to -50, res i+1: psi 140 bounds 110 ***
  23958. --- *** to 170. An extra restriction of the leng ***
  23959. --- *** th of the O to O distance would be usefu ***
  23960. --- *** l, that it be less than 5 Angstrom. More ***
  23961. --- *** precisely these two oxygens are the mai ***
  23962. --- *** n chain carbonyl oxygen atoms of residue ***
  23963. --- *** s i-1 and i+1. ***
  23964. --- ************************************************
  23965. ---
  23966. CREATE VIEW catmat_right_handed_three AS
  23967. SELECT
  23968. feature_id AS catmat_right_handed_three_id,
  23969. feature.*
  23970. FROM
  23971. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23972. WHERE cvterm.name = 'catmat_right_handed_three';
  23973. --- ************************************************
  23974. --- *** relation: catmat_right_handed_four ***
  23975. --- *** relation type: VIEW ***
  23976. --- *** ***
  23977. --- *** A motif of 4 consecutive residues with d ***
  23978. --- *** ihedral angles as follows: res i: phi -9 ***
  23979. --- *** 0 bounds -120 to -60, res i: psi -10 bou ***
  23980. --- *** nds -50 to 30, res i+1: phi -90 bounds - ***
  23981. --- *** 120 to -60, res i+1: psi -10 bounds -50 ***
  23982. --- *** to 30, res i+2: phi -75 bounds -100 to - ***
  23983. --- *** 50, res i+2: psi 140 bounds 110 to 170. ***
  23984. --- *** The extra restriction of the length of t ***
  23985. --- *** he O to O distance is similar, that it b ***
  23986. --- *** e less than 5 Angstrom. In this case the ***
  23987. --- *** se two Oxygen atoms are the main chain c ***
  23988. --- *** arbonyl oxygen atoms of residues i-1 and ***
  23989. --- *** i+2. ***
  23990. --- ************************************************
  23991. ---
  23992. CREATE VIEW catmat_right_handed_four AS
  23993. SELECT
  23994. feature_id AS catmat_right_handed_four_id,
  23995. feature.*
  23996. FROM
  23997. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23998. WHERE cvterm.name = 'catmat_right_handed_four';
  23999. --- ************************************************
  24000. --- *** relation: alpha_beta_motif ***
  24001. --- *** relation type: VIEW ***
  24002. --- *** ***
  24003. --- *** A motif of five consecutive residues and ***
  24004. --- *** two H-bonds in which: H-bond between CO ***
  24005. --- *** of residue(i) and NH of residue(i+4), H ***
  24006. --- *** -bond between CO of residue(i) and NH of ***
  24007. --- *** residue(i+3),Phi angles of residues(i+1 ***
  24008. --- *** ), (i+2) and (i+3) are negative. ***
  24009. --- ************************************************
  24010. ---
  24011. CREATE VIEW alpha_beta_motif AS
  24012. SELECT
  24013. feature_id AS alpha_beta_motif_id,
  24014. feature.*
  24015. FROM
  24016. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24017. WHERE cvterm.name = 'alpha_beta_motif';
  24018. --- ************************************************
  24019. --- *** relation: lipoprotein_signal_peptide ***
  24020. --- *** relation type: VIEW ***
  24021. --- *** ***
  24022. --- *** A peptide that acts as a signal for both ***
  24023. --- *** membrane translocation and lipid attach ***
  24024. --- *** ment in prokaryotes. ***
  24025. --- ************************************************
  24026. ---
  24027. CREATE VIEW lipoprotein_signal_peptide AS
  24028. SELECT
  24029. feature_id AS lipoprotein_signal_peptide_id,
  24030. feature.*
  24031. FROM
  24032. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24033. WHERE cvterm.name = 'lipoprotein_signal_peptide';
  24034. --- ************************************************
  24035. --- *** relation: no_output ***
  24036. --- *** relation type: VIEW ***
  24037. --- *** ***
  24038. --- *** An experimental region wherean analysis ***
  24039. --- *** has been run and not produced any annota ***
  24040. --- *** tion. ***
  24041. --- ************************************************
  24042. ---
  24043. CREATE VIEW no_output AS
  24044. SELECT
  24045. feature_id AS no_output_id,
  24046. feature.*
  24047. FROM
  24048. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24049. WHERE cvterm.name = 'no_output';
  24050. --- ************************************************
  24051. --- *** relation: cleaved_peptide_region ***
  24052. --- *** relation type: VIEW ***
  24053. --- *** ***
  24054. --- *** The cleaved_peptide_regon is the a regio ***
  24055. --- *** n of peptide sequence that is cleaved du ***
  24056. --- *** ring maturation. ***
  24057. --- ************************************************
  24058. ---
  24059. CREATE VIEW cleaved_peptide_region AS
  24060. SELECT
  24061. feature_id AS cleaved_peptide_region_id,
  24062. feature.*
  24063. FROM
  24064. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24065. WHERE cvterm.name = 'signal_peptide' OR cvterm.name = 'cleaved_initiator_methionine' OR cvterm.name = 'transit_peptide' 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';
  24066. --- ************************************************
  24067. --- *** relation: peptide_coil ***
  24068. --- *** relation type: VIEW ***
  24069. --- *** ***
  24070. --- *** Irregular, unstructured regions of a pro ***
  24071. --- *** tein's backbone, as distinct from the re ***
  24072. --- *** gular region (namely alpha helix and bet ***
  24073. --- *** a strand - characterised by specific pat ***
  24074. --- *** terns of main-chain hydrogen bonds). ***
  24075. --- ************************************************
  24076. ---
  24077. CREATE VIEW peptide_coil AS
  24078. SELECT
  24079. feature_id AS peptide_coil_id,
  24080. feature.*
  24081. FROM
  24082. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24083. WHERE cvterm.name = 'peptide_coil';
  24084. --- ************************************************
  24085. --- *** relation: hydrophobic_region_of_peptide ***
  24086. --- *** relation type: VIEW ***
  24087. --- *** ***
  24088. --- *** Hydrophobic regions are regions with a l ***
  24089. --- *** ow affinity for water. ***
  24090. --- ************************************************
  24091. ---
  24092. CREATE VIEW hydrophobic_region_of_peptide AS
  24093. SELECT
  24094. feature_id AS hydrophobic_region_of_peptide_id,
  24095. feature.*
  24096. FROM
  24097. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24098. WHERE cvterm.name = 'hydrophobic_region_of_peptide';
  24099. --- ************************************************
  24100. --- *** relation: n_terminal_region ***
  24101. --- *** relation type: VIEW ***
  24102. --- *** ***
  24103. --- *** The amino-terminal positively-charged re ***
  24104. --- *** gion of a signal peptide (approx 1-5 aa) ***
  24105. --- *** . ***
  24106. --- ************************************************
  24107. ---
  24108. CREATE VIEW n_terminal_region AS
  24109. SELECT
  24110. feature_id AS n_terminal_region_id,
  24111. feature.*
  24112. FROM
  24113. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24114. WHERE cvterm.name = 'n_terminal_region';
  24115. --- ************************************************
  24116. --- *** relation: c_terminal_region ***
  24117. --- *** relation type: VIEW ***
  24118. --- *** ***
  24119. --- *** The more polar, carboxy-terminal region ***
  24120. --- *** of the signal peptide (approx 3-7 aa). ***
  24121. --- ************************************************
  24122. ---
  24123. CREATE VIEW c_terminal_region AS
  24124. SELECT
  24125. feature_id AS c_terminal_region_id,
  24126. feature.*
  24127. FROM
  24128. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24129. WHERE cvterm.name = 'c_terminal_region';
  24130. --- ************************************************
  24131. --- *** relation: central_hydrophobic_region_of_signal_peptide ***
  24132. --- *** relation type: VIEW ***
  24133. --- *** ***
  24134. --- *** The central, hydrophobic region of the s ***
  24135. --- *** ignal peptide (approx 7-15 aa). ***
  24136. --- ************************************************
  24137. ---
  24138. CREATE VIEW central_hydrophobic_region_of_signal_peptide AS
  24139. SELECT
  24140. feature_id AS central_hydrophobic_region_of_signal_peptide_id,
  24141. feature.*
  24142. FROM
  24143. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24144. WHERE cvterm.name = 'central_hydrophobic_region_of_signal_peptide';
  24145. --- ************************************************
  24146. --- *** relation: polypeptide_conserved_motif ***
  24147. --- *** relation type: VIEW ***
  24148. --- *** ***
  24149. --- *** A conserved motif is a short (up to 20 a ***
  24150. --- *** mino acids) region of biological interes ***
  24151. --- *** t that is conserved in different protein ***
  24152. --- *** s. They may or may not have functional o ***
  24153. --- *** r structural significance within the pro ***
  24154. --- *** teins in which they are found. ***
  24155. --- ************************************************
  24156. ---
  24157. CREATE VIEW polypeptide_conserved_motif AS
  24158. SELECT
  24159. feature_id AS polypeptide_conserved_motif_id,
  24160. feature.*
  24161. FROM
  24162. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24163. WHERE cvterm.name = 'polypeptide_conserved_motif';
  24164. --- ************************************************
  24165. --- *** relation: polypeptide_binding_motif ***
  24166. --- *** relation type: VIEW ***
  24167. --- *** ***
  24168. --- *** A polypeptide binding motif is a short ( ***
  24169. --- *** up to 20 amino acids) polypeptide region ***
  24170. --- *** of biological interest that contains on ***
  24171. --- *** e or more amino acids experimentally sho ***
  24172. --- *** wn to bind to a ligand. ***
  24173. --- ************************************************
  24174. ---
  24175. CREATE VIEW polypeptide_binding_motif AS
  24176. SELECT
  24177. feature_id AS polypeptide_binding_motif_id,
  24178. feature.*
  24179. FROM
  24180. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24181. WHERE cvterm.name = 'polypeptide_binding_motif';
  24182. --- ************************************************
  24183. --- *** relation: polypeptide_catalytic_motif ***
  24184. --- *** relation type: VIEW ***
  24185. --- *** ***
  24186. --- *** A polypeptide catalytic motif is a short ***
  24187. --- *** (up to 20 amino acids) polypeptide regi ***
  24188. --- *** on that contains one or more active site ***
  24189. --- *** residues. ***
  24190. --- ************************************************
  24191. ---
  24192. CREATE VIEW polypeptide_catalytic_motif AS
  24193. SELECT
  24194. feature_id AS polypeptide_catalytic_motif_id,
  24195. feature.*
  24196. FROM
  24197. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24198. WHERE cvterm.name = 'polypeptide_catalytic_motif';
  24199. --- ************************************************
  24200. --- *** relation: polypeptide_dna_contact ***
  24201. --- *** relation type: VIEW ***
  24202. --- *** ***
  24203. --- *** Residues involved in interactions with D ***
  24204. --- *** NA. ***
  24205. --- ************************************************
  24206. ---
  24207. CREATE VIEW polypeptide_dna_contact AS
  24208. SELECT
  24209. feature_id AS polypeptide_dna_contact_id,
  24210. feature.*
  24211. FROM
  24212. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24213. WHERE cvterm.name = 'polypeptide_DNA_contact';
  24214. --- ************************************************
  24215. --- *** relation: polypeptide_conserved_region ***
  24216. --- *** relation type: VIEW ***
  24217. --- *** ***
  24218. --- *** A subsection of sequence with biological ***
  24219. --- *** interest that is conserved in different ***
  24220. --- *** proteins. They may or may not have func ***
  24221. --- *** tional or structural significance within ***
  24222. --- *** the proteins in which they are found. ***
  24223. --- ************************************************
  24224. ---
  24225. CREATE VIEW polypeptide_conserved_region AS
  24226. SELECT
  24227. feature_id AS polypeptide_conserved_region_id,
  24228. feature.*
  24229. FROM
  24230. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24231. 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 = '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';
  24232. --- ************************************************
  24233. --- *** relation: substitution ***
  24234. --- *** relation type: VIEW ***
  24235. --- *** ***
  24236. --- *** Any change in genomic DNA caused by a si ***
  24237. --- *** ngle event. ***
  24238. --- ************************************************
  24239. ---
  24240. CREATE VIEW substitution AS
  24241. SELECT
  24242. feature_id AS substitution_id,
  24243. feature.*
  24244. FROM
  24245. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24246. WHERE cvterm.name = 'sequence_length_variation' OR cvterm.name = 'SNP' OR cvterm.name = 'complex_substitution' OR cvterm.name = 'point_mutation' OR cvterm.name = 'simple_sequence_length_variation' OR cvterm.name = 'MNP' 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';
  24247. --- ************************************************
  24248. --- *** relation: partially_characterised_change_in_dna_sequence ***
  24249. --- *** relation type: VIEW ***
  24250. --- *** ***
  24251. --- *** The nature of the mutation event is only ***
  24252. --- *** partially characterised. ***
  24253. --- ************************************************
  24254. ---
  24255. CREATE VIEW partially_characterised_change_in_dna_sequence AS
  24256. SELECT
  24257. feature_id AS partially_characterised_change_in_dna_sequence_id,
  24258. feature.*
  24259. FROM
  24260. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24261. WHERE cvterm.name = 'partially_characterised_change_in_DNA_sequence';
  24262. --- ************************************************
  24263. --- *** relation: complex_substitution ***
  24264. --- *** relation type: VIEW ***
  24265. --- *** ***
  24266. --- *** When no simple or well defined DNA mutat ***
  24267. --- *** ion event describes the observed DNA cha ***
  24268. --- *** nge, the keyword "complex" should be use ***
  24269. --- *** d. Usually there are multiple equally pl ***
  24270. --- *** ausible explanations for the change. ***
  24271. --- ************************************************
  24272. ---
  24273. CREATE VIEW complex_substitution AS
  24274. SELECT
  24275. feature_id AS complex_substitution_id,
  24276. feature.*
  24277. FROM
  24278. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24279. WHERE cvterm.name = 'MNP' OR cvterm.name = 'complex_substitution';
  24280. --- ************************************************
  24281. --- *** relation: uncharacterised_change_in_nucleotide_sequence ***
  24282. --- *** relation type: VIEW ***
  24283. --- *** ***
  24284. --- *** The nature of the mutation event is eith ***
  24285. --- *** er uncharacterised or only partially cha ***
  24286. --- *** racterised. ***
  24287. --- ************************************************
  24288. ---
  24289. CREATE VIEW uncharacterised_change_in_nucleotide_sequence AS
  24290. SELECT
  24291. feature_id AS uncharacterised_change_in_nucleotide_sequence_id,
  24292. feature.*
  24293. FROM
  24294. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24295. WHERE cvterm.name = 'partially_characterised_change_in_DNA_sequence' OR cvterm.name = 'uncharacterised_change_in_nucleotide_sequence';
  24296. --- ************************************************
  24297. --- *** relation: point_mutation ***
  24298. --- *** relation type: VIEW ***
  24299. --- *** ***
  24300. --- *** A single nucleotide change which has occ ***
  24301. --- *** urred at the same position of a correspo ***
  24302. --- *** nding nucleotide in a reference sequence ***
  24303. --- *** . ***
  24304. --- ************************************************
  24305. ---
  24306. CREATE VIEW point_mutation AS
  24307. SELECT
  24308. feature_id AS point_mutation_id,
  24309. feature.*
  24310. FROM
  24311. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24312. WHERE 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 = 'point_mutation';
  24313. --- ************************************************
  24314. --- *** relation: transition ***
  24315. --- *** relation type: VIEW ***
  24316. --- *** ***
  24317. --- *** Change of a pyrimidine nucleotide, C or ***
  24318. --- *** T, into an other pyrimidine nucleotide, ***
  24319. --- *** or change of a purine nucleotide, A or G ***
  24320. --- *** , into an other purine nucleotide. ***
  24321. --- ************************************************
  24322. ---
  24323. CREATE VIEW transition AS
  24324. SELECT
  24325. feature_id AS transition_id,
  24326. feature.*
  24327. FROM
  24328. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24329. 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';
  24330. --- ************************************************
  24331. --- *** relation: pyrimidine_transition ***
  24332. --- *** relation type: VIEW ***
  24333. --- *** ***
  24334. --- *** A substitution of a pyrimidine, C or T, ***
  24335. --- *** for another pyrimidine. ***
  24336. --- ************************************************
  24337. ---
  24338. CREATE VIEW pyrimidine_transition AS
  24339. SELECT
  24340. feature_id AS pyrimidine_transition_id,
  24341. feature.*
  24342. FROM
  24343. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24344. 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';
  24345. --- ************************************************
  24346. --- *** relation: c_to_t_transition ***
  24347. --- *** relation type: VIEW ***
  24348. --- *** ***
  24349. --- *** A transition of a cytidine to a thymine. ***
  24350. --- ************************************************
  24351. ---
  24352. CREATE VIEW c_to_t_transition AS
  24353. SELECT
  24354. feature_id AS c_to_t_transition_id,
  24355. feature.*
  24356. FROM
  24357. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24358. WHERE cvterm.name = 'C_to_T_transition_at_pCpG_site' OR cvterm.name = 'C_to_T_transition';
  24359. --- ************************************************
  24360. --- *** relation: c_to_t_transition_at_pcpg_site ***
  24361. --- *** relation type: VIEW ***
  24362. --- *** ***
  24363. --- *** The transition of cytidine to thymine oc ***
  24364. --- *** curring at a pCpG site as a consequence ***
  24365. --- *** of the spontaneous deamination of 5'-met ***
  24366. --- *** hylcytidine. ***
  24367. --- ************************************************
  24368. ---
  24369. CREATE VIEW c_to_t_transition_at_pcpg_site AS
  24370. SELECT
  24371. feature_id AS c_to_t_transition_at_pcpg_site_id,
  24372. feature.*
  24373. FROM
  24374. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24375. WHERE cvterm.name = 'C_to_T_transition_at_pCpG_site';
  24376. --- ************************************************
  24377. --- *** relation: t_to_c_transition ***
  24378. --- *** relation type: VIEW ***
  24379. --- *** ***
  24380. --- ************************************************
  24381. ---
  24382. CREATE VIEW t_to_c_transition AS
  24383. SELECT
  24384. feature_id AS t_to_c_transition_id,
  24385. feature.*
  24386. FROM
  24387. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24388. WHERE cvterm.name = 'T_to_C_transition';
  24389. --- ************************************************
  24390. --- *** relation: purine_transition ***
  24391. --- *** relation type: VIEW ***
  24392. --- *** ***
  24393. --- *** A substitution of a purine, A or G, for ***
  24394. --- *** another purine. ***
  24395. --- ************************************************
  24396. ---
  24397. CREATE VIEW purine_transition AS
  24398. SELECT
  24399. feature_id AS purine_transition_id,
  24400. feature.*
  24401. FROM
  24402. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24403. WHERE cvterm.name = 'A_to_G_transition' OR cvterm.name = 'G_to_A_transition' OR cvterm.name = 'purine_transition';
  24404. --- ************************************************
  24405. --- *** relation: a_to_g_transition ***
  24406. --- *** relation type: VIEW ***
  24407. --- *** ***
  24408. --- *** A transition of an adenine to a guanine. ***
  24409. --- ************************************************
  24410. ---
  24411. CREATE VIEW a_to_g_transition AS
  24412. SELECT
  24413. feature_id AS a_to_g_transition_id,
  24414. feature.*
  24415. FROM
  24416. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24417. WHERE cvterm.name = 'A_to_G_transition';
  24418. --- ************************************************
  24419. --- *** relation: g_to_a_transition ***
  24420. --- *** relation type: VIEW ***
  24421. --- *** ***
  24422. --- *** A transition of a guanine to an adenine. ***
  24423. --- ************************************************
  24424. ---
  24425. CREATE VIEW g_to_a_transition AS
  24426. SELECT
  24427. feature_id AS g_to_a_transition_id,
  24428. feature.*
  24429. FROM
  24430. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24431. WHERE cvterm.name = 'G_to_A_transition';
  24432. --- ************************************************
  24433. --- *** relation: transversion ***
  24434. --- *** relation type: VIEW ***
  24435. --- *** ***
  24436. --- *** Change of a pyrimidine nucleotide, C or ***
  24437. --- *** T, into a purine nucleotide, A or G, or ***
  24438. --- *** vice versa. ***
  24439. --- ************************************************
  24440. ---
  24441. CREATE VIEW transversion AS
  24442. SELECT
  24443. feature_id AS transversion_id,
  24444. feature.*
  24445. FROM
  24446. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24447. 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';
  24448. --- ************************************************
  24449. --- *** relation: pyrimidine_to_purine_transversion ***
  24450. --- *** relation type: VIEW ***
  24451. --- *** ***
  24452. --- *** Change of a pyrimidine nucleotide, C or ***
  24453. --- *** T, into a purine nucleotide, A or G. ***
  24454. --- ************************************************
  24455. ---
  24456. CREATE VIEW pyrimidine_to_purine_transversion AS
  24457. SELECT
  24458. feature_id AS pyrimidine_to_purine_transversion_id,
  24459. feature.*
  24460. FROM
  24461. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24462. 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';
  24463. --- ************************************************
  24464. --- *** relation: c_to_a_transversion ***
  24465. --- *** relation type: VIEW ***
  24466. --- *** ***
  24467. --- *** A transversion from cytidine to adenine. ***
  24468. --- ************************************************
  24469. ---
  24470. CREATE VIEW c_to_a_transversion AS
  24471. SELECT
  24472. feature_id AS c_to_a_transversion_id,
  24473. feature.*
  24474. FROM
  24475. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24476. WHERE cvterm.name = 'C_to_A_transversion';
  24477. --- ************************************************
  24478. --- *** relation: c_to_g_transversion ***
  24479. --- *** relation type: VIEW ***
  24480. --- *** ***
  24481. --- ************************************************
  24482. ---
  24483. CREATE VIEW c_to_g_transversion AS
  24484. SELECT
  24485. feature_id AS c_to_g_transversion_id,
  24486. feature.*
  24487. FROM
  24488. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24489. WHERE cvterm.name = 'C_to_G_transversion';
  24490. --- ************************************************
  24491. --- *** relation: t_to_a_transversion ***
  24492. --- *** relation type: VIEW ***
  24493. --- *** ***
  24494. --- *** A transversion from T to A. ***
  24495. --- ************************************************
  24496. ---
  24497. CREATE VIEW t_to_a_transversion AS
  24498. SELECT
  24499. feature_id AS t_to_a_transversion_id,
  24500. feature.*
  24501. FROM
  24502. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24503. WHERE cvterm.name = 'T_to_A_transversion';
  24504. --- ************************************************
  24505. --- *** relation: t_to_g_transversion ***
  24506. --- *** relation type: VIEW ***
  24507. --- *** ***
  24508. --- *** A transversion from T to G. ***
  24509. --- ************************************************
  24510. ---
  24511. CREATE VIEW t_to_g_transversion AS
  24512. SELECT
  24513. feature_id AS t_to_g_transversion_id,
  24514. feature.*
  24515. FROM
  24516. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24517. WHERE cvterm.name = 'T_to_G_transversion';
  24518. --- ************************************************
  24519. --- *** relation: purine_to_pyrimidine_transversion ***
  24520. --- *** relation type: VIEW ***
  24521. --- *** ***
  24522. --- *** Change of a purine nucleotide, A or G , ***
  24523. --- *** into a pyrimidine nucleotide C or T. ***
  24524. --- ************************************************
  24525. ---
  24526. CREATE VIEW purine_to_pyrimidine_transversion AS
  24527. SELECT
  24528. feature_id AS purine_to_pyrimidine_transversion_id,
  24529. feature.*
  24530. FROM
  24531. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24532. 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';
  24533. --- ************************************************
  24534. --- *** relation: a_to_c_transversion ***
  24535. --- *** relation type: VIEW ***
  24536. --- *** ***
  24537. --- *** A transversion from adenine to cytidine. ***
  24538. --- ************************************************
  24539. ---
  24540. CREATE VIEW a_to_c_transversion AS
  24541. SELECT
  24542. feature_id AS a_to_c_transversion_id,
  24543. feature.*
  24544. FROM
  24545. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24546. WHERE cvterm.name = 'A_to_C_transversion';
  24547. --- ************************************************
  24548. --- *** relation: a_to_t_transversion ***
  24549. --- *** relation type: VIEW ***
  24550. --- *** ***
  24551. --- *** A transversion from adenine to thymine. ***
  24552. --- ************************************************
  24553. ---
  24554. CREATE VIEW a_to_t_transversion AS
  24555. SELECT
  24556. feature_id AS a_to_t_transversion_id,
  24557. feature.*
  24558. FROM
  24559. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24560. WHERE cvterm.name = 'A_to_T_transversion';
  24561. --- ************************************************
  24562. --- *** relation: g_to_c_transversion ***
  24563. --- *** relation type: VIEW ***
  24564. --- *** ***
  24565. --- *** A transversion from guanine to cytidine. ***
  24566. --- ************************************************
  24567. ---
  24568. CREATE VIEW g_to_c_transversion AS
  24569. SELECT
  24570. feature_id AS g_to_c_transversion_id,
  24571. feature.*
  24572. FROM
  24573. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24574. WHERE cvterm.name = 'G_to_C_transversion';
  24575. --- ************************************************
  24576. --- *** relation: g_to_t_transversion ***
  24577. --- *** relation type: VIEW ***
  24578. --- *** ***
  24579. --- *** A transversion from guanine to thymine. ***
  24580. --- ************************************************
  24581. ---
  24582. CREATE VIEW g_to_t_transversion AS
  24583. SELECT
  24584. feature_id AS g_to_t_transversion_id,
  24585. feature.*
  24586. FROM
  24587. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24588. WHERE cvterm.name = 'G_to_T_transversion';
  24589. --- ************************************************
  24590. --- *** relation: intrachromosomal_mutation ***
  24591. --- *** relation type: VIEW ***
  24592. --- *** ***
  24593. --- ************************************************
  24594. ---
  24595. CREATE VIEW intrachromosomal_mutation AS
  24596. SELECT
  24597. feature_id AS intrachromosomal_mutation_id,
  24598. feature.*
  24599. FROM
  24600. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24601. 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 = '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 = '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 = 'tandem_duplication' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unorientated_intrachromosomal_transposition' OR cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' OR cvterm.name = 'inverted_ring_chromosome' OR cvterm.name = 'free_ring_duplication' OR cvterm.name = 'intrachromosomal_mutation';
  24602. --- ************************************************
  24603. --- *** relation: chromosomal_deletion ***
  24604. --- *** relation type: VIEW ***
  24605. --- *** ***
  24606. --- *** An incomplete chromosome. ***
  24607. --- ************************************************
  24608. ---
  24609. CREATE VIEW chromosomal_deletion AS
  24610. SELECT
  24611. feature_id AS chromosomal_deletion_id,
  24612. feature.*
  24613. FROM
  24614. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24615. WHERE 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';
  24616. --- ************************************************
  24617. --- *** relation: chromosomal_inversion ***
  24618. --- *** relation type: VIEW ***
  24619. --- *** ***
  24620. --- ************************************************
  24621. ---
  24622. CREATE VIEW chromosomal_inversion AS
  24623. SELECT
  24624. feature_id AS chromosomal_inversion_id,
  24625. feature.*
  24626. FROM
  24627. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24628. 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 = 'chromosomal_inversion';
  24629. --- ************************************************
  24630. --- *** relation: interchromosomal_mutation ***
  24631. --- *** relation type: VIEW ***
  24632. --- *** ***
  24633. --- ************************************************
  24634. ---
  24635. CREATE VIEW interchromosomal_mutation AS
  24636. SELECT
  24637. feature_id AS interchromosomal_mutation_id,
  24638. feature.*
  24639. FROM
  24640. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24641. 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 = 'deficient_interchromosomal_transposition' OR cvterm.name = 'inverted_interchromosomal_transposition' OR cvterm.name = 'uninverted_interchromosomal_transposition' OR cvterm.name = 'unorientated_interchromosomal_transposition' OR cvterm.name = 'interchromosomal_mutation';
  24642. --- ************************************************
  24643. --- *** relation: indel ***
  24644. --- *** relation type: VIEW ***
  24645. --- *** ***
  24646. --- *** A hybrid term (insertion/deletion) to de ***
  24647. --- *** scribe sequence length change when the d ***
  24648. --- *** irection of the change is unspecified. ***
  24649. --- ************************************************
  24650. ---
  24651. CREATE VIEW indel AS
  24652. SELECT
  24653. feature_id AS indel_id,
  24654. feature.*
  24655. FROM
  24656. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24657. WHERE cvterm.name = 'nucleotide_deletion' OR cvterm.name = 'nucleotide_insertion' OR cvterm.name = 'nucleotide_duplication' OR cvterm.name = 'indel';
  24658. --- ************************************************
  24659. --- *** relation: nucleotide_deletion ***
  24660. --- *** relation type: VIEW ***
  24661. --- *** ***
  24662. --- *** One or more continuous nucleotides are e ***
  24663. --- *** xcised from the sequence. ***
  24664. --- ************************************************
  24665. ---
  24666. CREATE VIEW nucleotide_deletion AS
  24667. SELECT
  24668. feature_id AS nucleotide_deletion_id,
  24669. feature.*
  24670. FROM
  24671. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24672. WHERE cvterm.name = 'nucleotide_deletion';
  24673. --- ************************************************
  24674. --- *** relation: nucleotide_insertion ***
  24675. --- *** relation type: VIEW ***
  24676. --- *** ***
  24677. --- *** One or more nucleotides are added betwee ***
  24678. --- *** n two adjacent nucleotides in the sequen ***
  24679. --- *** ce. ***
  24680. --- ************************************************
  24681. ---
  24682. CREATE VIEW nucleotide_insertion AS
  24683. SELECT
  24684. feature_id AS nucleotide_insertion_id,
  24685. feature.*
  24686. FROM
  24687. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24688. WHERE cvterm.name = 'nucleotide_duplication' OR cvterm.name = 'nucleotide_insertion';
  24689. --- ************************************************
  24690. --- *** relation: nucleotide_duplication ***
  24691. --- *** relation type: VIEW ***
  24692. --- *** ***
  24693. --- *** One or more nucleotides are added betwee ***
  24694. --- *** n two adjacent nucleotides in the sequen ***
  24695. --- *** ce; the inserted sequence derives from, ***
  24696. --- *** or is identical in sequence to, nucleoti ***
  24697. --- *** des adjacent to insertion point. ***
  24698. --- ************************************************
  24699. ---
  24700. CREATE VIEW nucleotide_duplication AS
  24701. SELECT
  24702. feature_id AS nucleotide_duplication_id,
  24703. feature.*
  24704. FROM
  24705. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24706. WHERE cvterm.name = 'nucleotide_duplication';
  24707. --- ************************************************
  24708. --- *** relation: inversion ***
  24709. --- *** relation type: VIEW ***
  24710. --- *** ***
  24711. --- *** A continuous nucleotide sequence is inve ***
  24712. --- *** rted in the same position. ***
  24713. --- ************************************************
  24714. ---
  24715. CREATE VIEW inversion AS
  24716. SELECT
  24717. feature_id AS inversion_id,
  24718. feature.*
  24719. FROM
  24720. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24721. WHERE cvterm.name = 'inversion';
  24722. --- ************************************************
  24723. --- *** relation: chromosomal_duplication ***
  24724. --- *** relation type: VIEW ***
  24725. --- *** ***
  24726. --- *** An extra chromosome. ***
  24727. --- ************************************************
  24728. ---
  24729. CREATE VIEW chromosomal_duplication AS
  24730. SELECT
  24731. feature_id AS chromosomal_duplication_id,
  24732. feature.*
  24733. FROM
  24734. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24735. 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 = 'tandem_duplication' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unorientated_intrachromosomal_transposition' OR cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' 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';
  24736. --- ************************************************
  24737. --- *** relation: intrachromosomal_duplication ***
  24738. --- *** relation type: VIEW ***
  24739. --- *** ***
  24740. --- ************************************************
  24741. ---
  24742. CREATE VIEW intrachromosomal_duplication AS
  24743. SELECT
  24744. feature_id AS intrachromosomal_duplication_id,
  24745. feature.*
  24746. FROM
  24747. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24748. 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 = 'tandem_duplication' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unorientated_intrachromosomal_transposition' OR cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' OR cvterm.name = 'intrachromosomal_duplication';
  24749. --- ************************************************
  24750. --- *** relation: direct_tandem_duplication ***
  24751. --- *** relation type: VIEW ***
  24752. --- *** ***
  24753. --- ************************************************
  24754. ---
  24755. CREATE VIEW direct_tandem_duplication AS
  24756. SELECT
  24757. feature_id AS direct_tandem_duplication_id,
  24758. feature.*
  24759. FROM
  24760. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24761. WHERE cvterm.name = 'direct_tandem_duplication';
  24762. --- ************************************************
  24763. --- *** relation: inverted_tandem_duplication ***
  24764. --- *** relation type: VIEW ***
  24765. --- *** ***
  24766. --- ************************************************
  24767. ---
  24768. CREATE VIEW inverted_tandem_duplication AS
  24769. SELECT
  24770. feature_id AS inverted_tandem_duplication_id,
  24771. feature.*
  24772. FROM
  24773. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24774. WHERE cvterm.name = 'inverted_tandem_duplication';
  24775. --- ************************************************
  24776. --- *** relation: intrachromosomal_transposition ***
  24777. --- *** relation type: VIEW ***
  24778. --- *** ***
  24779. --- ************************************************
  24780. ---
  24781. CREATE VIEW intrachromosomal_transposition AS
  24782. SELECT
  24783. feature_id AS intrachromosomal_transposition_id,
  24784. feature.*
  24785. FROM
  24786. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24787. WHERE cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unorientated_intrachromosomal_transposition' OR cvterm.name = 'intrachromosomal_transposition';
  24788. --- ************************************************
  24789. --- *** relation: compound_chromosome ***
  24790. --- *** relation type: VIEW ***
  24791. --- *** ***
  24792. --- ************************************************
  24793. ---
  24794. CREATE VIEW compound_chromosome AS
  24795. SELECT
  24796. feature_id AS compound_chromosome_id,
  24797. feature.*
  24798. FROM
  24799. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24800. WHERE cvterm.name = 'compound_chromosome_arm' OR cvterm.name = 'homo_compound_chromosome' OR cvterm.name = 'hetero_compound_chromosome' OR cvterm.name = 'compound_chromosome';
  24801. --- ************************************************
  24802. --- *** relation: robertsonian_fusion ***
  24803. --- *** relation type: VIEW ***
  24804. --- *** ***
  24805. --- ************************************************
  24806. ---
  24807. CREATE VIEW robertsonian_fusion AS
  24808. SELECT
  24809. feature_id AS robertsonian_fusion_id,
  24810. feature.*
  24811. FROM
  24812. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24813. WHERE cvterm.name = 'Robertsonian_fusion';
  24814. --- ************************************************
  24815. --- *** relation: chromosomal_translocation ***
  24816. --- *** relation type: VIEW ***
  24817. --- *** ***
  24818. --- ************************************************
  24819. ---
  24820. CREATE VIEW chromosomal_translocation AS
  24821. SELECT
  24822. feature_id AS chromosomal_translocation_id,
  24823. feature.*
  24824. FROM
  24825. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24826. 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 = 'chromosomal_translocation';
  24827. --- ************************************************
  24828. --- *** relation: ring_chromosome ***
  24829. --- *** relation type: VIEW ***
  24830. --- *** ***
  24831. --- ************************************************
  24832. ---
  24833. CREATE VIEW ring_chromosome AS
  24834. SELECT
  24835. feature_id AS ring_chromosome_id,
  24836. feature.*
  24837. FROM
  24838. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24839. WHERE cvterm.name = 'inverted_ring_chromosome' OR cvterm.name = 'free_ring_duplication' OR cvterm.name = 'ring_chromosome';
  24840. --- ************************************************
  24841. --- *** relation: pericentric_inversion ***
  24842. --- *** relation type: VIEW ***
  24843. --- *** ***
  24844. --- ************************************************
  24845. ---
  24846. CREATE VIEW pericentric_inversion AS
  24847. SELECT
  24848. feature_id AS pericentric_inversion_id,
  24849. feature.*
  24850. FROM
  24851. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24852. WHERE cvterm.name = 'pericentric_inversion';
  24853. --- ************************************************
  24854. --- *** relation: paracentric_inversion ***
  24855. --- *** relation type: VIEW ***
  24856. --- *** ***
  24857. --- ************************************************
  24858. ---
  24859. CREATE VIEW paracentric_inversion AS
  24860. SELECT
  24861. feature_id AS paracentric_inversion_id,
  24862. feature.*
  24863. FROM
  24864. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24865. WHERE cvterm.name = 'paracentric_inversion';
  24866. --- ************************************************
  24867. --- *** relation: reciprocal_chromosomal_translocation ***
  24868. --- *** relation type: VIEW ***
  24869. --- *** ***
  24870. --- ************************************************
  24871. ---
  24872. CREATE VIEW reciprocal_chromosomal_translocation AS
  24873. SELECT
  24874. feature_id AS reciprocal_chromosomal_translocation_id,
  24875. feature.*
  24876. FROM
  24877. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24878. WHERE cvterm.name = 'reciprocal_chromosomal_translocation';
  24879. --- ************************************************
  24880. --- *** relation: sequence_variation_affecting_transcript ***
  24881. --- *** relation type: VIEW ***
  24882. --- *** ***
  24883. --- *** Any change in mature, spliced and proces ***
  24884. --- *** sed, RNA that results from a change in t ***
  24885. --- *** he corresponding DNA sequence. ***
  24886. --- ************************************************
  24887. ---
  24888. CREATE VIEW sequence_variation_affecting_transcript AS
  24889. SELECT
  24890. feature_id AS sequence_variation_affecting_transcript_id,
  24891. feature.*
  24892. FROM
  24893. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24894. WHERE cvterm.name = 'sequence_variant_causing_no_change_in_transcript' OR cvterm.name = 'sequence_variation_affecting_complex_change_in_transcript' OR cvterm.name = 'sequence_variant_affecting_transcription' OR cvterm.name = 'sequence_variation_affecting_transcript_sequence' OR cvterm.name = 'sequence_variation_affecting_level_of_transcript' OR cvterm.name = 'sequence_variant_causing_uncharacterised_change_in_transcript' OR cvterm.name = 'sequence_variant_affecting_rate_of_transcription' OR cvterm.name = 'sequence_variant_decreasing_rate_of_transcription' OR cvterm.name = 'sequence_variant_increasing_rate_of_transcription' OR cvterm.name = 'sequence_variation_affecting_coding_sequence' OR cvterm.name = 'sequence_variant_affecting_transcript_processing' OR cvterm.name = 'sequence variant_affecting_transcript_stability' OR cvterm.name = 'sequence_variant_affecting_transcript_secondary_structure' OR cvterm.name = 'sequence_variant_causing_amino_acid_coding_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_terminator_codon_change_in_transcript' OR cvterm.name = 'sequence_variation_affecting_reading_frame' OR cvterm.name = 'sequence_variant_causing_initiator_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_synonymous_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_non_synonymous_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_nonsense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_missense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_conservative_missense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_nonconservative_missense_codon_change_in_transcript' OR cvterm.name = 'frameshift_sequence_variation' OR cvterm.name = 'sequence_variant_causing_plus_1_frameshift_mutation' OR cvterm.name = 'sequence_variant_causing_minus_1_frameshift' OR cvterm.name = 'sequence_variant_causing_plus_2_frameshift' OR cvterm.name = 'sequence_variant_causing_minus_2_frameshift' OR cvterm.name = 'frame_restoring_sequence_variant' OR cvterm.name = 'sequence_variant_affecting_polyadenylation' OR cvterm.name = 'sequence_variant_affecting_editing' OR cvterm.name = 'sequence_variant_increasing_transcript_stability' OR cvterm.name = 'sequence_variant_decreasing_transcript_stability' OR cvterm.name = 'sequence_variant_causing_compensatory_transcript_secondary_structure_mutation' OR cvterm.name = 'sequence_variation_decreasing_level_of_transcript' OR cvterm.name = 'sequence_variation_increasing_level_of_transcript' OR cvterm.name = 'sequence_variant_causing_partially_characterised_change_in_transcript' OR cvterm.name = 'sequence_variation_affecting_transcript';
  24895. --- ************************************************
  24896. --- *** relation: sequence_variant_causing_no_change_in_transcript ***
  24897. --- *** relation type: VIEW ***
  24898. --- *** ***
  24899. --- *** No effect on the state of the RNA. ***
  24900. --- ************************************************
  24901. ---
  24902. CREATE VIEW sequence_variant_causing_no_change_in_transcript AS
  24903. SELECT
  24904. feature_id AS sequence_variant_causing_no_change_in_transcript_id,
  24905. feature.*
  24906. FROM
  24907. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24908. WHERE cvterm.name = 'sequence_variant_causing_no_change_in_transcript';
  24909. --- ************************************************
  24910. --- *** relation: sequence_variation_affecting_complex_change_in_transcript ***
  24911. --- *** relation type: VIEW ***
  24912. --- *** ***
  24913. --- ************************************************
  24914. ---
  24915. CREATE VIEW sequence_variation_affecting_complex_change_in_transcript AS
  24916. SELECT
  24917. feature_id AS sequence_variation_affecting_complex_change_in_transcript_id,
  24918. feature.*
  24919. FROM
  24920. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24921. WHERE cvterm.name = 'sequence_variation_affecting_complex_change_in_transcript';
  24922. --- ************************************************
  24923. --- *** relation: sequence_variation_affecting_coding_sequence ***
  24924. --- *** relation type: VIEW ***
  24925. --- *** ***
  24926. --- *** Any of the amino acid coding triplets of ***
  24927. --- *** a gene are affected by the DNA mutation ***
  24928. --- *** . ***
  24929. --- ************************************************
  24930. ---
  24931. CREATE VIEW sequence_variation_affecting_coding_sequence AS
  24932. SELECT
  24933. feature_id AS sequence_variation_affecting_coding_sequence_id,
  24934. feature.*
  24935. FROM
  24936. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24937. WHERE cvterm.name = 'sequence_variant_causing_amino_acid_coding_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_terminator_codon_change_in_transcript' OR cvterm.name = 'sequence_variation_affecting_reading_frame' OR cvterm.name = 'sequence_variant_causing_initiator_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_synonymous_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_non_synonymous_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_nonsense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_missense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_conservative_missense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_nonconservative_missense_codon_change_in_transcript' OR cvterm.name = 'frameshift_sequence_variation' OR cvterm.name = 'sequence_variant_causing_plus_1_frameshift_mutation' OR cvterm.name = 'sequence_variant_causing_minus_1_frameshift' OR cvterm.name = 'sequence_variant_causing_plus_2_frameshift' OR cvterm.name = 'sequence_variant_causing_minus_2_frameshift' OR cvterm.name = 'frame_restoring_sequence_variant' OR cvterm.name = 'sequence_variation_affecting_coding_sequence';
  24938. --- ************************************************
  24939. --- *** relation: sequence_variant_causing_initiator_codon_change_in_trans ***
  24940. --- *** relation type: VIEW ***
  24941. --- *** ***
  24942. --- *** The DNA mutation changes, usually destro ***
  24943. --- *** ys, the first coding triplet of a gene. ***
  24944. --- *** Usually prevents translation although an ***
  24945. --- *** other initiator codon may be used. ***
  24946. --- ************************************************
  24947. ---
  24948. CREATE VIEW sequence_variant_causing_initiator_codon_change_in_trans AS
  24949. SELECT
  24950. feature_id AS sequence_variant_causing_initiator_codon_change_in_trans_id,
  24951. feature.*
  24952. FROM
  24953. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24954. WHERE cvterm.name = 'sequence_variant_causing_initiator_codon_change_in_transcript';
  24955. --- ************************************************
  24956. --- *** relation: seq_variant_causing_amino_acid_coding_codon_change_in_trans ***
  24957. --- *** relation type: VIEW ***
  24958. --- *** ***
  24959. --- *** The DNA mutation affects the amino acid ***
  24960. --- *** coding sequence of a gene; this region i ***
  24961. --- *** ncludes both the initiator and terminato ***
  24962. --- *** r codons. ***
  24963. --- ************************************************
  24964. ---
  24965. CREATE VIEW seq_variant_causing_amino_acid_coding_codon_change_in_trans AS
  24966. SELECT
  24967. feature_id AS seq_variant_causing_amino_acid_coding_codon_change_in_trans_id,
  24968. feature.*
  24969. FROM
  24970. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24971. WHERE cvterm.name = 'sequence_variant_causing_initiator_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_synonymous_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_non_synonymous_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_nonsense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_missense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_conservative_missense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_nonconservative_missense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_amino_acid_coding_codon_change_in_transcript';
  24972. --- ************************************************
  24973. --- *** relation: seq_variant_causing_synonymous_codon_change_in_trans ***
  24974. --- *** relation type: VIEW ***
  24975. --- *** ***
  24976. --- *** The changed codon has the same translati ***
  24977. --- *** on product as the original codon. ***
  24978. --- ************************************************
  24979. ---
  24980. CREATE VIEW seq_variant_causing_synonymous_codon_change_in_trans AS
  24981. SELECT
  24982. feature_id AS seq_variant_causing_synonymous_codon_change_in_trans_id,
  24983. feature.*
  24984. FROM
  24985. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24986. WHERE cvterm.name = 'sequence_variant_causing_synonymous_codon_change_in_transcript';
  24987. --- ************************************************
  24988. --- *** relation: seq_variant_causing_non_synonymous_codon_change_in_trans ***
  24989. --- *** relation type: VIEW ***
  24990. --- *** ***
  24991. --- *** A DNA point mutation that causes a subst ***
  24992. --- *** itution of an amino acid by an other. ***
  24993. --- ************************************************
  24994. ---
  24995. CREATE VIEW seq_variant_causing_non_synonymous_codon_change_in_trans AS
  24996. SELECT
  24997. feature_id AS seq_variant_causing_non_synonymous_codon_change_in_trans_id,
  24998. feature.*
  24999. FROM
  25000. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25001. WHERE cvterm.name = 'sequence_variant_causing_missense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_conservative_missense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_nonconservative_missense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_non_synonymous_codon_change_in_transcript';
  25002. --- ************************************************
  25003. --- *** relation: sequence_variant_causing_missense_codon_change_in_transcript ***
  25004. --- *** relation type: VIEW ***
  25005. --- *** ***
  25006. --- *** The nucleotide change in the codon leads ***
  25007. --- *** to a new codon coding for a new amino a ***
  25008. --- *** cid. ***
  25009. --- ************************************************
  25010. ---
  25011. CREATE VIEW sequence_variant_causing_missense_codon_change_in_transcript AS
  25012. SELECT
  25013. feature_id AS sequence_variant_causing_missense_codon_change_in_transcript_id,
  25014. feature.*
  25015. FROM
  25016. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25017. WHERE cvterm.name = 'sequence_variant_causing_conservative_missense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_nonconservative_missense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_missense_codon_change_in_transcript';
  25018. --- ************************************************
  25019. --- *** relation: seq_var_causing_conservative_missense_codon_change_in_trans ***
  25020. --- *** relation type: VIEW ***
  25021. --- *** ***
  25022. --- *** The amino acid change following from the ***
  25023. --- *** codon change does not change the gross ***
  25024. --- *** properties (size, charge, hydrophobicity ***
  25025. --- *** ) of the amino acid at that position. ***
  25026. --- ************************************************
  25027. ---
  25028. CREATE VIEW seq_var_causing_conservative_missense_codon_change_in_trans AS
  25029. SELECT
  25030. feature_id AS seq_var_causing_conservative_missense_codon_change_in_trans_id,
  25031. feature.*
  25032. FROM
  25033. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25034. WHERE cvterm.name = 'sequence_variant_causing_conservative_missense_codon_change_in_transcript';
  25035. --- ************************************************
  25036. --- *** relation: seq_var_causing_nonconserv_missense_codon_change_in_trans ***
  25037. --- *** relation type: VIEW ***
  25038. --- *** ***
  25039. --- *** The amino acid change following from the ***
  25040. --- *** codon change changes the gross properti ***
  25041. --- *** es (size, charge, hydrophobicity) of the ***
  25042. --- *** amino acid in that position. ***
  25043. --- ************************************************
  25044. ---
  25045. CREATE VIEW seq_var_causing_nonconserv_missense_codon_change_in_trans AS
  25046. SELECT
  25047. feature_id AS seq_var_causing_nonconserv_missense_codon_change_in_trans_id,
  25048. feature.*
  25049. FROM
  25050. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25051. WHERE cvterm.name = 'sequence_variant_causing_nonconservative_missense_codon_change_in_transcript';
  25052. --- ************************************************
  25053. --- *** relation: sequence_variant_causing_nonsense_codon_change_in_transcript ***
  25054. --- *** relation type: VIEW ***
  25055. --- *** ***
  25056. --- *** The nucleotide change in the codon tripl ***
  25057. --- *** et creates a terminator codon. ***
  25058. --- ************************************************
  25059. ---
  25060. CREATE VIEW sequence_variant_causing_nonsense_codon_change_in_transcript AS
  25061. SELECT
  25062. feature_id AS sequence_variant_causing_nonsense_codon_change_in_transcript_id,
  25063. feature.*
  25064. FROM
  25065. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25066. WHERE cvterm.name = 'sequence_variant_causing_nonsense_codon_change_in_transcript';
  25067. --- ************************************************
  25068. --- *** relation: sequence_variant_causing_terminator_codon_change_in_trans ***
  25069. --- *** relation type: VIEW ***
  25070. --- *** ***
  25071. --- *** The nucleotide change in the codon tripl ***
  25072. --- *** et changes the stop codon, causing an el ***
  25073. --- *** ongated transcript sequence. ***
  25074. --- ************************************************
  25075. ---
  25076. CREATE VIEW sequence_variant_causing_terminator_codon_change_in_trans AS
  25077. SELECT
  25078. feature_id AS sequence_variant_causing_terminator_codon_change_in_trans_id,
  25079. feature.*
  25080. FROM
  25081. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25082. WHERE cvterm.name = 'sequence_variant_causing_terminator_codon_change_in_transcript';
  25083. --- ************************************************
  25084. --- *** relation: sequence_variation_affecting_reading_frame ***
  25085. --- *** relation type: VIEW ***
  25086. --- *** ***
  25087. --- *** An umbrella term for terms describing an ***
  25088. --- *** effect of a sequence variation on the f ***
  25089. --- *** rame of translation. ***
  25090. --- ************************************************
  25091. ---
  25092. CREATE VIEW sequence_variation_affecting_reading_frame AS
  25093. SELECT
  25094. feature_id AS sequence_variation_affecting_reading_frame_id,
  25095. feature.*
  25096. FROM
  25097. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25098. WHERE cvterm.name = 'frameshift_sequence_variation' OR cvterm.name = 'sequence_variant_causing_plus_1_frameshift_mutation' OR cvterm.name = 'sequence_variant_causing_minus_1_frameshift' OR cvterm.name = 'sequence_variant_causing_plus_2_frameshift' OR cvterm.name = 'sequence_variant_causing_minus_2_frameshift' OR cvterm.name = 'frame_restoring_sequence_variant' OR cvterm.name = 'sequence_variation_affecting_reading_frame';
  25099. --- ************************************************
  25100. --- *** relation: frameshift_sequence_variation ***
  25101. --- *** relation type: VIEW ***
  25102. --- *** ***
  25103. --- *** A mutation causing a disruption of the t ***
  25104. --- *** ranslational reading frame, because the ***
  25105. --- *** number of nucleotides inserted or delete ***
  25106. --- *** d is not a multiple of three. ***
  25107. --- ************************************************
  25108. ---
  25109. CREATE VIEW frameshift_sequence_variation AS
  25110. SELECT
  25111. feature_id AS frameshift_sequence_variation_id,
  25112. feature.*
  25113. FROM
  25114. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25115. WHERE cvterm.name = 'sequence_variant_causing_plus_1_frameshift_mutation' OR cvterm.name = 'sequence_variant_causing_minus_1_frameshift' OR cvterm.name = 'sequence_variant_causing_plus_2_frameshift' OR cvterm.name = 'sequence_variant_causing_minus_2_frameshift' OR cvterm.name = 'frame_restoring_sequence_variant' OR cvterm.name = 'frameshift_sequence_variation';
  25116. --- ************************************************
  25117. --- *** relation: sequence_variant_causing_plus_1_frameshift_mutation ***
  25118. --- *** relation type: VIEW ***
  25119. --- *** ***
  25120. --- *** A mutation causing a disruption of the t ***
  25121. --- *** ranslational reading frame, due to the i ***
  25122. --- *** nsertion of a nucleotide. ***
  25123. --- ************************************************
  25124. ---
  25125. CREATE VIEW sequence_variant_causing_plus_1_frameshift_mutation AS
  25126. SELECT
  25127. feature_id AS sequence_variant_causing_plus_1_frameshift_mutation_id,
  25128. feature.*
  25129. FROM
  25130. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25131. WHERE cvterm.name = 'sequence_variant_causing_plus_1_frameshift_mutation';
  25132. --- ************************************************
  25133. --- *** relation: sequence_variant_causing_minus_1_frameshift ***
  25134. --- *** relation type: VIEW ***
  25135. --- *** ***
  25136. --- *** A mutation causing a disruption of the t ***
  25137. --- *** ranslational reading frame, due to the d ***
  25138. --- *** eletion of a nucleotide. ***
  25139. --- ************************************************
  25140. ---
  25141. CREATE VIEW sequence_variant_causing_minus_1_frameshift AS
  25142. SELECT
  25143. feature_id AS sequence_variant_causing_minus_1_frameshift_id,
  25144. feature.*
  25145. FROM
  25146. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25147. WHERE cvterm.name = 'sequence_variant_causing_minus_1_frameshift';
  25148. --- ************************************************
  25149. --- *** relation: sequence_variant_causing_plus_2_frameshift ***
  25150. --- *** relation type: VIEW ***
  25151. --- *** ***
  25152. --- *** A mutation causing a disruption of the t ***
  25153. --- *** ranslational reading frame, due to the i ***
  25154. --- *** nsertion of two nucleotides. ***
  25155. --- ************************************************
  25156. ---
  25157. CREATE VIEW sequence_variant_causing_plus_2_frameshift AS
  25158. SELECT
  25159. feature_id AS sequence_variant_causing_plus_2_frameshift_id,
  25160. feature.*
  25161. FROM
  25162. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25163. WHERE cvterm.name = 'sequence_variant_causing_plus_2_frameshift';
  25164. --- ************************************************
  25165. --- *** relation: sequence_variant_causing_minus_2_frameshift ***
  25166. --- *** relation type: VIEW ***
  25167. --- *** ***
  25168. --- *** A mutation causing a disruption of the t ***
  25169. --- *** ranslational reading frame, due to the d ***
  25170. --- *** eletion of two nucleotides. ***
  25171. --- ************************************************
  25172. ---
  25173. CREATE VIEW sequence_variant_causing_minus_2_frameshift AS
  25174. SELECT
  25175. feature_id AS sequence_variant_causing_minus_2_frameshift_id,
  25176. feature.*
  25177. FROM
  25178. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25179. WHERE cvterm.name = 'sequence_variant_causing_minus_2_frameshift';
  25180. --- ************************************************
  25181. --- *** relation: sequence_variant_affecting_transcript_processing ***
  25182. --- *** relation type: VIEW ***
  25183. --- *** ***
  25184. --- *** Sequence variant affects the way in whic ***
  25185. --- *** h the primary transcriptional product is ***
  25186. --- *** processed to form the mature transcript ***
  25187. --- *** . ***
  25188. --- ************************************************
  25189. ---
  25190. CREATE VIEW sequence_variant_affecting_transcript_processing AS
  25191. SELECT
  25192. feature_id AS sequence_variant_affecting_transcript_processing_id,
  25193. feature.*
  25194. FROM
  25195. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25196. WHERE cvterm.name = 'sequence_variant_affecting_polyadenylation' OR cvterm.name = 'sequence_variant_affecting_editing' OR cvterm.name = 'sequence_variant_affecting_transcript_processing';
  25197. --- ************************************************
  25198. --- *** relation: sequence_variant_affecting_splicing ***
  25199. --- *** relation type: VIEW ***
  25200. --- *** ***
  25201. --- *** A sequence_variant_effect where the way ***
  25202. --- *** in which the primary transcriptional pro ***
  25203. --- *** duct is processed to form the mature tra ***
  25204. --- *** nscript, specifically by the removal (sp ***
  25205. --- *** licing) of intron sequences is changed. ***
  25206. --- ************************************************
  25207. ---
  25208. CREATE VIEW sequence_variant_affecting_splicing AS
  25209. SELECT
  25210. feature_id AS sequence_variant_affecting_splicing_id,
  25211. feature.*
  25212. FROM
  25213. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25214. WHERE cvterm.name = 'sequence_variant_affecting_splice_donor' OR cvterm.name = 'sequence_variant_affecting_splice_acceptor' OR cvterm.name = 'sequence_variant_causing_cryptic_splice_activation' OR cvterm.name = 'sequence_variant_causes_exon_loss' OR cvterm.name = 'sequence_variant_causes_intron_gain' OR cvterm.name = 'sequence_variant_causing_cryptic_splice_donor_activation' OR cvterm.name = 'sequence_variant_causing_cryptic_splice_acceptor_activation' OR cvterm.name = 'sequence_variant_affecting_splicing';
  25215. --- ************************************************
  25216. --- *** relation: sequence_variant_affecting_splice_donor ***
  25217. --- *** relation type: VIEW ***
  25218. --- *** ***
  25219. --- *** A sequence_variant_effect that changes t ***
  25220. --- *** he splice donor sequence. ***
  25221. --- ************************************************
  25222. ---
  25223. CREATE VIEW sequence_variant_affecting_splice_donor AS
  25224. SELECT
  25225. feature_id AS sequence_variant_affecting_splice_donor_id,
  25226. feature.*
  25227. FROM
  25228. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25229. WHERE cvterm.name = 'sequence_variant_affecting_splice_donor';
  25230. --- ************************************************
  25231. --- *** relation: sequence_variant_affecting_splice_acceptor ***
  25232. --- *** relation type: VIEW ***
  25233. --- *** ***
  25234. --- *** A sequence_variant_effect that changes t ***
  25235. --- *** he splice acceptor sequence. ***
  25236. --- ************************************************
  25237. ---
  25238. CREATE VIEW sequence_variant_affecting_splice_acceptor AS
  25239. SELECT
  25240. feature_id AS sequence_variant_affecting_splice_acceptor_id,
  25241. feature.*
  25242. FROM
  25243. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25244. WHERE cvterm.name = 'sequence_variant_affecting_splice_acceptor';
  25245. --- ************************************************
  25246. --- *** relation: sequence_variant_causing_cryptic_splice_activation ***
  25247. --- *** relation type: VIEW ***
  25248. --- *** ***
  25249. --- *** A sequence variant causing a new (functi ***
  25250. --- *** onal) splice site. ***
  25251. --- ************************************************
  25252. ---
  25253. CREATE VIEW sequence_variant_causing_cryptic_splice_activation AS
  25254. SELECT
  25255. feature_id AS sequence_variant_causing_cryptic_splice_activation_id,
  25256. feature.*
  25257. FROM
  25258. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25259. WHERE cvterm.name = 'sequence_variant_causing_cryptic_splice_donor_activation' OR cvterm.name = 'sequence_variant_causing_cryptic_splice_acceptor_activation' OR cvterm.name = 'sequence_variant_causing_cryptic_splice_activation';
  25260. --- ************************************************
  25261. --- *** relation: sequence_variant_affecting_editing ***
  25262. --- *** relation type: VIEW ***
  25263. --- *** ***
  25264. --- *** Sequence variant affects the editing of ***
  25265. --- *** the transcript. ***
  25266. --- ************************************************
  25267. ---
  25268. CREATE VIEW sequence_variant_affecting_editing AS
  25269. SELECT
  25270. feature_id AS sequence_variant_affecting_editing_id,
  25271. feature.*
  25272. FROM
  25273. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25274. WHERE cvterm.name = 'sequence_variant_affecting_editing';
  25275. --- ************************************************
  25276. --- *** relation: sequence_variant_affecting_transcription ***
  25277. --- *** relation type: VIEW ***
  25278. --- *** ***
  25279. --- *** Mutation affects the process of transcri ***
  25280. --- *** ption, its initiation, progression or te ***
  25281. --- *** rmination. ***
  25282. --- ************************************************
  25283. ---
  25284. CREATE VIEW sequence_variant_affecting_transcription AS
  25285. SELECT
  25286. feature_id AS sequence_variant_affecting_transcription_id,
  25287. feature.*
  25288. FROM
  25289. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25290. WHERE cvterm.name = 'sequence_variant_affecting_rate_of_transcription' OR cvterm.name = 'sequence_variant_decreasing_rate_of_transcription' OR cvterm.name = 'sequence_variant_increasing_rate_of_transcription' OR cvterm.name = 'sequence_variant_affecting_transcription';
  25291. --- ************************************************
  25292. --- *** relation: sequence_variant_decreasing_rate_of_transcription ***
  25293. --- *** relation type: VIEW ***
  25294. --- *** ***
  25295. --- *** A sequence variation that decreases the ***
  25296. --- *** rate a which transcription of the sequen ***
  25297. --- *** ce occurs. ***
  25298. --- ************************************************
  25299. ---
  25300. CREATE VIEW sequence_variant_decreasing_rate_of_transcription AS
  25301. SELECT
  25302. feature_id AS sequence_variant_decreasing_rate_of_transcription_id,
  25303. feature.*
  25304. FROM
  25305. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25306. WHERE cvterm.name = 'sequence_variant_decreasing_rate_of_transcription';
  25307. --- ************************************************
  25308. --- *** relation: sequence_variation_affecting_transcript_sequence ***
  25309. --- *** relation type: VIEW ***
  25310. --- *** ***
  25311. --- ************************************************
  25312. ---
  25313. CREATE VIEW sequence_variation_affecting_transcript_sequence AS
  25314. SELECT
  25315. feature_id AS sequence_variation_affecting_transcript_sequence_id,
  25316. feature.*
  25317. FROM
  25318. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25319. WHERE cvterm.name = 'sequence_variation_affecting_coding_sequence' OR cvterm.name = 'sequence_variant_affecting_transcript_processing' OR cvterm.name = 'sequence variant_affecting_transcript_stability' OR cvterm.name = 'sequence_variant_affecting_transcript_secondary_structure' OR cvterm.name = 'sequence_variant_causing_amino_acid_coding_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_terminator_codon_change_in_transcript' OR cvterm.name = 'sequence_variation_affecting_reading_frame' OR cvterm.name = 'sequence_variant_causing_initiator_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_synonymous_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_non_synonymous_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_nonsense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_missense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_conservative_missense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_nonconservative_missense_codon_change_in_transcript' OR cvterm.name = 'frameshift_sequence_variation' OR cvterm.name = 'sequence_variant_causing_plus_1_frameshift_mutation' OR cvterm.name = 'sequence_variant_causing_minus_1_frameshift' OR cvterm.name = 'sequence_variant_causing_plus_2_frameshift' OR cvterm.name = 'sequence_variant_causing_minus_2_frameshift' OR cvterm.name = 'frame_restoring_sequence_variant' OR cvterm.name = 'sequence_variant_affecting_polyadenylation' OR cvterm.name = 'sequence_variant_affecting_editing' OR cvterm.name = 'sequence_variant_increasing_transcript_stability' OR cvterm.name = 'sequence_variant_decreasing_transcript_stability' OR cvterm.name = 'sequence_variant_causing_compensatory_transcript_secondary_structure_mutation' OR cvterm.name = 'sequence_variation_affecting_transcript_sequence';
  25320. --- ************************************************
  25321. --- *** relation: sequence_variant_increasing_rate_of_transcription ***
  25322. --- *** relation type: VIEW ***
  25323. --- *** ***
  25324. --- ************************************************
  25325. ---
  25326. CREATE VIEW sequence_variant_increasing_rate_of_transcription AS
  25327. SELECT
  25328. feature_id AS sequence_variant_increasing_rate_of_transcription_id,
  25329. feature.*
  25330. FROM
  25331. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25332. WHERE cvterm.name = 'sequence_variant_increasing_rate_of_transcription';
  25333. --- ************************************************
  25334. --- *** relation: sequence_variant_affecting_rate_of_transcription ***
  25335. --- *** relation type: VIEW ***
  25336. --- *** ***
  25337. --- *** A mutation that alters the rate a which ***
  25338. --- *** transcription of the sequence occurs. ***
  25339. --- ************************************************
  25340. ---
  25341. CREATE VIEW sequence_variant_affecting_rate_of_transcription AS
  25342. SELECT
  25343. feature_id AS sequence_variant_affecting_rate_of_transcription_id,
  25344. feature.*
  25345. FROM
  25346. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25347. WHERE cvterm.name = 'sequence_variant_decreasing_rate_of_transcription' OR cvterm.name = 'sequence_variant_increasing_rate_of_transcription' OR cvterm.name = 'sequence_variant_affecting_rate_of_transcription';
  25348. --- ************************************************
  25349. --- *** relation: sequence_variant_affecting_transcript_stability ***
  25350. --- *** relation type: VIEW ***
  25351. --- *** ***
  25352. --- *** Sequence variant affects the stability o ***
  25353. --- *** f the transcript. ***
  25354. --- ************************************************
  25355. ---
  25356. CREATE VIEW sequence_variant_affecting_transcript_stability AS
  25357. SELECT
  25358. feature_id AS sequence_variant_affecting_transcript_stability_id,
  25359. feature.*
  25360. FROM
  25361. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25362. WHERE cvterm.name = 'sequence_variant_increasing_transcript_stability' OR cvterm.name = 'sequence_variant_decreasing_transcript_stability' OR cvterm.name = 'sequence variant_affecting_transcript_stability';
  25363. --- ************************************************
  25364. --- *** relation: sequence_variant_increasing_transcript_stability ***
  25365. --- *** relation type: VIEW ***
  25366. --- *** ***
  25367. --- *** Sequence variant increases the stability ***
  25368. --- *** (half-life) of the transcript. ***
  25369. --- ************************************************
  25370. ---
  25371. CREATE VIEW sequence_variant_increasing_transcript_stability AS
  25372. SELECT
  25373. feature_id AS sequence_variant_increasing_transcript_stability_id,
  25374. feature.*
  25375. FROM
  25376. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25377. WHERE cvterm.name = 'sequence_variant_increasing_transcript_stability';
  25378. --- ************************************************
  25379. --- *** relation: sequence_variant_decreasing_transcript_stability ***
  25380. --- *** relation type: VIEW ***
  25381. --- *** ***
  25382. --- *** Sequence variant decreases the stability ***
  25383. --- *** (half-life) of the transcript. ***
  25384. --- ************************************************
  25385. ---
  25386. CREATE VIEW sequence_variant_decreasing_transcript_stability AS
  25387. SELECT
  25388. feature_id AS sequence_variant_decreasing_transcript_stability_id,
  25389. feature.*
  25390. FROM
  25391. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25392. WHERE cvterm.name = 'sequence_variant_decreasing_transcript_stability';
  25393. --- ************************************************
  25394. --- *** relation: sequence_variation_affecting_level_of_transcript ***
  25395. --- *** relation type: VIEW ***
  25396. --- *** ***
  25397. --- *** A sequence variation that causes a chang ***
  25398. --- *** e in the level of mature, spliced and pr ***
  25399. --- *** ocessed RNA, resulting from a change in ***
  25400. --- *** the corresponding DNA sequence. ***
  25401. --- ************************************************
  25402. ---
  25403. CREATE VIEW sequence_variation_affecting_level_of_transcript AS
  25404. SELECT
  25405. feature_id AS sequence_variation_affecting_level_of_transcript_id,
  25406. feature.*
  25407. FROM
  25408. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25409. WHERE cvterm.name = 'sequence_variation_decreasing_level_of_transcript' OR cvterm.name = 'sequence_variation_increasing_level_of_transcript' OR cvterm.name = 'sequence_variation_affecting_level_of_transcript';
  25410. --- ************************************************
  25411. --- *** relation: sequence_variation_decreasing_level_of_transcript ***
  25412. --- *** relation type: VIEW ***
  25413. --- *** ***
  25414. --- *** A sequence variation that causes a decre ***
  25415. --- *** ase in the level of mature, spliced and ***
  25416. --- *** processed RNA, resulting from a change i ***
  25417. --- *** n the corresponding DNA sequence. ***
  25418. --- ************************************************
  25419. ---
  25420. CREATE VIEW sequence_variation_decreasing_level_of_transcript AS
  25421. SELECT
  25422. feature_id AS sequence_variation_decreasing_level_of_transcript_id,
  25423. feature.*
  25424. FROM
  25425. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25426. WHERE cvterm.name = 'sequence_variation_decreasing_level_of_transcript';
  25427. --- ************************************************
  25428. --- *** relation: sequence_variation_increasing_level_of_transcript ***
  25429. --- *** relation type: VIEW ***
  25430. --- *** ***
  25431. --- *** A sequence_variation that causes an incr ***
  25432. --- *** ease in the level of mature, spliced and ***
  25433. --- *** processed RNA, resulting from a change ***
  25434. --- *** in the corresponding DNA sequence. ***
  25435. --- ************************************************
  25436. ---
  25437. CREATE VIEW sequence_variation_increasing_level_of_transcript AS
  25438. SELECT
  25439. feature_id AS sequence_variation_increasing_level_of_transcript_id,
  25440. feature.*
  25441. FROM
  25442. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25443. WHERE cvterm.name = 'sequence_variation_increasing_level_of_transcript';
  25444. --- ************************************************
  25445. --- *** relation: sequence_variant_affecting_translational_product ***
  25446. --- *** relation type: VIEW ***
  25447. --- *** ***
  25448. --- *** Mutation causes a change in primary tran ***
  25449. --- *** slation product of a transcript. ***
  25450. --- ************************************************
  25451. ---
  25452. CREATE VIEW sequence_variant_affecting_translational_product AS
  25453. SELECT
  25454. feature_id AS sequence_variant_affecting_translational_product_id,
  25455. feature.*
  25456. FROM
  25457. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25458. WHERE cvterm.name = 'sequence_variant_causing_no_change_of_translational_product' OR cvterm.name = 'sequence_variant_causing_uncharacterised_change_of_translational_product' OR cvterm.name = 'sequence_variant_causing_complex_change_of_translational_product' OR cvterm.name = 'sequence_variant_affecting_level_of_translational_product' OR cvterm.name = 'sequence_variant_affecting_polypeptide_amino_acid_sequence' OR cvterm.name = 'sequence_variant_affecting_3D_structure_of_polypeptide' OR cvterm.name = 'sequence_variant_affecting_polypeptide_function' OR cvterm.name = 'sequence_variant_causing_partially_characterised_change_of_translational_product' OR cvterm.name = 'sequence_variant_decreasing_level_of_translation_product' OR cvterm.name = 'sequence_variant_increasing_level_of_translation_product' OR cvterm.name = 'sequence_variant_causing_amino_acid_substitution' OR cvterm.name = 'sequence_variant_causing_amino_acid_insertion' OR cvterm.name = 'sequence_variant_causing_amino_acid_deletion' OR cvterm.name = 'sequence_variant_causing_polypeptide_truncation' OR cvterm.name = 'sequence_variant_causing_polypeptide_elongation' OR cvterm.name = 'sequence_variant_causing_polypeptide_fusion' OR cvterm.name = 'sequence_variant_causing_conservative_amino_acid_substitution' OR cvterm.name = 'sequence_variant_causing_nonconservative_amino_acid_substitution' OR cvterm.name = 'mutation_causing_polypeptide_N_terminal_elongation' OR cvterm.name = 'mutation_causing_polypeptide_C_terminal_elongation' OR cvterm.name = 'mutation_causing_inframe_polypeptide_N_terminal_elongation' OR cvterm.name = 'mutation_causing_out_of_frame_polypeptide_N_terminal_elongation' OR cvterm.name = 'mutaton_causing_inframe_polypeptide_C_terminal_elongation' OR cvterm.name = 'mutation_causing_out_of_frame_polypeptide_C_terminal_elongation' OR cvterm.name = 'sequence_variant_causing_no_3D_structural_change' OR cvterm.name = 'sequence_variant_causing_uncharacterised_3D_structural_change' OR cvterm.name = 'sequence_variant_causing_complex_3D_structural_change' OR cvterm.name = 'sequence_variant_causing_conformational_change' OR cvterm.name = 'sequence_variant_causing_partially_characterised_3D_structural_change' OR cvterm.name = 'sequence_variant_causing_loss_of_function_of_polypeptide' OR cvterm.name = 'sequence_variant_causing_polypeptide_localization_change' OR cvterm.name = 'sequence_variant_causing_polypeptide_post_translational_processing_change' OR cvterm.name = 'sequence_variant_causing_gain_of_function_of_polypeptide' OR cvterm.name = 'sequence_variant_causing_inactive_ligand_binding_site' OR cvterm.name = 'sequence_variant_causing_polypeptide_post_translational_processing_change' OR cvterm.name = 'sequence_variant_causing_partial_loss_of_function_of_polypeptide' OR cvterm.name = 'sequence_variant_causing_inactive_catalytic_site' OR cvterm.name = 'sequence_variant_affecting_translational_product';
  25459. --- ************************************************
  25460. --- *** relation: sequence_variant_causing_no_change_of_translational_product ***
  25461. --- *** relation type: VIEW ***
  25462. --- *** ***
  25463. --- *** The sequence variant at RNA level does n ***
  25464. --- *** ot lead to any change in polypeptide. ***
  25465. --- ************************************************
  25466. ---
  25467. CREATE VIEW sequence_variant_causing_no_change_of_translational_product AS
  25468. SELECT
  25469. feature_id AS sequence_variant_causing_no_change_of_translational_product_id,
  25470. feature.*
  25471. FROM
  25472. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25473. WHERE cvterm.name = 'sequence_variant_causing_no_change_of_translational_product';
  25474. --- ************************************************
  25475. --- *** relation: sequence_variant_causing_uncharacterised_change_of_product ***
  25476. --- *** relation type: VIEW ***
  25477. --- *** ***
  25478. --- *** A sequence variant causing an uncharacte ***
  25479. --- *** rized change of translational product. ***
  25480. --- ************************************************
  25481. ---
  25482. CREATE VIEW sequence_variant_causing_uncharacterised_change_of_product AS
  25483. SELECT
  25484. feature_id AS sequence_variant_causing_uncharacterised_change_of_product_id,
  25485. feature.*
  25486. FROM
  25487. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25488. WHERE cvterm.name = 'sequence_variant_causing_partially_characterised_change_of_translational_product' OR cvterm.name = 'sequence_variant_causing_uncharacterised_change_of_translational_product';
  25489. --- ************************************************
  25490. --- *** relation: seq_variant_causing_partly_characterised_change_of_product ***
  25491. --- *** relation type: VIEW ***
  25492. --- *** ***
  25493. --- *** A sequence variant causing a partially u ***
  25494. --- *** ncharacterised change in translational p ***
  25495. --- *** roduct. ***
  25496. --- ************************************************
  25497. ---
  25498. CREATE VIEW seq_variant_causing_partly_characterised_change_of_product AS
  25499. SELECT
  25500. feature_id AS seq_variant_causing_partly_characterised_change_of_product_id,
  25501. feature.*
  25502. FROM
  25503. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25504. WHERE cvterm.name = 'sequence_variant_causing_partially_characterised_change_of_translational_product';
  25505. --- ************************************************
  25506. --- *** relation: sequence_variant_causing_complex_change_of_product ***
  25507. --- *** relation type: VIEW ***
  25508. --- *** ***
  25509. --- *** Any sequence variant effect that is know ***
  25510. --- *** n at nucleotide level but cannot be expl ***
  25511. --- *** ained by using other key terms. ***
  25512. --- ************************************************
  25513. ---
  25514. CREATE VIEW sequence_variant_causing_complex_change_of_product AS
  25515. SELECT
  25516. feature_id AS sequence_variant_causing_complex_change_of_product_id,
  25517. feature.*
  25518. FROM
  25519. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25520. WHERE cvterm.name = 'sequence_variant_causing_complex_change_of_translational_product';
  25521. --- ************************************************
  25522. --- *** relation: sequence_variant_causing_amino_acid_substitution ***
  25523. --- *** relation type: VIEW ***
  25524. --- *** ***
  25525. --- *** The replacement of a single amino acid b ***
  25526. --- *** y another. ***
  25527. --- ************************************************
  25528. ---
  25529. CREATE VIEW sequence_variant_causing_amino_acid_substitution AS
  25530. SELECT
  25531. feature_id AS sequence_variant_causing_amino_acid_substitution_id,
  25532. feature.*
  25533. FROM
  25534. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25535. WHERE cvterm.name = 'sequence_variant_causing_conservative_amino_acid_substitution' OR cvterm.name = 'sequence_variant_causing_nonconservative_amino_acid_substitution' OR cvterm.name = 'sequence_variant_causing_amino_acid_substitution';
  25536. --- ************************************************
  25537. --- *** relation: sequence_variant_causing_conservative_amino_acid_sub ***
  25538. --- *** relation type: VIEW ***
  25539. --- *** ***
  25540. --- ************************************************
  25541. ---
  25542. CREATE VIEW sequence_variant_causing_conservative_amino_acid_sub AS
  25543. SELECT
  25544. feature_id AS sequence_variant_causing_conservative_amino_acid_sub_id,
  25545. feature.*
  25546. FROM
  25547. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25548. WHERE cvterm.name = 'sequence_variant_causing_conservative_amino_acid_substitution';
  25549. --- ************************************************
  25550. --- *** relation: sequence_variant_causing_nonconservative_amino_acid_sub ***
  25551. --- *** relation type: VIEW ***
  25552. --- *** ***
  25553. --- ************************************************
  25554. ---
  25555. CREATE VIEW sequence_variant_causing_nonconservative_amino_acid_sub AS
  25556. SELECT
  25557. feature_id AS sequence_variant_causing_nonconservative_amino_acid_sub_id,
  25558. feature.*
  25559. FROM
  25560. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25561. WHERE cvterm.name = 'sequence_variant_causing_nonconservative_amino_acid_substitution';
  25562. --- ************************************************
  25563. --- *** relation: sequence_variant_causing_amino_acid_insertion ***
  25564. --- *** relation type: VIEW ***
  25565. --- *** ***
  25566. --- *** The insertion of one or more amino acids ***
  25567. --- *** from the polypeptide, without affecting ***
  25568. --- *** the surrounding sequence. ***
  25569. --- ************************************************
  25570. ---
  25571. CREATE VIEW sequence_variant_causing_amino_acid_insertion AS
  25572. SELECT
  25573. feature_id AS sequence_variant_causing_amino_acid_insertion_id,
  25574. feature.*
  25575. FROM
  25576. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25577. WHERE cvterm.name = 'sequence_variant_causing_amino_acid_insertion';
  25578. --- ************************************************
  25579. --- *** relation: sequence_variant_causing_amino_acid_deletion ***
  25580. --- *** relation type: VIEW ***
  25581. --- *** ***
  25582. --- *** The deletion of one or more amino acids ***
  25583. --- *** from the polypeptide, without affecting ***
  25584. --- *** the surrounding sequence. ***
  25585. --- ************************************************
  25586. ---
  25587. CREATE VIEW sequence_variant_causing_amino_acid_deletion AS
  25588. SELECT
  25589. feature_id AS sequence_variant_causing_amino_acid_deletion_id,
  25590. feature.*
  25591. FROM
  25592. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25593. WHERE cvterm.name = 'sequence_variant_causing_amino_acid_deletion';
  25594. --- ************************************************
  25595. --- *** relation: sequence_variant_causing_polypeptide_truncation ***
  25596. --- *** relation type: VIEW ***
  25597. --- *** ***
  25598. --- *** The translational product is truncated a ***
  25599. --- *** t its C-terminus, usually a result of a ***
  25600. --- *** nonsense codon change in transcript (SO: ***
  25601. --- *** 1000062). ***
  25602. --- ************************************************
  25603. ---
  25604. CREATE VIEW sequence_variant_causing_polypeptide_truncation AS
  25605. SELECT
  25606. feature_id AS sequence_variant_causing_polypeptide_truncation_id,
  25607. feature.*
  25608. FROM
  25609. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25610. WHERE cvterm.name = 'sequence_variant_causing_polypeptide_truncation';
  25611. --- ************************************************
  25612. --- *** relation: sequence_variant_causing_polypeptide_elongation ***
  25613. --- *** relation type: VIEW ***
  25614. --- *** ***
  25615. --- *** The extension of the translational produ ***
  25616. --- *** ct at either (or both) the N-terminus an ***
  25617. --- *** d/or the C-terminus. ***
  25618. --- ************************************************
  25619. ---
  25620. CREATE VIEW sequence_variant_causing_polypeptide_elongation AS
  25621. SELECT
  25622. feature_id AS sequence_variant_causing_polypeptide_elongation_id,
  25623. feature.*
  25624. FROM
  25625. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25626. WHERE cvterm.name = 'mutation_causing_polypeptide_N_terminal_elongation' OR cvterm.name = 'mutation_causing_polypeptide_C_terminal_elongation' OR cvterm.name = 'mutation_causing_inframe_polypeptide_N_terminal_elongation' OR cvterm.name = 'mutation_causing_out_of_frame_polypeptide_N_terminal_elongation' OR cvterm.name = 'mutaton_causing_inframe_polypeptide_C_terminal_elongation' OR cvterm.name = 'mutation_causing_out_of_frame_polypeptide_C_terminal_elongation' OR cvterm.name = 'sequence_variant_causing_polypeptide_elongation';
  25627. --- ************************************************
  25628. --- *** relation: mutation_causing_polypeptide_n_terminal_elongation ***
  25629. --- *** relation type: VIEW ***
  25630. --- *** ***
  25631. --- *** . ***
  25632. --- ************************************************
  25633. ---
  25634. CREATE VIEW mutation_causing_polypeptide_n_terminal_elongation AS
  25635. SELECT
  25636. feature_id AS mutation_causing_polypeptide_n_terminal_elongation_id,
  25637. feature.*
  25638. FROM
  25639. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25640. WHERE cvterm.name = 'mutation_causing_inframe_polypeptide_N_terminal_elongation' OR cvterm.name = 'mutation_causing_out_of_frame_polypeptide_N_terminal_elongation' OR cvterm.name = 'mutation_causing_polypeptide_N_terminal_elongation';
  25641. --- ************************************************
  25642. --- *** relation: mutation_causing_polypeptide_c_terminal_elongation ***
  25643. --- *** relation type: VIEW ***
  25644. --- *** ***
  25645. --- *** . ***
  25646. --- ************************************************
  25647. ---
  25648. CREATE VIEW mutation_causing_polypeptide_c_terminal_elongation AS
  25649. SELECT
  25650. feature_id AS mutation_causing_polypeptide_c_terminal_elongation_id,
  25651. feature.*
  25652. FROM
  25653. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25654. WHERE cvterm.name = 'mutaton_causing_inframe_polypeptide_C_terminal_elongation' OR cvterm.name = 'mutation_causing_out_of_frame_polypeptide_C_terminal_elongation' OR cvterm.name = 'mutation_causing_polypeptide_C_terminal_elongation';
  25655. --- ************************************************
  25656. --- *** relation: sequence_variant_affecting_level_of_translational_product ***
  25657. --- *** relation type: VIEW ***
  25658. --- *** ***
  25659. --- ************************************************
  25660. ---
  25661. CREATE VIEW sequence_variant_affecting_level_of_translational_product AS
  25662. SELECT
  25663. feature_id AS sequence_variant_affecting_level_of_translational_product_id,
  25664. feature.*
  25665. FROM
  25666. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25667. WHERE cvterm.name = 'sequence_variant_decreasing_level_of_translation_product' OR cvterm.name = 'sequence_variant_increasing_level_of_translation_product' OR cvterm.name = 'sequence_variant_affecting_level_of_translational_product';
  25668. --- ************************************************
  25669. --- *** relation: sequence_variant_decreasing_level_of_translation_product ***
  25670. --- *** relation type: VIEW ***
  25671. --- *** ***
  25672. --- ************************************************
  25673. ---
  25674. CREATE VIEW sequence_variant_decreasing_level_of_translation_product AS
  25675. SELECT
  25676. feature_id AS sequence_variant_decreasing_level_of_translation_product_id,
  25677. feature.*
  25678. FROM
  25679. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25680. WHERE cvterm.name = 'sequence_variant_decreasing_level_of_translation_product';
  25681. --- ************************************************
  25682. --- *** relation: sequence_variant_increasing_level_of_translation_product ***
  25683. --- *** relation type: VIEW ***
  25684. --- *** ***
  25685. --- ************************************************
  25686. ---
  25687. CREATE VIEW sequence_variant_increasing_level_of_translation_product AS
  25688. SELECT
  25689. feature_id AS sequence_variant_increasing_level_of_translation_product_id,
  25690. feature.*
  25691. FROM
  25692. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25693. WHERE cvterm.name = 'sequence_variant_increasing_level_of_translation_product';
  25694. --- ************************************************
  25695. --- *** relation: sequence_variant_affecting_polypeptide_amino_acid_sequence ***
  25696. --- *** relation type: VIEW ***
  25697. --- *** ***
  25698. --- ************************************************
  25699. ---
  25700. CREATE VIEW sequence_variant_affecting_polypeptide_amino_acid_sequence AS
  25701. SELECT
  25702. feature_id AS sequence_variant_affecting_polypeptide_amino_acid_sequence_id,
  25703. feature.*
  25704. FROM
  25705. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25706. WHERE cvterm.name = 'sequence_variant_causing_amino_acid_substitution' OR cvterm.name = 'sequence_variant_causing_amino_acid_insertion' OR cvterm.name = 'sequence_variant_causing_amino_acid_deletion' OR cvterm.name = 'sequence_variant_causing_polypeptide_truncation' OR cvterm.name = 'sequence_variant_causing_polypeptide_elongation' OR cvterm.name = 'sequence_variant_causing_polypeptide_fusion' OR cvterm.name = 'sequence_variant_causing_conservative_amino_acid_substitution' OR cvterm.name = 'sequence_variant_causing_nonconservative_amino_acid_substitution' OR cvterm.name = 'mutation_causing_polypeptide_N_terminal_elongation' OR cvterm.name = 'mutation_causing_polypeptide_C_terminal_elongation' OR cvterm.name = 'mutation_causing_inframe_polypeptide_N_terminal_elongation' OR cvterm.name = 'mutation_causing_out_of_frame_polypeptide_N_terminal_elongation' OR cvterm.name = 'mutaton_causing_inframe_polypeptide_C_terminal_elongation' OR cvterm.name = 'mutation_causing_out_of_frame_polypeptide_C_terminal_elongation' OR cvterm.name = 'sequence_variant_affecting_polypeptide_amino_acid_sequence';
  25707. --- ************************************************
  25708. --- *** relation: mutation_causing_inframe_polypeptide_n_terminal_elongation ***
  25709. --- *** relation type: VIEW ***
  25710. --- *** ***
  25711. --- ************************************************
  25712. ---
  25713. CREATE VIEW mutation_causing_inframe_polypeptide_n_terminal_elongation AS
  25714. SELECT
  25715. feature_id AS mutation_causing_inframe_polypeptide_n_terminal_elongation_id,
  25716. feature.*
  25717. FROM
  25718. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25719. WHERE cvterm.name = 'mutation_causing_inframe_polypeptide_N_terminal_elongation';
  25720. --- ************************************************
  25721. --- *** relation: mutation_causing_out_of_frame_polypeptide_n_terminal_elong ***
  25722. --- *** relation type: VIEW ***
  25723. --- *** ***
  25724. --- ************************************************
  25725. ---
  25726. CREATE VIEW mutation_causing_out_of_frame_polypeptide_n_terminal_elong AS
  25727. SELECT
  25728. feature_id AS mutation_causing_out_of_frame_polypeptide_n_terminal_elong_id,
  25729. feature.*
  25730. FROM
  25731. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25732. WHERE cvterm.name = 'mutation_causing_out_of_frame_polypeptide_N_terminal_elongation';
  25733. --- ************************************************
  25734. --- *** relation: mutaton_causing_inframe_polypeptide_c_terminal_elongation ***
  25735. --- *** relation type: VIEW ***
  25736. --- *** ***
  25737. --- ************************************************
  25738. ---
  25739. CREATE VIEW mutaton_causing_inframe_polypeptide_c_terminal_elongation AS
  25740. SELECT
  25741. feature_id AS mutaton_causing_inframe_polypeptide_c_terminal_elongation_id,
  25742. feature.*
  25743. FROM
  25744. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25745. WHERE cvterm.name = 'mutaton_causing_inframe_polypeptide_C_terminal_elongation';
  25746. --- ************************************************
  25747. --- *** relation: mutation_causing_out_of_frame_polypeptide_c_terminal_elong ***
  25748. --- *** relation type: VIEW ***
  25749. --- *** ***
  25750. --- ************************************************
  25751. ---
  25752. CREATE VIEW mutation_causing_out_of_frame_polypeptide_c_terminal_elong AS
  25753. SELECT
  25754. feature_id AS mutation_causing_out_of_frame_polypeptide_c_terminal_elong_id,
  25755. feature.*
  25756. FROM
  25757. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25758. WHERE cvterm.name = 'mutation_causing_out_of_frame_polypeptide_C_terminal_elongation';
  25759. --- ************************************************
  25760. --- *** relation: frame_restoring_sequence_variant ***
  25761. --- *** relation type: VIEW ***
  25762. --- *** ***
  25763. --- *** A mutation that reverts the sequence of ***
  25764. --- *** a previous frameshift mutation back to t ***
  25765. --- *** he initial frame. ***
  25766. --- ************************************************
  25767. ---
  25768. CREATE VIEW frame_restoring_sequence_variant AS
  25769. SELECT
  25770. feature_id AS frame_restoring_sequence_variant_id,
  25771. feature.*
  25772. FROM
  25773. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25774. WHERE cvterm.name = 'frame_restoring_sequence_variant';
  25775. --- ************************************************
  25776. --- *** relation: sequence_variant_affecting_3d_structure_of_polypeptide ***
  25777. --- *** relation type: VIEW ***
  25778. --- *** ***
  25779. --- *** A mutation that changes the amino acid s ***
  25780. --- *** equence of the peptide in such a way tha ***
  25781. --- *** t it changes the 3D structure of the mol ***
  25782. --- *** ecule. ***
  25783. --- ************************************************
  25784. ---
  25785. CREATE VIEW sequence_variant_affecting_3d_structure_of_polypeptide AS
  25786. SELECT
  25787. feature_id AS sequence_variant_affecting_3d_structure_of_polypeptide_id,
  25788. feature.*
  25789. FROM
  25790. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25791. WHERE cvterm.name = 'sequence_variant_causing_no_3D_structural_change' OR cvterm.name = 'sequence_variant_causing_uncharacterised_3D_structural_change' OR cvterm.name = 'sequence_variant_causing_complex_3D_structural_change' OR cvterm.name = 'sequence_variant_causing_conformational_change' OR cvterm.name = 'sequence_variant_causing_partially_characterised_3D_structural_change' OR cvterm.name = 'sequence_variant_affecting_3D_structure_of_polypeptide';
  25792. --- ************************************************
  25793. --- *** relation: sequence_variant_causing_no_3d_structural_change ***
  25794. --- *** relation type: VIEW ***
  25795. --- *** ***
  25796. --- ************************************************
  25797. ---
  25798. CREATE VIEW sequence_variant_causing_no_3d_structural_change AS
  25799. SELECT
  25800. feature_id AS sequence_variant_causing_no_3d_structural_change_id,
  25801. feature.*
  25802. FROM
  25803. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25804. WHERE cvterm.name = 'sequence_variant_causing_no_3D_structural_change';
  25805. --- ************************************************
  25806. --- *** relation: seq_variant_causing_uncharacterised_3d_structural_change ***
  25807. --- *** relation type: VIEW ***
  25808. --- *** ***
  25809. --- ************************************************
  25810. ---
  25811. CREATE VIEW seq_variant_causing_uncharacterised_3d_structural_change AS
  25812. SELECT
  25813. feature_id AS seq_variant_causing_uncharacterised_3d_structural_change_id,
  25814. feature.*
  25815. FROM
  25816. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25817. WHERE cvterm.name = 'sequence_variant_causing_partially_characterised_3D_structural_change' OR cvterm.name = 'sequence_variant_causing_uncharacterised_3D_structural_change';
  25818. --- ************************************************
  25819. --- *** relation: seq_var_causing_partly_characterised_3d_structural_change ***
  25820. --- *** relation type: VIEW ***
  25821. --- *** ***
  25822. --- ************************************************
  25823. ---
  25824. CREATE VIEW seq_var_causing_partly_characterised_3d_structural_change AS
  25825. SELECT
  25826. feature_id AS seq_var_causing_partly_characterised_3d_structural_change_id,
  25827. feature.*
  25828. FROM
  25829. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25830. WHERE cvterm.name = 'sequence_variant_causing_partially_characterised_3D_structural_change';
  25831. --- ************************************************
  25832. --- *** relation: sequence_variant_causing_complex_3d_structural_change ***
  25833. --- *** relation type: VIEW ***
  25834. --- *** ***
  25835. --- ************************************************
  25836. ---
  25837. CREATE VIEW sequence_variant_causing_complex_3d_structural_change AS
  25838. SELECT
  25839. feature_id AS sequence_variant_causing_complex_3d_structural_change_id,
  25840. feature.*
  25841. FROM
  25842. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25843. WHERE cvterm.name = 'sequence_variant_causing_complex_3D_structural_change';
  25844. --- ************************************************
  25845. --- *** relation: sequence_variant_causing_conformational_change ***
  25846. --- *** relation type: VIEW ***
  25847. --- *** ***
  25848. --- ************************************************
  25849. ---
  25850. CREATE VIEW sequence_variant_causing_conformational_change AS
  25851. SELECT
  25852. feature_id AS sequence_variant_causing_conformational_change_id,
  25853. feature.*
  25854. FROM
  25855. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25856. WHERE cvterm.name = 'sequence_variant_causing_conformational_change';
  25857. --- ************************************************
  25858. --- *** relation: sequence_variant_affecting_polypeptide_function ***
  25859. --- *** relation type: VIEW ***
  25860. --- *** ***
  25861. --- ************************************************
  25862. ---
  25863. CREATE VIEW sequence_variant_affecting_polypeptide_function AS
  25864. SELECT
  25865. feature_id AS sequence_variant_affecting_polypeptide_function_id,
  25866. feature.*
  25867. FROM
  25868. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25869. WHERE cvterm.name = 'sequence_variant_causing_loss_of_function_of_polypeptide' OR cvterm.name = 'sequence_variant_causing_polypeptide_localization_change' OR cvterm.name = 'sequence_variant_causing_polypeptide_post_translational_processing_change' OR cvterm.name = 'sequence_variant_causing_gain_of_function_of_polypeptide' OR cvterm.name = 'sequence_variant_causing_inactive_ligand_binding_site' OR cvterm.name = 'sequence_variant_causing_polypeptide_post_translational_processing_change' OR cvterm.name = 'sequence_variant_causing_partial_loss_of_function_of_polypeptide' OR cvterm.name = 'sequence_variant_causing_inactive_catalytic_site' OR cvterm.name = 'sequence_variant_affecting_polypeptide_function';
  25870. --- ************************************************
  25871. --- *** relation: sequence_variant_causing_loss_of_function_of_polypeptide ***
  25872. --- *** relation type: VIEW ***
  25873. --- *** ***
  25874. --- ************************************************
  25875. ---
  25876. CREATE VIEW sequence_variant_causing_loss_of_function_of_polypeptide AS
  25877. SELECT
  25878. feature_id AS sequence_variant_causing_loss_of_function_of_polypeptide_id,
  25879. feature.*
  25880. FROM
  25881. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25882. WHERE cvterm.name = 'sequence_variant_causing_inactive_ligand_binding_site' OR cvterm.name = 'sequence_variant_causing_polypeptide_post_translational_processing_change' OR cvterm.name = 'sequence_variant_causing_partial_loss_of_function_of_polypeptide' OR cvterm.name = 'sequence_variant_causing_inactive_catalytic_site' OR cvterm.name = 'sequence_variant_causing_loss_of_function_of_polypeptide';
  25883. --- ************************************************
  25884. --- *** relation: sequence_variant_causing_inactive_ligand_binding_site ***
  25885. --- *** relation type: VIEW ***
  25886. --- *** ***
  25887. --- ************************************************
  25888. ---
  25889. CREATE VIEW sequence_variant_causing_inactive_ligand_binding_site AS
  25890. SELECT
  25891. feature_id AS sequence_variant_causing_inactive_ligand_binding_site_id,
  25892. feature.*
  25893. FROM
  25894. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25895. WHERE cvterm.name = 'sequence_variant_causing_inactive_catalytic_site' OR cvterm.name = 'sequence_variant_causing_inactive_ligand_binding_site';
  25896. --- ************************************************
  25897. --- *** relation: sequence_variant_causing_inactive_catalytic_site ***
  25898. --- *** relation type: VIEW ***
  25899. --- *** ***
  25900. --- ************************************************
  25901. ---
  25902. CREATE VIEW sequence_variant_causing_inactive_catalytic_site AS
  25903. SELECT
  25904. feature_id AS sequence_variant_causing_inactive_catalytic_site_id,
  25905. feature.*
  25906. FROM
  25907. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25908. WHERE cvterm.name = 'sequence_variant_causing_inactive_catalytic_site';
  25909. --- ************************************************
  25910. --- *** relation: sequence_variant_causing_polypeptide_localization_change ***
  25911. --- *** relation type: VIEW ***
  25912. --- *** ***
  25913. --- ************************************************
  25914. ---
  25915. CREATE VIEW sequence_variant_causing_polypeptide_localization_change AS
  25916. SELECT
  25917. feature_id AS sequence_variant_causing_polypeptide_localization_change_id,
  25918. feature.*
  25919. FROM
  25920. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25921. WHERE cvterm.name = 'sequence_variant_causing_polypeptide_localization_change';
  25922. --- ************************************************
  25923. --- *** relation: seq_variant_causing_polypeptide_post_trans_processing_change ***
  25924. --- *** relation type: VIEW ***
  25925. --- *** ***
  25926. --- ************************************************
  25927. ---
  25928. CREATE VIEW seq_variant_causing_polypeptide_post_trans_processing_change AS
  25929. SELECT
  25930. feature_id AS seq_variant_causing_polypeptide_post_trans_processing_change_id,
  25931. feature.*
  25932. FROM
  25933. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25934. WHERE cvterm.name = 'sequence_variant_causing_polypeptide_post_translational_processing_change';
  25935. --- ************************************************
  25936. --- *** relation: seq_variant_causing_part_loss_of_function_of_polypeptide ***
  25937. --- *** relation type: VIEW ***
  25938. --- *** ***
  25939. --- ************************************************
  25940. ---
  25941. CREATE VIEW seq_variant_causing_part_loss_of_function_of_polypeptide AS
  25942. SELECT
  25943. feature_id AS seq_variant_causing_part_loss_of_function_of_polypeptide_id,
  25944. feature.*
  25945. FROM
  25946. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25947. WHERE cvterm.name = 'sequence_variant_causing_partial_loss_of_function_of_polypeptide';
  25948. --- ************************************************
  25949. --- *** relation: sequence_variant_causing_gain_of_function_of_polypeptide ***
  25950. --- *** relation type: VIEW ***
  25951. --- *** ***
  25952. --- ************************************************
  25953. ---
  25954. CREATE VIEW sequence_variant_causing_gain_of_function_of_polypeptide AS
  25955. SELECT
  25956. feature_id AS sequence_variant_causing_gain_of_function_of_polypeptide_id,
  25957. feature.*
  25958. FROM
  25959. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25960. WHERE cvterm.name = 'sequence_variant_causing_gain_of_function_of_polypeptide';
  25961. --- ************************************************
  25962. --- *** relation: sequence_variant_affecting_transcript_secondary_structure ***
  25963. --- *** relation type: VIEW ***
  25964. --- *** ***
  25965. --- *** A sequence variant that affects the seco ***
  25966. --- *** ndary structure (folding) of the RNA tra ***
  25967. --- *** nscript molecule. ***
  25968. --- ************************************************
  25969. ---
  25970. CREATE VIEW sequence_variant_affecting_transcript_secondary_structure AS
  25971. SELECT
  25972. feature_id AS sequence_variant_affecting_transcript_secondary_structure_id,
  25973. feature.*
  25974. FROM
  25975. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25976. WHERE cvterm.name = 'sequence_variant_causing_compensatory_transcript_secondary_structure_mutation' OR cvterm.name = 'sequence_variant_affecting_transcript_secondary_structure';
  25977. --- ************************************************
  25978. --- *** relation: seq_variant_caus_compensatory_trans_secondary_structure_mut ***
  25979. --- *** relation type: VIEW ***
  25980. --- *** ***
  25981. --- ************************************************
  25982. ---
  25983. CREATE VIEW seq_variant_caus_compensatory_trans_secondary_structure_mut AS
  25984. SELECT
  25985. feature_id AS seq_variant_caus_compensatory_trans_secondary_structure_mut_id,
  25986. feature.*
  25987. FROM
  25988. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25989. WHERE cvterm.name = 'sequence_variant_causing_compensatory_transcript_secondary_structure_mutation';
  25990. --- ************************************************
  25991. --- *** relation: sequence_variant_effect ***
  25992. --- *** relation type: VIEW ***
  25993. --- *** ***
  25994. --- *** The effect of a change in nucleotide seq ***
  25995. --- *** uence. ***
  25996. --- ************************************************
  25997. ---
  25998. CREATE VIEW sequence_variant_effect AS
  25999. SELECT
  26000. feature_id AS sequence_variant_effect_id,
  26001. feature.*
  26002. FROM
  26003. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26004. WHERE cvterm.name = 'sequence_variant_affecting_regulatory_region' OR cvterm.name = 'silent_mutation' OR cvterm.name = 'sequence_variant_affecting_copy_number' OR cvterm.name = 'sequence_variation_affecting_transcript' OR cvterm.name = 'sequence_variant_affecting_splicing' OR cvterm.name = 'sequence_variant_affecting_translational_product' OR cvterm.name = 'sequence_variant_affecting_gene_structure' OR cvterm.name = 'sequence_variant_causing_no_change_in_transcript' OR cvterm.name = 'sequence_variation_affecting_complex_change_in_transcript' OR cvterm.name = 'sequence_variant_affecting_transcription' OR cvterm.name = 'sequence_variation_affecting_transcript_sequence' OR cvterm.name = 'sequence_variation_affecting_level_of_transcript' OR cvterm.name = 'sequence_variant_causing_uncharacterised_change_in_transcript' OR cvterm.name = 'sequence_variant_affecting_rate_of_transcription' OR cvterm.name = 'sequence_variant_decreasing_rate_of_transcription' OR cvterm.name = 'sequence_variant_increasing_rate_of_transcription' OR cvterm.name = 'sequence_variation_affecting_coding_sequence' OR cvterm.name = 'sequence_variant_affecting_transcript_processing' OR cvterm.name = 'sequence variant_affecting_transcript_stability' OR cvterm.name = 'sequence_variant_affecting_transcript_secondary_structure' OR cvterm.name = 'sequence_variant_causing_amino_acid_coding_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_terminator_codon_change_in_transcript' OR cvterm.name = 'sequence_variation_affecting_reading_frame' OR cvterm.name = 'sequence_variant_causing_initiator_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_synonymous_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_non_synonymous_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_nonsense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_missense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_conservative_missense_codon_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_nonconservative_missense_codon_change_in_transcript' OR cvterm.name = 'frameshift_sequence_variation' OR cvterm.name = 'sequence_variant_causing_plus_1_frameshift_mutation' OR cvterm.name = 'sequence_variant_causing_minus_1_frameshift' OR cvterm.name = 'sequence_variant_causing_plus_2_frameshift' OR cvterm.name = 'sequence_variant_causing_minus_2_frameshift' OR cvterm.name = 'frame_restoring_sequence_variant' OR cvterm.name = 'sequence_variant_affecting_polyadenylation' OR cvterm.name = 'sequence_variant_affecting_editing' OR cvterm.name = 'sequence_variant_increasing_transcript_stability' OR cvterm.name = 'sequence_variant_decreasing_transcript_stability' OR cvterm.name = 'sequence_variant_causing_compensatory_transcript_secondary_structure_mutation' OR cvterm.name = 'sequence_variation_decreasing_level_of_transcript' OR cvterm.name = 'sequence_variation_increasing_level_of_transcript' OR cvterm.name = 'sequence_variant_causing_partially_characterised_change_in_transcript' OR cvterm.name = 'sequence_variant_affecting_splice_donor' OR cvterm.name = 'sequence_variant_affecting_splice_acceptor' OR cvterm.name = 'sequence_variant_causing_cryptic_splice_activation' OR cvterm.name = 'sequence_variant_causes_exon_loss' OR cvterm.name = 'sequence_variant_causes_intron_gain' OR cvterm.name = 'sequence_variant_causing_cryptic_splice_donor_activation' OR cvterm.name = 'sequence_variant_causing_cryptic_splice_acceptor_activation' OR cvterm.name = 'sequence_variant_causing_no_change_of_translational_product' OR cvterm.name = 'sequence_variant_causing_uncharacterised_change_of_translational_product' OR cvterm.name = 'sequence_variant_causing_complex_change_of_translational_product' OR cvterm.name = 'sequence_variant_affecting_level_of_translational_product' OR cvterm.name = 'sequence_variant_affecting_polypeptide_amino_acid_sequence' OR cvterm.name = 'sequence_variant_affecting_3D_structure_of_polypeptide' OR cvterm.name = 'sequence_variant_affecting_polypeptide_function' OR cvterm.name = 'sequence_variant_causing_partially_characterised_change_of_translational_product' OR cvterm.name = 'sequence_variant_decreasing_level_of_translation_product' OR cvterm.name = 'sequence_variant_increasing_level_of_translation_product' OR cvterm.name = 'sequence_variant_causing_amino_acid_substitution' OR cvterm.name = 'sequence_variant_causing_amino_acid_insertion' OR cvterm.name = 'sequence_variant_causing_amino_acid_deletion' OR cvterm.name = 'sequence_variant_causing_polypeptide_truncation' OR cvterm.name = 'sequence_variant_causing_polypeptide_elongation' OR cvterm.name = 'sequence_variant_causing_polypeptide_fusion' OR cvterm.name = 'sequence_variant_causing_conservative_amino_acid_substitution' OR cvterm.name = 'sequence_variant_causing_nonconservative_amino_acid_substitution' OR cvterm.name = 'mutation_causing_polypeptide_N_terminal_elongation' OR cvterm.name = 'mutation_causing_polypeptide_C_terminal_elongation' OR cvterm.name = 'mutation_causing_inframe_polypeptide_N_terminal_elongation' OR cvterm.name = 'mutation_causing_out_of_frame_polypeptide_N_terminal_elongation' OR cvterm.name = 'mutaton_causing_inframe_polypeptide_C_terminal_elongation' OR cvterm.name = 'mutation_causing_out_of_frame_polypeptide_C_terminal_elongation' OR cvterm.name = 'sequence_variant_causing_no_3D_structural_change' OR cvterm.name = 'sequence_variant_causing_uncharacterised_3D_structural_change' OR cvterm.name = 'sequence_variant_causing_complex_3D_structural_change' OR cvterm.name = 'sequence_variant_causing_conformational_change' OR cvterm.name = 'sequence_variant_causing_partially_characterised_3D_structural_change' OR cvterm.name = 'sequence_variant_causing_loss_of_function_of_polypeptide' OR cvterm.name = 'sequence_variant_causing_polypeptide_localization_change' OR cvterm.name = 'sequence_variant_causing_polypeptide_post_translational_processing_change' OR cvterm.name = 'sequence_variant_causing_gain_of_function_of_polypeptide' OR cvterm.name = 'sequence_variant_causing_inactive_ligand_binding_site' OR cvterm.name = 'sequence_variant_causing_polypeptide_post_translational_processing_change' OR cvterm.name = 'sequence_variant_causing_partial_loss_of_function_of_polypeptide' OR cvterm.name = 'sequence_variant_causing_inactive_catalytic_site' OR cvterm.name = 'sequence_variant_causing_gene_fusion' OR cvterm.name = 'sequence_variant_effect';
  26005. --- ************************************************
  26006. --- *** relation: sequence_variant_causing_polypeptide_fusion ***
  26007. --- *** relation type: VIEW ***
  26008. --- *** ***
  26009. --- ************************************************
  26010. ---
  26011. CREATE VIEW sequence_variant_causing_polypeptide_fusion AS
  26012. SELECT
  26013. feature_id AS sequence_variant_causing_polypeptide_fusion_id,
  26014. feature.*
  26015. FROM
  26016. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26017. WHERE cvterm.name = 'sequence_variant_causing_polypeptide_fusion';
  26018. --- ************************************************
  26019. --- *** relation: autosynaptic_chromosome ***
  26020. --- *** relation type: VIEW ***
  26021. --- *** ***
  26022. --- ************************************************
  26023. ---
  26024. CREATE VIEW autosynaptic_chromosome AS
  26025. SELECT
  26026. feature_id AS autosynaptic_chromosome_id,
  26027. feature.*
  26028. FROM
  26029. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26030. WHERE cvterm.name = 'dexstrosynaptic_chromosome' OR cvterm.name = 'laevosynaptic_chromosome' OR cvterm.name = 'autosynaptic_chromosome';
  26031. --- ************************************************
  26032. --- *** relation: homo_compound_chromosome ***
  26033. --- *** relation type: VIEW ***
  26034. --- *** ***
  26035. --- ************************************************
  26036. ---
  26037. CREATE VIEW homo_compound_chromosome AS
  26038. SELECT
  26039. feature_id AS homo_compound_chromosome_id,
  26040. feature.*
  26041. FROM
  26042. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26043. WHERE cvterm.name = 'homo_compound_chromosome';
  26044. --- ************************************************
  26045. --- *** relation: hetero_compound_chromosome ***
  26046. --- *** relation type: VIEW ***
  26047. --- *** ***
  26048. --- ************************************************
  26049. ---
  26050. CREATE VIEW hetero_compound_chromosome AS
  26051. SELECT
  26052. feature_id AS hetero_compound_chromosome_id,
  26053. feature.*
  26054. FROM
  26055. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26056. WHERE cvterm.name = 'hetero_compound_chromosome';
  26057. --- ************************************************
  26058. --- *** relation: chromosome_fission ***
  26059. --- *** relation type: VIEW ***
  26060. --- *** ***
  26061. --- ************************************************
  26062. ---
  26063. CREATE VIEW chromosome_fission AS
  26064. SELECT
  26065. feature_id AS chromosome_fission_id,
  26066. feature.*
  26067. FROM
  26068. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26069. WHERE cvterm.name = 'chromosome_fission';
  26070. --- ************************************************
  26071. --- *** relation: dexstrosynaptic_chromosome ***
  26072. --- *** relation type: VIEW ***
  26073. --- *** ***
  26074. --- ************************************************
  26075. ---
  26076. CREATE VIEW dexstrosynaptic_chromosome AS
  26077. SELECT
  26078. feature_id AS dexstrosynaptic_chromosome_id,
  26079. feature.*
  26080. FROM
  26081. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26082. WHERE cvterm.name = 'dexstrosynaptic_chromosome';
  26083. --- ************************************************
  26084. --- *** relation: laevosynaptic_chromosome ***
  26085. --- *** relation type: VIEW ***
  26086. --- *** ***
  26087. --- ************************************************
  26088. ---
  26089. CREATE VIEW laevosynaptic_chromosome AS
  26090. SELECT
  26091. feature_id AS laevosynaptic_chromosome_id,
  26092. feature.*
  26093. FROM
  26094. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26095. WHERE cvterm.name = 'laevosynaptic_chromosome';
  26096. --- ************************************************
  26097. --- *** relation: free_duplication ***
  26098. --- *** relation type: VIEW ***
  26099. --- *** ***
  26100. --- ************************************************
  26101. ---
  26102. CREATE VIEW free_duplication AS
  26103. SELECT
  26104. feature_id AS free_duplication_id,
  26105. feature.*
  26106. FROM
  26107. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26108. WHERE cvterm.name = 'free_ring_duplication' OR cvterm.name = 'free_duplication';
  26109. --- ************************************************
  26110. --- *** relation: free_ring_duplication ***
  26111. --- *** relation type: VIEW ***
  26112. --- *** ***
  26113. --- ************************************************
  26114. ---
  26115. CREATE VIEW free_ring_duplication AS
  26116. SELECT
  26117. feature_id AS free_ring_duplication_id,
  26118. feature.*
  26119. FROM
  26120. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26121. WHERE cvterm.name = 'free_ring_duplication';
  26122. --- ************************************************
  26123. --- *** relation: complex_chromosomal_mutation ***
  26124. --- *** relation type: VIEW ***
  26125. --- *** ***
  26126. --- ************************************************
  26127. ---
  26128. CREATE VIEW complex_chromosomal_mutation AS
  26129. SELECT
  26130. feature_id AS complex_chromosomal_mutation_id,
  26131. feature.*
  26132. FROM
  26133. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26134. WHERE cvterm.name = 'complex_chromosomal_mutation';
  26135. --- ************************************************
  26136. --- *** relation: deficient_translocation ***
  26137. --- *** relation type: VIEW ***
  26138. --- *** ***
  26139. --- *** A translocation in which one of the four ***
  26140. --- *** broken ends loses a segment before re-j ***
  26141. --- *** oining. ***
  26142. --- ************************************************
  26143. ---
  26144. CREATE VIEW deficient_translocation AS
  26145. SELECT
  26146. feature_id AS deficient_translocation_id,
  26147. feature.*
  26148. FROM
  26149. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26150. WHERE cvterm.name = 'deficient_translocation';
  26151. --- ************************************************
  26152. --- *** relation: inversion_cum_translocation ***
  26153. --- *** relation type: VIEW ***
  26154. --- *** ***
  26155. --- *** The first two breaks are in the same chr ***
  26156. --- *** omosome, and the region between them is ***
  26157. --- *** rejoined in inverted order to the other ***
  26158. --- *** side of the first break, such that both ***
  26159. --- *** sides of break one are present on the sa ***
  26160. --- *** me chromosome. The remaining free ends a ***
  26161. --- *** re joined as a translocation with those ***
  26162. --- *** resulting from the third break. ***
  26163. --- ************************************************
  26164. ---
  26165. CREATE VIEW inversion_cum_translocation AS
  26166. SELECT
  26167. feature_id AS inversion_cum_translocation_id,
  26168. feature.*
  26169. FROM
  26170. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26171. WHERE cvterm.name = 'inversion_cum_translocation';
  26172. --- ************************************************
  26173. --- *** relation: bipartite_duplication ***
  26174. --- *** relation type: VIEW ***
  26175. --- *** ***
  26176. --- *** The (large) region between the first two ***
  26177. --- *** breaks listed is lost, and the two flan ***
  26178. --- *** king segments (one of them centric) are ***
  26179. --- *** joined as a translocation to the free en ***
  26180. --- *** ds resulting from the third break. ***
  26181. --- ************************************************
  26182. ---
  26183. CREATE VIEW bipartite_duplication AS
  26184. SELECT
  26185. feature_id AS bipartite_duplication_id,
  26186. feature.*
  26187. FROM
  26188. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26189. WHERE cvterm.name = 'bipartite_duplication';
  26190. --- ************************************************
  26191. --- *** relation: cyclic_translocation ***
  26192. --- *** relation type: VIEW ***
  26193. --- *** ***
  26194. --- *** Three breaks in three different chromoso ***
  26195. --- *** mes. The centric segment resulting from ***
  26196. --- *** the first break listed is joined to the ***
  26197. --- *** acentric segment resulting from the seco ***
  26198. --- *** nd, rather than the third. ***
  26199. --- ************************************************
  26200. ---
  26201. CREATE VIEW cyclic_translocation AS
  26202. SELECT
  26203. feature_id AS cyclic_translocation_id,
  26204. feature.*
  26205. FROM
  26206. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26207. WHERE cvterm.name = 'cyclic_translocation';
  26208. --- ************************************************
  26209. --- *** relation: bipartite_inversion ***
  26210. --- *** relation type: VIEW ***
  26211. --- *** ***
  26212. --- *** Three breaks in the same chromosome; bot ***
  26213. --- *** h central segments are inverted in place ***
  26214. --- *** (i.e., they are not transposed). ***
  26215. --- ************************************************
  26216. ---
  26217. CREATE VIEW bipartite_inversion AS
  26218. SELECT
  26219. feature_id AS bipartite_inversion_id,
  26220. feature.*
  26221. FROM
  26222. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26223. WHERE cvterm.name = 'bipartite_inversion';
  26224. --- ************************************************
  26225. --- *** relation: uninvert_insert_dup ***
  26226. --- *** relation type: VIEW ***
  26227. --- *** ***
  26228. --- *** A copy of the segment between the first ***
  26229. --- *** two breaks listed is inserted at the thi ***
  26230. --- *** rd break; the insertion is in cytologica ***
  26231. --- *** lly the same orientation as its flanking ***
  26232. --- *** segments. ***
  26233. --- ************************************************
  26234. ---
  26235. CREATE VIEW uninvert_insert_dup AS
  26236. SELECT
  26237. feature_id AS uninvert_insert_dup_id,
  26238. feature.*
  26239. FROM
  26240. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26241. WHERE cvterm.name = 'uninverted_insertional_duplication';
  26242. --- ************************************************
  26243. --- *** relation: inverted_insertional_duplication ***
  26244. --- *** relation type: VIEW ***
  26245. --- *** ***
  26246. --- *** A copy of the segment between the first ***
  26247. --- *** two breaks listed is inserted at the thi ***
  26248. --- *** rd break; the insertion is in cytologica ***
  26249. --- *** lly inverted orientation with respect to ***
  26250. --- *** its flanking segments. ***
  26251. --- ************************************************
  26252. ---
  26253. CREATE VIEW inverted_insertional_duplication AS
  26254. SELECT
  26255. feature_id AS inverted_insertional_duplication_id,
  26256. feature.*
  26257. FROM
  26258. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26259. WHERE cvterm.name = 'inverted_insertional_duplication';
  26260. --- ************************************************
  26261. --- *** relation: insertional_duplication ***
  26262. --- *** relation type: VIEW ***
  26263. --- *** ***
  26264. --- *** A chromosome duplication involving the i ***
  26265. --- *** nsertion of a duplicated region. ***
  26266. --- ************************************************
  26267. ---
  26268. CREATE VIEW insertional_duplication AS
  26269. SELECT
  26270. feature_id AS insertional_duplication_id,
  26271. feature.*
  26272. FROM
  26273. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26274. WHERE cvterm.name = 'uninverted_insertional_duplication' OR cvterm.name = 'inverted_insertional_duplication' OR cvterm.name = 'unoriented_insertional_duplication' OR cvterm.name = 'insertional_duplication';
  26275. --- ************************************************
  26276. --- *** relation: interchromosomal_transposition ***
  26277. --- *** relation type: VIEW ***
  26278. --- *** ***
  26279. --- ************************************************
  26280. ---
  26281. CREATE VIEW interchromosomal_transposition AS
  26282. SELECT
  26283. feature_id AS interchromosomal_transposition_id,
  26284. feature.*
  26285. FROM
  26286. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26287. WHERE cvterm.name = 'deficient_interchromosomal_transposition' OR cvterm.name = 'inverted_interchromosomal_transposition' OR cvterm.name = 'uninverted_interchromosomal_transposition' OR cvterm.name = 'unorientated_interchromosomal_transposition' OR cvterm.name = 'interchromosomal_transposition';
  26288. --- ************************************************
  26289. --- *** relation: invert_inter_transposition ***
  26290. --- *** relation type: VIEW ***
  26291. --- *** ***
  26292. --- ************************************************
  26293. ---
  26294. CREATE VIEW invert_inter_transposition AS
  26295. SELECT
  26296. feature_id AS invert_inter_transposition_id,
  26297. feature.*
  26298. FROM
  26299. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26300. WHERE cvterm.name = 'inverted_interchromosomal_transposition';
  26301. --- ************************************************
  26302. --- *** relation: uninvert_inter_transposition ***
  26303. --- *** relation type: VIEW ***
  26304. --- *** ***
  26305. --- ************************************************
  26306. ---
  26307. CREATE VIEW uninvert_inter_transposition AS
  26308. SELECT
  26309. feature_id AS uninvert_inter_transposition_id,
  26310. feature.*
  26311. FROM
  26312. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26313. WHERE cvterm.name = 'uninverted_interchromosomal_transposition';
  26314. --- ************************************************
  26315. --- *** relation: invert_intra_transposition ***
  26316. --- *** relation type: VIEW ***
  26317. --- *** ***
  26318. --- *** The segment between the first two breaks ***
  26319. --- *** listed is removed and inserted at the t ***
  26320. --- *** hird break; the insertion is in cytologi ***
  26321. --- *** cally inverted orientation with respect ***
  26322. --- *** to its flanking segments. ***
  26323. --- ************************************************
  26324. ---
  26325. CREATE VIEW invert_intra_transposition AS
  26326. SELECT
  26327. feature_id AS invert_intra_transposition_id,
  26328. feature.*
  26329. FROM
  26330. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26331. WHERE cvterm.name = 'inverted_intrachromosomal_transposition';
  26332. --- ************************************************
  26333. --- *** relation: uninvert_intra_transposition ***
  26334. --- *** relation type: VIEW ***
  26335. --- *** ***
  26336. --- *** The segment between the first two breaks ***
  26337. --- *** listed is removed and inserted at the t ***
  26338. --- *** hird break; the insertion is in cytologi ***
  26339. --- *** cally the same orientation as its flanki ***
  26340. --- *** ng segments. ***
  26341. --- ************************************************
  26342. ---
  26343. CREATE VIEW uninvert_intra_transposition AS
  26344. SELECT
  26345. feature_id AS uninvert_intra_transposition_id,
  26346. feature.*
  26347. FROM
  26348. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26349. WHERE cvterm.name = 'uninverted_intrachromosomal_transposition';
  26350. --- ************************************************
  26351. --- *** relation: unorient_insert_dup ***
  26352. --- *** relation type: VIEW ***
  26353. --- *** ***
  26354. --- *** A copy of the segment between the first ***
  26355. --- *** two breaks listed is inserted at the thi ***
  26356. --- *** rd break; the orientation of the inserti ***
  26357. --- *** on with respect to its flanking segments ***
  26358. --- *** is not recorded. ***
  26359. --- ************************************************
  26360. ---
  26361. CREATE VIEW unorient_insert_dup AS
  26362. SELECT
  26363. feature_id AS unorient_insert_dup_id,
  26364. feature.*
  26365. FROM
  26366. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26367. WHERE cvterm.name = 'unoriented_insertional_duplication';
  26368. --- ************************************************
  26369. --- *** relation: unorient_inter_transposition ***
  26370. --- *** relation type: VIEW ***
  26371. --- *** ***
  26372. --- ************************************************
  26373. ---
  26374. CREATE VIEW unorient_inter_transposition AS
  26375. SELECT
  26376. feature_id AS unorient_inter_transposition_id,
  26377. feature.*
  26378. FROM
  26379. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26380. WHERE cvterm.name = 'unorientated_interchromosomal_transposition';
  26381. --- ************************************************
  26382. --- *** relation: unorient_intra_transposition ***
  26383. --- *** relation type: VIEW ***
  26384. --- *** ***
  26385. --- *** The segment between the first two breaks ***
  26386. --- *** listed is removed and inserted at the t ***
  26387. --- *** hird break; the orientation of the inser ***
  26388. --- *** tion with respect to its flanking segmen ***
  26389. --- *** ts is not recorded. ***
  26390. --- ************************************************
  26391. ---
  26392. CREATE VIEW unorient_intra_transposition AS
  26393. SELECT
  26394. feature_id AS unorient_intra_transposition_id,
  26395. feature.*
  26396. FROM
  26397. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26398. WHERE cvterm.name = 'unorientated_intrachromosomal_transposition';
  26399. --- ************************************************
  26400. --- *** relation: uncharacterised_chromosomal_mutation ***
  26401. --- *** relation type: VIEW ***
  26402. --- *** ***
  26403. --- ************************************************
  26404. ---
  26405. CREATE VIEW uncharacterised_chromosomal_mutation AS
  26406. SELECT
  26407. feature_id AS uncharacterised_chromosomal_mutation_id,
  26408. feature.*
  26409. FROM
  26410. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26411. WHERE cvterm.name = 'partially_characterised_chromosomal_mutation' OR cvterm.name = 'uncharacterised_chromosomal_mutation';
  26412. --- ************************************************
  26413. --- *** relation: deficient_inversion ***
  26414. --- *** relation type: VIEW ***
  26415. --- *** ***
  26416. --- *** Three breaks in the same chromosome; one ***
  26417. --- *** central region lost, the other inverted ***
  26418. --- *** . ***
  26419. --- ************************************************
  26420. ---
  26421. CREATE VIEW deficient_inversion AS
  26422. SELECT
  26423. feature_id AS deficient_inversion_id,
  26424. feature.*
  26425. FROM
  26426. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26427. WHERE cvterm.name = 'deficient_inversion';
  26428. --- ************************************************
  26429. --- *** relation: tandem_duplication ***
  26430. --- *** relation type: VIEW ***
  26431. --- *** ***
  26432. --- ************************************************
  26433. ---
  26434. CREATE VIEW tandem_duplication AS
  26435. SELECT
  26436. feature_id AS tandem_duplication_id,
  26437. feature.*
  26438. FROM
  26439. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26440. WHERE cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' OR cvterm.name = 'tandem_duplication';
  26441. --- ************************************************
  26442. --- *** relation: partially_characterised_chromosomal_mutation ***
  26443. --- *** relation type: VIEW ***
  26444. --- *** ***
  26445. --- ************************************************
  26446. ---
  26447. CREATE VIEW partially_characterised_chromosomal_mutation AS
  26448. SELECT
  26449. feature_id AS partially_characterised_chromosomal_mutation_id,
  26450. feature.*
  26451. FROM
  26452. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26453. WHERE cvterm.name = 'partially_characterised_chromosomal_mutation';
  26454. --- ************************************************
  26455. --- *** relation: seq_variant_causing_uncharacterised_change_in_transcript ***
  26456. --- *** relation type: VIEW ***
  26457. --- *** ***
  26458. --- *** The nature of the mutation event is eith ***
  26459. --- *** er uncharacterised or only partially cha ***
  26460. --- *** racterised. ***
  26461. --- ************************************************
  26462. ---
  26463. CREATE VIEW seq_variant_causing_uncharacterised_change_in_transcript AS
  26464. SELECT
  26465. feature_id AS seq_variant_causing_uncharacterised_change_in_transcript_id,
  26466. feature.*
  26467. FROM
  26468. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26469. WHERE cvterm.name = 'sequence_variant_causing_partially_characterised_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_uncharacterised_change_in_transcript';
  26470. --- ************************************************
  26471. --- *** relation: seq_variant_causing_partly_characterised_change_in_trans ***
  26472. --- *** relation type: VIEW ***
  26473. --- *** ***
  26474. --- *** The nature of the mutation event is only ***
  26475. --- *** partially characterised. ***
  26476. --- ************************************************
  26477. ---
  26478. CREATE VIEW seq_variant_causing_partly_characterised_change_in_trans AS
  26479. SELECT
  26480. feature_id AS seq_variant_causing_partly_characterised_change_in_trans_id,
  26481. feature.*
  26482. FROM
  26483. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26484. WHERE cvterm.name = 'sequence_variant_causing_partially_characterised_change_in_transcript';
  26485. --- ************************************************
  26486. --- *** relation: sequence_variant_affecting_gene_structure ***
  26487. --- *** relation type: VIEW ***
  26488. --- *** ***
  26489. --- *** A sequence_variant_effect that changes t ***
  26490. --- *** he gene structure. ***
  26491. --- ************************************************
  26492. ---
  26493. CREATE VIEW sequence_variant_affecting_gene_structure AS
  26494. SELECT
  26495. feature_id AS sequence_variant_affecting_gene_structure_id,
  26496. feature.*
  26497. FROM
  26498. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26499. WHERE cvterm.name = 'sequence_variant_causing_gene_fusion' OR cvterm.name = 'sequence_variant_affecting_gene_structure';
  26500. --- ************************************************
  26501. --- *** relation: sequence_variant_causing_gene_fusion ***
  26502. --- *** relation type: VIEW ***
  26503. --- *** ***
  26504. --- *** A sequence_variant_effect that changes t ***
  26505. --- *** he gene structure by causing a fusion to ***
  26506. --- *** another gene. ***
  26507. --- ************************************************
  26508. ---
  26509. CREATE VIEW sequence_variant_causing_gene_fusion AS
  26510. SELECT
  26511. feature_id AS sequence_variant_causing_gene_fusion_id,
  26512. feature.*
  26513. FROM
  26514. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26515. WHERE cvterm.name = 'sequence_variant_causing_gene_fusion';
  26516. --- ************************************************
  26517. --- *** relation: chromosome_number_variation ***
  26518. --- *** relation type: VIEW ***
  26519. --- *** ***
  26520. --- *** A kind of chromosome variation where the ***
  26521. --- *** chromosome complement is not an exact m ***
  26522. --- *** ultiple of the haploid number. ***
  26523. --- ************************************************
  26524. ---
  26525. CREATE VIEW chromosome_number_variation AS
  26526. SELECT
  26527. feature_id AS chromosome_number_variation_id,
  26528. feature.*
  26529. FROM
  26530. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26531. 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';
  26532. --- ************************************************
  26533. --- *** relation: chromosome_structure_variation ***
  26534. --- *** relation type: VIEW ***
  26535. --- *** ***
  26536. --- ************************************************
  26537. ---
  26538. CREATE VIEW chromosome_structure_variation AS
  26539. SELECT
  26540. feature_id AS chromosome_structure_variation_id,
  26541. feature.*
  26542. FROM
  26543. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26544. WHERE cvterm.name = 'free_chromosome_arm' OR cvterm.name = 'transposition' OR cvterm.name = 'aneuploid_chromosome' OR cvterm.name = 'intrachromosomal_mutation' OR cvterm.name = 'interchromosomal_mutation' 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 = 'unorientated_intrachromosomal_transposition' OR cvterm.name = 'deficient_interchromosomal_transposition' OR cvterm.name = 'inverted_interchromosomal_transposition' OR cvterm.name = 'uninverted_interchromosomal_transposition' OR cvterm.name = 'unorientated_interchromosomal_transposition' OR cvterm.name = 'inversion_derived_aneuploid_chromosome' OR cvterm.name = 'chromosomal_deletion' OR cvterm.name = 'chromosomal_duplication' 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 = '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 = 'tandem_duplication' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unorientated_intrachromosomal_transposition' OR cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' 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_deletion' OR cvterm.name = 'chromosomal_inversion' OR cvterm.name = 'intrachromosomal_duplication' OR cvterm.name = 'ring_chromosome' OR cvterm.name = 'chromosome_fission' 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 = '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 = 'tandem_duplication' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unorientated_intrachromosomal_transposition' OR cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' 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 = 'deficient_interchromosomal_transposition' OR cvterm.name = 'inverted_interchromosomal_transposition' OR cvterm.name = 'uninverted_interchromosomal_transposition' OR cvterm.name = 'unorientated_interchromosomal_transposition' 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';
  26545. --- ************************************************
  26546. --- *** relation: sequence_variant_causes_exon_loss ***
  26547. --- *** relation type: VIEW ***
  26548. --- *** ***
  26549. --- *** A sequence variant affecting splicing an ***
  26550. --- *** d causes an exon loss. ***
  26551. --- ************************************************
  26552. ---
  26553. CREATE VIEW sequence_variant_causes_exon_loss AS
  26554. SELECT
  26555. feature_id AS sequence_variant_causes_exon_loss_id,
  26556. feature.*
  26557. FROM
  26558. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26559. WHERE cvterm.name = 'sequence_variant_causes_exon_loss';
  26560. --- ************************************************
  26561. --- *** relation: sequence_variant_causes_intron_gain ***
  26562. --- *** relation type: VIEW ***
  26563. --- *** ***
  26564. --- *** A sequence variant effect, causing an in ***
  26565. --- *** tron to be gained by the processed trans ***
  26566. --- *** cript; usually a result of a donor accep ***
  26567. --- *** tor mutation (SO:1000072). ***
  26568. --- ************************************************
  26569. ---
  26570. CREATE VIEW sequence_variant_causes_intron_gain AS
  26571. SELECT
  26572. feature_id AS sequence_variant_causes_intron_gain_id,
  26573. feature.*
  26574. FROM
  26575. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26576. WHERE cvterm.name = 'sequence_variant_causes_intron_gain';
  26577. --- ************************************************
  26578. --- *** relation: sequence_variant_causing_cryptic_splice_donor_activation ***
  26579. --- *** relation type: VIEW ***
  26580. --- *** ***
  26581. --- ************************************************
  26582. ---
  26583. CREATE VIEW sequence_variant_causing_cryptic_splice_donor_activation AS
  26584. SELECT
  26585. feature_id AS sequence_variant_causing_cryptic_splice_donor_activation_id,
  26586. feature.*
  26587. FROM
  26588. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26589. WHERE cvterm.name = 'sequence_variant_causing_cryptic_splice_donor_activation';
  26590. --- ************************************************
  26591. --- *** relation: sequence_variant_causing_cryptic_splice_acceptor_activation ***
  26592. --- *** relation type: VIEW ***
  26593. --- *** ***
  26594. --- ************************************************
  26595. ---
  26596. CREATE VIEW sequence_variant_causing_cryptic_splice_acceptor_activation AS
  26597. SELECT
  26598. feature_id AS sequence_variant_causing_cryptic_splice_acceptor_activation_id,
  26599. feature.*
  26600. FROM
  26601. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26602. WHERE cvterm.name = 'sequence_variant_causing_cryptic_splice_acceptor_activation';
  26603. --- ************************************************
  26604. --- *** relation: alternatively_spliced_transcript ***
  26605. --- *** relation type: VIEW ***
  26606. --- *** ***
  26607. --- *** A transcript that is alternatively splic ***
  26608. --- *** ed. ***
  26609. --- ************************************************
  26610. ---
  26611. CREATE VIEW alternatively_spliced_transcript AS
  26612. SELECT
  26613. feature_id AS alternatively_spliced_transcript_id,
  26614. feature.*
  26615. FROM
  26616. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26617. WHERE cvterm.name = 'alternatively_spliced_transcript';
  26618. --- ************************************************
  26619. --- *** relation: encodes_1_polypeptide ***
  26620. --- *** relation type: VIEW ***
  26621. --- *** ***
  26622. --- *** A gene that is alternately spliced, but ***
  26623. --- *** encodes only one polypeptide. ***
  26624. --- ************************************************
  26625. ---
  26626. CREATE VIEW encodes_1_polypeptide AS
  26627. SELECT
  26628. feature_id AS encodes_1_polypeptide_id,
  26629. feature.*
  26630. FROM
  26631. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26632. WHERE cvterm.name = 'encodes_1_polypeptide';
  26633. --- ************************************************
  26634. --- *** relation: encodes_greater_than_1_polypeptide ***
  26635. --- *** relation type: VIEW ***
  26636. --- *** ***
  26637. --- *** A gene that is alternately spliced, and ***
  26638. --- *** encodes more than one polypeptide. ***
  26639. --- ************************************************
  26640. ---
  26641. CREATE VIEW encodes_greater_than_1_polypeptide AS
  26642. SELECT
  26643. feature_id AS encodes_greater_than_1_polypeptide_id,
  26644. feature.*
  26645. FROM
  26646. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26647. 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';
  26648. --- ************************************************
  26649. --- *** relation: encodes_different_polypeptides_different_stop ***
  26650. --- *** relation type: VIEW ***
  26651. --- *** ***
  26652. --- *** A gene that is alternately spliced, and ***
  26653. --- *** encodes more than one polypeptide, that ***
  26654. --- *** have overlapping peptide sequences, but ***
  26655. --- *** use different stop codons. ***
  26656. --- ************************************************
  26657. ---
  26658. CREATE VIEW encodes_different_polypeptides_different_stop AS
  26659. SELECT
  26660. feature_id AS encodes_different_polypeptides_different_stop_id,
  26661. feature.*
  26662. FROM
  26663. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26664. WHERE cvterm.name = 'encodes_different_polypeptides_different_stop';
  26665. --- ************************************************
  26666. --- *** relation: encodes_overlapping_peptides_different_start ***
  26667. --- *** relation type: VIEW ***
  26668. --- *** ***
  26669. --- *** A gene that is alternately spliced, and ***
  26670. --- *** encodes more than one polypeptide, that ***
  26671. --- *** have overlapping peptide sequences, but ***
  26672. --- *** use different start codons. ***
  26673. --- ************************************************
  26674. ---
  26675. CREATE VIEW encodes_overlapping_peptides_different_start AS
  26676. SELECT
  26677. feature_id AS encodes_overlapping_peptides_different_start_id,
  26678. feature.*
  26679. FROM
  26680. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26681. WHERE cvterm.name = 'encodes_overlapping_peptides_different_start';
  26682. --- ************************************************
  26683. --- *** relation: encodes_disjoint_polypeptides ***
  26684. --- *** relation type: VIEW ***
  26685. --- *** ***
  26686. --- *** A gene that is alternately spliced, and ***
  26687. --- *** encodes more than one polypeptide, that ***
  26688. --- *** do not have overlapping peptide sequence ***
  26689. --- *** s. ***
  26690. --- ************************************************
  26691. ---
  26692. CREATE VIEW encodes_disjoint_polypeptides AS
  26693. SELECT
  26694. feature_id AS encodes_disjoint_polypeptides_id,
  26695. feature.*
  26696. FROM
  26697. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26698. WHERE cvterm.name = 'encodes_disjoint_polypeptides';
  26699. --- ************************************************
  26700. --- *** relation: encodes_overlapping_polypeptides_different_start_and_stop ***
  26701. --- *** relation type: VIEW ***
  26702. --- *** ***
  26703. --- *** A gene that is alternately spliced, and ***
  26704. --- *** encodes more than one polypeptide, that ***
  26705. --- *** have overlapping peptide sequences, but ***
  26706. --- *** use different start and stop codons. ***
  26707. --- ************************************************
  26708. ---
  26709. CREATE VIEW encodes_overlapping_polypeptides_different_start_and_stop AS
  26710. SELECT
  26711. feature_id AS encodes_overlapping_polypeptides_different_start_and_stop_id,
  26712. feature.*
  26713. FROM
  26714. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26715. WHERE cvterm.name = 'encodes_overlapping_polypeptides_different_start_and_stop';
  26716. --- ************************************************
  26717. --- *** relation: encodes_overlapping_peptides ***
  26718. --- *** relation type: VIEW ***
  26719. --- *** ***
  26720. --- *** A gene that is alternately spliced, and ***
  26721. --- *** encodes more than one polypeptide, that ***
  26722. --- *** have overlapping peptide sequences. ***
  26723. --- ************************************************
  26724. ---
  26725. CREATE VIEW encodes_overlapping_peptides AS
  26726. SELECT
  26727. feature_id AS encodes_overlapping_peptides_id,
  26728. feature.*
  26729. FROM
  26730. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26731. 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';
  26732. --- ************************************************
  26733. --- *** relation: cryptogene ***
  26734. --- *** relation type: VIEW ***
  26735. --- *** ***
  26736. --- *** A maxicircle gene so extensively edited ***
  26737. --- *** that it cannot be matched to its edited ***
  26738. --- *** mRNA sequence. ***
  26739. --- ************************************************
  26740. ---
  26741. CREATE VIEW cryptogene AS
  26742. SELECT
  26743. feature_id AS cryptogene_id,
  26744. feature.*
  26745. FROM
  26746. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26747. WHERE cvterm.name = 'cryptogene';
  26748. --- ************************************************
  26749. --- *** relation: dicistronic_primary_transcript ***
  26750. --- *** relation type: VIEW ***
  26751. --- *** ***
  26752. --- *** A primary transcript that has the qualit ***
  26753. --- *** y dicistronic. ***
  26754. --- ************************************************
  26755. ---
  26756. CREATE VIEW dicistronic_primary_transcript AS
  26757. SELECT
  26758. feature_id AS dicistronic_primary_transcript_id,
  26759. feature.*
  26760. FROM
  26761. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26762. WHERE cvterm.name = 'dicistronic_primary_transcript';
  26763. --- ************************************************
  26764. --- *** relation: member_of_regulon ***
  26765. --- *** relation type: VIEW ***
  26766. --- *** ***
  26767. --- ************************************************
  26768. ---
  26769. CREATE VIEW member_of_regulon AS
  26770. SELECT
  26771. feature_id AS member_of_regulon_id,
  26772. feature.*
  26773. FROM
  26774. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26775. WHERE cvterm.name = 'member_of_regulon';
  26776. --- ************************************************
  26777. --- *** relation: cds_independently_known ***
  26778. --- *** relation type: VIEW ***
  26779. --- *** ***
  26780. --- *** A CDS with the evidence status of being ***
  26781. --- *** independently known. ***
  26782. --- ************************************************
  26783. ---
  26784. CREATE VIEW cds_independently_known AS
  26785. SELECT
  26786. feature_id AS cds_independently_known_id,
  26787. feature.*
  26788. FROM
  26789. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26790. WHERE cvterm.name = 'CDS_independently_known';
  26791. --- ************************************************
  26792. --- *** relation: orphan_cds ***
  26793. --- *** relation type: VIEW ***
  26794. --- *** ***
  26795. --- *** A CDS whose predicted amino acid sequenc ***
  26796. --- *** e is unsupported by any experimental evi ***
  26797. --- *** dence or by any match with any other kno ***
  26798. --- *** wn sequence. ***
  26799. --- ************************************************
  26800. ---
  26801. CREATE VIEW orphan_cds AS
  26802. SELECT
  26803. feature_id AS orphan_cds_id,
  26804. feature.*
  26805. FROM
  26806. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26807. WHERE cvterm.name = 'orphan_CDS';
  26808. --- ************************************************
  26809. --- *** relation: cds_supported_by_domain_match_data ***
  26810. --- *** relation type: VIEW ***
  26811. --- *** ***
  26812. --- *** A CDS that is supported by domain simila ***
  26813. --- *** rity. ***
  26814. --- ************************************************
  26815. ---
  26816. CREATE VIEW cds_supported_by_domain_match_data AS
  26817. SELECT
  26818. feature_id AS cds_supported_by_domain_match_data_id,
  26819. feature.*
  26820. FROM
  26821. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26822. WHERE cvterm.name = 'CDS_supported_by_domain_match_data';
  26823. --- ************************************************
  26824. --- *** relation: cds_supported_by_sequence_similarity_data ***
  26825. --- *** relation type: VIEW ***
  26826. --- *** ***
  26827. --- *** A CDS that is supported by sequence simi ***
  26828. --- *** larity data. ***
  26829. --- ************************************************
  26830. ---
  26831. CREATE VIEW cds_supported_by_sequence_similarity_data AS
  26832. SELECT
  26833. feature_id AS cds_supported_by_sequence_similarity_data_id,
  26834. feature.*
  26835. FROM
  26836. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26837. 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';
  26838. --- ************************************************
  26839. --- *** relation: cds_predicted ***
  26840. --- *** relation type: VIEW ***
  26841. --- *** ***
  26842. --- *** A CDS that is predicted. ***
  26843. --- ************************************************
  26844. ---
  26845. CREATE VIEW cds_predicted AS
  26846. SELECT
  26847. feature_id AS cds_predicted_id,
  26848. feature.*
  26849. FROM
  26850. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26851. 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';
  26852. --- ************************************************
  26853. --- *** relation: cds_supported_by_est_or_cdna_data ***
  26854. --- *** relation type: VIEW ***
  26855. --- *** ***
  26856. --- *** A CDS that is supported by similarity to ***
  26857. --- *** EST or cDNA data. ***
  26858. --- ************************************************
  26859. ---
  26860. CREATE VIEW cds_supported_by_est_or_cdna_data AS
  26861. SELECT
  26862. feature_id AS cds_supported_by_est_or_cdna_data_id,
  26863. feature.*
  26864. FROM
  26865. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26866. WHERE cvterm.name = 'CDS_supported_by_EST_or_cDNA_data';
  26867. --- ************************************************
  26868. --- *** relation: internal_shine_dalgarno_sequence ***
  26869. --- *** relation type: VIEW ***
  26870. --- *** ***
  26871. --- *** A Shine-Dalgarno sequence that stimulate ***
  26872. --- *** s recoding through interactions with the ***
  26873. --- *** anti-Shine-Dalgarno in the RNA of small ***
  26874. --- *** ribosomal subunits of translating ribos ***
  26875. --- *** omes. The signal is only operative in Ba ***
  26876. --- *** cteria. ***
  26877. --- ************************************************
  26878. ---
  26879. CREATE VIEW internal_shine_dalgarno_sequence AS
  26880. SELECT
  26881. feature_id AS internal_shine_dalgarno_sequence_id,
  26882. feature.*
  26883. FROM
  26884. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26885. WHERE cvterm.name = 'internal_Shine_Dalgarno_sequence';
  26886. --- ************************************************
  26887. --- *** relation: recoded_mrna ***
  26888. --- *** relation type: VIEW ***
  26889. --- *** ***
  26890. --- *** The sequence of a mature mRNA transcript ***
  26891. --- *** , modified before translation or during ***
  26892. --- *** translation, usually by special cis-acti ***
  26893. --- *** ng signals. ***
  26894. --- ************************************************
  26895. ---
  26896. CREATE VIEW recoded_mrna AS
  26897. SELECT
  26898. feature_id AS recoded_mrna_id,
  26899. feature.*
  26900. FROM
  26901. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26902. WHERE cvterm.name = 'mRNA_recoded_by_translational_bypass' OR cvterm.name = 'mRNA_recoded_by_codon_redefinition' OR cvterm.name = 'recoded_mRNA';
  26903. --- ************************************************
  26904. --- *** relation: minus_1_translationally_frameshifted ***
  26905. --- *** relation type: VIEW ***
  26906. --- *** ***
  26907. --- *** An attribute describing a translational ***
  26908. --- *** frameshift of -1. ***
  26909. --- ************************************************
  26910. ---
  26911. CREATE VIEW minus_1_translationally_frameshifted AS
  26912. SELECT
  26913. feature_id AS minus_1_translationally_frameshifted_id,
  26914. feature.*
  26915. FROM
  26916. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26917. WHERE cvterm.name = 'minus_1_translationally_frameshifted';
  26918. --- ************************************************
  26919. --- *** relation: plus_1_translationally_frameshifted ***
  26920. --- *** relation type: VIEW ***
  26921. --- *** ***
  26922. --- *** An attribute describing a translational ***
  26923. --- *** frameshift of +1. ***
  26924. --- ************************************************
  26925. ---
  26926. CREATE VIEW plus_1_translationally_frameshifted AS
  26927. SELECT
  26928. feature_id AS plus_1_translationally_frameshifted_id,
  26929. feature.*
  26930. FROM
  26931. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26932. WHERE cvterm.name = 'plus_1_translationally_frameshifted';
  26933. --- ************************************************
  26934. --- *** relation: mrna_recoded_by_translational_bypass ***
  26935. --- *** relation type: VIEW ***
  26936. --- *** ***
  26937. --- *** A recoded_mRNA where translation was sus ***
  26938. --- *** pended at a particular codon and resumed ***
  26939. --- *** at a particular non-overlapping downstr ***
  26940. --- *** eam codon. ***
  26941. --- ************************************************
  26942. ---
  26943. CREATE VIEW mrna_recoded_by_translational_bypass AS
  26944. SELECT
  26945. feature_id AS mrna_recoded_by_translational_bypass_id,
  26946. feature.*
  26947. FROM
  26948. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26949. WHERE cvterm.name = 'mRNA_recoded_by_translational_bypass';
  26950. --- ************************************************
  26951. --- *** relation: mrna_recoded_by_codon_redefinition ***
  26952. --- *** relation type: VIEW ***
  26953. --- *** ***
  26954. --- *** A recoded_mRNA that was modified by an a ***
  26955. --- *** lteration of codon meaning. ***
  26956. --- ************************************************
  26957. ---
  26958. CREATE VIEW mrna_recoded_by_codon_redefinition AS
  26959. SELECT
  26960. feature_id AS mrna_recoded_by_codon_redefinition_id,
  26961. feature.*
  26962. FROM
  26963. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26964. WHERE cvterm.name = 'mRNA_recoded_by_codon_redefinition';
  26965. --- ************************************************
  26966. --- *** relation: recoding_stimulatory_region ***
  26967. --- *** relation type: VIEW ***
  26968. --- *** ***
  26969. --- *** A site in an mRNA sequence that stimulat ***
  26970. --- *** es the recoding of a region in the same ***
  26971. --- *** mRNA. ***
  26972. --- ************************************************
  26973. ---
  26974. CREATE VIEW recoding_stimulatory_region AS
  26975. SELECT
  26976. feature_id AS recoding_stimulatory_region_id,
  26977. feature.*
  26978. FROM
  26979. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26980. 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';
  26981. --- ************************************************
  26982. --- *** relation: four_bp_start_codon ***
  26983. --- *** relation type: VIEW ***
  26984. --- *** ***
  26985. --- *** A non-canonical start codon with 4 base ***
  26986. --- *** pairs. ***
  26987. --- ************************************************
  26988. ---
  26989. CREATE VIEW four_bp_start_codon AS
  26990. SELECT
  26991. feature_id AS four_bp_start_codon_id,
  26992. feature.*
  26993. FROM
  26994. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26995. WHERE cvterm.name = 'four_bp_start_codon';
  26996. --- ************************************************
  26997. --- *** relation: archaeal_intron ***
  26998. --- *** relation type: VIEW ***
  26999. --- *** ***
  27000. --- *** An intron characteristic of Archaeal tRN ***
  27001. --- *** A and rRNA genes, where intron transcrip ***
  27002. --- *** t generates a bulge-helix-bulge motif th ***
  27003. --- *** at is recognised by a splicing endoribon ***
  27004. --- *** uclease. ***
  27005. --- ************************************************
  27006. ---
  27007. CREATE VIEW archaeal_intron AS
  27008. SELECT
  27009. feature_id AS archaeal_intron_id,
  27010. feature.*
  27011. FROM
  27012. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27013. WHERE cvterm.name = 'archaeal_intron';
  27014. --- ************************************************
  27015. --- *** relation: trna_intron ***
  27016. --- *** relation type: VIEW ***
  27017. --- *** ***
  27018. --- *** An intron found in tRNA that is spliced ***
  27019. --- *** via endonucleolytic cleavage and ligatio ***
  27020. --- *** n rather than transesterification. ***
  27021. --- ************************************************
  27022. ---
  27023. CREATE VIEW trna_intron AS
  27024. SELECT
  27025. feature_id AS trna_intron_id,
  27026. feature.*
  27027. FROM
  27028. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27029. WHERE cvterm.name = 'tRNA_intron';
  27030. --- ************************************************
  27031. --- *** relation: ctg_start_codon ***
  27032. --- *** relation type: VIEW ***
  27033. --- *** ***
  27034. --- *** A non-canonical start codon of sequence ***
  27035. --- *** CTG. ***
  27036. --- ************************************************
  27037. ---
  27038. CREATE VIEW ctg_start_codon AS
  27039. SELECT
  27040. feature_id AS ctg_start_codon_id,
  27041. feature.*
  27042. FROM
  27043. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27044. WHERE cvterm.name = 'CTG_start_codon';
  27045. --- ************************************************
  27046. --- *** relation: secis_element ***
  27047. --- *** relation type: VIEW ***
  27048. --- *** ***
  27049. --- *** The incorporation of selenocysteine into ***
  27050. --- *** a protein sequence is directed by an in ***
  27051. --- *** -frame UGA codon (usually a stop codon) ***
  27052. --- *** within the coding region of the mRNA. Se ***
  27053. --- *** lenoprotein mRNAs contain a conserved se ***
  27054. --- *** condary structure in the 3' UTR that is ***
  27055. --- *** required for the distinction of UGA stop ***
  27056. --- *** from UGA selenocysteine. The selenocyst ***
  27057. --- *** eine insertion sequence (SECIS) is aroun ***
  27058. --- *** d 60 nt in length and adopts a hairpin s ***
  27059. --- *** tructure which is sufficiently well-defi ***
  27060. --- *** ned and conserved to act as a computatio ***
  27061. --- *** nal screen for selenoprotein genes. ***
  27062. --- ************************************************
  27063. ---
  27064. CREATE VIEW secis_element AS
  27065. SELECT
  27066. feature_id AS secis_element_id,
  27067. feature.*
  27068. FROM
  27069. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27070. WHERE cvterm.name = 'SECIS_element';
  27071. --- ************************************************
  27072. --- *** relation: retron ***
  27073. --- *** relation type: VIEW ***
  27074. --- *** ***
  27075. --- *** Sequence coding for a short, single-stra ***
  27076. --- *** nded, DNA sequence via a retrotransposed ***
  27077. --- *** RNA intermediate; characteristic of som ***
  27078. --- *** e microbial genomes. ***
  27079. --- ************************************************
  27080. ---
  27081. CREATE VIEW retron AS
  27082. SELECT
  27083. feature_id AS retron_id,
  27084. feature.*
  27085. FROM
  27086. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27087. WHERE cvterm.name = 'retron';
  27088. --- ************************************************
  27089. --- *** relation: three_prime_recoding_site ***
  27090. --- *** relation type: VIEW ***
  27091. --- *** ***
  27092. --- *** The recoding stimulatory signal located ***
  27093. --- *** downstream of the recoding site. ***
  27094. --- ************************************************
  27095. ---
  27096. CREATE VIEW three_prime_recoding_site AS
  27097. SELECT
  27098. feature_id AS three_prime_recoding_site_id,
  27099. feature.*
  27100. FROM
  27101. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27102. 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';
  27103. --- ************************************************
  27104. --- *** relation: three_prime_stem_loop_structure ***
  27105. --- *** relation type: VIEW ***
  27106. --- *** ***
  27107. --- *** A recoding stimulatory region, the stem- ***
  27108. --- *** loop secondary structural element is dow ***
  27109. --- *** nstream of the redefined region. ***
  27110. --- ************************************************
  27111. ---
  27112. CREATE VIEW three_prime_stem_loop_structure AS
  27113. SELECT
  27114. feature_id AS three_prime_stem_loop_structure_id,
  27115. feature.*
  27116. FROM
  27117. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27118. WHERE cvterm.name = 'three_prime_stem_loop_structure';
  27119. --- ************************************************
  27120. --- *** relation: five_prime_recoding_site ***
  27121. --- *** relation type: VIEW ***
  27122. --- *** ***
  27123. --- *** The recoding stimulatory signal located ***
  27124. --- *** upstream of the recoding site. ***
  27125. --- ************************************************
  27126. ---
  27127. CREATE VIEW five_prime_recoding_site AS
  27128. SELECT
  27129. feature_id AS five_prime_recoding_site_id,
  27130. feature.*
  27131. FROM
  27132. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27133. WHERE cvterm.name = 'five_prime_recoding_site';
  27134. --- ************************************************
  27135. --- *** relation: flanking_three_prime_quadruplet_recoding_signal ***
  27136. --- *** relation type: VIEW ***
  27137. --- *** ***
  27138. --- *** Four base pair sequence immediately down ***
  27139. --- *** stream of the redefined region. The rede ***
  27140. --- *** fined region is a frameshift site. The q ***
  27141. --- *** uadruplet is 2 overlapping codons. ***
  27142. --- ************************************************
  27143. ---
  27144. CREATE VIEW flanking_three_prime_quadruplet_recoding_signal AS
  27145. SELECT
  27146. feature_id AS flanking_three_prime_quadruplet_recoding_signal_id,
  27147. feature.*
  27148. FROM
  27149. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27150. WHERE cvterm.name = 'flanking_three_prime_quadruplet_recoding_signal';
  27151. --- ************************************************
  27152. --- *** relation: uag_stop_codon_signal ***
  27153. --- *** relation type: VIEW ***
  27154. --- *** ***
  27155. --- *** A stop codon signal for a UAG stop codon ***
  27156. --- *** redefinition. ***
  27157. --- ************************************************
  27158. ---
  27159. CREATE VIEW uag_stop_codon_signal AS
  27160. SELECT
  27161. feature_id AS uag_stop_codon_signal_id,
  27162. feature.*
  27163. FROM
  27164. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27165. WHERE cvterm.name = 'UAG_stop_codon_signal';
  27166. --- ************************************************
  27167. --- *** relation: uaa_stop_codon_signal ***
  27168. --- *** relation type: VIEW ***
  27169. --- *** ***
  27170. --- *** A stop codon signal for a UAA stop codon ***
  27171. --- *** redefinition. ***
  27172. --- ************************************************
  27173. ---
  27174. CREATE VIEW uaa_stop_codon_signal AS
  27175. SELECT
  27176. feature_id AS uaa_stop_codon_signal_id,
  27177. feature.*
  27178. FROM
  27179. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27180. WHERE cvterm.name = 'UAA_stop_codon_signal';
  27181. --- ************************************************
  27182. --- *** relation: regulon ***
  27183. --- *** relation type: VIEW ***
  27184. --- *** ***
  27185. --- *** A group of genes, whether linked as a cl ***
  27186. --- *** uster or not, that respond to a common r ***
  27187. --- *** egulatory signal. ***
  27188. --- ************************************************
  27189. ---
  27190. CREATE VIEW regulon AS
  27191. SELECT
  27192. feature_id AS regulon_id,
  27193. feature.*
  27194. FROM
  27195. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27196. WHERE cvterm.name = 'regulon';
  27197. --- ************************************************
  27198. --- *** relation: uga_stop_codon_signal ***
  27199. --- *** relation type: VIEW ***
  27200. --- *** ***
  27201. --- *** A stop codon signal for a UGA stop codon ***
  27202. --- *** redefinition. ***
  27203. --- ************************************************
  27204. ---
  27205. CREATE VIEW uga_stop_codon_signal AS
  27206. SELECT
  27207. feature_id AS uga_stop_codon_signal_id,
  27208. feature.*
  27209. FROM
  27210. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27211. WHERE cvterm.name = 'UGA_stop_codon_signal';
  27212. --- ************************************************
  27213. --- *** relation: three_prime_repeat_recoding_signal ***
  27214. --- *** relation type: VIEW ***
  27215. --- *** ***
  27216. --- *** A recoding stimulatory signal, downstrea ***
  27217. --- *** m sequence important for recoding that c ***
  27218. --- *** ontains repetitive elements. ***
  27219. --- ************************************************
  27220. ---
  27221. CREATE VIEW three_prime_repeat_recoding_signal AS
  27222. SELECT
  27223. feature_id AS three_prime_repeat_recoding_signal_id,
  27224. feature.*
  27225. FROM
  27226. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27227. WHERE cvterm.name = 'three_prime_repeat_recoding_signal';
  27228. --- ************************************************
  27229. --- *** relation: distant_three_prime_recoding_signal ***
  27230. --- *** relation type: VIEW ***
  27231. --- *** ***
  27232. --- *** A recoding signal that is found many hun ***
  27233. --- *** dreds of nucleotides 3' of a redefined s ***
  27234. --- *** top codon. ***
  27235. --- ************************************************
  27236. ---
  27237. CREATE VIEW distant_three_prime_recoding_signal AS
  27238. SELECT
  27239. feature_id AS distant_three_prime_recoding_signal_id,
  27240. feature.*
  27241. FROM
  27242. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27243. WHERE cvterm.name = 'distant_three_prime_recoding_signal';
  27244. --- ************************************************
  27245. --- *** relation: stop_codon_signal ***
  27246. --- *** relation type: VIEW ***
  27247. --- *** ***
  27248. --- *** A recoding stimulatory signal that is a ***
  27249. --- *** stop codon and has effect on efficiency ***
  27250. --- *** of recoding. ***
  27251. --- ************************************************
  27252. ---
  27253. CREATE VIEW stop_codon_signal AS
  27254. SELECT
  27255. feature_id AS stop_codon_signal_id,
  27256. feature.*
  27257. FROM
  27258. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27259. 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';
  27260. --- ************************************************
  27261. --- *** relation: databank_entry ***
  27262. --- *** relation type: VIEW ***
  27263. --- *** ***
  27264. --- *** The sequence referred to by an entry in ***
  27265. --- *** a databank such as Genbank or SwissProt. ***
  27266. --- ************************************************
  27267. ---
  27268. CREATE VIEW databank_entry AS
  27269. SELECT
  27270. feature_id AS databank_entry_id,
  27271. feature.*
  27272. FROM
  27273. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27274. WHERE cvterm.name = 'databank_entry';
  27275. --- ************************************************
  27276. --- *** relation: gene_segment ***
  27277. --- *** relation type: VIEW ***
  27278. --- *** ***
  27279. --- *** A gene component region which acts as a ***
  27280. --- *** recombinational unit of a gene whose fun ***
  27281. --- *** ctional form is generated through somati ***
  27282. --- *** c recombination. ***
  27283. --- ************************************************
  27284. ---
  27285. CREATE VIEW gene_segment AS
  27286. SELECT
  27287. feature_id AS gene_segment_id,
  27288. feature.*
  27289. FROM
  27290. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27291. WHERE cvterm.name = 'gene_segment';
  27292. 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));
  27293. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('helitron','helitron');
  27294. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cleaved_initiator_methionine','cleaved_initiator_methionine');
  27295. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epoxyqueuosine','epoxyqueuosine');
  27296. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u4atac_snrna','u4atac_snrna');
  27297. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('kinetoplast','kinetoplast');
  27298. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('shadow_enhancer','shadow_enhancer');
  27299. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered','engineered');
  27300. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_aminomethyl_seven_deazaguanosine','seven_aminomethyl_seven_deazaguanosine');
  27301. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('low_complexity','low_complexity');
  27302. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('est_match','est_match');
  27303. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_nonamer','v_nonamer');
  27304. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_21s','rrna_21s');
  27305. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_j_c_cluster','d_dj_j_c_cluster');
  27306. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethyluridine','five_carboxymethyluridine');
  27307. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bound_by_factor','bound_by_factor');
  27308. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_methyladenosine','two_methylthio_n6_methyladenosine');
  27309. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dinucleotide_repeat_microsatellite_feature','dinucleotide_repeat_microsatellite_feature');
  27310. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_spliced_mrna','trans_spliced_mrna');
  27311. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_to_c_transversion','g_to_c_transversion');
  27312. 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');
  27313. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genotype','genotype');
  27314. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cloned_region','cloned_region');
  27315. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_coding_piece','tmrna_coding_piece');
  27316. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_6s','rna_6s');
  27317. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minicircle','minicircle');
  27318. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('grna_encoding','grna_encoding');
  27319. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('endonuclease_spliced_intron','endonuclease_spliced_intron');
  27320. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertional_duplication','insertional_duplication');
  27321. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('databank_entry','databank_entry');
  27322. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glycine','glycine');
  27323. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_cluster','v_cluster');
  27324. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nickel_ion_contact_site','polypeptide_nickel_ion_contact_site');
  27325. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_single_stranded_rna_chromosome','circular_single_stranded_rna_chromosome');
  27326. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wc_base_pair','wc_base_pair');
  27327. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pcr_product','pcr_product');
  27328. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_three_amino_three_carboxypropyl_uridine','three_three_amino_three_carboxypropyl_uridine');
  27329. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('site_specific_recombination_target_region','site_specific_recombination_target_region');
  27330. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_polycistronic_transcript','gene_with_polycistronic_transcript');
  27331. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue','rescue');
  27332. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclease_hypersensitive_site','nuclease_hypersensitive_site');
  27333. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_loop','mirna_loop');
  27334. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double_stranded_cdna','double_stranded_cdna');
  27335. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supported_by_domain_match','supported_by_domain_match');
  27336. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methylpseudouridine','one_methylpseudouridine');
  27337. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n_terminal_region','n_terminal_region');
  27338. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimental_result_region','experimental_result_region');
  27339. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methionine_trna_primary_transcript','methionine_trna_primary_transcript');
  27340. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('utr','utr');
  27341. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_terminal_residue','non_terminal_residue');
  27342. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('member_of_regulon','member_of_regulon');
  27343. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('threonine_trna_primary_transcript','thr_trna_primary_transcript');
  27344. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_supported_by_sequence_similarity_data','cds_supported_by_sequence_similarity_data');
  27345. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_structural_region','polypeptide_structural_region');
  27346. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_gene','trna_gene');
  27347. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge_loop_six','beta_bulge_loop_six');
  27348. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_tungsten_ion_contact_site','polypeptide_tungsten_ion_contact_site');
  27349. 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');
  27350. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nest_right_left_motif','polypeptide_nest_right_left_motif');
  27351. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_location','sequence_location');
  27352. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_c_cluster','d_dj_c_cluster');
  27353. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_spliced_transcript','trans_spliced_transcript');
  27354. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('y_rna','y_rna');
  27355. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucoplast_gene','leucoplast_gene');
  27356. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splicing_regulatory_region','splicing_regulatory_region');
  27357. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('branch_site','branch_site');
  27358. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge_loop_five','beta_bulge_loop_five');
  27359. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_breakpoint','chromosome_breakpoint');
  27360. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_uncertainty','sequence_uncertainty');
  27361. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_methyl_n6_threonylcarbamoyladenosine','n6_methyl_n6_threonylcarbamoyladenosine');
  27362. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_mrna_with_frameshift','gene_with_mrna_with_frameshift');
  27363. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('compositionally_biased_region_of_peptide','compositionally_biased_region_of_peptide');
  27364. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_j_c_cluster','vj_j_c_cluster');
  27365. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_splice_acceptor','sequence_variant_affecting_splice_acceptor');
  27366. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pirna','pirna');
  27367. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reverse_hoogsteen_base_pair','reverse_hoogsteen_base_pair');
  27368. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tryptophanyl_trna','tryptophanyl_trna');
  27369. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_primed_cdna_clone','polya_primed_cdna_clone');
  27370. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucoplast_chromosome','leucoplast_chromosome');
  27371. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('status','status');
  27372. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ltr_retrotransposon','ltr_retrotransposon');
  27373. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnase_p_rna','rnase_p_rna');
  27374. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conjugative_transposon','conjugative_transposon');
  27375. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linkage_group','linkage_group');
  27376. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_trans_spliced_transcript','gene_with_trans_spliced_transcript');
  27377. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptide_coil','peptide_coil');
  27378. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrrolysine_trna_primary_transcript','pyrrolysine_trna_primary_transcript');
  27379. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_c_cluster','v_vj_c_cluster');
  27380. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phage_sequence','phage_sequence');
  27381. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded','recoded');
  27382. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposon_fragment','transposon_fragment');
  27383. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_c_cluster','vj_c_cluster');
  27384. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('editing_domain','editing_domain');
  27385. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylaminomethyluridine','five_methylaminomethyluridine');
  27386. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_insertion','nucleotide_insertion');
  27387. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mutaton_causing_inframe_polypeptide_c_terminal_elongation','mutaton_causing_inframe_polypeptide_c_terminal_elongation');
  27388. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_ltr_retrotransposon_polymeric_tract','non_ltr_retrotransposon_polymeric_tract');
  27389. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transversion','transversion');
  27390. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tryptophan','tryptophan');
  27391. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recursive_splice_site','recursive_splice_site');
  27392. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insulator_binding_site','insulator_binding_site');
  27393. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proline_trna_primary_transcript','proline_trna_primary_transcript');
  27394. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_fragment','repeat_fragment');
  27395. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('blocked_reading_frame','blocked_reading_frame');
  27396. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_cleavage_snorna_primary_transcript','rrna_cleavage_snorna_primary_transcript');
  27397. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_isopentenyladenosine','n6_isopentenyladenosine');
  27398. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_arginine','modified_l_arginine');
  27399. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_conserved_motif','polypeptide_conserved_motif');
  27400. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t3_rna_polymerase_promoter','t3_rna_polymerase_promoter');
  27401. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_bipartite_duplication','inversion_derived_bipartite_duplication');
  27402. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_acceptor_site','trans_splice_acceptor_site');
  27403. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_ribosyladenosine_phosphate','two_prime_o_riboA_phosphate');
  27404. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rre_rna','rre_rna');
  27405. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pac_end','pac_end');
  27406. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('extramembrane_polypeptide_region','extramembrane_polypeptide_region');
  27407. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intein','intein');
  27408. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('twintron','twintron');
  27409. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethylaminomethyl_two_prime_o_methyluridine','five_carboxymethylaminomethyl_two_prime_o_methyluridine');
  27410. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna_primary_transcript','scrna_primary_transcript');
  27411. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_cobalt_ion_contact_site','polypeptide_cobalt_ion_contact_site');
  27412. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_encoding','tmrna_encoding');
  27413. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('flanked','flanked');
  27414. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ctg_start_codon','ctg_start_codon');
  27415. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion','inversion');
  27416. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('eukaryotic_terminator','eukaryotic_terminator');
  27417. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tyrosine_trna_primary_transcript','tyrosine_trna_primary_transcript');
  27418. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_region_of_exon','coding_region_of_exon');
  27419. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spliceosomal_intron_region','spliceosomal_intron_region');
  27420. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frt_flanked','frt_flanked');
  27421. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cloned_cdna_insert','cloned_cdna_insert');
  27422. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_c_cluster','v_vdj_c_cluster');
  27423. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translationally_regulated','translationally_regulated');
  27424. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variation_affecting_reading_frame','sequence_variation_affecting_reading_frame');
  27425. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_minus_1_frameshift','sequence_variant_causing_minus_1_frameshift');
  27426. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histidyl_trna','histidyl_trna');
  27427. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sonicate_fragment','sonicate_fragment');
  27428. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_recoded_mrna','gene_with_recoded_mrna');
  27429. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methyluridine','two_prime_o_methyluridine');
  27430. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cosmid','cosmid');
  27431. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_rna_interference','silenced_by_rna_interference');
  27432. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna','snorna');
  27433. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mature_transcript','mature_transcript');
  27434. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudouridylation_guide_snorna','pseudouridylation_guide_snorna');
  27435. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_gene','c_gene');
  27436. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('floxed_gene','floxed_gene');
  27437. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spot_42_rna','spot_42_rna');
  27438. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cdna_clone','cdna_clone');
  27439. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_ltr','three_prime_ltr');
  27440. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_ii_intron','group_ii_intron');
  27441. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pna_oligo','pna_oligo');
  27442. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion_sequence','insertion_sequence');
  27443. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('junction','junction');
  27444. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paralogous','paralogous');
  27445. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tna','tna');
  27446. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_isopentenylaminomethyl_two_thiouridine','five_isopentenylaminomethyl_two_thiouridine');
  27447. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_1_frameshift','minus_1_frameshift');
  27448. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_gene_structure','sequence_variant_affecting_gene_structure');
  27449. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_canonical_three_prime_splice_site','non_canonical_three_prime_splice_site');
  27450. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_rrna','pseudogenic_rrna');
  27451. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_threonine_turn','serine_threonine_turn');
  27452. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_gene','j_gene');
  27453. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna_primary_transcript','strna_primary_transcript');
  27454. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_eliminated_sequence','internal_eliminated_sequence');
  27455. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allelically_excluded_gene','allelically_excluded_gene');
  27456. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('qtl','qtl');
  27457. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_est','three_prime_est');
  27458. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reverse','reverse');
  27459. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_encoding','mirna_encoding');
  27460. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_n2_2_prime_o_trimethylguanosine','n2_n2_2_prime_o_trimethylguanosine');
  27461. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_alternate_transcription_start_sites','encodes_alternate_transcription_start_sites');
  27462. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_array','gene_array');
  27463. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tetranucleotide_repeat_microsatellite_feature','tetranuc_repeat_microsat');
  27464. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_aminomethyl_two_thiouridine','five_aminomethyl_two_thiouridine');
  27465. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic_primary_transcript','monocistronic_primary_transcript');
  27466. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_cryptic_splice_acceptor_activation','sequence_variant_causing_cryptic_splice_acceptor_activation');
  27467. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mobile_genetic_element','mobile_genetic_element');
  27468. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_ligand_contact','polypeptide_ligand_contact');
  27469. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('biomaterial_region','biomaterial_region');
  27470. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element_flanking_region','transposable_element_flanking_region');
  27471. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('symmetric_rna_internal_loop','symmetric_rna_internal_loop');
  27472. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_plus_1_frameshift','mrna_with_plus_1_frameshift');
  27473. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_regulated','transcriptionally_regulated');
  27474. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_intron','five_prime_intron');
  27475. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vertebrate_immune_system_gene_recombination_feature','vertebrate_immune_system_gene_recombination_feature');
  27476. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxyhydroxymethyl_uridine_methyl_ester','five_carboxyhydroxymethyl_uridine_methyl_ester');
  27477. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proplastid_gene','proplastid_gene');
  27478. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_trna_primary_transcript','serine_trna_primary_transcript');
  27479. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attp_site','attp_site');
  27480. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antisense','antisense');
  27481. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminal_inverted_repeat_element','terminal_inverted_repeat_element');
  27482. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coiled_coil','coiled_coil');
  27483. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_cluster','v_vdj_cluster');
  27484. 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');
  27485. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_coding_primary_transcript','protein_coding_primary_transcript');
  27486. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mite','mite');
  27487. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion','insertion');
  27488. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('secis_element','secis_element');
  27489. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maxicircle','maxicircle');
  27490. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tss','tss');
  27491. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cysteine','cysteine');
  27492. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribothymidine','ribothymidine');
  27493. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_adjacent_residues','non_adjacent_residues');
  27494. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_ribosome_entry_site','internal_ribosome_entry_site');
  27495. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('outron','outron');
  27496. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_repeat','polypeptide_repeat');
  27497. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone_insert_start','clone_insert_start');
  27498. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attr_site','attr_site');
  27499. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv3_motif','dmv3_motif');
  27500. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('capped_mrna','capped_mrna');
  27501. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_non_synonymous_codon_change_in_transcript','seq_variant_causing_non_synonymous_codon_change_in_trans');
  27502. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_rearrangement_feature','sequence_rearrangement_feature');
  27503. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('apicoplast_chromosome','apicoplast_chromosome');
  27504. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_a_two','beta_turn_type_six_a_two');
  27505. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated','invalidated');
  27506. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_junction','polya_junction');
  27507. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_partial_loss_of_function_of_polypeptide','seq_variant_causing_part_loss_of_function_of_polypeptide');
  27508. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('valine','valine');
  27509. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translationally_regulated_gene','translationally_regulated_gene');
  27510. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('promoter_targeting_sequence','promoter_targeting_sequence');
  27511. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polinton','polinton');
  27512. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_tag','engineered_tag');
  27513. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylcytidine','five_methylcytidine');
  27514. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudouridine','pseudouridine');
  27515. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('positively_autoregulated','positively_autoregulated');
  27516. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('amplification_origin','amplification_origin');
  27517. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unoriented_insertional_duplication','unorient_insert_dup');
  27518. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('extrachromosomal_mobile_genetic_element','extrachromosomal_mobile_genetic_element');
  27519. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_constitutive','transcriptionally_constitutive');
  27520. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_polypeptide_fusion','sequence_variant_causing_polypeptide_fusion');
  27521. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('utr_region','utr_region');
  27522. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tyrosine','tyrosine');
  27523. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna','mirna');
  27524. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inr1_motif','inr1_motif');
  27525. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_acetyladenosine','n6_acetyladenosine');
  27526. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cis_splice_site','cis_splice_site');
  27527. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_right_handed_type_two','beta_turn_right_handed_type_two');
  27528. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('floxed','floxed');
  27529. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_terminal_region','c_terminal_region');
  27530. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_leucine','modified_l_leucine');
  27531. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variation_affecting_complex_change_in_transcript','sequence_variation_affecting_complex_change_in_transcript');
  27532. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_ltr_component','five_prime_ltr_component');
  27533. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_c_cluster','vdj_c_cluster');
  27534. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptional_cis_regulatory_region','transcriptional_cis_regulatory_region');
  27535. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_part','chromosome_part');
  27536. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion_site','insertion_site');
  27537. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phenylalanyl_trna','phenylalanyl_trna');
  27538. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('overlapping_est_set','overlapping_est_set');
  27539. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gc_rich_promoter_region','gc_rich_promoter_region');
  27540. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_right_handed_type_two','asx_turn_right_handed_type_two');
  27541. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anticodon_loop','anticodon_loop');
  27542. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('partially_characterised_change_in_dna_sequence','partially_characterised_change_in_dna_sequence');
  27543. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv5_motif','dmv5_motif');
  27544. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl1_acceptor_site','sl1_acceptor_site');
  27545. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_region','cds_region');
  27546. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_j_c_cluster','v_dj_j_c_cluster');
  27547. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_insert','engineered_insert');
  27548. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_inverted_gene','recombinationally_inverted_gene');
  27549. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cassette_array_member','cassette_array_member');
  27550. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('microarray_oligo','microarray_oligo');
  27551. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u12_snrna','u12_snrna');
  27552. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supported_by_est_or_cdna','supported_by_est_or_cdna');
  27553. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_10_signal','minus_10_signal');
  27554. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone_insert_end','clone_insert_end');
  27555. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inr_motif','inr_motif');
  27556. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_inactive_ligand_binding_site','sequence_variant_causing_inactive_ligand_binding_site');
  27557. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_stem_loop_structure','three_prime_stem_loop_structure');
  27558. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_decreasing_level_of_translation_product','sequence_variant_decreasing_level_of_translation_product');
  27559. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rflp_fragment','rflp_fragment');
  27560. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phage_rna_polymerase_promoter','phage_rna_polymerase_promoter');
  27561. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrimidine_transition','pyrimidine_transition');
  27562. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrinsically_unstructured_polypeptide_region','intrinsically_unstructured_polypeptide_region');
  27563. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_2_prime_o_dimethylguanosine','n2_2_prime_o_dimethylguanosine');
  27564. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('archaeal_intron','archaeal_intron');
  27565. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lna','lna');
  27566. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_junction','exon_junction');
  27567. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t7_rna_polymerase_promoter','t7_rna_polymerase_promoter');
  27568. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_interchromosomal_transposition','invert_inter_transposition');
  27569. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('episome','episome');
  27570. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uninverted_insertional_duplication','uninvert_insert_dup');
  27571. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_difference','sequence_difference');
  27572. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_c_cluster','v_d_dj_c_cluster');
  27573. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_conflict','sequence_conflict');
  27574. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_gene_fusion','sequence_variant_causing_gene_fusion');
  27575. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tiling_path_clone','tiling_path_clone');
  27576. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_iii_intron','group_iii_intron');
  27577. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_glycine','modified_glycine');
  27578. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_alteration','sequence_alteration');
  27579. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polyploid','polyploid');
  27580. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_dna_modification','gene_silenced_by_dna_modification');
  27581. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_j_cluster','v_vj_j_cluster');
  27582. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isoleucine_trna_primary_transcript','isoleucine_trna_primary_transcript');
  27583. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_small_subunit_primary_transcript','rrna_small_subunit_primary_transcript');
  27584. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ltr_component','ltr_component');
  27585. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_2_framshift','plus_2_framshift');
  27586. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamic_acid_trna_primary_transcript','glutamic_acid_trna_primary_transcript');
  27587. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_rearranged_at_dna_level','gene_rearranged_at_dna_level');
  27588. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_transcript','edited_transcript');
  27589. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_partial_processing','invalidated_by_partial_processing');
  27590. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequencing_primer','sequencing_primer');
  27591. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cleaved_for_gpi_anchor_region','cleaved_for_gpi_anchor_region');
  27592. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frameshift_sequence_variation','frameshift_sequence_variation');
  27593. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_cysteine','modified_l_cysteine');
  27594. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_utr','five_prime_utr');
  27595. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frt_site','frt_site');
  27596. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminal_inverted_repeat','terminal_inverted_repeat');
  27597. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transition','transition');
  27598. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deletion_junction','deletion_junction');
  27599. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_right_handed_type_one','beta_turn_right_handed_type_one');
  27600. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_ribosylguanosine_phosphate','two_prime_o_ribosylguanosine_phosphate');
  27601. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carbamoylmethyl_two_prime_o_methyluridine','five_cm_2_prime_o_methU');
  27602. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_transcribed_spacer_region','internal_transcribed_spacer_region');
  27603. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic','dicistronic');
  27604. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supported_by_sequence_similarity','supported_by_sequence_similarity');
  27605. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reverse_primer','reverse_primer');
  27606. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_three_prime_ltr_region','u3_three_prime_ltr_region');
  27607. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamine_trna_primary_transcript','glutamine_trna_primary_transcript');
  27608. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_ii_promoter','rnapol_ii_promoter');
  27609. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('overlapping','overlapping');
  27610. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alpha_beta_motif','alpha_beta_motif');
  27611. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_transposable_element','engineered_transposable_element');
  27612. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('forward_primer','forward_primer');
  27613. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attctn_site','attctn_site');
  27614. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_recombination_signal_sequence','five_prime_d_recombination_signal_sequence');
  27615. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_conservative_amino_acid_substitution','sequence_variant_causing_conservative_amino_acid_sub');
  27616. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u6_snrna','u6_snrna');
  27617. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_rearranged_gene','recombinationally_rearranged_gene');
  27618. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_threonylcarbamoyladenosine','n6_threonylcarbamoyladenosine');
  27619. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carbamoylmethyluridine','five_carbamoylmethyluridine');
  27620. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_fragment','cds_fragment');
  27621. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genome','genome');
  27622. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('promoter','promoter');
  27623. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_coding_gene','protein_coding_gene');
  27624. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_snrna','u5_snrna');
  27625. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wybutosine','wybutosine');
  27626. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylwyosine','methylwyosine');
  27627. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('large_subunit_rrna','large_subunit_rrna');
  27628. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_amino_acid_substitution','sequence_variant_causing_amino_acid_substitution');
  27629. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_2_prime_o_dimethylcytidine','n4_2_prime_o_dimethylcytidine');
  27630. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_to_t_transition','c_to_t_transition');
  27631. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variation_affecting_transcript_sequence','sequence_variation_affecting_transcript_sequence');
  27632. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bidirectional_promoter','bidirectional_promoter');
  27633. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_partially_characterised_change_of_translational_product','seq_variant_causing_partly_characterised_change_of_product');
  27634. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('validated_cdna_clone','validated_cdna_clone');
  27635. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('k_turn_rna_motif','k_turn_rna_motif');
  27636. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcribed_fragment','transcribed_fragment');
  27637. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_ust','five_prime_ust');
  27638. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_utr_intron','three_prime_utr_intron');
  27639. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retrogene','retrogene');
  27640. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrimidine_to_purine_transversion','pyrimidine_to_purine_transversion');
  27641. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sine_element','sine_element');
  27642. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_rst','five_prime_rst');
  27643. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_coding exon_coding_region','three_prime_coding_exon_coding_region');
  27644. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('utr_intron','utr_intron');
  27645. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_no_3d_structural_change','sequence_variant_causing_no_3d_structural_change');
  27646. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interchromosomal_transposition','interchromosomal_transposition');
  27647. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_sequence_secondary_structure','rna_sequence_secondary_structure');
  27648. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_transposable_element','engineered_foreign_transposable_element');
  27649. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ds_rna_viral_sequence','ds_rna_viral_sequence');
  27650. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fosmid','fosmid');
  27651. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_substitution','complex_substitution');
  27652. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('validated','validated');
  27653. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u2_snrna','u2_snrna');
  27654. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('caat_signal','caat_signal');
  27655. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_cluster','c_cluster');
  27656. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('consensus_region','consensus_region');
  27657. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vertebrate_immune_system_gene_recombination_spacer','vertebrate_immune_system_gene_recombination_spacer');
  27658. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_trap_construct','gene_trap_construct');
  27659. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_aptamer','rna_aptamer');
  27660. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_induced','transcriptionally_induced');
  27661. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue_region','rescue_region');
  27662. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_site_part','inversion_site_part');
  27663. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('origin_of_replication','origin_of_replication');
  27664. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mutation_causing_out_of_frame_polypeptide_c_terminal_elongation','mutation_causing_out_of_frame_polypeptide_c_terminal_elong');
  27665. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_internal_loop','rna_internal_loop');
  27666. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ultracontig','ultracontig');
  27667. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptidyl','peptidyl');
  27668. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_region','polypeptide_region');
  27669. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgenic_insertion','transgenic_insertion');
  27670. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_antiguide','mirna_antiguide');
  27671. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rearranged_at_dna_level','rearranged_at_dna_level');
  27672. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_spacer','v_spacer');
  27673. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strand_attribute','strand_attribute');
  27674. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variation_increasing_level_of_transcript','sequence_variation_increasing_level_of_transcript');
  27675. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alternatively_spliced','alternatively_spliced');
  27676. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_formyl_two_prime_o_methylcytidine','five_formyl_two_prime_o_methylcytidine');
  27677. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid_location','plasmid_location');
  27678. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('four_bp_start_codon','four_bp_start_codon');
  27679. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_rearranged','recombinationally_rearranged');
  27680. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chimeric_cdna_clone','chimeric_cdna_clone');
  27681. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_dicistronic_transcript','gene_with_dicistronic_transcript');
  27682. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_ltr_component','three_prime_ltr_component');
  27683. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retron','retron');
  27684. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autopolyploid','autopolyploid');
  27685. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phenylalanine','phenylalanine');
  27686. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transit_peptide','transit_peptide');
  27687. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_28s','rrna_28s');
  27688. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_two_prime_o_dimethylinosine','one_two_prime_o_dimethylinosine');
  27689. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('threonine','threonine');
  27690. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_minor_rna_motif','a_minor_rna_motif');
  27691. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_cluster','j_cluster');
  27692. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_cluster','d_dj_cluster');
  27693. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_cryptic_splice_activation','sequence_variant_causing_cryptic_splice_activation');
  27694. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_arm','chromosome_arm');
  27695. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('kinetoplast_gene','kinetoplast_gene');
  27696. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('line_element','line_element');
  27697. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('solo_ltr','solo_ltr');
  27698. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('external_transcribed_spacer_region','external_transcribed_spacer_region');
  27699. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_transcribed_region','non_transcribed_region');
  27700. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_stem','mirna_stem');
  27701. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_j_c_cluster','dj_j_c_cluster');
  27702. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hyperploid','hyperploid');
  27703. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic','cryptic');
  27704. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alpha_helix','alpha_helix');
  27705. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fusion','fusion');
  27706. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_j_cluster','vdj_j_cluster');
  27707. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isowyosine','isowyosine');
  27708. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paracentric_inversion','paracentric_inversion');
  27709. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mutation_causing_inframe_polypeptide_n_terminal_elongation','mutation_causing_inframe_polypeptide_n_terminal_elongation');
  27710. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homing_endonuclease_binding_site','homing_endonuclease_binding_site');
  27711. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tna_oligo','tna_oligo');
  27712. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mini_gene','mini_gene');
  27713. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('restriction_fragment','restriction_fragment');
  27714. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('base_pair','base_pair');
  27715. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inside_intron_antiparallel','inside_intron_antiparallel');
  27716. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_transcription','sequence_variant_affecting_transcription');
  27717. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_binding_site','dna_binding_site');
  27718. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_cytidine','modified_cytidine');
  27719. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hydrophobic_region_of_peptide','hydrophobic_region_of_peptide');
  27720. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic_primary_transcript','polycistronic_primary_transcript');
  27721. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_proline','modified_l_proline');
  27722. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('overlapping_feature_set','overlapping_feature_set');
  27723. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_left_handed_type_two','asx_turn_left_handed_type_two');
  27724. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interchromosomal_duplication','interchromosomal_duplication');
  27725. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('substitution','substitution');
  27726. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isoleucine','isoleucine');
  27727. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_recoding_site','three_prime_recoding_site');
  27728. 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');
  27729. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glycine_trna_primary_transcript','glycine_trna_primary_transcript');
  27730. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mutation_causing_polypeptide_c_terminal_elongation','mutation_causing_polypeptide_c_terminal_elongation');
  27731. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_heptamer','v_heptamer');
  27732. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dispersed_repeat','dispersed_repeat');
  27733. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primer','primer');
  27734. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variation_affecting_transcript','sequence_variation_affecting_transcript');
  27735. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wild_type','wild_type');
  27736. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_domain','polypeptide_domain');
  27737. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_synonymous_codon_change_in_transcript','seq_variant_causing_synonymous_codon_change_in_trans');
  27738. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fusion_gene','fusion_gene');
  27739. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('arginyl_trna','arginyl_trna');
  27740. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_member_region','gene_member_region');
  27741. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uninverted_intrachromosomal_transposition','uninvert_intra_transposition');
  27742. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_translational_product','sequence_variant_affecting_translational_product');
  27743. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylated_base_feature','methylated_base_feature');
  27744. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna_gene','scrna_gene');
  27745. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_18s','rrna_18s');
  27746. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_polypeptide_elongation','sequence_variant_causing_polypeptide_elongation');
  27747. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter_type_1','rnapol_iii_promoter_type_1');
  27748. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('point_mutation','point_mutation');
  27749. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_3d_structure_of_polypeptide','sequence_variant_affecting_3d_structure_of_polypeptide');
  27750. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudoknot','pseudoknot');
  27751. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_quartet','g_quartet');
  27752. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_selenocysteine','modified_l_selenocysteine');
  27753. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('schellmann_loop','schellmann_loop');
  27754. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pna','pna');
  27755. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_coding_exon','three_prime_coding_exon');
  27756. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('endogenous_retroviral_gene','endogenous_retroviral_gene');
  27757. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vertebrate_immunoglobulin_t_cell_receptor_segment','vertebrate_immunoglobulin_t_cell_receptor_segment');
  27758. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_recoded_by_translational_bypass','mrna_recoded_by_translational_bypass');
  27759. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_region','engineered_foreign_region');
  27760. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna_encoding','snorna_encoding');
  27761. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_est','five_prime_est');
  27762. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna_encoding','srp_rna_encoding');
  27763. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foldback_element','foldback_element');
  27764. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_j_c_cluster','d_j_c_cluster');
  27765. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_c_cluster','dj_c_cluster');
  27766. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_encoding','rrna_encoding');
  27767. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_recoded_by_codon_redefinition','mrna_recoded_by_codon_redefinition');
  27768. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methyluridine','five_methyluridine');
  27769. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('immature_peptide_region','immature_peptide_region');
  27770. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homologous','homologous');
  27771. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('metabolic_island','metabolic_island');
  27772. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_sequence','polya_sequence');
  27773. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sirna','sirna');
  27774. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_attribute','sequence_attribute');
  27775. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_intron','trna_intron');
  27776. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_1_translationally_frameshifted','plus_1_translationally_frameshifted');
  27777. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_motif','nucleotide_motif');
  27778. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_motif','dna_motif');
  27779. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_noncoding_exon','five_prime_noncoding_exon');
  27780. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_strand','beta_strand');
  27781. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methyladenosine','one_methyladenosine');
  27782. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ds_oligo','ds_oligo');
  27783. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_motif','asx_motif');
  27784. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oxys_rna','oxys_rna');
  27785. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_hydroxyuridine','five_hydroxyuridine');
  27786. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_formylcytidine','five_formylcytidine');
  27787. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_1_translational_frameshift','plus_1_translational_frameshift');
  27788. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_exon','coding_exon');
  27789. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spliced_leader_rna','spliced_leader_rna');
  27790. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_7_2prirme_o_trimethylguanosine','n2_7_2prirme_o_trimethylguanosine');
  27791. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_fragment','gene_fragment');
  27792. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mitochondrial_chromosome','mitochondrial_chromosome');
  27793. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methyldihydrouridine','five_methyldihydrouridine');
  27794. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('propeptide_cleavage_site','propeptide_cleavage_site');
  27795. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frameshift','frameshift');
  27796. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('amino_acid','amino_acid');
  27797. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translocation_breakpoint','translocation_breakpoint');
  27798. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_compensatory_transcript_secondary_structure_mutation','seq_variant_caus_compensatory_trans_secondary_structure_mut');
  27799. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('helix_turn_helix','helix_turn_helix');
  27800. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_5_8s','rrna_5_8s');
  27801. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('simple_sequence_length_variation','simple_sequence_length_variation');
  27802. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methionine','methionine');
  27803. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element_gene','transposable_element_gene');
  27804. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomic_island','genomic_island');
  27805. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_segment','gene_segment');
  27806. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna_gene','snrna_gene');
  27807. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_region','engineered_region');
  27808. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptogene','cryptogene');
  27809. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_coding_exon_noncoding_region','three_prime_coding_exon_noncoding_region');
  27810. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_rna_interference','gene_silenced_by_rna_interference');
  27811. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_interchromosomal_transposition','d_interchr_transposition');
  27812. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural_variant_site','natural_variant_site');
  27813. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assembly','assembly');
  27814. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_minus_2_frameshift','sequence_variant_causing_minus_2_frameshift');
  27815. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('major_tss','major_tss');
  27816. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_missense_codon_change_in_transcript','sequence_variant_causing_missense_codon_change_in_transcript');
  27817. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna','trna');
  27818. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_overlapping_peptides','encodes_overlapping_peptides');
  27819. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nc_conserved_region','nc_conserved_region');
  27820. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('locus_control_region','locus_control_region');
  27821. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('s_gna_oligo','s_gna_oligo');
  27822. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_chromosome','dna_chromosome');
  27823. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_b','beta_turn_type_six_b');
  27824. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_gene','engineered_gene');
  27825. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wobble_base_pair','wobble_base_pair');
  27826. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_amino_acid_feature','modified_amino_acid_feature');
  27827. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_to_c_transition','t_to_c_transition');
  27828. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('apicoplast_sequence','apicoplast_sequence');
  27829. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('irlinv_site','irlinv_site');
  27830. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('synthetic_sequence','synthetic_sequence');
  27831. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_1_polypeptide','encodes_1_polypeptide');
  27832. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_decreasing_transcript_stability','sequence_variant_decreasing_transcript_stability');
  27833. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_iia_intron','group_iia_intron');
  27834. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('telomere','telomere');
  27835. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interior_intron','interior_intron');
  27836. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_mrna','edited_mrna');
  27837. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_right_handed_three','catmat_right_handed_three');
  27838. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_effect','sequence_variant_effect');
  27839. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tandem_duplication','tandem_duplication');
  27840. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_gene','tmrna_gene');
  27841. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pre_edited_region','pre_edited_region');
  27842. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_hydroxynorvalylcarbamoyladenosine','n6_hydroxynorvalylcarbamoyladenosine');
  27843. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleomorphic_chromosome','nucleomorphic_chromosome');
  27844. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fragmentary','fragmentary');
  27845. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single','single');
  27846. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('binding_site','binding_site');
  27847. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_methylguanine','seven_methylguanine');
  27848. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('target_site_duplication','target_site_duplication');
  27849. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_gene','vdj_gene');
  27850. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_loss_of_function_of_polypeptide','sequence_variant_causing_loss_of_function_of_polypeptide');
  27851. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bound_by_nucleic_acid','bound_by_nucleic_acid');
  27852. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_right_handed_four','catmat_right_handed_four');
  27853. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('compound_chromosome','compound_chromosome');
  27854. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_end','coding_end');
  27855. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gap','gap');
  27856. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('upstream_aug_codon','upstream_aug_codon');
  27857. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_transcript','pseudogenic_transcript');
  27858. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('satellite_dna','satellite_dna');
  27859. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_deficiency_plus_duplication','assortment_derived_deficiency_plus_duplication');
  27860. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element','transposable_element');
  27861. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('endogenous_retroviral_sequence','endogenous_retroviral_sequence');
  27862. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variation_affecting_level_of_transcript','sequence_variation_affecting_level_of_transcript');
  27863. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('microsatellite','microsatellite');
  27864. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_different_polypeptides_different_stop','encodes_different_polypeptides_different_stop');
  27865. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primary_transcript','primary_transcript');
  27866. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('consensus_mrna','consensus_mrna');
  27867. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('membrane_peptide_loop','membrane_peptide_loop');
  27868. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_complex_3d_structural_change','sequence_variant_causing_complex_3d_structural_change');
  27869. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foreign','so_foreign');
  27870. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_deletion','nucleotide_deletion');
  27871. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rho_independent_bacterial_terminator','rho_independent_bacterial_terminator');
  27872. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_histone_deacetylation','gene_silenced_by_histone_deacetylation');
  27873. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_j_c_cluster','vdj_j_c_cluster');
  27874. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cpg_island','cpg_island');
  27875. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('haplotype','haplotype');
  27876. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylinosine','two_prime_o_methylinosine');
  27877. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna','dna');
  27878. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_double_stranded_rna_chromosome','circular_double_stranded_rna_chromosome');
  27879. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mature_protein_region','mature_protein_region');
  27880. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('b_box','b_box');
  27881. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_zinc_ion_contact_site','polypeptide_zinc_ion_contact_site');
  27882. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_subarray_member','gene_subarray_member');
  27883. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_cassette','gene_cassette');
  27884. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oric','oric');
  27885. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deletion_breakpoint','deletion_breakpoint');
  27886. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_plus_2_frameshift','mrna_with_plus_2_frameshift');
  27887. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_right_handed_type_one','asx_turn_right_handed_type_one');
  27888. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcribed_cluster','transcribed_cluster');
  27889. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variation_decreasing_level_of_transcript','sequence_variation_decreasing_level_of_transcript');
  27890. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tyrosyl_trna','tyrosyl_trna');
  27891. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orthologous','orthologous');
  27892. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('s_gna','s_gna');
  27893. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('canonical_three_prime_splice_site','canonical_three_prime_splice_site');
  27894. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('noncoding_exon','noncoding_exon');
  27895. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minor_tss','minor_tss');
  27896. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_two_prime_o_dimethylcytidine','five_two_prime_o_dimethylcytidine');
  27897. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('macronuclear_chromosome','macronuclear_chromosome');
  27898. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_translocation','deficient_translocation');
  27899. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('read_pair','read_pair');
  27900. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_with_translational_frameshift','transcript_with_translational_frameshift');
  27901. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter_type_3','rnapol_iii_promoter_type_3');
  27902. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_transposon','dna_transposon');
  27903. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orf','orf');
  27904. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('right_handed_peptide_helix','right_handed_peptide_helix');
  27905. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nest_left_right_motif','polypeptide_nest_left_right_motif');
  27906. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_splice_donor','sequence_variant_affecting_splice_donor');
  27907. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('topology_attribute','topology_attribute');
  27908. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirtron','mirtron');
  27909. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_motif','polypeptide_motif');
  27910. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proplastid_sequence','proplastid_sequence');
  27911. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('negatively_autoregulated_gene','negatively_autoregulated_gene');
  27912. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_base_site','modified_base_site');
  27913. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_d_box_snorna_encoding','c_d_box_snorna_encoding');
  27914. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_assembly','sequence_assembly');
  27915. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bre_motif','bre_motif');
  27916. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromoplast_gene','chromoplast_gene');
  27917. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_clip','five_prime_clip');
  27918. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('golden_path','golden_path');
  27919. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alanine','alanine');
  27920. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cleaved_peptide_region','cleaved_peptide_region');
  27921. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_j_cluster','v_dj_j_cluster');
  27922. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_region','pseudogenic_region');
  27923. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylation_guide_snorna','methylation_guide_snorna');
  27924. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_j_c_cluster','v_vj_j_c_cluster');
  27925. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_canonical_start_codon','non_canonical_start_codon');
  27926. 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');
  27927. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_turn_motif','polypeptide_turn_motif');
  27928. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autocatalytically_spliced_intron','autocatalytically_spliced_intron');
  27929. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mobile','mobile');
  27930. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intron','intron');
  27931. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clip','clip');
  27932. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dye_terminator_read','dye_terminator_read');
  27933. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('argenine','argenine');
  27934. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv4_motif','dmv4_motif');
  27935. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_polypeptide_post_translational_processing_change','seq_variant_causing_polypeptide_post_trans_processing_change');
  27936. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('au_rich_element','au_rich_element');
  27937. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_breakpoint','inversion_breakpoint');
  27938. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_recoding_site','five_prime_recoding_site');
  27939. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_protein_coding','non_protein_coding');
  27940. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mobile_intron','mobile_intron');
  27941. 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');
  27942. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_right_handed_type_one','st_turn_right_handed_type_one');
  27943. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna','rrna');
  27944. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inside_intron_parallel','inside_intron_parallel');
  27945. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spliceosomal_intron','spliceosomal_intron');
  27946. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phagemid','phagemid');
  27947. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('editing_block','editing_block');
  27948. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fragment_assembly','fragment_assembly');
  27949. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_acceptor_piece','tmrna_acceptor_piece');
  27950. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six','beta_turn_type_six');
  27951. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_rst','three_prime_rst');
  27952. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cysteine_trna_primary_transcript','cysteine_trna_primary_transcript');
  27953. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated_gene','post_translationally_regulated_gene');
  27954. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_repressed','transcriptionally_repressed');
  27955. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('crm','crm');
  27956. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cointegrated_plasmid','cointegrated_plasmid');
  27957. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_sequencing_information','polypeptide_sequencing_information');
  27958. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_spacer','three_prime_d_spacer');
  27959. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tiling_path_fragment','tiling_path_fragment');
  27960. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural','so_natural');
  27961. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pi_helix','pi_helix');
  27962. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('possible_base_call_error','possible_base_call_error');
  27963. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('adaptive_island','adaptive_island');
  27964. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uridine_five_oxyacetic_acid','uridine_five_oxyacetic_acid');
  27965. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_2_translational_frameshift','plus_2_translational_frameshift');
  27966. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homologous_region','homologous_region');
  27967. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_utr','internal_utr');
  27968. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_level_of_translational_product','sequence_variant_affecting_level_of_translational_product');
  27969. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_cytoplasmic_polypeptide_region','non_cytoplasmic_polypeptide_region');
  27970. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimental_feature','experimental_feature');
  27971. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_chromosome','nuclear_chromosome');
  27972. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exemplar','exemplar');
  27973. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alanine_trna_primary_transcript','alanine_trna_primary_transcript');
  27974. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_n2_dimethylguanosine','n2_n2_dimethylguanosine');
  27975. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_hook_turn','rna_hook_turn');
  27976. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcribed_spacer_region','transcribed_spacer_region');
  27977. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid_gene','plasmid_gene');
  27978. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u14_snorna','u14_snorna');
  27979. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('galactosyl_queuosine','galactosyl_queuosine');
  27980. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyanelle_gene','cyanelle_gene');
  27981. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wild_type_rescue_gene','wild_type_rescue_gene');
  27982. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u12_intron','u12_intron');
  27983. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aptamer','aptamer');
  27984. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded_mrna','recoded_mrna');
  27985. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('macronuclear_sequence','macronuclear_sequence');
  27986. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ust','ust');
  27987. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('selenocysteine','selenocysteine');
  27988. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_dicistronic_mrna','gene_with_dicistronic_mrna');
  27989. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('match_part','match_part');
  27990. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleomorphic_sequence','nucleomorphic_sequence');
  27991. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('apicoplast_gene','apicoplast_gene');
  27992. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulon','regulon');
  27993. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid_vector','plasmid_vector');
  27994. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_tryptophan','modified_l_tryptophan');
  27995. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_amino_acid_coding_codon_change_in_transcript','seq_variant_causing_amino_acid_coding_codon_change_in_trans');
  27996. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('free_chromosome_arm','free_chromosome_arm');
  27997. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna_primary_transcript','srp_rna_primary_transcript');
  27998. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn','asx_turn');
  27999. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anchor_binding_site','anchor_binding_site');
  28000. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_primary_transcript','rrna_primary_transcript');
  28001. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reading_frame','reading_frame');
  28002. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dhu_loop','dhu_loop');
  28003. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_acetylcytidine','n4_acetylcytidine');
  28004. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_polypeptide_function','sequence_variant_affecting_polypeptide_function');
  28005. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_gene','silenced_gene');
  28006. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cloned_genomic_insert','cloned_genomic_insert');
  28007. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_sequence_secondary_structure','dna_sequence_secondary_structure');
  28008. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cdna_match','cdna_match');
  28009. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_flanking_region','five_prime_flanking_region');
  28010. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrrolysyl_trna','pyrrolysyl_trna');
  28011. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_cis_hydroxyisopentenyl_adenosine','two_methylthio_n6_cis_hydroxyisopentenyl_adenosine');
  28012. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_component','repeat_component');
  28013. 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');
  28014. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rpra_rna','rpra_rna');
  28015. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclease_sensitive_site','nuclease_sensitive_site');
  28016. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_coding_exon_noncoding_region','five_prime_coding_exon_noncoding_region');
  28017. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter','rnapol_iii_promoter');
  28018. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tryptophan_trna_primary_transcript','try_trna_primary_transcript');
  28019. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('region','region');
  28020. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tf_binding_site','tf_binding_site');
  28021. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attl_site','attl_site');
  28022. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural_plasmid','natural_plasmid');
  28023. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_n6_dimethyladenosine','n6_n6_dimethyladenosine');
  28024. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('laevosynaptic_chromosome','laevosynaptic_chromosome');
  28025. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_structural_element','chromosomal_structural_element');
  28026. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_cassette_array','gene_cassette_array');
  28027. 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');
  28028. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('canonical_five_prime_splice_site','canonical_five_prime_splice_site');
  28029. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bound_by_protein','bound_by_protein');
  28030. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sts_map','sts_map');
  28031. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dnazyme','dnazyme');
  28032. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silent_mutation','silent_mutation');
  28033. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_j_cluster','v_d_j_cluster');
  28034. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bipartite_duplication','bipartite_duplication');
  28035. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hydroxywybutosine','hydroxywybutosine');
  28036. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dihydrouridine','dihydrouridine');
  28037. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_rate_of_transcription','sequence_variant_affecting_rate_of_transcription');
  28038. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_coding_exon_coding_region','five_prime_coding_exon_coding_region');
  28039. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_left_handed_type_one','beta_turn_left_handed_type_one');
  28040. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded_codon','recoded_codon');
  28041. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('predicted','predicted');
  28042. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('resolution_site','resolution_site');
  28043. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_cyano_seven_deazaguanosine','seven_cyano_seven_deazaguanosine');
  28044. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_conformational_change','sequence_variant_causing_conformational_change');
  28045. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conformational_switch','conformational_switch');
  28046. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulated','regulated');
  28047. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_repeat','inverted_repeat');
  28048. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_to_a_transversion','t_to_a_transversion');
  28049. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attc_site','attc_site');
  28050. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methyladenosine','two_methyladenosine');
  28051. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cross_genome_match','cross_genome_match');
  28052. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tandem_repeat','tandem_repeat');
  28053. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antisense_primary_transcript','antisense_primary_transcript');
  28054. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_polyadenylation','sequence_variant_affecting_polyadenylation');
  28055. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_collection','sequence_collection');
  28056. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_polyadenylated_mrna','gene_with_polyadenylated_mrna');
  28057. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_i_promoter','rnapol_i_promoter');
  28058. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_methyluridine','three_methyluridine');
  28059. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('start_codon','start_codon');
  28060. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retrotransposon','retrotransposon');
  28061. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_gene','v_gene');
  28062. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chloroplast_dna','chloroplast_dna');
  28063. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('negative_sense_ssrna_viral_sequence','negative_sense_ssrna_viral_sequence');
  28064. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primer_binding_site','primer_binding_site');
  28065. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_box','c_box');
  28066. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid','plasmid');
  28067. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('biological_region','biological_region');
  28068. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_to_a_transition','g_to_a_transition');
  28069. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_canonical_five_prime_splice_site','non_canonical_five_prime_splice_site');
  28070. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_d_box_snorna_primary_transcript','c_d_box_snorna_primary_transcript');
  28071. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_region','trna_region');
  28072. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uncharacterised_change_in_nucleotide_sequence','uncharacterised_change_in_nucleotide_sequence');
  28073. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_cis_hydroxyisopentenyl_adenosine','n6_cis_hydroxyisopentenyl_adenosine');
  28074. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chloroplast_sequence','chloroplast_sequence');
  28075. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_region','exon_region');
  28076. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_five_prime_ltr_region','r_five_prime_ltr_region');
  28077. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_j_c_cluster','v_j_c_cluster');
  28078. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_three_prime_ltr_region','r_three_prime_ltr_region');
  28079. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna','snrna');
  28080. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methylinosine','one_methylinosine');
  28081. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_gene_recombination_feature','j_gene_recombination_feature');
  28082. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_structural_motif','polypeptide_structural_motif');
  28083. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conserved_region','conserved_region');
  28084. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('remark','remark');
  28085. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_dna_contact','polypeptide_dna_contact');
  28086. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('codon','codon');
  28087. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_23s','rrna_23s');
  28088. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna','mrna');
  28089. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glycyl_trna','glycyl_trna');
  28090. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyanelle_sequence','cyanelle_sequence');
  28091. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_independently_known','cds_independently_known');
  28092. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insulator','insulator');
  28093. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('positive_sense_ssrna_viral_sequence','positive_sense_ssrna_viral_sequence');
  28094. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('expressed_sequence_match','expressed_sequence_match');
  28095. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('possible_assembly_error','possible_assembly_error');
  28096. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_snorna','u3_snorna');
  28097. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unorientated_interchromosomal_transposition','unorient_inter_transposition');
  28098. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_manganese_ion_contact_site','polypeptide_manganese_ion_contact_site');
  28099. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_to_t_transversion','g_to_t_transversion');
  28100. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_feature_of_rearranged_gene','recombination_feature_of_rearranged_gene');
  28101. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_primary_transcript','tmrna_primary_transcript');
  28102. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single_stranded_cdna','single_stranded_cdna');
  28103. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimentally_determined','experimentally_determined');
  28104. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_exon','pseudogenic_exon');
  28105. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u2_intron','u2_intron');
  28106. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome','chromosome');
  28107. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_alternately_spliced_transcripts','encodes_alternately_spliced_transcripts');
  28108. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aberrant_processed_transcript','aberrant_processed_transcript');
  28109. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gna','gna');
  28110. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dsra_rna','dsra_rna');
  28111. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intron_domain','intron_domain');
  28112. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_predicted','cds_predicted');
  28113. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_asparagine','modified_l_asparagine');
  28114. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_nonamer','five_prime_d_nonamer');
  28115. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl2_acceptor_site','sl2_acceptor_site');
  28116. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna_primary_transcript','snrna_primary_transcript');
  28117. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translocation','translocation');
  28118. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_phenylalanine','modified_l_phenylalanine');
  28119. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lincrna','lincrna');
  28120. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_valine','modified_l_valine');
  28121. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('yac','yac');
  28122. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('signal_peptide','signal_peptide');
  28123. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_ltr_region','r_ltr_region');
  28124. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna_gene','srp_rna_gene');
  28125. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_transcript_processing','sequence_variant_affecting_transcript_processing');
  28126. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_hotspot','recombination_hotspot');
  28127. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_c_cluster','v_dj_c_cluster');
  28128. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('viral_sequence','viral_sequence');
  28129. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_terminal_inverted_repeat','five_prime_terminal_inverted_repeat');
  28130. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxycarbonylmethyl_two_thiouridine','five_mcm_2_thiouridine');
  28131. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited','edited');
  28132. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_start','coding_start');
  28133. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_utr','three_prime_utr');
  28134. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dpe1_motif','dpe1_motif');
  28135. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_tyrosine','modified_l_tyrosine');
  28136. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_j_c_cluster','v_d_j_c_cluster');
  28137. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unorientated_intrachromosomal_transposition','unorient_intra_transposition');
  28138. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_histone_methylation','silenced_by_histone_methylation');
  28139. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_inversion','deficient_inversion');
  28140. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_thiouridine','two_thiouridine');
  28141. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_thio_two_prime_o_methyluridine','two_thio_two_prime_o_methyluridine');
  28142. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucoplast_sequence','leucoplast_sequence');
  28143. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds','cds');
  28144. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mutation_causing_polypeptide_n_terminal_elongation','mutation_causing_polypeptide_n_terminal_elongation');
  28145. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_signal_sequence','polya_signal_sequence');
  28146. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('micronuclear_sequence','micronuclear_sequence');
  28147. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamyl_trna','glutamyl_trna');
  28148. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna_gene','strna_gene');
  28149. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paternally_imprinted_gene','paternally_imprinted_gene');
  28150. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_chromosome','rna_chromosome');
  28151. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ndm3_motif','ndm3_motif');
  28152. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u1_snrna','u1_snrna');
  28153. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_hydroxymethylcytidine','five_hydroxymethylcytidine');
  28154. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_feature','recombination_feature');
  28155. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_disjoint_polypeptides','encodes_disjoint_polypeptides');
  28156. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated','post_translationally_regulated');
  28157. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_fusion_gene','engineered_fusion_gene');
  28158. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_recombination_signal_sequence','three_prime_d_recombination_signal_sequence');
  28159. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causes_exon_loss','sequence_variant_causes_exon_loss');
  28160. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intermediate','intermediate');
  28161. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_calcium_ion_contact_site','polypeptide_calcium_ion_contact_site');
  28162. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('syntenic_region','syntenic_region');
  28163. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sugar_edge_base_pair','sugar_edge_base_pair');
  28164. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_gene','engineered_foreign_gene');
  28165. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_acetyl_2_prime_o_methylcytidine','n4_acetyl_2_prime_o_methylcytidine');
  28166. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('predicted_by_ab_initio_computation','predicted_by_ab_initio_computation');
  28167. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_secondary_structure','polypeptide_secondary_structure');
  28168. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ncrna_gene','ncrna_gene');
  28169. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_junction_loop','rna_junction_loop');
  28170. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('haplotype_block','haplotype_block');
  28171. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oriv','oriv');
  28172. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ambisense_ssrna_viral_sequence','ambisense_ssrna_viral_sequence');
  28173. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('morpholino_oligo','morpholino_oligo');
  28174. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('centromere','centromere');
  28175. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epigenetically_modified_gene','epigenetically_modified_gene');
  28176. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_inversion','chromosomal_inversion');
  28177. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_35_signal','minus_35_signal');
  28178. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_two_prime_o_dimethyluridine','three_two_prime_o_dimethyluridine');
  28179. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('four_thiouridine','four_thiouridine');
  28180. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcription_end_site','transcription_end_site');
  28181. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pre_mirna','pre_mirna');
  28182. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cysteinyl_trna','cysteinyl_trna');
  28183. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_left_handed_three','catmat_left_handed_three');
  28184. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('schellmann_loop_seven','schellmann_loop_seven');
  28185. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_j_c_cluster','v_vdj_j_c_cluster');
  28186. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element_insertion_site','transposable_element_insertion_site');
  28187. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translocation_element','translocation_element');
  28188. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_primary_transcript_region','mirna_primary_transcript_region');
  28189. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orphan_cds','orphan_cds');
  28190. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic_mrna','monocistronic_mrna');
  28191. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural_transposable_element','natural_transposable_element');
  28192. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('golden_path_fragment','golden_path_fragment');
  28193. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lipoprotein_signal_peptide','lipoprotein_signal_peptide');
  28194. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_large_subunit_primary_transcript','rrna_large_subunit_primary_transcript');
  28195. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_double_stranded_rna_chromosome','linear_double_stranded_rna_chromosome');
  28196. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_increasing_rate_of_transcription','sequence_variant_increasing_rate_of_transcription');
  28197. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plastid_sequence','plastid_sequence');
  28198. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('irrinv_site','irrinv_site');
  28199. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integrated_plasmid','integrated_plasmid');
  28200. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_methionine','modified_l_methionine');
  28201. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromoplast_sequence','chromoplast_sequence');
  28202. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_single_stranded_rna_chromosome','linear_single_stranded_rna_chromosome');
  28203. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('promoter_trap_construct','promoter_trap_construct');
  28204. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('contig_read','contig_read');
  28205. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_methylguanosine','seven_methylguanosine');
  28206. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_redefined_as_selenocysteine','stop_codon_redefined_as_selenocysteine');
  28207. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gamma_turn','gamma_turn');
  28208. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methionyl_trna','methionyl_trna');
  28209. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna','tmrna');
  28210. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cdna','cdna');
  28211. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclease_binding_site','nuclease_binding_site');
  28212. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uridine_five_oxyacetic_acid_methyl_ester','uridine_five_oxyacetic_acid_methyl_ester');
  28213. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_race_clone','three_prime_race_clone');
  28214. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_double_stranded_dna_chromosome','circular_double_stranded_dna_chromosome');
  28215. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_histidine','modified_l_histidine');
  28216. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tss_region','tss_region');
  28217. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('positively_autoregulated_gene','positively_autoregulated_gene');
  28218. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('consensus','consensus');
  28219. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integron','integron');
  28220. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_metal_contact','polypeptide_metal_contact');
  28221. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_loop','d_loop');
  28222. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decayed_exon','decayed_exon');
  28223. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_inosine','modified_inosine');
  28224. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_three_prime_overlap','three_prime_three_prime_overlap');
  28225. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_five_prime_overlap','three_prime_five_prime_overlap');
  28226. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_j_cluster','v_j_cluster');
  28227. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge_loop','beta_bulge_loop');
  28228. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrachromosomal_mutation','intrachromosomal_mutation');
  28229. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv2_motif','dmv2_motif');
  28230. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intergenic_region','intergenic_region');
  28231. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_glycinylcarbamoyladenosine','n6_glycinylcarbamoyladenosine');
  28232. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_feature','sequence_feature');
  28233. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antisense_rna','antisense_rna');
  28234. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_cis_splice_site','three_prime_cis_splice_site');
  28235. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gamma_turn_classic','gamma_turn_classic');
  28236. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rapd','rapd');
  28237. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cca_tail','cca_tail');
  28238. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_ring_chromosome','inverted_ring_chromosome');
  28239. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_double_stranded_dna_chromosome','linear_double_stranded_dna_chromosome');
  28240. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_to_g_transversion','t_to_g_transversion');
  28241. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bruno_response_element','bruno_response_element');
  28242. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_five_prime_ltr_region','u5_five_prime_ltr_region');
  28243. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_to_a_transversion','c_to_a_transversion');
  28244. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('distant_three_prime_recoding_signal','distant_three_prime_recoding_signal');
  28245. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('macronucleus_destined_segment','macronucleus_destined_segment');
  28246. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pre_edited_mrna','pre_edited_mrna');
  28247. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pac','pac');
  28248. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('base','base');
  28249. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic_mrna','polycistronic_mrna');
  28250. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('codon_redefined','codon_redefined');
  28251. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxycarbonylmethyl_two_prime_o_methyluridine','five_methoxycarbonylmethyl_two_prime_o_methyluridine');
  28252. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('match','match');
  28253. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_stop_codon_read_through','gene_with_stop_codon_read_through');
  28254. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asparaginyl_trna','asparaginyl_trna');
  28255. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('threonyl_trna','threonyl_trna');
  28256. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_five_prime_ltr_region','u3_five_prime_ltr_region');
  28257. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_ltr','five_prime_ltr');
  28258. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_gene','vj_gene');
  28259. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_methylguanosine','n2_methylguanosine');
  28260. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rho_dependent_bacterial_terminator','rho_dependent_bacterial_terminator');
  28261. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_flanking_region','three_prime_flanking_region');
  28262. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomically_contaminated_cdna_clone','genomically_contaminated_cdna_clone');
  28263. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_target_site','mirna_target_site');
  28264. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_guide_sequence','internal_guide_sequence');
  28265. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_three_prime_ltr_region','u5_three_prime_ltr_region');
  28266. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mutation_causing_out_of_frame_polypeptide_n_terminal_elongation','mutation_causing_out_of_frame_polypeptide_n_terminal_elong');
  28267. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('undermodified_hydroxywybutosine','undermodified_hydroxywybutosine');
  28268. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('introgressed_chromosome_region','introgressed_chromosome_region');
  28269. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translationally_frameshifted','translationally_frameshifted');
  28270. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_deletion','chromosomal_deletion');
  28271. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucine','leucine');
  28272. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylation_guide_snorna_primary_transcript','methylation_guide_snorna_primary_transcript');
  28273. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_spliced','trans_spliced');
  28274. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_isopentenylaminomethyl_uridine','five_isopentenylaminomethyl_uridine');
  28275. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_threonyl_carbamoyladenosine','two_methylthio_n6_threonyl_carbamoyladenosine');
  28276. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon','stop_codon');
  28277. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_no_change_of_translational_product','sequence_variant_causing_no_change_of_translational_product');
  28278. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('biochemical_region_of_peptide','biochemical_region_of_peptide');
  28279. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interband','interband');
  28280. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone_insert','clone_insert');
  28281. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_constraint_sequence','dna_constraint_sequence');
  28282. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snp','snp');
  28283. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromoplast_chromosome','chromoplast_chromosome');
  28284. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tata_box','tata_box');
  28285. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_25s','rrna_25s');
  28286. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plastid_gene','plastid_gene');
  28287. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_left_handed_type_one','asx_turn_left_handed_type_one');
  28288. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_increasing_transcript_stability','sequence_variant_increasing_transcript_stability');
  28289. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_uridine','modified_uridine');
  28290. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysyl_trna','lysyl_trna');
  28291. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intramembrane_polypeptide_region','intramembrane_polypeptide_region');
  28292. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rr_tract','rr_tract');
  28293. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_primary_transcript_region','rrna_primary_transcript_region');
  28294. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alternatively_spliced_transcript','alternatively_spliced_transcript');
  28295. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ds_dna_viral_sequence','ds_dna_viral_sequence');
  28296. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_duplication','chromosomal_duplication');
  28297. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna_encoding','scrna_encoding');
  28298. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_copper_ion_contact_site','polypeptide_copper_ion_contact_site');
  28299. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_isoleucine','modified_l_isoleucine');
  28300. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone','clone');
  28301. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hetero_compound_chromosome','hetero_compound_chromosome');
  28302. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_subarray','gene_subarray');
  28303. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic_transcript','dicistronic_transcript');
  28304. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_dna_methylation','silenced_by_dna_methylation');
  28305. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_partially_characterised_change_in_transcript','seq_variant_causing_partly_characterised_change_in_trans');
  28306. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_loop','t_loop');
  28307. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_serine','modified_l_serine');
  28308. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_thiocytidine','two_thiocytidine');
  28309. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_repeat_recoding_signal','three_prime_repeat_recoding_signal');
  28310. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna','srp_rna');
  28311. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_binding_motif','polypeptide_binding_motif');
  28312. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylguanosine','two_prime_o_methylguanosine');
  28313. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_polypeptide_truncation','sequence_variant_causing_polypeptide_truncation');
  28314. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_box','a_box');
  28315. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_rearranged_vertebrate_immune_system_gene','recombinationally_rearranged_vertebrate_immune_system_gene');
  28316. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methylguanosine','one_methylguanosine');
  28317. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_glutamine','modified_l_glutamine');
  28318. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant','sequence_variant');
  28319. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_length_variation','sequence_length_variation');
  28320. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna_encoding','strna_encoding');
  28321. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_1_frameshift','plus_1_frameshift');
  28322. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('topologically_defined_region','topologically_defined_region');
  28323. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_cds','edited_cds');
  28324. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_histone_modification','gene_silenced_by_histone_modification');
  28325. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('e_box_motif','e_box_motif');
  28326. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('small_subunit_rrna','small_subunit_rrna');
  28327. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dnasei_hypersensitive_site','dnasei_hypersensitive_site');
  28328. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_j_c_cluster','v_d_dj_j_c_cluster');
  28329. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('compound_chromosome_arm','compound_chromosome_arm');
  28330. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('feature_attribute','feature_attribute');
  28331. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_match','protein_match');
  28332. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_splicing','sequence_variant_affecting_splicing');
  28333. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_variation','chromosome_variation');
  28334. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_threonine_motif','serine_threonine_motif');
  28335. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allelically_excluded','allelically_excluded');
  28336. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_aneuploid','assortment_derived_aneuploid');
  28337. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('morpholino','morpholino');
  28338. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_isopentenylaminomethyl_two_prime_o_methyluridine','five_isopentenylaminomethyl_two_prime_o_methyluridine');
  28339. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gna_oligo','gna_oligo');
  28340. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('copy_number_variation','copy_number_variation');
  28341. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced','silenced');
  28342. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_methylcytidine','three_methylcytidine');
  28343. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dexstrosynaptic_chromosome','dexstrosynaptic_chromosome');
  28344. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_insertional_duplication','inverted_insertional_duplication');
  28345. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue_mini_gene','rescue_mini_gene');
  28346. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_left_handed_four','catmat_left_handed_four');
  28347. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alternate_sequence_site','alternate_sequence_site');
  28348. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_iron_ion_contact_site','polypeptide_iron_ion_contact_site');
  28349. 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');
  28350. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_molybdenum_ion_contact_site','polypeptide_molybdenum_ion_contact_site');
  28351. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phenylalanine_trna_primary_transcript','phe_trna_primary_transcript');
  28352. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_aca_box_snorna_primary_transcript','h_aca_box_snorna_primary_transcript');
  28353. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_gna','r_gna');
  28354. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrachromosomal_transposition','intrachromosomal_transposition');
  28355. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_polypeptide_localization_change','sequence_variant_causing_polypeptide_localization_change');
  28356. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylated_a','methylated_a');
  28357. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_16s','rrna_16s');
  28358. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_methylcytidine','n4_methylcytidine');
  28359. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('riboswitch','riboswitch');
  28360. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_duplication','assortment_derived_duplication');
  28361. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_regulatory_element','chromosomal_regulatory_element');
  28362. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_partially_characterised_3d_structural_change','seq_var_causing_partly_characterised_3d_structural_change');
  28363. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_five_prime_overlap','five_prime_five_prime_overlap');
  28364. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribozymic','ribozymic');
  28365. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_bipartite_deficiency','inversion_derived_bipartite_deficiency');
  28366. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_genomic_contamination','invalidated_by_genomic_contamination');
  28367. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_j_cluster','vj_j_cluster');
  28368. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_uncharacterised_change_of_translational_product','sequence_variant_causing_uncharacterised_change_of_product');
  28369. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_number_variation','chromosome_number_variation');
  28370. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_attribute','gene_attribute');
  28371. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uag_stop_codon_signal','uag_stop_codon_signal');
  28372. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_match','nucleotide_match');
  28373. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epigenetically_modified','epigenetically_modified');
  28374. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_left_handed_type_two','st_turn_left_handed_type_two');
  28375. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_deficiency_plus_duplication','inversion_derived_deficiency_plus_duplication');
  28376. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylaminomethyl_two_selenouridine','five_methylaminomethyl_two_selenouridine');
  28377. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aspartic_acid_trna_primary_transcript','aspartic_acid_trna_primary_transcript');
  28378. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_mt_pseudogene','nuclear_mt_pseudogene');
  28379. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exonic_splice_enhancer','exonic_splice_enhancer');
  28380. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u4_snrna','u4_snrna');
  28381. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('csrb_rsmb_rna','csrb_rsmb_rna');
  28382. 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');
  28383. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('crispr','crispr');
  28384. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_no_change_in_transcript','sequence_variant_causing_no_change_in_transcript');
  28385. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna_gene','snorna_gene');
  28386. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_junction','trans_splice_junction');
  28387. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('flanking_three_prime_quadruplet_recoding_signal','flanking_three_prime_quadruplet_recoding_signal');
  28388. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_j_cluster','v_vdj_j_cluster');
  28389. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cassette_pseudogene','cassette_pseudogene');
  28390. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_histone_modification','silenced_by_histone_modification');
  28391. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proviral_gene','proviral_gene');
  28392. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxyhydroxymethyl_uridine','five_carboxyhydroxymethyl_uridine');
  28393. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mt_gene','mt_gene');
  28394. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single_stranded_rna_chromosome','single_stranded_rna_chromosome');
  28395. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoding_stimulatory_region','recoding_stimulatory_region');
  28396. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_taurinomethyluridine','five_taurinomethyluridine');
  28397. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_threonine','modified_l_threonine');
  28398. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_cluster','v_d_dj_cluster');
  28399. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('synthetic_oligo','synthetic_oligo');
  28400. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('purine_to_pyrimidine_transversion','purine_to_pyrimidine_transversion');
  28401. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_nonsense_codon_change_in_transcript','sequence_variant_causing_nonsense_codon_change_in_transcript');
  28402. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antiparallel_beta_strand','antiparallel_beta_strand');
  28403. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('central_hydrophobic_region_of_signal_peptide','central_hydrophobic_region_of_signal_peptide');
  28404. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integrated_mobile_genetic_element','integrated_mobile_genetic_element');
  28405. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('parallel_beta_strand','parallel_beta_strand');
  28406. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_cluster','v_dj_cluster');
  28407. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dre_motif','dre_motif');
  28408. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_ltr_retrotransposon','non_ltr_retrotransposon');
  28409. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_gna_oligo','r_gna_oligo');
  28410. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autoregulated','autoregulated');
  28411. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_lysine','modified_l_lysine');
  28412. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bac_end','bac_end');
  28413. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrrolysine','pyrrolysine');
  28414. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysine','lysine');
  28415. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_protein_contact','protein_protein_contact');
  28416. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_site','splice_site');
  28417. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_translocation','chromosomal_translocation');
  28418. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epitope','epitope');
  28419. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allele','allele');
  28420. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_n4_2_prime_o_trimethylcytidine','n4_n4_2_prime_o_trimethylcytidine');
  28421. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_ltr_region','u5_ltr_region');
  28422. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue_gene','rescue_gene');
  28423. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgenic_transposable_element','transgenic_transposable_element');
  28424. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_conserved_region','polypeptide_conserved_region');
  28425. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sts','sts');
  28426. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_to_c_transversion','a_to_c_transversion');
  28427. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('class_ii_rna','class_ii_rna');
  28428. 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');
  28429. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unedited_region','unedited_region');
  28430. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_increasing_level_of_translation_product','sequence_variant_increasing_level_of_translation_product');
  28431. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lambda_vector','lambda_vector');
  28432. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene','gene');
  28433. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alanyl_trna','alanyl_trna');
  28434. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('virtual_sequence','virtual_sequence');
  28435. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_iib_intron','group_iib_intron');
  28436. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retrotransposed','retrotransposed');
  28437. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_minus_2_frameshift','mrna_with_minus_2_frameshift');
  28438. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polymer_attribute','polymer_attribute');
  28439. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autosynaptic_chromosome','autosynaptic_chromosome');
  28440. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptide_helix','peptide_helix');
  28441. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('partially_processed_cdna_clone','partially_processed_cdna_clone');
  28442. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rst_match','rst_match');
  28443. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paternally_imprinted','paternally_imprinted');
  28444. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('predicted_gene','predicted_gene');
  28445. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('robertsonian_fusion','robertsonian_fusion');
  28446. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylpseudouridine','two_prime_o_methylpseudouridine');
  28447. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pericentric_inversion','pericentric_inversion');
  28448. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aspartyl_trna','aspartyl_trna');
  28449. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna','strna');
  28450. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_intron','three_prime_intron');
  28451. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear','linear');
  28452. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_nonamer','j_nonamer');
  28453. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_to_t_transversion','a_to_t_transversion');
  28454. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('idna','idna');
  28455. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_n2_7_trimethylguanosine','n2_n2_7_trimethylguanosine');
  28456. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_chromosomal_mutation','complex_chromosomal_mutation');
  28457. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_deficiency_plus_aneuploid','inversion_derived_deficiency_plus_aneuploid');
  28458. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asymmetric_rna_internal_loop','asymmetric_rna_internal_loop');
  28459. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deletion','deletion');
  28460. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyclic_translocation','cyclic_translocation');
  28461. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ars','ars');
  28462. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutaminyl_trna','glutaminyl_trna');
  28463. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allopolyploid','allopolyploid');
  28464. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('replicon','replicon');
  28465. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylcytidine','two_prime_o_methylcytidine');
  28466. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_left_handed_type_one','st_turn_left_handed_type_one');
  28467. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paralogous_region','paralogous_region');
  28468. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mature_transcript_region','mature_transcript_region');
  28469. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_frameshift','mrna_with_frameshift');
  28470. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_j_cluster','d_dj_j_cluster');
  28471. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maxicircle_gene','maxicircle_gene');
  28472. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_right_handed_type_two','st_turn_right_handed_type_two');
  28473. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna_encoding','snrna_encoding');
  28474. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_spacer','five_prime_d_spacer');
  28475. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('read','read');
  28476. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('arginine_trna_primary_transcript','arg_trna_primary_transcript');
  28477. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oligo_u_tail','oligo_u_tail');
  28478. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoding_pseudoknot','recoding_pseudoknot');
  28479. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylaminomethyl_two_thiouridine','five_mam_2_thiouridine');
  28480. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic','monocistronic');
  28481. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frame_restoring_sequence_variant','frame_restoring_sequence_variant');
  28482. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transmembrane_polypeptide_region','transmembrane_polypeptide_region');
  28483. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vector_replicon','vector_replicon');
  28484. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrosequenced_read','pyrosequenced_read');
  28485. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_magnesium_ion_contact_site','polypeptide_magnesium_ion_contact_site');
  28486. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic_transcript','polycistronic_transcript');
  28487. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_site','polya_site');
  28488. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('free_duplication','free_duplication');
  28489. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_structure_variation','chromosome_structure_variation');
  28490. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_rna_base_feature','modified_rna_base_feature');
  28491. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mutated_variant_site','mutated_variant_site');
  28492. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gaga_motif','gaga_motif');
  28493. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interchromosomal_mutation','interchromosomal_mutation');
  28494. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('prophage','prophage');
  28495. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('syntenic','syntenic');
  28496. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_repetitive_element','engineered_foreign_repetitive_element');
  28497. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translated_nucleotide_match','translated_nucleotide_match');
  28498. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_aca_box_snorna','h_aca_box_snorna');
  28499. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vault_rna','vault_rna');
  28500. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orphan','orphan');
  28501. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_single_stranded_dna_chromosome','linear_single_stranded_dna_chromosome');
  28502. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_greater_than_1_polypeptide','encodes_greater_than_1_polypeptide');
  28503. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('atti_site','atti_site');
  28504. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_histone_deacetylation','silenced_by_histone_deacetylation');
  28505. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reagent','reagent');
  28506. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_fission','chromosome_fission');
  28507. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ct_gene','ct_gene');
  28508. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('capped_primary_transcript','capped_primary_transcript');
  28509. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_initiator_codon_change_in_transcript','sequence_variant_causing_initiator_codon_change_in_trans');
  28510. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylinosine','methylinosine');
  28511. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_spacer','j_spacer');
  28512. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamine','glutamine');
  28513. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_guanosine','modified_guanosine');
  28514. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_7_dimethylguanosine','n2_7_dimethylguanosine');
  28515. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_nonconservative_amino_acid_substitution','sequence_variant_causing_nonconservative_amino_acid_sub');
  28516. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_heptamer','three_prime_d_heptamer');
  28517. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_cdna_clone','invalidated_cdna_clone');
  28518. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminator','terminator');
  28519. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stem_loop','stem_loop');
  28520. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_utr_intron','five_prime_utr_intron');
  28521. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_plus_2_frameshift','sequence_variant_causing_plus_2_frameshift');
  28522. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_band','chromosome_band');
  28523. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mini_exon_donor_rna','mini_exon_donor_rna');
  28524. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aneuploid','aneuploid');
  28525. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methyl_2_thiouridine','five_methyl_2_thiouridine');
  28526. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_dna_methylation','gene_silenced_by_dna_methylation');
  28527. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_transposable_element_gene','engineered_foreign_transposable_element_gene');
  28528. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('processed_pseudogene','processed_pseudogene');
  28529. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supercontig','supercontig');
  28530. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_encoding','trna_encoding');
  28531. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reciprocal_chromosomal_translocation','reciprocal_chromosomal_translocation');
  28532. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hoogsteen_base_pair','hoogsteen_base_pair');
  28533. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('purine_transition','purine_transition');
  28534. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_d_box_snorna','c_d_box_snorna');
  28535. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna_primary_transcript','snorna_primary_transcript');
  28536. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_cluster','v_vj_cluster');
  28537. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_ltr_region','u3_ltr_region');
  28538. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attenuator','attenuator');
  28539. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_noncoding_exon','three_prime_noncoding_exon');
  28540. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u14_snorna_primary_transcript','u14_snorna_primary_transcript');
  28541. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_gene_recombination_feature','d_gene_recombination_feature');
  28542. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mte','mte');
  28543. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variation_affecting_coding_sequence','sequence_variation_affecting_coding_sequence');
  28544. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gcvb_rna','gcvb_rna');
  28545. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rst','rst');
  28546. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('operator','operator');
  28547. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ring_chromosome','ring_chromosome');
  28548. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ndm2_motif','ndm2_motif');
  28549. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('selenocysteine_trna_primary_transcript','selenocysteine_trna_primary_transcript');
  28550. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_transcript_feature','edited_transcript_feature');
  28551. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_redefined_as_pyrrolysine','stop_codon_redefined_as_pyrrolysine');
  28552. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homo_compound_chromosome','homo_compound_chromosome');
  28553. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foreign_gene','foreign_gene');
  28554. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('four_demethylwyosine','four_demethylwyosine');
  28555. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('guide_rna','guide_rna');
  28556. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_methylpseudouridine','three_methylpseudouridine');
  28557. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_aneuploid_chromosome','inversion_derived_aneuploid_chromosome');
  28558. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('specific_recombination_site','specific_recombination_site');
  28559. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inosine','inosine');
  28560. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foreign_transposable_element','foreign_transposable_element');
  28561. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_gene','d_gene');
  28562. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bipartite_inversion','bipartite_inversion');
  28563. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_plasmid','engineered_plasmid');
  28564. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_group_regulatory_region','gene_group_regulatory_region');
  28565. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vd_gene','vd_gene');
  28566. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulatory_region','regulatory_region');
  28567. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_decreasing_rate_of_transcription','sequence_variant_decreasing_rate_of_transcription');
  28568. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('guide_rna_region','guide_rna_region');
  28569. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence variant_affecting_transcript_stability','sequence_variant_affecting_transcript_stability');
  28570. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_ten_helix','three_ten_helix');
  28571. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sarcin_like_rna_motif','sarcin_like_rna_motif');
  28572. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_1_translationally_frameshifted','minus_1_translationally_frameshifted');
  28573. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_alanine','modified_l_alanine');
  28574. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_amino_acid_deletion','sequence_variant_causing_amino_acid_deletion');
  28575. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_cum_translocation','inversion_cum_translocation');
  28576. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tag','tag');
  28577. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uninverted_interchromosomal_transposition','uninvert_inter_transposition');
  28578. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_gene','cryptic_gene');
  28579. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgenic','transgenic');
  28580. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomic_clone','genomic_clone');
  28581. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_breakage_sequence','chromosome_breakage_sequence');
  28582. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_j_cluster','d_j_cluster');
  28583. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_a_one','beta_turn_type_six_a_one');
  28584. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribosome_entry_site','ribosome_entry_site');
  28585. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('left_handed_peptide_helix','left_handed_peptide_helix');
  28586. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_aptamer','dna_aptamer');
  28587. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('i_motif','i_motif');
  28588. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_intrachromosomal_transposition','d_intrachr_transposition');
  28589. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single_stranded_dna_chromosome','single_stranded_dna_chromosome');
  28590. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylated_c','methylated_c');
  28591. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ligation_based_read','ligation_based_read');
  28592. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('expressed_sequence_assembly','expressed_sequence_assembly');
  28593. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_two_prime_o_dimethyluridine','five_two_prime_o_dimethyluridine');
  28594. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histidine_trna_primary_transcript','histidine_trna_primary_transcript');
  28595. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orthologous_region','orthologous_region');
  28596. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('valine_trna_primary_transcript','valine_trna_primary_transcript');
  28597. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('operon_member','operon_member');
  28598. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_group','gene_group');
  28599. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposition','transposition');
  28600. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('small_regulatory_ncrna','small_regulatory_ncrna');
  28601. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrachromosomal_duplication','intrachromosomal_duplication');
  28602. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uaa_stop_codon_signal','uaa_stop_codon_signal');
  28603. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_2_frameshift','minus_2_frameshift');
  28604. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('organelle_sequence','organelle_sequence');
  28605. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_prophage','cryptic_prophage');
  28606. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('micf_rna','micf_rna');
  28607. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('direct_tandem_duplication','direct_tandem_duplication');
  28608. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conserved','conserved');
  28609. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('telomerase_rna','telomerase_rna');
  28610. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u6atac_snrna','u6atac_snrna');
  28611. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attb_site','attb_site');
  28612. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_array_member','gene_array_member');
  28613. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polyadenylated_mrna','polyadenylated_mrna');
  28614. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('symbiosis_island','symbiosis_island');
  28615. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_junction','splice_junction');
  28616. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fingerprint_map','fingerprint_map');
  28617. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wyosine','wyosine');
  28618. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uga_stop_codon_signal','uga_stop_codon_signal');
  28619. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cytoplasmic_polypeptide_region','cytoplasmic_polypeptide_region');
  28620. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_two_prime_o_dimethylguanosine','one_two_prime_o_dimethylguanosine');
  28621. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rh_map','rh_map');
  28622. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_dna_modification','silenced_by_dna_modification');
  28623. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anticodon','anticodon');
  28624. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_deazaguanosine','seven_deazaguanosine');
  28625. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asparagine','asparagine');
  28626. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('probe','probe');
  28627. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('defective_conjugative_transposon','defective_conjugative_transposon');
  28628. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('archaeosine','archaeosine');
  28629. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('molecular_contact_region','molecular_contact_region');
  28630. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('membrane_structure','membrane_structure');
  28631. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('contig_collection','contig_collection');
  28632. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tetraloop','tetraloop');
  28633. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_conserved_region','coding_conserved_region');
  28634. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('long_terminal_repeat','long_terminal_repeat');
  28635. 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');
  28636. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('untranslated_region_polycistronic_mrna','untranslated_region_polycistronic_mrna');
  28637. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucine_trna_primary_transcript','leucine_trna_primary_transcript');
  28638. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_single_stranded_dna_chromosome','circular_single_stranded_dna_chromosome');
  28639. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isoleucyl_trna','isoleucyl_trna');
  28640. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion_breakpoint','insertion_breakpoint');
  28641. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgene','transgene');
  28642. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_region','mrna_region');
  28643. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_attribute','transcript_attribute');
  28644. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_threonine_staple_motif','serine_threonine_staple_motif');
  28645. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_coding','protein_coding');
  28646. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer_bound_by_factor','enhancer_bound_by_factor');
  28647. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded_by_translational_bypass','recoded_by_translational_bypass');
  28648. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('operon','operon');
  28649. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic_transcript','monocistronic_transcript');
  28650. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_amino_acid_insertion','sequence_variant_causing_amino_acid_insertion');
  28651. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polyadenylated','polyadenylated');
  28652. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unigene_cluster','unigene_cluster');
  28653. 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');
  28654. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_cassette_member','gene_cassette_member');
  28655. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_read_through','stop_codon_read_through');
  28656. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_transcript_with_translational_frameshift','gene_with_transcript_with_translational_frameshift');
  28657. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mnp','mnp');
  28658. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamic_acid','glutamic_acid');
  28659. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_polypeptide_amino_acid_sequence','sequence_variant_affecting_polypeptide_amino_acid_sequence');
  28660. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn','beta_turn');
  28661. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pathogenic_island','pathogenic_island');
  28662. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ust_match','ust_match');
  28663. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_conservative_missense_codon_change_in_transcript','seq_var_causing_conservative_missense_codon_change_in_trans');
  28664. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_bound_by_protein','transcript_bound_by_protein');
  28665. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_methyladenosine','n6_methyladenosine');
  28666. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyanelle_chromosome','cyanelle_chromosome');
  28667. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orit','orit');
  28668. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maternally_imprinted','maternally_imprinted');
  28669. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chloroplast_chromosome','chloroplast_chromosome');
  28670. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minicircle_gene','minicircle_gene');
  28671. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_catalytic_motif','polypeptide_catalytic_motif');
  28672. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter_type_2','rnapol_iii_promoter_type_2');
  28673. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('no_output','no_output');
  28674. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interior_coding_exon','interior_coding_exon');
  28675. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_taurinomethyl_two_thiouridine','five_taurinomethyl_two_thiouridine');
  28676. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide','polypeptide');
  28677. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polymerase_synthesis_read','polymerase_synthesis_read');
  28678. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer_binding_site','enhancer_binding_site');
  28679. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_left_handed_type_two','beta_turn_left_handed_type_two');
  28680. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_genomic_polya_primed_cdna','invalidated_by_genomic_polya_primed_cdna');
  28681. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_edited_transcript','gene_with_edited_transcript');
  28682. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv1_motif','dmv1_motif');
  28683. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_modified_region','post_translationally_modified_region');
  28684. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proline','proline');
  28685. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('flanking_region','flanking_region');
  28686. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_isopentenyladenosine','two_methylthio_n6_isopentenyladenosine');
  28687. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypyrimidine_tract','polypyrimidine_tract');
  28688. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxyuridine','five_methoxyuridine');
  28689. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_to_gene_feature','gene_to_gene_feature');
  28690. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bac_cloned_genomic_insert','bac_cloned_genomic_insert');
  28691. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_heptamer','j_heptamer');
  28692. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_ust','three_prime_ust');
  28693. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_2_prime_o_dimethyladenosine','n6_2_prime_o_dimethyladenosine');
  28694. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_site','trans_splice_site');
  28695. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_rescue_region','engineered_rescue_region');
  28696. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleomorph_gene','nucleomorph_gene');
  28697. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_attribute','mrna_attribute');
  28698. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_three_prime_overlap','five_prime_three_prime_overlap');
  28699. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_i_intron','group_i_intron');
  28700. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_cluster','d_cluster');
  28701. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomic_dna','genomic_dna');
  28702. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inside_intron','inside_intron');
  28703. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hammerhead_ribozyme','hammerhead_ribozyme');
  28704. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_heptamer','five_prime_d_heptamer');
  28705. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intronic_splice_enhancer','intronic_splice_enhancer');
  28706. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_adenosine','modified_adenosine');
  28707. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethylaminomethyluridine','five_carboxymethylaminomethyluridine');
  28708. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_region','repeat_region');
  28709. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_unit','repeat_unit');
  28710. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double_stranded_dna_chromosome','double_stranded_dna_chromosome');
  28711. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('template_region','template_region');
  28712. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primary_transcript_region','primary_transcript_region');
  28713. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mitochondrial_dna','mitochondrial_dna');
  28714. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_region','transcript_region');
  28715. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribozyme','ribozyme');
  28716. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('matrix_attachment_site','matrix_attachment_site');
  28717. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('imprinted','imprinted');
  28718. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('est','est');
  28719. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_motif','rna_motif');
  28720. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_variation_site','polypeptide_variation_site');
  28721. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('class_i_rna','class_i_rna');
  28722. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oligo','oligo');
  28723. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_signal','stop_codon_signal');
  28724. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hypoploid','hypoploid');
  28725. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exemplar_mrna','exemplar_mrna');
  28726. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_to_g_transversion','c_to_g_transversion');
  28727. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('active_peptide','active_peptide');
  28728. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mannosyl_queuosine','mannosyl_queuosine');
  28729. 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');
  28730. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('queuosine','queuosine');
  28731. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lna_oligo','lna_oligo');
  28732. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('independently_known','independently_known');
  28733. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causes_intron_gain','sequence_variant_causes_intron_gain');
  28734. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proviral_region','proviral_region');
  28735. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('capped','capped');
  28736. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('direction_attribute','direction_attribute');
  28737. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('micronuclear_chromosome','micronuclear_chromosome');
  28738. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogene_by_unequal_crossing_over','pseudogene_by_unequal_crossing_over');
  28739. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_two_prime_o_dimethyladenosine','one_two_prime_o_dimethyladenosine');
  28740. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dpe_motif','dpe_motif');
  28741. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seryl_trna','seryl_trna');
  28742. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integration_excision_site','integration_excision_site');
  28743. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('noncoding_region_of_exon','noncoding_region_of_exon');
  28744. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnase_mrp_rna','rnase_mrp_rna');
  28745. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxycarbonylmethyluridine','five_methoxycarbonylmethyluridine');
  28746. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_of_single_exon_gene','exon_of_single_exon_gene');
  28747. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_dicistronic_primary_transcript','gene_with_dicistronic_primary_transcript');
  28748. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_secondary_structure','sequence_secondary_structure');
  28749. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tiling_path','tiling_path');
  28750. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_sequence','nuclear_sequence');
  28751. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('contig','contig');
  28752. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catalytic_residue','catalytic_residue');
  28753. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_site','inversion_site');
  28754. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aspartic_acid','aspartic_acid');
  28755. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dif_site','dif_site');
  28756. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_gene','mirna_gene');
  28757. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('valyl_trna','valyl_trna');
  28758. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_tandem_duplication','inverted_tandem_duplication');
  28759. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cis_regulatory_frameshift_element','cis_regulatory_frameshift_element');
  28760. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minisatellite','minisatellite');
  28761. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assembly_component','assembly_component');
  28762. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('low_complexity_region','low_complexity_region');
  28763. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('designed_sequence','designed_sequence');
  28764. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_n6_2_prime_o_trimethyladenosine','n6_n6_2_prime_o_trimethyladenosine');
  28765. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_polymerase_promoter','rna_polymerase_promoter');
  28766. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_gene_recombination_feature','v_gene_recombination_feature');
  28767. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethylaminomethyl_two_thiouridine','five_carboxymethylaminomethyl_two_thiouridine');
  28768. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('free_ring_duplication','free_ring_duplication');
  28769. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic_mrna','dicistronic_mrna');
  28770. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uncharacterised_chromosomal_mutation','uncharacterised_chromosomal_mutation');
  28771. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_cis_splice_site','five_prime_cis_splice_site');
  28772. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('octamer_motif','octamer_motif');
  28773. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_overlapping_peptides_different_start','encodes_overlapping_peptides_different_start');
  28774. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ss_rna_viral_sequence','ss_rna_viral_sequence');
  28775. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('indel','indel');
  28776. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic_primary_transcript','dicistronic_primary_transcript');
  28777. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_binding_site','protein_binding_site');
  28778. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic','polycistronic');
  28779. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asparagine_trna_primary_transcript','asparagine_trna_primary_transcript');
  28780. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_enhancer','splice_enhancer');
  28781. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aneuploid_chromosome','aneuploid_chromosome');
  28782. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peroxywybutosine','peroxywybutosine');
  28783. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_aspartic_acid','modified_l_aspartic_acid');
  28784. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_episome','engineered_episome');
  28785. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnai_reagent','rnai_reagent');
  28786. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rasirna','rasirna');
  28787. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_region','tmrna_region');
  28788. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_gain_of_function_of_polypeptide','sequence_variant_causing_gain_of_function_of_polypeptide');
  28789. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bacterial_rnapol_promoter','bacterial_rnapol_promoter');
  28790. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mitochondrial_sequence','mitochondrial_sequence');
  28791. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trinucleotide_repeat_microsatellite_feature','trinuc_repeat_microsat');
  28792. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated_by_protein_stability','post_translationally_regulated_by_protein_stability');
  28793. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nc_primary_transcript','nc_primary_transcript');
  28794. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_cryptic_splice_donor_activation','sequence_variant_causing_cryptic_splice_donor_activation');
  28795. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('iron_responsive_element','iron_responsive_element');
  28796. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_j_cluster','v_d_dj_j_cluster');
  28797. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('forward','forward');
  28798. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proviral_location','proviral_location');
  28799. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_binding_site','histone_binding_site');
  28800. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pse_motif','pse_motif');
  28801. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_eight','beta_turn_type_eight');
  28802. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double','double');
  28803. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_nonconservative_missense_codon_change_in_transcript','seq_var_causing_nonconserv_missense_codon_change_in_trans');
  28804. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_complex_change_of_translational_product','sequence_variant_causing_complex_change_of_product');
  28805. 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');
  28806. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double_stranded_rna_chromosome','double_stranded_rna_chromosome');
  28807. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_glutamic_acid','modified_l_glutamic_acid');
  28808. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nest_motif','polypeptide_nest_motif');
  28809. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translational_frameshift','translational_frameshift');
  28810. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_terminal_inverted_repeat','three_prime_terminal_inverted_repeat');
  28811. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_trna','pseudogenic_trna');
  28812. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cap','cap');
  28813. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_coding_exon','five_prime_coding_exon');
  28814. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enzymatic','enzymatic');
  28815. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interior_exon','interior_exon');
  28816. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_to_g_transition','a_to_g_transition');
  28817. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_inactive_catalytic_site','sequence_variant_causing_inactive_catalytic_site');
  28818. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine','two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine');
  28819. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maternally_imprinted_gene','maternally_imprinted_gene');
  28820. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_terminator_codon_change_in_transcript','sequence_variant_causing_terminator_codon_change_in_trans');
  28821. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular','circular');
  28822. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_pseudoknot','h_pseudoknot');
  28823. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript','transcript');
  28824. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogene','pseudogene');
  28825. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_duplication','nucleotide_duplication');
  28826. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('direct_repeat','direct_repeat');
  28827. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bacterial_terminator','bacterial_terminator');
  28828. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('diplotype','diplotype');
  28829. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_uncharacterised_3d_structural_change','seq_variant_causing_uncharacterised_3d_structural_change');
  28830. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_gene','dj_gene');
  28831. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methyladenosine','two_prime_o_methyladenosine');
  28832. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_plus_1_frameshift_mutation','sequence_variant_causing_plus_1_frameshift_mutation');
  28833. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('restriction_enzyme_binding_site','restriction_enzyme_binding_site');
  28834. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bac','bac');
  28835. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_j_cluster','dj_j_cluster');
  28836. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_donor_site','trans_splice_donor_site');
  28837. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleic_acid','nucleic_acid');
  28838. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_chimeric_cdna','invalidated_by_chimeric_cdna');
  28839. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histidine','histidine');
  28840. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_component_region','gene_component_region');
  28841. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primer_match','primer_match');
  28842. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_primary_transcript','trna_primary_transcript');
  28843. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('loxp_site','loxp_site');
  28844. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine','serine');
  28845. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('propeptide','propeptide');
  28846. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_open_reading_frame','five_prime_open_reading_frame');
  28847. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('schellmann_loop_six','schellmann_loop_six');
  28848. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('shine_dalgarno_sequence','shine_dalgarno_sequence');
  28849. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sp6_rna_polymerase_promoter','sp6_rna_polymerase_promoter');
  28850. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_editing','sequence_variant_affecting_editing');
  28851. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_regulatory_region','sequence_variant_affecting_regulatory_region');
  28852. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysine_trna_primary_transcript','lysine_trna_primary_transcript');
  28853. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_c_cluster','j_c_cluster');
  28854. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_deficiency','assortment_derived_deficiency');
  28855. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_primary_transcript','mirna_primary_transcript');
  28856. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_5s','rrna_5s');
  28857. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucyl_trna','leucyl_trna');
  28858. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_intrachromosomal_transposition','invert_intra_transposition');
  28859. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enzymatic_rna','enzymatic_rna');
  28860. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('negatively_autoregulated','negatively_autoregulated');
  28861. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anchor_region','anchor_region');
  28862. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon','exon');
  28863. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_a','beta_turn_type_six_a');
  28864. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('random_sequence','random_sequence');
  28865. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('partially_characterised_chromosomal_mutation','partially_characterised_chromosomal_mutation');
  28866. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna','rna');
  28867. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_transcript_secondary_structure','sequence_variant_affecting_transcript_secondary_structure');
  28868. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ss_oligo','ss_oligo');
  28869. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_duplication_plus_aneuploid','inversion_derived_duplication_plus_aneuploid');
  28870. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_bound_by_nucleic_acid','transcript_bound_by_nucleic_acid');
  28871. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intein_containing','intein_containing');
  28872. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_aca_box_snorna_encoding','h_aca_box_snorna_encoding');
  28873. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_cleavage_rna','rrna_cleavage_rna');
  28874. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer_trap_construct','enhancer_trap_construct');
  28875. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_uncharacterised_change_in_transcript','seq_variant_causing_uncharacterised_change_in_transcript');
  28876. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gamma_turn_inverse','gamma_turn_inverse');
  28877. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_nonamer','three_prime_d_nonamer');
  28878. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('selenocysteinyl_trna','selenocysteinyl_trna');
  28879. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_histone_methylation','gene_silenced_by_histone_methylation');
  28880. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u11_snrna','u11_snrna');
  28881. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna','scrna');
  28882. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_copy_number','sequence_variant_affecting_copy_number');
  28883. 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');
  28884. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silencer','silencer');
  28885. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sage_tag','sage_tag');
  28886. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_minus_1_frameshift','mrna_with_minus_1_frameshift');
  28887. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_gene','nuclear_gene');
  28888. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_supported_by_domain_match_data','cds_supported_by_domain_match_data');
  28889. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_shine_dalgarno_sequence','internal_shine_dalgarno_sequence');
  28890. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('prolyl_trna','prolyl_trna');
  28891. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysidine','lysidine');
  28892. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge','beta_bulge');
  28893. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated_by_protein_modification','post_translationally_regulated_by_protein_modification');
  28894. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ncrna','ncrna');
  28895. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('grna_gene','grna_gene');
  28896. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer','enhancer');
  28897. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polymorphic_sequence_variant','polymorphic_sequence_variant');
  28898. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_clip','three_prime_clip');
  28899. CREATE INDEX sequence_cv_lookup_table_idx ON sequence_cv_lookup_table (original_cvterm_name);
  28900. SET search_path=public,pg_catalog;
  28901. -- DEPENDENCY:
  28902. -- chado/modules/bridges/sofa-bridge.sql
  28903. -- The standard Chado pattern for protein coding genes
  28904. -- is a feature of type 'gene' with 'mRNA' features as parts
  28905. -- REQUIRES: 'mrna' view from so-bridge.sql
  28906. CREATE OR REPLACE VIEW protein_coding_gene AS
  28907. SELECT
  28908. DISTINCT gene.*
  28909. FROM
  28910. feature AS gene
  28911. INNER JOIN feature_relationship AS fr ON (gene.feature_id=fr.object_id)
  28912. INNER JOIN so.mrna ON (mrna.feature_id=fr.subject_id);
  28913. -- introns are implicit from surrounding exons
  28914. -- combines intron features with location and parent transcript
  28915. -- the same intron appearing in multiple transcripts will appear
  28916. -- multiple times
  28917. CREATE VIEW intron_combined_view AS
  28918. SELECT
  28919. x1.feature_id AS exon1_id,
  28920. x2.feature_id AS exon2_id,
  28921. CASE WHEN l1.strand=-1 THEN l2.fmax ELSE l1.fmax END AS fmin,
  28922. CASE WHEN l1.strand=-1 THEN l1.fmin ELSE l2.fmin END AS fmax,
  28923. l1.strand AS strand,
  28924. l1.srcfeature_id AS srcfeature_id,
  28925. r1.rank AS intron_rank,
  28926. r1.object_id AS transcript_id
  28927. FROM
  28928. cvterm
  28929. INNER JOIN
  28930. feature AS x1 ON (x1.type_id=cvterm.cvterm_id)
  28931. INNER JOIN
  28932. feature_relationship AS r1 ON (x1.feature_id=r1.subject_id)
  28933. INNER JOIN
  28934. featureloc AS l1 ON (x1.feature_id=l1.feature_id)
  28935. INNER JOIN
  28936. feature AS x2 ON (x2.type_id=cvterm.cvterm_id)
  28937. INNER JOIN
  28938. feature_relationship AS r2 ON (x2.feature_id=r2.subject_id)
  28939. INNER JOIN
  28940. featureloc AS l2 ON (x2.feature_id=l2.feature_id)
  28941. WHERE
  28942. cvterm.name='exon' AND
  28943. (r2.rank - r1.rank) = 1 AND
  28944. r1.object_id=r2.object_id AND
  28945. l1.strand = l2.strand AND
  28946. l1.srcfeature_id = l2.srcfeature_id AND
  28947. l1.locgroup=0 AND
  28948. l2.locgroup=0;
  28949. -- intron locations. intron IDs are the (exon1,exon2) ID pair
  28950. -- this means that introns may be counted twice if the start of
  28951. -- the 5' exon or the end of the 3' exon vary
  28952. -- introns shared by transcripts will not appear twice
  28953. CREATE VIEW intronloc_view AS
  28954. SELECT DISTINCT
  28955. exon1_id,
  28956. exon2_id,
  28957. fmin,
  28958. fmax,
  28959. strand,
  28960. srcfeature_id
  28961. FROM intron_combined_view;
  28962. CREATE OR REPLACE FUNCTION store_feature
  28963. (INT,INT,INT,INT,
  28964. INT,INT,VARCHAR,VARCHAR,INT,BOOLEAN)
  28965. RETURNS INT AS
  28966. 'DECLARE
  28967. v_srcfeature_id ALIAS FOR $1;
  28968. v_fmin ALIAS FOR $2;
  28969. v_fmax ALIAS FOR $3;
  28970. v_strand ALIAS FOR $4;
  28971. v_dbxref_id ALIAS FOR $5;
  28972. v_organism_id ALIAS FOR $6;
  28973. v_name ALIAS FOR $7;
  28974. v_uniquename ALIAS FOR $8;
  28975. v_type_id ALIAS FOR $9;
  28976. v_is_analysis ALIAS FOR $10;
  28977. v_feature_id INT;
  28978. v_featureloc_id INT;
  28979. BEGIN
  28980. IF v_dbxref_id IS NULL THEN
  28981. SELECT INTO v_feature_id feature_id
  28982. FROM feature
  28983. WHERE uniquename=v_uniquename AND
  28984. organism_id=v_organism_id AND
  28985. type_id=v_type_id;
  28986. ELSE
  28987. SELECT INTO v_feature_id feature_id
  28988. FROM feature
  28989. WHERE dbxref_id=v_dbxref_id;
  28990. END IF;
  28991. IF NOT FOUND THEN
  28992. INSERT INTO feature
  28993. ( dbxref_id ,
  28994. organism_id ,
  28995. name ,
  28996. uniquename ,
  28997. type_id ,
  28998. is_analysis )
  28999. VALUES
  29000. ( v_dbxref_id ,
  29001. v_organism_id ,
  29002. v_name ,
  29003. v_uniquename ,
  29004. v_type_id ,
  29005. v_is_analysis );
  29006. v_feature_id = currval(''feature_feature_id_seq'');
  29007. ELSE
  29008. UPDATE feature SET
  29009. dbxref_id = v_dbxref_id ,
  29010. organism_id = v_organism_id ,
  29011. name = v_name ,
  29012. uniquename = v_uniquename ,
  29013. type_id = v_type_id ,
  29014. is_analysis = v_is_analysis
  29015. WHERE
  29016. feature_id=v_feature_id;
  29017. END IF;
  29018. PERFORM store_featureloc(v_feature_id,
  29019. v_srcfeature_id,
  29020. v_fmin,
  29021. v_fmax,
  29022. v_strand,
  29023. 0,
  29024. 0);
  29025. RETURN v_feature_id;
  29026. END;
  29027. ' LANGUAGE 'plpgsql';
  29028. CREATE OR REPLACE FUNCTION store_featureloc
  29029. (INT,INT,INT,INT,INT,INT,INT)
  29030. RETURNS INT AS
  29031. 'DECLARE
  29032. v_feature_id ALIAS FOR $1;
  29033. v_srcfeature_id ALIAS FOR $2;
  29034. v_fmin ALIAS FOR $3;
  29035. v_fmax ALIAS FOR $4;
  29036. v_strand ALIAS FOR $5;
  29037. v_rank ALIAS FOR $6;
  29038. v_locgroup ALIAS FOR $7;
  29039. v_featureloc_id INT;
  29040. BEGIN
  29041. IF v_feature_id IS NULL THEN RAISE EXCEPTION ''feature_id cannot be null'';
  29042. END IF;
  29043. SELECT INTO v_featureloc_id featureloc_id
  29044. FROM featureloc
  29045. WHERE feature_id=v_feature_id AND
  29046. rank=v_rank AND
  29047. locgroup=v_locgroup;
  29048. IF NOT FOUND THEN
  29049. INSERT INTO featureloc
  29050. ( feature_id,
  29051. srcfeature_id,
  29052. fmin,
  29053. fmax,
  29054. strand,
  29055. rank,
  29056. locgroup)
  29057. VALUES
  29058. ( v_feature_id,
  29059. v_srcfeature_id,
  29060. v_fmin,
  29061. v_fmax,
  29062. v_strand,
  29063. v_rank,
  29064. v_locgroup);
  29065. v_featureloc_id = currval(''featureloc_featureloc_id_seq'');
  29066. ELSE
  29067. UPDATE featureloc SET
  29068. feature_id = v_feature_id,
  29069. srcfeature_id = v_srcfeature_id,
  29070. fmin = v_fmin,
  29071. fmax = v_fmax,
  29072. strand = v_strand,
  29073. rank = v_rank,
  29074. locgroup = v_locgroup
  29075. WHERE
  29076. featureloc_id=v_featureloc_id;
  29077. END IF;
  29078. RETURN v_featureloc_id;
  29079. END;
  29080. ' LANGUAGE 'plpgsql';
  29081. CREATE OR REPLACE FUNCTION store_feature_synonym
  29082. (INT,VARCHAR,INT,BOOLEAN,BOOLEAN,INT)
  29083. RETURNS INT AS
  29084. 'DECLARE
  29085. v_feature_id ALIAS FOR $1;
  29086. v_syn ALIAS FOR $2;
  29087. v_type_id ALIAS FOR $3;
  29088. v_is_current ALIAS FOR $4;
  29089. v_is_internal ALIAS FOR $5;
  29090. v_pub_id ALIAS FOR $6;
  29091. v_synonym_id INT;
  29092. v_feature_synonym_id INT;
  29093. BEGIN
  29094. IF v_feature_id IS NULL THEN RAISE EXCEPTION ''feature_id cannot be null'';
  29095. END IF;
  29096. SELECT INTO v_synonym_id synonym_id
  29097. FROM synonym
  29098. WHERE name=v_syn AND
  29099. type_id=v_type_id;
  29100. IF NOT FOUND THEN
  29101. INSERT INTO synonym
  29102. ( name,
  29103. synonym_sgml,
  29104. type_id)
  29105. VALUES
  29106. ( v_syn,
  29107. v_syn,
  29108. v_type_id);
  29109. v_synonym_id = currval(''synonym_synonym_id_seq'');
  29110. END IF;
  29111. SELECT INTO v_feature_synonym_id feature_synonym_id
  29112. FROM feature_synonym
  29113. WHERE feature_id=v_feature_id AND
  29114. synonym_id=v_synonym_id AND
  29115. pub_id=v_pub_id;
  29116. IF NOT FOUND THEN
  29117. INSERT INTO feature_synonym
  29118. ( feature_id,
  29119. synonym_id,
  29120. pub_id,
  29121. is_current,
  29122. is_internal)
  29123. VALUES
  29124. ( v_feature_id,
  29125. v_synonym_id,
  29126. v_pub_id,
  29127. v_is_current,
  29128. v_is_internal);
  29129. v_feature_synonym_id = currval(''feature_synonym_feature_synonym_id_seq'');
  29130. ELSE
  29131. UPDATE feature_synonym
  29132. SET is_current=v_is_current, is_internal=v_is_internal
  29133. WHERE feature_synonym_id=v_feature_synonym_id;
  29134. END IF;
  29135. RETURN v_feature_synonym_id;
  29136. END;
  29137. ' LANGUAGE 'plpgsql';
  29138. -- dependency_on: [sequtil,sequence-cv-helper]
  29139. CREATE OR REPLACE FUNCTION subsequence(INT,INT,INT,INT)
  29140. RETURNS TEXT AS
  29141. 'SELECT
  29142. CASE WHEN $4<0
  29143. THEN reverse_complement(substring(srcf.residues,$2+1,($3-$2)))
  29144. ELSE substring(residues,$2+1,($3-$2))
  29145. END AS residues
  29146. FROM feature AS srcf
  29147. WHERE
  29148. srcf.feature_id=$1'
  29149. LANGUAGE 'sql';
  29150. CREATE OR REPLACE FUNCTION subsequence_by_featureloc(INT)
  29151. RETURNS TEXT AS
  29152. 'SELECT
  29153. CASE WHEN strand<0
  29154. THEN reverse_complement(substring(srcf.residues,fmin+1,(fmax-fmin)))
  29155. ELSE substring(srcf.residues,fmin+1,(fmax-fmin))
  29156. END AS residues
  29157. FROM feature AS srcf
  29158. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  29159. WHERE
  29160. featureloc_id=$1'
  29161. LANGUAGE 'sql';
  29162. CREATE OR REPLACE FUNCTION subsequence_by_feature(INT,INT,INT)
  29163. RETURNS TEXT AS
  29164. 'SELECT
  29165. CASE WHEN strand<0
  29166. THEN reverse_complement(substring(srcf.residues,fmin+1,(fmax-fmin)))
  29167. ELSE substring(srcf.residues,fmin+1,(fmax-fmin))
  29168. END AS residues
  29169. FROM feature AS srcf
  29170. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  29171. WHERE
  29172. featureloc.feature_id=$1 AND
  29173. featureloc.rank=$2 AND
  29174. featureloc.locgroup=$3'
  29175. LANGUAGE 'sql';
  29176. CREATE OR REPLACE FUNCTION subsequence_by_feature(INT)
  29177. RETURNS TEXT AS 'SELECT subsequence_by_feature($1,0,0)'
  29178. LANGUAGE 'sql';
  29179. -- based on subfeature sets:
  29180. -- constrained by feature_relationship.type_id
  29181. -- (allows user to construct queries that only get subsequences of
  29182. -- part_of subfeatures)
  29183. CREATE OR REPLACE FUNCTION subsequence_by_subfeatures(INT,INT,INT,INT)
  29184. RETURNS TEXT AS '
  29185. DECLARE v_feature_id ALIAS FOR $1;
  29186. DECLARE v_rtype_id ALIAS FOR $2;
  29187. DECLARE v_rank ALIAS FOR $3;
  29188. DECLARE v_locgroup ALIAS FOR $4;
  29189. DECLARE subseq TEXT;
  29190. DECLARE seqrow RECORD;
  29191. BEGIN
  29192. subseq = '''';
  29193. FOR seqrow IN
  29194. SELECT
  29195. CASE WHEN strand<0
  29196. THEN reverse_complement(substring(srcf.residues,fmin+1,(fmax-fmin)))
  29197. ELSE substring(srcf.residues,fmin+1,(fmax-fmin))
  29198. END AS residues
  29199. FROM feature AS srcf
  29200. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  29201. INNER JOIN feature_relationship AS fr
  29202. ON (fr.subject_id=featureloc.feature_id)
  29203. WHERE
  29204. fr.object_id=v_feature_id AND
  29205. fr.type_id=v_rtype_id AND
  29206. featureloc.rank=v_rank AND
  29207. featureloc.locgroup=v_locgroup
  29208. ORDER BY fr.rank
  29209. LOOP
  29210. subseq = subseq || seqrow.residues;
  29211. END LOOP;
  29212. RETURN subseq;
  29213. END
  29214. '
  29215. LANGUAGE 'plpgsql';
  29216. CREATE OR REPLACE FUNCTION subsequence_by_subfeatures(INT,INT)
  29217. RETURNS TEXT AS
  29218. 'SELECT subsequence_by_subfeatures($1,$2,0,0)'
  29219. LANGUAGE 'sql';
  29220. CREATE OR REPLACE FUNCTION subsequence_by_subfeatures(INT)
  29221. RETURNS TEXT AS
  29222. '
  29223. SELECT subsequence_by_subfeatures($1,get_feature_relationship_type_id(''part_of''),0,0)
  29224. '
  29225. LANGUAGE 'sql';
  29226. -- constrained by subfeature.type_id (eg exons of a transcript)
  29227. CREATE OR REPLACE FUNCTION subsequence_by_typed_subfeatures(INT,INT,INT,INT)
  29228. RETURNS TEXT AS '
  29229. DECLARE v_feature_id ALIAS FOR $1;
  29230. DECLARE v_ftype_id ALIAS FOR $2;
  29231. DECLARE v_rank ALIAS FOR $3;
  29232. DECLARE v_locgroup ALIAS FOR $4;
  29233. DECLARE subseq TEXT;
  29234. DECLARE seqrow RECORD;
  29235. BEGIN
  29236. subseq = '''';
  29237. FOR seqrow IN
  29238. SELECT
  29239. CASE WHEN strand<0
  29240. THEN reverse_complement(substring(srcf.residues,fmin+1,(fmax-fmin)))
  29241. ELSE substring(srcf.residues,fmin+1,(fmax-fmin))
  29242. END AS residues
  29243. FROM feature AS srcf
  29244. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  29245. INNER JOIN feature AS subf ON (subf.feature_id=featureloc.feature_id)
  29246. INNER JOIN feature_relationship AS fr ON (fr.subject_id=subf.feature_id)
  29247. WHERE
  29248. fr.object_id=v_feature_id AND
  29249. subf.type_id=v_ftype_id AND
  29250. featureloc.rank=v_rank AND
  29251. featureloc.locgroup=v_locgroup
  29252. ORDER BY fr.rank
  29253. LOOP
  29254. subseq = subseq || seqrow.residues;
  29255. END LOOP;
  29256. RETURN subseq;
  29257. END
  29258. '
  29259. LANGUAGE 'plpgsql';
  29260. CREATE OR REPLACE FUNCTION subsequence_by_typed_subfeatures(INT,INT)
  29261. RETURNS TEXT AS
  29262. 'SELECT subsequence_by_typed_subfeatures($1,$2,0,0)'
  29263. LANGUAGE 'sql';
  29264. CREATE OR REPLACE FUNCTION feature_subalignments(integer) RETURNS SETOF featureloc AS '
  29265. DECLARE
  29266. return_data featureloc%ROWTYPE;
  29267. f_id ALIAS FOR $1;
  29268. feature_data feature%rowtype;
  29269. featureloc_data featureloc%rowtype;
  29270. s text;
  29271. fmin integer;
  29272. slen integer;
  29273. BEGIN
  29274. --RAISE NOTICE ''feature_id is %'', featureloc_data.feature_id;
  29275. SELECT INTO feature_data * FROM feature WHERE feature_id = f_id;
  29276. FOR featureloc_data IN SELECT * FROM featureloc WHERE feature_id = f_id LOOP
  29277. --RAISE NOTICE ''fmin is %'', featureloc_data.fmin;
  29278. return_data.feature_id = f_id;
  29279. return_data.srcfeature_id = featureloc_data.srcfeature_id;
  29280. return_data.is_fmin_partial = featureloc_data.is_fmin_partial;
  29281. return_data.is_fmax_partial = featureloc_data.is_fmax_partial;
  29282. return_data.strand = featureloc_data.strand;
  29283. return_data.phase = featureloc_data.phase;
  29284. return_data.residue_info = featureloc_data.residue_info;
  29285. return_data.locgroup = featureloc_data.locgroup;
  29286. return_data.rank = featureloc_data.rank;
  29287. s = feature_data.residues;
  29288. fmin = featureloc_data.fmin;
  29289. slen = char_length(s);
  29290. WHILE char_length(s) LOOP
  29291. --RAISE NOTICE ''residues is %'', s;
  29292. --trim off leading match
  29293. s = trim(leading ''|ATCGNatcgn'' from s);
  29294. --if leading match detected
  29295. IF slen > char_length(s) THEN
  29296. return_data.fmin = fmin;
  29297. return_data.fmax = featureloc_data.fmin + (slen - char_length(s));
  29298. --if the string started with a match, return it,
  29299. --otherwise, trim the gaps first (ie do not return this iteration)
  29300. RETURN NEXT return_data;
  29301. END IF;
  29302. --trim off leading gap
  29303. s = trim(leading ''-'' from s);
  29304. fmin = featureloc_data.fmin + (slen - char_length(s));
  29305. END LOOP;
  29306. END LOOP;
  29307. RETURN;
  29308. END;
  29309. ' LANGUAGE 'plpgsql';
  29310. CREATE SCHEMA frange;
  29311. SET search_path = frange,public,pg_catalog;
  29312. CREATE TABLE featuregroup (
  29313. featuregroup_id serial not null,
  29314. primary key (featuregroup_id),
  29315. subject_id int not null,
  29316. foreign key (subject_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  29317. object_id int not null,
  29318. foreign key (object_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  29319. group_id int not null,
  29320. foreign key (group_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  29321. srcfeature_id int null,
  29322. foreign key (srcfeature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  29323. fmin int null,
  29324. fmax int null,
  29325. strand int null,
  29326. is_root int not null default 0,
  29327. constraint featuregroup_c1 unique (subject_id,object_id,group_id,srcfeature_id,fmin,fmax,strand)
  29328. );
  29329. CREATE INDEX featuregroup_idx1 ON featuregroup (subject_id);
  29330. CREATE INDEX featuregroup_idx2 ON featuregroup (object_id);
  29331. CREATE INDEX featuregroup_idx3 ON featuregroup (group_id);
  29332. CREATE INDEX featuregroup_idx4 ON featuregroup (srcfeature_id);
  29333. CREATE INDEX featuregroup_idx5 ON featuregroup (strand);
  29334. CREATE INDEX featuregroup_idx6 ON featuregroup (is_root);
  29335. CREATE OR REPLACE FUNCTION groupoverlaps(int4, int4, varchar) RETURNS setof featuregroup AS '
  29336. SELECT g2.*
  29337. FROM featuregroup g1,
  29338. featuregroup g2
  29339. WHERE g1.is_root = 1
  29340. AND ( g1.srcfeature_id = g2.srcfeature_id OR g2.srcfeature_id IS NULL )
  29341. AND g1.group_id = g2.group_id
  29342. AND g1.srcfeature_id = (SELECT feature_id FROM feature WHERE uniquename = $3)
  29343. AND boxquery($1, $2) @ boxrange(g1.fmin,g2.fmax)
  29344. ' LANGUAGE 'sql';
  29345. CREATE OR REPLACE FUNCTION groupcontains(int4, int4, varchar) RETURNS setof featuregroup AS '
  29346. SELECT *
  29347. FROM groupoverlaps($1,$2,$3)
  29348. WHERE fmin <= $1 AND fmax >= $2
  29349. ' LANGUAGE 'sql';
  29350. CREATE OR REPLACE FUNCTION groupinside(int4, int4, varchar) RETURNS setof featuregroup AS '
  29351. SELECT *
  29352. FROM groupoverlaps($1,$2,$3)
  29353. WHERE fmin >= $1 AND fmax <= $2
  29354. ' LANGUAGE 'sql';
  29355. CREATE OR REPLACE FUNCTION groupidentical(int4, int4, varchar) RETURNS setof featuregroup AS '
  29356. SELECT *
  29357. FROM groupoverlaps($1,$2,$3)
  29358. WHERE fmin = $1 AND fmax = $2
  29359. ' LANGUAGE 'sql';
  29360. CREATE OR REPLACE FUNCTION groupoverlaps(int4, int4) RETURNS setof featuregroup AS '
  29361. SELECT *
  29362. FROM featuregroup
  29363. WHERE is_root = 1
  29364. AND boxquery($1, $2) @ boxrange(fmin,fmax)
  29365. ' LANGUAGE 'sql';
  29366. CREATE OR REPLACE FUNCTION groupoverlaps(_int4, _int4, _varchar) RETURNS setof featuregroup AS '
  29367. DECLARE
  29368. mins alias for $1;
  29369. maxs alias for $2;
  29370. srcs alias for $3;
  29371. f featuregroup%ROWTYPE;
  29372. i int;
  29373. s int;
  29374. BEGIN
  29375. i := 1;
  29376. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  29377. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  29378. FOR f IN
  29379. SELECT *
  29380. FROM featuregroup WHERE group_id IN (
  29381. SELECT group_id FROM featuregroup
  29382. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  29383. AND group_id IN (
  29384. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  29385. WHERE srcfeature_id = s
  29386. )
  29387. )
  29388. LOOP
  29389. RETURN NEXT f;
  29390. END LOOP;
  29391. END LOOP;
  29392. RETURN;
  29393. END;
  29394. ' LANGUAGE 'plpgsql';
  29395. CREATE OR REPLACE FUNCTION groupcontains(_int4, _int4, _varchar) RETURNS setof featuregroup AS '
  29396. DECLARE
  29397. mins alias for $1;
  29398. maxs alias for $2;
  29399. srcs alias for $3;
  29400. f featuregroup%ROWTYPE;
  29401. i int;
  29402. s int;
  29403. BEGIN
  29404. i := 1;
  29405. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  29406. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  29407. FOR f IN
  29408. SELECT *
  29409. FROM featuregroup WHERE group_id IN (
  29410. SELECT group_id FROM featuregroup
  29411. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  29412. AND fmin <= mins[i]
  29413. AND fmax >= maxs[i]
  29414. AND group_id IN (
  29415. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  29416. WHERE srcfeature_id = s
  29417. )
  29418. )
  29419. LOOP
  29420. RETURN NEXT f;
  29421. END LOOP;
  29422. END LOOP;
  29423. RETURN;
  29424. END;
  29425. ' LANGUAGE 'plpgsql';
  29426. CREATE OR REPLACE FUNCTION groupinside(_int4, _int4, _varchar) RETURNS setof featuregroup AS '
  29427. DECLARE
  29428. mins alias for $1;
  29429. maxs alias for $2;
  29430. srcs alias for $3;
  29431. f featuregroup%ROWTYPE;
  29432. i int;
  29433. s int;
  29434. BEGIN
  29435. i := 1;
  29436. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  29437. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  29438. FOR f IN
  29439. SELECT *
  29440. FROM featuregroup WHERE group_id IN (
  29441. SELECT group_id FROM featuregroup
  29442. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  29443. AND fmin >= mins[i]
  29444. AND fmax <= maxs[i]
  29445. AND group_id IN (
  29446. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  29447. WHERE srcfeature_id = s
  29448. )
  29449. )
  29450. LOOP
  29451. RETURN NEXT f;
  29452. END LOOP;
  29453. END LOOP;
  29454. RETURN;
  29455. END;
  29456. ' LANGUAGE 'plpgsql';
  29457. CREATE OR REPLACE FUNCTION groupidentical(_int4, _int4, _varchar) RETURNS setof featuregroup AS '
  29458. DECLARE
  29459. mins alias for $1;
  29460. maxs alias for $2;
  29461. srcs alias for $3;
  29462. f featuregroup%ROWTYPE;
  29463. i int;
  29464. s int;
  29465. BEGIN
  29466. i := 1;
  29467. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  29468. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  29469. FOR f IN
  29470. SELECT *
  29471. FROM featuregroup WHERE group_id IN (
  29472. SELECT group_id FROM featuregroup
  29473. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  29474. AND fmin = mins[i]
  29475. AND fmax = maxs[i]
  29476. AND group_id IN (
  29477. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  29478. WHERE srcfeature_id = s
  29479. )
  29480. )
  29481. LOOP
  29482. RETURN NEXT f;
  29483. END LOOP;
  29484. END LOOP;
  29485. RETURN;
  29486. END;
  29487. ' LANGUAGE 'plpgsql';
  29488. --functional index that depends on the above functions
  29489. CREATE INDEX bingroup_boxrange ON featuregroup USING RTREE (boxrange(fmin, fmax)) WHERE is_root = 1;
  29490. CREATE OR REPLACE FUNCTION _fill_featuregroup(INTEGER, INTEGER) RETURNS INTEGER AS '
  29491. DECLARE
  29492. groupid alias for $1;
  29493. parentid alias for $2;
  29494. g featuregroup%ROWTYPE;
  29495. BEGIN
  29496. FOR g IN
  29497. SELECT DISTINCT 0, fr.subject_id, fr.object_id, groupid, fl.srcfeature_id, fl.fmin, fl.fmax, fl.strand, 0
  29498. FROM feature_relationship AS fr,
  29499. featureloc AS fl
  29500. WHERE fr.object_id = parentid
  29501. AND fr.subject_id = fl.feature_id
  29502. LOOP
  29503. INSERT INTO featuregroup
  29504. (subject_id, object_id, group_id, srcfeature_id, fmin, fmax, strand, is_root)
  29505. VALUES
  29506. (g.subject_id, g.object_id, g.group_id, g.srcfeature_id, g.fmin, g.fmax, g.strand, 0);
  29507. PERFORM _fill_featuregroup(groupid,g.subject_id);
  29508. END LOOP;
  29509. RETURN 1;
  29510. END;
  29511. ' LANGUAGE 'plpgsql';
  29512. CREATE OR REPLACE FUNCTION fill_featuregroup() RETURNS INTEGER AS '
  29513. DECLARE
  29514. p featuregroup%ROWTYPE;
  29515. l featureloc%ROWTYPE;
  29516. isa int;
  29517. c int;
  29518. BEGIN
  29519. TRUNCATE featuregroup;
  29520. SELECT INTO isa cvterm_id FROM cvterm WHERE (name = ''isa'' OR name = ''is_a'');
  29521. -- Recursion is the biggest performance killer for this function.
  29522. -- We can dodge the first round of recursion using the "fr1 / GROUP BY" approach.
  29523. -- Luckily, most feature graphs are only 2 levels deep, so most recursion is
  29524. -- avoidable.
  29525. RAISE NOTICE ''Loading root and singleton features.'';
  29526. FOR p IN
  29527. SELECT DISTINCT 0, f.feature_id, f.feature_id, f.feature_id, srcfeature_id, fmin, fmax, strand, 1
  29528. FROM feature AS f
  29529. LEFT JOIN feature_relationship ON (f.feature_id = object_id)
  29530. LEFT JOIN featureloc ON (f.feature_id = featureloc.feature_id)
  29531. WHERE f.feature_id NOT IN ( SELECT subject_id FROM feature_relationship )
  29532. AND srcfeature_id IS NOT NULL
  29533. LOOP
  29534. INSERT INTO featuregroup
  29535. (subject_id, object_id, group_id, srcfeature_id, fmin, fmax, strand, is_root)
  29536. VALUES
  29537. (p.object_id, p.object_id, p.object_id, p.srcfeature_id, p.fmin, p.fmax, p.strand, 1);
  29538. END LOOP;
  29539. RAISE NOTICE ''Loading child features. If your database contains grandchild'';
  29540. RAISE NOTICE ''features, they will be loaded recursively and may take a long time.'';
  29541. FOR p IN
  29542. 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)
  29543. FROM feature_relationship AS fr0
  29544. LEFT JOIN feature_relationship AS fr1 ON ( fr0.subject_id = fr1.object_id),
  29545. featureloc AS fl
  29546. WHERE fr0.subject_id = fl.feature_id
  29547. AND fr0.object_id IN (
  29548. SELECT f.feature_id
  29549. FROM feature AS f
  29550. LEFT JOIN feature_relationship ON (f.feature_id = object_id)
  29551. LEFT JOIN featureloc ON (f.feature_id = featureloc.feature_id)
  29552. WHERE f.feature_id NOT IN ( SELECT subject_id FROM feature_relationship )
  29553. AND f.feature_id IN ( SELECT object_id FROM feature_relationship )
  29554. AND srcfeature_id IS NOT NULL
  29555. )
  29556. GROUP BY fr0.subject_id, fr0.object_id, fl.srcfeature_id, fl.fmin, fl.fmax, fl.strand
  29557. LOOP
  29558. INSERT INTO featuregroup
  29559. (subject_id, object_id, group_id, srcfeature_id, fmin, fmax, strand, is_root)
  29560. VALUES
  29561. (p.subject_id, p.object_id, p.object_id, p.srcfeature_id, p.fmin, p.fmax, p.strand, 0);
  29562. IF ( p.is_root > 0 ) THEN
  29563. PERFORM _fill_featuregroup(p.subject_id,p.subject_id);
  29564. END IF;
  29565. END LOOP;
  29566. RETURN 1;
  29567. END;
  29568. ' LANGUAGE 'plpgsql';
  29569. SET search_path = public,pg_catalog;
  29570. --- create ontology that has instantiated located_sequence_feature part of SO
  29571. --- way as it is written, the function can not be execute more than once in one connection
  29572. --- when you get error like ERROR: relation with OID NNNNN does not exist
  29573. --- as this is not meant to execute >1 times in one session so it should never happen
  29574. --- except at testing and test failed
  29575. --- disconnect and try again, in other words, it can NOT be executed >1 time in one connection
  29576. --- if using EXECUTE, we can avoid this problem but code is hard to write and read (lots of ', escape char)
  29577. --NOTE: private, don't call directly as relying on having temp table tmpcvtr
  29578. --DROP TYPE soi_type CASCADE;
  29579. CREATE TYPE soi_type AS (
  29580. type_id INT,
  29581. subject_id INT,
  29582. object_id INT
  29583. );
  29584. CREATE OR REPLACE FUNCTION _fill_cvtermpath4soinode(INTEGER, INTEGER, INTEGER, INTEGER, INTEGER) RETURNS INTEGER AS
  29585. '
  29586. DECLARE
  29587. origin alias for $1;
  29588. child_id alias for $2;
  29589. cvid alias for $3;
  29590. typeid alias for $4;
  29591. depth alias for $5;
  29592. cterm soi_type%ROWTYPE;
  29593. exist_c int;
  29594. BEGIN
  29595. --RAISE NOTICE ''depth=% o=%, root=%, cv=%, t=%'', depth,origin,child_id,cvid,typeid;
  29596. SELECT INTO exist_c count(*) FROM cvtermpath WHERE cv_id = cvid AND object_id = origin AND subject_id = child_id AND pathdistance = depth;
  29597. --- longest path
  29598. IF (exist_c > 0) THEN
  29599. UPDATE cvtermpath SET pathdistance = depth WHERE cv_id = cvid AND object_id = origin AND subject_id = child_id;
  29600. ELSE
  29601. INSERT INTO cvtermpath (object_id, subject_id, cv_id, type_id, pathdistance) VALUES(origin, child_id, cvid, typeid, depth);
  29602. END IF;
  29603. FOR cterm IN SELECT tmp_type AS type_id, subject_id FROM tmpcvtr WHERE object_id = child_id LOOP
  29604. PERFORM _fill_cvtermpath4soinode(origin, cterm.subject_id, cvid, cterm.type_id, depth+1);
  29605. END LOOP;
  29606. RETURN 1;
  29607. END;
  29608. '
  29609. LANGUAGE 'plpgsql';
  29610. CREATE OR REPLACE FUNCTION _fill_cvtermpath4soi(INTEGER, INTEGER) RETURNS INTEGER AS
  29611. '
  29612. DECLARE
  29613. rootid alias for $1;
  29614. cvid alias for $2;
  29615. ttype int;
  29616. cterm soi_type%ROWTYPE;
  29617. BEGIN
  29618. SELECT INTO ttype cvterm_id FROM cvterm WHERE name = ''isa'';
  29619. --RAISE NOTICE ''got ttype %'',ttype;
  29620. PERFORM _fill_cvtermpath4soinode(rootid, rootid, cvid, ttype, 0);
  29621. FOR cterm IN SELECT tmp_type AS type_id, subject_id FROM tmpcvtr WHERE object_id = rootid LOOP
  29622. PERFORM _fill_cvtermpath4soi(cterm.subject_id, cvid);
  29623. END LOOP;
  29624. RETURN 1;
  29625. END;
  29626. '
  29627. LANGUAGE 'plpgsql';
  29628. --- use tmpcvtr to temp store soi (virtural ontology)
  29629. --- using tmp tables is faster than using recursive function to create feature type relationship
  29630. --- since it gets feature type rel set by set instead of one by one
  29631. --- and getting feature type rel is very expensive
  29632. --- call _fillcvtermpath4soi to create path for the virtual ontology
  29633. CREATE OR REPLACE FUNCTION create_soi() RETURNS INTEGER AS
  29634. '
  29635. DECLARE
  29636. parent soi_type%ROWTYPE;
  29637. isa_id cvterm.cvterm_id%TYPE;
  29638. soi_term TEXT := ''soi'';
  29639. soi_def TEXT := ''ontology of SO feature instantiated in database'';
  29640. soi_cvid INTEGER;
  29641. soiterm_id INTEGER;
  29642. pcount INTEGER;
  29643. count INTEGER := 0;
  29644. cquery TEXT;
  29645. BEGIN
  29646. SELECT INTO isa_id cvterm_id FROM cvterm WHERE name = ''isa'';
  29647. SELECT INTO soi_cvid cv_id FROM cv WHERE name = soi_term;
  29648. IF (soi_cvid > 0) THEN
  29649. DELETE FROM cvtermpath WHERE cv_id = soi_cvid;
  29650. DELETE FROM cvterm WHERE cv_id = soi_cvid;
  29651. ELSE
  29652. INSERT INTO cv (name, definition) VALUES(soi_term, soi_def);
  29653. END IF;
  29654. SELECT INTO soi_cvid cv_id FROM cv WHERE name = soi_term;
  29655. INSERT INTO cvterm (name, cv_id) VALUES(soi_term, soi_cvid);
  29656. SELECT INTO soiterm_id cvterm_id FROM cvterm WHERE name = soi_term;
  29657. CREATE TEMP TABLE tmpcvtr (tmp_type INT, type_id INT, subject_id INT, object_id INT);
  29658. CREATE UNIQUE INDEX u_tmpcvtr ON tmpcvtr(subject_id, object_id);
  29659. INSERT INTO tmpcvtr (tmp_type, type_id, subject_id, object_id)
  29660. SELECT DISTINCT isa_id, soiterm_id, f.type_id, soiterm_id FROM feature f, cvterm t
  29661. WHERE f.type_id = t.cvterm_id AND f.type_id > 0;
  29662. EXECUTE ''select * from tmpcvtr where type_id = '' || soiterm_id || '';'';
  29663. get diagnostics pcount = row_count;
  29664. raise notice ''all types in feature %'',pcount;
  29665. --- do it hard way, delete any child feature type from above (NOT IN clause did not work)
  29666. FOR parent IN SELECT DISTINCT 0, t.cvterm_id, 0 FROM feature c, feature_relationship fr, cvterm t
  29667. WHERE t.cvterm_id = c.type_id AND c.feature_id = fr.subject_id LOOP
  29668. DELETE FROM tmpcvtr WHERE type_id = soiterm_id and object_id = soiterm_id
  29669. AND subject_id = parent.subject_id;
  29670. END LOOP;
  29671. EXECUTE ''select * from tmpcvtr where type_id = '' || soiterm_id || '';'';
  29672. get diagnostics pcount = row_count;
  29673. raise notice ''all types in feature after delete child %'',pcount;
  29674. --- create feature type relationship (store in tmpcvtr)
  29675. CREATE TEMP TABLE tmproot (cv_id INTEGER not null, cvterm_id INTEGER not null, status INTEGER DEFAULT 0);
  29676. cquery := ''SELECT * FROM tmproot tmp WHERE tmp.status = 0;'';
  29677. ---temp use tmpcvtr to hold instantiated SO relationship for speed
  29678. ---use soterm_id as type_id, will delete from tmpcvtr
  29679. ---us tmproot for this as well
  29680. INSERT INTO tmproot (cv_id, cvterm_id, status) SELECT DISTINCT soi_cvid, c.subject_id, 0 FROM tmpcvtr c
  29681. WHERE c.object_id = soiterm_id;
  29682. EXECUTE cquery;
  29683. GET DIAGNOSTICS pcount = ROW_COUNT;
  29684. WHILE (pcount > 0) LOOP
  29685. RAISE NOTICE ''num child temp (to be inserted) in tmpcvtr: %'',pcount;
  29686. INSERT INTO tmpcvtr (tmp_type, type_id, subject_id, object_id)
  29687. SELECT DISTINCT fr.type_id, soiterm_id, c.type_id, p.cvterm_id FROM feature c, feature_relationship fr,
  29688. tmproot p, feature pf, cvterm t WHERE c.feature_id = fr.subject_id AND fr.object_id = pf.feature_id
  29689. AND p.cvterm_id = pf.type_id AND t.cvterm_id = c.type_id AND p.status = 0;
  29690. UPDATE tmproot SET status = 1 WHERE status = 0;
  29691. INSERT INTO tmproot (cv_id, cvterm_id, status)
  29692. SELECT DISTINCT soi_cvid, c.type_id, 0 FROM feature c, feature_relationship fr,
  29693. tmproot tmp, feature p, cvterm t WHERE c.feature_id = fr.subject_id AND fr.object_id = p.feature_id
  29694. AND tmp.cvterm_id = p.type_id AND t.cvterm_id = c.type_id AND tmp.status = 1;
  29695. UPDATE tmproot SET status = 2 WHERE status = 1;
  29696. EXECUTE cquery;
  29697. GET DIAGNOSTICS pcount = ROW_COUNT;
  29698. END LOOP;
  29699. DELETE FROM tmproot;
  29700. ---get transitive closure for soi
  29701. PERFORM _fill_cvtermpath4soi(soiterm_id, soi_cvid);
  29702. DROP TABLE tmpcvtr;
  29703. DROP TABLE tmproot;
  29704. RETURN 1;
  29705. END;
  29706. '
  29707. LANGUAGE 'plpgsql';
  29708. ---bad precedence: change customed type name
  29709. ---drop here to remove old function
  29710. --DROP TYPE feature_by_cvt_type CASCADE;
  29711. --DROP TYPE fxgsfids_type CASCADE;
  29712. --DROP TYPE feature_by_fx_type CASCADE;
  29713. CREATE TYPE feature_by_fx_type AS (
  29714. feature_id INTEGER,
  29715. depth INT
  29716. );
  29717. CREATE OR REPLACE FUNCTION get_sub_feature_ids(text) RETURNS SETOF feature_by_fx_type AS
  29718. '
  29719. DECLARE
  29720. sql alias for $1;
  29721. myrc feature_by_fx_type%ROWTYPE;
  29722. myrc2 feature_by_fx_type%ROWTYPE;
  29723. BEGIN
  29724. FOR myrc IN EXECUTE sql LOOP
  29725. FOR myrc2 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id) LOOP
  29726. RETURN NEXT myrc2;
  29727. END LOOP;
  29728. END LOOP;
  29729. RETURN;
  29730. END;
  29731. '
  29732. LANGUAGE 'plpgsql';
  29733. CREATE OR REPLACE FUNCTION get_up_feature_ids(text) RETURNS SETOF feature_by_fx_type AS
  29734. '
  29735. DECLARE
  29736. sql alias for $1;
  29737. myrc feature_by_fx_type%ROWTYPE;
  29738. myrc2 feature_by_fx_type%ROWTYPE;
  29739. BEGIN
  29740. FOR myrc IN EXECUTE sql LOOP
  29741. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id) LOOP
  29742. RETURN NEXT myrc2;
  29743. END LOOP;
  29744. END LOOP;
  29745. RETURN;
  29746. END;
  29747. '
  29748. LANGUAGE 'plpgsql';
  29749. CREATE OR REPLACE FUNCTION get_feature_ids(text) RETURNS SETOF feature_by_fx_type AS
  29750. '
  29751. DECLARE
  29752. sql alias for $1;
  29753. myrc feature_by_fx_type%ROWTYPE;
  29754. myrc2 feature_by_fx_type%ROWTYPE;
  29755. myrc3 feature_by_fx_type%ROWTYPE;
  29756. BEGIN
  29757. FOR myrc IN EXECUTE sql LOOP
  29758. RETURN NEXT myrc;
  29759. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id) LOOP
  29760. RETURN NEXT myrc2;
  29761. END LOOP;
  29762. FOR myrc3 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id) LOOP
  29763. RETURN NEXT myrc3;
  29764. END LOOP;
  29765. END LOOP;
  29766. RETURN;
  29767. END;
  29768. '
  29769. LANGUAGE 'plpgsql';
  29770. CREATE OR REPLACE FUNCTION get_sub_feature_ids(integer) RETURNS SETOF feature_by_fx_type AS
  29771. '
  29772. DECLARE
  29773. root alias for $1;
  29774. myrc feature_by_fx_type%ROWTYPE;
  29775. myrc2 feature_by_fx_type%ROWTYPE;
  29776. BEGIN
  29777. FOR myrc IN SELECT DISTINCT subject_id AS feature_id FROM feature_relationship WHERE object_id = root LOOP
  29778. RETURN NEXT myrc;
  29779. FOR myrc2 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id) LOOP
  29780. RETURN NEXT myrc2;
  29781. END LOOP;
  29782. END LOOP;
  29783. RETURN;
  29784. END;
  29785. '
  29786. LANGUAGE 'plpgsql';
  29787. CREATE OR REPLACE FUNCTION get_up_feature_ids(integer) RETURNS SETOF feature_by_fx_type AS
  29788. '
  29789. DECLARE
  29790. leaf alias for $1;
  29791. myrc feature_by_fx_type%ROWTYPE;
  29792. myrc2 feature_by_fx_type%ROWTYPE;
  29793. BEGIN
  29794. FOR myrc IN SELECT DISTINCT object_id AS feature_id FROM feature_relationship WHERE subject_id = leaf LOOP
  29795. RETURN NEXT myrc;
  29796. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id) LOOP
  29797. RETURN NEXT myrc2;
  29798. END LOOP;
  29799. END LOOP;
  29800. RETURN;
  29801. END;
  29802. '
  29803. LANGUAGE 'plpgsql';
  29804. CREATE OR REPLACE FUNCTION get_sub_feature_ids(integer, integer) RETURNS SETOF feature_by_fx_type AS
  29805. '
  29806. DECLARE
  29807. root alias for $1;
  29808. depth alias for $2;
  29809. myrc feature_by_fx_type%ROWTYPE;
  29810. myrc2 feature_by_fx_type%ROWTYPE;
  29811. BEGIN
  29812. FOR myrc IN SELECT DISTINCT subject_id AS feature_id, depth FROM feature_relationship WHERE object_id = root LOOP
  29813. RETURN NEXT myrc;
  29814. FOR myrc2 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id,depth+1) LOOP
  29815. RETURN NEXT myrc2;
  29816. END LOOP;
  29817. END LOOP;
  29818. RETURN;
  29819. END;
  29820. '
  29821. LANGUAGE 'plpgsql';
  29822. --- depth is reversed and meanless when union with results from get_sub_feature_ids
  29823. CREATE OR REPLACE FUNCTION get_up_feature_ids(integer, integer) RETURNS SETOF feature_by_fx_type AS
  29824. '
  29825. DECLARE
  29826. leaf alias for $1;
  29827. depth alias for $2;
  29828. myrc feature_by_fx_type%ROWTYPE;
  29829. myrc2 feature_by_fx_type%ROWTYPE;
  29830. BEGIN
  29831. FOR myrc IN SELECT DISTINCT object_id AS feature_id, depth FROM feature_relationship WHERE subject_id = leaf LOOP
  29832. RETURN NEXT myrc;
  29833. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id,depth+1) LOOP
  29834. RETURN NEXT myrc2;
  29835. END LOOP;
  29836. END LOOP;
  29837. RETURN;
  29838. END;
  29839. '
  29840. LANGUAGE 'plpgsql';
  29841. --- children feature ids only (not include itself--parent) for SO type and range (src)
  29842. 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
  29843. '
  29844. DECLARE
  29845. gtype alias for $1;
  29846. src alias for $2;
  29847. is_an alias for $3;
  29848. query text;
  29849. myrc feature_by_fx_type%ROWTYPE;
  29850. myrc2 feature_by_fx_type%ROWTYPE;
  29851. BEGIN
  29852. query := ''SELECT DISTINCT f.feature_id FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id)
  29853. INNER join featureloc fl
  29854. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  29855. WHERE t.name = '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  29856. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  29857. IF (STRPOS(gtype, ''%'') > 0) THEN
  29858. query := ''SELECT DISTINCT f.feature_id FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id)
  29859. INNER join featureloc fl
  29860. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  29861. WHERE t.name like '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  29862. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  29863. END IF;
  29864. FOR myrc IN SELECT * FROM get_sub_feature_ids(query) LOOP
  29865. RETURN NEXT myrc;
  29866. END LOOP;
  29867. RETURN;
  29868. END;
  29869. '
  29870. LANGUAGE 'plpgsql';
  29871. --- by SO type, usefull for tRNA, ncRNA, etc
  29872. CREATE OR REPLACE FUNCTION get_feature_ids_by_type(cvterm.name%TYPE, char(1)) RETURNS SETOF feature_by_fx_type AS
  29873. '
  29874. DECLARE
  29875. gtype alias for $1;
  29876. is_an alias for $2;
  29877. query TEXT;
  29878. myrc feature_by_fx_type%ROWTYPE;
  29879. myrc2 feature_by_fx_type%ROWTYPE;
  29880. BEGIN
  29881. query := ''SELECT DISTINCT f.feature_id
  29882. FROM feature f, cvterm t WHERE t.cvterm_id = f.type_id AND t.name = '' || quote_literal(gtype) ||
  29883. '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  29884. IF (STRPOS(gtype, ''%'') > 0) THEN
  29885. query := ''SELECT DISTINCT f.feature_id
  29886. FROM feature f, cvterm t WHERE t.cvterm_id = f.type_id AND t.name like ''
  29887. || quote_literal(gtype) || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  29888. END IF;
  29889. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  29890. RETURN NEXT myrc;
  29891. END LOOP;
  29892. RETURN;
  29893. END;
  29894. '
  29895. LANGUAGE 'plpgsql';
  29896. 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
  29897. '
  29898. DECLARE
  29899. gtype alias for $1;
  29900. src alias for $2;
  29901. is_an alias for $3;
  29902. query TEXT;
  29903. myrc feature_by_fx_type%ROWTYPE;
  29904. myrc2 feature_by_fx_type%ROWTYPE;
  29905. BEGIN
  29906. query := ''SELECT DISTINCT f.feature_id
  29907. FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id) INNER join featureloc fl
  29908. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  29909. WHERE t.name = '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  29910. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  29911. IF (STRPOS(gtype, ''%'') > 0) THEN
  29912. query := ''SELECT DISTINCT f.feature_id
  29913. FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id) INNER join featureloc fl
  29914. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  29915. WHERE t.name like '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  29916. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  29917. END IF;
  29918. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  29919. RETURN NEXT myrc;
  29920. END LOOP;
  29921. RETURN;
  29922. END;
  29923. '
  29924. LANGUAGE 'plpgsql';
  29925. 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
  29926. '
  29927. DECLARE
  29928. gtype alias for $1;
  29929. name alias for $2;
  29930. is_an alias for $3;
  29931. query TEXT;
  29932. myrc feature_by_fx_type%ROWTYPE;
  29933. myrc2 feature_by_fx_type%ROWTYPE;
  29934. BEGIN
  29935. query := ''SELECT DISTINCT f.feature_id
  29936. FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id)
  29937. WHERE t.name = '' || quote_literal(gtype) || '' AND (f.uniquename = '' || quote_literal(name)
  29938. || '' OR f.name = '' || quote_literal(name) || '') AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  29939. IF (STRPOS(name, ''%'') > 0) THEN
  29940. query := ''SELECT DISTINCT f.feature_id
  29941. FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id)
  29942. WHERE t.name = '' || quote_literal(gtype) || '' AND (f.uniquename like '' || quote_literal(name)
  29943. || '' OR f.name like '' || quote_literal(name) || '') AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  29944. END IF;
  29945. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  29946. RETURN NEXT myrc;
  29947. END LOOP;
  29948. RETURN;
  29949. END;
  29950. '
  29951. LANGUAGE 'plpgsql';
  29952. --- get all feature ids (including children) for feature that has an ontology term (say GO function)
  29953. CREATE OR REPLACE FUNCTION get_feature_ids_by_ont(cv.name%TYPE,cvterm.name%TYPE) RETURNS SETOF feature_by_fx_type AS
  29954. '
  29955. DECLARE
  29956. aspect alias for $1;
  29957. term alias for $2;
  29958. query TEXT;
  29959. myrc feature_by_fx_type%ROWTYPE;
  29960. myrc2 feature_by_fx_type%ROWTYPE;
  29961. BEGIN
  29962. query := ''SELECT DISTINCT fcvt.feature_id
  29963. FROM feature_cvterm fcvt, cv, cvterm t WHERE cv.cv_id = t.cv_id AND
  29964. t.cvterm_id = fcvt.cvterm_id AND cv.name = '' || quote_literal(aspect) ||
  29965. '' AND t.name = '' || quote_literal(term) || '';'';
  29966. IF (STRPOS(term, ''%'') > 0) THEN
  29967. query := ''SELECT DISTINCT fcvt.feature_id
  29968. FROM feature_cvterm fcvt, cv, cvterm t WHERE cv.cv_id = t.cv_id AND
  29969. t.cvterm_id = fcvt.cvterm_id AND cv.name = '' || quote_literal(aspect) ||
  29970. '' AND t.name like '' || quote_literal(term) || '';'';
  29971. END IF;
  29972. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  29973. RETURN NEXT myrc;
  29974. END LOOP;
  29975. RETURN;
  29976. END;
  29977. '
  29978. LANGUAGE 'plpgsql';
  29979. CREATE OR REPLACE FUNCTION get_feature_ids_by_ont_root(cv.name%TYPE,cvterm.name%TYPE) RETURNS SETOF feature_by_fx_type AS
  29980. '
  29981. DECLARE
  29982. aspect alias for $1;
  29983. term alias for $2;
  29984. query TEXT;
  29985. subquery TEXT;
  29986. myrc feature_by_fx_type%ROWTYPE;
  29987. myrc2 feature_by_fx_type%ROWTYPE;
  29988. BEGIN
  29989. subquery := ''SELECT t.cvterm_id FROM cv, cvterm t WHERE cv.cv_id = t.cv_id
  29990. AND cv.name = '' || quote_literal(aspect) || '' AND t.name = '' || quote_literal(term) || '';'';
  29991. IF (STRPOS(term, ''%'') > 0) THEN
  29992. subquery := ''SELECT t.cvterm_id FROM cv, cvterm t WHERE cv.cv_id = t.cv_id
  29993. AND cv.name = '' || quote_literal(aspect) || '' AND t.name like '' || quote_literal(term) || '';'';
  29994. END IF;
  29995. query := ''SELECT DISTINCT fcvt.feature_id
  29996. 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);'';
  29997. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  29998. RETURN NEXT myrc;
  29999. END LOOP;
  30000. RETURN;
  30001. END;
  30002. '
  30003. LANGUAGE 'plpgsql';
  30004. --- get all feature ids (including children) for feature with the property (type, val)
  30005. CREATE OR REPLACE FUNCTION get_feature_ids_by_property(cvterm.name%TYPE,varchar) RETURNS SETOF feature_by_fx_type AS
  30006. '
  30007. DECLARE
  30008. p_type alias for $1;
  30009. p_val alias for $2;
  30010. query TEXT;
  30011. myrc feature_by_fx_type%ROWTYPE;
  30012. myrc2 feature_by_fx_type%ROWTYPE;
  30013. BEGIN
  30014. query := ''SELECT DISTINCT fprop.feature_id
  30015. FROM featureprop fprop, cvterm t WHERE t.cvterm_id = fprop.type_id AND t.name = '' ||
  30016. quote_literal(p_type) || '' AND fprop.value = '' || quote_literal(p_val) || '';'';
  30017. IF (STRPOS(p_val, ''%'') > 0) THEN
  30018. query := ''SELECT DISTINCT fprop.feature_id
  30019. FROM featureprop fprop, cvterm t WHERE t.cvterm_id = fprop.type_id AND t.name = '' ||
  30020. quote_literal(p_type) || '' AND fprop.value like '' || quote_literal(p_val) || '';'';
  30021. END IF;
  30022. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  30023. RETURN NEXT myrc;
  30024. END LOOP;
  30025. RETURN;
  30026. END;
  30027. '
  30028. LANGUAGE 'plpgsql';
  30029. --- get all feature ids (including children) for feature with the property val
  30030. CREATE OR REPLACE FUNCTION get_feature_ids_by_propval(varchar) RETURNS SETOF feature_by_fx_type AS
  30031. '
  30032. DECLARE
  30033. p_val alias for $1;
  30034. query TEXT;
  30035. myrc feature_by_fx_type%ROWTYPE;
  30036. myrc2 feature_by_fx_type%ROWTYPE;
  30037. BEGIN
  30038. query := ''SELECT DISTINCT fprop.feature_id
  30039. FROM featureprop fprop WHERE fprop.value = '' || quote_literal(p_val) || '';'';
  30040. IF (STRPOS(p_val, ''%'') > 0) THEN
  30041. query := ''SELECT DISTINCT fprop.feature_id
  30042. FROM featureprop fprop WHERE fprop.value like '' || quote_literal(p_val) || '';'';
  30043. END IF;
  30044. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  30045. RETURN NEXT myrc;
  30046. END LOOP;
  30047. RETURN;
  30048. END;
  30049. '
  30050. LANGUAGE 'plpgsql';
  30051. ---4 args: ptype, ctype, count, operator (valid SQL number comparison operator), and is_analysis
  30052. ---get feature ids for any node with type = ptype whose child node type = ctype
  30053. ---and child node feature count comparing (using operator) to ccount
  30054. 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
  30055. '
  30056. DECLARE
  30057. ptype alias for $1;
  30058. ctype alias for $2;
  30059. ccount alias for $3;
  30060. operator alias for $4;
  30061. is_an alias for $5;
  30062. query TEXT;
  30063. myrc feature_by_fx_type%ROWTYPE;
  30064. myrc2 feature_by_fx_type %ROWTYPE;
  30065. BEGIN
  30066. query := ''SELECT DISTINCT f.feature_id
  30067. FROM feature f INNER join (select count(*) as c, p.feature_id FROM feature p
  30068. INNER join cvterm pt ON (p.type_id = pt.cvterm_id) INNER join feature_relationship fr
  30069. ON (p.feature_id = fr.object_id) INNER join feature c ON (c.feature_id = fr.subject_id)
  30070. INNER join cvterm ct ON (c.type_id = ct.cvterm_id)
  30071. WHERE pt.name = '' || quote_literal(ptype) || '' AND ct.name = '' || quote_literal(ctype)
  30072. || '' AND p.is_analysis = '' || quote_literal(is_an) || '' group by p.feature_id) as cq
  30073. ON (cq.feature_id = f.feature_id) WHERE cq.c '' || operator || ccount || '';'';
  30074. ---RAISE NOTICE ''%'', query;
  30075. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  30076. RETURN NEXT myrc;
  30077. END LOOP;
  30078. RETURN;
  30079. END;
  30080. '
  30081. LANGUAGE 'plpgsql';
  30082. -- ==========================================
  30083. -- Chado companalysis module
  30084. --
  30085. -- =================================================================
  30086. -- Dependencies:
  30087. --
  30088. -- :import feature from sequence
  30089. -- :import cvterm from cv
  30090. -- =================================================================
  30091. -- ================================================
  30092. -- TABLE: analysis
  30093. -- ================================================
  30094. create table analysis (
  30095. analysis_id serial not null,
  30096. primary key (analysis_id),
  30097. name varchar(255),
  30098. description text,
  30099. program varchar(255) not null,
  30100. programversion varchar(255) not null,
  30101. algorithm varchar(255),
  30102. sourcename varchar(255),
  30103. sourceversion varchar(255),
  30104. sourceuri text,
  30105. timeexecuted timestamp not null default current_timestamp,
  30106. constraint analysis_c1 unique (program,programversion,sourcename)
  30107. );
  30108. COMMENT ON TABLE analysis IS 'An analysis is a particular type of a
  30109. computational analysis; it may be a blast of one sequence against
  30110. another, or an all by all blast, or a different kind of analysis
  30111. altogether. It is a single unit of computation.';
  30112. COMMENT ON COLUMN analysis.name IS 'A way of grouping analyses. This
  30113. should be a handy short identifier that can help people find an
  30114. analysis they want. For instance "tRNAscan", "cDNA", "FlyPep",
  30115. "SwissProt", and it should not be assumed to be unique. For instance, there may be lots of separate analyses done against a cDNA database.';
  30116. COMMENT ON COLUMN analysis.program IS 'Program name, e.g. blastx, blastp, sim4, genscan.';
  30117. COMMENT ON COLUMN analysis.programversion IS 'Version description, e.g. TBLASTX 2.0MP-WashU [09-Nov-2000].';
  30118. COMMENT ON COLUMN analysis.algorithm IS 'Algorithm name, e.g. blast.';
  30119. COMMENT ON COLUMN analysis.sourcename IS 'Source name, e.g. cDNA, SwissProt.';
  30120. 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).';
  30121. -- ================================================
  30122. -- TABLE: analysisprop
  30123. -- ================================================
  30124. create table analysisprop (
  30125. analysisprop_id serial not null,
  30126. primary key (analysisprop_id),
  30127. analysis_id int not null,
  30128. foreign key (analysis_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  30129. type_id int not null,
  30130. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  30131. value text,
  30132. rank int not null default 0,
  30133. constraint analysisprop_c1 unique (analysis_id,type_id,rank)
  30134. );
  30135. create index analysisprop_idx1 on analysisprop (analysis_id);
  30136. create index analysisprop_idx2 on analysisprop (type_id);
  30137. -- ================================================
  30138. -- TABLE: analysisfeature
  30139. -- ================================================
  30140. create table analysisfeature (
  30141. analysisfeature_id serial not null,
  30142. primary key (analysisfeature_id),
  30143. feature_id int not null,
  30144. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  30145. analysis_id int not null,
  30146. foreign key (analysis_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  30147. rawscore double precision,
  30148. normscore double precision,
  30149. significance double precision,
  30150. identity double precision,
  30151. constraint analysisfeature_c1 unique (feature_id,analysis_id)
  30152. );
  30153. create index analysisfeature_idx1 on analysisfeature (feature_id);
  30154. create index analysisfeature_idx2 on analysisfeature (analysis_id);
  30155. 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,
  30156. with rank indicating query/subject';
  30157. 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.';
  30158. 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:
  30159. * 0 <= significance <= n, where n is a positive number, theoretically unbounded but unlikely to be more than 10
  30160. * low numbers are better than high numbers.';
  30161. COMMENT ON COLUMN analysisfeature.normscore IS 'This is the rawscore but
  30162. semi-normalized. Complete normalization to allow comparison of
  30163. features generated by different programs would be nice but too
  30164. difficult. Instead the normalization should strive to enforce the
  30165. following semantics: * normscores are floating point numbers >= 0,
  30166. * 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.';
  30167. 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.';
  30168. CREATE TABLE analysisfeatureprop (
  30169. analysisfeatureprop_id SERIAL PRIMARY KEY,
  30170. analysisfeature_id INTEGER NOT NULL REFERENCES analysisfeature(analysisfeature_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
  30171. type_id INTEGER NOT NULL REFERENCES cvterm(cvterm_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
  30172. value TEXT,
  30173. rank INTEGER NOT NULL,
  30174. CONSTRAINT analysisfeature_id_type_id_rank UNIQUE(analysisfeature_id, type_id, rank)
  30175. );
  30176. CREATE OR REPLACE FUNCTION store_analysis (VARCHAR,VARCHAR,VARCHAR)
  30177. RETURNS INT AS
  30178. 'DECLARE
  30179. v_program ALIAS FOR $1;
  30180. v_programversion ALIAS FOR $2;
  30181. v_sourcename ALIAS FOR $3;
  30182. pkval INTEGER;
  30183. BEGIN
  30184. SELECT INTO pkval analysis_id
  30185. FROM analysis
  30186. WHERE program=v_program AND
  30187. programversion=v_programversion AND
  30188. sourcename=v_sourcename;
  30189. IF NOT FOUND THEN
  30190. INSERT INTO analysis
  30191. (program,programversion,sourcename)
  30192. VALUES
  30193. (v_program,v_programversion,v_sourcename);
  30194. RETURN currval(''analysis_analysis_id_seq'');
  30195. END IF;
  30196. RETURN pkval;
  30197. END;
  30198. ' LANGUAGE 'plpgsql';
  30199. --CREATE OR REPLACE FUNCTION store_analysisfeature
  30200. --()
  30201. --RETURNS INT AS
  30202. --'DECLARE
  30203. -- v_srcfeature_id ALIAS FOR $1;
  30204. -- ==========================================
  30205. -- Chado phenotype module
  30206. --
  30207. -- =================================================================
  30208. -- Dependencies:
  30209. --
  30210. -- :import cvterm from cv
  30211. -- :import feature from sequence
  30212. -- =================================================================
  30213. -- ================================================
  30214. -- TABLE: phenotype
  30215. -- ================================================
  30216. CREATE TABLE phenotype (
  30217. phenotype_id SERIAL NOT NULL,
  30218. primary key (phenotype_id),
  30219. uniquename TEXT NOT NULL,
  30220. observable_id INT,
  30221. FOREIGN KEY (observable_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  30222. attr_id INT,
  30223. FOREIGN KEY (attr_id) REFERENCES cvterm (cvterm_id) ON DELETE SET NULL,
  30224. value TEXT,
  30225. cvalue_id INT,
  30226. FOREIGN KEY (cvalue_id) REFERENCES cvterm (cvterm_id) ON DELETE SET NULL,
  30227. assay_id INT,
  30228. FOREIGN KEY (assay_id) REFERENCES cvterm (cvterm_id) ON DELETE SET NULL,
  30229. CONSTRAINT phenotype_c1 UNIQUE (uniquename)
  30230. );
  30231. CREATE INDEX phenotype_idx1 ON phenotype (cvalue_id);
  30232. CREATE INDEX phenotype_idx2 ON phenotype (observable_id);
  30233. CREATE INDEX phenotype_idx3 ON phenotype (attr_id);
  30234. COMMENT ON TABLE phenotype IS 'A phenotypic statement, or a single
  30235. atomic phenotypic observation, is a controlled sentence describing
  30236. observable effects of non-wild type function. E.g. Obs=eye, attribute=color, cvalue=red.';
  30237. COMMENT ON COLUMN phenotype.observable_id IS 'The entity: e.g. anatomy_part, biological_process.';
  30238. COMMENT ON COLUMN phenotype.attr_id IS 'Phenotypic attribute (quality, property, attribute, character) - drawn from PATO.';
  30239. COMMENT ON COLUMN phenotype.value IS 'Value of attribute - unconstrained free text. Used only if cvalue_id is not appropriate.';
  30240. COMMENT ON COLUMN phenotype.cvalue_id IS 'Phenotype attribute value (state).';
  30241. COMMENT ON COLUMN phenotype.assay_id IS 'Evidence type.';
  30242. -- ================================================
  30243. -- TABLE: phenotype_cvterm
  30244. -- ================================================
  30245. CREATE TABLE phenotype_cvterm (
  30246. phenotype_cvterm_id SERIAL NOT NULL,
  30247. primary key (phenotype_cvterm_id),
  30248. phenotype_id INT NOT NULL,
  30249. FOREIGN KEY (phenotype_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  30250. cvterm_id INT NOT NULL,
  30251. FOREIGN KEY (cvterm_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  30252. rank int not null default 0,
  30253. CONSTRAINT phenotype_cvterm_c1 UNIQUE (phenotype_id, cvterm_id, rank)
  30254. );
  30255. CREATE INDEX phenotype_cvterm_idx1 ON phenotype_cvterm (phenotype_id);
  30256. CREATE INDEX phenotype_cvterm_idx2 ON phenotype_cvterm (cvterm_id);
  30257. COMMENT ON TABLE phenotype_cvterm IS NULL;
  30258. -- ================================================
  30259. -- TABLE: feature_phenotype
  30260. -- ================================================
  30261. CREATE TABLE feature_phenotype (
  30262. feature_phenotype_id SERIAL NOT NULL,
  30263. primary key (feature_phenotype_id),
  30264. feature_id INT NOT NULL,
  30265. FOREIGN KEY (feature_id) REFERENCES feature (feature_id) ON DELETE CASCADE,
  30266. phenotype_id INT NOT NULL,
  30267. FOREIGN KEY (phenotype_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  30268. CONSTRAINT feature_phenotype_c1 UNIQUE (feature_id,phenotype_id)
  30269. );
  30270. CREATE INDEX feature_phenotype_idx1 ON feature_phenotype (feature_id);
  30271. CREATE INDEX feature_phenotype_idx2 ON feature_phenotype (phenotype_id);
  30272. COMMENT ON TABLE feature_phenotype IS NULL;
  30273. -- ==========================================
  30274. -- Chado genetics module
  30275. --
  30276. -- 2006-04-11
  30277. -- split out phenotype tables into phenotype module
  30278. --
  30279. -- redesigned 2003-10-28
  30280. --
  30281. -- changes 2003-11-10:
  30282. -- incorporating suggestions to make everything a gcontext; use
  30283. -- gcontext_relationship to make some gcontexts derivable from others. we
  30284. -- would incorporate environment this way - just add the environment
  30285. -- descriptors as properties of the child gcontext
  30286. --
  30287. -- changes 2004-06 (Documented by DE: 10-MAR-2005):
  30288. -- Many, including rename of gcontext to genotype, split
  30289. -- phenstatement into phenstatement & phenotype, created environment
  30290. --
  30291. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  30292. -- ============
  30293. -- DEPENDENCIES
  30294. -- ============
  30295. -- :import feature from sequence
  30296. -- :import phenotype from phenotype
  30297. -- :import cvterm from cv
  30298. -- :import pub from pub
  30299. -- :import dbxref from general
  30300. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  30301. -- ================================================
  30302. -- TABLE: genotype
  30303. -- ================================================
  30304. create table genotype (
  30305. genotype_id serial not null,
  30306. primary key (genotype_id),
  30307. name text,
  30308. uniquename text not null,
  30309. description varchar(255),
  30310. constraint genotype_c1 unique (uniquename)
  30311. );
  30312. create index genotype_idx1 on genotype(uniquename);
  30313. create index genotype_idx2 on genotype(name);
  30314. COMMENT ON TABLE genotype IS 'Genetic context. A genotype is defined by a collection of features, mutations, balancers, deficiencies, haplotype blocks, or engineered constructs.';
  30315. COMMENT ON COLUMN genotype.uniquename IS 'The unique name for a genotype;
  30316. typically derived from the features making up the genotype.';
  30317. COMMENT ON COLUMN genotype.name IS 'Optional alternative name for a genotype,
  30318. for display purposes.';
  30319. -- ===============================================
  30320. -- TABLE: feature_genotype
  30321. -- ================================================
  30322. create table feature_genotype (
  30323. feature_genotype_id serial not null,
  30324. primary key (feature_genotype_id),
  30325. feature_id int not null,
  30326. foreign key (feature_id) references feature (feature_id) on delete cascade,
  30327. genotype_id int not null,
  30328. foreign key (genotype_id) references genotype (genotype_id) on delete cascade,
  30329. chromosome_id int,
  30330. foreign key (chromosome_id) references feature (feature_id) on delete set null,
  30331. rank int not null,
  30332. cgroup int not null,
  30333. cvterm_id int not null,
  30334. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  30335. constraint feature_genotype_c1 unique (feature_id, genotype_id, cvterm_id, chromosome_id, rank, cgroup)
  30336. );
  30337. create index feature_genotype_idx1 on feature_genotype (feature_id);
  30338. create index feature_genotype_idx2 on feature_genotype (genotype_id);
  30339. COMMENT ON TABLE feature_genotype IS NULL;
  30340. COMMENT ON COLUMN feature_genotype.rank IS 'rank can be used for
  30341. n-ploid organisms or to preserve order.';
  30342. COMMENT ON COLUMN feature_genotype.cgroup IS 'Spatially distinguishable
  30343. group. group can be used for distinguishing the chromosomal groups,
  30344. for example (RNAi products and so on can be treated as different
  30345. groups, as they do not fall on a particular chromosome).';
  30346. COMMENT ON COLUMN feature_genotype.chromosome_id IS 'A feature of SO type "chromosome".';
  30347. -- ================================================
  30348. -- TABLE: environment
  30349. -- ================================================
  30350. create table environment (
  30351. environment_id serial not NULL,
  30352. primary key (environment_id),
  30353. uniquename text not null,
  30354. description text,
  30355. constraint environment_c1 unique (uniquename)
  30356. );
  30357. create index environment_idx1 on environment(uniquename);
  30358. COMMENT ON TABLE environment IS 'The environmental component of a phenotype description.';
  30359. -- ================================================
  30360. -- TABLE: environment_cvterm
  30361. -- ================================================
  30362. create table environment_cvterm (
  30363. environment_cvterm_id serial not null,
  30364. primary key (environment_cvterm_id),
  30365. environment_id int not null,
  30366. foreign key (environment_id) references environment (environment_id) on delete cascade,
  30367. cvterm_id int not null,
  30368. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  30369. constraint environment_cvterm_c1 unique (environment_id, cvterm_id)
  30370. );
  30371. create index environment_cvterm_idx1 on environment_cvterm (environment_id);
  30372. create index environment_cvterm_idx2 on environment_cvterm (cvterm_id);
  30373. COMMENT ON TABLE environment_cvterm IS NULL;
  30374. -- ================================================
  30375. -- TABLE: phenstatement
  30376. -- ================================================
  30377. CREATE TABLE phenstatement (
  30378. phenstatement_id SERIAL NOT NULL,
  30379. primary key (phenstatement_id),
  30380. genotype_id INT NOT NULL,
  30381. FOREIGN KEY (genotype_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  30382. environment_id INT NOT NULL,
  30383. FOREIGN KEY (environment_id) REFERENCES environment (environment_id) ON DELETE CASCADE,
  30384. phenotype_id INT NOT NULL,
  30385. FOREIGN KEY (phenotype_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  30386. type_id INT NOT NULL,
  30387. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  30388. pub_id INT NOT NULL,
  30389. FOREIGN KEY (pub_id) REFERENCES pub (pub_id) ON DELETE CASCADE,
  30390. CONSTRAINT phenstatement_c1 UNIQUE (genotype_id,phenotype_id,environment_id,type_id,pub_id)
  30391. );
  30392. CREATE INDEX phenstatement_idx1 ON phenstatement (genotype_id);
  30393. CREATE INDEX phenstatement_idx2 ON phenstatement (phenotype_id);
  30394. 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.';
  30395. -- ================================================
  30396. -- TABLE: phendesc
  30397. -- ================================================
  30398. CREATE TABLE phendesc (
  30399. phendesc_id SERIAL NOT NULL,
  30400. primary key (phendesc_id),
  30401. genotype_id INT NOT NULL,
  30402. FOREIGN KEY (genotype_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  30403. environment_id INT NOT NULL,
  30404. FOREIGN KEY (environment_id) REFERENCES environment ( environment_id) ON DELETE CASCADE,
  30405. description TEXT NOT NULL,
  30406. type_id INT NOT NULL,
  30407. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  30408. pub_id INT NOT NULL,
  30409. FOREIGN KEY (pub_id) REFERENCES pub (pub_id) ON DELETE CASCADE,
  30410. CONSTRAINT phendesc_c1 UNIQUE (genotype_id,environment_id,type_id,pub_id)
  30411. );
  30412. CREATE INDEX phendesc_idx1 ON phendesc (genotype_id);
  30413. CREATE INDEX phendesc_idx2 ON phendesc (environment_id);
  30414. CREATE INDEX phendesc_idx3 ON phendesc (pub_id);
  30415. COMMENT ON TABLE phendesc IS 'A summary of a _set_ of phenotypic statements for any one gcontext made in any one publication.';
  30416. -- ================================================
  30417. -- TABLE: phenotype_comparison
  30418. -- ================================================
  30419. CREATE TABLE phenotype_comparison (
  30420. phenotype_comparison_id SERIAL NOT NULL,
  30421. primary key (phenotype_comparison_id),
  30422. genotype1_id INT NOT NULL,
  30423. FOREIGN KEY (genotype1_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  30424. environment1_id INT NOT NULL,
  30425. FOREIGN KEY (environment1_id) REFERENCES environment (environment_id) ON DELETE CASCADE,
  30426. genotype2_id INT NOT NULL,
  30427. FOREIGN KEY (genotype2_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  30428. environment2_id INT NOT NULL,
  30429. FOREIGN KEY (environment2_id) REFERENCES environment (environment_id) ON DELETE CASCADE,
  30430. phenotype1_id INT NOT NULL,
  30431. FOREIGN KEY (phenotype1_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  30432. phenotype2_id INT,
  30433. FOREIGN KEY (phenotype2_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  30434. pub_id INT NOT NULL,
  30435. FOREIGN KEY (pub_id) REFERENCES pub (pub_id) ON DELETE CASCADE,
  30436. organism_id INT NOT NULL,
  30437. FOREIGN KEY (organism_id) REFERENCES organism (organism_id) ON DELETE CASCADE,
  30438. CONSTRAINT phenotype_comparison_c1 UNIQUE (genotype1_id,environment1_id,genotype2_id,environment2_id,phenotype1_id,pub_id)
  30439. );
  30440. CREATE INDEX phenotype_comparison_idx1 on phenotype_comparison (genotype1_id);
  30441. CREATE INDEX phenotype_comparison_idx2 on phenotype_comparison (genotype2_id);
  30442. CREATE INDEX phenotype_comparison_idx4 on phenotype_comparison (pub_id);
  30443. COMMENT ON TABLE phenotype_comparison IS 'Comparison of phenotypes e.g., genotype1/environment1/phenotype1 "non-suppressible" with respect to genotype2/environment2/phenotype2.';
  30444. -- ================================================
  30445. -- TABLE: phenotype_comparison_cvterm
  30446. -- ================================================
  30447. CREATE TABLE phenotype_comparison_cvterm (
  30448. phenotype_comparison_cvterm_id serial not null,
  30449. primary key (phenotype_comparison_cvterm_id),
  30450. phenotype_comparison_id int not null,
  30451. FOREIGN KEY (phenotype_comparison_id) references phenotype_comparison (phenotype_comparison_id) on delete cascade,
  30452. cvterm_id int not null,
  30453. FOREIGN KEY (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  30454. pub_id INT not null,
  30455. FOREIGN KEY (pub_id) references pub (pub_id) on delete cascade,
  30456. rank int not null default 0,
  30457. CONSTRAINT phenotype_comparison_cvterm_c1 unique (phenotype_comparison_id, cvterm_id)
  30458. );
  30459. CREATE INDEX phenotype_comparison_cvterm_idx1 on phenotype_comparison_cvterm (phenotype_comparison_id);
  30460. CREATE INDEX phenotype_comparison_cvterm_idx2 on phenotype_comparison_cvterm (cvterm_id);
  30461. -- ==========================================
  30462. -- Chado map module
  30463. --
  30464. -- =================================================================
  30465. -- Dependencies:
  30466. --
  30467. -- :import feature from sequence
  30468. -- :import cvterm from cv
  30469. -- :import pub from pub
  30470. -- =================================================================
  30471. -- ================================================
  30472. -- TABLE: featuremap
  30473. -- ================================================
  30474. create table featuremap (
  30475. featuremap_id serial not null,
  30476. primary key (featuremap_id),
  30477. name varchar(255),
  30478. description text,
  30479. unittype_id int null,
  30480. foreign key (unittype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  30481. constraint featuremap_c1 unique (name)
  30482. );
  30483. -- ================================================
  30484. -- TABLE: featurerange
  30485. -- ================================================
  30486. create table featurerange (
  30487. featurerange_id serial not null,
  30488. primary key (featurerange_id),
  30489. featuremap_id int not null,
  30490. foreign key (featuremap_id) references featuremap (featuremap_id) on delete cascade INITIALLY DEFERRED,
  30491. feature_id int not null,
  30492. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  30493. leftstartf_id int not null,
  30494. foreign key (leftstartf_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  30495. leftendf_id int,
  30496. foreign key (leftendf_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  30497. rightstartf_id int,
  30498. foreign key (rightstartf_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  30499. rightendf_id int not null,
  30500. foreign key (rightendf_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  30501. rangestr varchar(255)
  30502. );
  30503. create index featurerange_idx1 on featurerange (featuremap_id);
  30504. create index featurerange_idx2 on featurerange (feature_id);
  30505. create index featurerange_idx3 on featurerange (leftstartf_id);
  30506. create index featurerange_idx4 on featurerange (leftendf_id);
  30507. create index featurerange_idx5 on featurerange (rightstartf_id);
  30508. create index featurerange_idx6 on featurerange (rightendf_id);
  30509. 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.';
  30510. COMMENT ON COLUMN featurerange.featuremap_id IS 'featuremap_id is the id of the feature being mapped.';
  30511. -- ================================================
  30512. -- TABLE: featurepos
  30513. -- ================================================
  30514. create table featurepos (
  30515. featurepos_id serial not null,
  30516. primary key (featurepos_id),
  30517. featuremap_id serial not null,
  30518. foreign key (featuremap_id) references featuremap (featuremap_id) on delete cascade INITIALLY DEFERRED,
  30519. feature_id int not null,
  30520. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  30521. map_feature_id int not null,
  30522. foreign key (map_feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  30523. mappos float not null
  30524. );
  30525. create index featurepos_idx1 on featurepos (featuremap_id);
  30526. create index featurepos_idx2 on featurepos (feature_id);
  30527. create index featurepos_idx3 on featurepos (map_feature_id);
  30528. COMMENT ON COLUMN featurepos.map_feature_id IS 'map_feature_id
  30529. links to the feature (map) upon which the feature is being localized.';
  30530. -- ================================================
  30531. -- TABLE: featuremap_pub
  30532. -- ================================================
  30533. create table featuremap_pub (
  30534. featuremap_pub_id serial not null,
  30535. primary key (featuremap_pub_id),
  30536. featuremap_id int not null,
  30537. foreign key (featuremap_id) references featuremap (featuremap_id) on delete cascade INITIALLY DEFERRED,
  30538. pub_id int not null,
  30539. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED
  30540. );
  30541. create index featuremap_pub_idx1 on featuremap_pub (featuremap_id);
  30542. create index featuremap_pub_idx2 on featuremap_pub (pub_id);
  30543. -- ==========================================
  30544. -- Chado phylogenetics module
  30545. --
  30546. -- Richard Bruskiewich
  30547. -- Chris Mungall
  30548. --
  30549. -- Initial design: 2004-05-27
  30550. --
  30551. -- ============
  30552. -- DEPENDENCIES
  30553. -- ============
  30554. -- :import feature from sequence
  30555. -- :import cvterm from cv
  30556. -- :import pub from pub
  30557. -- :import organism from organism
  30558. -- :import dbxref from general
  30559. -- :import analysis from companalysis
  30560. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  30561. -- ================================================
  30562. -- TABLE: phylotree
  30563. -- ================================================
  30564. create table phylotree (
  30565. phylotree_id serial not null,
  30566. primary key (phylotree_id),
  30567. dbxref_id int not null,
  30568. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade,
  30569. name varchar(255) null,
  30570. type_id int,
  30571. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  30572. analysis_id int null,
  30573. foreign key (analysis_id) references analysis (analysis_id) on delete cascade,
  30574. comment text null,
  30575. unique(phylotree_id)
  30576. );
  30577. create index phylotree_idx1 on phylotree (phylotree_id);
  30578. COMMENT ON TABLE phylotree IS 'Global anchor for phylogenetic tree.';
  30579. COMMENT ON COLUMN phylotree.type_id IS 'Type: protein, nucleotide, taxonomy, for example. The type should be any SO type, or "taxonomy".';
  30580. -- ================================================
  30581. -- TABLE: phylotree_pub
  30582. -- ================================================
  30583. create table phylotree_pub (
  30584. phylotree_pub_id serial not null,
  30585. primary key (phylotree_pub_id),
  30586. phylotree_id int not null,
  30587. foreign key (phylotree_id) references phylotree (phylotree_id) on delete cascade,
  30588. pub_id int not null,
  30589. foreign key (pub_id) references pub (pub_id) on delete cascade,
  30590. unique(phylotree_id, pub_id)
  30591. );
  30592. create index phylotree_pub_idx1 on phylotree_pub (phylotree_id);
  30593. create index phylotree_pub_idx2 on phylotree_pub (pub_id);
  30594. COMMENT ON TABLE phylotree_pub IS 'Tracks citations global to the tree e.g. multiple sequence alignment supporting tree construction.';
  30595. -- ================================================
  30596. -- TABLE: phylonode
  30597. -- ================================================
  30598. create table phylonode (
  30599. phylonode_id serial not null,
  30600. primary key (phylonode_id),
  30601. phylotree_id int not null,
  30602. foreign key (phylotree_id) references phylotree (phylotree_id) on delete cascade,
  30603. parent_phylonode_id int null,
  30604. foreign key (parent_phylonode_id) references phylonode (phylonode_id) on delete cascade,
  30605. left_idx int not null,
  30606. right_idx int not null,
  30607. type_id int,
  30608. foreign key(type_id) references cvterm (cvterm_id) on delete cascade,
  30609. feature_id int,
  30610. foreign key (feature_id) references feature (feature_id) on delete cascade,
  30611. label varchar(255) null,
  30612. distance float null,
  30613. -- Bootstrap float null.
  30614. unique(phylotree_id, left_idx),
  30615. unique(phylotree_id, right_idx)
  30616. );
  30617. COMMENT ON TABLE phylonode IS 'This is the most pervasive
  30618. element in the phylogeny module, cataloging the "phylonodes" of
  30619. tree graphs. Edges are implied by the parent_phylonode_id
  30620. reflexive closure. For all nodes in a nested set implementation the left and right index will be *between* the parents left and right indexes.';
  30621. 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.';
  30622. COMMENT ON COLUMN phylonode.type_id IS 'Type: e.g. root, interior, leaf.';
  30623. COMMENT ON COLUMN phylonode.parent_phylonode_id IS 'Root phylonode can have null parent_phylonode_id value.';
  30624. -- ================================================
  30625. -- TABLE: phylonode_dbxref
  30626. -- ================================================
  30627. create table phylonode_dbxref (
  30628. phylonode_dbxref_id serial not null,
  30629. primary key (phylonode_dbxref_id),
  30630. phylonode_id int not null,
  30631. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  30632. dbxref_id int not null,
  30633. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade,
  30634. unique(phylonode_id,dbxref_id)
  30635. );
  30636. create index phylonode_dbxref_idx1 on phylonode_dbxref (phylonode_id);
  30637. create index phylonode_dbxref_idx2 on phylonode_dbxref (dbxref_id);
  30638. 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.';
  30639. -- ================================================
  30640. -- TABLE: phylonode_pub
  30641. -- ================================================
  30642. create table phylonode_pub (
  30643. phylonode_pub_id serial not null,
  30644. primary key (phylonode_pub_id),
  30645. phylonode_id int not null,
  30646. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  30647. pub_id int not null,
  30648. foreign key (pub_id) references pub (pub_id) on delete cascade,
  30649. unique(phylonode_id, pub_id)
  30650. );
  30651. create index phylonode_pub_idx1 on phylonode_pub (phylonode_id);
  30652. create index phylonode_pub_idx2 on phylonode_pub (pub_id);
  30653. -- ================================================
  30654. -- TABLE: phylonode_organism
  30655. -- ================================================
  30656. create table phylonode_organism (
  30657. phylonode_organism_id serial not null,
  30658. primary key (phylonode_organism_id),
  30659. phylonode_id int not null,
  30660. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  30661. organism_id int not null,
  30662. foreign key (organism_id) references organism (organism_id) on delete cascade,
  30663. unique(phylonode_id)
  30664. );
  30665. create index phylonode_organism_idx1 on phylonode_organism (phylonode_id);
  30666. create index phylonode_organism_idx2 on phylonode_organism (organism_id);
  30667. 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).';
  30668. COMMENT ON COLUMN phylonode_organism.phylonode_id IS 'One phylonode cannot refer to >1 organism.';
  30669. -- ================================================
  30670. -- TABLE: phylonodeprop
  30671. -- ================================================
  30672. create table phylonodeprop (
  30673. phylonodeprop_id serial not null,
  30674. primary key (phylonodeprop_id),
  30675. phylonode_id int not null,
  30676. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  30677. type_id int not null,
  30678. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  30679. value text not null default '',
  30680. -- It is not clear how useful the rank concept is here, leave it in for now.
  30681. rank int not null default 0,
  30682. unique(phylonode_id, type_id, value, rank)
  30683. );
  30684. create index phylonodeprop_idx1 on phylonodeprop (phylonode_id);
  30685. create index phylonodeprop_idx2 on phylonodeprop (type_id);
  30686. 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.';
  30687. -- ================================================
  30688. -- TABLE: phylonode_relationship
  30689. -- ================================================
  30690. create table phylonode_relationship (
  30691. phylonode_relationship_id serial not null,
  30692. primary key (phylonode_relationship_id),
  30693. subject_id int not null,
  30694. foreign key (subject_id) references phylonode (phylonode_id) on delete cascade,
  30695. object_id int not null,
  30696. foreign key (object_id) references phylonode (phylonode_id) on delete cascade,
  30697. type_id int not null,
  30698. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  30699. rank int,
  30700. phylotree_id int not null,
  30701. foreign key (phylotree_id) references phylotree (phylotree_id) on delete cascade,
  30702. unique(subject_id, object_id, type_id)
  30703. );
  30704. create index phylonode_relationship_idx1 on phylonode_relationship (subject_id);
  30705. create index phylonode_relationship_idx2 on phylonode_relationship (object_id);
  30706. create index phylonode_relationship_idx3 on phylonode_relationship (type_id);
  30707. COMMENT ON TABLE phylonode_relationship IS 'This is for
  30708. relationships that are not strictly hierarchical; for example,
  30709. horizontal gene transfer. Most phylogenetic trees are strictly
  30710. hierarchical, nevertheless it is here for completeness.';
  30711. CREATE OR REPLACE FUNCTION phylonode_depth(INT)
  30712. RETURNS FLOAT AS
  30713. 'DECLARE id ALIAS FOR $1;
  30714. DECLARE depth FLOAT := 0;
  30715. DECLARE curr_node phylonode%ROWTYPE;
  30716. BEGIN
  30717. SELECT INTO curr_node *
  30718. FROM phylonode
  30719. WHERE phylonode_id=id;
  30720. depth = depth + curr_node.distance;
  30721. IF curr_node.parent_phylonode_id IS NULL
  30722. THEN RETURN depth;
  30723. ELSE RETURN depth + phylonode_depth(curr_node.parent_phylonode_id);
  30724. END IF;
  30725. END
  30726. '
  30727. LANGUAGE 'plpgsql';
  30728. CREATE OR REPLACE FUNCTION phylonode_height(INT)
  30729. RETURNS FLOAT AS
  30730. '
  30731. SELECT coalesce(max(phylonode_height(phylonode_id) + distance), 0.0)
  30732. FROM phylonode
  30733. WHERE parent_phylonode_id = $1
  30734. '
  30735. LANGUAGE 'sql';
  30736. -- ==========================================
  30737. -- Chado contact module
  30738. --
  30739. -- =================================================================
  30740. -- Dependencies:
  30741. --
  30742. -- :import cvterm from cv
  30743. -- =================================================================
  30744. -- ================================================
  30745. -- TABLE: contact
  30746. -- ================================================
  30747. create table contact (
  30748. contact_id serial not null,
  30749. primary key (contact_id),
  30750. type_id int null,
  30751. foreign key (type_id) references cvterm (cvterm_id),
  30752. name varchar(255) not null,
  30753. description varchar(255) null,
  30754. constraint contact_c1 unique (name)
  30755. );
  30756. COMMENT ON TABLE contact IS 'Model persons, institutes, groups, organizations, etc.';
  30757. COMMENT ON COLUMN contact.type_id IS 'What type of contact is this? E.g. "person", "lab".';
  30758. -- ================================================
  30759. -- TABLE: contact_relationship
  30760. -- ================================================
  30761. create table contact_relationship (
  30762. contact_relationship_id serial not null,
  30763. primary key (contact_relationship_id),
  30764. type_id int not null,
  30765. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  30766. subject_id int not null,
  30767. foreign key (subject_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  30768. object_id int not null,
  30769. foreign key (object_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  30770. constraint contact_relationship_c1 unique (subject_id,object_id,type_id)
  30771. );
  30772. create index contact_relationship_idx1 on contact_relationship (type_id);
  30773. create index contact_relationship_idx2 on contact_relationship (subject_id);
  30774. create index contact_relationship_idx3 on contact_relationship (object_id);
  30775. COMMENT ON TABLE contact_relationship IS 'Model relationships between contacts';
  30776. 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.';
  30777. 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.';
  30778. 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.';
  30779. -- ==========================================
  30780. -- Chado expression module
  30781. --
  30782. -- =================================================================
  30783. -- Dependencies:
  30784. --
  30785. -- :import feature from sequence
  30786. -- :import cvterm from cv
  30787. -- :import pub from pub
  30788. -- =================================================================
  30789. -- ================================================
  30790. -- TABLE: expression
  30791. -- ================================================
  30792. create table expression (
  30793. expression_id serial not null,
  30794. primary key (expression_id),
  30795. uniquename text not null,
  30796. md5checksum character(32),
  30797. description text,
  30798. constraint expression_c1 unique(uniquename)
  30799. );
  30800. COMMENT ON TABLE expression IS 'The expression table is essentially a bridge table.';
  30801. -- ================================================
  30802. -- TABLE: expression_cvterm
  30803. -- ================================================
  30804. create table expression_cvterm (
  30805. expression_cvterm_id serial not null,
  30806. primary key (expression_cvterm_id),
  30807. expression_id int not null,
  30808. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  30809. cvterm_id int not null,
  30810. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  30811. rank int not null default 0,
  30812. cvterm_type_id int not null,
  30813. foreign key (cvterm_type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  30814. constraint expression_cvterm_c1 unique(expression_id,cvterm_id,cvterm_type_id)
  30815. );
  30816. create index expression_cvterm_idx1 on expression_cvterm (expression_id);
  30817. create index expression_cvterm_idx2 on expression_cvterm (cvterm_id);
  30818. create index expression_cvterm_idx3 on expression_cvterm (cvterm_type_id);
  30819. --================================================
  30820. -- TABLE: expression_cvtermprop
  30821. -- ================================================
  30822. create table expression_cvtermprop (
  30823. expression_cvtermprop_id serial not null,
  30824. primary key (expression_cvtermprop_id),
  30825. expression_cvterm_id int not null,
  30826. foreign key (expression_cvterm_id) references expression_cvterm (expression_cvterm_id) on delete cascade INITIALLY DEFERRED,
  30827. type_id int not null,
  30828. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  30829. value text null,
  30830. rank int not null default 0,
  30831. constraint expression_cvtermprop_c1 unique (expression_cvterm_id,type_id,rank)
  30832. );
  30833. create index expression_cvtermprop_idx1 on expression_cvtermprop (expression_cvterm_id);
  30834. create index expression_cvtermprop_idx2 on expression_cvtermprop (type_id);
  30835. COMMENT ON TABLE expression_cvtermprop IS 'Extensible properties for
  30836. expression to cvterm associations. Examples: qualifiers.';
  30837. COMMENT ON COLUMN expression_cvtermprop.type_id IS 'The name of the
  30838. property/slot is a cvterm. The meaning of the property is defined in
  30839. that cvterm. For example, cvterms may come from the FlyBase miscellaneous cv.';
  30840. COMMENT ON COLUMN expression_cvtermprop.value IS 'The value of the
  30841. property, represented as text. Numeric values are converted to their
  30842. text representation. This is less efficient than using native database
  30843. types, but is easier to query.';
  30844. COMMENT ON COLUMN expression_cvtermprop.rank IS 'Property-Value
  30845. ordering. Any expression_cvterm can have multiple values for any particular
  30846. property type - these are ordered in a list using rank, counting from
  30847. zero. For properties that are single-valued rather than multi-valued,
  30848. the default 0 value should be used.';
  30849. -- ================================================
  30850. -- TABLE: expressionprop
  30851. -- ================================================
  30852. create table expressionprop (
  30853. expressionprop_id serial not null,
  30854. primary key (expressionprop_id),
  30855. expression_id int not null,
  30856. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  30857. type_id int not null,
  30858. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  30859. value text null,
  30860. rank int not null default 0,
  30861. constraint expressionprop_c1 unique (expression_id,type_id,rank)
  30862. );
  30863. create index expressionprop_idx1 on expressionprop (expression_id);
  30864. create index expressionprop_idx2 on expressionprop (type_id);
  30865. -- ================================================
  30866. -- TABLE: expression_pub
  30867. -- ================================================
  30868. create table expression_pub (
  30869. expression_pub_id serial not null,
  30870. primary key (expression_pub_id),
  30871. expression_id int not null,
  30872. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  30873. pub_id int not null,
  30874. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  30875. constraint expression_pub_c1 unique(expression_id,pub_id)
  30876. );
  30877. create index expression_pub_idx1 on expression_pub (expression_id);
  30878. create index expression_pub_idx2 on expression_pub (pub_id);
  30879. -- ================================================
  30880. -- TABLE: feature_expression
  30881. -- ================================================
  30882. create table feature_expression (
  30883. feature_expression_id serial not null,
  30884. primary key (feature_expression_id),
  30885. expression_id int not null,
  30886. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  30887. feature_id int not null,
  30888. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  30889. pub_id int not null,
  30890. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  30891. constraint feature_expression_c1 unique(expression_id,feature_id,pub_id)
  30892. );
  30893. create index feature_expression_idx1 on feature_expression (expression_id);
  30894. create index feature_expression_idx2 on feature_expression (feature_id);
  30895. create index feature_expression_idx3 on feature_expression (pub_id);
  30896. -- ================================================
  30897. -- TABLE: feature_expressionprop
  30898. -- ================================================
  30899. create table feature_expressionprop (
  30900. feature_expressionprop_id serial not null,
  30901. primary key (feature_expressionprop_id),
  30902. feature_expression_id int not null,
  30903. foreign key (feature_expression_id) references feature_expression (feature_expression_id) on delete cascade INITIALLY DEFERRED,
  30904. type_id int not null,
  30905. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  30906. value text null,
  30907. rank int not null default 0,
  30908. constraint feature_expressionprop_c1 unique (feature_expression_id,type_id,rank)
  30909. );
  30910. create index feature_expressionprop_idx1 on feature_expressionprop (feature_expression_id);
  30911. create index feature_expressionprop_idx2 on feature_expressionprop (type_id);
  30912. COMMENT ON TABLE feature_expressionprop IS 'Extensible properties for
  30913. feature_expression (comments, for example). Modeled on feature_cvtermprop.';
  30914. -- ================================================
  30915. -- TABLE: eimage
  30916. -- ================================================
  30917. create table eimage (
  30918. eimage_id serial not null,
  30919. primary key (eimage_id),
  30920. eimage_data text,
  30921. eimage_type varchar(255) not null,
  30922. image_uri varchar(255)
  30923. );
  30924. COMMENT ON COLUMN eimage.eimage_data IS 'We expect images in eimage_data (e.g. JPEGs) to be uuencoded.';
  30925. COMMENT ON COLUMN eimage.eimage_type IS 'Describes the type of data in eimage_data.';
  30926. -- ================================================
  30927. -- TABLE: expression_image
  30928. -- ================================================
  30929. create table expression_image (
  30930. expression_image_id serial not null,
  30931. primary key (expression_image_id),
  30932. expression_id int not null,
  30933. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  30934. eimage_id int not null,
  30935. foreign key (eimage_id) references eimage (eimage_id) on delete cascade INITIALLY DEFERRED,
  30936. constraint expression_image_c1 unique(expression_id,eimage_id)
  30937. );
  30938. create index expression_image_idx1 on expression_image (expression_id);
  30939. create index expression_image_idx2 on expression_image (eimage_id);
  30940. -- ==========================================
  30941. -- Chado mage module
  30942. --
  30943. -- =================================================================
  30944. -- Dependencies:
  30945. --
  30946. -- :import feature from sequence
  30947. -- :import cvterm from cv
  30948. -- :import pub from pub
  30949. -- :import organism from organism
  30950. -- :import contact from contact
  30951. -- :import dbxref from general
  30952. -- :import tableinfo from general
  30953. -- :import project from general
  30954. -- :import analysis from companalysis
  30955. -- =================================================================
  30956. -- ================================================
  30957. -- TABLE: mageml
  30958. -- ================================================
  30959. create table mageml (
  30960. mageml_id serial not null,
  30961. primary key (mageml_id),
  30962. mage_package text not null,
  30963. mage_ml text not null
  30964. );
  30965. 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.';
  30966. -- ================================================
  30967. -- TABLE: magedocumentation
  30968. -- ================================================
  30969. create table magedocumentation (
  30970. magedocumentation_id serial not null,
  30971. primary key (magedocumentation_id),
  30972. mageml_id int not null,
  30973. foreign key (mageml_id) references mageml (mageml_id) on delete cascade INITIALLY DEFERRED,
  30974. tableinfo_id int not null,
  30975. foreign key (tableinfo_id) references tableinfo (tableinfo_id) on delete cascade INITIALLY DEFERRED,
  30976. row_id int not null,
  30977. mageidentifier text not null
  30978. );
  30979. create index magedocumentation_idx1 on magedocumentation (mageml_id);
  30980. create index magedocumentation_idx2 on magedocumentation (tableinfo_id);
  30981. create index magedocumentation_idx3 on magedocumentation (row_id);
  30982. COMMENT ON TABLE magedocumentation IS NULL;
  30983. -- ================================================
  30984. -- TABLE: protocol
  30985. -- ================================================
  30986. create table protocol (
  30987. protocol_id serial not null,
  30988. primary key (protocol_id),
  30989. type_id int not null,
  30990. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  30991. pub_id int null,
  30992. foreign key (pub_id) references pub (pub_id) on delete set null INITIALLY DEFERRED,
  30993. dbxref_id int null,
  30994. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  30995. name text not null,
  30996. uri text null,
  30997. protocoldescription text null,
  30998. hardwaredescription text null,
  30999. softwaredescription text null,
  31000. constraint protocol_c1 unique (name)
  31001. );
  31002. create index protocol_idx1 on protocol (type_id);
  31003. create index protocol_idx2 on protocol (pub_id);
  31004. create index protocol_idx3 on protocol (dbxref_id);
  31005. COMMENT ON TABLE protocol IS 'Procedural notes on how data was prepared and processed.';
  31006. -- ================================================
  31007. -- TABLE: protocolparam
  31008. -- ================================================
  31009. create table protocolparam (
  31010. protocolparam_id serial not null,
  31011. primary key (protocolparam_id),
  31012. protocol_id int not null,
  31013. foreign key (protocol_id) references protocol (protocol_id) on delete cascade INITIALLY DEFERRED,
  31014. name text not null,
  31015. datatype_id int null,
  31016. foreign key (datatype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  31017. unittype_id int null,
  31018. foreign key (unittype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  31019. value text null,
  31020. rank int not null default 0
  31021. );
  31022. create index protocolparam_idx1 on protocolparam (protocol_id);
  31023. create index protocolparam_idx2 on protocolparam (datatype_id);
  31024. create index protocolparam_idx3 on protocolparam (unittype_id);
  31025. COMMENT ON TABLE protocolparam IS 'Parameters related to a
  31026. protocol. For example, if the protocol is a soak, this might include attributes of bath temperature and duration.';
  31027. -- ================================================
  31028. -- TABLE: channel
  31029. -- ================================================
  31030. create table channel (
  31031. channel_id serial not null,
  31032. primary key (channel_id),
  31033. name text not null,
  31034. definition text not null,
  31035. constraint channel_c1 unique (name)
  31036. );
  31037. 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).';
  31038. -- ================================================
  31039. -- TABLE: arraydesign
  31040. -- ================================================
  31041. create table arraydesign (
  31042. arraydesign_id serial not null,
  31043. primary key (arraydesign_id),
  31044. manufacturer_id int not null,
  31045. foreign key (manufacturer_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  31046. platformtype_id int not null,
  31047. foreign key (platformtype_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31048. substratetype_id int null,
  31049. foreign key (substratetype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  31050. protocol_id int null,
  31051. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  31052. dbxref_id int null,
  31053. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  31054. name text not null,
  31055. version text null,
  31056. description text null,
  31057. array_dimensions text null,
  31058. element_dimensions text null,
  31059. num_of_elements int null,
  31060. num_array_columns int null,
  31061. num_array_rows int null,
  31062. num_grid_columns int null,
  31063. num_grid_rows int null,
  31064. num_sub_columns int null,
  31065. num_sub_rows int null,
  31066. constraint arraydesign_c1 unique (name)
  31067. );
  31068. create index arraydesign_idx1 on arraydesign (manufacturer_id);
  31069. create index arraydesign_idx2 on arraydesign (platformtype_id);
  31070. create index arraydesign_idx3 on arraydesign (substratetype_id);
  31071. create index arraydesign_idx4 on arraydesign (protocol_id);
  31072. create index arraydesign_idx5 on arraydesign (dbxref_id);
  31073. COMMENT ON TABLE arraydesign IS 'General properties about an array.
  31074. An array is a template used to generate physical slides, etc. It
  31075. contains layout information, as well as global array properties, such
  31076. as material (glass, nylon) and spot dimensions (in rows/columns).';
  31077. -- ================================================
  31078. -- TABLE: arraydesignprop
  31079. -- ================================================
  31080. create table arraydesignprop (
  31081. arraydesignprop_id serial not null,
  31082. primary key (arraydesignprop_id),
  31083. arraydesign_id int not null,
  31084. foreign key (arraydesign_id) references arraydesign (arraydesign_id) on delete cascade INITIALLY DEFERRED,
  31085. type_id int not null,
  31086. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31087. value text null,
  31088. rank int not null default 0,
  31089. constraint arraydesignprop_c1 unique (arraydesign_id,type_id,rank)
  31090. );
  31091. create index arraydesignprop_idx1 on arraydesignprop (arraydesign_id);
  31092. create index arraydesignprop_idx2 on arraydesignprop (type_id);
  31093. COMMENT ON TABLE arraydesignprop IS 'Extra array design properties that are not accounted for in arraydesign.';
  31094. -- ================================================
  31095. -- TABLE: assay
  31096. -- ================================================
  31097. create table assay (
  31098. assay_id serial not null,
  31099. primary key (assay_id),
  31100. arraydesign_id int not null,
  31101. foreign key (arraydesign_id) references arraydesign (arraydesign_id) on delete cascade INITIALLY DEFERRED,
  31102. protocol_id int null,
  31103. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  31104. assaydate timestamp null default current_timestamp,
  31105. arrayidentifier text null,
  31106. arraybatchidentifier text null,
  31107. operator_id int not null,
  31108. foreign key (operator_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  31109. dbxref_id int null,
  31110. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  31111. name text null,
  31112. description text null,
  31113. constraint assay_c1 unique (name)
  31114. );
  31115. create index assay_idx1 on assay (arraydesign_id);
  31116. create index assay_idx2 on assay (protocol_id);
  31117. create index assay_idx3 on assay (operator_id);
  31118. create index assay_idx4 on assay (dbxref_id);
  31119. COMMENT ON TABLE assay IS 'An assay consists of a physical instance of
  31120. an array, combined with the conditions used to create the array
  31121. (protocols, technician information). The assay can be thought of as a hybridization.';
  31122. -- ================================================
  31123. -- TABLE: assayprop
  31124. -- ================================================
  31125. create table assayprop (
  31126. assayprop_id serial not null,
  31127. primary key (assayprop_id),
  31128. assay_id int not null,
  31129. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  31130. type_id int not null,
  31131. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31132. value text null,
  31133. rank int not null default 0,
  31134. constraint assayprop_c1 unique (assay_id,type_id,rank)
  31135. );
  31136. create index assayprop_idx1 on assayprop (assay_id);
  31137. create index assayprop_idx2 on assayprop (type_id);
  31138. COMMENT ON TABLE assayprop IS 'Extra assay properties that are not accounted for in assay.';
  31139. -- ================================================
  31140. -- TABLE: assay_project
  31141. -- ================================================
  31142. create table assay_project (
  31143. assay_project_id serial not null,
  31144. primary key (assay_project_id),
  31145. assay_id int not null,
  31146. foreign key (assay_id) references assay (assay_id) INITIALLY DEFERRED,
  31147. project_id int not null,
  31148. foreign key (project_id) references project (project_id) INITIALLY DEFERRED,
  31149. constraint assay_project_c1 unique (assay_id,project_id)
  31150. );
  31151. create index assay_project_idx1 on assay_project (assay_id);
  31152. create index assay_project_idx2 on assay_project (project_id);
  31153. COMMENT ON TABLE assay_project IS 'Link assays to projects.';
  31154. -- ================================================
  31155. -- TABLE: biomaterial
  31156. -- ================================================
  31157. create table biomaterial (
  31158. biomaterial_id serial not null,
  31159. primary key (biomaterial_id),
  31160. taxon_id int null,
  31161. foreign key (taxon_id) references organism (organism_id) on delete set null INITIALLY DEFERRED,
  31162. biosourceprovider_id int null,
  31163. foreign key (biosourceprovider_id) references contact (contact_id) on delete set null INITIALLY DEFERRED,
  31164. dbxref_id int null,
  31165. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  31166. name text null,
  31167. description text null,
  31168. constraint biomaterial_c1 unique (name)
  31169. );
  31170. create index biomaterial_idx1 on biomaterial (taxon_id);
  31171. create index biomaterial_idx2 on biomaterial (biosourceprovider_id);
  31172. create index biomaterial_idx3 on biomaterial (dbxref_id);
  31173. 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.';
  31174. -- ================================================
  31175. -- TABLE: biomaterial_relationship
  31176. -- ================================================
  31177. create table biomaterial_relationship (
  31178. biomaterial_relationship_id serial not null,
  31179. primary key (biomaterial_relationship_id),
  31180. subject_id int not null,
  31181. foreign key (subject_id) references biomaterial (biomaterial_id) INITIALLY DEFERRED,
  31182. type_id int not null,
  31183. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  31184. object_id int not null,
  31185. foreign key (object_id) references biomaterial (biomaterial_id) INITIALLY DEFERRED,
  31186. constraint biomaterial_relationship_c1 unique (subject_id,object_id,type_id)
  31187. );
  31188. create index biomaterial_relationship_idx1 on biomaterial_relationship (subject_id);
  31189. create index biomaterial_relationship_idx2 on biomaterial_relationship (object_id);
  31190. create index biomaterial_relationship_idx3 on biomaterial_relationship (type_id);
  31191. 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.';
  31192. -- ================================================
  31193. -- TABLE: biomaterialprop
  31194. -- ================================================
  31195. create table biomaterialprop (
  31196. biomaterialprop_id serial not null,
  31197. primary key (biomaterialprop_id),
  31198. biomaterial_id int not null,
  31199. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  31200. type_id int not null,
  31201. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31202. value text null,
  31203. rank int not null default 0,
  31204. constraint biomaterialprop_c1 unique (biomaterial_id,type_id,rank)
  31205. );
  31206. create index biomaterialprop_idx1 on biomaterialprop (biomaterial_id);
  31207. create index biomaterialprop_idx2 on biomaterialprop (type_id);
  31208. COMMENT ON TABLE biomaterialprop IS 'Extra biomaterial properties that are not accounted for in biomaterial.';
  31209. -- ================================================
  31210. -- TABLE: biomaterial_dbxref
  31211. -- ================================================
  31212. create table biomaterial_dbxref (
  31213. biomaterial_dbxref_id serial not null,
  31214. primary key (biomaterial_dbxref_id),
  31215. biomaterial_id int not null,
  31216. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  31217. dbxref_id int not null,
  31218. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  31219. constraint biomaterial_dbxref_c1 unique (biomaterial_id,dbxref_id)
  31220. );
  31221. create index biomaterial_dbxref_idx1 on biomaterial_dbxref (biomaterial_id);
  31222. create index biomaterial_dbxref_idx2 on biomaterial_dbxref (dbxref_id);
  31223. -- ================================================
  31224. -- TABLE: treatment
  31225. -- ================================================
  31226. create table treatment (
  31227. treatment_id serial not null,
  31228. primary key (treatment_id),
  31229. rank int not null default 0,
  31230. biomaterial_id int not null,
  31231. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  31232. type_id int not null,
  31233. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31234. protocol_id int null,
  31235. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  31236. name text null
  31237. );
  31238. create index treatment_idx1 on treatment (biomaterial_id);
  31239. create index treatment_idx2 on treatment (type_id);
  31240. create index treatment_idx3 on treatment (protocol_id);
  31241. COMMENT ON TABLE treatment IS 'A biomaterial may undergo multiple
  31242. treatments. Examples of treatments: apoxia, fluorophore and biotin labeling.';
  31243. -- ================================================
  31244. -- TABLE: biomaterial_treatment
  31245. -- ================================================
  31246. create table biomaterial_treatment (
  31247. biomaterial_treatment_id serial not null,
  31248. primary key (biomaterial_treatment_id),
  31249. biomaterial_id int not null,
  31250. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  31251. treatment_id int not null,
  31252. foreign key (treatment_id) references treatment (treatment_id) on delete cascade INITIALLY DEFERRED,
  31253. unittype_id int null,
  31254. foreign key (unittype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  31255. value float(15) null,
  31256. rank int not null default 0,
  31257. constraint biomaterial_treatment_c1 unique (biomaterial_id,treatment_id)
  31258. );
  31259. create index biomaterial_treatment_idx1 on biomaterial_treatment (biomaterial_id);
  31260. create index biomaterial_treatment_idx2 on biomaterial_treatment (treatment_id);
  31261. create index biomaterial_treatment_idx3 on biomaterial_treatment (unittype_id);
  31262. COMMENT ON TABLE biomaterial_treatment IS 'Link biomaterials to treatments. Treatments have an order of operations (rank), and associated measurements (unittype_id, value).';
  31263. -- ================================================
  31264. -- TABLE: assay_biomaterial
  31265. -- ================================================
  31266. create table assay_biomaterial (
  31267. assay_biomaterial_id serial not null,
  31268. primary key (assay_biomaterial_id),
  31269. assay_id int not null,
  31270. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  31271. biomaterial_id int not null,
  31272. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  31273. channel_id int null,
  31274. foreign key (channel_id) references channel (channel_id) on delete set null INITIALLY DEFERRED,
  31275. rank int not null default 0,
  31276. constraint assay_biomaterial_c1 unique (assay_id,biomaterial_id,channel_id,rank)
  31277. );
  31278. create index assay_biomaterial_idx1 on assay_biomaterial (assay_id);
  31279. create index assay_biomaterial_idx2 on assay_biomaterial (biomaterial_id);
  31280. create index assay_biomaterial_idx3 on assay_biomaterial (channel_id);
  31281. 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).';
  31282. -- ================================================
  31283. -- TABLE: acquisition
  31284. -- ================================================
  31285. create table acquisition (
  31286. acquisition_id serial not null,
  31287. primary key (acquisition_id),
  31288. assay_id int not null,
  31289. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  31290. protocol_id int null,
  31291. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  31292. channel_id int null,
  31293. foreign key (channel_id) references channel (channel_id) on delete set null INITIALLY DEFERRED,
  31294. acquisitiondate timestamp null default current_timestamp,
  31295. name text null,
  31296. uri text null,
  31297. constraint acquisition_c1 unique (name)
  31298. );
  31299. create index acquisition_idx1 on acquisition (assay_id);
  31300. create index acquisition_idx2 on acquisition (protocol_id);
  31301. create index acquisition_idx3 on acquisition (channel_id);
  31302. 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.';
  31303. -- ================================================
  31304. -- TABLE: acquisitionprop
  31305. -- ================================================
  31306. create table acquisitionprop (
  31307. acquisitionprop_id serial not null,
  31308. primary key (acquisitionprop_id),
  31309. acquisition_id int not null,
  31310. foreign key (acquisition_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  31311. type_id int not null,
  31312. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31313. value text null,
  31314. rank int not null default 0,
  31315. constraint acquisitionprop_c1 unique (acquisition_id,type_id,rank)
  31316. );
  31317. create index acquisitionprop_idx1 on acquisitionprop (acquisition_id);
  31318. create index acquisitionprop_idx2 on acquisitionprop (type_id);
  31319. COMMENT ON TABLE acquisitionprop IS 'Parameters associated with image acquisition.';
  31320. -- ================================================
  31321. -- TABLE: acquisition_relationship
  31322. -- ================================================
  31323. create table acquisition_relationship (
  31324. acquisition_relationship_id serial not null,
  31325. primary key (acquisition_relationship_id),
  31326. subject_id int not null,
  31327. foreign key (subject_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  31328. type_id int not null,
  31329. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31330. object_id int not null,
  31331. foreign key (object_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  31332. value text null,
  31333. rank int not null default 0,
  31334. constraint acquisition_relationship_c1 unique (subject_id,object_id,type_id,rank)
  31335. );
  31336. create index acquisition_relationship_idx1 on acquisition_relationship (subject_id);
  31337. create index acquisition_relationship_idx2 on acquisition_relationship (type_id);
  31338. create index acquisition_relationship_idx3 on acquisition_relationship (object_id);
  31339. 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.';
  31340. -- ================================================
  31341. -- TABLE: quantification
  31342. -- ================================================
  31343. create table quantification (
  31344. quantification_id serial not null,
  31345. primary key (quantification_id),
  31346. acquisition_id int not null,
  31347. foreign key (acquisition_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  31348. operator_id int null,
  31349. foreign key (operator_id) references contact (contact_id) on delete set null INITIALLY DEFERRED,
  31350. protocol_id int null,
  31351. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  31352. analysis_id int not null,
  31353. foreign key (analysis_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  31354. quantificationdate timestamp null default current_timestamp,
  31355. name text null,
  31356. uri text null,
  31357. constraint quantification_c1 unique (name,analysis_id)
  31358. );
  31359. create index quantification_idx1 on quantification (acquisition_id);
  31360. create index quantification_idx2 on quantification (operator_id);
  31361. create index quantification_idx3 on quantification (protocol_id);
  31362. create index quantification_idx4 on quantification (analysis_id);
  31363. COMMENT ON TABLE quantification IS 'Quantification is the transformation of an image acquisition to numeric data. This typically involves statistical procedures.';
  31364. -- ================================================
  31365. -- TABLE: quantificationprop
  31366. -- ================================================
  31367. create table quantificationprop (
  31368. quantificationprop_id serial not null,
  31369. primary key (quantificationprop_id),
  31370. quantification_id int not null,
  31371. foreign key (quantification_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  31372. type_id int not null,
  31373. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31374. value text null,
  31375. rank int not null default 0,
  31376. constraint quantificationprop_c1 unique (quantification_id,type_id,rank)
  31377. );
  31378. create index quantificationprop_idx1 on quantificationprop (quantification_id);
  31379. create index quantificationprop_idx2 on quantificationprop (type_id);
  31380. COMMENT ON TABLE quantificationprop IS 'Extra quantification properties that are not accounted for in quantification.';
  31381. -- ================================================
  31382. -- TABLE: quantification_relationship
  31383. -- ================================================
  31384. create table quantification_relationship (
  31385. quantification_relationship_id serial not null,
  31386. primary key (quantification_relationship_id),
  31387. subject_id int not null,
  31388. foreign key (subject_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  31389. type_id int not null,
  31390. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31391. object_id int not null,
  31392. foreign key (object_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  31393. constraint quantification_relationship_c1 unique (subject_id,object_id,type_id)
  31394. );
  31395. create index quantification_relationship_idx1 on quantification_relationship (subject_id);
  31396. create index quantification_relationship_idx2 on quantification_relationship (type_id);
  31397. create index quantification_relationship_idx3 on quantification_relationship (object_id);
  31398. 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.';
  31399. -- ================================================
  31400. -- TABLE: control
  31401. -- ================================================
  31402. create table control (
  31403. control_id serial not null,
  31404. primary key (control_id),
  31405. type_id int not null,
  31406. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31407. assay_id int not null,
  31408. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  31409. tableinfo_id int not null,
  31410. foreign key (tableinfo_id) references tableinfo (tableinfo_id) on delete cascade INITIALLY DEFERRED,
  31411. row_id int not null,
  31412. name text null,
  31413. value text null,
  31414. rank int not null default 0
  31415. );
  31416. create index control_idx1 on control (type_id);
  31417. create index control_idx2 on control (assay_id);
  31418. create index control_idx3 on control (tableinfo_id);
  31419. create index control_idx4 on control (row_id);
  31420. COMMENT ON TABLE control IS NULL;
  31421. -- ================================================
  31422. -- TABLE: element
  31423. -- ================================================
  31424. create table element (
  31425. element_id serial not null,
  31426. primary key (element_id),
  31427. feature_id int null,
  31428. foreign key (feature_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  31429. arraydesign_id int not null,
  31430. foreign key (arraydesign_id) references arraydesign (arraydesign_id) on delete cascade INITIALLY DEFERRED,
  31431. type_id int null,
  31432. foreign key (type_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  31433. dbxref_id int null,
  31434. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  31435. constraint element_c1 unique (feature_id,arraydesign_id)
  31436. );
  31437. create index element_idx1 on element (feature_id);
  31438. create index element_idx2 on element (arraydesign_id);
  31439. create index element_idx3 on element (type_id);
  31440. create index element_idx4 on element (dbxref_id);
  31441. COMMENT ON TABLE element IS 'Represents a feature of the array. This is typically a region of the array coated or bound to DNA.';
  31442. -- ================================================
  31443. -- TABLE: element_result
  31444. -- ================================================
  31445. create table elementresult (
  31446. elementresult_id serial not null,
  31447. primary key (elementresult_id),
  31448. element_id int not null,
  31449. foreign key (element_id) references element (element_id) on delete cascade INITIALLY DEFERRED,
  31450. quantification_id int not null,
  31451. foreign key (quantification_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  31452. signal float not null,
  31453. constraint elementresult_c1 unique (element_id,quantification_id)
  31454. );
  31455. create index elementresult_idx1 on elementresult (element_id);
  31456. create index elementresult_idx2 on elementresult (quantification_id);
  31457. create index elementresult_idx3 on elementresult (signal);
  31458. 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.';
  31459. -- ================================================
  31460. -- TABLE: element_relationship
  31461. -- ================================================
  31462. create table element_relationship (
  31463. element_relationship_id serial not null,
  31464. primary key (element_relationship_id),
  31465. subject_id int not null,
  31466. foreign key (subject_id) references element (element_id) INITIALLY DEFERRED,
  31467. type_id int not null,
  31468. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  31469. object_id int not null,
  31470. foreign key (object_id) references element (element_id) INITIALLY DEFERRED,
  31471. value text null,
  31472. rank int not null default 0,
  31473. constraint element_relationship_c1 unique (subject_id,object_id,type_id,rank)
  31474. );
  31475. create index element_relationship_idx1 on element_relationship (subject_id);
  31476. create index element_relationship_idx2 on element_relationship (type_id);
  31477. create index element_relationship_idx3 on element_relationship (object_id);
  31478. create index element_relationship_idx4 on element_relationship (value);
  31479. 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.';
  31480. -- ================================================
  31481. -- TABLE: elementresult_relationship
  31482. -- ================================================
  31483. create table elementresult_relationship (
  31484. elementresult_relationship_id serial not null,
  31485. primary key (elementresult_relationship_id),
  31486. subject_id int not null,
  31487. foreign key (subject_id) references elementresult (elementresult_id) INITIALLY DEFERRED,
  31488. type_id int not null,
  31489. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  31490. object_id int not null,
  31491. foreign key (object_id) references elementresult (elementresult_id) INITIALLY DEFERRED,
  31492. value text null,
  31493. rank int not null default 0,
  31494. constraint elementresult_relationship_c1 unique (subject_id,object_id,type_id,rank)
  31495. );
  31496. create index elementresult_relationship_idx1 on elementresult_relationship (subject_id);
  31497. create index elementresult_relationship_idx2 on elementresult_relationship (type_id);
  31498. create index elementresult_relationship_idx3 on elementresult_relationship (object_id);
  31499. create index elementresult_relationship_idx4 on elementresult_relationship (value);
  31500. 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.';
  31501. -- ================================================
  31502. -- TABLE: study
  31503. -- ================================================
  31504. create table study (
  31505. study_id serial not null,
  31506. primary key (study_id),
  31507. contact_id int not null,
  31508. foreign key (contact_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  31509. pub_id int null,
  31510. foreign key (pub_id) references pub (pub_id) on delete set null INITIALLY DEFERRED,
  31511. dbxref_id int null,
  31512. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  31513. name text not null,
  31514. description text null,
  31515. constraint study_c1 unique (name)
  31516. );
  31517. create index study_idx1 on study (contact_id);
  31518. create index study_idx2 on study (pub_id);
  31519. create index study_idx3 on study (dbxref_id);
  31520. COMMENT ON TABLE study IS NULL;
  31521. -- ================================================
  31522. -- TABLE: study_assay
  31523. -- ================================================
  31524. create table study_assay (
  31525. study_assay_id serial not null,
  31526. primary key (study_assay_id),
  31527. study_id int not null,
  31528. foreign key (study_id) references study (study_id) on delete cascade INITIALLY DEFERRED,
  31529. assay_id int not null,
  31530. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  31531. constraint study_assay_c1 unique (study_id,assay_id)
  31532. );
  31533. create index study_assay_idx1 on study_assay (study_id);
  31534. create index study_assay_idx2 on study_assay (assay_id);
  31535. COMMENT ON TABLE study_assay IS NULL;
  31536. -- ================================================
  31537. -- TABLE: studydesign
  31538. -- ================================================
  31539. create table studydesign (
  31540. studydesign_id serial not null,
  31541. primary key (studydesign_id),
  31542. study_id int not null,
  31543. foreign key (study_id) references study (study_id) on delete cascade INITIALLY DEFERRED,
  31544. description text null
  31545. );
  31546. create index studydesign_idx1 on studydesign (study_id);
  31547. COMMENT ON TABLE studydesign IS NULL;
  31548. -- ================================================
  31549. -- TABLE: studydesignprop
  31550. -- ================================================
  31551. create table studydesignprop (
  31552. studydesignprop_id serial not null,
  31553. primary key (studydesignprop_id),
  31554. studydesign_id int not null,
  31555. foreign key (studydesign_id) references studydesign (studydesign_id) on delete cascade INITIALLY DEFERRED,
  31556. type_id int not null,
  31557. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31558. value text null,
  31559. rank int not null default 0,
  31560. constraint studydesignprop_c1 unique (studydesign_id,type_id,rank)
  31561. );
  31562. create index studydesignprop_idx1 on studydesignprop (studydesign_id);
  31563. create index studydesignprop_idx2 on studydesignprop (type_id);
  31564. COMMENT ON TABLE studydesignprop IS NULL;
  31565. -- ================================================
  31566. -- TABLE: studyfactor
  31567. -- ================================================
  31568. create table studyfactor (
  31569. studyfactor_id serial not null,
  31570. primary key (studyfactor_id),
  31571. studydesign_id int not null,
  31572. foreign key (studydesign_id) references studydesign (studydesign_id) on delete cascade INITIALLY DEFERRED,
  31573. type_id int null,
  31574. foreign key (type_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  31575. name text not null,
  31576. description text null
  31577. );
  31578. create index studyfactor_idx1 on studyfactor (studydesign_id);
  31579. create index studyfactor_idx2 on studyfactor (type_id);
  31580. COMMENT ON TABLE studyfactor IS NULL;
  31581. -- ================================================
  31582. -- TABLE: studyfactorvalue
  31583. -- ================================================
  31584. create table studyfactorvalue (
  31585. studyfactorvalue_id serial not null,
  31586. primary key (studyfactorvalue_id),
  31587. studyfactor_id int not null,
  31588. foreign key (studyfactor_id) references studyfactor (studyfactor_id) on delete cascade INITIALLY DEFERRED,
  31589. assay_id int not null,
  31590. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  31591. factorvalue text null,
  31592. name text null,
  31593. rank int not null default 0
  31594. );
  31595. create index studyfactorvalue_idx1 on studyfactorvalue (studyfactor_id);
  31596. create index studyfactorvalue_idx2 on studyfactorvalue (assay_id);
  31597. COMMENT ON TABLE studyfactorvalue IS NULL;
  31598. --
  31599. -- studyprop and studyprop_feature added for Kara Dolinski's group
  31600. --
  31601. -- Here is her description of it:
  31602. --Both of the tables are used for our YFGdb project
  31603. --(http://yfgdb.princeton.edu/), which uses chado.
  31604. --
  31605. --Here is how we use those tables, using the following example:
  31606. --
  31607. --http://yfgdb.princeton.edu/cgi-bin/display.cgi?db=pmid&amp;id=15575969
  31608. --
  31609. --The above data set is represented as a row in the STUDY table. We have
  31610. --lots of attributes that we want to store about each STUDY (status, etc)
  31611. --and in the official schema, the only prop table we could use was the
  31612. --STUDYDESIGN_PROP table. This forced us to go through the STUDYDESIGN
  31613. --table when we often have no real data to store in that table (small
  31614. --percent of our collection use MAGE-ML unfortunately, and even fewer
  31615. --provide all the data in the MAGE model, of which STUDYDESIGN is a vestige).
  31616. --So, we created a STUDYPROP table. I'd think this table would be
  31617. --generally useful to people storing various types of data sets via the
  31618. --STUDY table.
  31619. --
  31620. --The other new table is STUDYPROP_FEATURE. This basically allows us to
  31621. --group features together per study. For example, we can store microarray
  31622. --clustering results by saying that the STUDYPROP type is 'cluster' (via
  31623. --type_id -> CVTERM of course), the value is 'cluster id 123', and then
  31624. --that cluster would be associated with all the features that are in that
  31625. --cluster via STUDYPROP_FEATURE. Adding type_id to STUDYPROP_FEATURE is
  31626. -- fine by us!
  31627. --
  31628. --studyprop
  31629. create table studyprop (
  31630. studyprop_id serial not null,
  31631. primary key (studyprop_id),
  31632. study_id int not null,
  31633. foreign key (study_id) references study (study_id) on delete cascade,
  31634. type_id int not null,
  31635. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  31636. value text null,
  31637. rank int not null default 0,
  31638. unique (study_id,type_id,rank)
  31639. );
  31640. create index studyprop_idx1 on studyprop (study_id);
  31641. create index studyprop_idx2 on studyprop (type_id);
  31642. --studyprop_feature
  31643. CREATE TABLE studyprop_feature (
  31644. studyprop_feature_id serial NOT NULL,
  31645. primary key (studyprop_feature_id),
  31646. studyprop_id integer NOT NULL,
  31647. foreign key (studyprop_id) references studyprop(studyprop_id) on delete cascade,
  31648. feature_id integer NOT NULL,
  31649. foreign key (feature_id) references feature (feature_id) on delete cascade,
  31650. type_id integer,
  31651. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  31652. unique (studyprop_id, feature_id)
  31653. );
  31654. create index studyprop_feature_idx1 on studyprop_feature (studyprop_id);
  31655. create index studyprop_feature_idx2 on studyprop_feature (feature_id);
  31656. -- ==========================================
  31657. -- Chado stock module
  31658. --
  31659. -- DEPENDENCIES
  31660. -- ============
  31661. -- :import cvterm from cv
  31662. -- :import pub from pub
  31663. -- :import dbxref from general
  31664. -- :import organism from organism
  31665. -- :import genotype from genetic
  31666. -- ================================================
  31667. -- TABLE: stock
  31668. -- ================================================
  31669. create table stock (
  31670. stock_id serial not null,
  31671. primary key (stock_id),
  31672. dbxref_id int,
  31673. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  31674. organism_id int not null,
  31675. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  31676. name varchar(255),
  31677. uniquename text not null,
  31678. description text,
  31679. type_id int not null,
  31680. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31681. is_obsolete boolean not null default 'false',
  31682. constraint stock_c1 unique (organism_id,uniquename,type_id)
  31683. );
  31684. create index stock_name_ind1 on stock (name);
  31685. create index stock_idx1 on stock (dbxref_id);
  31686. create index stock_idx2 on stock (organism_id);
  31687. create index stock_idx3 on stock (type_id);
  31688. create index stock_idx4 on stock (uniquename);
  31689. COMMENT ON TABLE stock IS 'Any stock can be globally identified by the
  31690. 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.';
  31691. 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.';
  31692. COMMENT ON COLUMN stock.organism_id IS 'The organism_id is the organism to which the stock belongs. This column is mandatory.';
  31693. 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.';
  31694. COMMENT ON COLUMN stock.description IS 'The description is the genetic description provided in the stock list.';
  31695. COMMENT ON COLUMN stock.name IS 'The name is a human-readable local name for a stock.';
  31696. -- ================================================
  31697. -- TABLE: stock_pub
  31698. -- ================================================
  31699. create table stock_pub (
  31700. stock_pub_id serial not null,
  31701. primary key (stock_pub_id),
  31702. stock_id int not null,
  31703. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  31704. pub_id int not null,
  31705. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  31706. constraint stock_pub_c1 unique (stock_id,pub_id)
  31707. );
  31708. create index stock_pub_idx1 on stock_pub (stock_id);
  31709. create index stock_pub_idx2 on stock_pub (pub_id);
  31710. COMMENT ON TABLE stock_pub IS 'Provenance. Linking table between stocks and, for example, a stocklist computer file.';
  31711. -- ================================================
  31712. -- TABLE: stockprop
  31713. -- ================================================
  31714. create table stockprop (
  31715. stockprop_id serial not null,
  31716. primary key (stockprop_id),
  31717. stock_id int not null,
  31718. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  31719. type_id int not null,
  31720. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31721. value text null,
  31722. rank int not null default 0,
  31723. constraint stockprop_c1 unique (stock_id,type_id,rank)
  31724. );
  31725. create index stockprop_idx1 on stockprop (stock_id);
  31726. create index stockprop_idx2 on stockprop (type_id);
  31727. COMMENT ON TABLE stockprop IS 'A stock can have any number of
  31728. slot-value property tags attached to it. This is an alternative to
  31729. hardcoding a list of columns in the relational schema, and is
  31730. completely extensible. There is a unique constraint, stockprop_c1, for
  31731. the combination of stock_id, rank, and type_id. Multivalued property-value pairs must be differentiated by rank.';
  31732. -- ================================================
  31733. -- TABLE: stockprop_pub
  31734. -- ================================================
  31735. create table stockprop_pub (
  31736. stockprop_pub_id serial not null,
  31737. primary key (stockprop_pub_id),
  31738. stockprop_id int not null,
  31739. foreign key (stockprop_id) references stockprop (stockprop_id) on delete cascade INITIALLY DEFERRED,
  31740. pub_id int not null,
  31741. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  31742. constraint stockprop_pub_c1 unique (stockprop_id,pub_id)
  31743. );
  31744. create index stockprop_pub_idx1 on stockprop_pub (stockprop_id);
  31745. create index stockprop_pub_idx2 on stockprop_pub (pub_id);
  31746. COMMENT ON TABLE stockprop_pub IS 'Provenance. Any stockprop assignment can optionally be supported by a publication.';
  31747. -- ================================================
  31748. -- TABLE: stock_relationship
  31749. -- ================================================
  31750. create table stock_relationship (
  31751. stock_relationship_id serial not null,
  31752. primary key (stock_relationship_id),
  31753. subject_id int not null,
  31754. foreign key (subject_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  31755. object_id int not null,
  31756. foreign key (object_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  31757. type_id int not null,
  31758. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31759. value text null,
  31760. rank int not null default 0,
  31761. constraint stock_relationship_c1 unique (subject_id,object_id,type_id,rank)
  31762. );
  31763. create index stock_relationship_idx1 on stock_relationship (subject_id);
  31764. create index stock_relationship_idx2 on stock_relationship (object_id);
  31765. create index stock_relationship_idx3 on stock_relationship (type_id);
  31766. 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.';
  31767. 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.';
  31768. 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.';
  31769. 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.';
  31770. COMMENT ON COLUMN stock_relationship.value IS 'stock_relationship.value is for additional notes or comments.';
  31771. -- ================================================
  31772. -- TABLE: stock_relationship_pub
  31773. -- ================================================
  31774. create table stock_relationship_pub (
  31775. stock_relationship_pub_id serial not null,
  31776. primary key (stock_relationship_pub_id),
  31777. stock_relationship_id int not null,
  31778. foreign key (stock_relationship_id) references stock_relationship (stock_relationship_id) on delete cascade INITIALLY DEFERRED,
  31779. pub_id int not null,
  31780. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  31781. constraint stock_relationship_pub_c1 unique (stock_relationship_id,pub_id)
  31782. );
  31783. create index stock_relationship_pub_idx1 on stock_relationship_pub (stock_relationship_id);
  31784. create index stock_relationship_pub_idx2 on stock_relationship_pub (pub_id);
  31785. COMMENT ON TABLE stock_relationship_pub IS 'Provenance. Attach optional evidence to a stock_relationship in the form of a publication.';
  31786. -- ================================================
  31787. -- TABLE: stock_dbxref
  31788. -- ================================================
  31789. create table stock_dbxref (
  31790. stock_dbxref_id serial not null,
  31791. primary key (stock_dbxref_id),
  31792. stock_id int not null,
  31793. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  31794. dbxref_id int not null,
  31795. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  31796. is_current boolean not null default 'true',
  31797. constraint stock_dbxref_c1 unique (stock_id,dbxref_id)
  31798. );
  31799. create index stock_dbxref_idx1 on stock_dbxref (stock_id);
  31800. create index stock_dbxref_idx2 on stock_dbxref (dbxref_id);
  31801. 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.';
  31802. 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.';
  31803. -- ================================================
  31804. -- TABLE: stock_cvterm
  31805. -- ================================================
  31806. create table stock_cvterm (
  31807. stock_cvterm_id serial not null,
  31808. primary key (stock_cvterm_id),
  31809. stock_id int not null,
  31810. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  31811. cvterm_id int not null,
  31812. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31813. pub_id int not null,
  31814. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  31815. constraint stock_cvterm_c1 unique (stock_id,cvterm_id,pub_id)
  31816. );
  31817. create index stock_cvterm_idx1 on stock_cvterm (stock_id);
  31818. create index stock_cvterm_idx2 on stock_cvterm (cvterm_id);
  31819. create index stock_cvterm_idx3 on stock_cvterm (pub_id);
  31820. 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.';
  31821. -- ================================================
  31822. -- TABLE: stock_genotype
  31823. -- ================================================
  31824. create table stock_genotype (
  31825. stock_genotype_id serial not null,
  31826. primary key (stock_genotype_id),
  31827. stock_id int not null,
  31828. foreign key (stock_id) references stock (stock_id) on delete cascade,
  31829. genotype_id int not null,
  31830. foreign key (genotype_id) references genotype (genotype_id) on delete cascade,
  31831. constraint stock_genotype_c1 unique (stock_id, genotype_id)
  31832. );
  31833. create index stock_genotype_idx1 on stock_genotype (stock_id);
  31834. create index stock_genotype_idx2 on stock_genotype (genotype_id);
  31835. COMMENT ON TABLE stock_genotype IS 'Simple table linking a stock to
  31836. a genotype. Features with genotypes can be linked to stocks thru feature_genotype -> genotype -> stock_genotype -> stock.';
  31837. -- ================================================
  31838. -- TABLE: stockcollection
  31839. -- ================================================
  31840. create table stockcollection (
  31841. stockcollection_id serial not null,
  31842. primary key (stockcollection_id),
  31843. type_id int not null,
  31844. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  31845. contact_id int null,
  31846. foreign key (contact_id) references contact (contact_id) on delete set null INITIALLY DEFERRED,
  31847. name varchar(255),
  31848. uniquename text not null,
  31849. constraint stockcollection_c1 unique (uniquename,type_id)
  31850. );
  31851. create index stockcollection_name_ind1 on stockcollection (name);
  31852. create index stockcollection_idx1 on stockcollection (contact_id);
  31853. create index stockcollection_idx2 on stockcollection (type_id);
  31854. create index stockcollection_idx3 on stockcollection (uniquename);
  31855. COMMENT ON TABLE stockcollection IS 'The lab or stock center distributing the stocks in their collection.';
  31856. COMMENT ON COLUMN stockcollection.uniquename IS 'uniqename is the value of the collection cv.';
  31857. COMMENT ON COLUMN stockcollection.type_id IS 'type_id is the collection type cv.';
  31858. COMMENT ON COLUMN stockcollection.name IS 'name is the collection.';
  31859. COMMENT ON COLUMN stockcollection.contact_id IS 'contact_id links to the contact information for the collection.';
  31860. -- ================================================
  31861. -- TABLE: stockcollectionprop
  31862. -- ================================================
  31863. create table stockcollectionprop (
  31864. stockcollectionprop_id serial not null,
  31865. primary key (stockcollectionprop_id),
  31866. stockcollection_id int not null,
  31867. foreign key (stockcollection_id) references stockcollection (stockcollection_id) on delete cascade INITIALLY DEFERRED,
  31868. type_id int not null,
  31869. foreign key (type_id) references cvterm (cvterm_id),
  31870. value text null,
  31871. rank int not null default 0,
  31872. constraint stockcollectionprop_c1 unique (stockcollection_id,type_id,rank)
  31873. );
  31874. create index stockcollectionprop_idx1 on stockcollectionprop (stockcollection_id);
  31875. create index stockcollectionprop_idx2 on stockcollectionprop (type_id);
  31876. COMMENT ON TABLE stockcollectionprop IS 'The table stockcollectionprop
  31877. contains the value of the stock collection such as website/email URLs;
  31878. the value of the stock collection order URLs.';
  31879. COMMENT ON COLUMN stockcollectionprop.type_id IS 'The cv for the type_id is "stockcollection property type".';
  31880. -- ================================================
  31881. -- TABLE: stockcollection_stock
  31882. -- ================================================
  31883. create table stockcollection_stock (
  31884. stockcollection_stock_id serial not null,
  31885. primary key (stockcollection_stock_id),
  31886. stockcollection_id int not null,
  31887. foreign key (stockcollection_id) references stockcollection (stockcollection_id) on delete cascade INITIALLY DEFERRED,
  31888. stock_id int not null,
  31889. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  31890. constraint stockcollection_stock_c1 unique (stockcollection_id,stock_id)
  31891. );
  31892. create index stockcollection_stock_idx1 on stockcollection_stock (stockcollection_id);
  31893. create index stockcollection_stock_idx2 on stockcollection_stock (stock_id);
  31894. COMMENT ON TABLE stockcollection_stock IS 'stockcollection_stock links
  31895. a stock collection to the stocks which are contained in the collection.';
  31896. -- =================================================================
  31897. -- Dependencies:
  31898. --
  31899. -- :import feature from sequence
  31900. -- :import synonym from sequence
  31901. -- :import cvterm from cv
  31902. -- :import pub from pub
  31903. -- :import organism from organism
  31904. -- =================================================================
  31905. -- ================================================
  31906. -- TABLE: library
  31907. -- ================================================
  31908. create table library (
  31909. library_id serial not null,
  31910. primary key (library_id),
  31911. organism_id int not null,
  31912. foreign key (organism_id) references organism (organism_id),
  31913. name varchar(255),
  31914. uniquename text not null,
  31915. type_id int not null,
  31916. foreign key (type_id) references cvterm (cvterm_id),
  31917. is_obsolete int not null default 0,
  31918. timeaccessioned timestamp not null default current_timestamp,
  31919. timelastmodified timestamp not null default current_timestamp,
  31920. constraint library_c1 unique (organism_id,uniquename,type_id)
  31921. );
  31922. create index library_name_ind1 on library(name);
  31923. create index library_idx1 on library (organism_id);
  31924. create index library_idx2 on library (type_id);
  31925. create index library_idx3 on library (uniquename);
  31926. COMMENT ON COLUMN library.type_id IS 'The type_id foreign key links
  31927. to a controlled vocabulary of library types. Examples of this would be: "cDNA_library" or "genomic_library"';
  31928. -- ================================================
  31929. -- TABLE: library_synonym
  31930. -- ================================================
  31931. create table library_synonym (
  31932. library_synonym_id serial not null,
  31933. primary key (library_synonym_id),
  31934. synonym_id int not null,
  31935. foreign key (synonym_id) references synonym (synonym_id) on delete cascade INITIALLY DEFERRED,
  31936. library_id int not null,
  31937. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  31938. pub_id int not null,
  31939. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  31940. is_current boolean not null default 'true',
  31941. is_internal boolean not null default 'false',
  31942. constraint library_synonym_c1 unique (synonym_id,library_id,pub_id)
  31943. );
  31944. create index library_synonym_idx1 on library_synonym (synonym_id);
  31945. create index library_synonym_idx2 on library_synonym (library_id);
  31946. create index library_synonym_idx3 on library_synonym (pub_id);
  31947. 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.';
  31948. COMMENT ON COLUMN library_synonym.pub_id IS 'The pub_id link is for
  31949. relating the usage of a given synonym to the publication in which it was used.';
  31950. COMMENT ON COLUMN library_synonym.is_internal IS 'Typically a synonym
  31951. exists so that somebody querying the database with an obsolete name
  31952. can find the object they are looking for under its current name. If
  31953. 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.';
  31954. -- ================================================
  31955. -- TABLE: library_pub
  31956. -- ================================================
  31957. create table library_pub (
  31958. library_pub_id serial not null,
  31959. primary key (library_pub_id),
  31960. library_id int not null,
  31961. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  31962. pub_id int not null,
  31963. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  31964. constraint library_pub_c1 unique (library_id,pub_id)
  31965. );
  31966. create index library_pub_idx1 on library_pub (library_id);
  31967. create index library_pub_idx2 on library_pub (pub_id);
  31968. -- ================================================
  31969. -- TABLE: libraryprop
  31970. -- ================================================
  31971. create table libraryprop (
  31972. libraryprop_id serial not null,
  31973. primary key (libraryprop_id),
  31974. library_id int not null,
  31975. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  31976. type_id int not null,
  31977. foreign key (type_id) references cvterm (cvterm_id),
  31978. value text null,
  31979. rank int not null default 0,
  31980. constraint libraryprop_c1 unique (library_id,type_id,rank)
  31981. );
  31982. create index libraryprop_idx1 on libraryprop (library_id);
  31983. create index libraryprop_idx2 on libraryprop (type_id);
  31984. -- ================================================
  31985. -- TABLE: libraryprop_pub
  31986. -- ================================================
  31987. create table libraryprop_pub (
  31988. libraryprop_pub_id serial not null,
  31989. primary key (libraryprop_pub_id),
  31990. libraryprop_id int not null,
  31991. foreign key (libraryprop_id) references libraryprop (libraryprop_id) on delete cascade INITIALLY DEFERRED,
  31992. pub_id int not null,
  31993. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  31994. constraint libraryprop_pub_c1 unique (libraryprop_id,pub_id)
  31995. );
  31996. create index libraryprop_pub_idx1 on libraryprop_pub (libraryprop_id);
  31997. create index libraryprop_pub_idx2 on libraryprop_pub (pub_id);
  31998. -- ================================================
  31999. -- TABLE: library_cvterm
  32000. -- ================================================
  32001. create table library_cvterm (
  32002. library_cvterm_id serial not null,
  32003. primary key (library_cvterm_id),
  32004. library_id int not null,
  32005. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  32006. cvterm_id int not null,
  32007. foreign key (cvterm_id) references cvterm (cvterm_id),
  32008. pub_id int not null,
  32009. foreign key (pub_id) references pub (pub_id),
  32010. constraint library_cvterm_c1 unique (library_id,cvterm_id,pub_id)
  32011. );
  32012. create index library_cvterm_idx1 on library_cvterm (library_id);
  32013. create index library_cvterm_idx2 on library_cvterm (cvterm_id);
  32014. create index library_cvterm_idx3 on library_cvterm (pub_id);
  32015. 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.';
  32016. -- ================================================
  32017. -- TABLE: library_feature
  32018. -- ================================================
  32019. create table library_feature (
  32020. library_feature_id serial not null,
  32021. primary key (library_feature_id),
  32022. library_id int not null,
  32023. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  32024. feature_id int not null,
  32025. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  32026. constraint library_feature_c1 unique (library_id,feature_id)
  32027. );
  32028. create index library_feature_idx1 on library_feature (library_id);
  32029. create index library_feature_idx2 on library_feature (feature_id);
  32030. 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".';
  32031. -- ================================================
  32032. -- TABLE: library_dbxref
  32033. -- ================================================
  32034. create table library_dbxref (
  32035. library_dbxref_id serial not null,
  32036. primary key (library_dbxref_id),
  32037. library_id int not null,
  32038. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  32039. dbxref_id int not null,
  32040. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  32041. is_current boolean not null default 'true',
  32042. constraint library_dbxref_c1 unique (library_id,dbxref_id)
  32043. );
  32044. create index library_dbxref_idx1 on library_dbxref (library_id);
  32045. create index library_dbxref_idx2 on library_dbxref (dbxref_id);
  32046. -- ==========================================
  32047. -- Chado cell line module
  32048. --
  32049. -- ============
  32050. -- DEPENDENCIES
  32051. -- ============
  32052. -- :import feature from sequence
  32053. -- :import synonym from sequence
  32054. -- :import library from library
  32055. -- :import cvterm from cv
  32056. -- :import dbxref from general
  32057. -- :import pub from pub
  32058. -- :import organism from organism
  32059. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  32060. -- ================================================
  32061. -- TABLE: cell_line
  32062. -- ================================================
  32063. create table cell_line (
  32064. cell_line_id serial not null,
  32065. primary key (cell_line_id),
  32066. name varchar(255) null,
  32067. uniquename varchar(255) not null,
  32068. organism_id int not null,
  32069. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  32070. timeaccessioned timestamp not null default current_timestamp,
  32071. timelastmodified timestamp not null default current_timestamp,
  32072. constraint cell_line_c1 unique (uniquename, organism_id)
  32073. );
  32074. grant all on cell_line to PUBLIC;
  32075. -- ================================================
  32076. -- TABLE: cell_line_relationship
  32077. -- ================================================
  32078. create table cell_line_relationship (
  32079. cell_line_relationship_id serial not null,
  32080. primary key (cell_line_relationship_id),
  32081. subject_id int not null,
  32082. foreign key (subject_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  32083. object_id int not null,
  32084. foreign key (object_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  32085. type_id int not null,
  32086. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  32087. constraint cell_line_relationship_c1 unique (subject_id, object_id, type_id)
  32088. );
  32089. grant all on cell_line_relationship to PUBLIC;
  32090. -- ================================================
  32091. -- TABLE: cell_line_synonym
  32092. -- ================================================
  32093. create table cell_line_synonym (
  32094. cell_line_synonym_id serial not null,
  32095. primary key (cell_line_synonym_id),
  32096. cell_line_id int not null,
  32097. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  32098. synonym_id int not null,
  32099. foreign key (synonym_id) references synonym (synonym_id) on delete cascade INITIALLY DEFERRED,
  32100. pub_id int not null,
  32101. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  32102. is_current boolean not null default 'false',
  32103. is_internal boolean not null default 'false',
  32104. constraint cell_line_synonym_c1 unique (synonym_id,cell_line_id,pub_id)
  32105. );
  32106. grant all on cell_line_synonym to PUBLIC;
  32107. -- ================================================
  32108. -- TABLE: cell_line_cvterm
  32109. -- ================================================
  32110. create table cell_line_cvterm (
  32111. cell_line_cvterm_id serial not null,
  32112. primary key (cell_line_cvterm_id),
  32113. cell_line_id int not null,
  32114. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  32115. cvterm_id int not null,
  32116. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  32117. pub_id int not null,
  32118. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  32119. rank int not null default 0,
  32120. constraint cell_line_cvterm_c1 unique (cell_line_id,cvterm_id,pub_id,rank)
  32121. );
  32122. grant all on cell_line_cvterm to PUBLIC;
  32123. -- ================================================
  32124. -- TABLE: cell_line_dbxref
  32125. -- ================================================
  32126. create table cell_line_dbxref (
  32127. cell_line_dbxref_id serial not null,
  32128. primary key (cell_line_dbxref_id),
  32129. cell_line_id int not null,
  32130. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  32131. dbxref_id int not null,
  32132. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  32133. is_current boolean not null default 'true',
  32134. constraint cell_line_dbxref_c1 unique (cell_line_id,dbxref_id)
  32135. );
  32136. grant all on cell_line_dbxref to PUBLIC;
  32137. -- ================================================
  32138. -- TABLE: cell_lineprop
  32139. -- ================================================
  32140. create table cell_lineprop (
  32141. cell_lineprop_id serial not null,
  32142. primary key (cell_lineprop_id),
  32143. cell_line_id int not null,
  32144. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  32145. type_id int not null,
  32146. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  32147. value text null,
  32148. rank int not null default 0,
  32149. constraint cell_lineprop_c1 unique (cell_line_id,type_id,rank)
  32150. );
  32151. grant all on cell_lineprop to PUBLIC;
  32152. -- ================================================
  32153. -- TABLE: cell_lineprop_pub
  32154. -- ================================================
  32155. create table cell_lineprop_pub (
  32156. cell_lineprop_pub_id serial not null,
  32157. primary key (cell_lineprop_pub_id),
  32158. cell_lineprop_id int not null,
  32159. foreign key (cell_lineprop_id) references cell_lineprop (cell_lineprop_id) on delete cascade INITIALLY DEFERRED,
  32160. pub_id int not null,
  32161. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  32162. constraint cell_lineprop_pub_c1 unique (cell_lineprop_id,pub_id)
  32163. );
  32164. grant all on cell_lineprop_pub to PUBLIC;
  32165. -- ================================================
  32166. -- TABLE: cell_line_feature
  32167. -- ================================================
  32168. create table cell_line_feature (
  32169. cell_line_feature_id serial not null,
  32170. primary key (cell_line_feature_id),
  32171. cell_line_id int not null,
  32172. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  32173. feature_id int not null,
  32174. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  32175. pub_id int not null,
  32176. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  32177. constraint cell_line_feature_c1 unique (cell_line_id, feature_id, pub_id)
  32178. );
  32179. grant all on cell_line_feature to PUBLIC;
  32180. -- ================================================
  32181. -- TABLE: cell_line_cvtermprop
  32182. -- ================================================
  32183. create table cell_line_cvtermprop (
  32184. cell_line_cvtermprop_id serial not null,
  32185. primary key (cell_line_cvtermprop_id),
  32186. cell_line_cvterm_id int not null,
  32187. foreign key (cell_line_cvterm_id) references cell_line_cvterm (cell_line_cvterm_id) on delete cascade INITIALLY DEFERRED,
  32188. type_id int not null,
  32189. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  32190. value text null,
  32191. rank int not null default 0,
  32192. constraint cell_line_cvtermprop_c1 unique (cell_line_cvterm_id, type_id, rank)
  32193. );
  32194. grant all on cell_line_cvtermprop to PUBLIC;
  32195. -- ================================================
  32196. -- TABLE: cell_line_pub
  32197. -- ================================================
  32198. create table cell_line_pub (
  32199. cell_line_pub_id serial not null,
  32200. primary key (cell_line_pub_id),
  32201. cell_line_id int not null,
  32202. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  32203. pub_id int not null,
  32204. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  32205. constraint cell_line_pub_c1 unique (cell_line_id, pub_id)
  32206. );
  32207. grant all on cell_line_pub to PUBLIC;
  32208. -- ================================================
  32209. -- TABLE: cell_line_library
  32210. -- ================================================
  32211. create table cell_line_library (
  32212. cell_line_library_id serial not null,
  32213. primary key (cell_line_library_id),
  32214. cell_line_id int not null,
  32215. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  32216. library_id int not null,
  32217. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  32218. pub_id int not null,
  32219. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  32220. constraint cell_line_library_c1 unique (cell_line_id, library_id, pub_id)
  32221. );
  32222. grant all on cell_line_library to PUBLIC;
  32223. -- VIEW gffatts: a view to get feature attributes in a format that
  32224. -- will make it easy to convert them to GFF attributes
  32225. CREATE OR REPLACE VIEW gffatts (
  32226. feature_id,
  32227. type,
  32228. attribute
  32229. ) AS
  32230. SELECT feature_id, 'cvterm' AS type, s.name AS attribute
  32231. FROM cvterm s, feature_cvterm fs
  32232. WHERE fs.cvterm_id = s.cvterm_id
  32233. UNION ALL
  32234. SELECT feature_id, 'dbxref' AS type, d.name || ':' || s.accession AS attribute
  32235. FROM dbxref s, feature_dbxref fs, db d
  32236. WHERE fs.dbxref_id = s.dbxref_id and s.db_id = d.db_id
  32237. --SELECT feature_id, 'expression' AS type, s.description AS attribute
  32238. --FROM expression s, feature_expression fs
  32239. --WHERE fs.expression_id = s.expression_id
  32240. --UNION ALL
  32241. --SELECT fg.feature_id, 'genotype' AS type, g.uniquename||': '||g.description AS attribute
  32242. --FROM gcontext g, feature_gcontext fg
  32243. --WHERE g.gcontext_id = fg.gcontext_id
  32244. --UNION ALL
  32245. --SELECT feature_id, 'genotype' AS type, s.description AS attribute
  32246. --FROM genotype s, feature_genotype fs
  32247. --WHERE fs.genotype_id = s.genotype_id
  32248. --UNION ALL
  32249. --SELECT feature_id, 'phenotype' AS type, s.description AS attribute
  32250. --FROM phenotype s, feature_phenotype fs
  32251. --WHERE fs.phenotype_id = s.phenotype_id
  32252. UNION ALL
  32253. SELECT feature_id, 'synonym' AS type, s.name AS attribute
  32254. FROM synonym s, feature_synonym fs
  32255. WHERE fs.synonym_id = s.synonym_id
  32256. UNION ALL
  32257. SELECT fp.feature_id,cv.name,fp.value
  32258. FROM featureprop fp, cvterm cv
  32259. WHERE fp.type_id = cv.cvterm_id
  32260. UNION ALL
  32261. SELECT feature_id, 'pub' AS type, s.series_name || ':' || s.title AS attribute
  32262. FROM pub s, feature_pub fs
  32263. WHERE fs.pub_id = s.pub_id;
  32264. --creates a view that can be used to assemble a GFF3 compliant attribute string
  32265. CREATE OR REPLACE VIEW gff3atts (
  32266. feature_id,
  32267. type,
  32268. attribute
  32269. ) AS
  32270. SELECT feature_id,
  32271. 'Ontology_term' AS type,
  32272. CASE WHEN db.name like '%Gene Ontology%' THEN 'GO:'|| dbx.accession
  32273. WHEN db.name like 'Sequence Ontology%' THEN 'SO:'|| dbx.accession
  32274. ELSE CAST(db.name||':'|| dbx.accession AS varchar)
  32275. END
  32276. FROM cvterm s, dbxref dbx, feature_cvterm fs, db
  32277. WHERE fs.cvterm_id = s.cvterm_id and s.dbxref_id=dbx.dbxref_id and
  32278. db.db_id = dbx.db_id
  32279. UNION ALL
  32280. SELECT feature_id, 'Dbxref' AS type, d.name || ':' || s.accession AS
  32281. attribute
  32282. FROM dbxref s, feature_dbxref fs, db d
  32283. WHERE fs.dbxref_id = s.dbxref_id and s.db_id = d.db_id and
  32284. d.name != 'GFF_source'
  32285. UNION ALL
  32286. SELECT f.feature_id, 'Alias' AS type, s.name AS attribute
  32287. FROM synonym s, feature_synonym fs, feature f
  32288. WHERE fs.synonym_id = s.synonym_id and f.feature_id = fs.feature_id and
  32289. f.name != s.name and f.uniquename != s.name
  32290. UNION ALL
  32291. SELECT fp.feature_id,cv.name,fp.value
  32292. FROM featureprop fp, cvterm cv
  32293. WHERE fp.type_id = cv.cvterm_id
  32294. UNION ALL
  32295. SELECT feature_id, 'pub' AS type, s.series_name || ':' || s.title AS
  32296. attribute
  32297. FROM pub s, feature_pub fs
  32298. WHERE fs.pub_id = s.pub_id
  32299. UNION ALL
  32300. SELECT fr.subject_id as feature_id, 'Parent' as type, parent.uniquename
  32301. as attribute
  32302. FROM feature_relationship fr, feature parent
  32303. WHERE fr.object_id=parent.feature_id AND fr.type_id = (SELECT cvterm_id
  32304. FROM cvterm WHERE name='part_of')
  32305. UNION ALL
  32306. SELECT fr.subject_id as feature_id, 'Derived_from' as type,
  32307. parent.uniquename as attribute
  32308. FROM feature_relationship fr, feature parent
  32309. WHERE fr.object_id=parent.feature_id AND fr.type_id = (SELECT cvterm_id
  32310. FROM cvterm WHERE name='derives_from')
  32311. UNION ALL
  32312. SELECT fl.feature_id, 'Target' as type, target.name || ' ' || fl.fmin+1
  32313. || ' ' || fl.fmax || ' ' || fl.strand as attribute
  32314. FROM featureloc fl, feature target
  32315. WHERE fl.srcfeature_id=target.feature_id
  32316. AND fl.rank != 0
  32317. UNION ALL
  32318. SELECT feature_id, 'ID' as type, uniquename as attribute
  32319. FROM feature
  32320. WHERE type_id NOT IN (SELECT cvterm_id FROM cvterm WHERE name='CDS')
  32321. UNION ALL
  32322. SELECT feature_id, 'chado_feature_id' as type, CAST(feature_id AS
  32323. varchar) as attribute
  32324. FROM feature
  32325. UNION ALL
  32326. SELECT feature_id, 'Name' as type, name as attribute
  32327. FROM feature;
  32328. --replaced with Rob B's improved view
  32329. CREATE OR REPLACE VIEW gff3view (
  32330. feature_id, ref, source, type, fstart, fend,
  32331. score, strand, phase, seqlen, name, organism_id
  32332. ) AS
  32333. SELECT
  32334. f.feature_id, sf.name, gffdbx.accession, cv.name,
  32335. fl.fmin+1, fl.fmax, af.significance, fl.strand,
  32336. fl.phase, f.seqlen, f.name, f.organism_id
  32337. FROM feature f
  32338. LEFT JOIN featureloc fl ON (f.feature_id = fl.feature_id)
  32339. LEFT JOIN feature sf ON (fl.srcfeature_id = sf.feature_id)
  32340. LEFT JOIN ( SELECT fd.feature_id, d.accession
  32341. FROM feature_dbxref fd
  32342. JOIN dbxref d using(dbxref_id)
  32343. JOIN db using(db_id)
  32344. WHERE db.name = 'GFF_source'
  32345. ) as gffdbx
  32346. ON (f.feature_id=gffdbx.feature_id)
  32347. LEFT JOIN cvterm cv ON (f.type_id = cv.cvterm_id)
  32348. LEFT JOIN analysisfeature af ON (f.feature_id = af.feature_id);
  32349. -- FUNCTION gfffeatureatts (integer) is a function to get
  32350. -- data in the same format as the gffatts view so that
  32351. -- it can be easily converted to GFF attributes.
  32352. CREATE FUNCTION gfffeatureatts (integer)
  32353. RETURNS SETOF gffatts
  32354. AS
  32355. '
  32356. SELECT feature_id, ''cvterm'' AS type, s.name AS attribute
  32357. FROM cvterm s, feature_cvterm fs
  32358. WHERE fs.feature_id= $1 AND fs.cvterm_id = s.cvterm_id
  32359. UNION
  32360. SELECT feature_id, ''dbxref'' AS type, d.name || '':'' || s.accession AS attribute
  32361. FROM dbxref s, feature_dbxref fs, db d
  32362. WHERE fs.feature_id= $1 AND fs.dbxref_id = s.dbxref_id AND s.db_id = d.db_id
  32363. --UNION
  32364. --SELECT feature_id, ''expression'' AS type, s.description AS attribute
  32365. --FROM expression s, feature_expression fs
  32366. --WHERE fs.feature_id= $1 AND fs.expression_id = s.expression_id
  32367. --UNION
  32368. --SELECT fg.feature_id, ''genotype'' AS type, g.uniquename||'': ''||g.description AS attribute
  32369. --FROM gcontext g, feature_gcontext fg
  32370. --WHERE fg.feature_id= $1 AND g.gcontext_id = fg.gcontext_id
  32371. --UNION
  32372. --SELECT feature_id, ''genotype'' AS type, s.description AS attribute
  32373. --FROM genotype s, feature_genotype fs
  32374. --WHERE fs.feature_id= $1 AND fs.genotype_id = s.genotype_id
  32375. --UNION
  32376. --SELECT feature_id, ''phenotype'' AS type, s.description AS attribute
  32377. --FROM phenotype s, feature_phenotype fs
  32378. --WHERE fs.feature_id= $1 AND fs.phenotype_id = s.phenotype_id
  32379. UNION
  32380. SELECT feature_id, ''synonym'' AS type, s.name AS attribute
  32381. FROM synonym s, feature_synonym fs
  32382. WHERE fs.feature_id= $1 AND fs.synonym_id = s.synonym_id
  32383. UNION
  32384. SELECT fp.feature_id,cv.name,fp.value
  32385. FROM featureprop fp, cvterm cv
  32386. WHERE fp.feature_id= $1 AND fp.type_id = cv.cvterm_id
  32387. UNION
  32388. SELECT feature_id, ''pub'' AS type, s.series_name || '':'' || s.title AS attribute
  32389. FROM pub s, feature_pub fs
  32390. WHERE fs.feature_id= $1 AND fs.pub_id = s.pub_id
  32391. '
  32392. LANGUAGE SQL;
  32393. --
  32394. -- functions for creating coordinate based functions
  32395. --
  32396. -- create a point
  32397. CREATE OR REPLACE FUNCTION featureslice(int, int) RETURNS setof featureloc AS
  32398. 'SELECT * from featureloc where boxquery($1, $2) @ boxrange(fmin,fmax)'
  32399. LANGUAGE 'sql';
  32400. --uses the gff3atts to create a GFF3 compliant attribute string
  32401. CREATE OR REPLACE FUNCTION gffattstring (integer) RETURNS varchar AS
  32402. 'DECLARE
  32403. return_string varchar;
  32404. f_id ALIAS FOR $1;
  32405. atts_view gffatts%ROWTYPE;
  32406. feature_row feature%ROWTYPE;
  32407. name varchar;
  32408. uniquename varchar;
  32409. parent varchar;
  32410. escape_loc int;
  32411. BEGIN
  32412. --Get name from feature.name
  32413. --Get ID from feature.uniquename
  32414. SELECT INTO feature_row * FROM feature WHERE feature_id = f_id;
  32415. name = feature_row.name;
  32416. return_string = ''ID='' || feature_row.uniquename;
  32417. IF name IS NOT NULL AND name != ''''
  32418. THEN
  32419. return_string = return_string ||'';'' || ''Name='' || name;
  32420. END IF;
  32421. --Get Parent from feature_relationship
  32422. SELECT INTO feature_row * FROM feature f, feature_relationship fr
  32423. WHERE fr.subject_id = f_id AND fr.object_id = f.feature_id;
  32424. IF FOUND
  32425. THEN
  32426. return_string = return_string||'';''||''Parent=''||feature_row.uniquename;
  32427. END IF;
  32428. FOR atts_view IN SELECT * FROM gff3atts WHERE feature_id = f_id LOOP
  32429. escape_loc = position('';'' in atts_view.attribute);
  32430. IF escape_loc > 0 THEN
  32431. atts_view.attribute = replace(atts_view.attribute, '';'', ''%3B'');
  32432. END IF;
  32433. return_string = return_string || '';''
  32434. || atts_view.type || ''=''
  32435. || atts_view.attribute;
  32436. END LOOP;
  32437. RETURN return_string;
  32438. END;
  32439. '
  32440. LANGUAGE plpgsql;
  32441. --creates a view that is suitable for creating a GFF3 string
  32442. --CREATE OR REPLACE VIEW gff3view (
  32443. --REMOVED and RECREATED in sequence-gff-views.sql to avoid
  32444. --using the function above
  32445. --------------------------------
  32446. ---- all_feature_names ---------
  32447. --------------------------------
  32448. -- This is a view to replace the denormaliziation of the synonym
  32449. -- table. It contains names and uniquenames from feature and
  32450. -- synonym.names from the synonym table, so that GBrowse has one
  32451. -- place to search for names.
  32452. --
  32453. -- To materialize this view, run gmod_materialized_view_tool.pl -c and
  32454. -- answer the questions with these responses:
  32455. --
  32456. -- all_feature_names
  32457. --
  32458. -- public.all_feature_names
  32459. --
  32460. -- y (yes, replace the existing view)
  32461. --
  32462. -- (some update frequency, I chose daily)
  32463. --
  32464. -- feature_id integer,name varchar(255),organism_id integer
  32465. --
  32466. -- (the select part of the view below, all on one line)
  32467. --
  32468. -- feature_id,name
  32469. --
  32470. -- create index all_feature_names_lower_name on all_feature_names (lower(name))
  32471. --
  32472. -- y
  32473. --
  32474. CREATE OR REPLACE VIEW all_feature_names (
  32475. feature_id,
  32476. name,
  32477. organism_id
  32478. ) AS
  32479. SELECT feature_id,CAST(substring(uniquename from 0 for 255) as varchar(255)) as name,organism_id FROM feature
  32480. UNION
  32481. SELECT feature_id, name, organism_id FROM feature where name is not null
  32482. UNION
  32483. SELECT fs.feature_id,s.name,f.organism_id FROM feature_synonym fs, synonym s, feature f
  32484. WHERE fs.synonym_id = s.synonym_id AND fs.feature_id = f.feature_id
  32485. UNION
  32486. 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
  32487. WHERE f.feature_id = fp.feature_id
  32488. UNION
  32489. SELECT fd.feature_id, d.accession, f.organism_id FROM feature_dbxref fd, dbxref d,feature f
  32490. WHERE fd.dbxref_id = d.dbxref_id AND fd.feature_id = f.feature_id;
  32491. --------------------------------
  32492. ---- dfeatureloc ---------------
  32493. --------------------------------
  32494. -- dfeatureloc is meant as an alternate representation of
  32495. -- the data in featureloc (see the descrption of featureloc
  32496. -- in sequence.sql). In dfeatureloc, fmin and fmax are
  32497. -- replaced with nbeg and nend. Whereas fmin and fmax
  32498. -- are absolute coordinates relative to the parent feature, nbeg
  32499. -- and nend are the beginning and ending coordinates
  32500. -- relative to the feature itself. For example, nbeg would
  32501. -- mark the 5' end of a gene and nend would mark the 3' end.
  32502. CREATE OR REPLACE VIEW dfeatureloc (
  32503. featureloc_id,
  32504. feature_id,
  32505. srcfeature_id,
  32506. nbeg,
  32507. is_nbeg_partial,
  32508. nend,
  32509. is_nend_partial,
  32510. strand,
  32511. phase,
  32512. residue_info,
  32513. locgroup,
  32514. rank
  32515. ) AS
  32516. SELECT featureloc_id, feature_id, srcfeature_id, fmin, is_fmin_partial,
  32517. fmax, is_fmax_partial, strand, phase, residue_info, locgroup, rank
  32518. FROM featureloc
  32519. WHERE (strand < 0 or phase < 0)
  32520. UNION
  32521. SELECT featureloc_id, feature_id, srcfeature_id, fmax, is_fmax_partial,
  32522. fmin, is_fmin_partial, strand, phase, residue_info, locgroup, rank
  32523. FROM featureloc
  32524. WHERE (strand is NULL or strand >= 0 or phase >= 0) ;
  32525. --------------------------------
  32526. ---- f_type --------------------
  32527. --------------------------------
  32528. CREATE OR REPLACE VIEW f_type
  32529. AS
  32530. SELECT f.feature_id,
  32531. f.name,
  32532. f.dbxref_id,
  32533. c.name AS type,
  32534. f.residues,
  32535. f.seqlen,
  32536. f.md5checksum,
  32537. f.type_id,
  32538. f.timeaccessioned,
  32539. f.timelastmodified
  32540. FROM feature f, cvterm c
  32541. WHERE f.type_id = c.cvterm_id;
  32542. --------------------------------
  32543. ---- fnr_type ------------------
  32544. --------------------------------
  32545. CREATE OR REPLACE VIEW fnr_type
  32546. AS
  32547. SELECT f.feature_id,
  32548. f.name,
  32549. f.dbxref_id,
  32550. c.name AS type,
  32551. f.residues,
  32552. f.seqlen,
  32553. f.md5checksum,
  32554. f.type_id,
  32555. f.timeaccessioned,
  32556. f.timelastmodified
  32557. FROM feature f left outer join analysisfeature af
  32558. on (f.feature_id = af.feature_id), cvterm c
  32559. WHERE f.type_id = c.cvterm_id
  32560. and af.feature_id is null;
  32561. --------------------------------
  32562. ---- f_loc ---------------------
  32563. --------------------------------
  32564. -- Note from Scott: I changed this view to depend on dfeatureloc,
  32565. -- since I don't know what it is used for. The change should
  32566. -- be transparent. I also changed dbxrefstr to dbxref_id since
  32567. -- dbxrefstr is no longer in feature
  32568. CREATE OR REPLACE VIEW f_loc
  32569. AS
  32570. SELECT f.feature_id,
  32571. f.name,
  32572. f.dbxref_id,
  32573. fl.nbeg,
  32574. fl.nend,
  32575. fl.strand
  32576. FROM dfeatureloc fl, f_type f
  32577. WHERE f.feature_id = fl.feature_id;
  32578. --------------------------------
  32579. ---- fp_key -------------------
  32580. --------------------------------
  32581. CREATE OR REPLACE VIEW fp_key
  32582. AS
  32583. SELECT fp.feature_id,
  32584. c.name AS pkey,
  32585. fp.value
  32586. FROM featureprop fp, cvterm c
  32587. WHERE fp.featureprop_id = c.cvterm_id;
  32588. -- [symmetric,reflexive]
  32589. -- intervals have at least one interbase point in common
  32590. -- (i.e. overlap OR abut)
  32591. -- EXAMPLE QUERY:
  32592. -- (features of same type that overlap)
  32593. -- SELECT r.*
  32594. -- FROM feature AS x
  32595. -- INNER JOIN feature_meets AS r ON (x.feature_id=r.subject_id)
  32596. -- INNER JOIN feature AS y ON (y.feature_id=r.object_id)
  32597. -- WHERE x.type_id=y.type_id
  32598. CREATE OR REPLACE VIEW feature_meets (
  32599. subject_id,
  32600. object_id
  32601. ) AS
  32602. SELECT
  32603. x.feature_id,
  32604. y.feature_id
  32605. FROM
  32606. featureloc AS x,
  32607. featureloc AS y
  32608. WHERE
  32609. x.srcfeature_id=y.srcfeature_id
  32610. AND
  32611. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  32612. COMMENT ON VIEW feature_meets IS 'intervals have at least one
  32613. interbase point in common (ie overlap OR abut). symmetric,reflexive';
  32614. -- [symmetric,reflexive]
  32615. -- as above, strands match
  32616. CREATE OR REPLACE VIEW feature_meets_on_same_strand (
  32617. subject_id,
  32618. object_id
  32619. ) AS
  32620. SELECT
  32621. x.feature_id,
  32622. y.feature_id
  32623. FROM
  32624. featureloc AS x,
  32625. featureloc AS y
  32626. WHERE
  32627. x.srcfeature_id=y.srcfeature_id
  32628. AND
  32629. x.strand = y.strand
  32630. AND
  32631. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  32632. COMMENT ON VIEW feature_meets_on_same_strand IS 'as feature_meets, but
  32633. featurelocs must be on the same strand. symmetric,reflexive';
  32634. -- [symmetric]
  32635. -- intervals have no interbase points in common and do not abut
  32636. CREATE OR REPLACE VIEW feature_disjoint (
  32637. subject_id,
  32638. object_id
  32639. ) AS
  32640. SELECT
  32641. x.feature_id,
  32642. y.feature_id
  32643. FROM
  32644. featureloc AS x,
  32645. featureloc AS y
  32646. WHERE
  32647. x.srcfeature_id=y.srcfeature_id
  32648. AND
  32649. ( x.fmax < y.fmin AND x.fmin > y.fmax );
  32650. COMMENT ON VIEW feature_disjoint IS 'featurelocs do not meet. symmetric';
  32651. -- 4-ary relation
  32652. CREATE OR REPLACE VIEW feature_union AS
  32653. SELECT
  32654. x.feature_id AS subject_id,
  32655. y.feature_id AS object_id,
  32656. x.srcfeature_id,
  32657. x.strand AS subject_strand,
  32658. y.strand AS object_strand,
  32659. CASE WHEN x.fmin<y.fmin THEN x.fmin ELSE y.fmin END AS fmin,
  32660. CASE WHEN x.fmax>y.fmax THEN x.fmax ELSE y.fmax END AS fmax
  32661. FROM
  32662. featureloc AS x,
  32663. featureloc AS y
  32664. WHERE
  32665. x.srcfeature_id=y.srcfeature_id
  32666. AND
  32667. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  32668. COMMENT ON VIEW feature_union IS 'set-union on interval defined by featureloc. featurelocs must meet';
  32669. -- 4-ary relation
  32670. CREATE OR REPLACE VIEW feature_intersection AS
  32671. SELECT
  32672. x.feature_id AS subject_id,
  32673. y.feature_id AS object_id,
  32674. x.srcfeature_id,
  32675. x.strand AS subject_strand,
  32676. y.strand AS object_strand,
  32677. CASE WHEN x.fmin<y.fmin THEN y.fmin ELSE x.fmin END AS fmin,
  32678. CASE WHEN x.fmax>y.fmax THEN y.fmax ELSE x.fmax END AS fmax
  32679. FROM
  32680. featureloc AS x,
  32681. featureloc AS y
  32682. WHERE
  32683. x.srcfeature_id=y.srcfeature_id
  32684. AND
  32685. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  32686. COMMENT ON VIEW feature_intersection IS 'set-intersection on interval defined by featureloc. featurelocs must meet';
  32687. -- 4-ary relation
  32688. -- subtract object interval from subject interval
  32689. -- (may leave zero, one or two intervals)
  32690. CREATE OR REPLACE VIEW feature_difference (
  32691. subject_id,
  32692. object_id,
  32693. srcfeature_id,
  32694. fmin,
  32695. fmax,
  32696. strand
  32697. ) AS
  32698. -- left interval
  32699. SELECT
  32700. x.feature_id,
  32701. y.feature_id,
  32702. x.strand,
  32703. x.srcfeature_id,
  32704. x.fmin,
  32705. y.fmin
  32706. FROM
  32707. featureloc AS x,
  32708. featureloc AS y
  32709. WHERE
  32710. x.srcfeature_id=y.srcfeature_id
  32711. AND
  32712. (x.fmin < y.fmin AND x.fmax >= y.fmax )
  32713. UNION
  32714. -- right interval
  32715. SELECT
  32716. x.feature_id,
  32717. y.feature_id,
  32718. x.strand,
  32719. x.srcfeature_id,
  32720. y.fmax,
  32721. x.fmax
  32722. FROM
  32723. featureloc AS x,
  32724. featureloc AS y
  32725. WHERE
  32726. x.srcfeature_id=y.srcfeature_id
  32727. AND
  32728. (x.fmax > y.fmax AND x.fmin <= y.fmin );
  32729. COMMENT ON VIEW feature_difference IS 'set-distance on interval defined by featureloc. featurelocs must meet';
  32730. -- 4-ary relation
  32731. CREATE OR REPLACE VIEW feature_distance AS
  32732. SELECT
  32733. x.feature_id AS subject_id,
  32734. y.feature_id AS object_id,
  32735. x.srcfeature_id,
  32736. x.strand AS subject_strand,
  32737. y.strand AS object_strand,
  32738. CASE WHEN x.fmax <= y.fmin THEN (x.fmax-y.fmin) ELSE (y.fmax-x.fmin) END AS distance
  32739. FROM
  32740. featureloc AS x,
  32741. featureloc AS y
  32742. WHERE
  32743. x.srcfeature_id=y.srcfeature_id
  32744. AND
  32745. ( x.fmax <= y.fmin OR x.fmin >= y.fmax );
  32746. COMMENT ON VIEW feature_difference IS 'size of gap between two features. must be abutting or disjoint';
  32747. -- [transitive,reflexive]
  32748. -- (should this be made non-reflexive?)
  32749. -- subject intervals contains (or is same as) object interval
  32750. CREATE OR REPLACE VIEW feature_contains (
  32751. subject_id,
  32752. object_id
  32753. ) AS
  32754. SELECT
  32755. x.feature_id,
  32756. y.feature_id
  32757. FROM
  32758. featureloc AS x,
  32759. featureloc AS y
  32760. WHERE
  32761. x.srcfeature_id=y.srcfeature_id
  32762. AND
  32763. ( y.fmin >= x.fmin AND y.fmin <= x.fmax );
  32764. COMMENT ON VIEW feature_contains IS 'subject intervals contains (or is
  32765. same as) object interval. transitive,reflexive';
  32766. -- featureset relations:
  32767. -- a featureset relation is true between any two features x and y
  32768. -- if the relation is true for any x' and y' where x' and y' are
  32769. -- subfeatures of x and y
  32770. -- see feature_meets
  32771. -- example: two transcripts meet if any of their exons or CDSs overlap
  32772. -- or abut
  32773. CREATE OR REPLACE VIEW featureset_meets (
  32774. subject_id,
  32775. object_id
  32776. ) AS
  32777. SELECT
  32778. x.object_id,
  32779. y.object_id
  32780. FROM
  32781. feature_meets AS r
  32782. INNER JOIN feature_relationship AS x ON (r.subject_id = x.subject_id)
  32783. INNER JOIN feature_relationship AS y ON (r.object_id = y.subject_id);