default_schema.sql 1.8 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882
  1. -- $Id: general.sql,v 1.31 2007-03-01 02:45:54 briano Exp $
  2. -- ==========================================
  3. -- Chado general module
  4. --
  5. -- ================================================
  6. -- TABLE: tableinfo
  7. -- ================================================
  8. create table tableinfo (
  9. tableinfo_id serial not null,
  10. primary key (tableinfo_id),
  11. name varchar(30) not null,
  12. primary_key_column varchar(30) null,
  13. is_view int not null default 0,
  14. view_on_table_id int null,
  15. superclass_table_id int null,
  16. is_updateable int not null default 1,
  17. modification_date date not null default now(),
  18. constraint tableinfo_c1 unique (name)
  19. );
  20. COMMENT ON TABLE tableinfo IS NULL;
  21. -- ================================================
  22. -- TABLE: db
  23. -- ================================================
  24. create table db (
  25. db_id serial not null,
  26. primary key (db_id),
  27. name varchar(255) not null,
  28. -- contact_id int,
  29. -- foreign key (contact_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  30. description varchar(255) null,
  31. urlprefix varchar(255) null,
  32. url varchar(255) null,
  33. constraint db_c1 unique (name)
  34. );
  35. COMMENT ON TABLE db IS 'A database authority. Typical databases in
  36. bioinformatics are FlyBase, GO, UniProt, NCBI, MGI, etc. The authority
  37. is generally known by this shortened form, which is unique within the
  38. bioinformatics and biomedical realm. To Do - add support for URIs,
  39. URNs (e.g. LSIDs). We can do this by treating the URL as a URI -
  40. however, some applications may expect this to be resolvable - to be
  41. decided.';
  42. -- ================================================
  43. -- TABLE: dbxref
  44. -- ================================================
  45. create table dbxref (
  46. dbxref_id serial not null,
  47. primary key (dbxref_id),
  48. db_id int not null,
  49. foreign key (db_id) references db (db_id) on delete cascade INITIALLY DEFERRED,
  50. accession varchar(255) not null,
  51. version varchar(255) not null default '',
  52. description text,
  53. constraint dbxref_c1 unique (db_id,accession,version)
  54. );
  55. create index dbxref_idx1 on dbxref (db_id);
  56. create index dbxref_idx2 on dbxref (accession);
  57. create index dbxref_idx3 on dbxref (version);
  58. COMMENT ON TABLE dbxref IS 'A unique, global, public, stable identifier. Not necessarily an external reference - can reference data items inside the particular chado instance being used. Typically a row in a table can be uniquely identified with a primary identifier (called dbxref_id); a table may also have secondary identifiers (in a linking table <T>_dbxref). A dbxref is generally written as <DB>:<ACCESSION> or as <DB>:<ACCESSION>:<VERSION>.';
  59. COMMENT ON COLUMN dbxref.accession IS 'The local part of the identifier. Guaranteed by the db authority to be unique for that db.';
  60. -- ================================================
  61. -- TABLE: project
  62. -- ================================================
  63. create table project (
  64. project_id serial not null,
  65. primary key (project_id),
  66. name varchar(255) not null,
  67. description varchar(255) not null,
  68. constraint project_c1 unique (name)
  69. );
  70. COMMENT ON TABLE project IS NULL;
  71. CREATE VIEW db_dbxref_count AS
  72. SELECT db.name,count(*) AS num_dbxrefs FROM db INNER JOIN dbxref USING (db_id) GROUP BY db.name;
  73. COMMENT ON VIEW db_dbxref_count IS 'per-db dbxref counts';
  74. CREATE OR REPLACE FUNCTION store_db (VARCHAR)
  75. RETURNS INT AS
  76. 'DECLARE
  77. v_name ALIAS FOR $1;
  78. v_db_id INTEGER;
  79. BEGIN
  80. SELECT INTO v_db_id db_id
  81. FROM db
  82. WHERE name=v_name;
  83. IF NOT FOUND THEN
  84. INSERT INTO db
  85. (name)
  86. VALUES
  87. (v_name);
  88. RETURN currval(''db_db_id_seq'');
  89. END IF;
  90. RETURN v_db_id;
  91. END;
  92. ' LANGUAGE 'plpgsql';
  93. CREATE OR REPLACE FUNCTION store_dbxref (VARCHAR,VARCHAR)
  94. RETURNS INT AS
  95. 'DECLARE
  96. v_dbname ALIAS FOR $1;
  97. v_accession ALIAS FOR $1;
  98. v_db_id INTEGER;
  99. v_dbxref_id INTEGER;
  100. BEGIN
  101. SELECT INTO v_db_id
  102. store_db(v_dbname);
  103. SELECT INTO v_dbxref_id dbxref_id
  104. FROM dbxref
  105. WHERE db_id=v_db_id AND
  106. accession=v_accession;
  107. IF NOT FOUND THEN
  108. INSERT INTO dbxref
  109. (db_id,accession)
  110. VALUES
  111. (v_db_id,v_accession);
  112. RETURN currval(''dbxref_dbxref_id_seq'');
  113. END IF;
  114. RETURN v_dbxref_id;
  115. END;
  116. ' LANGUAGE 'plpgsql';
  117. -- $Id: cv.sql,v 1.37 2007-02-28 15:08:48 briano Exp $
  118. -- ==========================================
  119. -- Chado cv module
  120. --
  121. -- =================================================================
  122. -- Dependencies:
  123. --
  124. -- :import dbxref from general
  125. -- =================================================================
  126. -- ================================================
  127. -- TABLE: cv
  128. -- ================================================
  129. create table cv (
  130. cv_id serial not null,
  131. primary key (cv_id),
  132. name varchar(255) not null,
  133. definition text,
  134. constraint cv_c1 unique (name)
  135. );
  136. COMMENT ON TABLE cv IS 'A controlled vocabulary or ontology. A cv is
  137. composed of cvterms (AKA terms, classes, types, universals - relations
  138. and properties are also stored in cvterm) and the relationships
  139. between them.';
  140. COMMENT ON COLUMN cv.name IS 'The name of the ontology. This
  141. corresponds to the obo-format -namespace-. cv names uniquely identify
  142. the cv. In OBO file format, the cv.name is known as the namespace.';
  143. COMMENT ON COLUMN cv.definition IS 'A text description of the criteria for
  144. membership of this ontology.';
  145. -- ================================================
  146. -- TABLE: cvterm
  147. -- ================================================
  148. create table cvterm (
  149. cvterm_id serial not null,
  150. primary key (cvterm_id),
  151. cv_id int not null,
  152. foreign key (cv_id) references cv (cv_id) on delete cascade INITIALLY DEFERRED,
  153. name varchar(1024) not null,
  154. definition text,
  155. dbxref_id int not null,
  156. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  157. is_obsolete int not null default 0,
  158. is_relationshiptype int not null default 0,
  159. constraint cvterm_c1 unique (name,cv_id,is_obsolete),
  160. constraint cvterm_c2 unique (dbxref_id)
  161. );
  162. create index cvterm_idx1 on cvterm (cv_id);
  163. create index cvterm_idx2 on cvterm (name);
  164. create index cvterm_idx3 on cvterm (dbxref_id);
  165. COMMENT ON TABLE cvterm IS 'A term, class, universal or type within an
  166. ontology or controlled vocabulary. This table is also used for
  167. relations and properties. cvterms constitute nodes in the graph
  168. defined by the collection of cvterms and cvterm_relationships.';
  169. COMMENT ON COLUMN cvterm.cv_id IS 'The cv or ontology or namespace to which
  170. this cvterm belongs.';
  171. COMMENT ON COLUMN cvterm.name IS 'A concise human-readable name or
  172. label for the cvterm. Uniquely identifies a cvterm within a cv.';
  173. COMMENT ON COLUMN cvterm.definition IS 'A human-readable text
  174. definition.';
  175. COMMENT ON COLUMN cvterm.dbxref_id IS 'Primary identifier dbxref - The
  176. unique global OBO identifier for this cvterm. Note that a cvterm may
  177. have multiple secondary dbxrefs - see also table: cvterm_dbxref.';
  178. COMMENT ON COLUMN cvterm.is_obsolete IS 'Boolean 0=false,1=true; see
  179. GO documentation for details of obsoletion. Note that two terms with
  180. different primary dbxrefs may exist if one is obsolete.';
  181. COMMENT ON COLUMN cvterm.is_relationshiptype IS 'Boolean
  182. 0=false,1=true relations or relationship types (also known as Typedefs
  183. in OBO format, or as properties or slots) form a cv/ontology in
  184. themselves. We use this flag to indicate whether this cvterm is an
  185. actual term/class/universal or a relation. Relations may be drawn from
  186. the OBO Relations ontology, but are not exclusively drawn from there.';
  187. COMMENT ON INDEX cvterm_c1 IS 'A name can mean different things in
  188. different contexts; for example "chromosome" in SO and GO. A name
  189. should be unique within an ontology or cv. A name may exist twice in a
  190. cv, in both obsolete and non-obsolete forms - these will be for
  191. different cvterms with different OBO identifiers; so GO documentation
  192. for more details on obsoletion. Note that occasionally multiple
  193. obsolete terms with the same name will exist in the same cv. If this
  194. is a possibility for the ontology under consideration (e.g. GO) then the
  195. ID should be appended to the name to ensure uniqueness.';
  196. COMMENT ON INDEX cvterm_c2 IS 'The OBO identifier is globally unique.';
  197. -- ================================================
  198. -- TABLE: cvterm_relationship
  199. -- ================================================
  200. create table cvterm_relationship (
  201. cvterm_relationship_id serial not null,
  202. primary key (cvterm_relationship_id),
  203. type_id int not null,
  204. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  205. subject_id int not null,
  206. foreign key (subject_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  207. object_id int not null,
  208. foreign key (object_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  209. constraint cvterm_relationship_c1 unique (subject_id,object_id,type_id)
  210. );
  211. create index cvterm_relationship_idx1 on cvterm_relationship (type_id);
  212. create index cvterm_relationship_idx2 on cvterm_relationship (subject_id);
  213. create index cvterm_relationship_idx3 on cvterm_relationship (object_id);
  214. COMMENT ON TABLE cvterm_relationship IS 'A relationship linking two
  215. cvterms. Each cvterm_relationship constitutes an edge in the graph
  216. defined by the collection of cvterms and cvterm_relationships. The
  217. meaning of the cvterm_relationship depends on the definition of the
  218. cvterm R refered to by type_id. However, in general the definitions
  219. are such that the statement "all SUBJs REL some OBJ" is true. The
  220. cvterm_relationship statement is about the subject, not the
  221. object. For example "insect wing part_of thorax".';
  222. COMMENT ON COLUMN cvterm_relationship.subject_id IS 'The subject of
  223. the subj-predicate-obj sentence. The cvterm_relationship is about the
  224. subject. In a graph, this typically corresponds to the child node.';
  225. COMMENT ON COLUMN cvterm_relationship.object_id IS 'The object of the
  226. subj-predicate-obj sentence. The cvterm_relationship refers to the
  227. object. In a graph, this typically corresponds to the parent node.';
  228. COMMENT ON COLUMN cvterm_relationship.type_id IS 'The nature of the
  229. relationship between subject and object. Note that relations are also
  230. housed in the cvterm table, typically from the OBO relationship
  231. ontology, although other relationship types are allowed.';
  232. -- ================================================
  233. -- TABLE: cvtermpath
  234. -- ================================================
  235. create table cvtermpath (
  236. cvtermpath_id serial not null,
  237. primary key (cvtermpath_id),
  238. type_id int,
  239. foreign key (type_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  240. subject_id int not null,
  241. foreign key (subject_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  242. object_id int not null,
  243. foreign key (object_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  244. cv_id int not null,
  245. foreign key (cv_id) references cv (cv_id) on delete cascade INITIALLY DEFERRED,
  246. pathdistance int,
  247. constraint cvtermpath_c1 unique (subject_id,object_id,type_id,pathdistance)
  248. );
  249. create index cvtermpath_idx1 on cvtermpath (type_id);
  250. create index cvtermpath_idx2 on cvtermpath (subject_id);
  251. create index cvtermpath_idx3 on cvtermpath (object_id);
  252. create index cvtermpath_idx4 on cvtermpath (cv_id);
  253. COMMENT ON TABLE cvtermpath IS 'The reflexive transitive closure of
  254. the cvterm_relationship relation.';
  255. COMMENT ON COLUMN cvtermpath.type_id IS 'The relationship type that
  256. this is a closure over. If null, then this is a closure over ALL
  257. relationship types. If non-null, then this references a relationship
  258. cvterm - note that the closure will apply to both this relationship
  259. AND the OBO_REL:is_a (subclass) relationship.';
  260. COMMENT ON COLUMN cvtermpath.cv_id IS 'Closures will mostly be within
  261. one cv. If the closure of a relationship traverses a cv, then this
  262. refers to the cv of the object_id cvterm.';
  263. COMMENT ON COLUMN cvtermpath.pathdistance IS 'The number of steps
  264. required to get from the subject cvterm to the object cvterm, counting
  265. from zero (reflexive relationship).';
  266. -- ================================================
  267. -- TABLE: cvtermsynonym
  268. -- ================================================
  269. create table cvtermsynonym (
  270. cvtermsynonym_id serial not null,
  271. primary key (cvtermsynonym_id),
  272. cvterm_id int not null,
  273. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  274. synonym varchar(1024) not null,
  275. type_id int,
  276. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  277. constraint cvtermsynonym_c1 unique (cvterm_id,synonym)
  278. );
  279. create index cvtermsynonym_idx1 on cvtermsynonym (cvterm_id);
  280. COMMENT ON TABLE cvtermsynonym IS 'A cvterm actually represents a
  281. distinct class or concept. A concept can be refered to by different
  282. phrases or names. In addition to the primary name (cvterm.name) there
  283. can be a number of alternative aliases or synonyms. For example, "T
  284. cell" as a synonym for "T lymphocyte".';
  285. COMMENT ON COLUMN cvtermsynonym.type_id IS 'A synonym can be exact,
  286. narrower, or broader than.';
  287. -- ================================================
  288. -- TABLE: cvterm_dbxref
  289. -- ================================================
  290. create table cvterm_dbxref (
  291. cvterm_dbxref_id serial not null,
  292. primary key (cvterm_dbxref_id),
  293. cvterm_id int not null,
  294. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  295. dbxref_id int not null,
  296. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  297. is_for_definition int not null default 0,
  298. constraint cvterm_dbxref_c1 unique (cvterm_id,dbxref_id)
  299. );
  300. create index cvterm_dbxref_idx1 on cvterm_dbxref (cvterm_id);
  301. create index cvterm_dbxref_idx2 on cvterm_dbxref (dbxref_id);
  302. COMMENT ON TABLE cvterm_dbxref IS 'In addition to the primary
  303. identifier (cvterm.dbxref_id) a cvterm can have zero or more secondary
  304. identifiers/dbxrefs, which may refer to records in external
  305. databases. The exact semantics of cvterm_dbxref are not fixed. For
  306. example: the dbxref could be a pubmed ID that is pertinent to the
  307. cvterm, or it could be an equivalent or similar term in another
  308. ontology. For example, GO cvterms are typically linked to InterPro
  309. IDs, even though the nature of the relationship between them is
  310. largely one of statistical association. The dbxref may be have data
  311. records attached in the same database instance, or it could be a
  312. "hanging" dbxref pointing to some external database. NOTE: If the
  313. desired objective is to link two cvterms together, and the nature of
  314. the relation is known and holds for all instances of the subject
  315. cvterm then consider instead using cvterm_relationship together with a
  316. well-defined relation.';
  317. COMMENT ON COLUMN cvterm_dbxref.is_for_definition IS 'A
  318. cvterm.definition should be supported by one or more references. If
  319. this column is true, the dbxref is not for a term in an external database -
  320. it is a dbxref for provenance information for the definition.';
  321. -- ================================================
  322. -- TABLE: cvtermprop
  323. -- ================================================
  324. create table cvtermprop (
  325. cvtermprop_id serial not null,
  326. primary key (cvtermprop_id),
  327. cvterm_id int not null,
  328. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  329. type_id int not null,
  330. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  331. value text not null default '',
  332. rank int not null default 0,
  333. unique(cvterm_id, type_id, value, rank)
  334. );
  335. create index cvtermprop_idx1 on cvtermprop (cvterm_id);
  336. create index cvtermprop_idx2 on cvtermprop (type_id);
  337. COMMENT ON TABLE cvtermprop IS 'Additional extensible properties can be attached to a cvterm using this table. Corresponds to -AnnotationProperty- in W3C OWL format.';
  338. 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.';
  339. COMMENT ON COLUMN cvtermprop.value IS 'The value of the property, represented as text. Numeric values are converted to their text representation.';
  340. COMMENT ON COLUMN cvtermprop.rank IS 'Property-Value ordering. Any
  341. cvterm can have multiple values for any particular property type -
  342. these are ordered in a list using rank, counting from zero. For
  343. properties that are single-valued rather than multi-valued, the
  344. default 0 value should be used.';
  345. -- ================================================
  346. -- TABLE: dbxrefprop
  347. -- ================================================
  348. create table dbxrefprop (
  349. dbxrefprop_id serial not null,
  350. primary key (dbxrefprop_id),
  351. dbxref_id int not null,
  352. foreign key (dbxref_id) references dbxref (dbxref_id) INITIALLY DEFERRED,
  353. type_id int not null,
  354. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  355. value text not null default '',
  356. rank int not null default 0,
  357. constraint dbxrefprop_c1 unique (dbxref_id,type_id,rank)
  358. );
  359. create index dbxrefprop_idx1 on dbxrefprop (dbxref_id);
  360. create index dbxrefprop_idx2 on dbxrefprop (type_id);
  361. 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.';
  362. CREATE OR REPLACE VIEW cv_root AS
  363. SELECT
  364. cv_id,
  365. cvterm_id AS root_cvterm_id
  366. FROM cvterm
  367. WHERE
  368. cvterm_id NOT IN ( SELECT subject_id FROM cvterm_relationship) AND
  369. is_obsolete=0;
  370. COMMENT ON VIEW cv_root IS 'the roots of a cv are the set of terms
  371. which have no parents (terms that are not the subject of a
  372. relation). Most cvs will have a single root, some may have >1. All
  373. will have at least 1';
  374. CREATE OR REPLACE VIEW cv_leaf AS
  375. SELECT
  376. cv_id,
  377. cvterm_id
  378. FROM cvterm
  379. WHERE
  380. cvterm_id NOT IN ( SELECT object_id FROM cvterm_relationship);
  381. COMMENT ON VIEW cv_leaf IS 'the leaves of a cv are the set of terms
  382. which have no children (terms that are not the object of a
  383. relation). All cvs will have at least 1 leaf';
  384. CREATE OR REPLACE VIEW common_ancestor_cvterm AS
  385. SELECT
  386. p1.subject_id AS cvterm1_id,
  387. p2.subject_id AS cvterm2_id,
  388. p1.object_id AS ancestor_cvterm_id,
  389. p1.pathdistance AS pathdistance1,
  390. p2.pathdistance AS pathdistance2,
  391. p1.pathdistance + p2.pathdistance
  392. AS total_pathdistance
  393. FROM
  394. cvtermpath AS p1,
  395. cvtermpath AS p2
  396. WHERE
  397. p1.object_id = p2.object_id;
  398. COMMENT ON VIEW common_ancestor_cvterm IS 'The common ancestor of any
  399. two terms is the intersection of both terms ancestors. Two terms can
  400. have multiple common ancestors. Use total_pathdistance to get the
  401. least common ancestor';
  402. CREATE OR REPLACE VIEW common_descendant_cvterm AS
  403. SELECT
  404. p1.object_id AS cvterm1_id,
  405. p2.object_id AS cvterm2_id,
  406. p1.subject_id AS ancestor_cvterm_id,
  407. p1.pathdistance AS pathdistance1,
  408. p2.pathdistance AS pathdistance2,
  409. p1.pathdistance + p2.pathdistance
  410. AS total_pathdistance
  411. FROM
  412. cvtermpath AS p1,
  413. cvtermpath AS p2
  414. WHERE
  415. p1.subject_id = p2.subject_id;
  416. COMMENT ON VIEW common_descendant_cvterm IS 'The common descendant of
  417. any two terms is the intersection of both terms descendants. Two terms
  418. can have multiple common descendants. Use total_pathdistance to get
  419. the least common ancestor';
  420. CREATE OR REPLACE VIEW stats_paths_to_root AS
  421. SELECT
  422. subject_id AS cvterm_id,
  423. count(DISTINCT cvtermpath_id) AS total_paths,
  424. avg(pathdistance) AS avg_distance,
  425. min(pathdistance) AS min_distance,
  426. max(pathdistance) AS max_distance
  427. FROM cvtermpath INNER JOIN cv_root ON (object_id=root_cvterm_id)
  428. GROUP BY cvterm_id;
  429. COMMENT ON VIEW stats_paths_to_root IS 'per-cvterm statistics on its
  430. placement in the DAG relative to the root. There may be multiple paths
  431. from any term to the root. This gives the total number of paths, and
  432. the average minimum and maximum distances. Here distance is defined by
  433. cvtermpath.pathdistance';
  434. CREATE VIEW cv_cvterm_count AS
  435. 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;
  436. COMMENT ON VIEW cv_cvterm_count IS 'per-cv terms counts (excludes obsoletes)';
  437. CREATE VIEW cv_cvterm_count_with_obs AS
  438. SELECT cv.name,count(*) AS num_terms_incl_obs FROM cv INNER JOIN cvterm USING (cv_id) GROUP BY cv.name;
  439. COMMENT ON VIEW cv_cvterm_count_with_obs IS 'per-cv terms counts (includes obsoletes)';
  440. CREATE VIEW cv_link_count AS
  441. SELECT cv.name AS cv_name,
  442. relation.name AS relation_name,
  443. relation_cv.name AS relation_cv_name,
  444. count(*) AS num_links
  445. FROM cv
  446. INNER JOIN cvterm ON (cvterm.cv_id=cv.cv_id)
  447. INNER JOIN cvterm_relationship ON (cvterm.cvterm_id=subject_id)
  448. INNER JOIN cvterm AS relation ON (type_id=relation.cvterm_id)
  449. INNER JOIN cv AS relation_cv ON (relation.cv_id=relation_cv.cv_id)
  450. GROUP BY cv.name,relation.name,relation_cv.name;
  451. COMMENT ON VIEW cv_link_count IS 'per-cv summary of number of
  452. links (cvterm_relationships) broken down by
  453. relationship_type. num_links is the total # of links of the specified
  454. type in which the subject_id of the link is in the named cv';
  455. CREATE VIEW cv_path_count AS
  456. SELECT cv.name AS cv_name,
  457. relation.name AS relation_name,
  458. relation_cv.name AS relation_cv_name,
  459. count(*) AS num_paths
  460. FROM cv
  461. INNER JOIN cvterm ON (cvterm.cv_id=cv.cv_id)
  462. INNER JOIN cvtermpath ON (cvterm.cvterm_id=subject_id)
  463. INNER JOIN cvterm AS relation ON (type_id=relation.cvterm_id)
  464. INNER JOIN cv AS relation_cv ON (relation.cv_id=relation_cv.cv_id)
  465. GROUP BY cv.name,relation.name,relation_cv.name;
  466. COMMENT ON VIEW cv_path_count IS 'per-cv summary of number of
  467. paths (cvtermpaths) broken down by relationship_type. num_paths is the
  468. total # of paths of the specified type in which the subject_id of the
  469. path is in the named cv. See also: cv_distinct_relations';
  470. CREATE OR REPLACE FUNCTION _get_all_subject_ids(integer) RETURNS SETOF cvtermpath AS
  471. '
  472. DECLARE
  473. root alias for $1;
  474. cterm cvtermpath%ROWTYPE;
  475. cterm2 cvtermpath%ROWTYPE;
  476. BEGIN
  477. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = root LOOP
  478. RETURN NEXT cterm;
  479. FOR cterm2 IN SELECT * FROM _get_all_subject_ids(cterm.subject_id) LOOP
  480. RETURN NEXT cterm2;
  481. END LOOP;
  482. END LOOP;
  483. RETURN;
  484. END;
  485. '
  486. LANGUAGE 'plpgsql';
  487. ---arg: parent term id
  488. ---return: all children term id and their parent term id with relationship type id
  489. CREATE OR REPLACE FUNCTION get_all_subject_ids(integer) RETURNS SETOF cvtermpath AS
  490. '
  491. DECLARE
  492. root alias for $1;
  493. cterm cvtermpath%ROWTYPE;
  494. exist_c int;
  495. BEGIN
  496. SELECT INTO exist_c count(*) FROM cvtermpath WHERE object_id = root and pathdistance <= 0;
  497. IF (exist_c > 0) THEN
  498. FOR cterm IN SELECT * FROM cvtermpath WHERE object_id = root and pathdistance > 0 LOOP
  499. RETURN NEXT cterm;
  500. END LOOP;
  501. ELSE
  502. FOR cterm IN SELECT * FROM _get_all_subject_ids(root) LOOP
  503. RETURN NEXT cterm;
  504. END LOOP;
  505. END IF;
  506. RETURN;
  507. END;
  508. '
  509. LANGUAGE 'plpgsql';
  510. CREATE OR REPLACE FUNCTION get_graph_below(integer) RETURNS SETOF cvtermpath AS
  511. '
  512. DECLARE
  513. root alias for $1;
  514. cterm cvtermpath%ROWTYPE;
  515. cterm2 cvtermpath%ROWTYPE;
  516. BEGIN
  517. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = root LOOP
  518. RETURN NEXT cterm;
  519. FOR cterm2 IN SELECT * FROM get_all_subject_ids(cterm.subject_id) LOOP
  520. RETURN NEXT cterm2;
  521. END LOOP;
  522. END LOOP;
  523. RETURN;
  524. END;
  525. '
  526. LANGUAGE 'plpgsql';
  527. CREATE OR REPLACE FUNCTION get_graph_above(integer) RETURNS SETOF cvtermpath AS
  528. '
  529. DECLARE
  530. leaf alias for $1;
  531. cterm cvtermpath%ROWTYPE;
  532. cterm2 cvtermpath%ROWTYPE;
  533. BEGIN
  534. FOR cterm IN SELECT * FROM cvterm_relationship WHERE subject_id = leaf LOOP
  535. RETURN NEXT cterm;
  536. FOR cterm2 IN SELECT * FROM get_all_object_ids(cterm.object_id) LOOP
  537. RETURN NEXT cterm2;
  538. END LOOP;
  539. END LOOP;
  540. RETURN;
  541. END;
  542. '
  543. LANGUAGE 'plpgsql';
  544. CREATE OR REPLACE FUNCTION _get_all_object_ids(integer) RETURNS SETOF cvtermpath AS
  545. '
  546. DECLARE
  547. leaf alias for $1;
  548. cterm cvtermpath%ROWTYPE;
  549. cterm2 cvtermpath%ROWTYPE;
  550. BEGIN
  551. FOR cterm IN SELECT * FROM cvterm_relationship WHERE subject_id = leaf LOOP
  552. RETURN NEXT cterm;
  553. FOR cterm2 IN SELECT * FROM _get_all_object_ids(cterm.object_id) LOOP
  554. RETURN NEXT cterm2;
  555. END LOOP;
  556. END LOOP;
  557. RETURN;
  558. END;
  559. '
  560. LANGUAGE 'plpgsql';
  561. ---arg: child term id
  562. ---return: all parent term id and their childrent term id with relationship type id
  563. CREATE OR REPLACE FUNCTION get_all_object_ids(integer) RETURNS SETOF cvtermpath AS
  564. '
  565. DECLARE
  566. leaf alias for $1;
  567. cterm cvtermpath%ROWTYPE;
  568. exist_c int;
  569. BEGIN
  570. SELECT INTO exist_c count(*) FROM cvtermpath WHERE object_id = leaf and pathdistance <= 0;
  571. IF (exist_c > 0) THEN
  572. FOR cterm IN SELECT * FROM cvtermpath WHERE subject_id = leaf AND pathdistance > 0 LOOP
  573. RETURN NEXT cterm;
  574. END LOOP;
  575. ELSE
  576. FOR cterm IN SELECT * FROM _get_all_object_ids(leaf) LOOP
  577. RETURN NEXT cterm;
  578. END LOOP;
  579. END IF;
  580. RETURN;
  581. END;
  582. '
  583. LANGUAGE 'plpgsql';
  584. ---arg: sql statement which must be in the form of select cvterm_id from ...
  585. ---return: a set of cvterm ids that includes what is in sql statement and their children (subject ids)
  586. CREATE OR REPLACE FUNCTION get_it_sub_cvterm_ids(text) RETURNS SETOF cvterm AS
  587. '
  588. DECLARE
  589. query alias for $1;
  590. cterm cvterm%ROWTYPE;
  591. cterm2 cvterm%ROWTYPE;
  592. BEGIN
  593. FOR cterm IN EXECUTE query LOOP
  594. RETURN NEXT cterm;
  595. FOR cterm2 IN SELECT subject_id as cvterm_id FROM get_all_subject_ids(cterm.cvterm_id) LOOP
  596. RETURN NEXT cterm2;
  597. END LOOP;
  598. END LOOP;
  599. RETURN;
  600. END;
  601. '
  602. LANGUAGE 'plpgsql';
  603. --- example: select * from fill_cvtermpath(7); where 7 is cv_id for an ontology
  604. --- fill path from the node to its children and their children
  605. CREATE OR REPLACE FUNCTION _fill_cvtermpath4node(INTEGER, INTEGER, INTEGER, INTEGER, INTEGER) RETURNS INTEGER AS
  606. '
  607. DECLARE
  608. origin alias for $1;
  609. child_id alias for $2;
  610. cvid alias for $3;
  611. typeid alias for $4;
  612. depth alias for $5;
  613. cterm cvterm_relationship%ROWTYPE;
  614. exist_c int;
  615. BEGIN
  616. --- RAISE NOTICE ''depth=% root=%'', depth,child_id;
  617. --- not check type_id as it may be null and not very meaningful in cvtermpath when pathdistance > 1
  618. SELECT INTO exist_c count(*) FROM cvtermpath WHERE cv_id = cvid AND object_id = origin AND subject_id = child_id AND pathdistance = depth;
  619. IF (exist_c = 0) THEN
  620. INSERT INTO cvtermpath (object_id, subject_id, cv_id, type_id, pathdistance) VALUES(origin, child_id, cvid, typeid, depth);
  621. END IF;
  622. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = child_id LOOP
  623. PERFORM _fill_cvtermpath4node(origin, cterm.subject_id, cvid, cterm.type_id, depth+1);
  624. END LOOP;
  625. RETURN 1;
  626. END;
  627. '
  628. LANGUAGE 'plpgsql';
  629. CREATE OR REPLACE FUNCTION _fill_cvtermpath4root(INTEGER, INTEGER) RETURNS INTEGER AS
  630. '
  631. DECLARE
  632. rootid alias for $1;
  633. cvid alias for $2;
  634. ttype int;
  635. cterm cvterm_relationship%ROWTYPE;
  636. child cvterm_relationship%ROWTYPE;
  637. BEGIN
  638. SELECT INTO ttype cvterm_id FROM cvterm WHERE (name = ''isa'' OR name = ''is_a'');
  639. PERFORM _fill_cvtermpath4node(rootid, rootid, cvid, ttype, 0);
  640. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = rootid LOOP
  641. PERFORM _fill_cvtermpath4root(cterm.subject_id, cvid);
  642. -- RAISE NOTICE ''DONE for term, %'', cterm.subject_id;
  643. END LOOP;
  644. RETURN 1;
  645. END;
  646. '
  647. LANGUAGE 'plpgsql';
  648. CREATE OR REPLACE FUNCTION fill_cvtermpath(INTEGER) RETURNS INTEGER AS
  649. '
  650. DECLARE
  651. cvid alias for $1;
  652. root cvterm%ROWTYPE;
  653. BEGIN
  654. DELETE FROM cvtermpath WHERE cv_id = cvid;
  655. 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
  656. PERFORM _fill_cvtermpath4root(root.cvterm_id, root.cv_id);
  657. END LOOP;
  658. RETURN 1;
  659. END;
  660. '
  661. LANGUAGE 'plpgsql';
  662. CREATE OR REPLACE FUNCTION fill_cvtermpath(cv.name%TYPE) RETURNS INTEGER AS
  663. '
  664. DECLARE
  665. cvname alias for $1;
  666. cv_id int;
  667. rtn int;
  668. BEGIN
  669. SELECT INTO cv_id cv.cv_id from cv WHERE cv.name = cvname;
  670. SELECT INTO rtn fill_cvtermpath(cv_id);
  671. RETURN rtn;
  672. END;
  673. '
  674. LANGUAGE 'plpgsql';
  675. CREATE OR REPLACE FUNCTION _fill_cvtermpath4node2detect_cycle(INTEGER, INTEGER, INTEGER, INTEGER, INTEGER) RETURNS INTEGER AS
  676. '
  677. DECLARE
  678. origin alias for $1;
  679. child_id alias for $2;
  680. cvid alias for $3;
  681. typeid alias for $4;
  682. depth alias for $5;
  683. cterm cvterm_relationship%ROWTYPE;
  684. exist_c int;
  685. ccount int;
  686. ecount int;
  687. rtn int;
  688. BEGIN
  689. 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'';
  690. GET DIAGNOSTICS ccount = ROW_COUNT;
  691. IF (ccount > 0) THEN
  692. --RAISE EXCEPTION ''FOUND CYCLE: node % on cycle path'',origin;
  693. RETURN origin;
  694. END IF;
  695. EXECUTE ''SELECT * FROM tmpcvtermpath WHERE cv_id = '' || cvid || '' AND object_id = '' || origin || '' AND subject_id = '' || child_id || '' AND '' || origin || ''<>'' || child_id;
  696. GET DIAGNOSTICS ecount = ROW_COUNT;
  697. IF (ecount > 0) THEN
  698. --RAISE NOTICE ''FOUND TWICE (node), will check root obj % subj %'',origin, child_id;
  699. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(child_id, cvid);
  700. IF (rtn > 0) THEN
  701. RETURN rtn;
  702. END IF;
  703. END IF;
  704. EXECUTE ''SELECT * FROM tmpcvtermpath WHERE cv_id = '' || cvid || '' AND object_id = '' || origin || '' AND subject_id = '' || child_id || '' AND pathdistance = '' || depth;
  705. GET DIAGNOSTICS exist_c = ROW_COUNT;
  706. IF (exist_c = 0) THEN
  707. EXECUTE ''INSERT INTO tmpcvtermpath (object_id, subject_id, cv_id, type_id, pathdistance) VALUES('' || origin || '', '' || child_id || '', '' || cvid || '', '' || typeid || '', '' || depth || '')'';
  708. END IF;
  709. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = child_id LOOP
  710. --RAISE NOTICE ''DOING for node, % %'', origin, cterm.subject_id;
  711. SELECT INTO rtn _fill_cvtermpath4node2detect_cycle(origin, cterm.subject_id, cvid, cterm.type_id, depth+1);
  712. IF (rtn > 0) THEN
  713. RETURN rtn;
  714. END IF;
  715. END LOOP;
  716. RETURN 0;
  717. END;
  718. '
  719. LANGUAGE 'plpgsql';
  720. CREATE OR REPLACE FUNCTION _fill_cvtermpath4root2detect_cycle(INTEGER, INTEGER) RETURNS INTEGER AS
  721. '
  722. DECLARE
  723. rootid alias for $1;
  724. cvid alias for $2;
  725. ttype int;
  726. ccount int;
  727. cterm cvterm_relationship%ROWTYPE;
  728. child cvterm_relationship%ROWTYPE;
  729. rtn int;
  730. BEGIN
  731. SELECT INTO ttype cvterm_id FROM cvterm WHERE (name = ''isa'' OR name = ''is_a'');
  732. SELECT INTO rtn _fill_cvtermpath4node2detect_cycle(rootid, rootid, cvid, ttype, 0);
  733. IF (rtn > 0) THEN
  734. RETURN rtn;
  735. END IF;
  736. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = rootid LOOP
  737. 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;
  738. GET DIAGNOSTICS ccount = ROW_COUNT;
  739. IF (ccount > 0) THEN
  740. --RAISE NOTICE ''FOUND TWICE (root), will check root obj % subj %'',rootid,cterm.subject_id;
  741. SELECT INTO rtn _fill_cvtermpath4node2detect_cycle(rootid, cterm.subject_id, cvid, ttype, 0);
  742. IF (rtn > 0) THEN
  743. RETURN rtn;
  744. END IF;
  745. ELSE
  746. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(cterm.subject_id, cvid);
  747. IF (rtn > 0) THEN
  748. RETURN rtn;
  749. END IF;
  750. END IF;
  751. END LOOP;
  752. RETURN 0;
  753. END;
  754. '
  755. LANGUAGE 'plpgsql';
  756. CREATE OR REPLACE FUNCTION get_cycle_cvterm_id(INTEGER, INTEGER) RETURNS INTEGER AS
  757. '
  758. DECLARE
  759. cvid alias for $1;
  760. rootid alias for $2;
  761. rtn int;
  762. BEGIN
  763. CREATE TEMP TABLE tmpcvtermpath(object_id int, subject_id int, cv_id int, type_id int, pathdistance int);
  764. CREATE INDEX tmp_cvtpath1 ON tmpcvtermpath(object_id, subject_id);
  765. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(rootid, cvid);
  766. IF (rtn > 0) THEN
  767. DROP TABLE tmpcvtermpath;
  768. RETURN rtn;
  769. END IF;
  770. DROP TABLE tmpcvtermpath;
  771. RETURN 0;
  772. END;
  773. '
  774. LANGUAGE 'plpgsql';
  775. CREATE OR REPLACE FUNCTION get_cycle_cvterm_ids(INTEGER) RETURNS SETOF INTEGER AS
  776. '
  777. DECLARE
  778. cvid alias for $1;
  779. root cvterm%ROWTYPE;
  780. rtn int;
  781. BEGIN
  782. FOR root IN SELECT DISTINCT t.* from cvterm t WHERE cv_id = cvid LOOP
  783. SELECT INTO rtn get_cycle_cvterm_id(cvid,root.cvterm_id);
  784. IF (rtn > 0) THEN
  785. RETURN NEXT rtn;
  786. END IF;
  787. END LOOP;
  788. RETURN;
  789. END;
  790. '
  791. LANGUAGE 'plpgsql';
  792. CREATE OR REPLACE FUNCTION get_cycle_cvterm_id(INTEGER) RETURNS INTEGER AS
  793. '
  794. DECLARE
  795. cvid alias for $1;
  796. root cvterm%ROWTYPE;
  797. rtn int;
  798. BEGIN
  799. CREATE TEMP TABLE tmpcvtermpath(object_id int, subject_id int, cv_id int, type_id int, pathdistance int);
  800. CREATE INDEX tmp_cvtpath1 ON tmpcvtermpath(object_id, subject_id);
  801. 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
  802. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(root.cvterm_id, root.cv_id);
  803. IF (rtn > 0) THEN
  804. DROP TABLE tmpcvtermpath;
  805. RETURN rtn;
  806. END IF;
  807. END LOOP;
  808. DROP TABLE tmpcvtermpath;
  809. RETURN 0;
  810. END;
  811. '
  812. LANGUAGE 'plpgsql';
  813. CREATE OR REPLACE FUNCTION get_cycle_cvterm_id(cv.name%TYPE) RETURNS INTEGER AS
  814. '
  815. DECLARE
  816. cvname alias for $1;
  817. cv_id int;
  818. rtn int;
  819. BEGIN
  820. SELECT INTO cv_id cv.cv_id from cv WHERE cv.name = cvname;
  821. SELECT INTO rtn get_cycle_cvterm_id(cv_id);
  822. RETURN rtn;
  823. END;
  824. '
  825. LANGUAGE 'plpgsql';
  826. -- $Id: pub.sql,v 1.27 2007-02-19 20:50:44 briano Exp $
  827. -- ==========================================
  828. -- Chado pub module
  829. --
  830. -- =================================================================
  831. -- Dependencies:
  832. --
  833. -- :import cvterm from cv
  834. -- :import dbxref from general
  835. -- =================================================================
  836. -- ================================================
  837. -- TABLE: pub
  838. -- ================================================
  839. create table pub (
  840. pub_id serial not null,
  841. primary key (pub_id),
  842. title text,
  843. volumetitle text,
  844. volume varchar(255),
  845. series_name varchar(255),
  846. issue varchar(255),
  847. pyear varchar(255),
  848. pages varchar(255),
  849. miniref varchar(255),
  850. uniquename text not null,
  851. type_id int not null,
  852. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  853. is_obsolete boolean default 'false',
  854. publisher varchar(255),
  855. pubplace varchar(255),
  856. constraint pub_c1 unique (uniquename)
  857. );
  858. CREATE INDEX pub_idx1 ON pub (type_id);
  859. COMMENT ON TABLE pub IS 'A documented provenance artefact - publications,
  860. documents, personal communication.';
  861. COMMENT ON COLUMN pub.title IS 'Descriptive general heading.';
  862. COMMENT ON COLUMN pub.volumetitle IS 'Title of part if one of a series.';
  863. COMMENT ON COLUMN pub.series_name IS 'Full name of (journal) series.';
  864. COMMENT ON COLUMN pub.pages IS 'Page number range[s], e.g. 457--459, viii + 664pp, lv--lvii.';
  865. COMMENT ON COLUMN pub.type_id IS 'The type of the publication (book, journal, poem, graffiti, etc). Uses pub cv.';
  866. -- ================================================
  867. -- TABLE: pub_relationship
  868. -- ================================================
  869. create table pub_relationship (
  870. pub_relationship_id serial not null,
  871. primary key (pub_relationship_id),
  872. subject_id int not null,
  873. foreign key (subject_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  874. object_id int not null,
  875. foreign key (object_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  876. type_id int not null,
  877. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  878. constraint pub_relationship_c1 unique (subject_id,object_id,type_id)
  879. );
  880. create index pub_relationship_idx1 on pub_relationship (subject_id);
  881. create index pub_relationship_idx2 on pub_relationship (object_id);
  882. create index pub_relationship_idx3 on pub_relationship (type_id);
  883. COMMENT ON TABLE pub_relationship IS 'Handle relationships between
  884. publications, e.g. when one publication makes others obsolete, when one
  885. publication contains errata with respect to other publication(s), or
  886. when one publication also appears in another pub.';
  887. -- ================================================
  888. -- TABLE: pub_dbxref
  889. -- ================================================
  890. create table pub_dbxref (
  891. pub_dbxref_id serial not null,
  892. primary key (pub_dbxref_id),
  893. pub_id int not null,
  894. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  895. dbxref_id int not null,
  896. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  897. is_current boolean not null default 'true',
  898. constraint pub_dbxref_c1 unique (pub_id,dbxref_id)
  899. );
  900. create index pub_dbxref_idx1 on pub_dbxref (pub_id);
  901. create index pub_dbxref_idx2 on pub_dbxref (dbxref_id);
  902. COMMENT ON TABLE pub_dbxref IS 'Handle links to repositories,
  903. e.g. Pubmed, Biosis, zoorec, OCLC, Medline, ISSN, coden...';
  904. -- ================================================
  905. -- TABLE: pubauthor
  906. -- ================================================
  907. create table pubauthor (
  908. pubauthor_id serial not null,
  909. primary key (pubauthor_id),
  910. pub_id int not null,
  911. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  912. rank int not null,
  913. editor boolean default 'false',
  914. surname varchar(100) not null,
  915. givennames varchar(100),
  916. suffix varchar(100),
  917. constraint pubauthor_c1 unique (pub_id, rank)
  918. );
  919. create index pubauthor_idx2 on pubauthor (pub_id);
  920. 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.';
  921. COMMENT ON COLUMN pubauthor.givennames IS 'First name, initials';
  922. COMMENT ON COLUMN pubauthor.suffix IS 'Jr., Sr., etc';
  923. COMMENT ON COLUMN pubauthor.rank IS 'Order of author in author list for this pub - order is important.';
  924. 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.';
  925. -- ================================================
  926. -- TABLE: pubprop
  927. -- ================================================
  928. create table pubprop (
  929. pubprop_id serial not null,
  930. primary key (pubprop_id),
  931. pub_id int not null,
  932. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  933. type_id int not null,
  934. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  935. value text not null,
  936. rank integer,
  937. constraint pubprop_c1 unique (pub_id,type_id,rank)
  938. );
  939. create index pubprop_idx1 on pubprop (pub_id);
  940. create index pubprop_idx2 on pubprop (type_id);
  941. COMMENT ON TABLE pubprop IS 'Property-value pairs for a pub. Follows standard chado pattern.';
  942. -- $Id: organism.sql,v 1.19 2007-04-01 18:45:41 briano Exp $
  943. -- ==========================================
  944. -- Chado organism module
  945. --
  946. -- ============
  947. -- DEPENDENCIES
  948. -- ============
  949. -- :import cvterm from cv
  950. -- :import dbxref from general
  951. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  952. -- ================================================
  953. -- TABLE: organism
  954. -- ================================================
  955. create table organism (
  956. organism_id serial not null,
  957. primary key (organism_id),
  958. abbreviation varchar(255) null,
  959. genus varchar(255) not null,
  960. species varchar(255) not null,
  961. common_name varchar(255) null,
  962. comment text null,
  963. constraint organism_c1 unique (genus,species)
  964. );
  965. COMMENT ON TABLE organism IS 'The organismal taxonomic
  966. classification. Note that phylogenies are represented using the
  967. phylogeny module, and taxonomies can be represented using the cvterm
  968. module or the phylogeny module.';
  969. COMMENT ON COLUMN organism.species IS 'A type of organism is always
  970. uniquely identified by genus and species. When mapping from the NCBI
  971. taxonomy names.dmp file, this column must be used where it
  972. is present, as the common_name column is not always unique (e.g. environmental
  973. samples). If a particular strain or subspecies is to be represented,
  974. this is appended onto the species name. Follows standard NCBI taxonomy
  975. pattern.';
  976. -- ================================================
  977. -- TABLE: organism_dbxref
  978. -- ================================================
  979. create table organism_dbxref (
  980. organism_dbxref_id serial not null,
  981. primary key (organism_dbxref_id),
  982. organism_id int not null,
  983. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  984. dbxref_id int not null,
  985. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  986. constraint organism_dbxref_c1 unique (organism_id,dbxref_id)
  987. );
  988. create index organism_dbxref_idx1 on organism_dbxref (organism_id);
  989. create index organism_dbxref_idx2 on organism_dbxref (dbxref_id);
  990. -- ================================================
  991. -- TABLE: organismprop
  992. -- ================================================
  993. create table organismprop (
  994. organismprop_id serial not null,
  995. primary key (organismprop_id),
  996. organism_id int not null,
  997. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  998. type_id int not null,
  999. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1000. value text null,
  1001. rank int not null default 0,
  1002. constraint organismprop_c1 unique (organism_id,type_id,rank)
  1003. );
  1004. create index organismprop_idx1 on organismprop (organism_id);
  1005. create index organismprop_idx2 on organismprop (type_id);
  1006. COMMENT ON TABLE organismprop IS 'Tag-value properties - follows standard chado model.';
  1007. CREATE OR REPLACE FUNCTION get_organism_id(VARCHAR,VARCHAR) RETURNS INT
  1008. AS '
  1009. SELECT organism_id
  1010. FROM organism
  1011. WHERE genus=$1
  1012. AND species=$2
  1013. ' LANGUAGE 'sql';
  1014. CREATE OR REPLACE FUNCTION get_organism_id(VARCHAR) RETURNS INT
  1015. AS '
  1016. SELECT organism_id
  1017. FROM organism
  1018. WHERE genus=substring($1,1,position('' '' IN $1)-1)
  1019. AND species=substring($1,position('' '' IN $1)+1)
  1020. ' LANGUAGE 'sql';
  1021. CREATE OR REPLACE FUNCTION get_organism_id_abbrev(VARCHAR) RETURNS INT
  1022. AS '
  1023. SELECT organism_id
  1024. FROM organism
  1025. WHERE substr(genus,1,1)=substring($1,1,1)
  1026. AND species=substring($1,position('' '' IN $1)+1)
  1027. ' LANGUAGE 'sql';
  1028. CREATE OR REPLACE FUNCTION store_organism (VARCHAR,VARCHAR,VARCHAR)
  1029. RETURNS INT AS
  1030. 'DECLARE
  1031. v_genus ALIAS FOR $1;
  1032. v_species ALIAS FOR $2;
  1033. v_common_name ALIAS FOR $3;
  1034. v_organism_id INTEGER;
  1035. BEGIN
  1036. SELECT INTO v_organism_id organism_id
  1037. FROM organism
  1038. WHERE genus=v_genus AND
  1039. species=v_species;
  1040. IF NOT FOUND THEN
  1041. INSERT INTO organism
  1042. (genus,species,common_name)
  1043. VALUES
  1044. (v_genus,v_species,v_common_name);
  1045. RETURN currval(''organism_organism_id_seq'');
  1046. ELSE
  1047. UPDATE organism
  1048. SET common_name=v_common_name
  1049. WHERE organism_id = v_organism_id;
  1050. END IF;
  1051. RETURN v_organism_id;
  1052. END;
  1053. ' LANGUAGE 'plpgsql';
  1054. -- $Id: sequence.sql,v 1.69 2009-05-14 02:44:23 scottcain Exp $
  1055. -- ==========================================
  1056. -- Chado sequence module
  1057. --
  1058. -- =================================================================
  1059. -- Dependencies:
  1060. --
  1061. -- :import cvterm from cv
  1062. -- :import pub from pub
  1063. -- :import organism from organism
  1064. -- :import dbxref from general
  1065. -- =================================================================
  1066. -- ================================================
  1067. -- TABLE: feature
  1068. -- ================================================
  1069. create table feature (
  1070. feature_id serial not null,
  1071. primary key (feature_id),
  1072. dbxref_id int,
  1073. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  1074. organism_id int not null,
  1075. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  1076. name varchar(255),
  1077. uniquename text not null,
  1078. residues text,
  1079. seqlen int,
  1080. md5checksum char(32),
  1081. type_id int not null,
  1082. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1083. is_analysis boolean not null default 'false',
  1084. is_obsolete boolean not null default 'false',
  1085. timeaccessioned timestamp not null default current_timestamp,
  1086. timelastmodified timestamp not null default current_timestamp,
  1087. constraint feature_c1 unique (organism_id,uniquename,type_id)
  1088. );
  1089. create sequence feature_uniquename_seq;
  1090. create index feature_name_ind1 on feature(name);
  1091. create index feature_idx1 on feature (dbxref_id);
  1092. create index feature_idx2 on feature (organism_id);
  1093. create index feature_idx3 on feature (type_id);
  1094. create index feature_idx4 on feature (uniquename);
  1095. create index feature_idx5 on feature (lower(name));
  1096. ALTER TABLE feature ALTER residues SET STORAGE EXTERNAL;
  1097. COMMENT ON TABLE feature IS 'A feature is a biological sequence or a
  1098. section of a biological sequence, or a collection of such
  1099. sections. Examples include genes, exons, transcripts, regulatory
  1100. regions, polypeptides, protein domains, chromosome sequences, sequence
  1101. variations, cross-genome match regions such as hits and HSPs and so
  1102. on; see the Sequence Ontology for more. The combination of
  1103. organism_id, uniquename and type_id should be unique.';
  1104. COMMENT ON COLUMN feature.dbxref_id IS 'An optional primary public stable
  1105. identifier for this feature. Secondary identifiers and external
  1106. dbxrefs go in the table feature_dbxref.';
  1107. COMMENT ON COLUMN feature.organism_id IS 'The organism to which this feature
  1108. belongs. This column is mandatory.';
  1109. COMMENT ON COLUMN feature.name IS 'The optional human-readable common name for
  1110. a feature, for display purposes.';
  1111. COMMENT ON COLUMN feature.uniquename IS 'The unique name for a feature; may
  1112. not be necessarily be particularly human-readable, although this is
  1113. preferred. This name must be unique for this type of feature within
  1114. this organism.';
  1115. COMMENT ON COLUMN feature.residues IS 'A sequence of alphabetic characters
  1116. representing biological residues (nucleic acids, amino acids). This
  1117. column does not need to be manifested for all features; it is optional
  1118. for features such as exons where the residues can be derived from the
  1119. featureloc. It is recommended that the value for this column be
  1120. manifested for features which may may non-contiguous sublocations (e.g.
  1121. transcripts), since derivation at query time is non-trivial. For
  1122. expressed sequence, the DNA sequence should be used rather than the
  1123. RNA sequence. The default storage method for the residues column is
  1124. EXTERNAL, which will store it uncompressed to make substring operations
  1125. faster.';
  1126. COMMENT ON COLUMN feature.seqlen IS 'The length of the residue feature. See
  1127. column:residues. This column is partially redundant with the residues
  1128. column, and also with featureloc. This column is required because the
  1129. location may be unknown and the residue sequence may not be
  1130. manifested, yet it may be desirable to store and query the length of
  1131. the feature. The seqlen should always be manifested where the length
  1132. of the sequence is known.';
  1133. COMMENT ON COLUMN feature.md5checksum IS 'The 32-character checksum of the sequence,
  1134. calculated using the MD5 algorithm. This is practically guaranteed to
  1135. be unique for any feature. This column thus acts as a unique
  1136. identifier on the mathematical sequence.';
  1137. COMMENT ON COLUMN feature.type_id IS 'A required reference to a table:cvterm
  1138. giving the feature type. This will typically be a Sequence Ontology
  1139. identifier. This column is thus used to subclass the feature table.';
  1140. COMMENT ON COLUMN feature.is_analysis IS 'Boolean indicating whether this
  1141. feature is annotated or the result of an automated analysis. Analysis
  1142. results also use the companalysis module. Note that the dividing line
  1143. between analysis and annotation may be fuzzy, this should be determined on
  1144. a per-project basis in a consistent manner. One requirement is that
  1145. there should only be one non-analysis version of each wild-type gene
  1146. feature in a genome, whereas the same gene feature can be predicted
  1147. multiple times in different analyses.';
  1148. COMMENT ON COLUMN feature.is_obsolete IS 'Boolean indicating whether this
  1149. feature has been obsoleted. Some chado instances may choose to simply
  1150. remove the feature altogether, others may choose to keep an obsolete
  1151. row in the table.';
  1152. COMMENT ON COLUMN feature.timeaccessioned IS 'For handling object
  1153. accession or modification timestamps (as opposed to database auditing data,
  1154. handled elsewhere). The expectation is that these fields would be
  1155. available to software interacting with chado.';
  1156. COMMENT ON COLUMN feature.timelastmodified IS 'For handling object
  1157. accession or modification timestamps (as opposed to database auditing data,
  1158. handled elsewhere). The expectation is that these fields would be
  1159. available to software interacting with chado.';
  1160. --- COMMENT ON INDEX feature_c1 IS 'Any feature can be globally identified
  1161. --- by the combination of organism, uniquename and feature type';
  1162. -- ================================================
  1163. -- TABLE: featureloc
  1164. -- ================================================
  1165. create table featureloc (
  1166. featureloc_id serial not null,
  1167. primary key (featureloc_id),
  1168. feature_id int not null,
  1169. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1170. srcfeature_id int,
  1171. foreign key (srcfeature_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  1172. fmin int,
  1173. is_fmin_partial boolean not null default 'false',
  1174. fmax int,
  1175. is_fmax_partial boolean not null default 'false',
  1176. strand smallint,
  1177. phase int,
  1178. residue_info text,
  1179. locgroup int not null default 0,
  1180. rank int not null default 0,
  1181. constraint featureloc_c1 unique (feature_id,locgroup,rank),
  1182. constraint featureloc_c2 check (fmin <= fmax)
  1183. );
  1184. create index featureloc_idx1 on featureloc (feature_id);
  1185. create index featureloc_idx2 on featureloc (srcfeature_id);
  1186. create index featureloc_idx3 on featureloc (srcfeature_id,fmin,fmax);
  1187. COMMENT ON TABLE featureloc IS 'The location of a feature relative to
  1188. another feature. Important: interbase coordinates are used. This is
  1189. vital as it allows us to represent zero-length features e.g. splice
  1190. sites, insertion points without an awkward fuzzy system. Features
  1191. typically have exactly ONE location, but this need not be the
  1192. case. Some features may not be localized (e.g. a gene that has been
  1193. characterized genetically but no sequence or molecular information is
  1194. available). Note on multiple locations: Each feature can have 0 or
  1195. more locations. Multiple locations do NOT indicate non-contiguous
  1196. locations (if a feature such as a transcript has a non-contiguous
  1197. location, then the subfeatures such as exons should always be
  1198. manifested). Instead, multiple featurelocs for a feature designate
  1199. alternate locations or grouped locations; for instance, a feature
  1200. designating a blast hit or hsp will have two locations, one on the
  1201. query feature, one on the subject feature. Features representing
  1202. sequence variation could have alternate locations instantiated on a
  1203. feature on the mutant strain. The column:rank is used to
  1204. differentiate these different locations. Reflexive locations should
  1205. never be stored - this is for -proper- (i.e. non-self) locations only; nothing should be located relative to itself.';
  1206. COMMENT ON COLUMN featureloc.feature_id IS 'The feature that is being located. Any feature can have zero or more featurelocs.';
  1207. 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.';
  1208. 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.';
  1209. 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).';
  1210. COMMENT ON COLUMN featureloc.strand IS 'The orientation/directionality of the
  1211. location. Should be 0, -1 or +1.';
  1212. COMMENT ON COLUMN featureloc.rank IS 'Used when a feature has >1
  1213. location, otherwise the default rank 0 is used. Some features (e.g.
  1214. blast hits and HSPs) have two locations - one on the query and one on
  1215. the subject. Rank is used to differentiate these. Rank=0 is always
  1216. used for the query, Rank=1 for the subject. For multiple alignments,
  1217. assignment of rank is arbitrary. Rank is also used for
  1218. sequence_variant features, such as SNPs. Rank=0 indicates the wildtype
  1219. (or baseline) feature, Rank=1 indicates the mutant (or compared) feature.';
  1220. COMMENT ON COLUMN featureloc.locgroup IS 'This is used to manifest redundant,
  1221. derivable extra locations for a feature. The default locgroup=0 is
  1222. used for the DIRECT location of a feature. Important: most Chado users may
  1223. never use featurelocs WITH logroup > 0. Transitively derived locations
  1224. are indicated with locgroup > 0. For example, the position of an exon on
  1225. a BAC and in global chromosome coordinates. This column is used to
  1226. differentiate these groupings of locations. The default locgroup 0
  1227. is used for the main or primary location, from which the others can be
  1228. derived via coordinate transformations. Another example of redundant
  1229. locations is storing ORF coordinates relative to both transcript and
  1230. genome. Redundant locations open the possibility of the database
  1231. getting into inconsistent states; this schema gives us the flexibility
  1232. of both warehouse instantiations with redundant locations (easier for
  1233. querying) and management instantiations with no redundant
  1234. locations. An example of using both locgroup and rank: imagine a
  1235. feature indicating a conserved region between the chromosomes of two
  1236. different species. We may want to keep redundant locations on both
  1237. contigs and chromosomes. We would thus have 4 locations for the single
  1238. conserved region feature - two distinct locgroups (contig level and
  1239. chromosome level) and two distinct ranks (for the two species).';
  1240. COMMENT ON COLUMN featureloc.residue_info IS 'Alternative residues,
  1241. when these differ from feature.residues. For instance, a SNP feature
  1242. located on a wild and mutant protein would have different alternative residues.
  1243. for alignment/similarity features, the alternative residues is used to
  1244. represent the alignment string (CIGAR format). Note on variation
  1245. features; even if we do not want to instantiate a mutant
  1246. chromosome/contig feature, we can still represent a SNP etc with 2
  1247. locations, one (rank 0) on the genome, the other (rank 1) would have
  1248. most fields null, except for alternative residues.';
  1249. COMMENT ON COLUMN featureloc.phase IS 'Phase of translation with
  1250. respect to srcfeature_id.
  1251. Values are 0, 1, 2. It may not be possible to manifest this column for
  1252. some features such as exons, because the phase is dependant on the
  1253. spliceform (the same exon can appear in multiple spliceforms). This column is mostly useful for predicted exons and CDSs.';
  1254. COMMENT ON COLUMN featureloc.is_fmin_partial IS 'This is typically
  1255. false, but may be true if the value for column:fmin is inaccurate or
  1256. the leftmost part of the range is unknown/unbounded.';
  1257. COMMENT ON COLUMN featureloc.is_fmax_partial IS 'This is typically
  1258. false, but may be true if the value for column:fmax is inaccurate or
  1259. the rightmost part of the range is unknown/unbounded.';
  1260. --- COMMENT ON INDEX featureloc_c1 IS 'locgroup and rank serve to uniquely
  1261. --- partition locations for any one feature';
  1262. -- ================================================
  1263. -- TABLE: featureloc_pub
  1264. -- ================================================
  1265. create table featureloc_pub (
  1266. featureloc_pub_id serial not null,
  1267. primary key (featureloc_pub_id),
  1268. featureloc_id int not null,
  1269. foreign key (featureloc_id) references featureloc (featureloc_id) on delete cascade INITIALLY DEFERRED,
  1270. pub_id int not null,
  1271. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1272. constraint featureloc_pub_c1 unique (featureloc_id,pub_id)
  1273. );
  1274. create index featureloc_pub_idx1 on featureloc_pub (featureloc_id);
  1275. create index featureloc_pub_idx2 on featureloc_pub (pub_id);
  1276. COMMENT ON TABLE featureloc_pub IS 'Provenance of featureloc. Linking table between featurelocs and publications that mention them.';
  1277. -- ================================================
  1278. -- TABLE: feature_pub
  1279. -- ================================================
  1280. create table feature_pub (
  1281. feature_pub_id serial not null,
  1282. primary key (feature_pub_id),
  1283. feature_id int not null,
  1284. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1285. pub_id int not null,
  1286. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1287. constraint feature_pub_c1 unique (feature_id,pub_id)
  1288. );
  1289. create index feature_pub_idx1 on feature_pub (feature_id);
  1290. create index feature_pub_idx2 on feature_pub (pub_id);
  1291. COMMENT ON TABLE feature_pub IS 'Provenance. Linking table between features and publications that mention them.';
  1292. -- ================================================
  1293. -- TABLE: feature_pubprop
  1294. -- ================================================
  1295. create table feature_pubprop (
  1296. feature_pubprop_id serial not null,
  1297. primary key (feature_pubprop_id),
  1298. feature_pub_id int not null,
  1299. foreign key (feature_pub_id) references feature_pub (feature_pub_id) on delete cascade INITIALLY DEFERRED,
  1300. type_id int not null,
  1301. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1302. value text null,
  1303. rank int not null default 0,
  1304. constraint feature_pubprop_c1 unique (feature_pub_id,type_id,rank)
  1305. );
  1306. create index feature_pubprop_idx1 on feature_pubprop (feature_pub_id);
  1307. COMMENT ON TABLE feature_pubprop IS 'Property or attribute of a feature_pub link.';
  1308. -- ================================================
  1309. -- TABLE: featureprop
  1310. -- ================================================
  1311. create table featureprop (
  1312. featureprop_id serial not null,
  1313. primary key (featureprop_id),
  1314. feature_id int not null,
  1315. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1316. type_id int not null,
  1317. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1318. value text null,
  1319. rank int not null default 0,
  1320. constraint featureprop_c1 unique (feature_id,type_id,rank)
  1321. );
  1322. create index featureprop_idx1 on featureprop (feature_id);
  1323. create index featureprop_idx2 on featureprop (type_id);
  1324. 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.';
  1325. COMMENT ON COLUMN featureprop.type_id IS 'The name of the
  1326. property/slot is a cvterm. The meaning of the property is defined in
  1327. that cvterm. Certain property types will only apply to certain feature
  1328. types (e.g. the anticodon property will only apply to tRNA features) ;
  1329. the types here come from the sequence feature property ontology.';
  1330. 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.';
  1331. COMMENT ON COLUMN featureprop.rank IS 'Property-Value ordering. Any
  1332. feature can have multiple values for any particular property type -
  1333. these are ordered in a list using rank, counting from zero. For
  1334. properties that are single-valued rather than multi-valued, the
  1335. default 0 value should be used';
  1336. COMMENT ON INDEX featureprop_c1 IS 'For any one feature, multivalued
  1337. property-value pairs must be differentiated by rank.';
  1338. -- ================================================
  1339. -- TABLE: featureprop_pub
  1340. -- ================================================
  1341. create table featureprop_pub (
  1342. featureprop_pub_id serial not null,
  1343. primary key (featureprop_pub_id),
  1344. featureprop_id int not null,
  1345. foreign key (featureprop_id) references featureprop (featureprop_id) on delete cascade INITIALLY DEFERRED,
  1346. pub_id int not null,
  1347. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1348. constraint featureprop_pub_c1 unique (featureprop_id,pub_id)
  1349. );
  1350. create index featureprop_pub_idx1 on featureprop_pub (featureprop_id);
  1351. create index featureprop_pub_idx2 on featureprop_pub (pub_id);
  1352. COMMENT ON TABLE featureprop_pub IS 'Provenance. Any featureprop assignment can optionally be supported by a publication.';
  1353. -- ================================================
  1354. -- TABLE: feature_dbxref
  1355. -- ================================================
  1356. create table feature_dbxref (
  1357. feature_dbxref_id serial not null,
  1358. primary key (feature_dbxref_id),
  1359. feature_id int not null,
  1360. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1361. dbxref_id int not null,
  1362. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  1363. is_current boolean not null default 'true',
  1364. constraint feature_dbxref_c1 unique (feature_id,dbxref_id)
  1365. );
  1366. create index feature_dbxref_idx1 on feature_dbxref (feature_id);
  1367. create index feature_dbxref_idx2 on feature_dbxref (dbxref_id);
  1368. COMMENT ON TABLE feature_dbxref IS 'Links a feature to dbxrefs. This is for secondary identifiers; primary identifiers should use feature.dbxref_id.';
  1369. 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';
  1370. -- ================================================
  1371. -- TABLE: feature_relationship
  1372. -- ================================================
  1373. create table feature_relationship (
  1374. feature_relationship_id serial not null,
  1375. primary key (feature_relationship_id),
  1376. subject_id int not null,
  1377. foreign key (subject_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1378. object_id int not null,
  1379. foreign key (object_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1380. type_id int not null,
  1381. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1382. value text null,
  1383. rank int not null default 0,
  1384. constraint feature_relationship_c1 unique (subject_id,object_id,type_id,rank)
  1385. );
  1386. create index feature_relationship_idx1 on feature_relationship (subject_id);
  1387. create index feature_relationship_idx2 on feature_relationship (object_id);
  1388. create index feature_relationship_idx3 on feature_relationship (type_id);
  1389. COMMENT ON TABLE feature_relationship IS 'Features can be arranged in
  1390. graphs, e.g. "exon part_of transcript part_of gene"; If type is
  1391. thought of as a verb, the each arc or edge makes a statement
  1392. [Subject Verb Object]. The object can also be thought of as parent
  1393. (containing feature), and subject as child (contained feature or
  1394. subfeature). We include the relationship rank/order, because even
  1395. though most of the time we can order things implicitly by sequence
  1396. coordinates, we can not always do this - e.g. transpliced genes. It is also
  1397. useful for quickly getting implicit introns.';
  1398. COMMENT ON COLUMN feature_relationship.subject_id IS 'The subject of the subj-predicate-obj sentence. This is typically the subfeature.';
  1399. COMMENT ON COLUMN feature_relationship.object_id IS 'The object of the subj-predicate-obj sentence. This is typically the container feature.';
  1400. 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.';
  1401. 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.';
  1402. COMMENT ON COLUMN feature_relationship.value IS 'Additional notes or comments.';
  1403. -- ================================================
  1404. -- TABLE: feature_relationship_pub
  1405. -- ================================================
  1406. create table feature_relationship_pub (
  1407. feature_relationship_pub_id serial not null,
  1408. primary key (feature_relationship_pub_id),
  1409. feature_relationship_id int not null,
  1410. foreign key (feature_relationship_id) references feature_relationship (feature_relationship_id) on delete cascade INITIALLY DEFERRED,
  1411. pub_id int not null,
  1412. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1413. constraint feature_relationship_pub_c1 unique (feature_relationship_id,pub_id)
  1414. );
  1415. create index feature_relationship_pub_idx1 on feature_relationship_pub (feature_relationship_id);
  1416. create index feature_relationship_pub_idx2 on feature_relationship_pub (pub_id);
  1417. COMMENT ON TABLE feature_relationship_pub IS 'Provenance. Attach optional evidence to a feature_relationship in the form of a publication.';
  1418. -- ================================================
  1419. -- TABLE: feature_relationshipprop
  1420. -- ================================================
  1421. create table feature_relationshipprop (
  1422. feature_relationshipprop_id serial not null,
  1423. primary key (feature_relationshipprop_id),
  1424. feature_relationship_id int not null,
  1425. foreign key (feature_relationship_id) references feature_relationship (feature_relationship_id) on delete cascade,
  1426. type_id int not null,
  1427. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1428. value text null,
  1429. rank int not null default 0,
  1430. constraint feature_relationshipprop_c1 unique (feature_relationship_id,type_id,rank)
  1431. );
  1432. create index feature_relationshipprop_idx1 on feature_relationshipprop (feature_relationship_id);
  1433. create index feature_relationshipprop_idx2 on feature_relationshipprop (type_id);
  1434. COMMENT ON TABLE feature_relationshipprop IS 'Extensible properties
  1435. for feature_relationships. Analagous structure to featureprop. This
  1436. table is largely optional and not used with a high frequency. Typical
  1437. scenarios may be if one wishes to attach additional data to a
  1438. feature_relationship - for example to say that the
  1439. feature_relationship is only true in certain contexts.';
  1440. COMMENT ON COLUMN feature_relationshipprop.type_id IS 'The name of the
  1441. property/slot is a cvterm. The meaning of the property is defined in
  1442. that cvterm. Currently there is no standard ontology for
  1443. feature_relationship property types.';
  1444. COMMENT ON COLUMN feature_relationshipprop.value IS 'The value of the
  1445. property, represented as text. Numeric values are converted to their
  1446. text representation. This is less efficient than using native database
  1447. types, but is easier to query.';
  1448. COMMENT ON COLUMN feature_relationshipprop.rank IS 'Property-Value
  1449. ordering. Any feature_relationship can have multiple values for any particular
  1450. property type - these are ordered in a list using rank, counting from
  1451. zero. For properties that are single-valued rather than multi-valued,
  1452. the default 0 value should be used.';
  1453. -- ================================================
  1454. -- TABLE: feature_relationshipprop_pub
  1455. -- ================================================
  1456. create table feature_relationshipprop_pub (
  1457. feature_relationshipprop_pub_id serial not null,
  1458. primary key (feature_relationshipprop_pub_id),
  1459. feature_relationshipprop_id int not null,
  1460. foreign key (feature_relationshipprop_id) references feature_relationshipprop (feature_relationshipprop_id) on delete cascade INITIALLY DEFERRED,
  1461. pub_id int not null,
  1462. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1463. constraint feature_relationshipprop_pub_c1 unique (feature_relationshipprop_id,pub_id)
  1464. );
  1465. create index feature_relationshipprop_pub_idx1 on feature_relationshipprop_pub (feature_relationshipprop_id);
  1466. create index feature_relationshipprop_pub_idx2 on feature_relationshipprop_pub (pub_id);
  1467. COMMENT ON TABLE feature_relationshipprop_pub IS 'Provenance for feature_relationshipprop.';
  1468. -- ================================================
  1469. -- TABLE: feature_cvterm
  1470. -- ================================================
  1471. create table feature_cvterm (
  1472. feature_cvterm_id serial not null,
  1473. primary key (feature_cvterm_id),
  1474. feature_id int not null,
  1475. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1476. cvterm_id int not null,
  1477. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1478. pub_id int not null,
  1479. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1480. is_not boolean not null default false,
  1481. rank integer not null default 0,
  1482. constraint feature_cvterm_c1 unique (feature_id,cvterm_id,pub_id,rank)
  1483. );
  1484. create index feature_cvterm_idx1 on feature_cvterm (feature_id);
  1485. create index feature_cvterm_idx2 on feature_cvterm (cvterm_id);
  1486. create index feature_cvterm_idx3 on feature_cvterm (pub_id);
  1487. COMMENT ON TABLE feature_cvterm IS 'Associate a term from a cv with a feature, for example, GO annotation.';
  1488. 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.';
  1489. 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.';
  1490. -- ================================================
  1491. -- TABLE: feature_cvtermprop
  1492. -- ================================================
  1493. create table feature_cvtermprop (
  1494. feature_cvtermprop_id serial not null,
  1495. primary key (feature_cvtermprop_id),
  1496. feature_cvterm_id int not null,
  1497. foreign key (feature_cvterm_id) references feature_cvterm (feature_cvterm_id) on delete cascade,
  1498. type_id int not null,
  1499. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1500. value text null,
  1501. rank int not null default 0,
  1502. constraint feature_cvtermprop_c1 unique (feature_cvterm_id,type_id,rank)
  1503. );
  1504. create index feature_cvtermprop_idx1 on feature_cvtermprop (feature_cvterm_id);
  1505. create index feature_cvtermprop_idx2 on feature_cvtermprop (type_id);
  1506. COMMENT ON TABLE feature_cvtermprop IS 'Extensible properties for
  1507. feature to cvterm associations. Examples: GO evidence codes;
  1508. qualifiers; metadata such as the date on which the entry was curated
  1509. and the source of the association. See the featureprop table for
  1510. meanings of type_id, value and rank.';
  1511. COMMENT ON COLUMN feature_cvtermprop.type_id IS 'The name of the
  1512. property/slot is a cvterm. The meaning of the property is defined in
  1513. that cvterm. cvterms may come from the OBO evidence code cv.';
  1514. COMMENT ON COLUMN feature_cvtermprop.value IS 'The value of the
  1515. property, represented as text. Numeric values are converted to their
  1516. text representation. This is less efficient than using native database
  1517. types, but is easier to query.';
  1518. COMMENT ON COLUMN feature_cvtermprop.rank IS 'Property-Value
  1519. ordering. Any feature_cvterm can have multiple values for any particular
  1520. property type - these are ordered in a list using rank, counting from
  1521. zero. For properties that are single-valued rather than multi-valued,
  1522. the default 0 value should be used.';
  1523. -- ================================================
  1524. -- TABLE: feature_cvterm_dbxref
  1525. -- ================================================
  1526. create table feature_cvterm_dbxref (
  1527. feature_cvterm_dbxref_id serial not null,
  1528. primary key (feature_cvterm_dbxref_id),
  1529. feature_cvterm_id int not null,
  1530. foreign key (feature_cvterm_id) references feature_cvterm (feature_cvterm_id) on delete cascade,
  1531. dbxref_id int not null,
  1532. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  1533. constraint feature_cvterm_dbxref_c1 unique (feature_cvterm_id,dbxref_id)
  1534. );
  1535. create index feature_cvterm_dbxref_idx1 on feature_cvterm_dbxref (feature_cvterm_id);
  1536. create index feature_cvterm_dbxref_idx2 on feature_cvterm_dbxref (dbxref_id);
  1537. 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.';
  1538. -- ================================================
  1539. -- TABLE: feature_cvterm_pub
  1540. -- ================================================
  1541. create table feature_cvterm_pub (
  1542. feature_cvterm_pub_id serial not null,
  1543. primary key (feature_cvterm_pub_id),
  1544. feature_cvterm_id int not null,
  1545. foreign key (feature_cvterm_id) references feature_cvterm (feature_cvterm_id) on delete cascade,
  1546. pub_id int not null,
  1547. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1548. constraint feature_cvterm_pub_c1 unique (feature_cvterm_id,pub_id)
  1549. );
  1550. create index feature_cvterm_pub_idx1 on feature_cvterm_pub (feature_cvterm_id);
  1551. create index feature_cvterm_pub_idx2 on feature_cvterm_pub (pub_id);
  1552. COMMENT ON TABLE feature_cvterm_pub IS 'Secondary pubs for an
  1553. association. Each feature_cvterm association is supported by a single
  1554. primary publication. Additional secondary pubs can be added using this
  1555. linking table (in a GO gene association file, these corresponding to
  1556. any IDs after the pipe symbol in the publications column.';
  1557. -- ================================================
  1558. -- TABLE: synonym
  1559. -- ================================================
  1560. create table synonym (
  1561. synonym_id serial not null,
  1562. primary key (synonym_id),
  1563. name varchar(255) not null,
  1564. type_id int not null,
  1565. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1566. synonym_sgml varchar(255) not null,
  1567. constraint synonym_c1 unique (name,type_id)
  1568. );
  1569. create index synonym_idx1 on synonym (type_id);
  1570. create index synonym_idx2 on synonym ((lower(synonym_sgml)));
  1571. 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.';
  1572. COMMENT ON COLUMN synonym.name IS 'The synonym itself. Should be human-readable machine-searchable ascii text.';
  1573. COMMENT ON COLUMN synonym.synonym_sgml IS 'The fully specified synonym, with any non-ascii characters encoded in SGML.';
  1574. COMMENT ON COLUMN synonym.type_id IS 'Types would be symbol and fullname for now.';
  1575. -- ================================================
  1576. -- TABLE: feature_synonym
  1577. -- ================================================
  1578. create table feature_synonym (
  1579. feature_synonym_id serial not null,
  1580. primary key (feature_synonym_id),
  1581. synonym_id int not null,
  1582. foreign key (synonym_id) references synonym (synonym_id) on delete cascade INITIALLY DEFERRED,
  1583. feature_id int not null,
  1584. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1585. pub_id int not null,
  1586. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1587. is_current boolean not null default 'false',
  1588. is_internal boolean not null default 'false',
  1589. constraint feature_synonym_c1 unique (synonym_id,feature_id,pub_id)
  1590. );
  1591. create index feature_synonym_idx1 on feature_synonym (synonym_id);
  1592. create index feature_synonym_idx2 on feature_synonym (feature_id);
  1593. create index feature_synonym_idx3 on feature_synonym (pub_id);
  1594. COMMENT ON TABLE feature_synonym IS 'Linking table between feature and synonym.';
  1595. 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.';
  1596. 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.';
  1597. 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.';
  1598. CREATE VIEW type_feature_count AS
  1599. SELECT t.name AS type,count(*) AS num_features
  1600. FROM cvterm AS t INNER JOIN feature ON (type_id=t.cvterm_id)
  1601. GROUP BY t.name;
  1602. COMMENT ON VIEW type_feature_count IS 'per-feature-type feature counts';
  1603. CREATE SCHEMA genetic_code;
  1604. SET search_path = genetic_code,public,pg_catalog;
  1605. CREATE TABLE gencode (
  1606. gencode_id INTEGER PRIMARY KEY NOT NULL,
  1607. organismstr VARCHAR(512) NOT NULL
  1608. );
  1609. CREATE TABLE gencode_codon_aa (
  1610. gencode_id INTEGER NOT NULL REFERENCES gencode(gencode_id),
  1611. codon CHAR(3) NOT NULL,
  1612. aa CHAR(1) NOT NULL
  1613. );
  1614. CREATE INDEX gencode_codon_aa_i1 ON gencode_codon_aa(gencode_id,codon,aa);
  1615. CREATE TABLE gencode_startcodon (
  1616. gencode_id INTEGER NOT NULL REFERENCES gencode(gencode_id),
  1617. codon CHAR(3)
  1618. );
  1619. SET search_path = public,pg_catalog;
  1620. --
  1621. -- functions operating on featureloc ranges
  1622. --
  1623. -- create a point
  1624. CREATE OR REPLACE FUNCTION create_point (int, int) RETURNS point AS
  1625. 'SELECT point ($1, $2)'
  1626. LANGUAGE 'sql';
  1627. -- create a range box
  1628. -- (make this immutable so we can index it)
  1629. CREATE OR REPLACE FUNCTION boxrange (int, int) RETURNS box AS
  1630. 'SELECT box (create_point(0, $1), create_point($2,500000000))'
  1631. LANGUAGE 'sql' IMMUTABLE;
  1632. -- create a query box
  1633. CREATE OR REPLACE FUNCTION boxquery (int, int) RETURNS box AS
  1634. 'SELECT box (create_point($1, $2), create_point($1, $2))'
  1635. LANGUAGE 'sql' IMMUTABLE;
  1636. --functional index that depends on the above functions
  1637. CREATE INDEX binloc_boxrange ON featureloc USING RTREE (boxrange(fmin, fmax));
  1638. CREATE OR REPLACE FUNCTION featureloc_slice(int, int) RETURNS setof featureloc AS
  1639. 'SELECT * from featureloc where boxquery($1, $2) @ boxrange(fmin,fmax)'
  1640. LANGUAGE 'sql';
  1641. CREATE OR REPLACE FUNCTION featureloc_slice(varchar, int, int)
  1642. RETURNS setof featureloc AS
  1643. 'SELECT featureloc.*
  1644. FROM featureloc
  1645. INNER JOIN feature AS srcf ON (srcf.feature_id = featureloc.srcfeature_id)
  1646. WHERE boxquery($2, $3) @ boxrange(fmin,fmax)
  1647. AND srcf.name = $1 '
  1648. LANGUAGE 'sql';
  1649. CREATE OR REPLACE FUNCTION featureloc_slice(int, int, int)
  1650. RETURNS setof featureloc AS
  1651. 'SELECT *
  1652. FROM featureloc
  1653. WHERE boxquery($2, $3) @ boxrange(fmin,fmax)
  1654. AND srcfeature_id = $1 '
  1655. LANGUAGE 'sql';
  1656. -- can we not just do these as views?
  1657. CREATE OR REPLACE FUNCTION feature_overlaps(int)
  1658. RETURNS setof feature AS
  1659. 'SELECT feature.*
  1660. FROM feature
  1661. INNER JOIN featureloc AS x ON (x.feature_id=feature.feature_id)
  1662. INNER JOIN featureloc AS y ON (y.feature_id = $1)
  1663. WHERE
  1664. x.srcfeature_id = y.srcfeature_id AND
  1665. ( x.fmax >= y.fmin AND x.fmin <= y.fmax ) '
  1666. LANGUAGE 'sql';
  1667. CREATE OR REPLACE FUNCTION feature_disjoint_from(int)
  1668. RETURNS setof feature AS
  1669. 'SELECT feature.*
  1670. FROM feature
  1671. INNER JOIN featureloc AS x ON (x.feature_id=feature.feature_id)
  1672. INNER JOIN featureloc AS y ON (y.feature_id = $1)
  1673. WHERE
  1674. x.srcfeature_id = y.srcfeature_id AND
  1675. ( x.fmax < y.fmin OR x.fmin > y.fmax ) '
  1676. LANGUAGE 'sql';
  1677. --Evolution of the methods found in range.plpgsql (C. Pommier)
  1678. --Goal : increase performances of segment fetching
  1679. -- Implies to optimise featureloc_slice
  1680. --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.
  1681. -- 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.
  1682. -- 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 :
  1683. -- boxrange : ((srcfeature_id,fmin),(srcfeature_id,fmax))
  1684. -- boxquery : ((srcfeature_id,fmin),(srcfeature_id,fmax))
  1685. CREATE OR REPLACE FUNCTION boxrange (int, int, int) RETURNS box AS
  1686. 'SELECT box (create_point($1, $2), create_point($1,$3))'
  1687. LANGUAGE 'sql' IMMUTABLE;
  1688. -- create a query box
  1689. CREATE OR REPLACE FUNCTION boxquery (int, int, int) RETURNS box AS
  1690. 'SELECT box (create_point($1, $2), create_point($1, $3))'
  1691. LANGUAGE 'sql' IMMUTABLE;
  1692. CREATE INDEX binloc_boxrange_src ON featureloc USING RTREE (boxrange(srcfeature_id,fmin, fmax));
  1693. CREATE OR REPLACE FUNCTION featureloc_slice(int, int, int)
  1694. RETURNS setof featureloc AS
  1695. 'SELECT *
  1696. FROM featureloc
  1697. WHERE boxquery($1, $2, $3) && boxrange(srcfeature_id,fmin,fmax)'
  1698. LANGUAGE 'sql';
  1699. -- reverse_string
  1700. CREATE OR REPLACE FUNCTION reverse_string(TEXT) RETURNS TEXT AS
  1701. '
  1702. DECLARE
  1703. reversed_string TEXT;
  1704. incoming ALIAS FOR $1;
  1705. BEGIN
  1706. reversed_string = '''';
  1707. FOR i IN REVERSE char_length(incoming)..1 loop
  1708. reversed_string = reversed_string || substring(incoming FROM i FOR 1);
  1709. END loop;
  1710. RETURN reversed_string;
  1711. END'
  1712. language plpgsql;
  1713. -- complements DNA
  1714. CREATE OR REPLACE FUNCTION complement_residues(text) RETURNS text AS
  1715. 'SELECT (translate($1,
  1716. ''acgtrymkswhbvdnxACGTRYMKSWHBVDNX'',
  1717. ''tgcayrkmswdvbhnxTGCAYRKMSWDVBHNX''))'
  1718. LANGUAGE 'sql';
  1719. -- revcomp
  1720. CREATE OR REPLACE FUNCTION reverse_complement(TEXT) RETURNS TEXT AS
  1721. 'SELECT reverse_string(complement_residues($1))'
  1722. LANGUAGE 'sql';
  1723. -- DNA to AA
  1724. CREATE OR REPLACE FUNCTION translate_dna(TEXT,INT) RETURNS TEXT AS
  1725. '
  1726. DECLARE
  1727. dnaseq ALIAS FOR $1;
  1728. gcode ALIAS FOR $2;
  1729. translation TEXT;
  1730. dnaseqlen INT;
  1731. codon CHAR(3);
  1732. aa CHAR(1);
  1733. i INT;
  1734. BEGIN
  1735. translation = '''';
  1736. dnaseqlen = char_length(dnaseq);
  1737. i=1;
  1738. WHILE i+1 < dnaseqlen loop
  1739. codon = substring(dnaseq,i,3);
  1740. aa = translate_codon(codon,gcode);
  1741. translation = translation || aa;
  1742. i = i+3;
  1743. END loop;
  1744. RETURN translation;
  1745. END'
  1746. language plpgsql;
  1747. -- DNA to AA, default genetic code
  1748. CREATE OR REPLACE FUNCTION translate_dna(TEXT) RETURNS TEXT AS
  1749. 'SELECT translate_dna($1,1)'
  1750. LANGUAGE 'sql';
  1751. CREATE OR REPLACE FUNCTION translate_codon(TEXT,INT) RETURNS CHAR AS
  1752. 'SELECT aa FROM genetic_code.gencode_codon_aa WHERE codon=$1 AND gencode_id=$2'
  1753. LANGUAGE 'sql';
  1754. CREATE OR REPLACE FUNCTION concat_pair (text, text) RETURNS text AS
  1755. 'SELECT $1 || $2'
  1756. LANGUAGE 'sql';
  1757. CREATE AGGREGATE concat (
  1758. sfunc = concat_pair,
  1759. basetype = text,
  1760. stype = text,
  1761. initcond = ''
  1762. );
  1763. --function to 'unshare' exons. It looks for exons that have the same fmin
  1764. --and fmax and belong to the same gene and only keeps one. The other,
  1765. --redundant exons are marked obsolete in the feature table. Nothing
  1766. --is done with those features' entries in the featureprop, feature_dbxref,
  1767. --feature_pub, or feature_cvterm tables. For the moment, I'm assuming
  1768. --that any annotations that they have when this script is run are
  1769. --identical to their non-obsoleted doppelgangers. If that's not the case,
  1770. --they could be merged via query.
  1771. --
  1772. --The bulk of this code was contributed by Robin Houston at
  1773. --GeneDB/Sanger Centre.
  1774. CREATE OR REPLACE FUNCTION share_exons () RETURNS void AS '
  1775. DECLARE
  1776. BEGIN
  1777. /* Generate a table of shared exons */
  1778. CREATE temporary TABLE shared_exons AS
  1779. SELECT gene.feature_id as gene_feature_id
  1780. , gene.uniquename as gene_uniquename
  1781. , transcript1.uniquename as transcript1
  1782. , exon1.feature_id as exon1_feature_id
  1783. , exon1.uniquename as exon1_uniquename
  1784. , transcript2.uniquename as transcript2
  1785. , exon2.feature_id as exon2_feature_id
  1786. , exon2.uniquename as exon2_uniquename
  1787. , exon1_loc.fmin /* = exon2_loc.fmin */
  1788. , exon1_loc.fmax /* = exon2_loc.fmax */
  1789. FROM feature gene
  1790. JOIN cvterm gene_type ON gene.type_id = gene_type.cvterm_id
  1791. JOIN cv gene_type_cv USING (cv_id)
  1792. JOIN feature_relationship gene_transcript1 ON gene.feature_id = gene_transcript1.object_id
  1793. JOIN feature transcript1 ON gene_transcript1.subject_id = transcript1.feature_id
  1794. JOIN cvterm transcript1_type ON transcript1.type_id = transcript1_type.cvterm_id
  1795. JOIN cv transcript1_type_cv ON transcript1_type.cv_id = transcript1_type_cv.cv_id
  1796. JOIN feature_relationship transcript1_exon1 ON transcript1_exon1.object_id = transcript1.feature_id
  1797. JOIN feature exon1 ON transcript1_exon1.subject_id = exon1.feature_id
  1798. JOIN cvterm exon1_type ON exon1.type_id = exon1_type.cvterm_id
  1799. JOIN cv exon1_type_cv ON exon1_type.cv_id = exon1_type_cv.cv_id
  1800. JOIN featureloc exon1_loc ON exon1_loc.feature_id = exon1.feature_id
  1801. JOIN feature_relationship gene_transcript2 ON gene.feature_id = gene_transcript2.object_id
  1802. JOIN feature transcript2 ON gene_transcript2.subject_id = transcript2.feature_id
  1803. JOIN cvterm transcript2_type ON transcript2.type_id = transcript2_type.cvterm_id
  1804. JOIN cv transcript2_type_cv ON transcript2_type.cv_id = transcript2_type_cv.cv_id
  1805. JOIN feature_relationship transcript2_exon2 ON transcript2_exon2.object_id = transcript2.feature_id
  1806. JOIN feature exon2 ON transcript2_exon2.subject_id = exon2.feature_id
  1807. JOIN cvterm exon2_type ON exon2.type_id = exon2_type.cvterm_id
  1808. JOIN cv exon2_type_cv ON exon2_type.cv_id = exon2_type_cv.cv_id
  1809. JOIN featureloc exon2_loc ON exon2_loc.feature_id = exon2.feature_id
  1810. WHERE gene_type_cv.name = ''sequence''
  1811. AND gene_type.name = ''gene''
  1812. AND transcript1_type_cv.name = ''sequence''
  1813. AND transcript1_type.name = ''mRNA''
  1814. AND transcript2_type_cv.name = ''sequence''
  1815. AND transcript2_type.name = ''mRNA''
  1816. AND exon1_type_cv.name = ''sequence''
  1817. AND exon1_type.name = ''exon''
  1818. AND exon2_type_cv.name = ''sequence''
  1819. AND exon2_type.name = ''exon''
  1820. AND exon1.feature_id < exon2.feature_id
  1821. AND exon1_loc.rank = 0
  1822. AND exon2_loc.rank = 0
  1823. AND exon1_loc.fmin = exon2_loc.fmin
  1824. AND exon1_loc.fmax = exon2_loc.fmax
  1825. ;
  1826. /* Choose one of the shared exons to be the canonical representative.
  1827. We pick the one with the smallest feature_id.
  1828. */
  1829. CREATE temporary TABLE canonical_exon_representatives AS
  1830. SELECT gene_feature_id, min(exon1_feature_id) AS canonical_feature_id, fmin
  1831. FROM shared_exons
  1832. GROUP BY gene_feature_id,fmin
  1833. ;
  1834. CREATE temporary TABLE exon_replacements AS
  1835. SELECT DISTINCT shared_exons.exon2_feature_id AS actual_feature_id
  1836. , canonical_exon_representatives.canonical_feature_id
  1837. , canonical_exon_representatives.fmin
  1838. FROM shared_exons
  1839. JOIN canonical_exon_representatives USING (gene_feature_id)
  1840. WHERE shared_exons.exon2_feature_id <> canonical_exon_representatives.canonical_feature_id
  1841. AND shared_exons.fmin = canonical_exon_representatives.fmin
  1842. ;
  1843. UPDATE feature_relationship
  1844. SET subject_id = (
  1845. SELECT canonical_feature_id
  1846. FROM exon_replacements
  1847. WHERE feature_relationship.subject_id = exon_replacements.actual_feature_id)
  1848. WHERE subject_id IN (
  1849. SELECT actual_feature_id FROM exon_replacements
  1850. );
  1851. UPDATE feature_relationship
  1852. SET object_id = (
  1853. SELECT canonical_feature_id
  1854. FROM exon_replacements
  1855. WHERE feature_relationship.subject_id = exon_replacements.actual_feature_id)
  1856. WHERE object_id IN (
  1857. SELECT actual_feature_id FROM exon_replacements
  1858. );
  1859. UPDATE feature
  1860. SET is_obsolete = true
  1861. WHERE feature_id IN (
  1862. SELECT actual_feature_id FROM exon_replacements
  1863. );
  1864. END;
  1865. ' LANGUAGE 'plpgsql';
  1866. --This is a function to seek out exons of transcripts and orders them,
  1867. --using feature_relationship.rank, in "transcript order" numbering
  1868. --from 0, taking strand into account. It will not touch transcripts that
  1869. --already have their exons ordered (in case they have a non-obvious
  1870. --ordering due to trans splicing). It takes as an argument the
  1871. --feature.type_id of the parent transcript type (typically, mRNA, although
  1872. --non coding transcript types should work too).
  1873. CREATE OR REPLACE FUNCTION order_exons (integer) RETURNS void AS '
  1874. DECLARE
  1875. parent_type ALIAS FOR $1;
  1876. exon_id int;
  1877. part_of int;
  1878. exon_type int;
  1879. strand int;
  1880. arow RECORD;
  1881. order_by varchar;
  1882. rowcount int;
  1883. exon_count int;
  1884. ordered_exons int;
  1885. transcript_id int;
  1886. transcript_row feature%ROWTYPE;
  1887. BEGIN
  1888. SELECT INTO part_of cvterm_id FROM cvterm WHERE name=''part_of''
  1889. AND cv_id IN (SELECT cv_id FROM cv WHERE name=''relationship'');
  1890. --SELECT INTO exon_type cvterm_id FROM cvterm WHERE name=''exon''
  1891. -- AND cv_id IN (SELECT cv_id FROM cv WHERE name=''sequence'');
  1892. --RAISE NOTICE ''part_of %, exon %'',part_of,exon_type;
  1893. FOR transcript_row IN
  1894. SELECT * FROM feature WHERE type_id = parent_type
  1895. LOOP
  1896. transcript_id = transcript_row.feature_id;
  1897. SELECT INTO rowcount count(*) FROM feature_relationship
  1898. WHERE object_id = transcript_id
  1899. AND rank = 0;
  1900. --Dont modify this transcript if there are already numbered exons or
  1901. --if there is only one exon
  1902. IF rowcount = 1 THEN
  1903. --RAISE NOTICE ''skipping transcript %, row count %'',transcript_id,rowcount;
  1904. CONTINUE;
  1905. END IF;
  1906. --need to reverse the order if the strand is negative
  1907. SELECT INTO strand strand FROM featureloc WHERE feature_id=transcript_id;
  1908. IF strand > 0 THEN
  1909. order_by = ''fl.fmin'';
  1910. ELSE
  1911. order_by = ''fl.fmax desc'';
  1912. END IF;
  1913. exon_count = 0;
  1914. FOR arow IN EXECUTE
  1915. ''SELECT fr.*, fl.fmin, fl.fmax
  1916. FROM feature_relationship fr, featureloc fl
  1917. WHERE fr.object_id = ''||transcript_id||''
  1918. AND fr.subject_id = fl.feature_id
  1919. AND fr.type_id = ''||part_of||''
  1920. ORDER BY ''||order_by
  1921. LOOP
  1922. --number the exons for a given transcript
  1923. UPDATE feature_relationship
  1924. SET rank = exon_count
  1925. WHERE feature_relationship_id = arow.feature_relationship_id;
  1926. exon_count = exon_count + 1;
  1927. END LOOP;
  1928. END LOOP;
  1929. END;
  1930. ' LANGUAGE 'plpgsql';
  1931. -- down the graph: eg from chromosome to contig
  1932. CREATE OR REPLACE FUNCTION project_point_up(int,int,int,int)
  1933. RETURNS int AS
  1934. 'SELECT
  1935. CASE WHEN $4<0
  1936. THEN $3-$1 -- rev strand
  1937. ELSE $1-$2 -- fwd strand
  1938. END AS p'
  1939. LANGUAGE 'sql';
  1940. -- down the graph: eg from contig to chromosome
  1941. CREATE OR REPLACE FUNCTION project_point_down(int,int,int,int)
  1942. RETURNS int AS
  1943. 'SELECT
  1944. CASE WHEN $4<0
  1945. THEN $3-$1
  1946. ELSE $1+$2
  1947. END AS p'
  1948. LANGUAGE 'sql';
  1949. CREATE OR REPLACE FUNCTION project_featureloc_up(int,int)
  1950. RETURNS featureloc AS
  1951. '
  1952. DECLARE
  1953. in_featureloc_id alias for $1;
  1954. up_srcfeature_id alias for $2;
  1955. in_featureloc featureloc%ROWTYPE;
  1956. up_featureloc featureloc%ROWTYPE;
  1957. nu_featureloc featureloc%ROWTYPE;
  1958. nu_fmin INT;
  1959. nu_fmax INT;
  1960. nu_strand INT;
  1961. BEGIN
  1962. SELECT INTO in_featureloc
  1963. featureloc.*
  1964. FROM featureloc
  1965. WHERE featureloc_id = in_featureloc_id;
  1966. SELECT INTO up_featureloc
  1967. up_fl.*
  1968. FROM featureloc AS in_fl
  1969. INNER JOIN featureloc AS up_fl
  1970. ON (in_fl.srcfeature_id = up_fl.feature_id)
  1971. WHERE
  1972. in_fl.featureloc_id = in_featureloc_id AND
  1973. up_fl.srcfeature_id = up_srcfeature_id;
  1974. IF up_featureloc.strand IS NULL
  1975. THEN RETURN NULL;
  1976. END IF;
  1977. IF up_featureloc.strand < 0
  1978. THEN
  1979. nu_fmin = project_point_up(in_featureloc.fmax,
  1980. up_featureloc.fmin,up_featureloc.fmax,-1);
  1981. nu_fmax = project_point_up(in_featureloc.fmin,
  1982. up_featureloc.fmin,up_featureloc.fmax,-1);
  1983. nu_strand = -in_featureloc.strand;
  1984. ELSE
  1985. nu_fmin = project_point_up(in_featureloc.fmin,
  1986. up_featureloc.fmin,up_featureloc.fmax,1);
  1987. nu_fmax = project_point_up(in_featureloc.fmax,
  1988. up_featureloc.fmin,up_featureloc.fmax,1);
  1989. nu_strand = in_featureloc.strand;
  1990. END IF;
  1991. in_featureloc.fmin = nu_fmin;
  1992. in_featureloc.fmax = nu_fmax;
  1993. in_featureloc.strand = nu_strand;
  1994. in_featureloc.srcfeature_id = up_featureloc.srcfeature_id;
  1995. RETURN in_featureloc;
  1996. END
  1997. '
  1998. LANGUAGE 'plpgsql';
  1999. CREATE OR REPLACE FUNCTION project_point_g2t(int,int,int)
  2000. RETURNS INT AS '
  2001. DECLARE
  2002. in_p alias for $1;
  2003. srcf_id alias for $2;
  2004. t_id alias for $3;
  2005. e_floc featureloc%ROWTYPE;
  2006. out_p INT;
  2007. exon_cvterm_id INT;
  2008. BEGIN
  2009. SELECT INTO exon_cvterm_id get_feature_type_id(''exon'');
  2010. SELECT INTO out_p
  2011. CASE
  2012. WHEN strand<0 THEN fmax-p
  2013. ELSE p-fmin
  2014. END AS p
  2015. FROM featureloc
  2016. INNER JOIN feature USING (feature_id)
  2017. INNER JOIN feature_relationship ON (feature.feature_id=subject_id)
  2018. WHERE
  2019. object_id = t_id AND
  2020. feature.type_id = exon_cvterm_id AND
  2021. featureloc.srcfeature_id = srcf_id AND
  2022. in_p >= fmin AND
  2023. in_p <= fmax;
  2024. RETURN in_featureloc;
  2025. END
  2026. '
  2027. LANGUAGE 'plpgsql';
  2028. CREATE OR REPLACE FUNCTION get_cv_id_for_feature() RETURNS INT
  2029. AS 'SELECT cv_id FROM cv WHERE name=''sequence''' LANGUAGE 'sql';
  2030. CREATE OR REPLACE FUNCTION get_cv_id_for_featureprop() RETURNS INT
  2031. AS 'SELECT cv_id FROM cv WHERE name=''feature_property''' LANGUAGE 'sql';
  2032. CREATE OR REPLACE FUNCTION get_cv_id_for_feature_relationsgip() RETURNS INT
  2033. AS 'SELECT cv_id FROM cv WHERE name=''relationship''' LANGUAGE 'sql';
  2034. CREATE OR REPLACE FUNCTION get_feature_type_id(VARCHAR) RETURNS INT
  2035. AS '
  2036. SELECT cvterm_id
  2037. FROM cv INNER JOIN cvterm USING (cv_id)
  2038. WHERE cvterm.name=$1 AND cv.name=''sequence''
  2039. ' LANGUAGE 'sql';
  2040. CREATE OR REPLACE FUNCTION get_featureprop_type_id(VARCHAR) RETURNS INT
  2041. AS '
  2042. SELECT cvterm_id
  2043. FROM cv INNER JOIN cvterm USING (cv_id)
  2044. WHERE cvterm.name=$1 AND cv.name=''feature_property''
  2045. ' LANGUAGE 'sql';
  2046. CREATE OR REPLACE FUNCTION get_feature_relationship_type_id(VARCHAR) RETURNS INT
  2047. AS '
  2048. SELECT cvterm_id
  2049. FROM cv INNER JOIN cvterm USING (cv_id)
  2050. WHERE cvterm.name=$1 AND cv.name=''relationship''
  2051. ' LANGUAGE 'sql';
  2052. -- depends on sequence-cv-helper
  2053. CREATE OR REPLACE FUNCTION get_feature_id(VARCHAR,VARCHAR,VARCHAR) RETURNS INT
  2054. AS '
  2055. SELECT feature_id
  2056. FROM feature
  2057. WHERE uniquename=$1
  2058. AND type_id=get_feature_type_id($2)
  2059. AND organism_id=get_organism_id($3)
  2060. ' LANGUAGE 'sql';
  2061. --This is an automatically generated file; do not edit it as changes will not
  2062. --be saved. Instead, modify bin/create-so-bridge.pl, which creates this file.
  2063. CREATE SCHEMA so;
  2064. SET search_path=so,public,pg_catalog;
  2065. --- ************************************************
  2066. --- *** relation: region ***
  2067. --- *** relation type: VIEW ***
  2068. --- *** ***
  2069. --- *** A sequence_feature with an extent greate ***
  2070. --- *** r than zero. A nucleotide region is comp ***
  2071. --- *** osed of bases and a polypeptide region i ***
  2072. --- *** s composed of amino acids. ***
  2073. --- ************************************************
  2074. ---
  2075. CREATE VIEW region AS
  2076. SELECT
  2077. feature_id AS region_id,
  2078. feature.*
  2079. FROM
  2080. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2081. 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';
  2082. --- ************************************************
  2083. --- *** relation: sequence_secondary_structure ***
  2084. --- *** relation type: VIEW ***
  2085. --- *** ***
  2086. --- *** A folded sequence. ***
  2087. --- ************************************************
  2088. ---
  2089. CREATE VIEW sequence_secondary_structure AS
  2090. SELECT
  2091. feature_id AS sequence_secondary_structure_id,
  2092. feature.*
  2093. FROM
  2094. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2095. 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';
  2096. --- ************************************************
  2097. --- *** relation: g_quartet ***
  2098. --- *** relation type: VIEW ***
  2099. --- *** ***
  2100. --- *** G-quartets are unusual nucleic acid stru ***
  2101. --- *** ctures consisting of a planar arrangemen ***
  2102. --- *** t where each guanine is hydrogen bonded ***
  2103. --- *** by hoogsteen pairing to another guanine ***
  2104. --- *** in the quartet. ***
  2105. --- ************************************************
  2106. ---
  2107. CREATE VIEW g_quartet AS
  2108. SELECT
  2109. feature_id AS g_quartet_id,
  2110. feature.*
  2111. FROM
  2112. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2113. WHERE cvterm.name = 'G_quartet';
  2114. --- ************************************************
  2115. --- *** relation: interior_coding_exon ***
  2116. --- *** relation type: VIEW ***
  2117. --- *** ***
  2118. --- ************************************************
  2119. ---
  2120. CREATE VIEW interior_coding_exon AS
  2121. SELECT
  2122. feature_id AS interior_coding_exon_id,
  2123. feature.*
  2124. FROM
  2125. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2126. WHERE cvterm.name = 'interior_coding_exon';
  2127. --- ************************************************
  2128. --- *** relation: satellite_dna ***
  2129. --- *** relation type: VIEW ***
  2130. --- *** ***
  2131. --- *** The many tandem repeats (identical or re ***
  2132. --- *** lated) of a short basic repeating unit; ***
  2133. --- *** many have a base composition or other pr ***
  2134. --- *** operty different from the genome average ***
  2135. --- *** that allows them to be separated from t ***
  2136. --- *** he bulk (main band) genomic DNA. ***
  2137. --- ************************************************
  2138. ---
  2139. CREATE VIEW satellite_dna AS
  2140. SELECT
  2141. feature_id AS satellite_dna_id,
  2142. feature.*
  2143. FROM
  2144. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2145. 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';
  2146. --- ************************************************
  2147. --- *** relation: pcr_product ***
  2148. --- *** relation type: VIEW ***
  2149. --- *** ***
  2150. --- *** A region amplified by a PCR reaction. ***
  2151. --- ************************************************
  2152. ---
  2153. CREATE VIEW pcr_product AS
  2154. SELECT
  2155. feature_id AS pcr_product_id,
  2156. feature.*
  2157. FROM
  2158. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2159. WHERE cvterm.name = 'RAPD' OR cvterm.name = 'PCR_product';
  2160. --- ************************************************
  2161. --- *** relation: read_pair ***
  2162. --- *** relation type: VIEW ***
  2163. --- *** ***
  2164. --- *** A pair of sequencing reads in which the ***
  2165. --- *** two members of the pair are related by o ***
  2166. --- *** riginating at either end of a clone inse ***
  2167. --- *** rt. ***
  2168. --- ************************************************
  2169. ---
  2170. CREATE VIEW read_pair AS
  2171. SELECT
  2172. feature_id AS read_pair_id,
  2173. feature.*
  2174. FROM
  2175. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2176. WHERE cvterm.name = 'read_pair';
  2177. --- ************************************************
  2178. --- *** relation: protein_coding ***
  2179. --- *** relation type: VIEW ***
  2180. --- *** ***
  2181. --- ************************************************
  2182. ---
  2183. CREATE VIEW protein_coding AS
  2184. SELECT
  2185. feature_id AS protein_coding_id,
  2186. feature.*
  2187. FROM
  2188. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2189. WHERE cvterm.name = 'intein_containing' OR cvterm.name = 'protein_coding';
  2190. --- ************************************************
  2191. --- *** relation: non_protein_coding ***
  2192. --- *** relation type: VIEW ***
  2193. --- *** ***
  2194. --- ************************************************
  2195. ---
  2196. CREATE VIEW non_protein_coding AS
  2197. SELECT
  2198. feature_id AS non_protein_coding_id,
  2199. feature.*
  2200. FROM
  2201. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2202. 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';
  2203. --- ************************************************
  2204. --- *** relation: scrna_primary_transcript ***
  2205. --- *** relation type: VIEW ***
  2206. --- *** ***
  2207. --- *** The primary transcript of any one of sev ***
  2208. --- *** eral small cytoplasmic RNA molecules pre ***
  2209. --- *** sent in the cytoplasm and sometimes nucl ***
  2210. --- *** eus of a eukaryote. ***
  2211. --- ************************************************
  2212. ---
  2213. CREATE VIEW scrna_primary_transcript AS
  2214. SELECT
  2215. feature_id AS scrna_primary_transcript_id,
  2216. feature.*
  2217. FROM
  2218. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2219. WHERE cvterm.name = 'scRNA_primary_transcript';
  2220. --- ************************************************
  2221. --- *** relation: scrna ***
  2222. --- *** relation type: VIEW ***
  2223. --- *** ***
  2224. --- *** Any one of several small cytoplasmic RNA ***
  2225. --- *** molecules present in the cytoplasm and ***
  2226. --- *** sometimes nucleus of a eukaryote. ***
  2227. --- ************************************************
  2228. ---
  2229. CREATE VIEW scrna AS
  2230. SELECT
  2231. feature_id AS scrna_id,
  2232. feature.*
  2233. FROM
  2234. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2235. WHERE cvterm.name = 'scRNA';
  2236. --- ************************************************
  2237. --- *** relation: inr_motif ***
  2238. --- *** relation type: VIEW ***
  2239. --- *** ***
  2240. --- *** A sequence element characteristic of som ***
  2241. --- *** e RNA polymerase II promoters required f ***
  2242. --- *** or the correct positioning of the polyme ***
  2243. --- *** rase for the start of transcription. Ove ***
  2244. --- *** rlaps the TSS. The mammalian consensus s ***
  2245. --- *** equence is YYAN(T|A)YY; the Drosophila c ***
  2246. --- *** onsensus sequence is TCA(G|T)t(T|C). In ***
  2247. --- *** each the A is at position +1 with respec ***
  2248. --- *** t to the TSS. Functionally similar to th ***
  2249. --- *** e TATA box element. ***
  2250. --- ************************************************
  2251. ---
  2252. CREATE VIEW inr_motif AS
  2253. SELECT
  2254. feature_id AS inr_motif_id,
  2255. feature.*
  2256. FROM
  2257. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2258. WHERE cvterm.name = 'INR_motif';
  2259. --- ************************************************
  2260. --- *** relation: dpe_motif ***
  2261. --- *** relation type: VIEW ***
  2262. --- *** ***
  2263. --- *** A sequence element characteristic of som ***
  2264. --- *** e RNA polymerase II promoters; Positione ***
  2265. --- *** d from +28 to +32 with respect to the TS ***
  2266. --- *** S (+1). Experimental results suggest tha ***
  2267. --- *** t the DPE acts in conjunction with the I ***
  2268. --- *** NR_motif to provide a binding site for T ***
  2269. --- *** FIID in the absence of a TATA box to med ***
  2270. --- *** iate transcription of TATA-less promoter ***
  2271. --- *** s. Consensus sequence (A|G)G(A|T)(C|T)(G ***
  2272. --- *** |A|C). ***
  2273. --- ************************************************
  2274. ---
  2275. CREATE VIEW dpe_motif AS
  2276. SELECT
  2277. feature_id AS dpe_motif_id,
  2278. feature.*
  2279. FROM
  2280. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2281. WHERE cvterm.name = 'DPE_motif';
  2282. --- ************************************************
  2283. --- *** relation: bre_motif ***
  2284. --- *** relation type: VIEW ***
  2285. --- *** ***
  2286. --- *** A sequence element characteristic of som ***
  2287. --- *** e RNA polymerase II promoters, located i ***
  2288. --- *** mmediately upstream of some TATA box ele ***
  2289. --- *** ments at -37 to -32 with respect to the ***
  2290. --- *** TSS (+1). Consensus sequence is (G|C)(G| ***
  2291. --- *** C)(G|A)CGCC. Binds TFIIB. ***
  2292. --- ************************************************
  2293. ---
  2294. CREATE VIEW bre_motif AS
  2295. SELECT
  2296. feature_id AS bre_motif_id,
  2297. feature.*
  2298. FROM
  2299. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2300. WHERE cvterm.name = 'BRE_motif';
  2301. --- ************************************************
  2302. --- *** relation: pse_motif ***
  2303. --- *** relation type: VIEW ***
  2304. --- *** ***
  2305. --- *** A sequence element characteristic of the ***
  2306. --- *** promoters of snRNA genes transcribed by ***
  2307. --- *** RNA polymerase II or by RNA polymerase ***
  2308. --- *** III. Located between -45 and -60 relativ ***
  2309. --- *** e to the TSS. The human PSE_motif consen ***
  2310. --- *** sus sequence is TCACCNTNA(C|G)TNAAAAG(T| ***
  2311. --- *** G). ***
  2312. --- ************************************************
  2313. ---
  2314. CREATE VIEW pse_motif AS
  2315. SELECT
  2316. feature_id AS pse_motif_id,
  2317. feature.*
  2318. FROM
  2319. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2320. WHERE cvterm.name = 'PSE_motif';
  2321. --- ************************************************
  2322. --- *** relation: linkage_group ***
  2323. --- *** relation type: VIEW ***
  2324. --- *** ***
  2325. --- *** A group of loci that can be grouped in a ***
  2326. --- *** linear order representing the different ***
  2327. --- *** degrees of linkage among the genes conc ***
  2328. --- *** erned. ***
  2329. --- ************************************************
  2330. ---
  2331. CREATE VIEW linkage_group AS
  2332. SELECT
  2333. feature_id AS linkage_group_id,
  2334. feature.*
  2335. FROM
  2336. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2337. WHERE cvterm.name = 'linkage_group';
  2338. --- ************************************************
  2339. --- *** relation: rna_internal_loop ***
  2340. --- *** relation type: VIEW ***
  2341. --- *** ***
  2342. --- *** A region of double stranded RNA where th ***
  2343. --- *** e bases do not conform to WC base pairin ***
  2344. --- *** g. The loop is closed on both sides by c ***
  2345. --- *** anonical base pairing. If the interrupti ***
  2346. --- *** on to base pairing occurs on one strand ***
  2347. --- *** only, it is known as a bulge. ***
  2348. --- ************************************************
  2349. ---
  2350. CREATE VIEW rna_internal_loop AS
  2351. SELECT
  2352. feature_id AS rna_internal_loop_id,
  2353. feature.*
  2354. FROM
  2355. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2356. 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';
  2357. --- ************************************************
  2358. --- *** relation: asymmetric_rna_internal_loop ***
  2359. --- *** relation type: VIEW ***
  2360. --- *** ***
  2361. --- *** An internal RNA loop where one of the st ***
  2362. --- *** rands includes more bases than the corre ***
  2363. --- *** sponding region on the other strand. ***
  2364. --- ************************************************
  2365. ---
  2366. CREATE VIEW asymmetric_rna_internal_loop AS
  2367. SELECT
  2368. feature_id AS asymmetric_rna_internal_loop_id,
  2369. feature.*
  2370. FROM
  2371. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2372. WHERE cvterm.name = 'K_turn_RNA_motif' OR cvterm.name = 'sarcin_like_RNA_motif' OR cvterm.name = 'asymmetric_RNA_internal_loop';
  2373. --- ************************************************
  2374. --- *** relation: a_minor_rna_motif ***
  2375. --- *** relation type: VIEW ***
  2376. --- *** ***
  2377. --- *** A region forming a motif, composed of ad ***
  2378. --- *** enines, where the minor groove edges are ***
  2379. --- *** inserted into the minor groove of anoth ***
  2380. --- *** er helix. ***
  2381. --- ************************************************
  2382. ---
  2383. CREATE VIEW a_minor_rna_motif AS
  2384. SELECT
  2385. feature_id AS a_minor_rna_motif_id,
  2386. feature.*
  2387. FROM
  2388. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2389. WHERE cvterm.name = 'A_minor_RNA_motif';
  2390. --- ************************************************
  2391. --- *** relation: k_turn_rna_motif ***
  2392. --- *** relation type: VIEW ***
  2393. --- *** ***
  2394. --- *** The kink turn (K-turn) is an RNA structu ***
  2395. --- *** ral motif that creates a sharp (~120 deg ***
  2396. --- *** ree) bend between two continuous helices ***
  2397. --- *** . ***
  2398. --- ************************************************
  2399. ---
  2400. CREATE VIEW k_turn_rna_motif AS
  2401. SELECT
  2402. feature_id AS k_turn_rna_motif_id,
  2403. feature.*
  2404. FROM
  2405. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2406. WHERE cvterm.name = 'K_turn_RNA_motif';
  2407. --- ************************************************
  2408. --- *** relation: sarcin_like_rna_motif ***
  2409. --- *** relation type: VIEW ***
  2410. --- *** ***
  2411. --- *** A loop in ribosomal RNA containing the s ***
  2412. --- *** ites of attack for ricin and sarcin. ***
  2413. --- ************************************************
  2414. ---
  2415. CREATE VIEW sarcin_like_rna_motif AS
  2416. SELECT
  2417. feature_id AS sarcin_like_rna_motif_id,
  2418. feature.*
  2419. FROM
  2420. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2421. WHERE cvterm.name = 'sarcin_like_RNA_motif';
  2422. --- ************************************************
  2423. --- *** relation: symmetric_rna_internal_loop ***
  2424. --- *** relation type: VIEW ***
  2425. --- *** ***
  2426. --- *** An internal RNA loop where the extent of ***
  2427. --- *** the loop on both stands is the same siz ***
  2428. --- *** e. ***
  2429. --- ************************************************
  2430. ---
  2431. CREATE VIEW symmetric_rna_internal_loop AS
  2432. SELECT
  2433. feature_id AS symmetric_rna_internal_loop_id,
  2434. feature.*
  2435. FROM
  2436. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2437. WHERE cvterm.name = 'symmetric_RNA_internal_loop';
  2438. --- ************************************************
  2439. --- *** relation: rna_junction_loop ***
  2440. --- *** relation type: VIEW ***
  2441. --- *** ***
  2442. --- ************************************************
  2443. ---
  2444. CREATE VIEW rna_junction_loop AS
  2445. SELECT
  2446. feature_id AS rna_junction_loop_id,
  2447. feature.*
  2448. FROM
  2449. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2450. WHERE cvterm.name = 'RNA_hook_turn' OR cvterm.name = 'RNA_junction_loop';
  2451. --- ************************************************
  2452. --- *** relation: rna_hook_turn ***
  2453. --- *** relation type: VIEW ***
  2454. --- *** ***
  2455. --- ************************************************
  2456. ---
  2457. CREATE VIEW rna_hook_turn AS
  2458. SELECT
  2459. feature_id AS rna_hook_turn_id,
  2460. feature.*
  2461. FROM
  2462. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2463. WHERE cvterm.name = 'RNA_hook_turn';
  2464. --- ************************************************
  2465. --- *** relation: base_pair ***
  2466. --- *** relation type: VIEW ***
  2467. --- *** ***
  2468. --- ************************************************
  2469. ---
  2470. CREATE VIEW base_pair AS
  2471. SELECT
  2472. feature_id AS base_pair_id,
  2473. feature.*
  2474. FROM
  2475. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2476. 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';
  2477. --- ************************************************
  2478. --- *** relation: wc_base_pair ***
  2479. --- *** relation type: VIEW ***
  2480. --- *** ***
  2481. --- *** The canonical base pair, where two bases ***
  2482. --- *** interact via WC edges, with glycosidic ***
  2483. --- *** bonds oriented cis relative to the axis ***
  2484. --- *** of orientation. ***
  2485. --- ************************************************
  2486. ---
  2487. CREATE VIEW wc_base_pair AS
  2488. SELECT
  2489. feature_id AS wc_base_pair_id,
  2490. feature.*
  2491. FROM
  2492. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2493. WHERE cvterm.name = 'WC_base_pair';
  2494. --- ************************************************
  2495. --- *** relation: sugar_edge_base_pair ***
  2496. --- *** relation type: VIEW ***
  2497. --- *** ***
  2498. --- *** A type of non-canonical base-pairing. ***
  2499. --- ************************************************
  2500. ---
  2501. CREATE VIEW sugar_edge_base_pair AS
  2502. SELECT
  2503. feature_id AS sugar_edge_base_pair_id,
  2504. feature.*
  2505. FROM
  2506. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2507. WHERE cvterm.name = 'sugar_edge_base_pair';
  2508. --- ************************************************
  2509. --- *** relation: aptamer ***
  2510. --- *** relation type: VIEW ***
  2511. --- *** ***
  2512. --- *** DNA or RNA molecules that have been sele ***
  2513. --- *** cted from random pools based on their ab ***
  2514. --- *** ility to bind other molecules. ***
  2515. --- ************************************************
  2516. ---
  2517. CREATE VIEW aptamer AS
  2518. SELECT
  2519. feature_id AS aptamer_id,
  2520. feature.*
  2521. FROM
  2522. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2523. WHERE cvterm.name = 'DNA_aptamer' OR cvterm.name = 'RNA_aptamer' OR cvterm.name = 'aptamer';
  2524. --- ************************************************
  2525. --- *** relation: dna_aptamer ***
  2526. --- *** relation type: VIEW ***
  2527. --- *** ***
  2528. --- *** DNA molecules that have been selected fr ***
  2529. --- *** om random pools based on their ability t ***
  2530. --- *** o bind other molecules. ***
  2531. --- ************************************************
  2532. ---
  2533. CREATE VIEW dna_aptamer AS
  2534. SELECT
  2535. feature_id AS dna_aptamer_id,
  2536. feature.*
  2537. FROM
  2538. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2539. WHERE cvterm.name = 'DNA_aptamer';
  2540. --- ************************************************
  2541. --- *** relation: rna_aptamer ***
  2542. --- *** relation type: VIEW ***
  2543. --- *** ***
  2544. --- *** RNA molecules that have been selected fr ***
  2545. --- *** om random pools based on their ability t ***
  2546. --- *** o bind other molecules. ***
  2547. --- ************************************************
  2548. ---
  2549. CREATE VIEW rna_aptamer AS
  2550. SELECT
  2551. feature_id AS rna_aptamer_id,
  2552. feature.*
  2553. FROM
  2554. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2555. WHERE cvterm.name = 'RNA_aptamer';
  2556. --- ************************************************
  2557. --- *** relation: morpholino_oligo ***
  2558. --- *** relation type: VIEW ***
  2559. --- *** ***
  2560. --- *** Morpholino oligos are synthesized from f ***
  2561. --- *** our different Morpholino subunits, each ***
  2562. --- *** of which contains one of the four geneti ***
  2563. --- *** c bases (A, C, G, T) linked to a 6-membe ***
  2564. --- *** red morpholine ring. Eighteen to 25 subu ***
  2565. --- *** nits of these four subunit types are joi ***
  2566. --- *** ned in a specific order by non-ionic pho ***
  2567. --- *** sphorodiamidate intersubunit linkages to ***
  2568. --- *** give a Morpholino. ***
  2569. --- ************************************************
  2570. ---
  2571. CREATE VIEW morpholino_oligo AS
  2572. SELECT
  2573. feature_id AS morpholino_oligo_id,
  2574. feature.*
  2575. FROM
  2576. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2577. WHERE cvterm.name = 'morpholino_oligo';
  2578. --- ************************************************
  2579. --- *** relation: riboswitch ***
  2580. --- *** relation type: VIEW ***
  2581. --- *** ***
  2582. --- *** A riboswitch is a part of an mRNA that c ***
  2583. --- *** an act as a direct sensor of small molec ***
  2584. --- *** ules to control their own expression. A ***
  2585. --- *** riboswitch is a cis element in the 5' en ***
  2586. --- *** d of an mRNA, that acts as a direct sens ***
  2587. --- *** or of metabolites. ***
  2588. --- ************************************************
  2589. ---
  2590. CREATE VIEW riboswitch AS
  2591. SELECT
  2592. feature_id AS riboswitch_id,
  2593. feature.*
  2594. FROM
  2595. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2596. WHERE cvterm.name = 'riboswitch';
  2597. --- ************************************************
  2598. --- *** relation: matrix_attachment_site ***
  2599. --- *** relation type: VIEW ***
  2600. --- *** ***
  2601. --- *** A DNA region that is required for the bi ***
  2602. --- *** nding of chromatin to the nuclear matrix ***
  2603. --- *** . ***
  2604. --- ************************************************
  2605. ---
  2606. CREATE VIEW matrix_attachment_site AS
  2607. SELECT
  2608. feature_id AS matrix_attachment_site_id,
  2609. feature.*
  2610. FROM
  2611. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2612. WHERE cvterm.name = 'matrix_attachment_site';
  2613. --- ************************************************
  2614. --- *** relation: locus_control_region ***
  2615. --- *** relation type: VIEW ***
  2616. --- *** ***
  2617. --- *** A DNA region that includes DNAse hyperse ***
  2618. --- *** nsitive sites located 5' to a gene that ***
  2619. --- *** confers the high-level, position-indepen ***
  2620. --- *** dent, and copy number-dependent expressi ***
  2621. --- *** on to that gene. ***
  2622. --- ************************************************
  2623. ---
  2624. CREATE VIEW locus_control_region AS
  2625. SELECT
  2626. feature_id AS locus_control_region_id,
  2627. feature.*
  2628. FROM
  2629. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2630. WHERE cvterm.name = 'locus_control_region';
  2631. --- ************************************************
  2632. --- *** relation: match_part ***
  2633. --- *** relation type: VIEW ***
  2634. --- *** ***
  2635. --- *** A part of a match, for example an hsp fr ***
  2636. --- *** om blast is a match_part. ***
  2637. --- ************************************************
  2638. ---
  2639. CREATE VIEW match_part AS
  2640. SELECT
  2641. feature_id AS match_part_id,
  2642. feature.*
  2643. FROM
  2644. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2645. WHERE cvterm.name = 'match_part';
  2646. --- ************************************************
  2647. --- *** relation: genomic_clone ***
  2648. --- *** relation type: VIEW ***
  2649. --- *** ***
  2650. --- *** A clone of a DNA region of a genome. ***
  2651. --- ************************************************
  2652. ---
  2653. CREATE VIEW genomic_clone AS
  2654. SELECT
  2655. feature_id AS genomic_clone_id,
  2656. feature.*
  2657. FROM
  2658. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2659. WHERE cvterm.name = 'genomic_clone';
  2660. --- ************************************************
  2661. --- *** relation: processed_pseudogene ***
  2662. --- *** relation type: VIEW ***
  2663. --- *** ***
  2664. --- *** A pseudogene where by an mRNA was retrot ***
  2665. --- *** ransposed. The mRNA sequence is transcri ***
  2666. --- *** bed back into the genome, lacking intron ***
  2667. --- *** s and promotors, but often including a p ***
  2668. --- *** olyA tail. ***
  2669. --- ************************************************
  2670. ---
  2671. CREATE VIEW processed_pseudogene AS
  2672. SELECT
  2673. feature_id AS processed_pseudogene_id,
  2674. feature.*
  2675. FROM
  2676. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2677. WHERE cvterm.name = 'processed_pseudogene';
  2678. --- ************************************************
  2679. --- *** relation: pseudogene_by_unequal_crossing_over ***
  2680. --- *** relation type: VIEW ***
  2681. --- *** ***
  2682. --- *** A pseudogene caused by unequal crossing ***
  2683. --- *** over at recombination. ***
  2684. --- ************************************************
  2685. ---
  2686. CREATE VIEW pseudogene_by_unequal_crossing_over AS
  2687. SELECT
  2688. feature_id AS pseudogene_by_unequal_crossing_over_id,
  2689. feature.*
  2690. FROM
  2691. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2692. WHERE cvterm.name = 'pseudogene_by_unequal_crossing_over';
  2693. --- ************************************************
  2694. --- *** relation: probe ***
  2695. --- *** relation type: VIEW ***
  2696. --- *** ***
  2697. --- *** A DNA sequence used experimentally to de ***
  2698. --- *** tect the presence or absence of a comple ***
  2699. --- *** mentary nucleic acid. ***
  2700. --- ************************************************
  2701. ---
  2702. CREATE VIEW probe AS
  2703. SELECT
  2704. feature_id AS probe_id,
  2705. feature.*
  2706. FROM
  2707. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2708. WHERE cvterm.name = 'microarray_oligo' OR cvterm.name = 'probe';
  2709. --- ************************************************
  2710. --- *** relation: sequence_variant_affecting_regulatory_region ***
  2711. --- *** relation type: VIEW ***
  2712. --- *** ***
  2713. --- *** A sequence_variant_effect which changes ***
  2714. --- *** the regulatory region of a gene. ***
  2715. --- ************************************************
  2716. ---
  2717. CREATE VIEW sequence_variant_affecting_regulatory_region AS
  2718. SELECT
  2719. feature_id AS sequence_variant_affecting_regulatory_region_id,
  2720. feature.*
  2721. FROM
  2722. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2723. WHERE cvterm.name = 'sequence_variant_affecting_regulatory_region';
  2724. --- ************************************************
  2725. --- *** relation: aneuploid ***
  2726. --- *** relation type: VIEW ***
  2727. --- *** ***
  2728. --- *** A kind of chromosome variation where the ***
  2729. --- *** chromosome complement is not an exact m ***
  2730. --- *** ultiple of the haploid number. ***
  2731. --- ************************************************
  2732. ---
  2733. CREATE VIEW aneuploid AS
  2734. SELECT
  2735. feature_id AS aneuploid_id,
  2736. feature.*
  2737. FROM
  2738. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2739. WHERE cvterm.name = 'hyperploid' OR cvterm.name = 'hypoploid' OR cvterm.name = 'aneuploid';
  2740. --- ************************************************
  2741. --- *** relation: hyperploid ***
  2742. --- *** relation type: VIEW ***
  2743. --- *** ***
  2744. --- *** A kind of chromosome variation where the ***
  2745. --- *** chromosome complement is not an exact m ***
  2746. --- *** ultiple of the haploid number as extra c ***
  2747. --- *** hromosomes are present. ***
  2748. --- ************************************************
  2749. ---
  2750. CREATE VIEW hyperploid AS
  2751. SELECT
  2752. feature_id AS hyperploid_id,
  2753. feature.*
  2754. FROM
  2755. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2756. WHERE cvterm.name = 'hyperploid';
  2757. --- ************************************************
  2758. --- *** relation: hypoploid ***
  2759. --- *** relation type: VIEW ***
  2760. --- *** ***
  2761. --- *** A kind of chromosome variation where the ***
  2762. --- *** chromosome complement is not an exact m ***
  2763. --- *** ultiple of the haploid number as some ch ***
  2764. --- *** romosomes are missing. ***
  2765. --- ************************************************
  2766. ---
  2767. CREATE VIEW hypoploid AS
  2768. SELECT
  2769. feature_id AS hypoploid_id,
  2770. feature.*
  2771. FROM
  2772. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2773. WHERE cvterm.name = 'hypoploid';
  2774. --- ************************************************
  2775. --- *** relation: operator ***
  2776. --- *** relation type: VIEW ***
  2777. --- *** ***
  2778. --- *** A regulatory element of an operon to whi ***
  2779. --- *** ch activators or repressors bind thereby ***
  2780. --- *** effecting translation of genes in that ***
  2781. --- *** operon. ***
  2782. --- ************************************************
  2783. ---
  2784. CREATE VIEW operator AS
  2785. SELECT
  2786. feature_id AS operator_id,
  2787. feature.*
  2788. FROM
  2789. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2790. WHERE cvterm.name = 'operator';
  2791. --- ************************************************
  2792. --- *** relation: nuclease_binding_site ***
  2793. --- *** relation type: VIEW ***
  2794. --- *** ***
  2795. --- *** A region of a molecule that binds to a n ***
  2796. --- *** uclease. ***
  2797. --- ************************************************
  2798. ---
  2799. CREATE VIEW nuclease_binding_site AS
  2800. SELECT
  2801. feature_id AS nuclease_binding_site_id,
  2802. feature.*
  2803. FROM
  2804. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2805. 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';
  2806. --- ************************************************
  2807. --- *** relation: compound_chromosome_arm ***
  2808. --- *** relation type: VIEW ***
  2809. --- *** ***
  2810. --- ************************************************
  2811. ---
  2812. CREATE VIEW compound_chromosome_arm AS
  2813. SELECT
  2814. feature_id AS compound_chromosome_arm_id,
  2815. feature.*
  2816. FROM
  2817. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2818. WHERE cvterm.name = 'compound_chromosome_arm';
  2819. --- ************************************************
  2820. --- *** relation: restriction_enzyme_binding_site ***
  2821. --- *** relation type: VIEW ***
  2822. --- *** ***
  2823. --- *** A region of a molecule that binds to a r ***
  2824. --- *** estriction enzyme. ***
  2825. --- ************************************************
  2826. ---
  2827. CREATE VIEW restriction_enzyme_binding_site AS
  2828. SELECT
  2829. feature_id AS restriction_enzyme_binding_site_id,
  2830. feature.*
  2831. FROM
  2832. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2833. WHERE cvterm.name = 'restriction_enzyme_binding_site';
  2834. --- ************************************************
  2835. --- *** relation: d_intrachr_transposition ***
  2836. --- *** relation type: VIEW ***
  2837. --- *** ***
  2838. --- ************************************************
  2839. ---
  2840. CREATE VIEW d_intrachr_transposition AS
  2841. SELECT
  2842. feature_id AS d_intrachr_transposition_id,
  2843. feature.*
  2844. FROM
  2845. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2846. WHERE cvterm.name = 'deficient_intrachromosomal_transposition';
  2847. --- ************************************************
  2848. --- *** relation: d_interchr_transposition ***
  2849. --- *** relation type: VIEW ***
  2850. --- *** ***
  2851. --- ************************************************
  2852. ---
  2853. CREATE VIEW d_interchr_transposition AS
  2854. SELECT
  2855. feature_id AS d_interchr_transposition_id,
  2856. feature.*
  2857. FROM
  2858. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2859. WHERE cvterm.name = 'deficient_interchromosomal_transposition';
  2860. --- ************************************************
  2861. --- *** relation: free_chromosome_arm ***
  2862. --- *** relation type: VIEW ***
  2863. --- *** ***
  2864. --- ************************************************
  2865. ---
  2866. CREATE VIEW free_chromosome_arm AS
  2867. SELECT
  2868. feature_id AS free_chromosome_arm_id,
  2869. feature.*
  2870. FROM
  2871. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2872. WHERE cvterm.name = 'free_chromosome_arm';
  2873. --- ************************************************
  2874. --- *** relation: gene_to_gene_feature ***
  2875. --- *** relation type: VIEW ***
  2876. --- *** ***
  2877. --- ************************************************
  2878. ---
  2879. CREATE VIEW gene_to_gene_feature AS
  2880. SELECT
  2881. feature_id AS gene_to_gene_feature_id,
  2882. feature.*
  2883. FROM
  2884. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2885. 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';
  2886. --- ************************************************
  2887. --- *** relation: overlapping ***
  2888. --- *** relation type: VIEW ***
  2889. --- *** ***
  2890. --- *** An attribute describing a gene that has ***
  2891. --- *** a sequence that overlaps the sequence of ***
  2892. --- *** another gene. ***
  2893. --- ************************************************
  2894. ---
  2895. CREATE VIEW overlapping AS
  2896. SELECT
  2897. feature_id AS overlapping_id,
  2898. feature.*
  2899. FROM
  2900. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2901. 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';
  2902. --- ************************************************
  2903. --- *** relation: inside_intron ***
  2904. --- *** relation type: VIEW ***
  2905. --- *** ***
  2906. --- *** An attribute to describe a gene when it ***
  2907. --- *** is located within the intron of another ***
  2908. --- *** gene. ***
  2909. --- ************************************************
  2910. ---
  2911. CREATE VIEW inside_intron AS
  2912. SELECT
  2913. feature_id AS inside_intron_id,
  2914. feature.*
  2915. FROM
  2916. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2917. WHERE cvterm.name = 'inside_intron_antiparallel' OR cvterm.name = 'inside_intron_parallel' OR cvterm.name = 'inside_intron';
  2918. --- ************************************************
  2919. --- *** relation: inside_intron_antiparallel ***
  2920. --- *** relation type: VIEW ***
  2921. --- *** ***
  2922. --- *** An attribute to describe a gene when it ***
  2923. --- *** is located within the intron of another ***
  2924. --- *** gene and on the opposite strand. ***
  2925. --- ************************************************
  2926. ---
  2927. CREATE VIEW inside_intron_antiparallel AS
  2928. SELECT
  2929. feature_id AS inside_intron_antiparallel_id,
  2930. feature.*
  2931. FROM
  2932. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2933. WHERE cvterm.name = 'inside_intron_antiparallel';
  2934. --- ************************************************
  2935. --- *** relation: inside_intron_parallel ***
  2936. --- *** relation type: VIEW ***
  2937. --- *** ***
  2938. --- *** An attribute to describe a gene when it ***
  2939. --- *** is located within the intron of another ***
  2940. --- *** gene and on the same strand. ***
  2941. --- ************************************************
  2942. ---
  2943. CREATE VIEW inside_intron_parallel AS
  2944. SELECT
  2945. feature_id AS inside_intron_parallel_id,
  2946. feature.*
  2947. FROM
  2948. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2949. WHERE cvterm.name = 'inside_intron_parallel';
  2950. --- ************************************************
  2951. --- *** relation: five_prime_three_prime_overlap ***
  2952. --- *** relation type: VIEW ***
  2953. --- *** ***
  2954. --- *** An attribute to describe a gene when the ***
  2955. --- *** five prime region overlaps with another ***
  2956. --- *** gene's 3' region. ***
  2957. --- ************************************************
  2958. ---
  2959. CREATE VIEW five_prime_three_prime_overlap AS
  2960. SELECT
  2961. feature_id AS five_prime_three_prime_overlap_id,
  2962. feature.*
  2963. FROM
  2964. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2965. WHERE cvterm.name = 'five_prime_three_prime_overlap';
  2966. --- ************************************************
  2967. --- *** relation: five_prime_five_prime_overlap ***
  2968. --- *** relation type: VIEW ***
  2969. --- *** ***
  2970. --- *** An attribute to describe a gene when the ***
  2971. --- *** five prime region overlaps with another ***
  2972. --- *** gene's five prime region. ***
  2973. --- ************************************************
  2974. ---
  2975. CREATE VIEW five_prime_five_prime_overlap AS
  2976. SELECT
  2977. feature_id AS five_prime_five_prime_overlap_id,
  2978. feature.*
  2979. FROM
  2980. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2981. WHERE cvterm.name = 'five_prime_five_prime_overlap';
  2982. --- ************************************************
  2983. --- *** relation: three_prime_three_prime_overlap ***
  2984. --- *** relation type: VIEW ***
  2985. --- *** ***
  2986. --- *** An attribute to describe a gene when the ***
  2987. --- *** 3' region overlaps with another gene's ***
  2988. --- *** 3' region. ***
  2989. --- ************************************************
  2990. ---
  2991. CREATE VIEW three_prime_three_prime_overlap AS
  2992. SELECT
  2993. feature_id AS three_prime_three_prime_overlap_id,
  2994. feature.*
  2995. FROM
  2996. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2997. WHERE cvterm.name = 'three_prime_three_prime_overlap';
  2998. --- ************************************************
  2999. --- *** relation: three_prime_five_prime_overlap ***
  3000. --- *** relation type: VIEW ***
  3001. --- *** ***
  3002. --- *** An attribute to describe a gene when the ***
  3003. --- *** 3' region overlaps with another gene's ***
  3004. --- *** 5' region. ***
  3005. --- ************************************************
  3006. ---
  3007. CREATE VIEW three_prime_five_prime_overlap AS
  3008. SELECT
  3009. feature_id AS three_prime_five_prime_overlap_id,
  3010. feature.*
  3011. FROM
  3012. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3013. WHERE cvterm.name = 'three_prime_five_prime_overlap';
  3014. --- ************************************************
  3015. --- *** relation: antisense ***
  3016. --- *** relation type: VIEW ***
  3017. --- *** ***
  3018. --- *** A region sequence that is complementary ***
  3019. --- *** to a sequence of messenger RNA. ***
  3020. --- ************************************************
  3021. ---
  3022. CREATE VIEW antisense AS
  3023. SELECT
  3024. feature_id AS antisense_id,
  3025. feature.*
  3026. FROM
  3027. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3028. WHERE cvterm.name = 'antisense';
  3029. --- ************************************************
  3030. --- *** relation: polycistronic_transcript ***
  3031. --- *** relation type: VIEW ***
  3032. --- *** ***
  3033. --- *** A transcript that is polycistronic. ***
  3034. --- ************************************************
  3035. ---
  3036. CREATE VIEW polycistronic_transcript AS
  3037. SELECT
  3038. feature_id AS polycistronic_transcript_id,
  3039. feature.*
  3040. FROM
  3041. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3042. 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';
  3043. --- ************************************************
  3044. --- *** relation: dicistronic_transcript ***
  3045. --- *** relation type: VIEW ***
  3046. --- *** ***
  3047. --- *** A transcript that is dicistronic. ***
  3048. --- ************************************************
  3049. ---
  3050. CREATE VIEW dicistronic_transcript AS
  3051. SELECT
  3052. feature_id AS dicistronic_transcript_id,
  3053. feature.*
  3054. FROM
  3055. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3056. WHERE cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'dicistronic_transcript';
  3057. --- ************************************************
  3058. --- *** relation: operon_member ***
  3059. --- *** relation type: VIEW ***
  3060. --- *** ***
  3061. --- ************************************************
  3062. ---
  3063. CREATE VIEW operon_member AS
  3064. SELECT
  3065. feature_id AS operon_member_id,
  3066. feature.*
  3067. FROM
  3068. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3069. WHERE cvterm.name = 'operon_member';
  3070. --- ************************************************
  3071. --- *** relation: gene_array_member ***
  3072. --- *** relation type: VIEW ***
  3073. --- *** ***
  3074. --- ************************************************
  3075. ---
  3076. CREATE VIEW gene_array_member AS
  3077. SELECT
  3078. feature_id AS gene_array_member_id,
  3079. feature.*
  3080. FROM
  3081. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3082. 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';
  3083. --- ************************************************
  3084. --- *** relation: macronuclear_sequence ***
  3085. --- *** relation type: VIEW ***
  3086. --- *** ***
  3087. --- ************************************************
  3088. ---
  3089. CREATE VIEW macronuclear_sequence AS
  3090. SELECT
  3091. feature_id AS macronuclear_sequence_id,
  3092. feature.*
  3093. FROM
  3094. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3095. WHERE cvterm.name = 'macronuclear_sequence';
  3096. --- ************************************************
  3097. --- *** relation: micronuclear_sequence ***
  3098. --- *** relation type: VIEW ***
  3099. --- *** ***
  3100. --- ************************************************
  3101. ---
  3102. CREATE VIEW micronuclear_sequence AS
  3103. SELECT
  3104. feature_id AS micronuclear_sequence_id,
  3105. feature.*
  3106. FROM
  3107. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3108. WHERE cvterm.name = 'micronuclear_sequence';
  3109. --- ************************************************
  3110. --- *** relation: nuclear_gene ***
  3111. --- *** relation type: VIEW ***
  3112. --- *** ***
  3113. --- *** A gene from nuclear sequence. ***
  3114. --- ************************************************
  3115. ---
  3116. CREATE VIEW nuclear_gene AS
  3117. SELECT
  3118. feature_id AS nuclear_gene_id,
  3119. feature.*
  3120. FROM
  3121. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3122. WHERE cvterm.name = 'nuclear_gene';
  3123. --- ************************************************
  3124. --- *** relation: mt_gene ***
  3125. --- *** relation type: VIEW ***
  3126. --- *** ***
  3127. --- *** A gene located in mitochondrial sequence ***
  3128. --- *** . ***
  3129. --- ************************************************
  3130. ---
  3131. CREATE VIEW mt_gene AS
  3132. SELECT
  3133. feature_id AS mt_gene_id,
  3134. feature.*
  3135. FROM
  3136. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3137. WHERE cvterm.name = 'kinetoplast_gene' OR cvterm.name = 'maxicircle_gene' OR cvterm.name = 'minicircle_gene' OR cvterm.name = 'cryptogene' OR cvterm.name = 'mt_gene';
  3138. --- ************************************************
  3139. --- *** relation: kinetoplast_gene ***
  3140. --- *** relation type: VIEW ***
  3141. --- *** ***
  3142. --- *** A gene located in kinetoplast sequence. ***
  3143. --- ************************************************
  3144. ---
  3145. CREATE VIEW kinetoplast_gene AS
  3146. SELECT
  3147. feature_id AS kinetoplast_gene_id,
  3148. feature.*
  3149. FROM
  3150. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3151. WHERE cvterm.name = 'maxicircle_gene' OR cvterm.name = 'minicircle_gene' OR cvterm.name = 'cryptogene' OR cvterm.name = 'kinetoplast_gene';
  3152. --- ************************************************
  3153. --- *** relation: plastid_gene ***
  3154. --- *** relation type: VIEW ***
  3155. --- *** ***
  3156. --- *** A gene from plastid sequence. ***
  3157. --- ************************************************
  3158. ---
  3159. CREATE VIEW plastid_gene AS
  3160. SELECT
  3161. feature_id AS plastid_gene_id,
  3162. feature.*
  3163. FROM
  3164. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3165. 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';
  3166. --- ************************************************
  3167. --- *** relation: apicoplast_gene ***
  3168. --- *** relation type: VIEW ***
  3169. --- *** ***
  3170. --- *** A gene from apicoplast sequence. ***
  3171. --- ************************************************
  3172. ---
  3173. CREATE VIEW apicoplast_gene AS
  3174. SELECT
  3175. feature_id AS apicoplast_gene_id,
  3176. feature.*
  3177. FROM
  3178. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3179. WHERE cvterm.name = 'apicoplast_gene';
  3180. --- ************************************************
  3181. --- *** relation: ct_gene ***
  3182. --- *** relation type: VIEW ***
  3183. --- *** ***
  3184. --- *** A gene from chloroplast sequence. ***
  3185. --- ************************************************
  3186. ---
  3187. CREATE VIEW ct_gene AS
  3188. SELECT
  3189. feature_id AS ct_gene_id,
  3190. feature.*
  3191. FROM
  3192. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3193. WHERE cvterm.name = 'ct_gene';
  3194. --- ************************************************
  3195. --- *** relation: chromoplast_gene ***
  3196. --- *** relation type: VIEW ***
  3197. --- *** ***
  3198. --- *** A gene from chromoplast_sequence. ***
  3199. --- ************************************************
  3200. ---
  3201. CREATE VIEW chromoplast_gene AS
  3202. SELECT
  3203. feature_id AS chromoplast_gene_id,
  3204. feature.*
  3205. FROM
  3206. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3207. WHERE cvterm.name = 'chromoplast_gene';
  3208. --- ************************************************
  3209. --- *** relation: cyanelle_gene ***
  3210. --- *** relation type: VIEW ***
  3211. --- *** ***
  3212. --- *** A gene from cyanelle sequence. ***
  3213. --- ************************************************
  3214. ---
  3215. CREATE VIEW cyanelle_gene AS
  3216. SELECT
  3217. feature_id AS cyanelle_gene_id,
  3218. feature.*
  3219. FROM
  3220. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3221. WHERE cvterm.name = 'cyanelle_gene';
  3222. --- ************************************************
  3223. --- *** relation: leucoplast_gene ***
  3224. --- *** relation type: VIEW ***
  3225. --- *** ***
  3226. --- *** A plastid gene from leucoplast sequence. ***
  3227. --- ************************************************
  3228. ---
  3229. CREATE VIEW leucoplast_gene AS
  3230. SELECT
  3231. feature_id AS leucoplast_gene_id,
  3232. feature.*
  3233. FROM
  3234. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3235. WHERE cvterm.name = 'leucoplast_gene';
  3236. --- ************************************************
  3237. --- *** relation: proplastid_gene ***
  3238. --- *** relation type: VIEW ***
  3239. --- *** ***
  3240. --- *** A gene from proplastid sequence. ***
  3241. --- ************************************************
  3242. ---
  3243. CREATE VIEW proplastid_gene AS
  3244. SELECT
  3245. feature_id AS proplastid_gene_id,
  3246. feature.*
  3247. FROM
  3248. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3249. WHERE cvterm.name = 'proplastid_gene';
  3250. --- ************************************************
  3251. --- *** relation: nucleomorph_gene ***
  3252. --- *** relation type: VIEW ***
  3253. --- *** ***
  3254. --- *** A gene from nucleomorph sequence. ***
  3255. --- ************************************************
  3256. ---
  3257. CREATE VIEW nucleomorph_gene AS
  3258. SELECT
  3259. feature_id AS nucleomorph_gene_id,
  3260. feature.*
  3261. FROM
  3262. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3263. WHERE cvterm.name = 'nucleomorph_gene';
  3264. --- ************************************************
  3265. --- *** relation: plasmid_gene ***
  3266. --- *** relation type: VIEW ***
  3267. --- *** ***
  3268. --- *** A gene from plasmid sequence. ***
  3269. --- ************************************************
  3270. ---
  3271. CREATE VIEW plasmid_gene AS
  3272. SELECT
  3273. feature_id AS plasmid_gene_id,
  3274. feature.*
  3275. FROM
  3276. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3277. WHERE cvterm.name = 'plasmid_gene';
  3278. --- ************************************************
  3279. --- *** relation: proviral_gene ***
  3280. --- *** relation type: VIEW ***
  3281. --- *** ***
  3282. --- *** A gene from proviral sequence. ***
  3283. --- ************************************************
  3284. ---
  3285. CREATE VIEW proviral_gene AS
  3286. SELECT
  3287. feature_id AS proviral_gene_id,
  3288. feature.*
  3289. FROM
  3290. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3291. WHERE cvterm.name = 'endogenous_retroviral_gene' OR cvterm.name = 'proviral_gene';
  3292. --- ************************************************
  3293. --- *** relation: endogenous_retroviral_gene ***
  3294. --- *** relation type: VIEW ***
  3295. --- *** ***
  3296. --- *** A proviral gene with origin endogenous r ***
  3297. --- *** etrovirus. ***
  3298. --- ************************************************
  3299. ---
  3300. CREATE VIEW endogenous_retroviral_gene AS
  3301. SELECT
  3302. feature_id AS endogenous_retroviral_gene_id,
  3303. feature.*
  3304. FROM
  3305. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3306. WHERE cvterm.name = 'endogenous_retroviral_gene';
  3307. --- ************************************************
  3308. --- *** relation: transposable_element ***
  3309. --- *** relation type: VIEW ***
  3310. --- *** ***
  3311. --- *** A transposon or insertion sequence. An e ***
  3312. --- *** lement that can insert in a variety of D ***
  3313. --- *** NA sequences. ***
  3314. --- ************************************************
  3315. ---
  3316. CREATE VIEW transposable_element AS
  3317. SELECT
  3318. feature_id AS transposable_element_id,
  3319. feature.*
  3320. FROM
  3321. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3322. 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';
  3323. --- ************************************************
  3324. --- *** relation: expressed_sequence_match ***
  3325. --- *** relation type: VIEW ***
  3326. --- *** ***
  3327. --- *** A match to an EST or cDNA sequence. ***
  3328. --- ************************************************
  3329. ---
  3330. CREATE VIEW expressed_sequence_match AS
  3331. SELECT
  3332. feature_id AS expressed_sequence_match_id,
  3333. feature.*
  3334. FROM
  3335. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3336. 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';
  3337. --- ************************************************
  3338. --- *** relation: clone_insert_end ***
  3339. --- *** relation type: VIEW ***
  3340. --- *** ***
  3341. --- *** The end of the clone insert. ***
  3342. --- ************************************************
  3343. ---
  3344. CREATE VIEW clone_insert_end AS
  3345. SELECT
  3346. feature_id AS clone_insert_end_id,
  3347. feature.*
  3348. FROM
  3349. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3350. WHERE cvterm.name = 'clone_insert_end';
  3351. --- ************************************************
  3352. --- *** relation: polypeptide ***
  3353. --- *** relation type: VIEW ***
  3354. --- *** ***
  3355. --- *** A sequence of amino acids linked by pept ***
  3356. --- *** ide bonds which may lack appreciable ter ***
  3357. --- *** tiary structure and may not be liable to ***
  3358. --- *** irreversible denaturation. ***
  3359. --- ************************************************
  3360. ---
  3361. CREATE VIEW polypeptide AS
  3362. SELECT
  3363. feature_id AS polypeptide_id,
  3364. feature.*
  3365. FROM
  3366. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3367. WHERE cvterm.name = 'polypeptide';
  3368. --- ************************************************
  3369. --- *** relation: chromosome_arm ***
  3370. --- *** relation type: VIEW ***
  3371. --- *** ***
  3372. --- *** A region of the chromosome between the c ***
  3373. --- *** entromere and the telomere. Human chromo ***
  3374. --- *** somes have two arms, the p arm (short) a ***
  3375. --- *** nd the q arm (long) which are separated ***
  3376. --- *** from each other by the centromere. ***
  3377. --- ************************************************
  3378. ---
  3379. CREATE VIEW chromosome_arm AS
  3380. SELECT
  3381. feature_id AS chromosome_arm_id,
  3382. feature.*
  3383. FROM
  3384. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3385. WHERE cvterm.name = 'chromosome_arm';
  3386. --- ************************************************
  3387. --- *** relation: sequencing_primer ***
  3388. --- *** relation type: VIEW ***
  3389. --- *** ***
  3390. --- ************************************************
  3391. ---
  3392. CREATE VIEW sequencing_primer AS
  3393. SELECT
  3394. feature_id AS sequencing_primer_id,
  3395. feature.*
  3396. FROM
  3397. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3398. WHERE cvterm.name = 'sequencing_primer';
  3399. --- ************************************************
  3400. --- *** relation: mrna_with_frameshift ***
  3401. --- *** relation type: VIEW ***
  3402. --- *** ***
  3403. --- *** An mRNA with a frameshift. ***
  3404. --- ************************************************
  3405. ---
  3406. CREATE VIEW mrna_with_frameshift AS
  3407. SELECT
  3408. feature_id AS mrna_with_frameshift_id,
  3409. feature.*
  3410. FROM
  3411. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3412. 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';
  3413. --- ************************************************
  3414. --- *** relation: sequence_feature ***
  3415. --- *** relation type: VIEW ***
  3416. --- *** ***
  3417. --- *** An extent of biological sequence. ***
  3418. --- ************************************************
  3419. ---
  3420. CREATE VIEW sequence_feature AS
  3421. SELECT
  3422. feature_id AS sequence_feature_id,
  3423. feature.*
  3424. FROM
  3425. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3426. 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';
  3427. --- ************************************************
  3428. --- *** relation: transposable_element_gene ***
  3429. --- *** relation type: VIEW ***
  3430. --- *** ***
  3431. --- *** A gene encoded within a transposable ele ***
  3432. --- *** ment. For example gag, int, env and pol ***
  3433. --- *** are the transposable element genes of th ***
  3434. --- *** e TY element in yeast. ***
  3435. --- ************************************************
  3436. ---
  3437. CREATE VIEW transposable_element_gene AS
  3438. SELECT
  3439. feature_id AS transposable_element_gene_id,
  3440. feature.*
  3441. FROM
  3442. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3443. WHERE cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'transposable_element_gene';
  3444. --- ************************************************
  3445. --- *** relation: primer ***
  3446. --- *** relation type: VIEW ***
  3447. --- *** ***
  3448. --- *** A short preexisting polynucleotide chain ***
  3449. --- *** to which new deoxyribonucleotides can b ***
  3450. --- *** e added by DNA polymerase. ***
  3451. --- ************************************************
  3452. ---
  3453. CREATE VIEW primer AS
  3454. SELECT
  3455. feature_id AS primer_id,
  3456. feature.*
  3457. FROM
  3458. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3459. WHERE cvterm.name = 'sequencing_primer' OR cvterm.name = 'forward_primer' OR cvterm.name = 'reverse_primer' OR cvterm.name = 'primer';
  3460. --- ************************************************
  3461. --- *** relation: proviral_region ***
  3462. --- *** relation type: VIEW ***
  3463. --- *** ***
  3464. --- *** A viral sequence which has integrated in ***
  3465. --- *** to a host genome. ***
  3466. --- ************************************************
  3467. ---
  3468. CREATE VIEW proviral_region AS
  3469. SELECT
  3470. feature_id AS proviral_region_id,
  3471. feature.*
  3472. FROM
  3473. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3474. WHERE cvterm.name = 'prophage' OR cvterm.name = 'proviral_region';
  3475. --- ************************************************
  3476. --- *** relation: methylated_c ***
  3477. --- *** relation type: VIEW ***
  3478. --- *** ***
  3479. --- *** A methylated deoxy-cytosine. ***
  3480. --- ************************************************
  3481. ---
  3482. CREATE VIEW methylated_c AS
  3483. SELECT
  3484. feature_id AS methylated_c_id,
  3485. feature.*
  3486. FROM
  3487. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3488. WHERE cvterm.name = 'methylated_C';
  3489. --- ************************************************
  3490. --- *** relation: edited ***
  3491. --- *** relation type: VIEW ***
  3492. --- *** ***
  3493. --- *** An attribute describing a sequence that ***
  3494. --- *** is modified by editing. ***
  3495. --- ************************************************
  3496. ---
  3497. CREATE VIEW edited AS
  3498. SELECT
  3499. feature_id AS edited_id,
  3500. feature.*
  3501. FROM
  3502. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3503. WHERE cvterm.name = 'edited';
  3504. --- ************************************************
  3505. --- *** relation: transcript_with_translational_frameshift ***
  3506. --- *** relation type: VIEW ***
  3507. --- *** ***
  3508. --- *** A transcript with a translational frames ***
  3509. --- *** hift. ***
  3510. --- ************************************************
  3511. ---
  3512. CREATE VIEW transcript_with_translational_frameshift AS
  3513. SELECT
  3514. feature_id AS transcript_with_translational_frameshift_id,
  3515. feature.*
  3516. FROM
  3517. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3518. WHERE cvterm.name = 'transcript_with_translational_frameshift';
  3519. --- ************************************************
  3520. --- *** relation: regulated ***
  3521. --- *** relation type: VIEW ***
  3522. --- *** ***
  3523. --- *** An attribute to describe a sequence that ***
  3524. --- *** is regulated. ***
  3525. --- ************************************************
  3526. ---
  3527. CREATE VIEW regulated AS
  3528. SELECT
  3529. feature_id AS regulated_id,
  3530. feature.*
  3531. FROM
  3532. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3533. 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';
  3534. --- ************************************************
  3535. --- *** relation: protein_coding_primary_transcript ***
  3536. --- *** relation type: VIEW ***
  3537. --- *** ***
  3538. --- *** A primary transcript that, at least in p ***
  3539. --- *** art, encodes one or more proteins. ***
  3540. --- ************************************************
  3541. ---
  3542. CREATE VIEW protein_coding_primary_transcript AS
  3543. SELECT
  3544. feature_id AS protein_coding_primary_transcript_id,
  3545. feature.*
  3546. FROM
  3547. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3548. WHERE cvterm.name = 'pre_edited_mRNA' OR cvterm.name = 'protein_coding_primary_transcript';
  3549. --- ************************************************
  3550. --- *** relation: forward_primer ***
  3551. --- *** relation type: VIEW ***
  3552. --- *** ***
  3553. --- *** A single stranded oligo used for polymer ***
  3554. --- *** ase chain reaction. ***
  3555. --- ************************************************
  3556. ---
  3557. CREATE VIEW forward_primer AS
  3558. SELECT
  3559. feature_id AS forward_primer_id,
  3560. feature.*
  3561. FROM
  3562. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3563. WHERE cvterm.name = 'forward_primer';
  3564. --- ************************************************
  3565. --- *** relation: rna_sequence_secondary_structure ***
  3566. --- *** relation type: VIEW ***
  3567. --- *** ***
  3568. --- *** A folded RNA sequence. ***
  3569. --- ************************************************
  3570. ---
  3571. CREATE VIEW rna_sequence_secondary_structure AS
  3572. SELECT
  3573. feature_id AS rna_sequence_secondary_structure_id,
  3574. feature.*
  3575. FROM
  3576. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3577. WHERE cvterm.name = 'stem_loop' OR cvterm.name = 'tetraloop' OR cvterm.name = 'RNA_sequence_secondary_structure';
  3578. --- ************************************************
  3579. --- *** relation: transcriptionally_regulated ***
  3580. --- *** relation type: VIEW ***
  3581. --- *** ***
  3582. --- *** An attribute describing a gene that is r ***
  3583. --- *** egulated at transcription. ***
  3584. --- ************************************************
  3585. ---
  3586. CREATE VIEW transcriptionally_regulated AS
  3587. SELECT
  3588. feature_id AS transcriptionally_regulated_id,
  3589. feature.*
  3590. FROM
  3591. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3592. 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';
  3593. --- ************************************************
  3594. --- *** relation: transcriptionally_constitutive ***
  3595. --- *** relation type: VIEW ***
  3596. --- *** ***
  3597. --- *** Expressed in relatively constant amounts ***
  3598. --- *** without regard to cellular environmenta ***
  3599. --- *** l conditions such as the concentration o ***
  3600. --- *** f a particular substrate. ***
  3601. --- ************************************************
  3602. ---
  3603. CREATE VIEW transcriptionally_constitutive AS
  3604. SELECT
  3605. feature_id AS transcriptionally_constitutive_id,
  3606. feature.*
  3607. FROM
  3608. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3609. WHERE cvterm.name = 'transcriptionally_constitutive';
  3610. --- ************************************************
  3611. --- *** relation: transcriptionally_induced ***
  3612. --- *** relation type: VIEW ***
  3613. --- *** ***
  3614. --- *** An inducer molecule is required for tran ***
  3615. --- *** scription to occur. ***
  3616. --- ************************************************
  3617. ---
  3618. CREATE VIEW transcriptionally_induced AS
  3619. SELECT
  3620. feature_id AS transcriptionally_induced_id,
  3621. feature.*
  3622. FROM
  3623. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3624. WHERE cvterm.name = 'positively_autoregulated' OR cvterm.name = 'transcriptionally_induced';
  3625. --- ************************************************
  3626. --- *** relation: transcriptionally_repressed ***
  3627. --- *** relation type: VIEW ***
  3628. --- *** ***
  3629. --- *** A repressor molecule is required for tra ***
  3630. --- *** nscription to stop. ***
  3631. --- ************************************************
  3632. ---
  3633. CREATE VIEW transcriptionally_repressed AS
  3634. SELECT
  3635. feature_id AS transcriptionally_repressed_id,
  3636. feature.*
  3637. FROM
  3638. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3639. 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';
  3640. --- ************************************************
  3641. --- *** relation: silenced_gene ***
  3642. --- *** relation type: VIEW ***
  3643. --- *** ***
  3644. --- *** A gene that is silenced. ***
  3645. --- ************************************************
  3646. ---
  3647. CREATE VIEW silenced_gene AS
  3648. SELECT
  3649. feature_id AS silenced_gene_id,
  3650. feature.*
  3651. FROM
  3652. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3653. 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';
  3654. --- ************************************************
  3655. --- *** relation: gene_silenced_by_dna_modification ***
  3656. --- *** relation type: VIEW ***
  3657. --- *** ***
  3658. --- *** A gene that is silenced by DNA modificat ***
  3659. --- *** ion. ***
  3660. --- ************************************************
  3661. ---
  3662. CREATE VIEW gene_silenced_by_dna_modification AS
  3663. SELECT
  3664. feature_id AS gene_silenced_by_dna_modification_id,
  3665. feature.*
  3666. FROM
  3667. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3668. WHERE cvterm.name = 'gene_silenced_by_DNA_methylation' OR cvterm.name = 'gene_silenced_by_DNA_modification';
  3669. --- ************************************************
  3670. --- *** relation: gene_silenced_by_dna_methylation ***
  3671. --- *** relation type: VIEW ***
  3672. --- *** ***
  3673. --- *** A gene that is silenced by DNA methylati ***
  3674. --- *** on. ***
  3675. --- ************************************************
  3676. ---
  3677. CREATE VIEW gene_silenced_by_dna_methylation AS
  3678. SELECT
  3679. feature_id AS gene_silenced_by_dna_methylation_id,
  3680. feature.*
  3681. FROM
  3682. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3683. WHERE cvterm.name = 'gene_silenced_by_DNA_methylation';
  3684. --- ************************************************
  3685. --- *** relation: post_translationally_regulated ***
  3686. --- *** relation type: VIEW ***
  3687. --- *** ***
  3688. --- *** An attribute describing a gene that is r ***
  3689. --- *** egulated after it has been translated. ***
  3690. --- ************************************************
  3691. ---
  3692. CREATE VIEW post_translationally_regulated AS
  3693. SELECT
  3694. feature_id AS post_translationally_regulated_id,
  3695. feature.*
  3696. FROM
  3697. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3698. WHERE cvterm.name = 'post_translationally_regulated_by_protein_stability' OR cvterm.name = 'post_translationally_regulated_by_protein_modification' OR cvterm.name = 'post_translationally_regulated';
  3699. --- ************************************************
  3700. --- *** relation: translationally_regulated ***
  3701. --- *** relation type: VIEW ***
  3702. --- *** ***
  3703. --- *** An attribute describing a gene that is r ***
  3704. --- *** egulated as it is translated. ***
  3705. --- ************************************************
  3706. ---
  3707. CREATE VIEW translationally_regulated AS
  3708. SELECT
  3709. feature_id AS translationally_regulated_id,
  3710. feature.*
  3711. FROM
  3712. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3713. WHERE cvterm.name = 'translationally_regulated';
  3714. --- ************************************************
  3715. --- *** relation: reverse_primer ***
  3716. --- *** relation type: VIEW ***
  3717. --- *** ***
  3718. --- *** A single stranded oligo used for polymer ***
  3719. --- *** ase chain reaction. ***
  3720. --- ************************************************
  3721. ---
  3722. CREATE VIEW reverse_primer AS
  3723. SELECT
  3724. feature_id AS reverse_primer_id,
  3725. feature.*
  3726. FROM
  3727. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3728. WHERE cvterm.name = 'reverse_primer';
  3729. --- ************************************************
  3730. --- *** relation: epigenetically_modified ***
  3731. --- *** relation type: VIEW ***
  3732. --- *** ***
  3733. --- *** This attribute describes a gene where he ***
  3734. --- *** ritable changes other than those in the ***
  3735. --- *** DNA sequence occur. These changes includ ***
  3736. --- *** e: modification to the DNA (such as DNA ***
  3737. --- *** methylation, the covalent modification o ***
  3738. --- *** f cytosine), and post-translational modi ***
  3739. --- *** fication of histones. ***
  3740. --- ************************************************
  3741. ---
  3742. CREATE VIEW epigenetically_modified AS
  3743. SELECT
  3744. feature_id AS epigenetically_modified_id,
  3745. feature.*
  3746. FROM
  3747. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3748. 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';
  3749. --- ************************************************
  3750. --- *** relation: imprinted ***
  3751. --- *** relation type: VIEW ***
  3752. --- *** ***
  3753. --- *** Imprinted genes are epigenetically modif ***
  3754. --- *** ied genes that are expressed monoallelic ***
  3755. --- *** ally according to their parent of origin ***
  3756. --- *** . ***
  3757. --- ************************************************
  3758. ---
  3759. CREATE VIEW imprinted AS
  3760. SELECT
  3761. feature_id AS imprinted_id,
  3762. feature.*
  3763. FROM
  3764. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3765. WHERE cvterm.name = 'maternally_imprinted' OR cvterm.name = 'paternally_imprinted' OR cvterm.name = 'imprinted';
  3766. --- ************************************************
  3767. --- *** relation: maternally_imprinted ***
  3768. --- *** relation type: VIEW ***
  3769. --- *** ***
  3770. --- *** The maternal copy of the gene is modifie ***
  3771. --- *** d, rendering it transcriptionally silent ***
  3772. --- *** . ***
  3773. --- ************************************************
  3774. ---
  3775. CREATE VIEW maternally_imprinted AS
  3776. SELECT
  3777. feature_id AS maternally_imprinted_id,
  3778. feature.*
  3779. FROM
  3780. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3781. WHERE cvterm.name = 'maternally_imprinted';
  3782. --- ************************************************
  3783. --- *** relation: paternally_imprinted ***
  3784. --- *** relation type: VIEW ***
  3785. --- *** ***
  3786. --- *** The paternal copy of the gene is modifie ***
  3787. --- *** d, rendering it transcriptionally silent ***
  3788. --- *** . ***
  3789. --- ************************************************
  3790. ---
  3791. CREATE VIEW paternally_imprinted AS
  3792. SELECT
  3793. feature_id AS paternally_imprinted_id,
  3794. feature.*
  3795. FROM
  3796. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3797. WHERE cvterm.name = 'paternally_imprinted';
  3798. --- ************************************************
  3799. --- *** relation: allelically_excluded ***
  3800. --- *** relation type: VIEW ***
  3801. --- *** ***
  3802. --- *** Allelic exclusion is a process occuring ***
  3803. --- *** in diploid organisms, where a gene is in ***
  3804. --- *** activated and not expressed in that cell ***
  3805. --- *** . ***
  3806. --- ************************************************
  3807. ---
  3808. CREATE VIEW allelically_excluded AS
  3809. SELECT
  3810. feature_id AS allelically_excluded_id,
  3811. feature.*
  3812. FROM
  3813. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3814. WHERE cvterm.name = 'allelically_excluded';
  3815. --- ************************************************
  3816. --- *** relation: gene_rearranged_at_dna_level ***
  3817. --- *** relation type: VIEW ***
  3818. --- *** ***
  3819. --- *** An epigenetically modified gene, rearran ***
  3820. --- *** ged at the DNA level. ***
  3821. --- ************************************************
  3822. ---
  3823. CREATE VIEW gene_rearranged_at_dna_level AS
  3824. SELECT
  3825. feature_id AS gene_rearranged_at_dna_level_id,
  3826. feature.*
  3827. FROM
  3828. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3829. WHERE cvterm.name = 'gene_rearranged_at_DNA_level';
  3830. --- ************************************************
  3831. --- *** relation: ribosome_entry_site ***
  3832. --- *** relation type: VIEW ***
  3833. --- *** ***
  3834. --- *** Region in mRNA where ribosome assembles. ***
  3835. --- ************************************************
  3836. ---
  3837. CREATE VIEW ribosome_entry_site AS
  3838. SELECT
  3839. feature_id AS ribosome_entry_site_id,
  3840. feature.*
  3841. FROM
  3842. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3843. 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';
  3844. --- ************************************************
  3845. --- *** relation: attenuator ***
  3846. --- *** relation type: VIEW ***
  3847. --- *** ***
  3848. --- *** A sequence segment located within the fi ***
  3849. --- *** ve prime end of an mRNA that causes prem ***
  3850. --- *** ature termination of translation. ***
  3851. --- ************************************************
  3852. ---
  3853. CREATE VIEW attenuator AS
  3854. SELECT
  3855. feature_id AS attenuator_id,
  3856. feature.*
  3857. FROM
  3858. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3859. WHERE cvterm.name = 'attenuator';
  3860. --- ************************************************
  3861. --- *** relation: terminator ***
  3862. --- *** relation type: VIEW ***
  3863. --- *** ***
  3864. --- *** The sequence of DNA located either at th ***
  3865. --- *** e end of the transcript that causes RNA ***
  3866. --- *** polymerase to terminate transcription. ***
  3867. --- ************************************************
  3868. ---
  3869. CREATE VIEW terminator AS
  3870. SELECT
  3871. feature_id AS terminator_id,
  3872. feature.*
  3873. FROM
  3874. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3875. 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';
  3876. --- ************************************************
  3877. --- *** relation: dna_sequence_secondary_structure ***
  3878. --- *** relation type: VIEW ***
  3879. --- *** ***
  3880. --- *** A folded DNA sequence. ***
  3881. --- ************************************************
  3882. ---
  3883. CREATE VIEW dna_sequence_secondary_structure AS
  3884. SELECT
  3885. feature_id AS dna_sequence_secondary_structure_id,
  3886. feature.*
  3887. FROM
  3888. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3889. WHERE cvterm.name = 'i_motif' OR cvterm.name = 'DNA_sequence_secondary_structure';
  3890. --- ************************************************
  3891. --- *** relation: assembly_component ***
  3892. --- *** relation type: VIEW ***
  3893. --- *** ***
  3894. --- *** A region of known length which may be us ***
  3895. --- *** ed to manufacture a longer region. ***
  3896. --- ************************************************
  3897. ---
  3898. CREATE VIEW assembly_component AS
  3899. SELECT
  3900. feature_id AS assembly_component_id,
  3901. feature.*
  3902. FROM
  3903. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3904. 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';
  3905. --- ************************************************
  3906. --- *** relation: recoded_codon ***
  3907. --- *** relation type: VIEW ***
  3908. --- *** ***
  3909. --- *** A codon that has been redefined at trans ***
  3910. --- *** lation. The redefinition may be as a res ***
  3911. --- *** ult of translational bypass, translation ***
  3912. --- *** al frameshifting or stop codon readthrou ***
  3913. --- *** gh. ***
  3914. --- ************************************************
  3915. ---
  3916. CREATE VIEW recoded_codon AS
  3917. SELECT
  3918. feature_id AS recoded_codon_id,
  3919. feature.*
  3920. FROM
  3921. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3922. 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';
  3923. --- ************************************************
  3924. --- *** relation: capped ***
  3925. --- *** relation type: VIEW ***
  3926. --- *** ***
  3927. --- *** An attribute describing when a sequence, ***
  3928. --- *** usually an mRNA is capped by the additi ***
  3929. --- *** on of a modified guanine nucleotide at t ***
  3930. --- *** he 5' end. ***
  3931. --- ************************************************
  3932. ---
  3933. CREATE VIEW capped AS
  3934. SELECT
  3935. feature_id AS capped_id,
  3936. feature.*
  3937. FROM
  3938. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3939. WHERE cvterm.name = 'capped';
  3940. --- ************************************************
  3941. --- *** relation: exon ***
  3942. --- *** relation type: VIEW ***
  3943. --- *** ***
  3944. --- *** A region of the transcript sequence with ***
  3945. --- *** in a gene which is not removed from the ***
  3946. --- *** primary RNA transcript by RNA splicing. ***
  3947. --- ************************************************
  3948. ---
  3949. CREATE VIEW exon AS
  3950. SELECT
  3951. feature_id AS exon_id,
  3952. feature.*
  3953. FROM
  3954. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3955. 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';
  3956. --- ************************************************
  3957. --- *** relation: supercontig ***
  3958. --- *** relation type: VIEW ***
  3959. --- *** ***
  3960. --- *** One or more contigs that have been order ***
  3961. --- *** ed and oriented using end-read informati ***
  3962. --- *** on. Contains gaps that are filled with N ***
  3963. --- *** 's. ***
  3964. --- ************************************************
  3965. ---
  3966. CREATE VIEW supercontig AS
  3967. SELECT
  3968. feature_id AS supercontig_id,
  3969. feature.*
  3970. FROM
  3971. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3972. WHERE cvterm.name = 'supercontig';
  3973. --- ************************************************
  3974. --- *** relation: contig ***
  3975. --- *** relation type: VIEW ***
  3976. --- *** ***
  3977. --- *** A contiguous sequence derived from seque ***
  3978. --- *** nce assembly. Has no gaps, but may conta ***
  3979. --- *** in N's from unvailable bases. ***
  3980. --- ************************************************
  3981. ---
  3982. CREATE VIEW contig AS
  3983. SELECT
  3984. feature_id AS contig_id,
  3985. feature.*
  3986. FROM
  3987. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3988. WHERE cvterm.name = 'contig';
  3989. --- ************************************************
  3990. --- *** relation: read ***
  3991. --- *** relation type: VIEW ***
  3992. --- *** ***
  3993. --- *** A sequence obtained from a single sequen ***
  3994. --- *** cing experiment. Typically a read is pro ***
  3995. --- *** duced when a base calling program interp ***
  3996. --- *** rets information from a chromatogram tra ***
  3997. --- *** ce file produced from a sequencing machi ***
  3998. --- *** ne. ***
  3999. --- ************************************************
  4000. ---
  4001. CREATE VIEW read AS
  4002. SELECT
  4003. feature_id AS read_id,
  4004. feature.*
  4005. FROM
  4006. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4007. 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';
  4008. --- ************************************************
  4009. --- *** relation: clone ***
  4010. --- *** relation type: VIEW ***
  4011. --- *** ***
  4012. --- *** A piece of DNA that has been inserted in ***
  4013. --- *** a vector so that it can be propagated i ***
  4014. --- *** n a host bacterium or some other organis ***
  4015. --- *** m. ***
  4016. --- ************************************************
  4017. ---
  4018. CREATE VIEW clone AS
  4019. SELECT
  4020. feature_id AS clone_id,
  4021. feature.*
  4022. FROM
  4023. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4024. 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';
  4025. --- ************************************************
  4026. --- *** relation: yac ***
  4027. --- *** relation type: VIEW ***
  4028. --- *** ***
  4029. --- *** Yeast Artificial Chromosome, a vector co ***
  4030. --- *** nstructed from the telomeric, centromeri ***
  4031. --- *** c, and replication origin sequences need ***
  4032. --- *** ed for replication in yeast cells. ***
  4033. --- ************************************************
  4034. ---
  4035. CREATE VIEW yac AS
  4036. SELECT
  4037. feature_id AS yac_id,
  4038. feature.*
  4039. FROM
  4040. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4041. WHERE cvterm.name = 'YAC';
  4042. --- ************************************************
  4043. --- *** relation: bac ***
  4044. --- *** relation type: VIEW ***
  4045. --- *** ***
  4046. --- *** Bacterial Artificial Chromosome, a cloni ***
  4047. --- *** ng vector that can be propagated as mini ***
  4048. --- *** -chromosomes in a bacterial host. ***
  4049. --- ************************************************
  4050. ---
  4051. CREATE VIEW bac AS
  4052. SELECT
  4053. feature_id AS bac_id,
  4054. feature.*
  4055. FROM
  4056. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4057. WHERE cvterm.name = 'BAC';
  4058. --- ************************************************
  4059. --- *** relation: pac ***
  4060. --- *** relation type: VIEW ***
  4061. --- *** ***
  4062. --- *** The P1-derived artificial chromosome are ***
  4063. --- *** DNA constructs that are derived from th ***
  4064. --- *** e DNA of P1 bacteriophage. They can carr ***
  4065. --- *** y large amounts (about 100-300 kilobases ***
  4066. --- *** ) of other sequences for a variety of bi ***
  4067. --- *** oengineering purposes. It is one type of ***
  4068. --- *** vector used to clone DNA fragments (100 ***
  4069. --- *** - to 300-kb insert size; average, 150 kb ***
  4070. --- *** ) in Escherichia coli cells. ***
  4071. --- ************************************************
  4072. ---
  4073. CREATE VIEW pac AS
  4074. SELECT
  4075. feature_id AS pac_id,
  4076. feature.*
  4077. FROM
  4078. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4079. WHERE cvterm.name = 'PAC';
  4080. --- ************************************************
  4081. --- *** relation: plasmid ***
  4082. --- *** relation type: VIEW ***
  4083. --- *** ***
  4084. --- *** A self replicating, using the hosts cell ***
  4085. --- *** ular machinery, often circular nucleic a ***
  4086. --- *** cid molecule that is distinct from a chr ***
  4087. --- *** omosome in the organism. ***
  4088. --- ************************************************
  4089. ---
  4090. CREATE VIEW plasmid AS
  4091. SELECT
  4092. feature_id AS plasmid_id,
  4093. feature.*
  4094. FROM
  4095. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4096. 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';
  4097. --- ************************************************
  4098. --- *** relation: cosmid ***
  4099. --- *** relation type: VIEW ***
  4100. --- *** ***
  4101. --- *** A cloning vector that is a hybrid of lam ***
  4102. --- *** bda phages and a plasmid that can be pro ***
  4103. --- *** pagated as a plasmid or packaged as a ph ***
  4104. --- *** age,since they retain the lambda cos sit ***
  4105. --- *** es. ***
  4106. --- ************************************************
  4107. ---
  4108. CREATE VIEW cosmid AS
  4109. SELECT
  4110. feature_id AS cosmid_id,
  4111. feature.*
  4112. FROM
  4113. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4114. WHERE cvterm.name = 'cosmid';
  4115. --- ************************************************
  4116. --- *** relation: phagemid ***
  4117. --- *** relation type: VIEW ***
  4118. --- *** ***
  4119. --- *** A plasmid which carries within its seque ***
  4120. --- *** nce a bacteriophage replication origin. ***
  4121. --- *** When the host bacterium is infected with ***
  4122. --- *** "helper" phage, a phagemid is replicate ***
  4123. --- *** d along with the phage DNA and packaged ***
  4124. --- *** into phage capsids. ***
  4125. --- ************************************************
  4126. ---
  4127. CREATE VIEW phagemid AS
  4128. SELECT
  4129. feature_id AS phagemid_id,
  4130. feature.*
  4131. FROM
  4132. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4133. WHERE cvterm.name = 'phagemid';
  4134. --- ************************************************
  4135. --- *** relation: fosmid ***
  4136. --- *** relation type: VIEW ***
  4137. --- *** ***
  4138. --- *** A cloning vector that utilises the E. co ***
  4139. --- *** li F factor. ***
  4140. --- ************************************************
  4141. ---
  4142. CREATE VIEW fosmid AS
  4143. SELECT
  4144. feature_id AS fosmid_id,
  4145. feature.*
  4146. FROM
  4147. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4148. WHERE cvterm.name = 'fosmid';
  4149. --- ************************************************
  4150. --- *** relation: deletion ***
  4151. --- *** relation type: VIEW ***
  4152. --- *** ***
  4153. --- *** The point at which a deletion occured. ***
  4154. --- ************************************************
  4155. ---
  4156. CREATE VIEW deletion AS
  4157. SELECT
  4158. feature_id AS deletion_id,
  4159. feature.*
  4160. FROM
  4161. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4162. WHERE cvterm.name = 'deletion';
  4163. --- ************************************************
  4164. --- *** relation: methylated_a ***
  4165. --- *** relation type: VIEW ***
  4166. --- *** ***
  4167. --- *** A modified RNA base in which adenine has ***
  4168. --- *** been methylated. ***
  4169. --- ************************************************
  4170. ---
  4171. CREATE VIEW methylated_a AS
  4172. SELECT
  4173. feature_id AS methylated_a_id,
  4174. feature.*
  4175. FROM
  4176. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4177. WHERE cvterm.name = 'methylated_A';
  4178. --- ************************************************
  4179. --- *** relation: splice_site ***
  4180. --- *** relation type: VIEW ***
  4181. --- *** ***
  4182. --- *** Consensus region of primary transcript b ***
  4183. --- *** ordering junction of splicing. A region ***
  4184. --- *** that overlaps exactly 2 base and adjacen ***
  4185. --- *** t_to splice_junction. ***
  4186. --- ************************************************
  4187. ---
  4188. CREATE VIEW splice_site AS
  4189. SELECT
  4190. feature_id AS splice_site_id,
  4191. feature.*
  4192. FROM
  4193. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4194. 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';
  4195. --- ************************************************
  4196. --- *** relation: five_prime_cis_splice_site ***
  4197. --- *** relation type: VIEW ***
  4198. --- *** ***
  4199. --- *** Intronic 2 bp region bordering the exon, ***
  4200. --- *** at the 5' edge of the intron. A splice_ ***
  4201. --- *** site that is downstream_adjacent_to exon ***
  4202. --- *** and starts intron. ***
  4203. --- ************************************************
  4204. ---
  4205. CREATE VIEW five_prime_cis_splice_site AS
  4206. SELECT
  4207. feature_id AS five_prime_cis_splice_site_id,
  4208. feature.*
  4209. FROM
  4210. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4211. 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';
  4212. --- ************************************************
  4213. --- *** relation: three_prime_cis_splice_site ***
  4214. --- *** relation type: VIEW ***
  4215. --- *** ***
  4216. --- *** Intronic 2 bp region bordering the exon, ***
  4217. --- *** at the 3' edge of the intron. A splice_ ***
  4218. --- *** site that is upstream_adjacent_to exon a ***
  4219. --- *** nd finishes intron. ***
  4220. --- ************************************************
  4221. ---
  4222. CREATE VIEW three_prime_cis_splice_site AS
  4223. SELECT
  4224. feature_id AS three_prime_cis_splice_site_id,
  4225. feature.*
  4226. FROM
  4227. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4228. 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';
  4229. --- ************************************************
  4230. --- *** relation: enhancer ***
  4231. --- *** relation type: VIEW ***
  4232. --- *** ***
  4233. --- *** A cis-acting sequence that increases the ***
  4234. --- *** utilization of (some) eukaryotic promot ***
  4235. --- *** ers, and can function in either orientat ***
  4236. --- *** ion and in any location (upstream or dow ***
  4237. --- *** nstream) relative to the promoter. ***
  4238. --- ************************************************
  4239. ---
  4240. CREATE VIEW enhancer AS
  4241. SELECT
  4242. feature_id AS enhancer_id,
  4243. feature.*
  4244. FROM
  4245. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4246. WHERE cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' OR cvterm.name = 'enhancer';
  4247. --- ************************************************
  4248. --- *** relation: enhancer_bound_by_factor ***
  4249. --- *** relation type: VIEW ***
  4250. --- *** ***
  4251. --- *** An enhancer bound by a factor. ***
  4252. --- ************************************************
  4253. ---
  4254. CREATE VIEW enhancer_bound_by_factor AS
  4255. SELECT
  4256. feature_id AS enhancer_bound_by_factor_id,
  4257. feature.*
  4258. FROM
  4259. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4260. WHERE cvterm.name = 'enhancer_bound_by_factor';
  4261. --- ************************************************
  4262. --- *** relation: promoter ***
  4263. --- *** relation type: VIEW ***
  4264. --- *** ***
  4265. --- *** A regulatory_region composed of the TSS( ***
  4266. --- *** s) and binding sites for TF_complexes of ***
  4267. --- *** the basal transcription machinery. ***
  4268. --- ************************************************
  4269. ---
  4270. CREATE VIEW promoter AS
  4271. SELECT
  4272. feature_id AS promoter_id,
  4273. feature.*
  4274. FROM
  4275. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4276. 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';
  4277. --- ************************************************
  4278. --- *** relation: rnapol_i_promoter ***
  4279. --- *** relation type: VIEW ***
  4280. --- *** ***
  4281. --- *** A DNA sequence in eukaryotic DNA to whic ***
  4282. --- *** h RNA polymerase I binds, to begin trans ***
  4283. --- *** cription. ***
  4284. --- ************************************************
  4285. ---
  4286. CREATE VIEW rnapol_i_promoter AS
  4287. SELECT
  4288. feature_id AS rnapol_i_promoter_id,
  4289. feature.*
  4290. FROM
  4291. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4292. WHERE cvterm.name = 'RNApol_I_promoter';
  4293. --- ************************************************
  4294. --- *** relation: rnapol_ii_promoter ***
  4295. --- *** relation type: VIEW ***
  4296. --- *** ***
  4297. --- *** A DNA sequence in eukaryotic DNA to whic ***
  4298. --- *** h RNA polymerase II binds, to begin tran ***
  4299. --- *** scription. ***
  4300. --- ************************************************
  4301. ---
  4302. CREATE VIEW rnapol_ii_promoter AS
  4303. SELECT
  4304. feature_id AS rnapol_ii_promoter_id,
  4305. feature.*
  4306. FROM
  4307. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4308. WHERE cvterm.name = 'RNApol_II_promoter';
  4309. --- ************************************************
  4310. --- *** relation: rnapol_iii_promoter ***
  4311. --- *** relation type: VIEW ***
  4312. --- *** ***
  4313. --- *** A DNA sequence in eukaryotic DNA to whic ***
  4314. --- *** h RNA polymerase III binds, to begin tra ***
  4315. --- *** nscription. ***
  4316. --- ************************************************
  4317. ---
  4318. CREATE VIEW rnapol_iii_promoter AS
  4319. SELECT
  4320. feature_id AS rnapol_iii_promoter_id,
  4321. feature.*
  4322. FROM
  4323. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4324. 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';
  4325. --- ************************************************
  4326. --- *** relation: caat_signal ***
  4327. --- *** relation type: VIEW ***
  4328. --- *** ***
  4329. --- *** Part of a conserved sequence located abo ***
  4330. --- *** ut 75-bp upstream of the start point of ***
  4331. --- *** eukaryotic transcription units which may ***
  4332. --- *** be involved in RNA polymerase binding; ***
  4333. --- *** consensus=GG(C|T)CAATCT. ***
  4334. --- ************************************************
  4335. ---
  4336. CREATE VIEW caat_signal AS
  4337. SELECT
  4338. feature_id AS caat_signal_id,
  4339. feature.*
  4340. FROM
  4341. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4342. WHERE cvterm.name = 'CAAT_signal';
  4343. --- ************************************************
  4344. --- *** relation: gc_rich_promoter_region ***
  4345. --- *** relation type: VIEW ***
  4346. --- *** ***
  4347. --- *** A conserved GC-rich region located upstr ***
  4348. --- *** eam of the start point of eukaryotic tra ***
  4349. --- *** nscription units which may occur in mult ***
  4350. --- *** iple copies or in either orientation; co ***
  4351. --- *** nsensus=GGGCGG. ***
  4352. --- ************************************************
  4353. ---
  4354. CREATE VIEW gc_rich_promoter_region AS
  4355. SELECT
  4356. feature_id AS gc_rich_promoter_region_id,
  4357. feature.*
  4358. FROM
  4359. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4360. WHERE cvterm.name = 'GC_rich_promoter_region';
  4361. --- ************************************************
  4362. --- *** relation: tata_box ***
  4363. --- *** relation type: VIEW ***
  4364. --- *** ***
  4365. --- *** A conserved AT-rich septamer found about ***
  4366. --- *** 25-bp before the start point of many eu ***
  4367. --- *** karyotic RNA polymerase II transcript un ***
  4368. --- *** its; may be involved in positioning the ***
  4369. --- *** enzyme for correct initiation; consensus ***
  4370. --- *** =TATA(A|T)A(A|T). ***
  4371. --- ************************************************
  4372. ---
  4373. CREATE VIEW tata_box AS
  4374. SELECT
  4375. feature_id AS tata_box_id,
  4376. feature.*
  4377. FROM
  4378. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4379. WHERE cvterm.name = 'TATA_box';
  4380. --- ************************************************
  4381. --- *** relation: minus_10_signal ***
  4382. --- *** relation type: VIEW ***
  4383. --- *** ***
  4384. --- *** A conserved region about 10-bp upstream ***
  4385. --- *** of the start point of bacterial transcri ***
  4386. --- *** ption units which may be involved in bin ***
  4387. --- *** ding RNA polymerase; consensus=TAtAaT. ***
  4388. --- ************************************************
  4389. ---
  4390. CREATE VIEW minus_10_signal AS
  4391. SELECT
  4392. feature_id AS minus_10_signal_id,
  4393. feature.*
  4394. FROM
  4395. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4396. WHERE cvterm.name = 'minus_10_signal';
  4397. --- ************************************************
  4398. --- *** relation: minus_35_signal ***
  4399. --- *** relation type: VIEW ***
  4400. --- *** ***
  4401. --- *** A conserved hexamer about 35-bp upstream ***
  4402. --- *** of the start point of bacterial transcr ***
  4403. --- *** iption units; consensus=TTGACa or TGTTGA ***
  4404. --- *** CA. ***
  4405. --- ************************************************
  4406. ---
  4407. CREATE VIEW minus_35_signal AS
  4408. SELECT
  4409. feature_id AS minus_35_signal_id,
  4410. feature.*
  4411. FROM
  4412. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4413. WHERE cvterm.name = 'minus_35_signal';
  4414. --- ************************************************
  4415. --- *** relation: cross_genome_match ***
  4416. --- *** relation type: VIEW ***
  4417. --- *** ***
  4418. --- *** A nucleotide match against a sequence fr ***
  4419. --- *** om another organism. ***
  4420. --- ************************************************
  4421. ---
  4422. CREATE VIEW cross_genome_match AS
  4423. SELECT
  4424. feature_id AS cross_genome_match_id,
  4425. feature.*
  4426. FROM
  4427. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4428. WHERE cvterm.name = 'cross_genome_match';
  4429. --- ************************************************
  4430. --- *** relation: operon ***
  4431. --- *** relation type: VIEW ***
  4432. --- *** ***
  4433. --- *** A group of contiguous genes transcribed ***
  4434. --- *** as a single (polycistronic) mRNA from a ***
  4435. --- *** single regulatory region. ***
  4436. --- ************************************************
  4437. ---
  4438. CREATE VIEW operon AS
  4439. SELECT
  4440. feature_id AS operon_id,
  4441. feature.*
  4442. FROM
  4443. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4444. WHERE cvterm.name = 'operon';
  4445. --- ************************************************
  4446. --- *** relation: clone_insert_start ***
  4447. --- *** relation type: VIEW ***
  4448. --- *** ***
  4449. --- *** The start of the clone insert. ***
  4450. --- ************************************************
  4451. ---
  4452. CREATE VIEW clone_insert_start AS
  4453. SELECT
  4454. feature_id AS clone_insert_start_id,
  4455. feature.*
  4456. FROM
  4457. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4458. WHERE cvterm.name = 'clone_insert_start';
  4459. --- ************************************************
  4460. --- *** relation: retrotransposon ***
  4461. --- *** relation type: VIEW ***
  4462. --- *** ***
  4463. --- *** A transposable element that is incorpora ***
  4464. --- *** ted into a chromosome by a mechanism tha ***
  4465. --- *** t requires reverse transcriptase. ***
  4466. --- ************************************************
  4467. ---
  4468. CREATE VIEW retrotransposon AS
  4469. SELECT
  4470. feature_id AS retrotransposon_id,
  4471. feature.*
  4472. FROM
  4473. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4474. 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';
  4475. --- ************************************************
  4476. --- *** relation: translated_nucleotide_match ***
  4477. --- *** relation type: VIEW ***
  4478. --- *** ***
  4479. --- *** A match against a translated sequence. ***
  4480. --- ************************************************
  4481. ---
  4482. CREATE VIEW translated_nucleotide_match AS
  4483. SELECT
  4484. feature_id AS translated_nucleotide_match_id,
  4485. feature.*
  4486. FROM
  4487. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4488. WHERE cvterm.name = 'translated_nucleotide_match';
  4489. --- ************************************************
  4490. --- *** relation: dna_transposon ***
  4491. --- *** relation type: VIEW ***
  4492. --- *** ***
  4493. --- *** A transposon where the mechanism of tran ***
  4494. --- *** sposition is via a DNA intermediate. ***
  4495. --- ************************************************
  4496. ---
  4497. CREATE VIEW dna_transposon AS
  4498. SELECT
  4499. feature_id AS dna_transposon_id,
  4500. feature.*
  4501. FROM
  4502. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4503. 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';
  4504. --- ************************************************
  4505. --- *** relation: non_transcribed_region ***
  4506. --- *** relation type: VIEW ***
  4507. --- *** ***
  4508. --- *** A region of the gene which is not transc ***
  4509. --- *** ribed. ***
  4510. --- ************************************************
  4511. ---
  4512. CREATE VIEW non_transcribed_region AS
  4513. SELECT
  4514. feature_id AS non_transcribed_region_id,
  4515. feature.*
  4516. FROM
  4517. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4518. WHERE cvterm.name = 'non_transcribed_region';
  4519. --- ************************************************
  4520. --- *** relation: u2_intron ***
  4521. --- *** relation type: VIEW ***
  4522. --- *** ***
  4523. --- *** A major type of spliceosomal intron spli ***
  4524. --- *** ced by the U2 spliceosome, that includes ***
  4525. --- *** U1, U2, U4/U6 and U5 snRNAs. ***
  4526. --- ************************************************
  4527. ---
  4528. CREATE VIEW u2_intron AS
  4529. SELECT
  4530. feature_id AS u2_intron_id,
  4531. feature.*
  4532. FROM
  4533. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4534. WHERE cvterm.name = 'U2_intron';
  4535. --- ************************************************
  4536. --- *** relation: primary_transcript ***
  4537. --- *** relation type: VIEW ***
  4538. --- *** ***
  4539. --- *** A transcript that in its initial state r ***
  4540. --- *** equires modification to be functional. ***
  4541. --- ************************************************
  4542. ---
  4543. CREATE VIEW primary_transcript AS
  4544. SELECT
  4545. feature_id AS primary_transcript_id,
  4546. feature.*
  4547. FROM
  4548. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4549. 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';
  4550. --- ************************************************
  4551. --- *** relation: ltr_retrotransposon ***
  4552. --- *** relation type: VIEW ***
  4553. --- *** ***
  4554. --- *** A retrotransposon flanked by long termin ***
  4555. --- *** al repeat sequences. ***
  4556. --- ************************************************
  4557. ---
  4558. CREATE VIEW ltr_retrotransposon AS
  4559. SELECT
  4560. feature_id AS ltr_retrotransposon_id,
  4561. feature.*
  4562. FROM
  4563. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4564. WHERE cvterm.name = 'RR_tract' OR cvterm.name = 'LTR_retrotransposon';
  4565. --- ************************************************
  4566. --- *** relation: intron ***
  4567. --- *** relation type: VIEW ***
  4568. --- *** ***
  4569. --- *** A segment of DNA that is transcribed, bu ***
  4570. --- *** t removed from within the transcript by ***
  4571. --- *** splicing together the sequences (exons) ***
  4572. --- *** on either side of it. ***
  4573. --- ************************************************
  4574. ---
  4575. CREATE VIEW intron AS
  4576. SELECT
  4577. feature_id AS intron_id,
  4578. feature.*
  4579. FROM
  4580. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4581. 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';
  4582. --- ************************************************
  4583. --- *** relation: non_ltr_retrotransposon ***
  4584. --- *** relation type: VIEW ***
  4585. --- *** ***
  4586. --- *** A retrotransposon without long terminal ***
  4587. --- *** repeat sequences. ***
  4588. --- ************************************************
  4589. ---
  4590. CREATE VIEW non_ltr_retrotransposon AS
  4591. SELECT
  4592. feature_id AS non_ltr_retrotransposon_id,
  4593. feature.*
  4594. FROM
  4595. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4596. WHERE cvterm.name = 'LINE_element' OR cvterm.name = 'SINE_element' OR cvterm.name = 'non_LTR_retrotransposon';
  4597. --- ************************************************
  4598. --- *** relation: five_prime_intron ***
  4599. --- *** relation type: VIEW ***
  4600. --- *** ***
  4601. --- ************************************************
  4602. ---
  4603. CREATE VIEW five_prime_intron AS
  4604. SELECT
  4605. feature_id AS five_prime_intron_id,
  4606. feature.*
  4607. FROM
  4608. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4609. WHERE cvterm.name = 'five_prime_intron';
  4610. --- ************************************************
  4611. --- *** relation: interior_intron ***
  4612. --- *** relation type: VIEW ***
  4613. --- *** ***
  4614. --- ************************************************
  4615. ---
  4616. CREATE VIEW interior_intron AS
  4617. SELECT
  4618. feature_id AS interior_intron_id,
  4619. feature.*
  4620. FROM
  4621. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4622. WHERE cvterm.name = 'interior_intron';
  4623. --- ************************************************
  4624. --- *** relation: three_prime_intron ***
  4625. --- *** relation type: VIEW ***
  4626. --- *** ***
  4627. --- ************************************************
  4628. ---
  4629. CREATE VIEW three_prime_intron AS
  4630. SELECT
  4631. feature_id AS three_prime_intron_id,
  4632. feature.*
  4633. FROM
  4634. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4635. WHERE cvterm.name = 'three_prime_intron';
  4636. --- ************************************************
  4637. --- *** relation: rflp_fragment ***
  4638. --- *** relation type: VIEW ***
  4639. --- *** ***
  4640. --- *** A DNA fragment used as a reagent to dete ***
  4641. --- *** ct the polymorphic genomic loci by hybri ***
  4642. --- *** dizing against the genomic DNA digested ***
  4643. --- *** with a given restriction enzyme. ***
  4644. --- ************************************************
  4645. ---
  4646. CREATE VIEW rflp_fragment AS
  4647. SELECT
  4648. feature_id AS rflp_fragment_id,
  4649. feature.*
  4650. FROM
  4651. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4652. WHERE cvterm.name = 'RFLP_fragment';
  4653. --- ************************************************
  4654. --- *** relation: line_element ***
  4655. --- *** relation type: VIEW ***
  4656. --- *** ***
  4657. --- *** A dispersed repeat family with many copi ***
  4658. --- *** es, each from 1 to 6 kb long. New elemen ***
  4659. --- *** ts are generated by retroposition of a t ***
  4660. --- *** ranscribed copy. Typically the LINE cont ***
  4661. --- *** ains 2 ORF's one of which is reverse tra ***
  4662. --- *** nscriptase, and 3'and 5' direct repeats. ***
  4663. --- ************************************************
  4664. ---
  4665. CREATE VIEW line_element AS
  4666. SELECT
  4667. feature_id AS line_element_id,
  4668. feature.*
  4669. FROM
  4670. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4671. WHERE cvterm.name = 'LINE_element';
  4672. --- ************************************************
  4673. --- *** relation: coding_exon ***
  4674. --- *** relation type: VIEW ***
  4675. --- *** ***
  4676. --- *** An exon whereby at least one base is par ***
  4677. --- *** t of a codon (here, 'codon'nis inclusive ***
  4678. --- *** of the stop_codon). ***
  4679. --- ************************************************
  4680. ---
  4681. CREATE VIEW coding_exon AS
  4682. SELECT
  4683. feature_id AS coding_exon_id,
  4684. feature.*
  4685. FROM
  4686. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4687. 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';
  4688. --- ************************************************
  4689. --- *** relation: five_prime_coding_exon_coding_region ***
  4690. --- *** relation type: VIEW ***
  4691. --- *** ***
  4692. --- *** The sequence of the five_prime_coding_ex ***
  4693. --- *** on that codes for protein. ***
  4694. --- ************************************************
  4695. ---
  4696. CREATE VIEW five_prime_coding_exon_coding_region AS
  4697. SELECT
  4698. feature_id AS five_prime_coding_exon_coding_region_id,
  4699. feature.*
  4700. FROM
  4701. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4702. WHERE cvterm.name = 'five_prime_coding_exon_coding_region';
  4703. --- ************************************************
  4704. --- *** relation: three_prime_coding_exon_coding_region ***
  4705. --- *** relation type: VIEW ***
  4706. --- *** ***
  4707. --- *** The sequence of the three_prime_coding_e ***
  4708. --- *** xon that codes for protein. ***
  4709. --- ************************************************
  4710. ---
  4711. CREATE VIEW three_prime_coding_exon_coding_region AS
  4712. SELECT
  4713. feature_id AS three_prime_coding_exon_coding_region_id,
  4714. feature.*
  4715. FROM
  4716. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4717. WHERE cvterm.name = 'three_prime_coding exon_coding_region';
  4718. --- ************************************************
  4719. --- *** relation: noncoding_exon ***
  4720. --- *** relation type: VIEW ***
  4721. --- *** ***
  4722. --- *** An exon that does not contain any codons ***
  4723. --- *** . ***
  4724. --- ************************************************
  4725. ---
  4726. CREATE VIEW noncoding_exon AS
  4727. SELECT
  4728. feature_id AS noncoding_exon_id,
  4729. feature.*
  4730. FROM
  4731. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4732. WHERE cvterm.name = 'three_prime_noncoding_exon' OR cvterm.name = 'five_prime_noncoding_exon' OR cvterm.name = 'noncoding_exon';
  4733. --- ************************************************
  4734. --- *** relation: translocation ***
  4735. --- *** relation type: VIEW ***
  4736. --- *** ***
  4737. --- *** A region of nucleotide sequence that has ***
  4738. --- *** translocated to a new position. ***
  4739. --- ************************************************
  4740. ---
  4741. CREATE VIEW translocation AS
  4742. SELECT
  4743. feature_id AS translocation_id,
  4744. feature.*
  4745. FROM
  4746. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4747. WHERE cvterm.name = 'translocation';
  4748. --- ************************************************
  4749. --- *** relation: five_prime_coding_exon ***
  4750. --- *** relation type: VIEW ***
  4751. --- *** ***
  4752. --- *** The 5' most coding exon. ***
  4753. --- ************************************************
  4754. ---
  4755. CREATE VIEW five_prime_coding_exon AS
  4756. SELECT
  4757. feature_id AS five_prime_coding_exon_id,
  4758. feature.*
  4759. FROM
  4760. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4761. WHERE cvterm.name = 'five_prime_coding_exon';
  4762. --- ************************************************
  4763. --- *** relation: interior_exon ***
  4764. --- *** relation type: VIEW ***
  4765. --- *** ***
  4766. --- *** An exon that is bounded by 5' and 3' spl ***
  4767. --- *** ice sites. ***
  4768. --- ************************************************
  4769. ---
  4770. CREATE VIEW interior_exon AS
  4771. SELECT
  4772. feature_id AS interior_exon_id,
  4773. feature.*
  4774. FROM
  4775. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4776. WHERE cvterm.name = 'interior_exon';
  4777. --- ************************************************
  4778. --- *** relation: three_prime_coding_exon ***
  4779. --- *** relation type: VIEW ***
  4780. --- *** ***
  4781. --- *** The coding exon that is most 3-prime on ***
  4782. --- *** a given transcript. ***
  4783. --- ************************************************
  4784. ---
  4785. CREATE VIEW three_prime_coding_exon AS
  4786. SELECT
  4787. feature_id AS three_prime_coding_exon_id,
  4788. feature.*
  4789. FROM
  4790. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4791. WHERE cvterm.name = 'three_prime_coding_exon';
  4792. --- ************************************************
  4793. --- *** relation: utr ***
  4794. --- *** relation type: VIEW ***
  4795. --- *** ***
  4796. --- *** Messenger RNA sequences that are untrans ***
  4797. --- *** lated and lie five prime or three prime ***
  4798. --- *** to sequences which are translated. ***
  4799. --- ************************************************
  4800. ---
  4801. CREATE VIEW utr AS
  4802. SELECT
  4803. feature_id AS utr_id,
  4804. feature.*
  4805. FROM
  4806. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4807. 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';
  4808. --- ************************************************
  4809. --- *** relation: five_prime_utr ***
  4810. --- *** relation type: VIEW ***
  4811. --- *** ***
  4812. --- *** A region at the 5' end of a mature trans ***
  4813. --- *** cript (preceding the initiation codon) t ***
  4814. --- *** hat is not translated into a protein. ***
  4815. --- ************************************************
  4816. ---
  4817. CREATE VIEW five_prime_utr AS
  4818. SELECT
  4819. feature_id AS five_prime_utr_id,
  4820. feature.*
  4821. FROM
  4822. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4823. WHERE cvterm.name = 'five_prime_UTR';
  4824. --- ************************************************
  4825. --- *** relation: three_prime_utr ***
  4826. --- *** relation type: VIEW ***
  4827. --- *** ***
  4828. --- *** A region at the 3' end of a mature trans ***
  4829. --- *** cript (following the stop codon) that is ***
  4830. --- *** not translated into a protein. ***
  4831. --- ************************************************
  4832. ---
  4833. CREATE VIEW three_prime_utr AS
  4834. SELECT
  4835. feature_id AS three_prime_utr_id,
  4836. feature.*
  4837. FROM
  4838. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4839. WHERE cvterm.name = 'three_prime_UTR';
  4840. --- ************************************************
  4841. --- *** relation: sine_element ***
  4842. --- *** relation type: VIEW ***
  4843. --- *** ***
  4844. --- *** A repetitive element, a few hundred base ***
  4845. --- *** pairs long, that is dispersed throughou ***
  4846. --- *** t the genome. A common human SINE is the ***
  4847. --- *** Alu element. ***
  4848. --- ************************************************
  4849. ---
  4850. CREATE VIEW sine_element AS
  4851. SELECT
  4852. feature_id AS sine_element_id,
  4853. feature.*
  4854. FROM
  4855. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4856. WHERE cvterm.name = 'SINE_element';
  4857. --- ************************************************
  4858. --- *** relation: simple_sequence_length_variation ***
  4859. --- *** relation type: VIEW ***
  4860. --- *** ***
  4861. --- ************************************************
  4862. ---
  4863. CREATE VIEW simple_sequence_length_variation AS
  4864. SELECT
  4865. feature_id AS simple_sequence_length_variation_id,
  4866. feature.*
  4867. FROM
  4868. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4869. WHERE cvterm.name = 'simple_sequence_length_variation';
  4870. --- ************************************************
  4871. --- *** relation: terminal_inverted_repeat_element ***
  4872. --- *** relation type: VIEW ***
  4873. --- *** ***
  4874. --- *** A DNA transposable element defined as ha ***
  4875. --- *** ving termini with perfect, or nearly per ***
  4876. --- *** fect short inverted repeats, generally 1 ***
  4877. --- *** 0 - 40 nucleotides long. ***
  4878. --- ************************************************
  4879. ---
  4880. CREATE VIEW terminal_inverted_repeat_element AS
  4881. SELECT
  4882. feature_id AS terminal_inverted_repeat_element_id,
  4883. feature.*
  4884. FROM
  4885. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4886. WHERE cvterm.name = 'MITE' OR cvterm.name = 'insertion_sequence' OR cvterm.name = 'polinton' OR cvterm.name = 'terminal_inverted_repeat_element';
  4887. --- ************************************************
  4888. --- *** relation: rrna_primary_transcript ***
  4889. --- *** relation type: VIEW ***
  4890. --- *** ***
  4891. --- *** A primary transcript encoding a ribosoma ***
  4892. --- *** l RNA. ***
  4893. --- ************************************************
  4894. ---
  4895. CREATE VIEW rrna_primary_transcript AS
  4896. SELECT
  4897. feature_id AS rrna_primary_transcript_id,
  4898. feature.*
  4899. FROM
  4900. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4901. WHERE cvterm.name = 'rRNA_small_subunit_primary_transcript' OR cvterm.name = 'rRNA_large_subunit_primary_transcript' OR cvterm.name = 'rRNA_primary_transcript';
  4902. --- ************************************************
  4903. --- *** relation: trna_primary_transcript ***
  4904. --- *** relation type: VIEW ***
  4905. --- *** ***
  4906. --- *** A primary transcript encoding a transfer ***
  4907. --- *** RNA (SO:0000253). ***
  4908. --- ************************************************
  4909. ---
  4910. CREATE VIEW trna_primary_transcript AS
  4911. SELECT
  4912. feature_id AS trna_primary_transcript_id,
  4913. feature.*
  4914. FROM
  4915. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4916. 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';
  4917. --- ************************************************
  4918. --- *** relation: alanine_trna_primary_transcript ***
  4919. --- *** relation type: VIEW ***
  4920. --- *** ***
  4921. --- *** A primary transcript encoding alanyl tRN ***
  4922. --- *** A. ***
  4923. --- ************************************************
  4924. ---
  4925. CREATE VIEW alanine_trna_primary_transcript AS
  4926. SELECT
  4927. feature_id AS alanine_trna_primary_transcript_id,
  4928. feature.*
  4929. FROM
  4930. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4931. WHERE cvterm.name = 'alanine_tRNA_primary_transcript';
  4932. --- ************************************************
  4933. --- *** relation: arg_trna_primary_transcript ***
  4934. --- *** relation type: VIEW ***
  4935. --- *** ***
  4936. --- *** A primary transcript encoding arginyl tR ***
  4937. --- *** NA (SO:0000255). ***
  4938. --- ************************************************
  4939. ---
  4940. CREATE VIEW arg_trna_primary_transcript AS
  4941. SELECT
  4942. feature_id AS arg_trna_primary_transcript_id,
  4943. feature.*
  4944. FROM
  4945. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4946. WHERE cvterm.name = 'arginine_tRNA_primary_transcript';
  4947. --- ************************************************
  4948. --- *** relation: asparagine_trna_primary_transcript ***
  4949. --- *** relation type: VIEW ***
  4950. --- *** ***
  4951. --- *** A primary transcript encoding asparaginy ***
  4952. --- *** l tRNA (SO:0000256). ***
  4953. --- ************************************************
  4954. ---
  4955. CREATE VIEW asparagine_trna_primary_transcript AS
  4956. SELECT
  4957. feature_id AS asparagine_trna_primary_transcript_id,
  4958. feature.*
  4959. FROM
  4960. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4961. WHERE cvterm.name = 'asparagine_tRNA_primary_transcript';
  4962. --- ************************************************
  4963. --- *** relation: aspartic_acid_trna_primary_transcript ***
  4964. --- *** relation type: VIEW ***
  4965. --- *** ***
  4966. --- *** A primary transcript encoding aspartyl t ***
  4967. --- *** RNA (SO:0000257). ***
  4968. --- ************************************************
  4969. ---
  4970. CREATE VIEW aspartic_acid_trna_primary_transcript AS
  4971. SELECT
  4972. feature_id AS aspartic_acid_trna_primary_transcript_id,
  4973. feature.*
  4974. FROM
  4975. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4976. WHERE cvterm.name = 'aspartic_acid_tRNA_primary_transcript';
  4977. --- ************************************************
  4978. --- *** relation: cysteine_trna_primary_transcript ***
  4979. --- *** relation type: VIEW ***
  4980. --- *** ***
  4981. --- *** A primary transcript encoding cysteinyl ***
  4982. --- *** tRNA (SO:0000258). ***
  4983. --- ************************************************
  4984. ---
  4985. CREATE VIEW cysteine_trna_primary_transcript AS
  4986. SELECT
  4987. feature_id AS cysteine_trna_primary_transcript_id,
  4988. feature.*
  4989. FROM
  4990. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4991. WHERE cvterm.name = 'cysteine_tRNA_primary_transcript';
  4992. --- ************************************************
  4993. --- *** relation: glutamic_acid_trna_primary_transcript ***
  4994. --- *** relation type: VIEW ***
  4995. --- *** ***
  4996. --- *** A primary transcript encoding glutaminyl ***
  4997. --- *** tRNA (SO:0000260). ***
  4998. --- ************************************************
  4999. ---
  5000. CREATE VIEW glutamic_acid_trna_primary_transcript AS
  5001. SELECT
  5002. feature_id AS glutamic_acid_trna_primary_transcript_id,
  5003. feature.*
  5004. FROM
  5005. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5006. WHERE cvterm.name = 'glutamic_acid_tRNA_primary_transcript';
  5007. --- ************************************************
  5008. --- *** relation: glutamine_trna_primary_transcript ***
  5009. --- *** relation type: VIEW ***
  5010. --- *** ***
  5011. --- *** A primary transcript encoding glutamyl t ***
  5012. --- *** RNA (SO:0000260). ***
  5013. --- ************************************************
  5014. ---
  5015. CREATE VIEW glutamine_trna_primary_transcript AS
  5016. SELECT
  5017. feature_id AS glutamine_trna_primary_transcript_id,
  5018. feature.*
  5019. FROM
  5020. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5021. WHERE cvterm.name = 'glutamine_tRNA_primary_transcript';
  5022. --- ************************************************
  5023. --- *** relation: glycine_trna_primary_transcript ***
  5024. --- *** relation type: VIEW ***
  5025. --- *** ***
  5026. --- *** A primary transcript encoding glycyl tRN ***
  5027. --- *** A (SO:0000263). ***
  5028. --- ************************************************
  5029. ---
  5030. CREATE VIEW glycine_trna_primary_transcript AS
  5031. SELECT
  5032. feature_id AS glycine_trna_primary_transcript_id,
  5033. feature.*
  5034. FROM
  5035. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5036. WHERE cvterm.name = 'glycine_tRNA_primary_transcript';
  5037. --- ************************************************
  5038. --- *** relation: histidine_trna_primary_transcript ***
  5039. --- *** relation type: VIEW ***
  5040. --- *** ***
  5041. --- *** A primary transcript encoding histidyl t ***
  5042. --- *** RNA (SO:0000262). ***
  5043. --- ************************************************
  5044. ---
  5045. CREATE VIEW histidine_trna_primary_transcript AS
  5046. SELECT
  5047. feature_id AS histidine_trna_primary_transcript_id,
  5048. feature.*
  5049. FROM
  5050. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5051. WHERE cvterm.name = 'histidine_tRNA_primary_transcript';
  5052. --- ************************************************
  5053. --- *** relation: isoleucine_trna_primary_transcript ***
  5054. --- *** relation type: VIEW ***
  5055. --- *** ***
  5056. --- *** A primary transcript encoding isoleucyl ***
  5057. --- *** tRNA (SO:0000263). ***
  5058. --- ************************************************
  5059. ---
  5060. CREATE VIEW isoleucine_trna_primary_transcript AS
  5061. SELECT
  5062. feature_id AS isoleucine_trna_primary_transcript_id,
  5063. feature.*
  5064. FROM
  5065. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5066. WHERE cvterm.name = 'isoleucine_tRNA_primary_transcript';
  5067. --- ************************************************
  5068. --- *** relation: leucine_trna_primary_transcript ***
  5069. --- *** relation type: VIEW ***
  5070. --- *** ***
  5071. --- *** A primary transcript encoding leucyl tRN ***
  5072. --- *** A (SO:0000264). ***
  5073. --- ************************************************
  5074. ---
  5075. CREATE VIEW leucine_trna_primary_transcript AS
  5076. SELECT
  5077. feature_id AS leucine_trna_primary_transcript_id,
  5078. feature.*
  5079. FROM
  5080. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5081. WHERE cvterm.name = 'leucine_tRNA_primary_transcript';
  5082. --- ************************************************
  5083. --- *** relation: lysine_trna_primary_transcript ***
  5084. --- *** relation type: VIEW ***
  5085. --- *** ***
  5086. --- *** A primary transcript encoding lysyl tRNA ***
  5087. --- *** (SO:0000265). ***
  5088. --- ************************************************
  5089. ---
  5090. CREATE VIEW lysine_trna_primary_transcript AS
  5091. SELECT
  5092. feature_id AS lysine_trna_primary_transcript_id,
  5093. feature.*
  5094. FROM
  5095. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5096. WHERE cvterm.name = 'lysine_tRNA_primary_transcript';
  5097. --- ************************************************
  5098. --- *** relation: methionine_trna_primary_transcript ***
  5099. --- *** relation type: VIEW ***
  5100. --- *** ***
  5101. --- *** A primary transcript encoding methionyl ***
  5102. --- *** tRNA (SO:0000266). ***
  5103. --- ************************************************
  5104. ---
  5105. CREATE VIEW methionine_trna_primary_transcript AS
  5106. SELECT
  5107. feature_id AS methionine_trna_primary_transcript_id,
  5108. feature.*
  5109. FROM
  5110. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5111. WHERE cvterm.name = 'methionine_tRNA_primary_transcript';
  5112. --- ************************************************
  5113. --- *** relation: phe_trna_primary_transcript ***
  5114. --- *** relation type: VIEW ***
  5115. --- *** ***
  5116. --- *** A primary transcript encoding phenylalan ***
  5117. --- *** yl tRNA (SO:0000267). ***
  5118. --- ************************************************
  5119. ---
  5120. CREATE VIEW phe_trna_primary_transcript AS
  5121. SELECT
  5122. feature_id AS phe_trna_primary_transcript_id,
  5123. feature.*
  5124. FROM
  5125. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5126. WHERE cvterm.name = 'phenylalanine_tRNA_primary_transcript';
  5127. --- ************************************************
  5128. --- *** relation: proline_trna_primary_transcript ***
  5129. --- *** relation type: VIEW ***
  5130. --- *** ***
  5131. --- *** A primary transcript encoding prolyl tRN ***
  5132. --- *** A (SO:0000268). ***
  5133. --- ************************************************
  5134. ---
  5135. CREATE VIEW proline_trna_primary_transcript AS
  5136. SELECT
  5137. feature_id AS proline_trna_primary_transcript_id,
  5138. feature.*
  5139. FROM
  5140. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5141. WHERE cvterm.name = 'proline_tRNA_primary_transcript';
  5142. --- ************************************************
  5143. --- *** relation: serine_trna_primary_transcript ***
  5144. --- *** relation type: VIEW ***
  5145. --- *** ***
  5146. --- *** A primary transcript encoding seryl tRNA ***
  5147. --- *** (SO:000269). ***
  5148. --- ************************************************
  5149. ---
  5150. CREATE VIEW serine_trna_primary_transcript AS
  5151. SELECT
  5152. feature_id AS serine_trna_primary_transcript_id,
  5153. feature.*
  5154. FROM
  5155. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5156. WHERE cvterm.name = 'serine_tRNA_primary_transcript';
  5157. --- ************************************************
  5158. --- *** relation: thr_trna_primary_transcript ***
  5159. --- *** relation type: VIEW ***
  5160. --- *** ***
  5161. --- *** A primary transcript encoding threonyl t ***
  5162. --- *** RNA (SO:000270). ***
  5163. --- ************************************************
  5164. ---
  5165. CREATE VIEW thr_trna_primary_transcript AS
  5166. SELECT
  5167. feature_id AS thr_trna_primary_transcript_id,
  5168. feature.*
  5169. FROM
  5170. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5171. WHERE cvterm.name = 'threonine_tRNA_primary_transcript';
  5172. --- ************************************************
  5173. --- *** relation: try_trna_primary_transcript ***
  5174. --- *** relation type: VIEW ***
  5175. --- *** ***
  5176. --- *** A primary transcript encoding tryptophan ***
  5177. --- *** yl tRNA (SO:000271). ***
  5178. --- ************************************************
  5179. ---
  5180. CREATE VIEW try_trna_primary_transcript AS
  5181. SELECT
  5182. feature_id AS try_trna_primary_transcript_id,
  5183. feature.*
  5184. FROM
  5185. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5186. WHERE cvterm.name = 'tryptophan_tRNA_primary_transcript';
  5187. --- ************************************************
  5188. --- *** relation: tyrosine_trna_primary_transcript ***
  5189. --- *** relation type: VIEW ***
  5190. --- *** ***
  5191. --- *** A primary transcript encoding tyrosyl tR ***
  5192. --- *** NA (SO:000272). ***
  5193. --- ************************************************
  5194. ---
  5195. CREATE VIEW tyrosine_trna_primary_transcript AS
  5196. SELECT
  5197. feature_id AS tyrosine_trna_primary_transcript_id,
  5198. feature.*
  5199. FROM
  5200. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5201. WHERE cvterm.name = 'tyrosine_tRNA_primary_transcript';
  5202. --- ************************************************
  5203. --- *** relation: valine_trna_primary_transcript ***
  5204. --- *** relation type: VIEW ***
  5205. --- *** ***
  5206. --- *** A primary transcript encoding valyl tRNA ***
  5207. --- *** (SO:000273). ***
  5208. --- ************************************************
  5209. ---
  5210. CREATE VIEW valine_trna_primary_transcript AS
  5211. SELECT
  5212. feature_id AS valine_trna_primary_transcript_id,
  5213. feature.*
  5214. FROM
  5215. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5216. WHERE cvterm.name = 'valine_tRNA_primary_transcript';
  5217. --- ************************************************
  5218. --- *** relation: snrna_primary_transcript ***
  5219. --- *** relation type: VIEW ***
  5220. --- *** ***
  5221. --- *** A primary transcript encoding a small nu ***
  5222. --- *** clear RNA (SO:0000274). ***
  5223. --- ************************************************
  5224. ---
  5225. CREATE VIEW snrna_primary_transcript AS
  5226. SELECT
  5227. feature_id AS snrna_primary_transcript_id,
  5228. feature.*
  5229. FROM
  5230. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5231. WHERE cvterm.name = 'snRNA_primary_transcript';
  5232. --- ************************************************
  5233. --- *** relation: snorna_primary_transcript ***
  5234. --- *** relation type: VIEW ***
  5235. --- *** ***
  5236. --- *** A primary transcript encoding a small nu ***
  5237. --- *** cleolar mRNA (SO:0000275). ***
  5238. --- ************************************************
  5239. ---
  5240. CREATE VIEW snorna_primary_transcript AS
  5241. SELECT
  5242. feature_id AS snorna_primary_transcript_id,
  5243. feature.*
  5244. FROM
  5245. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5246. 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';
  5247. --- ************************************************
  5248. --- *** relation: mature_transcript ***
  5249. --- *** relation type: VIEW ***
  5250. --- *** ***
  5251. --- *** A transcript which has undergone the nec ***
  5252. --- *** essary modifications, if any, for its fu ***
  5253. --- *** nction. In eukaryotes this includes, for ***
  5254. --- *** example, processing of introns, cleavag ***
  5255. --- *** e, base modification, and modifications ***
  5256. --- *** to the 5' and/or the 3' ends, other than ***
  5257. --- *** addition of bases. In bacteria function ***
  5258. --- *** al mRNAs are usually not modified. ***
  5259. --- ************************************************
  5260. ---
  5261. CREATE VIEW mature_transcript AS
  5262. SELECT
  5263. feature_id AS mature_transcript_id,
  5264. feature.*
  5265. FROM
  5266. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5267. 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';
  5268. --- ************************************************
  5269. --- *** relation: mrna ***
  5270. --- *** relation type: VIEW ***
  5271. --- *** ***
  5272. --- *** Messenger RNA is the intermediate molecu ***
  5273. --- *** le between DNA and protein. It includes ***
  5274. --- *** UTR and coding sequences. It does not co ***
  5275. --- *** ntain introns. ***
  5276. --- ************************************************
  5277. ---
  5278. CREATE VIEW mrna AS
  5279. SELECT
  5280. feature_id AS mrna_id,
  5281. feature.*
  5282. FROM
  5283. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5284. 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';
  5285. --- ************************************************
  5286. --- *** relation: tf_binding_site ***
  5287. --- *** relation type: VIEW ***
  5288. --- *** ***
  5289. --- *** A region of a molecule that binds a TF c ***
  5290. --- *** omplex [GO:0005667]. ***
  5291. --- ************************************************
  5292. ---
  5293. CREATE VIEW tf_binding_site AS
  5294. SELECT
  5295. feature_id AS tf_binding_site_id,
  5296. feature.*
  5297. FROM
  5298. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5299. 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';
  5300. --- ************************************************
  5301. --- *** relation: orf ***
  5302. --- *** relation type: VIEW ***
  5303. --- *** ***
  5304. --- *** The inframe interval between the stop co ***
  5305. --- *** dons of a reading frame which when read ***
  5306. --- *** as sequential triplets, has the potentia ***
  5307. --- *** l of encoding a sequential string of ami ***
  5308. --- *** no acids. TER(NNN)nTER. ***
  5309. --- ************************************************
  5310. ---
  5311. CREATE VIEW orf AS
  5312. SELECT
  5313. feature_id AS orf_id,
  5314. feature.*
  5315. FROM
  5316. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5317. WHERE cvterm.name = 'mini_gene' OR cvterm.name = 'rescue_mini_gene' OR cvterm.name = 'ORF';
  5318. --- ************************************************
  5319. --- *** relation: transcript_attribute ***
  5320. --- *** relation type: VIEW ***
  5321. --- *** ***
  5322. --- ************************************************
  5323. ---
  5324. CREATE VIEW transcript_attribute AS
  5325. SELECT
  5326. feature_id AS transcript_attribute_id,
  5327. feature.*
  5328. FROM
  5329. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5330. 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';
  5331. --- ************************************************
  5332. --- *** relation: foldback_element ***
  5333. --- *** relation type: VIEW ***
  5334. --- *** ***
  5335. --- *** A transposable element with extensive se ***
  5336. --- *** condary structure, characterised by larg ***
  5337. --- *** e modular imperfect long inverted repeat ***
  5338. --- *** s. ***
  5339. --- ************************************************
  5340. ---
  5341. CREATE VIEW foldback_element AS
  5342. SELECT
  5343. feature_id AS foldback_element_id,
  5344. feature.*
  5345. FROM
  5346. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5347. WHERE cvterm.name = 'foldback_element';
  5348. --- ************************************************
  5349. --- *** relation: flanking_region ***
  5350. --- *** relation type: VIEW ***
  5351. --- *** ***
  5352. --- *** The sequences extending on either side o ***
  5353. --- *** f a specific region. ***
  5354. --- ************************************************
  5355. ---
  5356. CREATE VIEW flanking_region AS
  5357. SELECT
  5358. feature_id AS flanking_region_id,
  5359. feature.*
  5360. FROM
  5361. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5362. 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';
  5363. --- ************************************************
  5364. --- *** relation: chromosome_variation ***
  5365. --- *** relation type: VIEW ***
  5366. --- *** ***
  5367. --- ************************************************
  5368. ---
  5369. CREATE VIEW chromosome_variation AS
  5370. SELECT
  5371. feature_id AS chromosome_variation_id,
  5372. feature.*
  5373. FROM
  5374. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5375. 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';
  5376. --- ************************************************
  5377. --- *** relation: internal_utr ***
  5378. --- *** relation type: VIEW ***
  5379. --- *** ***
  5380. --- *** A UTR bordered by the terminal and initi ***
  5381. --- *** al codons of two CDSs in a polycistronic ***
  5382. --- *** transcript. Every UTR is either 5', 3' ***
  5383. --- *** or internal. ***
  5384. --- ************************************************
  5385. ---
  5386. CREATE VIEW internal_utr AS
  5387. SELECT
  5388. feature_id AS internal_utr_id,
  5389. feature.*
  5390. FROM
  5391. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5392. WHERE cvterm.name = 'internal_UTR';
  5393. --- ************************************************
  5394. --- *** relation: untranslated_region_polycistronic_mrna ***
  5395. --- *** relation type: VIEW ***
  5396. --- *** ***
  5397. --- *** The untranslated sequence separating the ***
  5398. --- *** 'cistrons' of multicistronic mRNA. ***
  5399. --- ************************************************
  5400. ---
  5401. CREATE VIEW untranslated_region_polycistronic_mrna AS
  5402. SELECT
  5403. feature_id AS untranslated_region_polycistronic_mrna_id,
  5404. feature.*
  5405. FROM
  5406. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5407. WHERE cvterm.name = 'untranslated_region_polycistronic_mRNA';
  5408. --- ************************************************
  5409. --- *** relation: internal_ribosome_entry_site ***
  5410. --- *** relation type: VIEW ***
  5411. --- *** ***
  5412. --- *** Sequence element that recruits a ribosom ***
  5413. --- *** al subunit to internal mRNA for translat ***
  5414. --- *** ion initiation. ***
  5415. --- ************************************************
  5416. ---
  5417. CREATE VIEW internal_ribosome_entry_site AS
  5418. SELECT
  5419. feature_id AS internal_ribosome_entry_site_id,
  5420. feature.*
  5421. FROM
  5422. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5423. WHERE cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'internal_ribosome_entry_site';
  5424. --- ************************************************
  5425. --- *** relation: polyadenylated ***
  5426. --- *** relation type: VIEW ***
  5427. --- *** ***
  5428. --- *** A attribute describing the addition of a ***
  5429. --- *** poly A tail to the 3' end of a mRNA mol ***
  5430. --- *** ecule. ***
  5431. --- ************************************************
  5432. ---
  5433. CREATE VIEW polyadenylated AS
  5434. SELECT
  5435. feature_id AS polyadenylated_id,
  5436. feature.*
  5437. FROM
  5438. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5439. WHERE cvterm.name = 'polyadenylated';
  5440. --- ************************************************
  5441. --- *** relation: sequence_length_variation ***
  5442. --- *** relation type: VIEW ***
  5443. --- *** ***
  5444. --- ************************************************
  5445. ---
  5446. CREATE VIEW sequence_length_variation AS
  5447. SELECT
  5448. feature_id AS sequence_length_variation_id,
  5449. feature.*
  5450. FROM
  5451. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5452. WHERE cvterm.name = 'simple_sequence_length_variation' OR cvterm.name = 'sequence_length_variation';
  5453. --- ************************************************
  5454. --- *** relation: modified_rna_base_feature ***
  5455. --- *** relation type: VIEW ***
  5456. --- *** ***
  5457. --- *** A post_transcriptionally modified base. ***
  5458. --- ************************************************
  5459. ---
  5460. CREATE VIEW modified_rna_base_feature AS
  5461. SELECT
  5462. feature_id AS modified_rna_base_feature_id,
  5463. feature.*
  5464. FROM
  5465. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5466. 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';
  5467. --- ************************************************
  5468. --- *** relation: rrna ***
  5469. --- *** relation type: VIEW ***
  5470. --- *** ***
  5471. --- *** RNA that comprises part of a ribosome, a ***
  5472. --- *** nd that can provide both structural scaf ***
  5473. --- *** folding and catalytic activity. ***
  5474. --- ************************************************
  5475. ---
  5476. CREATE VIEW rrna AS
  5477. SELECT
  5478. feature_id AS rrna_id,
  5479. feature.*
  5480. FROM
  5481. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5482. 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';
  5483. --- ************************************************
  5484. --- *** relation: trna ***
  5485. --- *** relation type: VIEW ***
  5486. --- *** ***
  5487. --- *** Transfer RNA (tRNA) molecules are approx ***
  5488. --- *** imately 80 nucleotides in length. Their ***
  5489. --- *** secondary structure includes four short ***
  5490. --- *** double-helical elements and three loops ***
  5491. --- *** (D, anti-codon, and T loops). Further hy ***
  5492. --- *** drogen bonds mediate the characteristic ***
  5493. --- *** L-shaped molecular structure. Transfer R ***
  5494. --- *** NAs have two regions of fundamental func ***
  5495. --- *** tional importance: the anti-codon, which ***
  5496. --- *** is responsible for specific mRNA codon ***
  5497. --- *** recognition, and the 3' end, to which th ***
  5498. --- *** e tRNA's corresponding amino acid is att ***
  5499. --- *** ached (by aminoacyl-tRNA synthetases). T ***
  5500. --- *** ransfer RNAs cope with the degeneracy of ***
  5501. --- *** the genetic code in two manners: having ***
  5502. --- *** more than one tRNA (with a specific ant ***
  5503. --- *** i-codon) for a particular amino acid; an ***
  5504. --- *** d 'wobble' base-pairing, i.e. permitting ***
  5505. --- *** non-standard base-pairing at the 3rd an ***
  5506. --- *** ti-codon position. ***
  5507. --- ************************************************
  5508. ---
  5509. CREATE VIEW trna AS
  5510. SELECT
  5511. feature_id AS trna_id,
  5512. feature.*
  5513. FROM
  5514. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5515. 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';
  5516. --- ************************************************
  5517. --- *** relation: alanyl_trna ***
  5518. --- *** relation type: VIEW ***
  5519. --- *** ***
  5520. --- *** A tRNA sequence that has an alanine anti ***
  5521. --- *** codon, and a 3' alanine binding region. ***
  5522. --- ************************************************
  5523. ---
  5524. CREATE VIEW alanyl_trna AS
  5525. SELECT
  5526. feature_id AS alanyl_trna_id,
  5527. feature.*
  5528. FROM
  5529. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5530. WHERE cvterm.name = 'alanyl_tRNA';
  5531. --- ************************************************
  5532. --- *** relation: rrna_small_subunit_primary_transcript ***
  5533. --- *** relation type: VIEW ***
  5534. --- *** ***
  5535. --- *** A primary transcript encoding a small ri ***
  5536. --- *** bosomal subunit RNA. ***
  5537. --- ************************************************
  5538. ---
  5539. CREATE VIEW rrna_small_subunit_primary_transcript AS
  5540. SELECT
  5541. feature_id AS rrna_small_subunit_primary_transcript_id,
  5542. feature.*
  5543. FROM
  5544. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5545. WHERE cvterm.name = 'rRNA_small_subunit_primary_transcript';
  5546. --- ************************************************
  5547. --- *** relation: asparaginyl_trna ***
  5548. --- *** relation type: VIEW ***
  5549. --- *** ***
  5550. --- *** A tRNA sequence that has an asparagine a ***
  5551. --- *** nticodon, and a 3' asparagine binding re ***
  5552. --- *** gion. ***
  5553. --- ************************************************
  5554. ---
  5555. CREATE VIEW asparaginyl_trna AS
  5556. SELECT
  5557. feature_id AS asparaginyl_trna_id,
  5558. feature.*
  5559. FROM
  5560. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5561. WHERE cvterm.name = 'asparaginyl_tRNA';
  5562. --- ************************************************
  5563. --- *** relation: aspartyl_trna ***
  5564. --- *** relation type: VIEW ***
  5565. --- *** ***
  5566. --- *** A tRNA sequence that has an aspartic aci ***
  5567. --- *** d anticodon, and a 3' aspartic acid bind ***
  5568. --- *** ing region. ***
  5569. --- ************************************************
  5570. ---
  5571. CREATE VIEW aspartyl_trna AS
  5572. SELECT
  5573. feature_id AS aspartyl_trna_id,
  5574. feature.*
  5575. FROM
  5576. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5577. WHERE cvterm.name = 'aspartyl_tRNA';
  5578. --- ************************************************
  5579. --- *** relation: cysteinyl_trna ***
  5580. --- *** relation type: VIEW ***
  5581. --- *** ***
  5582. --- *** A tRNA sequence that has a cysteine anti ***
  5583. --- *** codon, and a 3' cysteine binding region. ***
  5584. --- ************************************************
  5585. ---
  5586. CREATE VIEW cysteinyl_trna AS
  5587. SELECT
  5588. feature_id AS cysteinyl_trna_id,
  5589. feature.*
  5590. FROM
  5591. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5592. WHERE cvterm.name = 'cysteinyl_tRNA';
  5593. --- ************************************************
  5594. --- *** relation: glutaminyl_trna ***
  5595. --- *** relation type: VIEW ***
  5596. --- *** ***
  5597. --- *** A tRNA sequence that has a glutamine ant ***
  5598. --- *** icodon, and a 3' glutamine binding regio ***
  5599. --- *** n. ***
  5600. --- ************************************************
  5601. ---
  5602. CREATE VIEW glutaminyl_trna AS
  5603. SELECT
  5604. feature_id AS glutaminyl_trna_id,
  5605. feature.*
  5606. FROM
  5607. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5608. WHERE cvterm.name = 'glutaminyl_tRNA';
  5609. --- ************************************************
  5610. --- *** relation: glutamyl_trna ***
  5611. --- *** relation type: VIEW ***
  5612. --- *** ***
  5613. --- *** A tRNA sequence that has a glutamic acid ***
  5614. --- *** anticodon, and a 3' glutamic acid bindi ***
  5615. --- *** ng region. ***
  5616. --- ************************************************
  5617. ---
  5618. CREATE VIEW glutamyl_trna AS
  5619. SELECT
  5620. feature_id AS glutamyl_trna_id,
  5621. feature.*
  5622. FROM
  5623. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5624. WHERE cvterm.name = 'glutamyl_tRNA';
  5625. --- ************************************************
  5626. --- *** relation: glycyl_trna ***
  5627. --- *** relation type: VIEW ***
  5628. --- *** ***
  5629. --- *** A tRNA sequence that has a glycine antic ***
  5630. --- *** odon, and a 3' glycine binding region. ***
  5631. --- ************************************************
  5632. ---
  5633. CREATE VIEW glycyl_trna AS
  5634. SELECT
  5635. feature_id AS glycyl_trna_id,
  5636. feature.*
  5637. FROM
  5638. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5639. WHERE cvterm.name = 'glycyl_tRNA';
  5640. --- ************************************************
  5641. --- *** relation: histidyl_trna ***
  5642. --- *** relation type: VIEW ***
  5643. --- *** ***
  5644. --- *** A tRNA sequence that has a histidine ant ***
  5645. --- *** icodon, and a 3' histidine binding regio ***
  5646. --- *** n. ***
  5647. --- ************************************************
  5648. ---
  5649. CREATE VIEW histidyl_trna AS
  5650. SELECT
  5651. feature_id AS histidyl_trna_id,
  5652. feature.*
  5653. FROM
  5654. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5655. WHERE cvterm.name = 'histidyl_tRNA';
  5656. --- ************************************************
  5657. --- *** relation: isoleucyl_trna ***
  5658. --- *** relation type: VIEW ***
  5659. --- *** ***
  5660. --- *** A tRNA sequence that has an isoleucine a ***
  5661. --- *** nticodon, and a 3' isoleucine binding re ***
  5662. --- *** gion. ***
  5663. --- ************************************************
  5664. ---
  5665. CREATE VIEW isoleucyl_trna AS
  5666. SELECT
  5667. feature_id AS isoleucyl_trna_id,
  5668. feature.*
  5669. FROM
  5670. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5671. WHERE cvterm.name = 'isoleucyl_tRNA';
  5672. --- ************************************************
  5673. --- *** relation: leucyl_trna ***
  5674. --- *** relation type: VIEW ***
  5675. --- *** ***
  5676. --- *** A tRNA sequence that has a leucine antic ***
  5677. --- *** odon, and a 3' leucine binding region. ***
  5678. --- ************************************************
  5679. ---
  5680. CREATE VIEW leucyl_trna AS
  5681. SELECT
  5682. feature_id AS leucyl_trna_id,
  5683. feature.*
  5684. FROM
  5685. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5686. WHERE cvterm.name = 'leucyl_tRNA';
  5687. --- ************************************************
  5688. --- *** relation: lysyl_trna ***
  5689. --- *** relation type: VIEW ***
  5690. --- *** ***
  5691. --- *** A tRNA sequence that has a lysine antico ***
  5692. --- *** don, and a 3' lysine binding region. ***
  5693. --- ************************************************
  5694. ---
  5695. CREATE VIEW lysyl_trna AS
  5696. SELECT
  5697. feature_id AS lysyl_trna_id,
  5698. feature.*
  5699. FROM
  5700. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5701. WHERE cvterm.name = 'lysyl_tRNA';
  5702. --- ************************************************
  5703. --- *** relation: methionyl_trna ***
  5704. --- *** relation type: VIEW ***
  5705. --- *** ***
  5706. --- *** A tRNA sequence that has a methionine an ***
  5707. --- *** ticodon, and a 3' methionine binding reg ***
  5708. --- *** ion. ***
  5709. --- ************************************************
  5710. ---
  5711. CREATE VIEW methionyl_trna AS
  5712. SELECT
  5713. feature_id AS methionyl_trna_id,
  5714. feature.*
  5715. FROM
  5716. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5717. WHERE cvterm.name = 'methionyl_tRNA';
  5718. --- ************************************************
  5719. --- *** relation: phenylalanyl_trna ***
  5720. --- *** relation type: VIEW ***
  5721. --- *** ***
  5722. --- *** A tRNA sequence that has a phenylalanine ***
  5723. --- *** anticodon, and a 3' phenylalanine bindi ***
  5724. --- *** ng region. ***
  5725. --- ************************************************
  5726. ---
  5727. CREATE VIEW phenylalanyl_trna AS
  5728. SELECT
  5729. feature_id AS phenylalanyl_trna_id,
  5730. feature.*
  5731. FROM
  5732. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5733. WHERE cvterm.name = 'phenylalanyl_tRNA';
  5734. --- ************************************************
  5735. --- *** relation: prolyl_trna ***
  5736. --- *** relation type: VIEW ***
  5737. --- *** ***
  5738. --- *** A tRNA sequence that has a proline antic ***
  5739. --- *** odon, and a 3' proline binding region. ***
  5740. --- ************************************************
  5741. ---
  5742. CREATE VIEW prolyl_trna AS
  5743. SELECT
  5744. feature_id AS prolyl_trna_id,
  5745. feature.*
  5746. FROM
  5747. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5748. WHERE cvterm.name = 'prolyl_tRNA';
  5749. --- ************************************************
  5750. --- *** relation: seryl_trna ***
  5751. --- *** relation type: VIEW ***
  5752. --- *** ***
  5753. --- *** A tRNA sequence that has a serine antico ***
  5754. --- *** don, and a 3' serine binding region. ***
  5755. --- ************************************************
  5756. ---
  5757. CREATE VIEW seryl_trna AS
  5758. SELECT
  5759. feature_id AS seryl_trna_id,
  5760. feature.*
  5761. FROM
  5762. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5763. WHERE cvterm.name = 'seryl_tRNA';
  5764. --- ************************************************
  5765. --- *** relation: threonyl_trna ***
  5766. --- *** relation type: VIEW ***
  5767. --- *** ***
  5768. --- *** A tRNA sequence that has a threonine ant ***
  5769. --- *** icodon, and a 3' threonine binding regio ***
  5770. --- *** n. ***
  5771. --- ************************************************
  5772. ---
  5773. CREATE VIEW threonyl_trna AS
  5774. SELECT
  5775. feature_id AS threonyl_trna_id,
  5776. feature.*
  5777. FROM
  5778. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5779. WHERE cvterm.name = 'threonyl_tRNA';
  5780. --- ************************************************
  5781. --- *** relation: tryptophanyl_trna ***
  5782. --- *** relation type: VIEW ***
  5783. --- *** ***
  5784. --- *** A tRNA sequence that has a tryptophan an ***
  5785. --- *** ticodon, and a 3' tryptophan binding reg ***
  5786. --- *** ion. ***
  5787. --- ************************************************
  5788. ---
  5789. CREATE VIEW tryptophanyl_trna AS
  5790. SELECT
  5791. feature_id AS tryptophanyl_trna_id,
  5792. feature.*
  5793. FROM
  5794. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5795. WHERE cvterm.name = 'tryptophanyl_tRNA';
  5796. --- ************************************************
  5797. --- *** relation: tyrosyl_trna ***
  5798. --- *** relation type: VIEW ***
  5799. --- *** ***
  5800. --- *** A tRNA sequence that has a tyrosine anti ***
  5801. --- *** codon, and a 3' tyrosine binding region. ***
  5802. --- ************************************************
  5803. ---
  5804. CREATE VIEW tyrosyl_trna AS
  5805. SELECT
  5806. feature_id AS tyrosyl_trna_id,
  5807. feature.*
  5808. FROM
  5809. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5810. WHERE cvterm.name = 'tyrosyl_tRNA';
  5811. --- ************************************************
  5812. --- *** relation: valyl_trna ***
  5813. --- *** relation type: VIEW ***
  5814. --- *** ***
  5815. --- *** A tRNA sequence that has a valine antico ***
  5816. --- *** don, and a 3' valine binding region. ***
  5817. --- ************************************************
  5818. ---
  5819. CREATE VIEW valyl_trna AS
  5820. SELECT
  5821. feature_id AS valyl_trna_id,
  5822. feature.*
  5823. FROM
  5824. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5825. WHERE cvterm.name = 'valyl_tRNA';
  5826. --- ************************************************
  5827. --- *** relation: snrna ***
  5828. --- *** relation type: VIEW ***
  5829. --- *** ***
  5830. --- *** A small nuclear RNA molecule involved in ***
  5831. --- *** pre-mRNA splicing and processing. ***
  5832. --- ************************************************
  5833. ---
  5834. CREATE VIEW snrna AS
  5835. SELECT
  5836. feature_id AS snrna_id,
  5837. feature.*
  5838. FROM
  5839. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5840. 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';
  5841. --- ************************************************
  5842. --- *** relation: snorna ***
  5843. --- *** relation type: VIEW ***
  5844. --- *** ***
  5845. --- *** A snoRNA (small nucleolar RNA) is any on ***
  5846. --- *** e of a class of small RNAs that are asso ***
  5847. --- *** ciated with the eukaryotic nucleus as co ***
  5848. --- *** mponents of small nucleolar ribonucleopr ***
  5849. --- *** oteins. They participate in the processi ***
  5850. --- *** ng or modifications of many RNAs, mostly ***
  5851. --- *** ribosomal RNAs (rRNAs) though snoRNAs a ***
  5852. --- *** re also known to target other classes of ***
  5853. --- *** RNA, including spliceosomal RNAs, tRNAs ***
  5854. --- *** , and mRNAs via a stretch of sequence th ***
  5855. --- *** at is complementary to a sequence in the ***
  5856. --- *** targeted RNA. ***
  5857. --- ************************************************
  5858. ---
  5859. CREATE VIEW snorna AS
  5860. SELECT
  5861. feature_id AS snorna_id,
  5862. feature.*
  5863. FROM
  5864. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5865. 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';
  5866. --- ************************************************
  5867. --- *** relation: mirna ***
  5868. --- *** relation type: VIEW ***
  5869. --- *** ***
  5870. --- *** Small, ~22-nt, RNA molecule that is the ***
  5871. --- *** endogenous transcript of a miRNA gene. M ***
  5872. --- *** icro RNAs are produced from precursor mo ***
  5873. --- *** lecules (SO:0000647) that can form local ***
  5874. --- *** hairpin structures, which ordinarily ar ***
  5875. --- *** e processed (via the Dicer pathway) such ***
  5876. --- *** that a single miRNA molecule accumulate ***
  5877. --- *** s from one arm of a hairpin precursor mo ***
  5878. --- *** lecule. Micro RNAs may trigger the cleav ***
  5879. --- *** age of their target molecules or act as ***
  5880. --- *** translational repressors. ***
  5881. --- ************************************************
  5882. ---
  5883. CREATE VIEW mirna AS
  5884. SELECT
  5885. feature_id AS mirna_id,
  5886. feature.*
  5887. FROM
  5888. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5889. WHERE cvterm.name = 'miRNA';
  5890. --- ************************************************
  5891. --- *** relation: bound_by_factor ***
  5892. --- *** relation type: VIEW ***
  5893. --- *** ***
  5894. --- *** An attribute describing a sequence that ***
  5895. --- *** is bound by another molecule. ***
  5896. --- ************************************************
  5897. ---
  5898. CREATE VIEW bound_by_factor AS
  5899. SELECT
  5900. feature_id AS bound_by_factor_id,
  5901. feature.*
  5902. FROM
  5903. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5904. WHERE cvterm.name = 'bound_by_protein' OR cvterm.name = 'bound_by_nucleic_acid' OR cvterm.name = 'bound_by_factor';
  5905. --- ************************************************
  5906. --- *** relation: transcript_bound_by_nucleic_acid ***
  5907. --- *** relation type: VIEW ***
  5908. --- *** ***
  5909. --- *** A transcript that is bound by a nucleic ***
  5910. --- *** acid. ***
  5911. --- ************************************************
  5912. ---
  5913. CREATE VIEW transcript_bound_by_nucleic_acid AS
  5914. SELECT
  5915. feature_id AS transcript_bound_by_nucleic_acid_id,
  5916. feature.*
  5917. FROM
  5918. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5919. WHERE cvterm.name = 'transcript_bound_by_nucleic_acid';
  5920. --- ************************************************
  5921. --- *** relation: transcript_bound_by_protein ***
  5922. --- *** relation type: VIEW ***
  5923. --- *** ***
  5924. --- *** A transcript that is bound by a protein. ***
  5925. --- ************************************************
  5926. ---
  5927. CREATE VIEW transcript_bound_by_protein AS
  5928. SELECT
  5929. feature_id AS transcript_bound_by_protein_id,
  5930. feature.*
  5931. FROM
  5932. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5933. WHERE cvterm.name = 'transcript_bound_by_protein';
  5934. --- ************************************************
  5935. --- *** relation: engineered_gene ***
  5936. --- *** relation type: VIEW ***
  5937. --- *** ***
  5938. --- *** A gene that is engineered. ***
  5939. --- ************************************************
  5940. ---
  5941. CREATE VIEW engineered_gene AS
  5942. SELECT
  5943. feature_id AS engineered_gene_id,
  5944. feature.*
  5945. FROM
  5946. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5947. 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';
  5948. --- ************************************************
  5949. --- *** relation: engineered_foreign_gene ***
  5950. --- *** relation type: VIEW ***
  5951. --- *** ***
  5952. --- *** A gene that is engineered and foreign. ***
  5953. --- ************************************************
  5954. ---
  5955. CREATE VIEW engineered_foreign_gene AS
  5956. SELECT
  5957. feature_id AS engineered_foreign_gene_id,
  5958. feature.*
  5959. FROM
  5960. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5961. WHERE cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_foreign_gene';
  5962. --- ************************************************
  5963. --- *** relation: mrna_with_minus_1_frameshift ***
  5964. --- *** relation type: VIEW ***
  5965. --- *** ***
  5966. --- *** An mRNA with a minus 1 frameshift. ***
  5967. --- ************************************************
  5968. ---
  5969. CREATE VIEW mrna_with_minus_1_frameshift AS
  5970. SELECT
  5971. feature_id AS mrna_with_minus_1_frameshift_id,
  5972. feature.*
  5973. FROM
  5974. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5975. WHERE cvterm.name = 'mRNA_with_minus_1_frameshift';
  5976. --- ************************************************
  5977. --- *** relation: engineered_foreign_transposable_element_gene ***
  5978. --- *** relation type: VIEW ***
  5979. --- *** ***
  5980. --- *** A transposible_element that is engineere ***
  5981. --- *** d and foreign. ***
  5982. --- ************************************************
  5983. ---
  5984. CREATE VIEW engineered_foreign_transposable_element_gene AS
  5985. SELECT
  5986. feature_id AS engineered_foreign_transposable_element_gene_id,
  5987. feature.*
  5988. FROM
  5989. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5990. WHERE cvterm.name = 'engineered_foreign_transposable_element_gene';
  5991. --- ************************************************
  5992. --- *** relation: foreign_gene ***
  5993. --- *** relation type: VIEW ***
  5994. --- *** ***
  5995. --- *** A gene that is foreign. ***
  5996. --- ************************************************
  5997. ---
  5998. CREATE VIEW foreign_gene AS
  5999. SELECT
  6000. feature_id AS foreign_gene_id,
  6001. feature.*
  6002. FROM
  6003. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6004. WHERE cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'foreign_gene';
  6005. --- ************************************************
  6006. --- *** relation: long_terminal_repeat ***
  6007. --- *** relation type: VIEW ***
  6008. --- *** ***
  6009. --- *** A sequence directly repeated at both end ***
  6010. --- *** s of a defined sequence, of the sort typ ***
  6011. --- *** ically found in retroviruses. ***
  6012. --- ************************************************
  6013. ---
  6014. CREATE VIEW long_terminal_repeat AS
  6015. SELECT
  6016. feature_id AS long_terminal_repeat_id,
  6017. feature.*
  6018. FROM
  6019. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6020. WHERE cvterm.name = 'five_prime_LTR' OR cvterm.name = 'three_prime_LTR' OR cvterm.name = 'solo_LTR' OR cvterm.name = 'long_terminal_repeat';
  6021. --- ************************************************
  6022. --- *** relation: fusion_gene ***
  6023. --- *** relation type: VIEW ***
  6024. --- *** ***
  6025. --- *** A gene that is a fusion. ***
  6026. --- ************************************************
  6027. ---
  6028. CREATE VIEW fusion_gene AS
  6029. SELECT
  6030. feature_id AS fusion_gene_id,
  6031. feature.*
  6032. FROM
  6033. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6034. WHERE cvterm.name = 'engineered_fusion_gene' OR cvterm.name = 'fusion_gene';
  6035. --- ************************************************
  6036. --- *** relation: engineered_fusion_gene ***
  6037. --- *** relation type: VIEW ***
  6038. --- *** ***
  6039. --- *** A fusion gene that is engineered. ***
  6040. --- ************************************************
  6041. ---
  6042. CREATE VIEW engineered_fusion_gene AS
  6043. SELECT
  6044. feature_id AS engineered_fusion_gene_id,
  6045. feature.*
  6046. FROM
  6047. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6048. WHERE cvterm.name = 'engineered_fusion_gene';
  6049. --- ************************************************
  6050. --- *** relation: microsatellite ***
  6051. --- *** relation type: VIEW ***
  6052. --- *** ***
  6053. --- *** A repeat_region containing repeat_units ***
  6054. --- *** (2 to 4 bp) that is repeated multiple ti ***
  6055. --- *** mes in tandem. ***
  6056. --- ************************************************
  6057. ---
  6058. CREATE VIEW microsatellite AS
  6059. SELECT
  6060. feature_id AS microsatellite_id,
  6061. feature.*
  6062. FROM
  6063. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6064. 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';
  6065. --- ************************************************
  6066. --- *** relation: dinucleotide_repeat_microsatellite_feature ***
  6067. --- *** relation type: VIEW ***
  6068. --- *** ***
  6069. --- ************************************************
  6070. ---
  6071. CREATE VIEW dinucleotide_repeat_microsatellite_feature AS
  6072. SELECT
  6073. feature_id AS dinucleotide_repeat_microsatellite_feature_id,
  6074. feature.*
  6075. FROM
  6076. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6077. WHERE cvterm.name = 'dinucleotide_repeat_microsatellite_feature';
  6078. --- ************************************************
  6079. --- *** relation: trinuc_repeat_microsat ***
  6080. --- *** relation type: VIEW ***
  6081. --- *** ***
  6082. --- ************************************************
  6083. ---
  6084. CREATE VIEW trinuc_repeat_microsat AS
  6085. SELECT
  6086. feature_id AS trinuc_repeat_microsat_id,
  6087. feature.*
  6088. FROM
  6089. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6090. WHERE cvterm.name = 'trinucleotide_repeat_microsatellite_feature';
  6091. --- ************************************************
  6092. --- *** relation: engineered_foreign_repetitive_element ***
  6093. --- *** relation type: VIEW ***
  6094. --- *** ***
  6095. --- *** A repetitive element that is engineered ***
  6096. --- *** and foreign. ***
  6097. --- ************************************************
  6098. ---
  6099. CREATE VIEW engineered_foreign_repetitive_element AS
  6100. SELECT
  6101. feature_id AS engineered_foreign_repetitive_element_id,
  6102. feature.*
  6103. FROM
  6104. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6105. WHERE cvterm.name = 'engineered_foreign_repetitive_element';
  6106. --- ************************************************
  6107. --- *** relation: inverted_repeat ***
  6108. --- *** relation type: VIEW ***
  6109. --- *** ***
  6110. --- *** The sequence is complementarily repeated ***
  6111. --- *** on the opposite strand. It is a palindr ***
  6112. --- *** ome, and it may, or may not be hyphenate ***
  6113. --- *** d. Examples: GCTGATCAGC, or GCTGA-----TC ***
  6114. --- *** AGC. ***
  6115. --- ************************************************
  6116. ---
  6117. CREATE VIEW inverted_repeat AS
  6118. SELECT
  6119. feature_id AS inverted_repeat_id,
  6120. feature.*
  6121. FROM
  6122. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6123. 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';
  6124. --- ************************************************
  6125. --- *** relation: u12_intron ***
  6126. --- *** relation type: VIEW ***
  6127. --- *** ***
  6128. --- *** A type of spliceosomal intron spliced by ***
  6129. --- *** the U12 spliceosome, that includes U11, ***
  6130. --- *** U12, U4atac/U6atac and U5 snRNAs. ***
  6131. --- ************************************************
  6132. ---
  6133. CREATE VIEW u12_intron AS
  6134. SELECT
  6135. feature_id AS u12_intron_id,
  6136. feature.*
  6137. FROM
  6138. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6139. WHERE cvterm.name = 'U12_intron';
  6140. --- ************************************************
  6141. --- *** relation: origin_of_replication ***
  6142. --- *** relation type: VIEW ***
  6143. --- *** ***
  6144. --- *** The origin of replication; starting site ***
  6145. --- *** for duplication of a nucleic acid molec ***
  6146. --- *** ule to give two identical copies. ***
  6147. --- ************************************************
  6148. ---
  6149. CREATE VIEW origin_of_replication AS
  6150. SELECT
  6151. feature_id AS origin_of_replication_id,
  6152. feature.*
  6153. FROM
  6154. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6155. 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';
  6156. --- ************************************************
  6157. --- *** relation: d_loop ***
  6158. --- *** relation type: VIEW ***
  6159. --- *** ***
  6160. --- *** Displacement loop; a region within mitoc ***
  6161. --- *** hondrial DNA in which a short stretch of ***
  6162. --- *** RNA is paired with one strand of DNA, d ***
  6163. --- *** isplacing the original partner DNA stran ***
  6164. --- *** d in this region; also used to describe ***
  6165. --- *** the displacement of a region of one stra ***
  6166. --- *** nd of duplex DNA by a single stranded in ***
  6167. --- *** vader in the reaction catalyzed by RecA ***
  6168. --- *** protein. ***
  6169. --- ************************************************
  6170. ---
  6171. CREATE VIEW d_loop AS
  6172. SELECT
  6173. feature_id AS d_loop_id,
  6174. feature.*
  6175. FROM
  6176. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6177. WHERE cvterm.name = 'D_loop';
  6178. --- ************************************************
  6179. --- *** relation: recombination_feature ***
  6180. --- *** relation type: VIEW ***
  6181. --- *** ***
  6182. --- ************************************************
  6183. ---
  6184. CREATE VIEW recombination_feature AS
  6185. SELECT
  6186. feature_id AS recombination_feature_id,
  6187. feature.*
  6188. FROM
  6189. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6190. 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';
  6191. --- ************************************************
  6192. --- *** relation: specific_recombination_site ***
  6193. --- *** relation type: VIEW ***
  6194. --- *** ***
  6195. --- ************************************************
  6196. ---
  6197. CREATE VIEW specific_recombination_site AS
  6198. SELECT
  6199. feature_id AS specific_recombination_site_id,
  6200. feature.*
  6201. FROM
  6202. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6203. 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';
  6204. --- ************************************************
  6205. --- *** relation: recombination_feature_of_rearranged_gene ***
  6206. --- *** relation type: VIEW ***
  6207. --- *** ***
  6208. --- ************************************************
  6209. ---
  6210. CREATE VIEW recombination_feature_of_rearranged_gene AS
  6211. SELECT
  6212. feature_id AS recombination_feature_of_rearranged_gene_id,
  6213. feature.*
  6214. FROM
  6215. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6216. 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';
  6217. --- ************************************************
  6218. --- *** relation: vertebrate_immune_system_gene_recombination_feature ***
  6219. --- *** relation type: VIEW ***
  6220. --- *** ***
  6221. --- ************************************************
  6222. ---
  6223. CREATE VIEW vertebrate_immune_system_gene_recombination_feature AS
  6224. SELECT
  6225. feature_id AS vertebrate_immune_system_gene_recombination_feature_id,
  6226. feature.*
  6227. FROM
  6228. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6229. 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';
  6230. --- ************************************************
  6231. --- *** relation: j_gene_recombination_feature ***
  6232. --- *** relation type: VIEW ***
  6233. --- *** ***
  6234. --- *** Recombination signal including J-heptame ***
  6235. --- *** r, J-spacer and J-nonamer in 5' of J-reg ***
  6236. --- *** ion of a J-gene or J-sequence. ***
  6237. --- ************************************************
  6238. ---
  6239. CREATE VIEW j_gene_recombination_feature AS
  6240. SELECT
  6241. feature_id AS j_gene_recombination_feature_id,
  6242. feature.*
  6243. FROM
  6244. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6245. WHERE cvterm.name = 'J_gene_recombination_feature';
  6246. --- ************************************************
  6247. --- *** relation: clip ***
  6248. --- *** relation type: VIEW ***
  6249. --- *** ***
  6250. --- *** Part of the primary transcript that is c ***
  6251. --- *** lipped off during processing. ***
  6252. --- ************************************************
  6253. ---
  6254. CREATE VIEW clip AS
  6255. SELECT
  6256. feature_id AS clip_id,
  6257. feature.*
  6258. FROM
  6259. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6260. WHERE cvterm.name = 'five_prime_clip' OR cvterm.name = 'three_prime_clip' OR cvterm.name = 'clip';
  6261. --- ************************************************
  6262. --- *** relation: modified_base_site ***
  6263. --- *** relation type: VIEW ***
  6264. --- *** ***
  6265. --- *** A modified nucleotide, i.e. a nucleotide ***
  6266. --- *** other than A, T, C. G or (in RNA) U. ***
  6267. --- ************************************************
  6268. ---
  6269. CREATE VIEW modified_base_site AS
  6270. SELECT
  6271. feature_id AS modified_base_site_id,
  6272. feature.*
  6273. FROM
  6274. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6275. WHERE cvterm.name = 'methylated_base_feature' OR cvterm.name = 'methylated_C' OR cvterm.name = 'methylated_A' OR cvterm.name = 'modified_base_site';
  6276. --- ************************************************
  6277. --- *** relation: methylated_base_feature ***
  6278. --- *** relation type: VIEW ***
  6279. --- *** ***
  6280. --- *** A nucleotide modified by methylation. ***
  6281. --- ************************************************
  6282. ---
  6283. CREATE VIEW methylated_base_feature AS
  6284. SELECT
  6285. feature_id AS methylated_base_feature_id,
  6286. feature.*
  6287. FROM
  6288. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6289. WHERE cvterm.name = 'methylated_C' OR cvterm.name = 'methylated_A' OR cvterm.name = 'methylated_base_feature';
  6290. --- ************************************************
  6291. --- *** relation: cpg_island ***
  6292. --- *** relation type: VIEW ***
  6293. --- *** ***
  6294. --- *** Regions of a few hundred to a few thousa ***
  6295. --- *** nd bases in vertebrate genomes that are ***
  6296. --- *** relatively GC and CpG rich; they are typ ***
  6297. --- *** ically unmethylated and often found near ***
  6298. --- *** the 5' ends of genes. ***
  6299. --- ************************************************
  6300. ---
  6301. CREATE VIEW cpg_island AS
  6302. SELECT
  6303. feature_id AS cpg_island_id,
  6304. feature.*
  6305. FROM
  6306. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6307. WHERE cvterm.name = 'CpG_island';
  6308. --- ************************************************
  6309. --- *** relation: experimentally_determined ***
  6310. --- *** relation type: VIEW ***
  6311. --- *** ***
  6312. --- *** Attribute to describe a feature that has ***
  6313. --- *** been experiemntally verified. ***
  6314. --- ************************************************
  6315. ---
  6316. CREATE VIEW experimentally_determined AS
  6317. SELECT
  6318. feature_id AS experimentally_determined_id,
  6319. feature.*
  6320. FROM
  6321. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6322. WHERE cvterm.name = 'experimentally_determined';
  6323. --- ************************************************
  6324. --- *** relation: stem_loop ***
  6325. --- *** relation type: VIEW ***
  6326. --- *** ***
  6327. --- *** A double-helical region of nucleic acid ***
  6328. --- *** formed by base-pairing between adjacent ***
  6329. --- *** (inverted) complementary sequences. ***
  6330. --- ************************************************
  6331. ---
  6332. CREATE VIEW stem_loop AS
  6333. SELECT
  6334. feature_id AS stem_loop_id,
  6335. feature.*
  6336. FROM
  6337. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6338. WHERE cvterm.name = 'tetraloop' OR cvterm.name = 'stem_loop';
  6339. --- ************************************************
  6340. --- *** relation: direct_repeat ***
  6341. --- *** relation type: VIEW ***
  6342. --- *** ***
  6343. --- *** A repeat where the same sequence is repe ***
  6344. --- *** ated in the same direction. Example: GCT ***
  6345. --- *** GA-----GCTGA. ***
  6346. --- ************************************************
  6347. ---
  6348. CREATE VIEW direct_repeat AS
  6349. SELECT
  6350. feature_id AS direct_repeat_id,
  6351. feature.*
  6352. FROM
  6353. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6354. WHERE cvterm.name = 'target_site_duplication' OR cvterm.name = 'CRISPR' OR cvterm.name = 'direct_repeat';
  6355. --- ************************************************
  6356. --- *** relation: tss ***
  6357. --- *** relation type: VIEW ***
  6358. --- *** ***
  6359. --- *** The first base where RNA polymerase begi ***
  6360. --- *** ns to synthesize the RNA transcript. ***
  6361. --- ************************************************
  6362. ---
  6363. CREATE VIEW tss AS
  6364. SELECT
  6365. feature_id AS tss_id,
  6366. feature.*
  6367. FROM
  6368. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6369. WHERE cvterm.name = 'major_TSS' OR cvterm.name = 'minor_TSS' OR cvterm.name = 'TSS';
  6370. --- ************************************************
  6371. --- *** relation: cds ***
  6372. --- *** relation type: VIEW ***
  6373. --- *** ***
  6374. --- *** A contiguous sequence which begins with, ***
  6375. --- *** and includes, a start codon and ends wi ***
  6376. --- *** th, and includes, a stop codon. ***
  6377. --- ************************************************
  6378. ---
  6379. CREATE VIEW cds AS
  6380. SELECT
  6381. feature_id AS cds_id,
  6382. feature.*
  6383. FROM
  6384. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6385. 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';
  6386. --- ************************************************
  6387. --- *** relation: cdna_clone ***
  6388. --- *** relation type: VIEW ***
  6389. --- *** ***
  6390. --- *** Complementary DNA; A piece of DNA copied ***
  6391. --- *** from an mRNA and spliced into a vector ***
  6392. --- *** for propagation in a suitable host. ***
  6393. --- ************************************************
  6394. ---
  6395. CREATE VIEW cdna_clone AS
  6396. SELECT
  6397. feature_id AS cdna_clone_id,
  6398. feature.*
  6399. FROM
  6400. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6401. 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';
  6402. --- ************************************************
  6403. --- *** relation: start_codon ***
  6404. --- *** relation type: VIEW ***
  6405. --- *** ***
  6406. --- *** First codon to be translated by a riboso ***
  6407. --- *** me. ***
  6408. --- ************************************************
  6409. ---
  6410. CREATE VIEW start_codon AS
  6411. SELECT
  6412. feature_id AS start_codon_id,
  6413. feature.*
  6414. FROM
  6415. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6416. 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';
  6417. --- ************************************************
  6418. --- *** relation: stop_codon ***
  6419. --- *** relation type: VIEW ***
  6420. --- *** ***
  6421. --- *** In mRNA, a set of three nucleotides that ***
  6422. --- *** indicates the end of information for pr ***
  6423. --- *** otein synthesis. ***
  6424. --- ************************************************
  6425. ---
  6426. CREATE VIEW stop_codon AS
  6427. SELECT
  6428. feature_id AS stop_codon_id,
  6429. feature.*
  6430. FROM
  6431. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6432. WHERE cvterm.name = 'stop_codon';
  6433. --- ************************************************
  6434. --- *** relation: intronic_splice_enhancer ***
  6435. --- *** relation type: VIEW ***
  6436. --- *** ***
  6437. --- *** Sequences within the intron that modulat ***
  6438. --- *** e splice site selection for some introns ***
  6439. --- *** . ***
  6440. --- ************************************************
  6441. ---
  6442. CREATE VIEW intronic_splice_enhancer AS
  6443. SELECT
  6444. feature_id AS intronic_splice_enhancer_id,
  6445. feature.*
  6446. FROM
  6447. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6448. WHERE cvterm.name = 'intronic_splice_enhancer';
  6449. --- ************************************************
  6450. --- *** relation: mrna_with_plus_1_frameshift ***
  6451. --- *** relation type: VIEW ***
  6452. --- *** ***
  6453. --- *** An mRNA with a plus 1 frameshift. ***
  6454. --- ************************************************
  6455. ---
  6456. CREATE VIEW mrna_with_plus_1_frameshift AS
  6457. SELECT
  6458. feature_id AS mrna_with_plus_1_frameshift_id,
  6459. feature.*
  6460. FROM
  6461. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6462. WHERE cvterm.name = 'mRNA_with_plus_1_frameshift';
  6463. --- ************************************************
  6464. --- *** relation: nuclease_hypersensitive_site ***
  6465. --- *** relation type: VIEW ***
  6466. --- *** ***
  6467. --- ************************************************
  6468. ---
  6469. CREATE VIEW nuclease_hypersensitive_site AS
  6470. SELECT
  6471. feature_id AS nuclease_hypersensitive_site_id,
  6472. feature.*
  6473. FROM
  6474. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6475. WHERE cvterm.name = 'DNAseI_hypersensitive_site' OR cvterm.name = 'nuclease_hypersensitive_site';
  6476. --- ************************************************
  6477. --- *** relation: coding_start ***
  6478. --- *** relation type: VIEW ***
  6479. --- *** ***
  6480. --- *** The first base to be translated into pro ***
  6481. --- *** tein. ***
  6482. --- ************************************************
  6483. ---
  6484. CREATE VIEW coding_start AS
  6485. SELECT
  6486. feature_id AS coding_start_id,
  6487. feature.*
  6488. FROM
  6489. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6490. WHERE cvterm.name = 'coding_start';
  6491. --- ************************************************
  6492. --- *** relation: tag ***
  6493. --- *** relation type: VIEW ***
  6494. --- *** ***
  6495. --- *** A nucleotide sequence that may be used t ***
  6496. --- *** o identify a larger sequence. ***
  6497. --- ************************************************
  6498. ---
  6499. CREATE VIEW tag AS
  6500. SELECT
  6501. feature_id AS tag_id,
  6502. feature.*
  6503. FROM
  6504. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6505. 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';
  6506. --- ************************************************
  6507. --- *** relation: rrna_large_subunit_primary_transcript ***
  6508. --- *** relation type: VIEW ***
  6509. --- *** ***
  6510. --- *** A primary transcript encoding a large ri ***
  6511. --- *** bosomal subunit RNA. ***
  6512. --- ************************************************
  6513. ---
  6514. CREATE VIEW rrna_large_subunit_primary_transcript AS
  6515. SELECT
  6516. feature_id AS rrna_large_subunit_primary_transcript_id,
  6517. feature.*
  6518. FROM
  6519. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6520. WHERE cvterm.name = 'rRNA_large_subunit_primary_transcript';
  6521. --- ************************************************
  6522. --- *** relation: sage_tag ***
  6523. --- *** relation type: VIEW ***
  6524. --- *** ***
  6525. --- *** A short diagnostic sequence tag, serial ***
  6526. --- *** analysis of gene expression (SAGE), that ***
  6527. --- *** allows the quantitative and simultaneou ***
  6528. --- *** s analysis of a large number of transcri ***
  6529. --- *** pts. ***
  6530. --- ************************************************
  6531. ---
  6532. CREATE VIEW sage_tag AS
  6533. SELECT
  6534. feature_id AS sage_tag_id,
  6535. feature.*
  6536. FROM
  6537. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6538. WHERE cvterm.name = 'SAGE_tag';
  6539. --- ************************************************
  6540. --- *** relation: coding_end ***
  6541. --- *** relation type: VIEW ***
  6542. --- *** ***
  6543. --- *** The last base to be translated into prot ***
  6544. --- *** ein. It does not include the stop codon. ***
  6545. --- ************************************************
  6546. ---
  6547. CREATE VIEW coding_end AS
  6548. SELECT
  6549. feature_id AS coding_end_id,
  6550. feature.*
  6551. FROM
  6552. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6553. WHERE cvterm.name = 'coding_end';
  6554. --- ************************************************
  6555. --- *** relation: microarray_oligo ***
  6556. --- *** relation type: VIEW ***
  6557. --- *** ***
  6558. --- ************************************************
  6559. ---
  6560. CREATE VIEW microarray_oligo AS
  6561. SELECT
  6562. feature_id AS microarray_oligo_id,
  6563. feature.*
  6564. FROM
  6565. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6566. WHERE cvterm.name = 'microarray_oligo';
  6567. --- ************************************************
  6568. --- *** relation: mrna_with_plus_2_frameshift ***
  6569. --- *** relation type: VIEW ***
  6570. --- *** ***
  6571. --- *** An mRNA with a plus 2 frameshift. ***
  6572. --- ************************************************
  6573. ---
  6574. CREATE VIEW mrna_with_plus_2_frameshift AS
  6575. SELECT
  6576. feature_id AS mrna_with_plus_2_frameshift_id,
  6577. feature.*
  6578. FROM
  6579. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6580. WHERE cvterm.name = 'mRNA_with_plus_2_frameshift';
  6581. --- ************************************************
  6582. --- *** relation: conserved_region ***
  6583. --- *** relation type: VIEW ***
  6584. --- *** ***
  6585. --- *** Region of sequence similarity by descent ***
  6586. --- *** from a common ancestor. ***
  6587. --- ************************************************
  6588. ---
  6589. CREATE VIEW conserved_region AS
  6590. SELECT
  6591. feature_id AS conserved_region_id,
  6592. feature.*
  6593. FROM
  6594. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6595. 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';
  6596. --- ************************************************
  6597. --- *** relation: sts ***
  6598. --- *** relation type: VIEW ***
  6599. --- *** ***
  6600. --- *** Short (typically a few hundred base pair ***
  6601. --- *** s) DNA sequence that has a single occurr ***
  6602. --- *** ence in a genome and whose location and ***
  6603. --- *** base sequence are known. ***
  6604. --- ************************************************
  6605. ---
  6606. CREATE VIEW sts AS
  6607. SELECT
  6608. feature_id AS sts_id,
  6609. feature.*
  6610. FROM
  6611. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6612. WHERE cvterm.name = 'STS';
  6613. --- ************************************************
  6614. --- *** relation: coding_conserved_region ***
  6615. --- *** relation type: VIEW ***
  6616. --- *** ***
  6617. --- *** Coding region of sequence similarity by ***
  6618. --- *** descent from a common ancestor. ***
  6619. --- ************************************************
  6620. ---
  6621. CREATE VIEW coding_conserved_region AS
  6622. SELECT
  6623. feature_id AS coding_conserved_region_id,
  6624. feature.*
  6625. FROM
  6626. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6627. WHERE cvterm.name = 'coding_conserved_region';
  6628. --- ************************************************
  6629. --- *** relation: exon_junction ***
  6630. --- *** relation type: VIEW ***
  6631. --- *** ***
  6632. --- *** The boundary between two exons in a proc ***
  6633. --- *** essed transcript. ***
  6634. --- ************************************************
  6635. ---
  6636. CREATE VIEW exon_junction AS
  6637. SELECT
  6638. feature_id AS exon_junction_id,
  6639. feature.*
  6640. FROM
  6641. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6642. WHERE cvterm.name = 'exon_junction';
  6643. --- ************************************************
  6644. --- *** relation: nc_conserved_region ***
  6645. --- *** relation type: VIEW ***
  6646. --- *** ***
  6647. --- *** Non-coding region of sequence similarity ***
  6648. --- *** by descent from a common ancestor. ***
  6649. --- ************************************************
  6650. ---
  6651. CREATE VIEW nc_conserved_region AS
  6652. SELECT
  6653. feature_id AS nc_conserved_region_id,
  6654. feature.*
  6655. FROM
  6656. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6657. WHERE cvterm.name = 'nc_conserved_region';
  6658. --- ************************************************
  6659. --- *** relation: mrna_with_minus_2_frameshift ***
  6660. --- *** relation type: VIEW ***
  6661. --- *** ***
  6662. --- *** A mRNA with a minus 2 frameshift. ***
  6663. --- ************************************************
  6664. ---
  6665. CREATE VIEW mrna_with_minus_2_frameshift AS
  6666. SELECT
  6667. feature_id AS mrna_with_minus_2_frameshift_id,
  6668. feature.*
  6669. FROM
  6670. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6671. WHERE cvterm.name = 'mRNA_with_minus_2_frameshift';
  6672. --- ************************************************
  6673. --- *** relation: pseudogene ***
  6674. --- *** relation type: VIEW ***
  6675. --- *** ***
  6676. --- *** A sequence that closely resembles a know ***
  6677. --- *** n functional gene, at another locus with ***
  6678. --- *** in a genome, that is non-functional as a ***
  6679. --- *** consequence of (usually several) mutati ***
  6680. --- *** ons that prevent either its transcriptio ***
  6681. --- *** n or translation (or both). In general, ***
  6682. --- *** pseudogenes result from either reverse t ***
  6683. --- *** ranscription of a transcript of their "n ***
  6684. --- *** ormal" paralog (SO:0000043) (in which ca ***
  6685. --- *** se the pseudogene typically lacks intron ***
  6686. --- *** s and includes a poly(A) tail) or from r ***
  6687. --- *** ecombination (SO:0000044) (in which case ***
  6688. --- *** the pseudogene is typically a tandem du ***
  6689. --- *** plication of its "normal" paralog). ***
  6690. --- ************************************************
  6691. ---
  6692. CREATE VIEW pseudogene AS
  6693. SELECT
  6694. feature_id AS pseudogene_id,
  6695. feature.*
  6696. FROM
  6697. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6698. 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';
  6699. --- ************************************************
  6700. --- *** relation: rnai_reagent ***
  6701. --- *** relation type: VIEW ***
  6702. --- *** ***
  6703. --- *** A double stranded RNA duplex, at least 2 ***
  6704. --- *** 0bp long, used experimentally to inhibit ***
  6705. --- *** gene function by RNA interference. ***
  6706. --- ************************************************
  6707. ---
  6708. CREATE VIEW rnai_reagent AS
  6709. SELECT
  6710. feature_id AS rnai_reagent_id,
  6711. feature.*
  6712. FROM
  6713. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6714. WHERE cvterm.name = 'RNAi_reagent';
  6715. --- ************************************************
  6716. --- *** relation: mite ***
  6717. --- *** relation type: VIEW ***
  6718. --- *** ***
  6719. --- *** A highly repetitive and short (100-500 b ***
  6720. --- *** ase pair) transposable element with term ***
  6721. --- *** inal inverted repeats (TIR) and target s ***
  6722. --- *** ite duplication (TSD). MITEs do not enco ***
  6723. --- *** de proteins. ***
  6724. --- ************************************************
  6725. ---
  6726. CREATE VIEW mite AS
  6727. SELECT
  6728. feature_id AS mite_id,
  6729. feature.*
  6730. FROM
  6731. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6732. WHERE cvterm.name = 'MITE';
  6733. --- ************************************************
  6734. --- *** relation: recombination_hotspot ***
  6735. --- *** relation type: VIEW ***
  6736. --- *** ***
  6737. --- *** A region in a genome which promotes reco ***
  6738. --- *** mbination. ***
  6739. --- ************************************************
  6740. ---
  6741. CREATE VIEW recombination_hotspot AS
  6742. SELECT
  6743. feature_id AS recombination_hotspot_id,
  6744. feature.*
  6745. FROM
  6746. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6747. WHERE cvterm.name = 'recombination_hotspot';
  6748. --- ************************************************
  6749. --- *** relation: chromosome ***
  6750. --- *** relation type: VIEW ***
  6751. --- *** ***
  6752. --- *** Structural unit composed of a nucleic ac ***
  6753. --- *** id molecule which controls its own repli ***
  6754. --- *** cation through the interaction of specif ***
  6755. --- *** ic proteins at one or more origins of re ***
  6756. --- *** plication. ***
  6757. --- ************************************************
  6758. ---
  6759. CREATE VIEW chromosome AS
  6760. SELECT
  6761. feature_id AS chromosome_id,
  6762. feature.*
  6763. FROM
  6764. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6765. 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';
  6766. --- ************************************************
  6767. --- *** relation: chromosome_band ***
  6768. --- *** relation type: VIEW ***
  6769. --- *** ***
  6770. --- *** A cytologically distinguishable feature ***
  6771. --- *** of a chromosome, often made visible by s ***
  6772. --- *** taining, and usually alternating light a ***
  6773. --- *** nd dark. ***
  6774. --- ************************************************
  6775. ---
  6776. CREATE VIEW chromosome_band AS
  6777. SELECT
  6778. feature_id AS chromosome_band_id,
  6779. feature.*
  6780. FROM
  6781. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6782. WHERE cvterm.name = 'chromosome_band';
  6783. --- ************************************************
  6784. --- *** relation: site_specific_recombination_target_region ***
  6785. --- *** relation type: VIEW ***
  6786. --- *** ***
  6787. --- ************************************************
  6788. ---
  6789. CREATE VIEW site_specific_recombination_target_region AS
  6790. SELECT
  6791. feature_id AS site_specific_recombination_target_region_id,
  6792. feature.*
  6793. FROM
  6794. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6795. 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';
  6796. --- ************************************************
  6797. --- *** relation: match ***
  6798. --- *** relation type: VIEW ***
  6799. --- *** ***
  6800. --- *** A region of sequence, aligned to another ***
  6801. --- *** sequence with some statistical signific ***
  6802. --- *** ance, using an algorithm such as BLAST o ***
  6803. --- *** r SIM4. ***
  6804. --- ************************************************
  6805. ---
  6806. CREATE VIEW match AS
  6807. SELECT
  6808. feature_id AS match_id,
  6809. feature.*
  6810. FROM
  6811. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6812. 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';
  6813. --- ************************************************
  6814. --- *** relation: splice_enhancer ***
  6815. --- *** relation type: VIEW ***
  6816. --- *** ***
  6817. --- *** Region of a transcript that regulates sp ***
  6818. --- *** licing. ***
  6819. --- ************************************************
  6820. ---
  6821. CREATE VIEW splice_enhancer AS
  6822. SELECT
  6823. feature_id AS splice_enhancer_id,
  6824. feature.*
  6825. FROM
  6826. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6827. WHERE cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' OR cvterm.name = 'splice_enhancer';
  6828. --- ************************************************
  6829. --- *** relation: est ***
  6830. --- *** relation type: VIEW ***
  6831. --- *** ***
  6832. --- *** A tag produced from a single sequencing ***
  6833. --- *** read from a cDNA clone or PCR product; t ***
  6834. --- *** ypically a few hundred base pairs long. ***
  6835. --- ************************************************
  6836. ---
  6837. CREATE VIEW est AS
  6838. SELECT
  6839. feature_id AS est_id,
  6840. feature.*
  6841. FROM
  6842. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6843. 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';
  6844. --- ************************************************
  6845. --- *** relation: loxp_site ***
  6846. --- *** relation type: VIEW ***
  6847. --- *** ***
  6848. --- ************************************************
  6849. ---
  6850. CREATE VIEW loxp_site AS
  6851. SELECT
  6852. feature_id AS loxp_site_id,
  6853. feature.*
  6854. FROM
  6855. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6856. WHERE cvterm.name = 'loxP_site';
  6857. --- ************************************************
  6858. --- *** relation: nucleotide_match ***
  6859. --- *** relation type: VIEW ***
  6860. --- *** ***
  6861. --- *** A match against a nucleotide sequence. ***
  6862. --- ************************************************
  6863. ---
  6864. CREATE VIEW nucleotide_match AS
  6865. SELECT
  6866. feature_id AS nucleotide_match_id,
  6867. feature.*
  6868. FROM
  6869. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6870. 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';
  6871. --- ************************************************
  6872. --- *** relation: nucleic_acid ***
  6873. --- *** relation type: VIEW ***
  6874. --- *** ***
  6875. --- *** An attribute describing a sequence consi ***
  6876. --- *** sting of nucleobases bound to repeating ***
  6877. --- *** units. The forms found in nature are deo ***
  6878. --- *** xyribonucleic acid (DNA), where the repe ***
  6879. --- *** ating units are 2-deoxy-D-ribose rings c ***
  6880. --- *** onnected to a phosphate backbone, and ri ***
  6881. --- *** bonucleic acid (RNA), where the repeatin ***
  6882. --- *** g units are D-ribose rings connected to ***
  6883. --- *** a phosphate backbone. ***
  6884. --- ************************************************
  6885. ---
  6886. CREATE VIEW nucleic_acid AS
  6887. SELECT
  6888. feature_id AS nucleic_acid_id,
  6889. feature.*
  6890. FROM
  6891. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6892. 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';
  6893. --- ************************************************
  6894. --- *** relation: protein_match ***
  6895. --- *** relation type: VIEW ***
  6896. --- *** ***
  6897. --- *** A match against a protein sequence. ***
  6898. --- ************************************************
  6899. ---
  6900. CREATE VIEW protein_match AS
  6901. SELECT
  6902. feature_id AS protein_match_id,
  6903. feature.*
  6904. FROM
  6905. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6906. WHERE cvterm.name = 'protein_match';
  6907. --- ************************************************
  6908. --- *** relation: frt_site ***
  6909. --- *** relation type: VIEW ***
  6910. --- *** ***
  6911. --- *** An inversion site found on the Saccharom ***
  6912. --- *** yces cerevisiae 2 micron plasmid. ***
  6913. --- ************************************************
  6914. ---
  6915. CREATE VIEW frt_site AS
  6916. SELECT
  6917. feature_id AS frt_site_id,
  6918. feature.*
  6919. FROM
  6920. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6921. WHERE cvterm.name = 'FRT_site';
  6922. --- ************************************************
  6923. --- *** relation: synthetic_sequence ***
  6924. --- *** relation type: VIEW ***
  6925. --- *** ***
  6926. --- *** An attribute to decide a sequence of nuc ***
  6927. --- *** leotides, nucleotide analogs, or amino a ***
  6928. --- *** cids that has been designed by an experi ***
  6929. --- *** menter and which may, or may not, corres ***
  6930. --- *** pond with any natural sequence. ***
  6931. --- ************************************************
  6932. ---
  6933. CREATE VIEW synthetic_sequence AS
  6934. SELECT
  6935. feature_id AS synthetic_sequence_id,
  6936. feature.*
  6937. FROM
  6938. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6939. WHERE cvterm.name = 'random_sequence' OR cvterm.name = 'designed_sequence' OR cvterm.name = 'synthetic_sequence';
  6940. --- ************************************************
  6941. --- *** relation: dna ***
  6942. --- *** relation type: VIEW ***
  6943. --- *** ***
  6944. --- *** An attribute describing a sequence consi ***
  6945. --- *** sting of nucleobases bound to a repeatin ***
  6946. --- *** g unit made of a 2-deoxy-D-ribose ring c ***
  6947. --- *** onnected to a phosphate backbone. ***
  6948. --- ************************************************
  6949. ---
  6950. CREATE VIEW dna AS
  6951. SELECT
  6952. feature_id AS dna_id,
  6953. feature.*
  6954. FROM
  6955. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6956. 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';
  6957. --- ************************************************
  6958. --- *** relation: sequence_assembly ***
  6959. --- *** relation type: VIEW ***
  6960. --- *** ***
  6961. --- *** A sequence of nucleotides that has been ***
  6962. --- *** algorithmically derived from an alignmen ***
  6963. --- *** t of two or more different sequences. ***
  6964. --- ************************************************
  6965. ---
  6966. CREATE VIEW sequence_assembly AS
  6967. SELECT
  6968. feature_id AS sequence_assembly_id,
  6969. feature.*
  6970. FROM
  6971. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6972. 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';
  6973. --- ************************************************
  6974. --- *** relation: group_1_intron_homing_endonuclease_target_region ***
  6975. --- *** relation type: VIEW ***
  6976. --- *** ***
  6977. --- ************************************************
  6978. ---
  6979. CREATE VIEW group_1_intron_homing_endonuclease_target_region AS
  6980. SELECT
  6981. feature_id AS group_1_intron_homing_endonuclease_target_region_id,
  6982. feature.*
  6983. FROM
  6984. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6985. WHERE cvterm.name = 'group_1_intron_homing_endonuclease_target_region';
  6986. --- ************************************************
  6987. --- *** relation: haplotype_block ***
  6988. --- *** relation type: VIEW ***
  6989. --- *** ***
  6990. --- *** A region of the genome which is co-inher ***
  6991. --- *** ited as the result of the lack of histor ***
  6992. --- *** ic recombination within it. ***
  6993. --- ************************************************
  6994. ---
  6995. CREATE VIEW haplotype_block AS
  6996. SELECT
  6997. feature_id AS haplotype_block_id,
  6998. feature.*
  6999. FROM
  7000. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7001. WHERE cvterm.name = 'haplotype_block';
  7002. --- ************************************************
  7003. --- *** relation: rna ***
  7004. --- *** relation type: VIEW ***
  7005. --- *** ***
  7006. --- *** An attribute describing a sequence consi ***
  7007. --- *** sting of nucleobases bound to a repeatin ***
  7008. --- *** g unit made of a D-ribose ring connected ***
  7009. --- *** to a phosphate backbone. ***
  7010. --- ************************************************
  7011. ---
  7012. CREATE VIEW rna AS
  7013. SELECT
  7014. feature_id AS rna_id,
  7015. feature.*
  7016. FROM
  7017. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7018. WHERE cvterm.name = 'RNA';
  7019. --- ************************************************
  7020. --- *** relation: flanked ***
  7021. --- *** relation type: VIEW ***
  7022. --- *** ***
  7023. --- *** An attribute describing a region that is ***
  7024. --- *** bounded either side by a paricular kind ***
  7025. --- *** of region. ***
  7026. --- ************************************************
  7027. ---
  7028. CREATE VIEW flanked AS
  7029. SELECT
  7030. feature_id AS flanked_id,
  7031. feature.*
  7032. FROM
  7033. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7034. WHERE cvterm.name = 'floxed' OR cvterm.name = 'FRT_flanked' OR cvterm.name = 'flanked';
  7035. --- ************************************************
  7036. --- *** relation: floxed ***
  7037. --- *** relation type: VIEW ***
  7038. --- *** ***
  7039. --- *** An attribute describing sequence that is ***
  7040. --- *** flanked by Lox-P sites. ***
  7041. --- ************************************************
  7042. ---
  7043. CREATE VIEW floxed AS
  7044. SELECT
  7045. feature_id AS floxed_id,
  7046. feature.*
  7047. FROM
  7048. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7049. WHERE cvterm.name = 'floxed';
  7050. --- ************************************************
  7051. --- *** relation: codon ***
  7052. --- *** relation type: VIEW ***
  7053. --- *** ***
  7054. --- *** A set of (usually) three nucleotide base ***
  7055. --- *** s in a DNA or RNA sequence, which togeth ***
  7056. --- *** er code for a unique amino acid or the t ***
  7057. --- *** ermination of translation and are contai ***
  7058. --- *** ned within the CDS. ***
  7059. --- ************************************************
  7060. ---
  7061. CREATE VIEW codon AS
  7062. SELECT
  7063. feature_id AS codon_id,
  7064. feature.*
  7065. FROM
  7066. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7067. 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';
  7068. --- ************************************************
  7069. --- *** relation: frt_flanked ***
  7070. --- *** relation type: VIEW ***
  7071. --- *** ***
  7072. --- *** An attribute to describe sequence that i ***
  7073. --- *** s flanked by the FLP recombinase recogni ***
  7074. --- *** tion site, FRT. ***
  7075. --- ************************************************
  7076. ---
  7077. CREATE VIEW frt_flanked AS
  7078. SELECT
  7079. feature_id AS frt_flanked_id,
  7080. feature.*
  7081. FROM
  7082. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7083. WHERE cvterm.name = 'FRT_flanked';
  7084. --- ************************************************
  7085. --- *** relation: invalidated_by_chimeric_cdna ***
  7086. --- *** relation type: VIEW ***
  7087. --- *** ***
  7088. --- *** A cDNA clone constructed from more than ***
  7089. --- *** one mRNA. Usually an experimental artifa ***
  7090. --- *** ct. ***
  7091. --- ************************************************
  7092. ---
  7093. CREATE VIEW invalidated_by_chimeric_cdna AS
  7094. SELECT
  7095. feature_id AS invalidated_by_chimeric_cdna_id,
  7096. feature.*
  7097. FROM
  7098. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7099. WHERE cvterm.name = 'invalidated_by_chimeric_cDNA';
  7100. --- ************************************************
  7101. --- *** relation: floxed_gene ***
  7102. --- *** relation type: VIEW ***
  7103. --- *** ***
  7104. --- *** A transgene that is floxed. ***
  7105. --- ************************************************
  7106. ---
  7107. CREATE VIEW floxed_gene AS
  7108. SELECT
  7109. feature_id AS floxed_gene_id,
  7110. feature.*
  7111. FROM
  7112. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7113. WHERE cvterm.name = 'floxed_gene';
  7114. --- ************************************************
  7115. --- *** relation: transposable_element_flanking_region ***
  7116. --- *** relation type: VIEW ***
  7117. --- *** ***
  7118. --- *** The region of sequence surrounding a tra ***
  7119. --- *** nsposible element. ***
  7120. --- ************************************************
  7121. ---
  7122. CREATE VIEW transposable_element_flanking_region AS
  7123. SELECT
  7124. feature_id AS transposable_element_flanking_region_id,
  7125. feature.*
  7126. FROM
  7127. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7128. WHERE cvterm.name = 'transposable_element_flanking_region';
  7129. --- ************************************************
  7130. --- *** relation: integron ***
  7131. --- *** relation type: VIEW ***
  7132. --- *** ***
  7133. --- *** A region encoding an integrase which act ***
  7134. --- *** s at a site adjacent to it (attI_site) t ***
  7135. --- *** o insert DNA which must include but is n ***
  7136. --- *** ot limited to an attC_site. ***
  7137. --- ************************************************
  7138. ---
  7139. CREATE VIEW integron AS
  7140. SELECT
  7141. feature_id AS integron_id,
  7142. feature.*
  7143. FROM
  7144. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7145. WHERE cvterm.name = 'integron';
  7146. --- ************************************************
  7147. --- *** relation: insertion_site ***
  7148. --- *** relation type: VIEW ***
  7149. --- *** ***
  7150. --- *** The junction where an insertion occurred ***
  7151. --- *** . ***
  7152. --- ************************************************
  7153. ---
  7154. CREATE VIEW insertion_site AS
  7155. SELECT
  7156. feature_id AS insertion_site_id,
  7157. feature.*
  7158. FROM
  7159. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7160. WHERE cvterm.name = 'transposable_element_insertion_site' OR cvterm.name = 'insertion_site';
  7161. --- ************************************************
  7162. --- *** relation: atti_site ***
  7163. --- *** relation type: VIEW ***
  7164. --- *** ***
  7165. --- *** A region within an integron, adjacent to ***
  7166. --- *** an integrase, at which site specific re ***
  7167. --- *** combination involving an attC_site takes ***
  7168. --- *** place. ***
  7169. --- ************************************************
  7170. ---
  7171. CREATE VIEW atti_site AS
  7172. SELECT
  7173. feature_id AS atti_site_id,
  7174. feature.*
  7175. FROM
  7176. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7177. WHERE cvterm.name = 'attI_site';
  7178. --- ************************************************
  7179. --- *** relation: transposable_element_insertion_site ***
  7180. --- *** relation type: VIEW ***
  7181. --- *** ***
  7182. --- *** The junction in a genome where a transpo ***
  7183. --- *** sable_element has inserted. ***
  7184. --- ************************************************
  7185. ---
  7186. CREATE VIEW transposable_element_insertion_site AS
  7187. SELECT
  7188. feature_id AS transposable_element_insertion_site_id,
  7189. feature.*
  7190. FROM
  7191. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7192. WHERE cvterm.name = 'transposable_element_insertion_site';
  7193. --- ************************************************
  7194. --- *** relation: small_regulatory_ncrna ***
  7195. --- *** relation type: VIEW ***
  7196. --- *** ***
  7197. --- *** A non-coding RNA, usually with a specifi ***
  7198. --- *** c secondary structure, that acts to regu ***
  7199. --- *** late gene expression. ***
  7200. --- ************************************************
  7201. ---
  7202. CREATE VIEW small_regulatory_ncrna AS
  7203. SELECT
  7204. feature_id AS small_regulatory_ncrna_id,
  7205. feature.*
  7206. FROM
  7207. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7208. 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';
  7209. --- ************************************************
  7210. --- *** relation: conjugative_transposon ***
  7211. --- *** relation type: VIEW ***
  7212. --- *** ***
  7213. --- *** A transposon that encodes function requi ***
  7214. --- *** red for conjugation. ***
  7215. --- ************************************************
  7216. ---
  7217. CREATE VIEW conjugative_transposon AS
  7218. SELECT
  7219. feature_id AS conjugative_transposon_id,
  7220. feature.*
  7221. FROM
  7222. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7223. WHERE cvterm.name = 'conjugative_transposon';
  7224. --- ************************************************
  7225. --- *** relation: enzymatic_rna ***
  7226. --- *** relation type: VIEW ***
  7227. --- *** ***
  7228. --- *** An RNA sequence that has catalytic activ ***
  7229. --- *** ity with or without an associated ribonu ***
  7230. --- *** cleoprotein. ***
  7231. --- ************************************************
  7232. ---
  7233. CREATE VIEW enzymatic_rna AS
  7234. SELECT
  7235. feature_id AS enzymatic_rna_id,
  7236. feature.*
  7237. FROM
  7238. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7239. WHERE cvterm.name = 'ribozyme' OR cvterm.name = 'enzymatic_RNA';
  7240. --- ************************************************
  7241. --- *** relation: recombinationally_inverted_gene ***
  7242. --- *** relation type: VIEW ***
  7243. --- *** ***
  7244. --- *** A recombinationally rearranged gene by i ***
  7245. --- *** nversion. ***
  7246. --- ************************************************
  7247. ---
  7248. CREATE VIEW recombinationally_inverted_gene AS
  7249. SELECT
  7250. feature_id AS recombinationally_inverted_gene_id,
  7251. feature.*
  7252. FROM
  7253. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7254. WHERE cvterm.name = 'recombinationally_inverted_gene';
  7255. --- ************************************************
  7256. --- *** relation: ribozyme ***
  7257. --- *** relation type: VIEW ***
  7258. --- *** ***
  7259. --- *** An RNA with catalytic activity. ***
  7260. --- ************************************************
  7261. ---
  7262. CREATE VIEW ribozyme AS
  7263. SELECT
  7264. feature_id AS ribozyme_id,
  7265. feature.*
  7266. FROM
  7267. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7268. WHERE cvterm.name = 'ribozyme';
  7269. --- ************************************************
  7270. --- *** relation: rrna_5_8s ***
  7271. --- *** relation type: VIEW ***
  7272. --- *** ***
  7273. --- *** 5_8S ribosomal RNA (5. 8S rRNA) is a com ***
  7274. --- *** ponent of the large subunit of the eukar ***
  7275. --- *** yotic ribosome. It is transcribed by RNA ***
  7276. --- *** polymerase I as part of the 45S precurs ***
  7277. --- *** or that also contains 18S and 28S rRNA. ***
  7278. --- *** Functionally, it is thought that 5.8S rR ***
  7279. --- *** NA may be involved in ribosome transloca ***
  7280. --- *** tion. It is also known to form covalent ***
  7281. --- *** linkage to the p53 tumour suppressor pro ***
  7282. --- *** tein. 5_8S rRNA is also found in archaea ***
  7283. --- *** . ***
  7284. --- ************************************************
  7285. ---
  7286. CREATE VIEW rrna_5_8s AS
  7287. SELECT
  7288. feature_id AS rrna_5_8s_id,
  7289. feature.*
  7290. FROM
  7291. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7292. WHERE cvterm.name = 'rRNA_5_8S';
  7293. --- ************************************************
  7294. --- *** relation: rna_6s ***
  7295. --- *** relation type: VIEW ***
  7296. --- *** ***
  7297. --- *** A small (184-nt in E. coli) RNA that for ***
  7298. --- *** ms a hairpin type structure. 6S RNA asso ***
  7299. --- *** ciates with RNA polymerase in a highly s ***
  7300. --- *** pecific manner. 6S RNA represses express ***
  7301. --- *** ion from a sigma70-dependent promoter du ***
  7302. --- *** ring stationary phase. ***
  7303. --- ************************************************
  7304. ---
  7305. CREATE VIEW rna_6s AS
  7306. SELECT
  7307. feature_id AS rna_6s_id,
  7308. feature.*
  7309. FROM
  7310. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7311. WHERE cvterm.name = 'RNA_6S';
  7312. --- ************************************************
  7313. --- *** relation: csrb_rsmb_rna ***
  7314. --- *** relation type: VIEW ***
  7315. --- *** ***
  7316. --- *** An enterobacterial RNA that binds the Cs ***
  7317. --- *** rA protein. The CsrB RNAs contain a cons ***
  7318. --- *** erved motif CAGGXXG that is found in up ***
  7319. --- *** to 18 copies and has been suggested to b ***
  7320. --- *** ind CsrA. The Csr regulatory system has ***
  7321. --- *** a strong negative regulatory effect on g ***
  7322. --- *** lycogen biosynthesis, glyconeogenesis an ***
  7323. --- *** d glycogen catabolism and a positive reg ***
  7324. --- *** ulatory effect on glycolysis. In other b ***
  7325. --- *** acteria such as Erwinia caratovara the R ***
  7326. --- *** smA protein has been shown to regulate t ***
  7327. --- *** he production of virulence determinants, ***
  7328. --- *** such extracellular enzymes. RsmA binds ***
  7329. --- *** to RsmB regulatory RNA which is also a m ***
  7330. --- *** ember of this family. ***
  7331. --- ************************************************
  7332. ---
  7333. CREATE VIEW csrb_rsmb_rna AS
  7334. SELECT
  7335. feature_id AS csrb_rsmb_rna_id,
  7336. feature.*
  7337. FROM
  7338. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7339. WHERE cvterm.name = 'CsrB_RsmB_RNA';
  7340. --- ************************************************
  7341. --- *** relation: dsra_rna ***
  7342. --- *** relation type: VIEW ***
  7343. --- *** ***
  7344. --- *** DsrA RNA regulates both transcription, b ***
  7345. --- *** y overcoming transcriptional silencing b ***
  7346. --- *** y the nucleoid-associated H-NS protein, ***
  7347. --- *** and translation, by promoting efficient ***
  7348. --- *** translation of the stress sigma factor, ***
  7349. --- *** RpoS. These two activities of DsrA can b ***
  7350. --- *** e separated by mutation: the first of th ***
  7351. --- *** ree stem-loops of the 85 nucleotide RNA ***
  7352. --- *** is necessary for RpoS translation but no ***
  7353. --- *** t for anti-H-NS action, while the second ***
  7354. --- *** stem-loop is essential for antisilencin ***
  7355. --- *** g and less critical for RpoS translation ***
  7356. --- *** . The third stem-loop, which behaves as ***
  7357. --- *** a transcription terminator, can be subst ***
  7358. --- *** ituted by the trp transcription terminat ***
  7359. --- *** or without loss of either DsrA function. ***
  7360. --- *** The sequence of the first stem-loop of ***
  7361. --- *** DsrA is complementary with the upstream ***
  7362. --- *** leader portion of RpoS messenger RNA, su ***
  7363. --- *** ggesting that pairing of DsrA with the R ***
  7364. --- *** poS message might be important for trans ***
  7365. --- *** lational regulation. ***
  7366. --- ************************************************
  7367. ---
  7368. CREATE VIEW dsra_rna AS
  7369. SELECT
  7370. feature_id AS dsra_rna_id,
  7371. feature.*
  7372. FROM
  7373. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7374. WHERE cvterm.name = 'GcvB_RNA' OR cvterm.name = 'DsrA_RNA';
  7375. --- ************************************************
  7376. --- *** relation: gcvb_rna ***
  7377. --- *** relation type: VIEW ***
  7378. --- *** ***
  7379. --- *** A small untranslated RNA involved in exp ***
  7380. --- *** ression of the dipeptide and oligopeptid ***
  7381. --- *** e transport systems in Escherichia coli. ***
  7382. --- ************************************************
  7383. ---
  7384. CREATE VIEW gcvb_rna AS
  7385. SELECT
  7386. feature_id AS gcvb_rna_id,
  7387. feature.*
  7388. FROM
  7389. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7390. WHERE cvterm.name = 'GcvB_RNA';
  7391. --- ************************************************
  7392. --- *** relation: hammerhead_ribozyme ***
  7393. --- *** relation type: VIEW ***
  7394. --- *** ***
  7395. --- *** A small catalytic RNA motif that catalyz ***
  7396. --- *** es self-cleavage reaction. Its name come ***
  7397. --- *** s from its secondary structure which res ***
  7398. --- *** embles a carpenter's hammer. The hammerh ***
  7399. --- *** ead ribozyme is involved in the replicat ***
  7400. --- *** ion of some viroid and some satellite RN ***
  7401. --- *** As. ***
  7402. --- ************************************************
  7403. ---
  7404. CREATE VIEW hammerhead_ribozyme AS
  7405. SELECT
  7406. feature_id AS hammerhead_ribozyme_id,
  7407. feature.*
  7408. FROM
  7409. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7410. WHERE cvterm.name = 'hammerhead_ribozyme';
  7411. --- ************************************************
  7412. --- *** relation: group_iia_intron ***
  7413. --- *** relation type: VIEW ***
  7414. --- *** ***
  7415. --- ************************************************
  7416. ---
  7417. CREATE VIEW group_iia_intron AS
  7418. SELECT
  7419. feature_id AS group_iia_intron_id,
  7420. feature.*
  7421. FROM
  7422. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7423. WHERE cvterm.name = 'group_IIA_intron';
  7424. --- ************************************************
  7425. --- *** relation: group_iib_intron ***
  7426. --- *** relation type: VIEW ***
  7427. --- *** ***
  7428. --- ************************************************
  7429. ---
  7430. CREATE VIEW group_iib_intron AS
  7431. SELECT
  7432. feature_id AS group_iib_intron_id,
  7433. feature.*
  7434. FROM
  7435. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7436. WHERE cvterm.name = 'group_IIB_intron';
  7437. --- ************************************************
  7438. --- *** relation: micf_rna ***
  7439. --- *** relation type: VIEW ***
  7440. --- *** ***
  7441. --- *** A non-translated 93 nt antisense RNA tha ***
  7442. --- *** t binds its target ompF mRNA and regulat ***
  7443. --- *** es ompF expression by inhibiting transla ***
  7444. --- *** tion and inducing degradation of the mes ***
  7445. --- *** sage. ***
  7446. --- ************************************************
  7447. ---
  7448. CREATE VIEW micf_rna AS
  7449. SELECT
  7450. feature_id AS micf_rna_id,
  7451. feature.*
  7452. FROM
  7453. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7454. WHERE cvterm.name = 'MicF_RNA';
  7455. --- ************************************************
  7456. --- *** relation: oxys_rna ***
  7457. --- *** relation type: VIEW ***
  7458. --- *** ***
  7459. --- *** A small untranslated RNA which is induce ***
  7460. --- *** d in response to oxidative stress in Esc ***
  7461. --- *** herichia coli. Acts as a global regulato ***
  7462. --- *** r to activate or repress the expression ***
  7463. --- *** of as many as 40 genes, including the fh ***
  7464. --- *** lA-encoded transcriptional activator and ***
  7465. --- *** the rpoS-encoded sigma(s) subunit of RN ***
  7466. --- *** A polymerase. OxyS is bound by the Hfq p ***
  7467. --- *** rotein, that increases the OxyS RNA inte ***
  7468. --- *** raction with its target messages. ***
  7469. --- ************************************************
  7470. ---
  7471. CREATE VIEW oxys_rna AS
  7472. SELECT
  7473. feature_id AS oxys_rna_id,
  7474. feature.*
  7475. FROM
  7476. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7477. WHERE cvterm.name = 'OxyS_RNA';
  7478. --- ************************************************
  7479. --- *** relation: rnase_mrp_rna ***
  7480. --- *** relation type: VIEW ***
  7481. --- *** ***
  7482. --- *** The RNA molecule essential for the catal ***
  7483. --- *** ytic activity of RNase MRP, an enzymatic ***
  7484. --- *** ally active ribonucleoprotein with two d ***
  7485. --- *** istinct roles in eukaryotes. In mitochon ***
  7486. --- *** dria it plays a direct role in the initi ***
  7487. --- *** ation of mitochondrial DNA replication. ***
  7488. --- *** In the nucleus it is involved in precurs ***
  7489. --- *** or rRNA processing, where it cleaves the ***
  7490. --- *** internal transcribed spacer 1 between 1 ***
  7491. --- *** 8S and 5.8S rRNAs. ***
  7492. --- ************************************************
  7493. ---
  7494. CREATE VIEW rnase_mrp_rna AS
  7495. SELECT
  7496. feature_id AS rnase_mrp_rna_id,
  7497. feature.*
  7498. FROM
  7499. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7500. WHERE cvterm.name = 'RNase_MRP_RNA';
  7501. --- ************************************************
  7502. --- *** relation: rnase_p_rna ***
  7503. --- *** relation type: VIEW ***
  7504. --- *** ***
  7505. --- *** The RNA component of Ribonuclease P (RNa ***
  7506. --- *** se P), a ubiquitous endoribonuclease, fo ***
  7507. --- *** und in archaea, bacteria and eukarya as ***
  7508. --- *** well as chloroplasts and mitochondria. I ***
  7509. --- *** ts best characterised activity is the ge ***
  7510. --- *** neration of mature 5 prime ends of tRNAs ***
  7511. --- *** by cleaving the 5 prime leader elements ***
  7512. --- *** of precursor-tRNAs. Cellular RNase Ps a ***
  7513. --- *** re ribonucleoproteins. RNA from bacteria ***
  7514. --- *** l RNase Ps retains its catalytic activit ***
  7515. --- *** y in the absence of the protein subunit, ***
  7516. --- *** i.e. it is a ribozyme. Isolated eukaryo ***
  7517. --- *** tic and archaeal RNase P RNA has not bee ***
  7518. --- *** n shown to retain its catalytic function ***
  7519. --- *** , but is still essential for the catalyt ***
  7520. --- *** ic activity of the holoenzyme. Although ***
  7521. --- *** the archaeal and eukaryotic holoenzymes ***
  7522. --- *** have a much greater protein content than ***
  7523. --- *** the bacterial ones, the RNA cores from ***
  7524. --- *** all the three lineages are homologous. H ***
  7525. --- *** elices corresponding to P1, P2, P3, P4, ***
  7526. --- *** and P10/11 are common to all cellular RN ***
  7527. --- *** ase P RNAs. Yet, there is considerable s ***
  7528. --- *** equence variation, particularly among th ***
  7529. --- *** e eukaryotic RNAs. ***
  7530. --- ************************************************
  7531. ---
  7532. CREATE VIEW rnase_p_rna AS
  7533. SELECT
  7534. feature_id AS rnase_p_rna_id,
  7535. feature.*
  7536. FROM
  7537. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7538. WHERE cvterm.name = 'RNase_P_RNA';
  7539. --- ************************************************
  7540. --- *** relation: rpra_rna ***
  7541. --- *** relation type: VIEW ***
  7542. --- *** ***
  7543. --- *** Translational regulation of the stationa ***
  7544. --- *** ry phase sigma factor RpoS is mediated b ***
  7545. --- *** y the formation of a double-stranded RNA ***
  7546. --- *** stem-loop structure in the upstream reg ***
  7547. --- *** ion of the rpoS messenger RNA, occluding ***
  7548. --- *** the translation initiation site. Clones ***
  7549. --- *** carrying rprA (RpoS regulator RNA) incr ***
  7550. --- *** eased the translation of RpoS. The rprA ***
  7551. --- *** gene encodes a 106 nucleotide regulatory ***
  7552. --- *** RNA. As with DsrA Rfam:RF00014, RprA is ***
  7553. --- *** predicted to form three stem-loops. Thu ***
  7554. --- *** s, at least two small RNAs, DsrA and Rpr ***
  7555. --- *** A, participate in the positive regulatio ***
  7556. --- *** n of RpoS translation. Unlike DsrA, RprA ***
  7557. --- *** does not have an extensive region of co ***
  7558. --- *** mplementarity to the RpoS leader, leavin ***
  7559. --- *** g its mechanism of action unclear. RprA ***
  7560. --- *** is non-essential. ***
  7561. --- ************************************************
  7562. ---
  7563. CREATE VIEW rpra_rna AS
  7564. SELECT
  7565. feature_id AS rpra_rna_id,
  7566. feature.*
  7567. FROM
  7568. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7569. WHERE cvterm.name = 'RprA_RNA';
  7570. --- ************************************************
  7571. --- *** relation: rre_rna ***
  7572. --- *** relation type: VIEW ***
  7573. --- *** ***
  7574. --- *** The Rev response element (RRE) is encode ***
  7575. --- *** d within the HIV-env gene. Rev is an ess ***
  7576. --- *** ential regulatory protein of HIV that bi ***
  7577. --- *** nds an internal loop of the RRE leading, ***
  7578. --- *** encouraging further Rev-RRE binding. Th ***
  7579. --- *** is RNP complex is critical for mRNA expo ***
  7580. --- *** rt and hence for expression of the HIV s ***
  7581. --- *** tructural proteins. ***
  7582. --- ************************************************
  7583. ---
  7584. CREATE VIEW rre_rna AS
  7585. SELECT
  7586. feature_id AS rre_rna_id,
  7587. feature.*
  7588. FROM
  7589. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7590. WHERE cvterm.name = 'RRE_RNA';
  7591. --- ************************************************
  7592. --- *** relation: spot_42_rna ***
  7593. --- *** relation type: VIEW ***
  7594. --- *** ***
  7595. --- *** A 109-nucleotide RNA of E. coli that see ***
  7596. --- *** ms to have a regulatory role on the gala ***
  7597. --- *** ctose operon. Changes in Spot 42 levels ***
  7598. --- *** are implicated in affecting DNA polymera ***
  7599. --- *** se I levels. ***
  7600. --- ************************************************
  7601. ---
  7602. CREATE VIEW spot_42_rna AS
  7603. SELECT
  7604. feature_id AS spot_42_rna_id,
  7605. feature.*
  7606. FROM
  7607. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7608. WHERE cvterm.name = 'spot_42_RNA';
  7609. --- ************************************************
  7610. --- *** relation: telomerase_rna ***
  7611. --- *** relation type: VIEW ***
  7612. --- *** ***
  7613. --- *** The RNA component of telomerase, a rever ***
  7614. --- *** se transcriptase that synthesises telome ***
  7615. --- *** ric DNA. ***
  7616. --- ************************************************
  7617. ---
  7618. CREATE VIEW telomerase_rna AS
  7619. SELECT
  7620. feature_id AS telomerase_rna_id,
  7621. feature.*
  7622. FROM
  7623. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7624. WHERE cvterm.name = 'telomerase_RNA';
  7625. --- ************************************************
  7626. --- *** relation: u1_snrna ***
  7627. --- *** relation type: VIEW ***
  7628. --- *** ***
  7629. --- *** U1 is a small nuclear RNA (snRNA) compon ***
  7630. --- *** ent of the spliceosome (involved in pre- ***
  7631. --- *** mRNA splicing). Its 5' end forms complem ***
  7632. --- *** entary base pairs with the 5' splice jun ***
  7633. --- *** ction, thus defining the 5' donor site o ***
  7634. --- *** f an intron. There are significant diffe ***
  7635. --- *** rences in sequence and secondary structu ***
  7636. --- *** re between metazoan and yeast U1 snRNAs, ***
  7637. --- *** the latter being much longer (568 nucle ***
  7638. --- *** otides as compared to 164 nucleotides in ***
  7639. --- *** human). Nevertheless, secondary structu ***
  7640. --- *** re predictions suggest that all U1 snRNA ***
  7641. --- *** s share a 'common core' consisting of he ***
  7642. --- *** lices I, II, the proximal region of III, ***
  7643. --- *** and IV. ***
  7644. --- ************************************************
  7645. ---
  7646. CREATE VIEW u1_snrna AS
  7647. SELECT
  7648. feature_id AS u1_snrna_id,
  7649. feature.*
  7650. FROM
  7651. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7652. WHERE cvterm.name = 'U1_snRNA';
  7653. --- ************************************************
  7654. --- *** relation: u2_snrna ***
  7655. --- *** relation type: VIEW ***
  7656. --- *** ***
  7657. --- *** U2 is a small nuclear RNA (snRNA) compon ***
  7658. --- *** ent of the spliceosome (involved in pre- ***
  7659. --- *** mRNA splicing). Complementary binding be ***
  7660. --- *** tween U2 snRNA (in an area lying towards ***
  7661. --- *** the 5' end but 3' to hairpin I) and the ***
  7662. --- *** branchpoint sequence (BPS) of the intro ***
  7663. --- *** n results in the bulging out of an unpai ***
  7664. --- *** red adenine, on the BPS, which initiates ***
  7665. --- *** a nucleophilic attack at the intronic 5 ***
  7666. --- *** ' splice site, thus starting the first o ***
  7667. --- *** f two transesterification reactions that ***
  7668. --- *** mediate splicing. ***
  7669. --- ************************************************
  7670. ---
  7671. CREATE VIEW u2_snrna AS
  7672. SELECT
  7673. feature_id AS u2_snrna_id,
  7674. feature.*
  7675. FROM
  7676. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7677. WHERE cvterm.name = 'U2_snRNA';
  7678. --- ************************************************
  7679. --- *** relation: u4_snrna ***
  7680. --- *** relation type: VIEW ***
  7681. --- *** ***
  7682. --- *** U4 small nuclear RNA (U4 snRNA) is a com ***
  7683. --- *** ponent of the major U2-dependent spliceo ***
  7684. --- *** some. It forms a duplex with U6, and wit ***
  7685. --- *** h each splicing round, it is displaced f ***
  7686. --- *** rom U6 (and the spliceosome) in an ATP-d ***
  7687. --- *** ependent manner, allowing U6 to refold a ***
  7688. --- *** nd create the active site for splicing c ***
  7689. --- *** atalysis. A recycling process involving ***
  7690. --- *** protein Prp24 re-anneals U4 and U6. ***
  7691. --- ************************************************
  7692. ---
  7693. CREATE VIEW u4_snrna AS
  7694. SELECT
  7695. feature_id AS u4_snrna_id,
  7696. feature.*
  7697. FROM
  7698. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7699. WHERE cvterm.name = 'U4_snRNA';
  7700. --- ************************************************
  7701. --- *** relation: u4atac_snrna ***
  7702. --- *** relation type: VIEW ***
  7703. --- *** ***
  7704. --- *** An snRNA required for the splicing of th ***
  7705. --- *** e minor U12-dependent class of eukaryoti ***
  7706. --- *** c nuclear introns. It forms a base paire ***
  7707. --- *** d complex with U6atac_snRNA (SO:0000397) ***
  7708. --- *** . ***
  7709. --- ************************************************
  7710. ---
  7711. CREATE VIEW u4atac_snrna AS
  7712. SELECT
  7713. feature_id AS u4atac_snrna_id,
  7714. feature.*
  7715. FROM
  7716. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7717. WHERE cvterm.name = 'U4atac_snRNA';
  7718. --- ************************************************
  7719. --- *** relation: u5_snrna ***
  7720. --- *** relation type: VIEW ***
  7721. --- *** ***
  7722. --- *** U5 RNA is a component of both types of k ***
  7723. --- *** nown spliceosome. The precise function o ***
  7724. --- *** f this molecule is unknown, though it is ***
  7725. --- *** known that the 5' loop is required for ***
  7726. --- *** splice site selection and p220 binding, ***
  7727. --- *** and that both the 3' stem-loop and the S ***
  7728. --- *** m site are important for Sm protein bind ***
  7729. --- *** ing and cap methylation. ***
  7730. --- ************************************************
  7731. ---
  7732. CREATE VIEW u5_snrna AS
  7733. SELECT
  7734. feature_id AS u5_snrna_id,
  7735. feature.*
  7736. FROM
  7737. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7738. WHERE cvterm.name = 'U5_snRNA';
  7739. --- ************************************************
  7740. --- *** relation: u6_snrna ***
  7741. --- *** relation type: VIEW ***
  7742. --- *** ***
  7743. --- *** U6 snRNA is a component of the spliceoso ***
  7744. --- *** me which is involved in splicing pre-mRN ***
  7745. --- *** A. The putative secondary structure cons ***
  7746. --- *** ensus base pairing is confined to a shor ***
  7747. --- *** t 5' stem loop, but U6 snRNA is thought ***
  7748. --- *** to form extensive base-pair interactions ***
  7749. --- *** with U4 snRNA. ***
  7750. --- ************************************************
  7751. ---
  7752. CREATE VIEW u6_snrna AS
  7753. SELECT
  7754. feature_id AS u6_snrna_id,
  7755. feature.*
  7756. FROM
  7757. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7758. WHERE cvterm.name = 'U6_snRNA';
  7759. --- ************************************************
  7760. --- *** relation: u6atac_snrna ***
  7761. --- *** relation type: VIEW ***
  7762. --- *** ***
  7763. --- *** U6atac_snRNA is an snRNA required for th ***
  7764. --- *** e splicing of the minor U12-dependent cl ***
  7765. --- *** ass of eukaryotic nuclear introns. It fo ***
  7766. --- *** rms a base paired complex with U4atac_sn ***
  7767. --- *** RNA (SO:0000394). ***
  7768. --- ************************************************
  7769. ---
  7770. CREATE VIEW u6atac_snrna AS
  7771. SELECT
  7772. feature_id AS u6atac_snrna_id,
  7773. feature.*
  7774. FROM
  7775. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7776. WHERE cvterm.name = 'U6atac_snRNA';
  7777. --- ************************************************
  7778. --- *** relation: u11_snrna ***
  7779. --- *** relation type: VIEW ***
  7780. --- *** ***
  7781. --- *** U11 snRNA plays a role in splicing of th ***
  7782. --- *** e minor U12-dependent class of eukaryoti ***
  7783. --- *** c nuclear introns, similar to U1 snRNA i ***
  7784. --- *** n the major class spliceosome it base pa ***
  7785. --- *** irs to the conserved 5' splice site sequ ***
  7786. --- *** ence. ***
  7787. --- ************************************************
  7788. ---
  7789. CREATE VIEW u11_snrna AS
  7790. SELECT
  7791. feature_id AS u11_snrna_id,
  7792. feature.*
  7793. FROM
  7794. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7795. WHERE cvterm.name = 'U11_snRNA';
  7796. --- ************************************************
  7797. --- *** relation: u12_snrna ***
  7798. --- *** relation type: VIEW ***
  7799. --- *** ***
  7800. --- *** The U12 small nuclear (snRNA), together ***
  7801. --- *** with U4atac/U6atac, U5, and U11 snRNAs a ***
  7802. --- *** nd associated proteins, forms a spliceos ***
  7803. --- *** ome that cleaves a divergent class of lo ***
  7804. --- *** w-abundance pre-mRNA introns. ***
  7805. --- ************************************************
  7806. ---
  7807. CREATE VIEW u12_snrna AS
  7808. SELECT
  7809. feature_id AS u12_snrna_id,
  7810. feature.*
  7811. FROM
  7812. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7813. WHERE cvterm.name = 'U12_snRNA';
  7814. --- ************************************************
  7815. --- *** relation: sequence_attribute ***
  7816. --- *** relation type: VIEW ***
  7817. --- *** ***
  7818. --- *** An attribute describes a quality of sequ ***
  7819. --- *** ence. ***
  7820. --- ************************************************
  7821. ---
  7822. CREATE VIEW sequence_attribute AS
  7823. SELECT
  7824. feature_id AS sequence_attribute_id,
  7825. feature.*
  7826. FROM
  7827. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7828. 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';
  7829. --- ************************************************
  7830. --- *** relation: gene_attribute ***
  7831. --- *** relation type: VIEW ***
  7832. --- *** ***
  7833. --- ************************************************
  7834. ---
  7835. CREATE VIEW gene_attribute AS
  7836. SELECT
  7837. feature_id AS gene_attribute_id,
  7838. feature.*
  7839. FROM
  7840. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7841. 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';
  7842. --- ************************************************
  7843. --- *** relation: u14_snorna ***
  7844. --- *** relation type: VIEW ***
  7845. --- *** ***
  7846. --- *** U14 small nucleolar RNA (U14 snoRNA) is ***
  7847. --- *** required for early cleavages of eukaryot ***
  7848. --- *** ic precursor rRNAs. In yeasts, this mole ***
  7849. --- *** cule possess a stem-loop region (known a ***
  7850. --- *** s the Y-domain) which is essential for f ***
  7851. --- *** unction. A similar structure, but with a ***
  7852. --- *** different consensus sequence, is found ***
  7853. --- *** in plants, but is absent in vertebrates. ***
  7854. --- ************************************************
  7855. ---
  7856. CREATE VIEW u14_snorna AS
  7857. SELECT
  7858. feature_id AS u14_snorna_id,
  7859. feature.*
  7860. FROM
  7861. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7862. WHERE cvterm.name = 'U14_snoRNA';
  7863. --- ************************************************
  7864. --- *** relation: vault_rna ***
  7865. --- *** relation type: VIEW ***
  7866. --- *** ***
  7867. --- *** A family of RNAs are found as part of th ***
  7868. --- *** e enigmatic vault ribonucleoprotein comp ***
  7869. --- *** lex. The complex consists of a major vau ***
  7870. --- *** lt protein (MVP), two minor vault protei ***
  7871. --- *** ns (VPARP and TEP1), and several small u ***
  7872. --- *** ntranslated RNA molecules. It has been s ***
  7873. --- *** uggested that the vault complex is invol ***
  7874. --- *** ved in drug resistance. ***
  7875. --- ************************************************
  7876. ---
  7877. CREATE VIEW vault_rna AS
  7878. SELECT
  7879. feature_id AS vault_rna_id,
  7880. feature.*
  7881. FROM
  7882. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7883. WHERE cvterm.name = 'vault_RNA';
  7884. --- ************************************************
  7885. --- *** relation: y_rna ***
  7886. --- *** relation type: VIEW ***
  7887. --- *** ***
  7888. --- *** Y RNAs are components of the Ro ribonucl ***
  7889. --- *** eoprotein particle (Ro RNP), in associat ***
  7890. --- *** ion with Ro60 and La proteins. The Y RNA ***
  7891. --- *** s and Ro60 and La proteins are well cons ***
  7892. --- *** erved, but the function of the Ro RNP is ***
  7893. --- *** not known. In humans the RNA component ***
  7894. --- *** can be one of four small RNAs: hY1, hY3, ***
  7895. --- *** hY4 and hY5. These small RNAs are predi ***
  7896. --- *** cted to fold into a conserved secondary ***
  7897. --- *** structure containing three stem structur ***
  7898. --- *** es. The largest of the four, hY1, contai ***
  7899. --- *** ns an additional hairpin. ***
  7900. --- ************************************************
  7901. ---
  7902. CREATE VIEW y_rna AS
  7903. SELECT
  7904. feature_id AS y_rna_id,
  7905. feature.*
  7906. FROM
  7907. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7908. WHERE cvterm.name = 'Y_RNA';
  7909. --- ************************************************
  7910. --- *** relation: twintron ***
  7911. --- *** relation type: VIEW ***
  7912. --- *** ***
  7913. --- *** An intron within an intron. Twintrons ar ***
  7914. --- *** e group II or III introns, into which an ***
  7915. --- *** other group II or III intron has been tr ***
  7916. --- *** ansposed. ***
  7917. --- ************************************************
  7918. ---
  7919. CREATE VIEW twintron AS
  7920. SELECT
  7921. feature_id AS twintron_id,
  7922. feature.*
  7923. FROM
  7924. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7925. WHERE cvterm.name = 'twintron';
  7926. --- ************************************************
  7927. --- *** relation: rrna_18s ***
  7928. --- *** relation type: VIEW ***
  7929. --- *** ***
  7930. --- *** A large polynucleotide in eukaryotes, wh ***
  7931. --- *** ich functions as the small subunit of th ***
  7932. --- *** e ribosome. ***
  7933. --- ************************************************
  7934. ---
  7935. CREATE VIEW rrna_18s AS
  7936. SELECT
  7937. feature_id AS rrna_18s_id,
  7938. feature.*
  7939. FROM
  7940. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7941. WHERE cvterm.name = 'rRNA_18S';
  7942. --- ************************************************
  7943. --- *** relation: binding_site ***
  7944. --- *** relation type: VIEW ***
  7945. --- *** ***
  7946. --- *** A region on the surface of a molecule th ***
  7947. --- *** at may interact with another molecule. W ***
  7948. --- *** hen applied to polypeptides: Amino acids ***
  7949. --- *** involved in binding or interactions. It ***
  7950. --- *** can also apply to an amino acid bond wh ***
  7951. --- *** ich is represented by the positions of t ***
  7952. --- *** he two flanking amino acids. ***
  7953. --- ************************************************
  7954. ---
  7955. CREATE VIEW binding_site AS
  7956. SELECT
  7957. feature_id AS binding_site_id,
  7958. feature.*
  7959. FROM
  7960. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7961. 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';
  7962. --- ************************************************
  7963. --- *** relation: protein_binding_site ***
  7964. --- *** relation type: VIEW ***
  7965. --- *** ***
  7966. --- *** A region of a molecule that binds to a p ***
  7967. --- *** rotein. ***
  7968. --- ************************************************
  7969. ---
  7970. CREATE VIEW protein_binding_site AS
  7971. SELECT
  7972. feature_id AS protein_binding_site_id,
  7973. feature.*
  7974. FROM
  7975. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7976. 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';
  7977. --- ************************************************
  7978. --- *** relation: rescue_region ***
  7979. --- *** relation type: VIEW ***
  7980. --- *** ***
  7981. --- *** A region that rescues. ***
  7982. --- ************************************************
  7983. ---
  7984. CREATE VIEW rescue_region AS
  7985. SELECT
  7986. feature_id AS rescue_region_id,
  7987. feature.*
  7988. FROM
  7989. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7990. WHERE cvterm.name = 'engineered_rescue_region' OR cvterm.name = 'rescue_region';
  7991. --- ************************************************
  7992. --- *** relation: restriction_fragment ***
  7993. --- *** relation type: VIEW ***
  7994. --- *** ***
  7995. --- *** A region of polynucleotide sequence prod ***
  7996. --- *** uced by digestion with a restriction end ***
  7997. --- *** onuclease. ***
  7998. --- ************************************************
  7999. ---
  8000. CREATE VIEW restriction_fragment AS
  8001. SELECT
  8002. feature_id AS restriction_fragment_id,
  8003. feature.*
  8004. FROM
  8005. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8006. WHERE cvterm.name = 'RFLP_fragment' OR cvterm.name = 'restriction_fragment';
  8007. --- ************************************************
  8008. --- *** relation: sequence_difference ***
  8009. --- *** relation type: VIEW ***
  8010. --- *** ***
  8011. --- *** A region where the sequence differs from ***
  8012. --- *** that of a specified sequence. ***
  8013. --- ************************************************
  8014. ---
  8015. CREATE VIEW sequence_difference AS
  8016. SELECT
  8017. feature_id AS sequence_difference_id,
  8018. feature.*
  8019. FROM
  8020. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8021. WHERE cvterm.name = 'possible_base_call_error' OR cvterm.name = 'possible_assembly_error' OR cvterm.name = 'sequence_difference';
  8022. --- ************************************************
  8023. --- *** relation: invalidated_by_genomic_contamination ***
  8024. --- *** relation type: VIEW ***
  8025. --- *** ***
  8026. --- *** An attribute to describe a feature that ***
  8027. --- *** is invalidated due to genomic contaminat ***
  8028. --- *** ion. ***
  8029. --- ************************************************
  8030. ---
  8031. CREATE VIEW invalidated_by_genomic_contamination AS
  8032. SELECT
  8033. feature_id AS invalidated_by_genomic_contamination_id,
  8034. feature.*
  8035. FROM
  8036. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8037. WHERE cvterm.name = 'invalidated_by_genomic_contamination';
  8038. --- ************************************************
  8039. --- *** relation: invalidated_by_genomic_polya_primed_cdna ***
  8040. --- *** relation type: VIEW ***
  8041. --- *** ***
  8042. --- *** An attribute to describe a feature that ***
  8043. --- *** is invalidated due to polyA priming. ***
  8044. --- ************************************************
  8045. ---
  8046. CREATE VIEW invalidated_by_genomic_polya_primed_cdna AS
  8047. SELECT
  8048. feature_id AS invalidated_by_genomic_polya_primed_cdna_id,
  8049. feature.*
  8050. FROM
  8051. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8052. WHERE cvterm.name = 'invalidated_by_genomic_polyA_primed_cDNA';
  8053. --- ************************************************
  8054. --- *** relation: invalidated_by_partial_processing ***
  8055. --- *** relation type: VIEW ***
  8056. --- *** ***
  8057. --- *** An attribute to describe a feature that ***
  8058. --- *** is invalidated due to partial processing ***
  8059. --- *** . ***
  8060. --- ************************************************
  8061. ---
  8062. CREATE VIEW invalidated_by_partial_processing AS
  8063. SELECT
  8064. feature_id AS invalidated_by_partial_processing_id,
  8065. feature.*
  8066. FROM
  8067. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8068. WHERE cvterm.name = 'invalidated_by_partial_processing';
  8069. --- ************************************************
  8070. --- *** relation: polypeptide_domain ***
  8071. --- *** relation type: VIEW ***
  8072. --- *** ***
  8073. --- *** A structurally or functionally defined p ***
  8074. --- *** rotein region. In proteins with multiple ***
  8075. --- *** domains, the combination of the domains ***
  8076. --- *** determines the function of the protein. ***
  8077. --- *** A region which has been shown to recur ***
  8078. --- *** throughout evolution. ***
  8079. --- ************************************************
  8080. ---
  8081. CREATE VIEW polypeptide_domain AS
  8082. SELECT
  8083. feature_id AS polypeptide_domain_id,
  8084. feature.*
  8085. FROM
  8086. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8087. WHERE cvterm.name = 'polypeptide_domain';
  8088. --- ************************************************
  8089. --- *** relation: signal_peptide ***
  8090. --- *** relation type: VIEW ***
  8091. --- *** ***
  8092. --- *** The signal_peptide is a short region of ***
  8093. --- *** the peptide located at the N-terminus th ***
  8094. --- *** at directs the protein to be secreted or ***
  8095. --- *** part of membrane components. ***
  8096. --- ************************************************
  8097. ---
  8098. CREATE VIEW signal_peptide AS
  8099. SELECT
  8100. feature_id AS signal_peptide_id,
  8101. feature.*
  8102. FROM
  8103. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8104. WHERE cvterm.name = 'signal_peptide';
  8105. --- ************************************************
  8106. --- *** relation: mature_protein_region ***
  8107. --- *** relation type: VIEW ***
  8108. --- *** ***
  8109. --- *** The polypeptide sequence that remains wh ***
  8110. --- *** en the cleaved peptide regions have been ***
  8111. --- *** cleaved from the immature peptide. ***
  8112. --- ************************************************
  8113. ---
  8114. CREATE VIEW mature_protein_region AS
  8115. SELECT
  8116. feature_id AS mature_protein_region_id,
  8117. feature.*
  8118. FROM
  8119. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8120. WHERE cvterm.name = 'active_peptide' OR cvterm.name = 'mature_protein_region';
  8121. --- ************************************************
  8122. --- *** relation: five_prime_terminal_inverted_repeat ***
  8123. --- *** relation type: VIEW ***
  8124. --- *** ***
  8125. --- ************************************************
  8126. ---
  8127. CREATE VIEW five_prime_terminal_inverted_repeat AS
  8128. SELECT
  8129. feature_id AS five_prime_terminal_inverted_repeat_id,
  8130. feature.*
  8131. FROM
  8132. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8133. WHERE cvterm.name = 'five_prime_terminal_inverted_repeat';
  8134. --- ************************************************
  8135. --- *** relation: three_prime_terminal_inverted_repeat ***
  8136. --- *** relation type: VIEW ***
  8137. --- *** ***
  8138. --- ************************************************
  8139. ---
  8140. CREATE VIEW three_prime_terminal_inverted_repeat AS
  8141. SELECT
  8142. feature_id AS three_prime_terminal_inverted_repeat_id,
  8143. feature.*
  8144. FROM
  8145. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8146. WHERE cvterm.name = 'three_prime_terminal_inverted_repeat';
  8147. --- ************************************************
  8148. --- *** relation: u5_ltr_region ***
  8149. --- *** relation type: VIEW ***
  8150. --- *** ***
  8151. --- ************************************************
  8152. ---
  8153. CREATE VIEW u5_ltr_region AS
  8154. SELECT
  8155. feature_id AS u5_ltr_region_id,
  8156. feature.*
  8157. FROM
  8158. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8159. WHERE cvterm.name = 'U5_five_prime_LTR_region' OR cvterm.name = 'U5_LTR_region';
  8160. --- ************************************************
  8161. --- *** relation: r_ltr_region ***
  8162. --- *** relation type: VIEW ***
  8163. --- *** ***
  8164. --- ************************************************
  8165. ---
  8166. CREATE VIEW r_ltr_region AS
  8167. SELECT
  8168. feature_id AS r_ltr_region_id,
  8169. feature.*
  8170. FROM
  8171. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8172. WHERE cvterm.name = 'R_five_prime_LTR_region' OR cvterm.name = 'R_LTR_region';
  8173. --- ************************************************
  8174. --- *** relation: u3_ltr_region ***
  8175. --- *** relation type: VIEW ***
  8176. --- *** ***
  8177. --- ************************************************
  8178. ---
  8179. CREATE VIEW u3_ltr_region AS
  8180. SELECT
  8181. feature_id AS u3_ltr_region_id,
  8182. feature.*
  8183. FROM
  8184. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8185. WHERE cvterm.name = 'U3_five_prime_LTR_region' OR cvterm.name = 'U3_LTR_region';
  8186. --- ************************************************
  8187. --- *** relation: five_prime_ltr ***
  8188. --- *** relation type: VIEW ***
  8189. --- *** ***
  8190. --- ************************************************
  8191. ---
  8192. CREATE VIEW five_prime_ltr AS
  8193. SELECT
  8194. feature_id AS five_prime_ltr_id,
  8195. feature.*
  8196. FROM
  8197. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8198. WHERE cvterm.name = 'five_prime_LTR';
  8199. --- ************************************************
  8200. --- *** relation: three_prime_ltr ***
  8201. --- *** relation type: VIEW ***
  8202. --- *** ***
  8203. --- ************************************************
  8204. ---
  8205. CREATE VIEW three_prime_ltr AS
  8206. SELECT
  8207. feature_id AS three_prime_ltr_id,
  8208. feature.*
  8209. FROM
  8210. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8211. WHERE cvterm.name = 'three_prime_LTR';
  8212. --- ************************************************
  8213. --- *** relation: r_five_prime_ltr_region ***
  8214. --- *** relation type: VIEW ***
  8215. --- *** ***
  8216. --- ************************************************
  8217. ---
  8218. CREATE VIEW r_five_prime_ltr_region AS
  8219. SELECT
  8220. feature_id AS r_five_prime_ltr_region_id,
  8221. feature.*
  8222. FROM
  8223. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8224. WHERE cvterm.name = 'R_five_prime_LTR_region';
  8225. --- ************************************************
  8226. --- *** relation: u5_five_prime_ltr_region ***
  8227. --- *** relation type: VIEW ***
  8228. --- *** ***
  8229. --- ************************************************
  8230. ---
  8231. CREATE VIEW u5_five_prime_ltr_region AS
  8232. SELECT
  8233. feature_id AS u5_five_prime_ltr_region_id,
  8234. feature.*
  8235. FROM
  8236. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8237. WHERE cvterm.name = 'U5_five_prime_LTR_region';
  8238. --- ************************************************
  8239. --- *** relation: u3_five_prime_ltr_region ***
  8240. --- *** relation type: VIEW ***
  8241. --- *** ***
  8242. --- ************************************************
  8243. ---
  8244. CREATE VIEW u3_five_prime_ltr_region AS
  8245. SELECT
  8246. feature_id AS u3_five_prime_ltr_region_id,
  8247. feature.*
  8248. FROM
  8249. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8250. WHERE cvterm.name = 'U3_five_prime_LTR_region';
  8251. --- ************************************************
  8252. --- *** relation: r_three_prime_ltr_region ***
  8253. --- *** relation type: VIEW ***
  8254. --- *** ***
  8255. --- ************************************************
  8256. ---
  8257. CREATE VIEW r_three_prime_ltr_region AS
  8258. SELECT
  8259. feature_id AS r_three_prime_ltr_region_id,
  8260. feature.*
  8261. FROM
  8262. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8263. WHERE cvterm.name = 'R_three_prime_LTR_region';
  8264. --- ************************************************
  8265. --- *** relation: u3_three_prime_ltr_region ***
  8266. --- *** relation type: VIEW ***
  8267. --- *** ***
  8268. --- ************************************************
  8269. ---
  8270. CREATE VIEW u3_three_prime_ltr_region AS
  8271. SELECT
  8272. feature_id AS u3_three_prime_ltr_region_id,
  8273. feature.*
  8274. FROM
  8275. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8276. WHERE cvterm.name = 'U3_three_prime_LTR_region';
  8277. --- ************************************************
  8278. --- *** relation: u5_three_prime_ltr_region ***
  8279. --- *** relation type: VIEW ***
  8280. --- *** ***
  8281. --- ************************************************
  8282. ---
  8283. CREATE VIEW u5_three_prime_ltr_region AS
  8284. SELECT
  8285. feature_id AS u5_three_prime_ltr_region_id,
  8286. feature.*
  8287. FROM
  8288. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8289. WHERE cvterm.name = 'U5_three_prime_LTR_region';
  8290. --- ************************************************
  8291. --- *** relation: non_ltr_retrotransposon_polymeric_tract ***
  8292. --- *** relation type: VIEW ***
  8293. --- *** ***
  8294. --- *** A polymeric tract, such as poly(dA), wit ***
  8295. --- *** hin a non_LTR_retrotransposon. ***
  8296. --- ************************************************
  8297. ---
  8298. CREATE VIEW non_ltr_retrotransposon_polymeric_tract AS
  8299. SELECT
  8300. feature_id AS non_ltr_retrotransposon_polymeric_tract_id,
  8301. feature.*
  8302. FROM
  8303. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8304. WHERE cvterm.name = 'non_LTR_retrotransposon_polymeric_tract';
  8305. --- ************************************************
  8306. --- *** relation: target_site_duplication ***
  8307. --- *** relation type: VIEW ***
  8308. --- *** ***
  8309. --- *** A sequence of the target DNA that is dup ***
  8310. --- *** licated when a transposable element or p ***
  8311. --- *** hage inserts; usually found at each end ***
  8312. --- *** the insertion. ***
  8313. --- ************************************************
  8314. ---
  8315. CREATE VIEW target_site_duplication AS
  8316. SELECT
  8317. feature_id AS target_site_duplication_id,
  8318. feature.*
  8319. FROM
  8320. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8321. WHERE cvterm.name = 'target_site_duplication';
  8322. --- ************************************************
  8323. --- *** relation: rr_tract ***
  8324. --- *** relation type: VIEW ***
  8325. --- *** ***
  8326. --- *** A polypurine tract within an LTR_retrotr ***
  8327. --- *** ansposon. ***
  8328. --- ************************************************
  8329. ---
  8330. CREATE VIEW rr_tract AS
  8331. SELECT
  8332. feature_id AS rr_tract_id,
  8333. feature.*
  8334. FROM
  8335. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8336. WHERE cvterm.name = 'RR_tract';
  8337. --- ************************************************
  8338. --- *** relation: ars ***
  8339. --- *** relation type: VIEW ***
  8340. --- *** ***
  8341. --- *** A sequence that can autonomously replica ***
  8342. --- *** te, as a plasmid, when transformed into ***
  8343. --- *** a bacterial host. ***
  8344. --- ************************************************
  8345. ---
  8346. CREATE VIEW ars AS
  8347. SELECT
  8348. feature_id AS ars_id,
  8349. feature.*
  8350. FROM
  8351. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8352. WHERE cvterm.name = 'ARS';
  8353. --- ************************************************
  8354. --- *** relation: inverted_ring_chromosome ***
  8355. --- *** relation type: VIEW ***
  8356. --- *** ***
  8357. --- ************************************************
  8358. ---
  8359. CREATE VIEW inverted_ring_chromosome AS
  8360. SELECT
  8361. feature_id AS inverted_ring_chromosome_id,
  8362. feature.*
  8363. FROM
  8364. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8365. WHERE cvterm.name = 'inverted_ring_chromosome';
  8366. --- ************************************************
  8367. --- *** relation: vector_replicon ***
  8368. --- *** relation type: VIEW ***
  8369. --- *** ***
  8370. --- *** A replicon that has been modified to act ***
  8371. --- *** as a vector for foreign sequence. ***
  8372. --- ************************************************
  8373. ---
  8374. CREATE VIEW vector_replicon AS
  8375. SELECT
  8376. feature_id AS vector_replicon_id,
  8377. feature.*
  8378. FROM
  8379. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8380. 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';
  8381. --- ************************************************
  8382. --- *** relation: ss_oligo ***
  8383. --- *** relation type: VIEW ***
  8384. --- *** ***
  8385. --- *** A single stranded oligonucleotide. ***
  8386. --- ************************************************
  8387. ---
  8388. CREATE VIEW ss_oligo AS
  8389. SELECT
  8390. feature_id AS ss_oligo_id,
  8391. feature.*
  8392. FROM
  8393. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8394. WHERE cvterm.name = 'primer' OR cvterm.name = 'sequencing_primer' OR cvterm.name = 'forward_primer' OR cvterm.name = 'reverse_primer' OR cvterm.name = 'ss_oligo';
  8395. --- ************************************************
  8396. --- *** relation: ds_oligo ***
  8397. --- *** relation type: VIEW ***
  8398. --- *** ***
  8399. --- *** A double stranded oligonucleotide. ***
  8400. --- ************************************************
  8401. ---
  8402. CREATE VIEW ds_oligo AS
  8403. SELECT
  8404. feature_id AS ds_oligo_id,
  8405. feature.*
  8406. FROM
  8407. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8408. WHERE cvterm.name = 'RNAi_reagent' OR cvterm.name = 'DNA_constraint_sequence' OR cvterm.name = 'ds_oligo';
  8409. --- ************************************************
  8410. --- *** relation: polymer_attribute ***
  8411. --- *** relation type: VIEW ***
  8412. --- *** ***
  8413. --- *** An attribute to describe the kind of bio ***
  8414. --- *** logical sequence. ***
  8415. --- ************************************************
  8416. ---
  8417. CREATE VIEW polymer_attribute AS
  8418. SELECT
  8419. feature_id AS polymer_attribute_id,
  8420. feature.*
  8421. FROM
  8422. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8423. 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';
  8424. --- ************************************************
  8425. --- *** relation: three_prime_noncoding_exon ***
  8426. --- *** relation type: VIEW ***
  8427. --- *** ***
  8428. --- *** Non-coding exon in the 3' UTR. ***
  8429. --- ************************************************
  8430. ---
  8431. CREATE VIEW three_prime_noncoding_exon AS
  8432. SELECT
  8433. feature_id AS three_prime_noncoding_exon_id,
  8434. feature.*
  8435. FROM
  8436. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8437. WHERE cvterm.name = 'three_prime_noncoding_exon';
  8438. --- ************************************************
  8439. --- *** relation: five_prime_noncoding_exon ***
  8440. --- *** relation type: VIEW ***
  8441. --- *** ***
  8442. --- *** Non-coding exon in the 5' UTR. ***
  8443. --- ************************************************
  8444. ---
  8445. CREATE VIEW five_prime_noncoding_exon AS
  8446. SELECT
  8447. feature_id AS five_prime_noncoding_exon_id,
  8448. feature.*
  8449. FROM
  8450. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8451. WHERE cvterm.name = 'five_prime_noncoding_exon';
  8452. --- ************************************************
  8453. --- *** relation: utr_intron ***
  8454. --- *** relation type: VIEW ***
  8455. --- *** ***
  8456. --- *** Intron located in the untranslated regio ***
  8457. --- *** n. ***
  8458. --- ************************************************
  8459. ---
  8460. CREATE VIEW utr_intron AS
  8461. SELECT
  8462. feature_id AS utr_intron_id,
  8463. feature.*
  8464. FROM
  8465. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8466. WHERE cvterm.name = 'five_prime_UTR_intron' OR cvterm.name = 'three_prime_UTR_intron' OR cvterm.name = 'UTR_intron';
  8467. --- ************************************************
  8468. --- *** relation: five_prime_utr_intron ***
  8469. --- *** relation type: VIEW ***
  8470. --- *** ***
  8471. --- *** An intron located in the 5' UTR. ***
  8472. --- ************************************************
  8473. ---
  8474. CREATE VIEW five_prime_utr_intron AS
  8475. SELECT
  8476. feature_id AS five_prime_utr_intron_id,
  8477. feature.*
  8478. FROM
  8479. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8480. WHERE cvterm.name = 'five_prime_UTR_intron';
  8481. --- ************************************************
  8482. --- *** relation: three_prime_utr_intron ***
  8483. --- *** relation type: VIEW ***
  8484. --- *** ***
  8485. --- *** An intron located in the 3' UTR. ***
  8486. --- ************************************************
  8487. ---
  8488. CREATE VIEW three_prime_utr_intron AS
  8489. SELECT
  8490. feature_id AS three_prime_utr_intron_id,
  8491. feature.*
  8492. FROM
  8493. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8494. WHERE cvterm.name = 'three_prime_UTR_intron';
  8495. --- ************************************************
  8496. --- *** relation: random_sequence ***
  8497. --- *** relation type: VIEW ***
  8498. --- *** ***
  8499. --- *** A sequence of nucleotides or amino acids ***
  8500. --- *** which, by design, has a "random" order ***
  8501. --- *** of components, given a predetermined inp ***
  8502. --- *** ut frequency of these components. ***
  8503. --- ************************************************
  8504. ---
  8505. CREATE VIEW random_sequence AS
  8506. SELECT
  8507. feature_id AS random_sequence_id,
  8508. feature.*
  8509. FROM
  8510. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8511. WHERE cvterm.name = 'random_sequence';
  8512. --- ************************************************
  8513. --- *** relation: interband ***
  8514. --- *** relation type: VIEW ***
  8515. --- *** ***
  8516. --- *** A light region between two darkly staini ***
  8517. --- *** ng bands in a polytene chromosome. ***
  8518. --- ************************************************
  8519. ---
  8520. CREATE VIEW interband AS
  8521. SELECT
  8522. feature_id AS interband_id,
  8523. feature.*
  8524. FROM
  8525. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8526. WHERE cvterm.name = 'interband';
  8527. --- ************************************************
  8528. --- *** relation: gene_with_polyadenylated_mrna ***
  8529. --- *** relation type: VIEW ***
  8530. --- *** ***
  8531. --- *** A gene that encodes a polyadenylated mRN ***
  8532. --- *** A. ***
  8533. --- ************************************************
  8534. ---
  8535. CREATE VIEW gene_with_polyadenylated_mrna AS
  8536. SELECT
  8537. feature_id AS gene_with_polyadenylated_mrna_id,
  8538. feature.*
  8539. FROM
  8540. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8541. WHERE cvterm.name = 'gene_with_polyadenylated_mRNA';
  8542. --- ************************************************
  8543. --- *** relation: transposition ***
  8544. --- *** relation type: VIEW ***
  8545. --- *** ***
  8546. --- ************************************************
  8547. ---
  8548. CREATE VIEW transposition AS
  8549. SELECT
  8550. feature_id AS transposition_id,
  8551. feature.*
  8552. FROM
  8553. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8554. 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';
  8555. --- ************************************************
  8556. --- *** relation: rasirna ***
  8557. --- *** relation type: VIEW ***
  8558. --- *** ***
  8559. --- *** A small, 17-28-nt, small interfering RNA ***
  8560. --- *** derived from transcripts of repetitive ***
  8561. --- *** elements. ***
  8562. --- ************************************************
  8563. ---
  8564. CREATE VIEW rasirna AS
  8565. SELECT
  8566. feature_id AS rasirna_id,
  8567. feature.*
  8568. FROM
  8569. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8570. WHERE cvterm.name = 'rasiRNA';
  8571. --- ************************************************
  8572. --- *** relation: gene_with_mrna_with_frameshift ***
  8573. --- *** relation type: VIEW ***
  8574. --- *** ***
  8575. --- *** A gene that encodes an mRNA with a frame ***
  8576. --- *** shift. ***
  8577. --- ************************************************
  8578. ---
  8579. CREATE VIEW gene_with_mrna_with_frameshift AS
  8580. SELECT
  8581. feature_id AS gene_with_mrna_with_frameshift_id,
  8582. feature.*
  8583. FROM
  8584. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8585. WHERE cvterm.name = 'gene_with_mRNA_with_frameshift';
  8586. --- ************************************************
  8587. --- *** relation: recombinationally_rearranged_gene ***
  8588. --- *** relation type: VIEW ***
  8589. --- *** ***
  8590. --- *** A gene that is recombinationally rearran ***
  8591. --- *** ged. ***
  8592. --- ************************************************
  8593. ---
  8594. CREATE VIEW recombinationally_rearranged_gene AS
  8595. SELECT
  8596. feature_id AS recombinationally_rearranged_gene_id,
  8597. feature.*
  8598. FROM
  8599. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8600. WHERE cvterm.name = 'recombinationally_inverted_gene' OR cvterm.name = 'recombinationally_rearranged_vertebrate_immune_system_gene' OR cvterm.name = 'recombinationally_rearranged_gene';
  8601. --- ************************************************
  8602. --- *** relation: interchromosomal_duplication ***
  8603. --- *** relation type: VIEW ***
  8604. --- *** ***
  8605. --- *** A chromosome duplication involving an in ***
  8606. --- *** sertion from another chromosome. ***
  8607. --- ************************************************
  8608. ---
  8609. CREATE VIEW interchromosomal_duplication AS
  8610. SELECT
  8611. feature_id AS interchromosomal_duplication_id,
  8612. feature.*
  8613. FROM
  8614. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8615. WHERE cvterm.name = 'interchromosomal_duplication';
  8616. --- ************************************************
  8617. --- *** relation: d_gene ***
  8618. --- *** relation type: VIEW ***
  8619. --- *** ***
  8620. --- *** Germline genomic DNA including D-region ***
  8621. --- *** with 5' UTR and 3' UTR, also designated ***
  8622. --- *** as D-segment. ***
  8623. --- ************************************************
  8624. ---
  8625. CREATE VIEW d_gene AS
  8626. SELECT
  8627. feature_id AS d_gene_id,
  8628. feature.*
  8629. FROM
  8630. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8631. WHERE cvterm.name = 'D_gene';
  8632. --- ************************************************
  8633. --- *** relation: gene_with_trans_spliced_transcript ***
  8634. --- *** relation type: VIEW ***
  8635. --- *** ***
  8636. --- *** A gene with a transcript that is trans-s ***
  8637. --- *** pliced. ***
  8638. --- ************************************************
  8639. ---
  8640. CREATE VIEW gene_with_trans_spliced_transcript AS
  8641. SELECT
  8642. feature_id AS gene_with_trans_spliced_transcript_id,
  8643. feature.*
  8644. FROM
  8645. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8646. WHERE cvterm.name = 'gene_with_trans_spliced_transcript';
  8647. --- ************************************************
  8648. --- *** relation: vertebrate_immunoglobulin_t_cell_receptor_segment ***
  8649. --- *** relation type: VIEW ***
  8650. --- *** ***
  8651. --- ************************************************
  8652. ---
  8653. CREATE VIEW vertebrate_immunoglobulin_t_cell_receptor_segment AS
  8654. SELECT
  8655. feature_id AS vertebrate_immunoglobulin_t_cell_receptor_segment_id,
  8656. feature.*
  8657. FROM
  8658. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8659. 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';
  8660. --- ************************************************
  8661. --- *** relation: inversion_derived_bipartite_deficiency ***
  8662. --- *** relation type: VIEW ***
  8663. --- *** ***
  8664. --- *** A chromosome generated by recombination ***
  8665. --- *** between two inversions; has a deficiency ***
  8666. --- *** at each end of the inversion. ***
  8667. --- ************************************************
  8668. ---
  8669. CREATE VIEW inversion_derived_bipartite_deficiency AS
  8670. SELECT
  8671. feature_id AS inversion_derived_bipartite_deficiency_id,
  8672. feature.*
  8673. FROM
  8674. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8675. WHERE cvterm.name = 'inversion_derived_bipartite_deficiency';
  8676. --- ************************************************
  8677. --- *** relation: pseudogenic_region ***
  8678. --- *** relation type: VIEW ***
  8679. --- *** ***
  8680. --- *** A non-functional descendent of a functio ***
  8681. --- *** nal entity. ***
  8682. --- ************************************************
  8683. ---
  8684. CREATE VIEW pseudogenic_region AS
  8685. SELECT
  8686. feature_id AS pseudogenic_region_id,
  8687. feature.*
  8688. FROM
  8689. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8690. 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';
  8691. --- ************************************************
  8692. --- *** relation: encodes_alternately_spliced_transcripts ***
  8693. --- *** relation type: VIEW ***
  8694. --- *** ***
  8695. --- *** A gene that encodes more than one transc ***
  8696. --- *** ript. ***
  8697. --- ************************************************
  8698. ---
  8699. CREATE VIEW encodes_alternately_spliced_transcripts AS
  8700. SELECT
  8701. feature_id AS encodes_alternately_spliced_transcripts_id,
  8702. feature.*
  8703. FROM
  8704. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8705. 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';
  8706. --- ************************************************
  8707. --- *** relation: decayed_exon ***
  8708. --- *** relation type: VIEW ***
  8709. --- *** ***
  8710. --- *** A non-functional descendant of an exon. ***
  8711. --- ************************************************
  8712. ---
  8713. CREATE VIEW decayed_exon AS
  8714. SELECT
  8715. feature_id AS decayed_exon_id,
  8716. feature.*
  8717. FROM
  8718. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8719. WHERE cvterm.name = 'decayed_exon';
  8720. --- ************************************************
  8721. --- *** relation: inversion_derived_deficiency_plus_duplication ***
  8722. --- *** relation type: VIEW ***
  8723. --- *** ***
  8724. --- *** A chromosome generated by recombination ***
  8725. --- *** between two inversions; there is a defic ***
  8726. --- *** iency at one end of the inversion and a ***
  8727. --- *** duplication at the other end of the inve ***
  8728. --- *** rsion. ***
  8729. --- ************************************************
  8730. ---
  8731. CREATE VIEW inversion_derived_deficiency_plus_duplication AS
  8732. SELECT
  8733. feature_id AS inversion_derived_deficiency_plus_duplication_id,
  8734. feature.*
  8735. FROM
  8736. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8737. WHERE cvterm.name = 'inversion_derived_deficiency_plus_duplication';
  8738. --- ************************************************
  8739. --- *** relation: v_gene ***
  8740. --- *** relation type: VIEW ***
  8741. --- *** ***
  8742. --- *** Germline genomic DNA including L-part1, ***
  8743. --- *** V-intron and V-exon, with the 5' UTR and ***
  8744. --- *** 3' UTR. ***
  8745. --- ************************************************
  8746. ---
  8747. CREATE VIEW v_gene AS
  8748. SELECT
  8749. feature_id AS v_gene_id,
  8750. feature.*
  8751. FROM
  8752. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8753. WHERE cvterm.name = 'V_gene';
  8754. --- ************************************************
  8755. --- *** relation: post_translationally_regulated_by_protein_stability ***
  8756. --- *** relation type: VIEW ***
  8757. --- *** ***
  8758. --- *** An attribute describing a gene sequence ***
  8759. --- *** where the resulting protein is regulated ***
  8760. --- *** by the stability of the resulting prote ***
  8761. --- *** in. ***
  8762. --- ************************************************
  8763. ---
  8764. CREATE VIEW post_translationally_regulated_by_protein_stability AS
  8765. SELECT
  8766. feature_id AS post_translationally_regulated_by_protein_stability_id,
  8767. feature.*
  8768. FROM
  8769. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8770. WHERE cvterm.name = 'post_translationally_regulated_by_protein_stability';
  8771. --- ************************************************
  8772. --- *** relation: golden_path_fragment ***
  8773. --- *** relation type: VIEW ***
  8774. --- *** ***
  8775. --- *** One of the pieces of sequence that make ***
  8776. --- *** up a golden path. ***
  8777. --- ************************************************
  8778. ---
  8779. CREATE VIEW golden_path_fragment AS
  8780. SELECT
  8781. feature_id AS golden_path_fragment_id,
  8782. feature.*
  8783. FROM
  8784. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8785. WHERE cvterm.name = 'golden_path_fragment';
  8786. --- ************************************************
  8787. --- *** relation: post_translationally_regulated_by_protein_modification ***
  8788. --- *** relation type: VIEW ***
  8789. --- *** ***
  8790. --- *** An attribute describing a gene sequence ***
  8791. --- *** where the resulting protein is modified ***
  8792. --- *** to regulate it. ***
  8793. --- ************************************************
  8794. ---
  8795. CREATE VIEW post_translationally_regulated_by_protein_modification AS
  8796. SELECT
  8797. feature_id AS post_translationally_regulated_by_protein_modification_id,
  8798. feature.*
  8799. FROM
  8800. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8801. WHERE cvterm.name = 'post_translationally_regulated_by_protein_modification';
  8802. --- ************************************************
  8803. --- *** relation: j_gene ***
  8804. --- *** relation type: VIEW ***
  8805. --- *** ***
  8806. --- *** Germline genomic DNA of an immunoglobuli ***
  8807. --- *** n/T-cell receptor gene including J-regio ***
  8808. --- *** n with 5' UTR (SO:0000204) and 3' UTR (S ***
  8809. --- *** O:0000205), also designated as J-segment ***
  8810. --- *** . ***
  8811. --- ************************************************
  8812. ---
  8813. CREATE VIEW j_gene AS
  8814. SELECT
  8815. feature_id AS j_gene_id,
  8816. feature.*
  8817. FROM
  8818. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8819. WHERE cvterm.name = 'J_gene';
  8820. --- ************************************************
  8821. --- *** relation: autoregulated ***
  8822. --- *** relation type: VIEW ***
  8823. --- *** ***
  8824. --- *** The gene product is involved in its own ***
  8825. --- *** transcriptional regulation. ***
  8826. --- ************************************************
  8827. ---
  8828. CREATE VIEW autoregulated AS
  8829. SELECT
  8830. feature_id AS autoregulated_id,
  8831. feature.*
  8832. FROM
  8833. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8834. WHERE cvterm.name = 'negatively_autoregulated' OR cvterm.name = 'positively_autoregulated' OR cvterm.name = 'autoregulated';
  8835. --- ************************************************
  8836. --- *** relation: tiling_path ***
  8837. --- *** relation type: VIEW ***
  8838. --- *** ***
  8839. --- *** A set of regions which overlap with mini ***
  8840. --- *** mal polymorphism to form a linear sequen ***
  8841. --- *** ce. ***
  8842. --- ************************************************
  8843. ---
  8844. CREATE VIEW tiling_path AS
  8845. SELECT
  8846. feature_id AS tiling_path_id,
  8847. feature.*
  8848. FROM
  8849. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8850. WHERE cvterm.name = 'tiling_path';
  8851. --- ************************************************
  8852. --- *** relation: negatively_autoregulated ***
  8853. --- *** relation type: VIEW ***
  8854. --- *** ***
  8855. --- *** The gene product is involved in its own ***
  8856. --- *** transcriptional regulation where it decr ***
  8857. --- *** eases transcription. ***
  8858. --- ************************************************
  8859. ---
  8860. CREATE VIEW negatively_autoregulated AS
  8861. SELECT
  8862. feature_id AS negatively_autoregulated_id,
  8863. feature.*
  8864. FROM
  8865. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8866. WHERE cvterm.name = 'negatively_autoregulated';
  8867. --- ************************************************
  8868. --- *** relation: tiling_path_fragment ***
  8869. --- *** relation type: VIEW ***
  8870. --- *** ***
  8871. --- *** A piece of sequence that makes up a tili ***
  8872. --- *** ng_path (SO:0000472). ***
  8873. --- ************************************************
  8874. ---
  8875. CREATE VIEW tiling_path_fragment AS
  8876. SELECT
  8877. feature_id AS tiling_path_fragment_id,
  8878. feature.*
  8879. FROM
  8880. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8881. WHERE cvterm.name = 'tiling_path_clone' OR cvterm.name = 'tiling_path_fragment';
  8882. --- ************************************************
  8883. --- *** relation: positively_autoregulated ***
  8884. --- *** relation type: VIEW ***
  8885. --- *** ***
  8886. --- *** The gene product is involved in its own ***
  8887. --- *** transcriptional regulation, where it inc ***
  8888. --- *** reases transcription. ***
  8889. --- ************************************************
  8890. ---
  8891. CREATE VIEW positively_autoregulated AS
  8892. SELECT
  8893. feature_id AS positively_autoregulated_id,
  8894. feature.*
  8895. FROM
  8896. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8897. WHERE cvterm.name = 'positively_autoregulated';
  8898. --- ************************************************
  8899. --- *** relation: contig_read ***
  8900. --- *** relation type: VIEW ***
  8901. --- *** ***
  8902. --- *** A DNA sequencer read which is part of a ***
  8903. --- *** contig. ***
  8904. --- ************************************************
  8905. ---
  8906. CREATE VIEW contig_read AS
  8907. SELECT
  8908. feature_id AS contig_read_id,
  8909. feature.*
  8910. FROM
  8911. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8912. WHERE cvterm.name = 'contig_read';
  8913. --- ************************************************
  8914. --- *** relation: c_gene ***
  8915. --- *** relation type: VIEW ***
  8916. --- *** ***
  8917. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  8918. --- *** eptor gene including C-region (and intro ***
  8919. --- *** ns if present) with 5' UTR (SO:0000204) ***
  8920. --- *** and 3' UTR (SO:0000205). ***
  8921. --- ************************************************
  8922. ---
  8923. CREATE VIEW c_gene AS
  8924. SELECT
  8925. feature_id AS c_gene_id,
  8926. feature.*
  8927. FROM
  8928. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8929. WHERE cvterm.name = 'C_gene';
  8930. --- ************************************************
  8931. --- *** relation: trans_spliced_transcript ***
  8932. --- *** relation type: VIEW ***
  8933. --- *** ***
  8934. --- *** A transcript that is trans-spliced. ***
  8935. --- ************************************************
  8936. ---
  8937. CREATE VIEW trans_spliced_transcript AS
  8938. SELECT
  8939. feature_id AS trans_spliced_transcript_id,
  8940. feature.*
  8941. FROM
  8942. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8943. WHERE cvterm.name = 'trans_spliced_mRNA' OR cvterm.name = 'trans_spliced_transcript';
  8944. --- ************************************************
  8945. --- *** relation: tiling_path_clone ***
  8946. --- *** relation type: VIEW ***
  8947. --- *** ***
  8948. --- *** A clone which is part of a tiling path. ***
  8949. --- *** A tiling path is a set of sequencing sub ***
  8950. --- *** strates, typically clones, which have be ***
  8951. --- *** en selected in order to efficiently cove ***
  8952. --- *** r a region of the genome in preparation ***
  8953. --- *** for sequencing and assembly. ***
  8954. --- ************************************************
  8955. ---
  8956. CREATE VIEW tiling_path_clone AS
  8957. SELECT
  8958. feature_id AS tiling_path_clone_id,
  8959. feature.*
  8960. FROM
  8961. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8962. WHERE cvterm.name = 'tiling_path_clone';
  8963. --- ************************************************
  8964. --- *** relation: terminal_inverted_repeat ***
  8965. --- *** relation type: VIEW ***
  8966. --- *** ***
  8967. --- *** An inverted repeat (SO:0000294) occuring ***
  8968. --- *** at the termini of a DNA transposon. ***
  8969. --- ************************************************
  8970. ---
  8971. CREATE VIEW terminal_inverted_repeat AS
  8972. SELECT
  8973. feature_id AS terminal_inverted_repeat_id,
  8974. feature.*
  8975. FROM
  8976. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8977. WHERE cvterm.name = 'five_prime_terminal_inverted_repeat' OR cvterm.name = 'three_prime_terminal_inverted_repeat' OR cvterm.name = 'terminal_inverted_repeat';
  8978. --- ************************************************
  8979. --- *** relation: vertebrate_immunoglobulin_t_cell_receptor_gene_cluster ***
  8980. --- *** relation type: VIEW ***
  8981. --- *** ***
  8982. --- ************************************************
  8983. ---
  8984. CREATE VIEW vertebrate_immunoglobulin_t_cell_receptor_gene_cluster AS
  8985. SELECT
  8986. feature_id AS vertebrate_immunoglobulin_t_cell_receptor_gene_cluster_id,
  8987. feature.*
  8988. FROM
  8989. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8990. 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';
  8991. --- ************************************************
  8992. --- *** relation: nc_primary_transcript ***
  8993. --- *** relation type: VIEW ***
  8994. --- *** ***
  8995. --- *** A primary transcript that is never trans ***
  8996. --- *** lated into a protein. ***
  8997. --- ************************************************
  8998. ---
  8999. CREATE VIEW nc_primary_transcript AS
  9000. SELECT
  9001. feature_id AS nc_primary_transcript_id,
  9002. feature.*
  9003. FROM
  9004. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9005. 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';
  9006. --- ************************************************
  9007. --- *** relation: three_prime_coding_exon_noncoding_region ***
  9008. --- *** relation type: VIEW ***
  9009. --- *** ***
  9010. --- *** The sequence of the 3' exon that is not ***
  9011. --- *** coding. ***
  9012. --- ************************************************
  9013. ---
  9014. CREATE VIEW three_prime_coding_exon_noncoding_region AS
  9015. SELECT
  9016. feature_id AS three_prime_coding_exon_noncoding_region_id,
  9017. feature.*
  9018. FROM
  9019. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9020. WHERE cvterm.name = 'three_prime_coding_exon_noncoding_region';
  9021. --- ************************************************
  9022. --- *** relation: dj_j_cluster ***
  9023. --- *** relation type: VIEW ***
  9024. --- *** ***
  9025. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9026. --- *** eptor gene in rearranged configuration i ***
  9027. --- *** ncluding at least one DJ-gene, and one J ***
  9028. --- *** -gene. ***
  9029. --- ************************************************
  9030. ---
  9031. CREATE VIEW dj_j_cluster AS
  9032. SELECT
  9033. feature_id AS dj_j_cluster_id,
  9034. feature.*
  9035. FROM
  9036. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9037. WHERE cvterm.name = 'DJ_J_cluster';
  9038. --- ************************************************
  9039. --- *** relation: five_prime_coding_exon_noncoding_region ***
  9040. --- *** relation type: VIEW ***
  9041. --- *** ***
  9042. --- *** The sequence of the 5' exon preceding th ***
  9043. --- *** e start codon. ***
  9044. --- ************************************************
  9045. ---
  9046. CREATE VIEW five_prime_coding_exon_noncoding_region AS
  9047. SELECT
  9048. feature_id AS five_prime_coding_exon_noncoding_region_id,
  9049. feature.*
  9050. FROM
  9051. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9052. WHERE cvterm.name = 'five_prime_coding_exon_noncoding_region';
  9053. --- ************************************************
  9054. --- *** relation: vdj_j_c_cluster ***
  9055. --- *** relation type: VIEW ***
  9056. --- *** ***
  9057. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9058. --- *** eptor gene in rearranged configuration i ***
  9059. --- *** ncluding at least one VDJ-gene, one J-ge ***
  9060. --- *** ne and one C-gene. ***
  9061. --- ************************************************
  9062. ---
  9063. CREATE VIEW vdj_j_c_cluster AS
  9064. SELECT
  9065. feature_id AS vdj_j_c_cluster_id,
  9066. feature.*
  9067. FROM
  9068. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9069. WHERE cvterm.name = 'VDJ_J_C_cluster';
  9070. --- ************************************************
  9071. --- *** relation: vdj_j_cluster ***
  9072. --- *** relation type: VIEW ***
  9073. --- *** ***
  9074. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9075. --- *** eptor gene in rearranged configuration i ***
  9076. --- *** ncluding at least one VDJ-gene and one J ***
  9077. --- *** -gene. ***
  9078. --- ************************************************
  9079. ---
  9080. CREATE VIEW vdj_j_cluster AS
  9081. SELECT
  9082. feature_id AS vdj_j_cluster_id,
  9083. feature.*
  9084. FROM
  9085. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9086. WHERE cvterm.name = 'VDJ_J_cluster';
  9087. --- ************************************************
  9088. --- *** relation: vj_c_cluster ***
  9089. --- *** relation type: VIEW ***
  9090. --- *** ***
  9091. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9092. --- *** eptor gene in rearranged configuration i ***
  9093. --- *** ncluding at least one VJ-gene and one C- ***
  9094. --- *** gene. ***
  9095. --- ************************************************
  9096. ---
  9097. CREATE VIEW vj_c_cluster AS
  9098. SELECT
  9099. feature_id AS vj_c_cluster_id,
  9100. feature.*
  9101. FROM
  9102. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9103. WHERE cvterm.name = 'VJ_C_cluster';
  9104. --- ************************************************
  9105. --- *** relation: vj_j_c_cluster ***
  9106. --- *** relation type: VIEW ***
  9107. --- *** ***
  9108. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9109. --- *** eptor gene in rearranged configuration i ***
  9110. --- *** ncluding at least one VJ-gene, one J-gen ***
  9111. --- *** e and one C-gene. ***
  9112. --- ************************************************
  9113. ---
  9114. CREATE VIEW vj_j_c_cluster AS
  9115. SELECT
  9116. feature_id AS vj_j_c_cluster_id,
  9117. feature.*
  9118. FROM
  9119. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9120. WHERE cvterm.name = 'VJ_J_C_cluster';
  9121. --- ************************************************
  9122. --- *** relation: vj_j_cluster ***
  9123. --- *** relation type: VIEW ***
  9124. --- *** ***
  9125. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9126. --- *** eptor gene in rearranged configuration i ***
  9127. --- *** ncluding at least one VJ-gene and one J- ***
  9128. --- *** gene. ***
  9129. --- ************************************************
  9130. ---
  9131. CREATE VIEW vj_j_cluster AS
  9132. SELECT
  9133. feature_id AS vj_j_cluster_id,
  9134. feature.*
  9135. FROM
  9136. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9137. WHERE cvterm.name = 'VJ_J_cluster';
  9138. --- ************************************************
  9139. --- *** relation: d_gene_recombination_feature ***
  9140. --- *** relation type: VIEW ***
  9141. --- *** ***
  9142. --- ************************************************
  9143. ---
  9144. CREATE VIEW d_gene_recombination_feature AS
  9145. SELECT
  9146. feature_id AS d_gene_recombination_feature_id,
  9147. feature.*
  9148. FROM
  9149. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9150. 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';
  9151. --- ************************************************
  9152. --- *** relation: three_prime_d_heptamer ***
  9153. --- *** relation type: VIEW ***
  9154. --- *** ***
  9155. --- *** 7 nucleotide recombination site like CAC ***
  9156. --- *** AGTG, part of a 3' D-recombination signa ***
  9157. --- *** l sequence of an immunoglobulin/T-cell r ***
  9158. --- *** eceptor gene. ***
  9159. --- ************************************************
  9160. ---
  9161. CREATE VIEW three_prime_d_heptamer AS
  9162. SELECT
  9163. feature_id AS three_prime_d_heptamer_id,
  9164. feature.*
  9165. FROM
  9166. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9167. WHERE cvterm.name = 'three_prime_D_heptamer';
  9168. --- ************************************************
  9169. --- *** relation: three_prime_d_nonamer ***
  9170. --- *** relation type: VIEW ***
  9171. --- *** ***
  9172. --- *** A 9 nucleotide recombination site (e.g. ***
  9173. --- *** ACAAAAACC), part of a 3' D-recombination ***
  9174. --- *** signal sequence of an immunoglobulin/T- ***
  9175. --- *** cell receptor gene. ***
  9176. --- ************************************************
  9177. ---
  9178. CREATE VIEW three_prime_d_nonamer AS
  9179. SELECT
  9180. feature_id AS three_prime_d_nonamer_id,
  9181. feature.*
  9182. FROM
  9183. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9184. WHERE cvterm.name = 'three_prime_D_nonamer';
  9185. --- ************************************************
  9186. --- *** relation: three_prime_d_spacer ***
  9187. --- *** relation type: VIEW ***
  9188. --- *** ***
  9189. --- *** A 12 or 23 nucleotide spacer between the ***
  9190. --- *** 3'D-HEPTAMER and 3'D-NONAMER of a 3'D-R ***
  9191. --- *** S. ***
  9192. --- ************************************************
  9193. ---
  9194. CREATE VIEW three_prime_d_spacer AS
  9195. SELECT
  9196. feature_id AS three_prime_d_spacer_id,
  9197. feature.*
  9198. FROM
  9199. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9200. WHERE cvterm.name = 'three_prime_D_spacer';
  9201. --- ************************************************
  9202. --- *** relation: five_prime_d_heptamer ***
  9203. --- *** relation type: VIEW ***
  9204. --- *** ***
  9205. --- *** 7 nucleotide recombination site (e.g. CA ***
  9206. --- *** CTGTG), part of a 5' D-recombination sig ***
  9207. --- *** nal sequence (SO:0000556) of an immunogl ***
  9208. --- *** obulin/T-cell receptor gene. ***
  9209. --- ************************************************
  9210. ---
  9211. CREATE VIEW five_prime_d_heptamer AS
  9212. SELECT
  9213. feature_id AS five_prime_d_heptamer_id,
  9214. feature.*
  9215. FROM
  9216. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9217. WHERE cvterm.name = 'five_prime_D_heptamer';
  9218. --- ************************************************
  9219. --- *** relation: five_prime_d_nonamer ***
  9220. --- *** relation type: VIEW ***
  9221. --- *** ***
  9222. --- *** 9 nucleotide recombination site (e.g. GG ***
  9223. --- *** TTTTTGT), part of a five_prime_D-recombi ***
  9224. --- *** nation signal sequence (SO:0000556) of a ***
  9225. --- *** n immunoglobulin/T-cell receptor gene. ***
  9226. --- ************************************************
  9227. ---
  9228. CREATE VIEW five_prime_d_nonamer AS
  9229. SELECT
  9230. feature_id AS five_prime_d_nonamer_id,
  9231. feature.*
  9232. FROM
  9233. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9234. WHERE cvterm.name = 'five_prime_D_nonamer';
  9235. --- ************************************************
  9236. --- *** relation: five_prime_d_spacer ***
  9237. --- *** relation type: VIEW ***
  9238. --- *** ***
  9239. --- *** 12 or 23 nucleotide spacer between the 5 ***
  9240. --- *** ' D-heptamer (SO:0000496) and 5' D-nonam ***
  9241. --- *** er (SO:0000497) of a 5' D-recombination ***
  9242. --- *** signal sequence (SO:0000556) of an immun ***
  9243. --- *** oglobulin/T-cell receptor gene. ***
  9244. --- ************************************************
  9245. ---
  9246. CREATE VIEW five_prime_d_spacer AS
  9247. SELECT
  9248. feature_id AS five_prime_d_spacer_id,
  9249. feature.*
  9250. FROM
  9251. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9252. WHERE cvterm.name = 'five_prime_D_spacer';
  9253. --- ************************************************
  9254. --- *** relation: virtual_sequence ***
  9255. --- *** relation type: VIEW ***
  9256. --- *** ***
  9257. --- *** A continuous piece of sequence similar t ***
  9258. --- *** o the 'virtual contig' concept of the En ***
  9259. --- *** sembl database. ***
  9260. --- ************************************************
  9261. ---
  9262. CREATE VIEW virtual_sequence AS
  9263. SELECT
  9264. feature_id AS virtual_sequence_id,
  9265. feature.*
  9266. FROM
  9267. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9268. WHERE cvterm.name = 'virtual_sequence';
  9269. --- ************************************************
  9270. --- *** relation: hoogsteen_base_pair ***
  9271. --- *** relation type: VIEW ***
  9272. --- *** ***
  9273. --- *** A type of non-canonical base-pairing. Th ***
  9274. --- *** is is less energetically favourable than ***
  9275. --- *** watson crick base pairing. Hoogsteen GC ***
  9276. --- *** base pairs only have two hydrogen bonds ***
  9277. --- *** . ***
  9278. --- ************************************************
  9279. ---
  9280. CREATE VIEW hoogsteen_base_pair AS
  9281. SELECT
  9282. feature_id AS hoogsteen_base_pair_id,
  9283. feature.*
  9284. FROM
  9285. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9286. WHERE cvterm.name = 'Hoogsteen_base_pair';
  9287. --- ************************************************
  9288. --- *** relation: reverse_hoogsteen_base_pair ***
  9289. --- *** relation type: VIEW ***
  9290. --- *** ***
  9291. --- *** A type of non-canonical base-pairing. ***
  9292. --- ************************************************
  9293. ---
  9294. CREATE VIEW reverse_hoogsteen_base_pair AS
  9295. SELECT
  9296. feature_id AS reverse_hoogsteen_base_pair_id,
  9297. feature.*
  9298. FROM
  9299. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9300. WHERE cvterm.name = 'reverse_Hoogsteen_base_pair';
  9301. --- ************************************************
  9302. --- *** relation: d_dj_c_cluster ***
  9303. --- *** relation type: VIEW ***
  9304. --- *** ***
  9305. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9306. --- *** eptor gene in rearranged configuration i ***
  9307. --- *** ncluding at least one D-gene, one DJ-gen ***
  9308. --- *** e and one C-gene. ***
  9309. --- ************************************************
  9310. ---
  9311. CREATE VIEW d_dj_c_cluster AS
  9312. SELECT
  9313. feature_id AS d_dj_c_cluster_id,
  9314. feature.*
  9315. FROM
  9316. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9317. WHERE cvterm.name = 'D_DJ_C_cluster';
  9318. --- ************************************************
  9319. --- *** relation: d_dj_cluster ***
  9320. --- *** relation type: VIEW ***
  9321. --- *** ***
  9322. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9323. --- *** eptor gene in rearranged configuration i ***
  9324. --- *** ncluding at least one D-gene and one DJ- ***
  9325. --- *** gene. ***
  9326. --- ************************************************
  9327. ---
  9328. CREATE VIEW d_dj_cluster AS
  9329. SELECT
  9330. feature_id AS d_dj_cluster_id,
  9331. feature.*
  9332. FROM
  9333. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9334. WHERE cvterm.name = 'D_DJ_cluster';
  9335. --- ************************************************
  9336. --- *** relation: d_dj_j_c_cluster ***
  9337. --- *** relation type: VIEW ***
  9338. --- *** ***
  9339. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9340. --- *** eptor gene in rearranged configuration i ***
  9341. --- *** ncluding at least one D-gene, one DJ-gen ***
  9342. --- *** e, one J-gene and one C-gene. ***
  9343. --- ************************************************
  9344. ---
  9345. CREATE VIEW d_dj_j_c_cluster AS
  9346. SELECT
  9347. feature_id AS d_dj_j_c_cluster_id,
  9348. feature.*
  9349. FROM
  9350. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9351. WHERE cvterm.name = 'D_DJ_J_C_cluster';
  9352. --- ************************************************
  9353. --- *** relation: pseudogenic_exon ***
  9354. --- *** relation type: VIEW ***
  9355. --- *** ***
  9356. --- *** A non functional descendant of an exon, ***
  9357. --- *** part of a pseudogene. ***
  9358. --- ************************************************
  9359. ---
  9360. CREATE VIEW pseudogenic_exon AS
  9361. SELECT
  9362. feature_id AS pseudogenic_exon_id,
  9363. feature.*
  9364. FROM
  9365. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9366. WHERE cvterm.name = 'pseudogenic_exon';
  9367. --- ************************************************
  9368. --- *** relation: d_dj_j_cluster ***
  9369. --- *** relation type: VIEW ***
  9370. --- *** ***
  9371. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9372. --- *** eptor gene in rearranged configuration i ***
  9373. --- *** ncluding at least one D-gene, one DJ-gen ***
  9374. --- *** e, and one J-gene. ***
  9375. --- ************************************************
  9376. ---
  9377. CREATE VIEW d_dj_j_cluster AS
  9378. SELECT
  9379. feature_id AS d_dj_j_cluster_id,
  9380. feature.*
  9381. FROM
  9382. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9383. WHERE cvterm.name = 'D_DJ_J_cluster';
  9384. --- ************************************************
  9385. --- *** relation: d_j_c_cluster ***
  9386. --- *** relation type: VIEW ***
  9387. --- *** ***
  9388. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9389. --- *** eptor gene in germline configuration inc ***
  9390. --- *** luding at least one D-gene, one J-gene a ***
  9391. --- *** nd one C-gene. ***
  9392. --- ************************************************
  9393. ---
  9394. CREATE VIEW d_j_c_cluster AS
  9395. SELECT
  9396. feature_id AS d_j_c_cluster_id,
  9397. feature.*
  9398. FROM
  9399. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9400. WHERE cvterm.name = 'D_J_C_cluster';
  9401. --- ************************************************
  9402. --- *** relation: vd_gene ***
  9403. --- *** relation type: VIEW ***
  9404. --- *** ***
  9405. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9406. --- *** eptor gene in partially rearranged genom ***
  9407. --- *** ic DNA including L-part1, V-intron and V ***
  9408. --- *** -D-exon, with the 5' UTR (SO:0000204) an ***
  9409. --- *** d 3' UTR (SO:0000205). ***
  9410. --- ************************************************
  9411. ---
  9412. CREATE VIEW vd_gene AS
  9413. SELECT
  9414. feature_id AS vd_gene_id,
  9415. feature.*
  9416. FROM
  9417. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9418. WHERE cvterm.name = 'VD_gene';
  9419. --- ************************************************
  9420. --- *** relation: j_c_cluster ***
  9421. --- *** relation type: VIEW ***
  9422. --- *** ***
  9423. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9424. --- *** eptor gene in germline configuration inc ***
  9425. --- *** luding at least one J-gene and one C-gen ***
  9426. --- *** e. ***
  9427. --- ************************************************
  9428. ---
  9429. CREATE VIEW j_c_cluster AS
  9430. SELECT
  9431. feature_id AS j_c_cluster_id,
  9432. feature.*
  9433. FROM
  9434. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9435. WHERE cvterm.name = 'J_C_cluster';
  9436. --- ************************************************
  9437. --- *** relation: inversion_derived_deficiency_plus_aneuploid ***
  9438. --- *** relation type: VIEW ***
  9439. --- *** ***
  9440. --- *** A chromosome generated by recombination ***
  9441. --- *** between two inversions; has a deficiency ***
  9442. --- *** at one end and presumed to have a defic ***
  9443. --- *** iency or duplication at the other end of ***
  9444. --- *** the inversion. ***
  9445. --- ************************************************
  9446. ---
  9447. CREATE VIEW inversion_derived_deficiency_plus_aneuploid AS
  9448. SELECT
  9449. feature_id AS inversion_derived_deficiency_plus_aneuploid_id,
  9450. feature.*
  9451. FROM
  9452. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9453. WHERE cvterm.name = 'inversion_derived_deficiency_plus_aneuploid';
  9454. --- ************************************************
  9455. --- *** relation: j_cluster ***
  9456. --- *** relation type: VIEW ***
  9457. --- *** ***
  9458. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9459. --- *** eptor gene in germline configuration inc ***
  9460. --- *** luding more than one J-gene. ***
  9461. --- ************************************************
  9462. ---
  9463. CREATE VIEW j_cluster AS
  9464. SELECT
  9465. feature_id AS j_cluster_id,
  9466. feature.*
  9467. FROM
  9468. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9469. WHERE cvterm.name = 'J_cluster';
  9470. --- ************************************************
  9471. --- *** relation: j_nonamer ***
  9472. --- *** relation type: VIEW ***
  9473. --- *** ***
  9474. --- *** 9 nucleotide recombination site (e.g. GG ***
  9475. --- *** TTTTTGT), part of a J-gene recombination ***
  9476. --- *** feature of an immunoglobulin/T-cell rec ***
  9477. --- *** eptor gene. ***
  9478. --- ************************************************
  9479. ---
  9480. CREATE VIEW j_nonamer AS
  9481. SELECT
  9482. feature_id AS j_nonamer_id,
  9483. feature.*
  9484. FROM
  9485. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9486. WHERE cvterm.name = 'J_nonamer';
  9487. --- ************************************************
  9488. --- *** relation: j_heptamer ***
  9489. --- *** relation type: VIEW ***
  9490. --- *** ***
  9491. --- *** 7 nucleotide recombination site (e.g. CA ***
  9492. --- *** CAGTG), part of a J-gene recombination f ***
  9493. --- *** eature of an immunoglobulin/T-cell recep ***
  9494. --- *** tor gene. ***
  9495. --- ************************************************
  9496. ---
  9497. CREATE VIEW j_heptamer AS
  9498. SELECT
  9499. feature_id AS j_heptamer_id,
  9500. feature.*
  9501. FROM
  9502. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9503. WHERE cvterm.name = 'J_heptamer';
  9504. --- ************************************************
  9505. --- *** relation: pseudogenic_transcript ***
  9506. --- *** relation type: VIEW ***
  9507. --- *** ***
  9508. --- *** A non functional descendant of a transcr ***
  9509. --- *** ipt, part of a pseudogene. ***
  9510. --- ************************************************
  9511. ---
  9512. CREATE VIEW pseudogenic_transcript AS
  9513. SELECT
  9514. feature_id AS pseudogenic_transcript_id,
  9515. feature.*
  9516. FROM
  9517. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9518. WHERE cvterm.name = 'pseudogenic_transcript';
  9519. --- ************************************************
  9520. --- *** relation: j_spacer ***
  9521. --- *** relation type: VIEW ***
  9522. --- *** ***
  9523. --- *** 12 or 23 nucleotide spacer between the J ***
  9524. --- *** -nonamer and the J-heptamer of a J-gene ***
  9525. --- *** recombination feature of an immunoglobul ***
  9526. --- *** in/T-cell receptor gene. ***
  9527. --- ************************************************
  9528. ---
  9529. CREATE VIEW j_spacer AS
  9530. SELECT
  9531. feature_id AS j_spacer_id,
  9532. feature.*
  9533. FROM
  9534. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9535. WHERE cvterm.name = 'J_spacer';
  9536. --- ************************************************
  9537. --- *** relation: v_dj_cluster ***
  9538. --- *** relation type: VIEW ***
  9539. --- *** ***
  9540. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9541. --- *** eptor gene in rearranged configuration i ***
  9542. --- *** ncluding at least one V-gene and one DJ- ***
  9543. --- *** gene. ***
  9544. --- ************************************************
  9545. ---
  9546. CREATE VIEW v_dj_cluster AS
  9547. SELECT
  9548. feature_id AS v_dj_cluster_id,
  9549. feature.*
  9550. FROM
  9551. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9552. WHERE cvterm.name = 'V_DJ_cluster';
  9553. --- ************************************************
  9554. --- *** relation: v_dj_j_cluster ***
  9555. --- *** relation type: VIEW ***
  9556. --- *** ***
  9557. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9558. --- *** eptor gene in rearranged configuration i ***
  9559. --- *** ncluding at least one V-gene, one DJ-gen ***
  9560. --- *** e and one J-gene. ***
  9561. --- ************************************************
  9562. ---
  9563. CREATE VIEW v_dj_j_cluster AS
  9564. SELECT
  9565. feature_id AS v_dj_j_cluster_id,
  9566. feature.*
  9567. FROM
  9568. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9569. WHERE cvterm.name = 'V_DJ_J_cluster';
  9570. --- ************************************************
  9571. --- *** relation: v_vdj_c_cluster ***
  9572. --- *** relation type: VIEW ***
  9573. --- *** ***
  9574. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9575. --- *** eptor gene in rearranged configuration i ***
  9576. --- *** ncluding at least one V-gene, one VDJ-ge ***
  9577. --- *** ne and one C-gene. ***
  9578. --- ************************************************
  9579. ---
  9580. CREATE VIEW v_vdj_c_cluster AS
  9581. SELECT
  9582. feature_id AS v_vdj_c_cluster_id,
  9583. feature.*
  9584. FROM
  9585. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9586. WHERE cvterm.name = 'V_VDJ_C_cluster';
  9587. --- ************************************************
  9588. --- *** relation: v_vdj_cluster ***
  9589. --- *** relation type: VIEW ***
  9590. --- *** ***
  9591. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9592. --- *** eptor gene in rearranged configuration i ***
  9593. --- *** ncluding at least one V-gene and one VDJ ***
  9594. --- *** -gene. ***
  9595. --- ************************************************
  9596. ---
  9597. CREATE VIEW v_vdj_cluster AS
  9598. SELECT
  9599. feature_id AS v_vdj_cluster_id,
  9600. feature.*
  9601. FROM
  9602. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9603. WHERE cvterm.name = 'V_VDJ_cluster';
  9604. --- ************************************************
  9605. --- *** relation: v_vdj_j_cluster ***
  9606. --- *** relation type: VIEW ***
  9607. --- *** ***
  9608. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9609. --- *** eptor gene in rearranged configuration i ***
  9610. --- *** ncluding at least one V-gene, one VDJ-ge ***
  9611. --- *** ne and one J-gene. ***
  9612. --- ************************************************
  9613. ---
  9614. CREATE VIEW v_vdj_j_cluster AS
  9615. SELECT
  9616. feature_id AS v_vdj_j_cluster_id,
  9617. feature.*
  9618. FROM
  9619. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9620. WHERE cvterm.name = 'V_VDJ_J_cluster';
  9621. --- ************************************************
  9622. --- *** relation: v_vj_c_cluster ***
  9623. --- *** relation type: VIEW ***
  9624. --- *** ***
  9625. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9626. --- *** eptor gene in rearranged configuration i ***
  9627. --- *** ncluding at least one V-gene, one VJ-gen ***
  9628. --- *** e and one C-gene. ***
  9629. --- ************************************************
  9630. ---
  9631. CREATE VIEW v_vj_c_cluster AS
  9632. SELECT
  9633. feature_id AS v_vj_c_cluster_id,
  9634. feature.*
  9635. FROM
  9636. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9637. WHERE cvterm.name = 'V_VJ_C_cluster';
  9638. --- ************************************************
  9639. --- *** relation: v_vj_cluster ***
  9640. --- *** relation type: VIEW ***
  9641. --- *** ***
  9642. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9643. --- *** eptor gene in rearranged configuration i ***
  9644. --- *** ncluding at least one V-gene and one VJ- ***
  9645. --- *** gene. ***
  9646. --- ************************************************
  9647. ---
  9648. CREATE VIEW v_vj_cluster AS
  9649. SELECT
  9650. feature_id AS v_vj_cluster_id,
  9651. feature.*
  9652. FROM
  9653. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9654. WHERE cvterm.name = 'V_VJ_cluster';
  9655. --- ************************************************
  9656. --- *** relation: v_vj_j_cluster ***
  9657. --- *** relation type: VIEW ***
  9658. --- *** ***
  9659. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9660. --- *** eptor gene in rearranged configuration i ***
  9661. --- *** ncluding at least one V-gene, one VJ-gen ***
  9662. --- *** e and one J-gene. ***
  9663. --- ************************************************
  9664. ---
  9665. CREATE VIEW v_vj_j_cluster AS
  9666. SELECT
  9667. feature_id AS v_vj_j_cluster_id,
  9668. feature.*
  9669. FROM
  9670. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9671. WHERE cvterm.name = 'V_VJ_J_cluster';
  9672. --- ************************************************
  9673. --- *** relation: v_cluster ***
  9674. --- *** relation type: VIEW ***
  9675. --- *** ***
  9676. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9677. --- *** eptor gene in germline configuration inc ***
  9678. --- *** luding more than one V-gene. ***
  9679. --- ************************************************
  9680. ---
  9681. CREATE VIEW v_cluster AS
  9682. SELECT
  9683. feature_id AS v_cluster_id,
  9684. feature.*
  9685. FROM
  9686. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9687. WHERE cvterm.name = 'V_cluster';
  9688. --- ************************************************
  9689. --- *** relation: v_d_dj_c_cluster ***
  9690. --- *** relation type: VIEW ***
  9691. --- *** ***
  9692. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9693. --- *** eptor gene in rearranged configuration i ***
  9694. --- *** ncluding at least one V-gene, one D-gene ***
  9695. --- *** , one DJ-gene and one C-gene. ***
  9696. --- ************************************************
  9697. ---
  9698. CREATE VIEW v_d_dj_c_cluster AS
  9699. SELECT
  9700. feature_id AS v_d_dj_c_cluster_id,
  9701. feature.*
  9702. FROM
  9703. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9704. WHERE cvterm.name = 'V_D_DJ_C_cluster';
  9705. --- ************************************************
  9706. --- *** relation: v_d_dj_cluster ***
  9707. --- *** relation type: VIEW ***
  9708. --- *** ***
  9709. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9710. --- *** eptor gene in rearranged configuration i ***
  9711. --- *** ncluding at least one V-gene, one D-gene ***
  9712. --- *** , one DJ-gene. ***
  9713. --- ************************************************
  9714. ---
  9715. CREATE VIEW v_d_dj_cluster AS
  9716. SELECT
  9717. feature_id AS v_d_dj_cluster_id,
  9718. feature.*
  9719. FROM
  9720. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9721. WHERE cvterm.name = 'V_D_DJ_cluster';
  9722. --- ************************************************
  9723. --- *** relation: v_d_dj_j_c_cluster ***
  9724. --- *** relation type: VIEW ***
  9725. --- *** ***
  9726. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9727. --- *** eptor gene in rearranged configuration i ***
  9728. --- *** ncluding at least one V-gene, one D-gene ***
  9729. --- *** , one DJ-gene, one J-gene and one C-gene ***
  9730. --- *** . ***
  9731. --- ************************************************
  9732. ---
  9733. CREATE VIEW v_d_dj_j_c_cluster AS
  9734. SELECT
  9735. feature_id AS v_d_dj_j_c_cluster_id,
  9736. feature.*
  9737. FROM
  9738. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9739. WHERE cvterm.name = 'V_D_DJ_J_C_cluster';
  9740. --- ************************************************
  9741. --- *** relation: v_d_dj_j_cluster ***
  9742. --- *** relation type: VIEW ***
  9743. --- *** ***
  9744. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9745. --- *** eptor gene in rearranged configuration i ***
  9746. --- *** ncluding at least one V-gene, one D-gene ***
  9747. --- *** , one DJ-gene and one J-gene. ***
  9748. --- ************************************************
  9749. ---
  9750. CREATE VIEW v_d_dj_j_cluster AS
  9751. SELECT
  9752. feature_id AS v_d_dj_j_cluster_id,
  9753. feature.*
  9754. FROM
  9755. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9756. WHERE cvterm.name = 'V_D_DJ_J_cluster';
  9757. --- ************************************************
  9758. --- *** relation: v_d_j_c_cluster ***
  9759. --- *** relation type: VIEW ***
  9760. --- *** ***
  9761. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9762. --- *** eptor gene in germline configuration inc ***
  9763. --- *** luding at least one V-gene, one D-gene a ***
  9764. --- *** nd one J-gene and one C-gene. ***
  9765. --- ************************************************
  9766. ---
  9767. CREATE VIEW v_d_j_c_cluster AS
  9768. SELECT
  9769. feature_id AS v_d_j_c_cluster_id,
  9770. feature.*
  9771. FROM
  9772. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9773. WHERE cvterm.name = 'V_D_J_C_cluster';
  9774. --- ************************************************
  9775. --- *** relation: v_d_j_cluster ***
  9776. --- *** relation type: VIEW ***
  9777. --- *** ***
  9778. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9779. --- *** eptor gene in germline configuration inc ***
  9780. --- *** luding at least one V-gene, one D-gene a ***
  9781. --- *** nd one J-gene. ***
  9782. --- ************************************************
  9783. ---
  9784. CREATE VIEW v_d_j_cluster AS
  9785. SELECT
  9786. feature_id AS v_d_j_cluster_id,
  9787. feature.*
  9788. FROM
  9789. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9790. WHERE cvterm.name = 'V_D_J_cluster';
  9791. --- ************************************************
  9792. --- *** relation: v_heptamer ***
  9793. --- *** relation type: VIEW ***
  9794. --- *** ***
  9795. --- *** 7 nucleotide recombination site (e.g. CA ***
  9796. --- *** CAGTG), part of V-gene recombination fea ***
  9797. --- *** ture of an immunoglobulin/T-cell recepto ***
  9798. --- *** r gene. ***
  9799. --- ************************************************
  9800. ---
  9801. CREATE VIEW v_heptamer AS
  9802. SELECT
  9803. feature_id AS v_heptamer_id,
  9804. feature.*
  9805. FROM
  9806. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9807. WHERE cvterm.name = 'V_heptamer';
  9808. --- ************************************************
  9809. --- *** relation: v_j_cluster ***
  9810. --- *** relation type: VIEW ***
  9811. --- *** ***
  9812. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9813. --- *** eptor gene in germline configuration inc ***
  9814. --- *** luding at least one V-gene and one J-gen ***
  9815. --- *** e. ***
  9816. --- ************************************************
  9817. ---
  9818. CREATE VIEW v_j_cluster AS
  9819. SELECT
  9820. feature_id AS v_j_cluster_id,
  9821. feature.*
  9822. FROM
  9823. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9824. WHERE cvterm.name = 'V_J_cluster';
  9825. --- ************************************************
  9826. --- *** relation: v_j_c_cluster ***
  9827. --- *** relation type: VIEW ***
  9828. --- *** ***
  9829. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9830. --- *** eptor gene in germline configuration inc ***
  9831. --- *** luding at least one V-gene, one J-gene a ***
  9832. --- *** nd one C-gene. ***
  9833. --- ************************************************
  9834. ---
  9835. CREATE VIEW v_j_c_cluster AS
  9836. SELECT
  9837. feature_id AS v_j_c_cluster_id,
  9838. feature.*
  9839. FROM
  9840. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9841. WHERE cvterm.name = 'V_J_C_cluster';
  9842. --- ************************************************
  9843. --- *** relation: v_nonamer ***
  9844. --- *** relation type: VIEW ***
  9845. --- *** ***
  9846. --- *** 9 nucleotide recombination site (e.g. AC ***
  9847. --- *** AAAAACC), part of V-gene recombination f ***
  9848. --- *** eature of an immunoglobulin/T-cell recep ***
  9849. --- *** tor gene. ***
  9850. --- ************************************************
  9851. ---
  9852. CREATE VIEW v_nonamer AS
  9853. SELECT
  9854. feature_id AS v_nonamer_id,
  9855. feature.*
  9856. FROM
  9857. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9858. WHERE cvterm.name = 'V_nonamer';
  9859. --- ************************************************
  9860. --- *** relation: v_spacer ***
  9861. --- *** relation type: VIEW ***
  9862. --- *** ***
  9863. --- *** 12 or 23 nucleotide spacer between the V ***
  9864. --- *** -heptamer and the V-nonamer of a V-gene ***
  9865. --- *** recombination feature of an immunoglobul ***
  9866. --- *** in/T-cell receptor gene. ***
  9867. --- ************************************************
  9868. ---
  9869. CREATE VIEW v_spacer AS
  9870. SELECT
  9871. feature_id AS v_spacer_id,
  9872. feature.*
  9873. FROM
  9874. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9875. WHERE cvterm.name = 'V_spacer';
  9876. --- ************************************************
  9877. --- *** relation: v_gene_recombination_feature ***
  9878. --- *** relation type: VIEW ***
  9879. --- *** ***
  9880. --- *** Recombination signal including V-heptame ***
  9881. --- *** r, V-spacer and V-nonamer in 3' of V-reg ***
  9882. --- *** ion of a V-gene or V-sequence of an immu ***
  9883. --- *** noglobulin/T-cell receptor gene. ***
  9884. --- ************************************************
  9885. ---
  9886. CREATE VIEW v_gene_recombination_feature AS
  9887. SELECT
  9888. feature_id AS v_gene_recombination_feature_id,
  9889. feature.*
  9890. FROM
  9891. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9892. WHERE cvterm.name = 'V_gene_recombination_feature';
  9893. --- ************************************************
  9894. --- *** relation: dj_c_cluster ***
  9895. --- *** relation type: VIEW ***
  9896. --- *** ***
  9897. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9898. --- *** eptor gene in rearranged configuration i ***
  9899. --- *** ncluding at least one DJ-gene and one C- ***
  9900. --- *** gene. ***
  9901. --- ************************************************
  9902. ---
  9903. CREATE VIEW dj_c_cluster AS
  9904. SELECT
  9905. feature_id AS dj_c_cluster_id,
  9906. feature.*
  9907. FROM
  9908. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9909. WHERE cvterm.name = 'DJ_C_cluster';
  9910. --- ************************************************
  9911. --- *** relation: dj_j_c_cluster ***
  9912. --- *** relation type: VIEW ***
  9913. --- *** ***
  9914. --- *** Genomic DNA in rearranged configuration ***
  9915. --- *** including at least one D-J-GENE, one J-G ***
  9916. --- *** ENE and one C-GENE. ***
  9917. --- ************************************************
  9918. ---
  9919. CREATE VIEW dj_j_c_cluster AS
  9920. SELECT
  9921. feature_id AS dj_j_c_cluster_id,
  9922. feature.*
  9923. FROM
  9924. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9925. WHERE cvterm.name = 'DJ_J_C_cluster';
  9926. --- ************************************************
  9927. --- *** relation: vdj_c_cluster ***
  9928. --- *** relation type: VIEW ***
  9929. --- *** ***
  9930. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9931. --- *** eptor gene in rearranged configuration i ***
  9932. --- *** ncluding at least one VDJ-gene and one C ***
  9933. --- *** -gene. ***
  9934. --- ************************************************
  9935. ---
  9936. CREATE VIEW vdj_c_cluster AS
  9937. SELECT
  9938. feature_id AS vdj_c_cluster_id,
  9939. feature.*
  9940. FROM
  9941. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9942. WHERE cvterm.name = 'VDJ_C_cluster';
  9943. --- ************************************************
  9944. --- *** relation: v_dj_c_cluster ***
  9945. --- *** relation type: VIEW ***
  9946. --- *** ***
  9947. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9948. --- *** eptor gene in rearranged configuration i ***
  9949. --- *** ncluding at least one V-gene, one DJ-gen ***
  9950. --- *** e and one C-gene. ***
  9951. --- ************************************************
  9952. ---
  9953. CREATE VIEW v_dj_c_cluster AS
  9954. SELECT
  9955. feature_id AS v_dj_c_cluster_id,
  9956. feature.*
  9957. FROM
  9958. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9959. WHERE cvterm.name = 'V_DJ_C_cluster';
  9960. --- ************************************************
  9961. --- *** relation: helitron ***
  9962. --- *** relation type: VIEW ***
  9963. --- *** ***
  9964. --- *** A rolling circle transposon. Autonomous ***
  9965. --- *** helitrons encode a 5'-to-3' DNA helicase ***
  9966. --- *** and nuclease/ligase similar to those en ***
  9967. --- *** coded by known rolling-circle replicons. ***
  9968. --- ************************************************
  9969. ---
  9970. CREATE VIEW helitron AS
  9971. SELECT
  9972. feature_id AS helitron_id,
  9973. feature.*
  9974. FROM
  9975. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9976. WHERE cvterm.name = 'helitron';
  9977. --- ************************************************
  9978. --- *** relation: recoding_pseudoknot ***
  9979. --- *** relation type: VIEW ***
  9980. --- *** ***
  9981. --- *** The pseudoknots involved in recoding are ***
  9982. --- *** unique in that, as they play their role ***
  9983. --- *** as a structure, they are immediately un ***
  9984. --- *** folded and their now linear sequence ser ***
  9985. --- *** ves as a template for decoding. ***
  9986. --- ************************************************
  9987. ---
  9988. CREATE VIEW recoding_pseudoknot AS
  9989. SELECT
  9990. feature_id AS recoding_pseudoknot_id,
  9991. feature.*
  9992. FROM
  9993. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9994. WHERE cvterm.name = 'recoding_pseudoknot';
  9995. --- ************************************************
  9996. --- *** relation: designed_sequence ***
  9997. --- *** relation type: VIEW ***
  9998. --- *** ***
  9999. --- ************************************************
  10000. ---
  10001. CREATE VIEW designed_sequence AS
  10002. SELECT
  10003. feature_id AS designed_sequence_id,
  10004. feature.*
  10005. FROM
  10006. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10007. WHERE cvterm.name = 'designed_sequence';
  10008. --- ************************************************
  10009. --- *** relation: inversion_derived_bipartite_duplication ***
  10010. --- *** relation type: VIEW ***
  10011. --- *** ***
  10012. --- *** A chromosome generated by recombination ***
  10013. --- *** between two inversions; there is a dupli ***
  10014. --- *** cation at each end of the inversion. ***
  10015. --- ************************************************
  10016. ---
  10017. CREATE VIEW inversion_derived_bipartite_duplication AS
  10018. SELECT
  10019. feature_id AS inversion_derived_bipartite_duplication_id,
  10020. feature.*
  10021. FROM
  10022. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10023. WHERE cvterm.name = 'inversion_derived_bipartite_duplication';
  10024. --- ************************************************
  10025. --- *** relation: gene_with_edited_transcript ***
  10026. --- *** relation type: VIEW ***
  10027. --- *** ***
  10028. --- *** A gene that encodes a transcript that is ***
  10029. --- *** edited. ***
  10030. --- ************************************************
  10031. ---
  10032. CREATE VIEW gene_with_edited_transcript AS
  10033. SELECT
  10034. feature_id AS gene_with_edited_transcript_id,
  10035. feature.*
  10036. FROM
  10037. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10038. WHERE cvterm.name = 'gene_with_edited_transcript';
  10039. --- ************************************************
  10040. --- *** relation: inversion_derived_duplication_plus_aneuploid ***
  10041. --- *** relation type: VIEW ***
  10042. --- *** ***
  10043. --- *** A chromosome generated by recombination ***
  10044. --- *** between two inversions; has a duplicatio ***
  10045. --- *** n at one end and presumed to have a defi ***
  10046. --- *** ciency or duplication at the other end o ***
  10047. --- *** f the inversion. ***
  10048. --- ************************************************
  10049. ---
  10050. CREATE VIEW inversion_derived_duplication_plus_aneuploid AS
  10051. SELECT
  10052. feature_id AS inversion_derived_duplication_plus_aneuploid_id,
  10053. feature.*
  10054. FROM
  10055. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10056. WHERE cvterm.name = 'inversion_derived_duplication_plus_aneuploid';
  10057. --- ************************************************
  10058. --- *** relation: aneuploid_chromosome ***
  10059. --- *** relation type: VIEW ***
  10060. --- *** ***
  10061. --- ************************************************
  10062. ---
  10063. CREATE VIEW aneuploid_chromosome AS
  10064. SELECT
  10065. feature_id AS aneuploid_chromosome_id,
  10066. feature.*
  10067. FROM
  10068. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10069. 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';
  10070. --- ************************************************
  10071. --- *** relation: polya_signal_sequence ***
  10072. --- *** relation type: VIEW ***
  10073. --- *** ***
  10074. --- *** The recognition sequence necessary for e ***
  10075. --- *** ndonuclease cleavage of an RNA transcrip ***
  10076. --- *** t that is followed by polyadenylation; c ***
  10077. --- *** onsensus=AATAAA. ***
  10078. --- ************************************************
  10079. ---
  10080. CREATE VIEW polya_signal_sequence AS
  10081. SELECT
  10082. feature_id AS polya_signal_sequence_id,
  10083. feature.*
  10084. FROM
  10085. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10086. WHERE cvterm.name = 'polyA_signal_sequence';
  10087. --- ************************************************
  10088. --- *** relation: shine_dalgarno_sequence ***
  10089. --- *** relation type: VIEW ***
  10090. --- *** ***
  10091. --- *** Region in 5' UTR where ribosome assemble ***
  10092. --- *** s on mRNA. ***
  10093. --- ************************************************
  10094. ---
  10095. CREATE VIEW shine_dalgarno_sequence AS
  10096. SELECT
  10097. feature_id AS shine_dalgarno_sequence_id,
  10098. feature.*
  10099. FROM
  10100. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10101. WHERE cvterm.name = 'Shine_Dalgarno_sequence';
  10102. --- ************************************************
  10103. --- *** relation: polya_site ***
  10104. --- *** relation type: VIEW ***
  10105. --- *** ***
  10106. --- *** The site on an RNA transcript to which w ***
  10107. --- *** ill be added adenine residues by post-tr ***
  10108. --- *** anscriptional polyadenylation. ***
  10109. --- ************************************************
  10110. ---
  10111. CREATE VIEW polya_site AS
  10112. SELECT
  10113. feature_id AS polya_site_id,
  10114. feature.*
  10115. FROM
  10116. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10117. WHERE cvterm.name = 'polyA_site';
  10118. --- ************************************************
  10119. --- *** relation: five_prime_clip ***
  10120. --- *** relation type: VIEW ***
  10121. --- *** ***
  10122. --- *** 5' most region of a precursor transcript ***
  10123. --- *** that is clipped off during processing. ***
  10124. --- ************************************************
  10125. ---
  10126. CREATE VIEW five_prime_clip AS
  10127. SELECT
  10128. feature_id AS five_prime_clip_id,
  10129. feature.*
  10130. FROM
  10131. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10132. WHERE cvterm.name = 'five_prime_clip';
  10133. --- ************************************************
  10134. --- *** relation: five_prime_d_recombination_signal_sequence ***
  10135. --- *** relation type: VIEW ***
  10136. --- *** ***
  10137. --- *** Recombination signal of an immunoglobuli ***
  10138. --- *** n/T-cell receptor gene, including the 5' ***
  10139. --- *** D-nonamer (SO:0000497), 5' D-spacer (SO ***
  10140. --- *** :0000498), and 5' D-heptamer (SO:0000396 ***
  10141. --- *** ) in 5' of the D-region of a D-gene, or ***
  10142. --- *** in 5' of the D-region of DJ-gene. ***
  10143. --- ************************************************
  10144. ---
  10145. CREATE VIEW five_prime_d_recombination_signal_sequence AS
  10146. SELECT
  10147. feature_id AS five_prime_d_recombination_signal_sequence_id,
  10148. feature.*
  10149. FROM
  10150. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10151. WHERE cvterm.name = 'five_prime_D_recombination_signal_sequence';
  10152. --- ************************************************
  10153. --- *** relation: three_prime_clip ***
  10154. --- *** relation type: VIEW ***
  10155. --- *** ***
  10156. --- *** 3'-most region of a precursor transcript ***
  10157. --- *** that is clipped off during processing. ***
  10158. --- ************************************************
  10159. ---
  10160. CREATE VIEW three_prime_clip AS
  10161. SELECT
  10162. feature_id AS three_prime_clip_id,
  10163. feature.*
  10164. FROM
  10165. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10166. WHERE cvterm.name = 'three_prime_clip';
  10167. --- ************************************************
  10168. --- *** relation: c_cluster ***
  10169. --- *** relation type: VIEW ***
  10170. --- *** ***
  10171. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10172. --- *** eptor gene including more than one C-gen ***
  10173. --- *** e. ***
  10174. --- ************************************************
  10175. ---
  10176. CREATE VIEW c_cluster AS
  10177. SELECT
  10178. feature_id AS c_cluster_id,
  10179. feature.*
  10180. FROM
  10181. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10182. WHERE cvterm.name = 'C_cluster';
  10183. --- ************************************************
  10184. --- *** relation: d_cluster ***
  10185. --- *** relation type: VIEW ***
  10186. --- *** ***
  10187. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10188. --- *** eptor gene in germline configuration inc ***
  10189. --- *** luding more than one D-gene. ***
  10190. --- ************************************************
  10191. ---
  10192. CREATE VIEW d_cluster AS
  10193. SELECT
  10194. feature_id AS d_cluster_id,
  10195. feature.*
  10196. FROM
  10197. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10198. WHERE cvterm.name = 'D_cluster';
  10199. --- ************************************************
  10200. --- *** relation: d_j_cluster ***
  10201. --- *** relation type: VIEW ***
  10202. --- *** ***
  10203. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10204. --- *** eptor gene in germline configuration inc ***
  10205. --- *** luding at least one D-gene and one J-gen ***
  10206. --- *** e. ***
  10207. --- ************************************************
  10208. ---
  10209. CREATE VIEW d_j_cluster AS
  10210. SELECT
  10211. feature_id AS d_j_cluster_id,
  10212. feature.*
  10213. FROM
  10214. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10215. WHERE cvterm.name = 'D_J_cluster';
  10216. --- ************************************************
  10217. --- *** relation: heptamer_of_recombination_feature_of_vertebrate_im_sys_gene ***
  10218. --- *** relation type: VIEW ***
  10219. --- *** ***
  10220. --- *** Seven nucleotide recombination site (e.g ***
  10221. --- *** . CACAGTG), part of V-gene, D-gene or J- ***
  10222. --- *** gene recombination feature of an immunog ***
  10223. --- *** lobulin or T-cell receptor gene. ***
  10224. --- ************************************************
  10225. ---
  10226. CREATE VIEW heptamer_of_recombination_feature_of_vertebrate_im_sys_gene AS
  10227. SELECT
  10228. feature_id AS heptamer_of_recombination_feature_of_vertebrate_im_sys_gene_id,
  10229. feature.*
  10230. FROM
  10231. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10232. 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';
  10233. --- ************************************************
  10234. --- *** relation: nonamer_of_recombination_feature_of_vertebrate_im_sys_gene ***
  10235. --- *** relation type: VIEW ***
  10236. --- *** ***
  10237. --- ************************************************
  10238. ---
  10239. CREATE VIEW nonamer_of_recombination_feature_of_vertebrate_im_sys_gene AS
  10240. SELECT
  10241. feature_id AS nonamer_of_recombination_feature_of_vertebrate_im_sys_gene_id,
  10242. feature.*
  10243. FROM
  10244. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10245. 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';
  10246. --- ************************************************
  10247. --- *** relation: vertebrate_immune_system_gene_recombination_spacer ***
  10248. --- *** relation type: VIEW ***
  10249. --- *** ***
  10250. --- ************************************************
  10251. ---
  10252. CREATE VIEW vertebrate_immune_system_gene_recombination_spacer AS
  10253. SELECT
  10254. feature_id AS vertebrate_immune_system_gene_recombination_spacer_id,
  10255. feature.*
  10256. FROM
  10257. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10258. 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';
  10259. --- ************************************************
  10260. --- *** relation: v_dj_j_c_cluster ***
  10261. --- *** relation type: VIEW ***
  10262. --- *** ***
  10263. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10264. --- *** eptor gene in rearranged configuration i ***
  10265. --- *** ncluding at least one V-gene, one DJ-gen ***
  10266. --- *** e, one J-gene and one C-gene. ***
  10267. --- ************************************************
  10268. ---
  10269. CREATE VIEW v_dj_j_c_cluster AS
  10270. SELECT
  10271. feature_id AS v_dj_j_c_cluster_id,
  10272. feature.*
  10273. FROM
  10274. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10275. WHERE cvterm.name = 'V_DJ_J_C_cluster';
  10276. --- ************************************************
  10277. --- *** relation: v_vdj_j_c_cluster ***
  10278. --- *** relation type: VIEW ***
  10279. --- *** ***
  10280. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10281. --- *** eptor gene in rearranged configuration i ***
  10282. --- *** ncluding at least one V-gene, one VDJ-ge ***
  10283. --- *** ne, one J-gene and one C-gene. ***
  10284. --- ************************************************
  10285. ---
  10286. CREATE VIEW v_vdj_j_c_cluster AS
  10287. SELECT
  10288. feature_id AS v_vdj_j_c_cluster_id,
  10289. feature.*
  10290. FROM
  10291. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10292. WHERE cvterm.name = 'V_VDJ_J_C_cluster';
  10293. --- ************************************************
  10294. --- *** relation: v_vj_j_c_cluster ***
  10295. --- *** relation type: VIEW ***
  10296. --- *** ***
  10297. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10298. --- *** eptor gene in rearranged configuration i ***
  10299. --- *** ncluding at least one V-gene, one VJ-gen ***
  10300. --- *** e, one J-gene and one C-gene. ***
  10301. --- ************************************************
  10302. ---
  10303. CREATE VIEW v_vj_j_c_cluster AS
  10304. SELECT
  10305. feature_id AS v_vj_j_c_cluster_id,
  10306. feature.*
  10307. FROM
  10308. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10309. WHERE cvterm.name = 'V_VJ_J_C_cluster';
  10310. --- ************************************************
  10311. --- *** relation: inversion_derived_aneuploid_chromosome ***
  10312. --- *** relation type: VIEW ***
  10313. --- *** ***
  10314. --- *** A chromosome may be generated by recombi ***
  10315. --- *** nation between two inverversions; presum ***
  10316. --- *** ed to have a deficiency or duplication a ***
  10317. --- *** t each end of the inversion. ***
  10318. --- ************************************************
  10319. ---
  10320. CREATE VIEW inversion_derived_aneuploid_chromosome AS
  10321. SELECT
  10322. feature_id AS inversion_derived_aneuploid_chromosome_id,
  10323. feature.*
  10324. FROM
  10325. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10326. WHERE cvterm.name = 'inversion_derived_aneuploid_chromosome';
  10327. --- ************************************************
  10328. --- *** relation: bidirectional_promoter ***
  10329. --- *** relation type: VIEW ***
  10330. --- *** ***
  10331. --- ************************************************
  10332. ---
  10333. CREATE VIEW bidirectional_promoter AS
  10334. SELECT
  10335. feature_id AS bidirectional_promoter_id,
  10336. feature.*
  10337. FROM
  10338. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10339. WHERE cvterm.name = 'bidirectional_promoter';
  10340. --- ************************************************
  10341. --- *** relation: retrotransposed ***
  10342. --- *** relation type: VIEW ***
  10343. --- *** ***
  10344. --- *** An attribute of a feature that occured a ***
  10345. --- *** s the product of a reverse transcriptase ***
  10346. --- *** mediated event. ***
  10347. --- ************************************************
  10348. ---
  10349. CREATE VIEW retrotransposed AS
  10350. SELECT
  10351. feature_id AS retrotransposed_id,
  10352. feature.*
  10353. FROM
  10354. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10355. WHERE cvterm.name = 'retrotransposed';
  10356. --- ************************************************
  10357. --- *** relation: three_prime_d_recombination_signal_sequence ***
  10358. --- *** relation type: VIEW ***
  10359. --- *** ***
  10360. --- *** Recombination signal of an immunoglobuli ***
  10361. --- *** n/T-cell receptor gene, including the 3' ***
  10362. --- *** D-heptamer (SO:0000493), 3' D-spacer, a ***
  10363. --- *** nd 3' D-nonamer (SO:0000494) in 3' of th ***
  10364. --- *** e D-region of a D-gene. ***
  10365. --- ************************************************
  10366. ---
  10367. CREATE VIEW three_prime_d_recombination_signal_sequence AS
  10368. SELECT
  10369. feature_id AS three_prime_d_recombination_signal_sequence_id,
  10370. feature.*
  10371. FROM
  10372. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10373. WHERE cvterm.name = 'three_prime_D_recombination_signal_sequence';
  10374. --- ************************************************
  10375. --- *** relation: mirna_encoding ***
  10376. --- *** relation type: VIEW ***
  10377. --- *** ***
  10378. --- ************************************************
  10379. ---
  10380. CREATE VIEW mirna_encoding AS
  10381. SELECT
  10382. feature_id AS mirna_encoding_id,
  10383. feature.*
  10384. FROM
  10385. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10386. WHERE cvterm.name = 'miRNA_encoding';
  10387. --- ************************************************
  10388. --- *** relation: dj_gene ***
  10389. --- *** relation type: VIEW ***
  10390. --- *** ***
  10391. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10392. --- *** eptor gene in partially rearranged genom ***
  10393. --- *** ic DNA including D-J-region with 5' UTR ***
  10394. --- *** and 3' UTR, also designated as D-J-segme ***
  10395. --- *** nt. ***
  10396. --- ************************************************
  10397. ---
  10398. CREATE VIEW dj_gene AS
  10399. SELECT
  10400. feature_id AS dj_gene_id,
  10401. feature.*
  10402. FROM
  10403. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10404. WHERE cvterm.name = 'DJ_gene';
  10405. --- ************************************************
  10406. --- *** relation: rrna_encoding ***
  10407. --- *** relation type: VIEW ***
  10408. --- *** ***
  10409. --- ************************************************
  10410. ---
  10411. CREATE VIEW rrna_encoding AS
  10412. SELECT
  10413. feature_id AS rrna_encoding_id,
  10414. feature.*
  10415. FROM
  10416. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10417. WHERE cvterm.name = 'rRNA_encoding';
  10418. --- ************************************************
  10419. --- *** relation: vdj_gene ***
  10420. --- *** relation type: VIEW ***
  10421. --- *** ***
  10422. --- *** Rearranged genomic DNA of immunoglobulin ***
  10423. --- *** /T-cell receptor gene including L-part1, ***
  10424. --- *** V-intron and V-D-J-exon, with the 5'UTR ***
  10425. --- *** (SO:0000204) and 3'UTR (SO:0000205). ***
  10426. --- ************************************************
  10427. ---
  10428. CREATE VIEW vdj_gene AS
  10429. SELECT
  10430. feature_id AS vdj_gene_id,
  10431. feature.*
  10432. FROM
  10433. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10434. WHERE cvterm.name = 'VDJ_gene';
  10435. --- ************************************************
  10436. --- *** relation: scrna_encoding ***
  10437. --- *** relation type: VIEW ***
  10438. --- *** ***
  10439. --- ************************************************
  10440. ---
  10441. CREATE VIEW scrna_encoding AS
  10442. SELECT
  10443. feature_id AS scrna_encoding_id,
  10444. feature.*
  10445. FROM
  10446. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10447. WHERE cvterm.name = 'scRNA_encoding';
  10448. --- ************************************************
  10449. --- *** relation: vj_gene ***
  10450. --- *** relation type: VIEW ***
  10451. --- *** ***
  10452. --- *** Rearranged genomic DNA of immunoglobulin ***
  10453. --- *** /T-cell receptor gene including L-part1, ***
  10454. --- *** V-intron and V-J-exon, with the 5'UTR ( ***
  10455. --- *** SO:0000204) and 3'UTR (SO:0000205). ***
  10456. --- ************************************************
  10457. ---
  10458. CREATE VIEW vj_gene AS
  10459. SELECT
  10460. feature_id AS vj_gene_id,
  10461. feature.*
  10462. FROM
  10463. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10464. WHERE cvterm.name = 'VJ_gene';
  10465. --- ************************************************
  10466. --- *** relation: centromere ***
  10467. --- *** relation type: VIEW ***
  10468. --- *** ***
  10469. --- *** A region of chromosome where the spindle ***
  10470. --- *** fibers attach during mitosis and meiosi ***
  10471. --- *** s. ***
  10472. --- ************************************************
  10473. ---
  10474. CREATE VIEW centromere AS
  10475. SELECT
  10476. feature_id AS centromere_id,
  10477. feature.*
  10478. FROM
  10479. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10480. WHERE cvterm.name = 'centromere';
  10481. --- ************************************************
  10482. --- *** relation: snorna_encoding ***
  10483. --- *** relation type: VIEW ***
  10484. --- *** ***
  10485. --- ************************************************
  10486. ---
  10487. CREATE VIEW snorna_encoding AS
  10488. SELECT
  10489. feature_id AS snorna_encoding_id,
  10490. feature.*
  10491. FROM
  10492. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10493. WHERE cvterm.name = 'C_D_box_snoRNA_encoding' OR cvterm.name = 'H_ACA_box_snoRNA_encoding' OR cvterm.name = 'snoRNA_encoding';
  10494. --- ************************************************
  10495. --- *** relation: edited_transcript_feature ***
  10496. --- *** relation type: VIEW ***
  10497. --- *** ***
  10498. --- *** A locatable feature on a transcript that ***
  10499. --- *** is edited. ***
  10500. --- ************************************************
  10501. ---
  10502. CREATE VIEW edited_transcript_feature AS
  10503. SELECT
  10504. feature_id AS edited_transcript_feature_id,
  10505. feature.*
  10506. FROM
  10507. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10508. 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';
  10509. --- ************************************************
  10510. --- *** relation: methylation_guide_snorna_primary_transcript ***
  10511. --- *** relation type: VIEW ***
  10512. --- *** ***
  10513. --- *** A primary transcript encoding a methylat ***
  10514. --- *** ion guide small nucleolar RNA. ***
  10515. --- ************************************************
  10516. ---
  10517. CREATE VIEW methylation_guide_snorna_primary_transcript AS
  10518. SELECT
  10519. feature_id AS methylation_guide_snorna_primary_transcript_id,
  10520. feature.*
  10521. FROM
  10522. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10523. WHERE cvterm.name = 'methylation_guide_snoRNA_primary_transcript';
  10524. --- ************************************************
  10525. --- *** relation: cap ***
  10526. --- *** relation type: VIEW ***
  10527. --- *** ***
  10528. --- *** A structure consisting of a 7-methylguan ***
  10529. --- *** osine in 5'-5' triphosphate linkage with ***
  10530. --- *** the first nucleotide of an mRNA. It is ***
  10531. --- *** added post-transcriptionally, and is not ***
  10532. --- *** encoded in the DNA. ***
  10533. --- ************************************************
  10534. ---
  10535. CREATE VIEW cap AS
  10536. SELECT
  10537. feature_id AS cap_id,
  10538. feature.*
  10539. FROM
  10540. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10541. WHERE cvterm.name = 'cap';
  10542. --- ************************************************
  10543. --- *** relation: rrna_cleavage_snorna_primary_transcript ***
  10544. --- *** relation type: VIEW ***
  10545. --- *** ***
  10546. --- *** A primary transcript encoding an rRNA cl ***
  10547. --- *** eavage snoRNA. ***
  10548. --- ************************************************
  10549. ---
  10550. CREATE VIEW rrna_cleavage_snorna_primary_transcript AS
  10551. SELECT
  10552. feature_id AS rrna_cleavage_snorna_primary_transcript_id,
  10553. feature.*
  10554. FROM
  10555. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10556. WHERE cvterm.name = 'rRNA_cleavage_snoRNA_primary_transcript';
  10557. --- ************************************************
  10558. --- *** relation: pre_edited_region ***
  10559. --- *** relation type: VIEW ***
  10560. --- *** ***
  10561. --- *** The region of a transcript that will be ***
  10562. --- *** edited. ***
  10563. --- ************************************************
  10564. ---
  10565. CREATE VIEW pre_edited_region AS
  10566. SELECT
  10567. feature_id AS pre_edited_region_id,
  10568. feature.*
  10569. FROM
  10570. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10571. WHERE cvterm.name = 'pre_edited_region';
  10572. --- ************************************************
  10573. --- *** relation: tmrna ***
  10574. --- *** relation type: VIEW ***
  10575. --- *** ***
  10576. --- *** A tmRNA liberates a mRNA from a stalled ***
  10577. --- *** ribosome. To accomplish this part of the ***
  10578. --- *** tmRNA is used as a reading frame that e ***
  10579. --- *** nds in a translation stop signal. The br ***
  10580. --- *** oken mRNA is replaced in the ribosome by ***
  10581. --- *** the tmRNA and translation of the tmRNA ***
  10582. --- *** leads to addition of a proteolysis tag t ***
  10583. --- *** o the incomplete protein enabling recogn ***
  10584. --- *** ition by a protease. Recently a number o ***
  10585. --- *** f permuted tmRNAs genes have been found ***
  10586. --- *** encoded in two parts. TmRNAs have been i ***
  10587. --- *** dentified in eubacteria and some chlorop ***
  10588. --- *** lasts but are absent from archeal and eu ***
  10589. --- *** karyote nuclear genomes. ***
  10590. --- ************************************************
  10591. ---
  10592. CREATE VIEW tmrna AS
  10593. SELECT
  10594. feature_id AS tmrna_id,
  10595. feature.*
  10596. FROM
  10597. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10598. WHERE cvterm.name = 'tmRNA';
  10599. --- ************************************************
  10600. --- *** relation: c_d_box_snorna_encoding ***
  10601. --- *** relation type: VIEW ***
  10602. --- *** ***
  10603. --- ************************************************
  10604. ---
  10605. CREATE VIEW c_d_box_snorna_encoding AS
  10606. SELECT
  10607. feature_id AS c_d_box_snorna_encoding_id,
  10608. feature.*
  10609. FROM
  10610. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10611. WHERE cvterm.name = 'C_D_box_snoRNA_encoding';
  10612. --- ************************************************
  10613. --- *** relation: tmrna_primary_transcript ***
  10614. --- *** relation type: VIEW ***
  10615. --- *** ***
  10616. --- *** A primary transcript encoding a tmRNA (S ***
  10617. --- *** O:0000584). ***
  10618. --- ************************************************
  10619. ---
  10620. CREATE VIEW tmrna_primary_transcript AS
  10621. SELECT
  10622. feature_id AS tmrna_primary_transcript_id,
  10623. feature.*
  10624. FROM
  10625. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10626. WHERE cvterm.name = 'tmRNA_primary_transcript';
  10627. --- ************************************************
  10628. --- *** relation: group_i_intron ***
  10629. --- *** relation type: VIEW ***
  10630. --- *** ***
  10631. --- *** Group I catalytic introns are large self ***
  10632. --- *** -splicing ribozymes. They catalyse their ***
  10633. --- *** own excision from mRNA, tRNA and rRNA p ***
  10634. --- *** recursors in a wide range of organisms. ***
  10635. --- *** The core secondary structure consists of ***
  10636. --- *** 9 paired regions (P1-P9). These fold to ***
  10637. --- *** essentially two domains, the P4-P6 doma ***
  10638. --- *** in (formed from the stacking of P5, P4, ***
  10639. --- *** P6 and P6a helices) and the P3-P9 domain ***
  10640. --- *** (formed from the P8, P3, P7 and P9 heli ***
  10641. --- *** ces). Group I catalytic introns often ha ***
  10642. --- *** ve long ORFs inserted in loop regions. ***
  10643. --- ************************************************
  10644. ---
  10645. CREATE VIEW group_i_intron AS
  10646. SELECT
  10647. feature_id AS group_i_intron_id,
  10648. feature.*
  10649. FROM
  10650. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10651. WHERE cvterm.name = 'group_I_intron';
  10652. --- ************************************************
  10653. --- *** relation: autocatalytically_spliced_intron ***
  10654. --- *** relation type: VIEW ***
  10655. --- *** ***
  10656. --- *** A self spliced intron. ***
  10657. --- ************************************************
  10658. ---
  10659. CREATE VIEW autocatalytically_spliced_intron AS
  10660. SELECT
  10661. feature_id AS autocatalytically_spliced_intron_id,
  10662. feature.*
  10663. FROM
  10664. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10665. 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';
  10666. --- ************************************************
  10667. --- *** relation: srp_rna_primary_transcript ***
  10668. --- *** relation type: VIEW ***
  10669. --- *** ***
  10670. --- *** A primary transcript encoding a signal r ***
  10671. --- *** ecognition particle RNA. ***
  10672. --- ************************************************
  10673. ---
  10674. CREATE VIEW srp_rna_primary_transcript AS
  10675. SELECT
  10676. feature_id AS srp_rna_primary_transcript_id,
  10677. feature.*
  10678. FROM
  10679. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10680. WHERE cvterm.name = 'SRP_RNA_primary_transcript';
  10681. --- ************************************************
  10682. --- *** relation: srp_rna ***
  10683. --- *** relation type: VIEW ***
  10684. --- *** ***
  10685. --- *** The signal recognition particle (SRP) is ***
  10686. --- *** a universally conserved ribonucleoprote ***
  10687. --- *** in. It is involved in the co-translation ***
  10688. --- *** al targeting of proteins to membranes. T ***
  10689. --- *** he eukaryotic SRP consists of a 300-nucl ***
  10690. --- *** eotide 7S RNA and six proteins: SRPs 72, ***
  10691. --- *** 68, 54, 19, 14, and 9. Archaeal SRP con ***
  10692. --- *** sists of a 7S RNA and homologues of the ***
  10693. --- *** eukaryotic SRP19 and SRP54 proteins. In ***
  10694. --- *** most eubacteria, the SRP consists of a 4 ***
  10695. --- *** .5S RNA and the Ffh protein (a homologue ***
  10696. --- *** of the eukaryotic SRP54 protein). Eukar ***
  10697. --- *** yotic and archaeal 7S RNAs have very sim ***
  10698. --- *** ilar secondary structures, with eight he ***
  10699. --- *** lical elements. These fold into the Alu ***
  10700. --- *** and S domains, separated by a long linke ***
  10701. --- *** r region. Eubacterial SRP is generally a ***
  10702. --- *** simpler structure, with the M domain of ***
  10703. --- *** Ffh bound to a region of the 4.5S RNA t ***
  10704. --- *** hat corresponds to helix 8 of the eukary ***
  10705. --- *** otic and archaeal SRP S domain. Some Gra ***
  10706. --- *** m-positive bacteria (e.g. Bacillus subti ***
  10707. --- *** lis), however, have a larger SRP RNA tha ***
  10708. --- *** t also has an Alu domain. The Alu domain ***
  10709. --- *** is thought to mediate the peptide chain ***
  10710. --- *** elongation retardation function of the ***
  10711. --- *** SRP. The universally conserved helix whi ***
  10712. --- *** ch interacts with the SRP54/Ffh M domain ***
  10713. --- *** mediates signal sequence recognition. I ***
  10714. --- *** n eukaryotes and archaea, the SRP19-heli ***
  10715. --- *** x 6 complex is thought to be involved in ***
  10716. --- *** SRP assembly and stabilizes helix 8 for ***
  10717. --- *** SRP54 binding. ***
  10718. --- ************************************************
  10719. ---
  10720. CREATE VIEW srp_rna AS
  10721. SELECT
  10722. feature_id AS srp_rna_id,
  10723. feature.*
  10724. FROM
  10725. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10726. WHERE cvterm.name = 'SRP_RNA';
  10727. --- ************************************************
  10728. --- *** relation: pseudoknot ***
  10729. --- *** relation type: VIEW ***
  10730. --- *** ***
  10731. --- *** A tertiary structure in RNA where nucleo ***
  10732. --- *** tides in a loop form base pairs with a r ***
  10733. --- *** egion of RNA downstream of the loop. ***
  10734. --- ************************************************
  10735. ---
  10736. CREATE VIEW pseudoknot AS
  10737. SELECT
  10738. feature_id AS pseudoknot_id,
  10739. feature.*
  10740. FROM
  10741. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10742. WHERE cvterm.name = 'recoding_pseudoknot' OR cvterm.name = 'H_pseudoknot' OR cvterm.name = 'pseudoknot';
  10743. --- ************************************************
  10744. --- *** relation: h_pseudoknot ***
  10745. --- *** relation type: VIEW ***
  10746. --- *** ***
  10747. --- *** A pseudoknot which contains two stems an ***
  10748. --- *** d at least two loops. ***
  10749. --- ************************************************
  10750. ---
  10751. CREATE VIEW h_pseudoknot AS
  10752. SELECT
  10753. feature_id AS h_pseudoknot_id,
  10754. feature.*
  10755. FROM
  10756. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10757. WHERE cvterm.name = 'H_pseudoknot';
  10758. --- ************************************************
  10759. --- *** relation: c_d_box_snorna ***
  10760. --- *** relation type: VIEW ***
  10761. --- *** ***
  10762. --- *** Most box C/D snoRNAs also contain long ( ***
  10763. --- *** >10 nt) sequences complementary to rRNA. ***
  10764. --- *** Boxes C and D, as well as boxes C' and ***
  10765. --- *** D', are usually located in close proximi ***
  10766. --- *** ty, and form a structure known as the bo ***
  10767. --- *** x C/D motif. This motif is important for ***
  10768. --- *** snoRNA stability, processing, nucleolar ***
  10769. --- *** targeting and function. A small number ***
  10770. --- *** of box C/D snoRNAs are involved in rRNA ***
  10771. --- *** processing; most, however, are known or ***
  10772. --- *** predicted to serve as guide RNAs in ribo ***
  10773. --- *** se methylation of rRNA. Targeting involv ***
  10774. --- *** es direct base pairing of the snoRNA at ***
  10775. --- *** the rRNA site to be modified and selecti ***
  10776. --- *** on of a rRNA nucleotide a fixed distance ***
  10777. --- *** from box D or D'. ***
  10778. --- ************************************************
  10779. ---
  10780. CREATE VIEW c_d_box_snorna AS
  10781. SELECT
  10782. feature_id AS c_d_box_snorna_id,
  10783. feature.*
  10784. FROM
  10785. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10786. WHERE cvterm.name = 'U14_snoRNA' OR cvterm.name = 'U3_snoRNA' OR cvterm.name = 'methylation_guide_snoRNA' OR cvterm.name = 'C_D_box_snoRNA';
  10787. --- ************************************************
  10788. --- *** relation: h_aca_box_snorna ***
  10789. --- *** relation type: VIEW ***
  10790. --- *** ***
  10791. --- *** Members of the box H/ACA family contain ***
  10792. --- *** an ACA triplet, exactly 3 nt upstream fr ***
  10793. --- *** om the 3' end and an H-box in a hinge re ***
  10794. --- *** gion that links two structurally similar ***
  10795. --- *** functional domains of the molecule. Bot ***
  10796. --- *** h boxes are important for snoRNA biosynt ***
  10797. --- *** hesis and function. A few box H/ACA snoR ***
  10798. --- *** NAs are involved in rRNA processing; mos ***
  10799. --- *** t others are known or predicted to parti ***
  10800. --- *** cipate in selection of uridine nucleosid ***
  10801. --- *** es in rRNA to be converted to pseudourid ***
  10802. --- *** ines. Site selection is mediated by dire ***
  10803. --- *** ct base pairing of the snoRNA with rRNA ***
  10804. --- *** through one or both targeting domains. ***
  10805. --- ************************************************
  10806. ---
  10807. CREATE VIEW h_aca_box_snorna AS
  10808. SELECT
  10809. feature_id AS h_aca_box_snorna_id,
  10810. feature.*
  10811. FROM
  10812. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10813. WHERE cvterm.name = 'pseudouridylation_guide_snoRNA' OR cvterm.name = 'H_ACA_box_snoRNA';
  10814. --- ************************************************
  10815. --- *** relation: c_d_box_snorna_primary_transcript ***
  10816. --- *** relation type: VIEW ***
  10817. --- *** ***
  10818. --- *** A primary transcript encoding a small nu ***
  10819. --- *** cleolar RNA of the box C/D family. ***
  10820. --- ************************************************
  10821. ---
  10822. CREATE VIEW c_d_box_snorna_primary_transcript AS
  10823. SELECT
  10824. feature_id AS c_d_box_snorna_primary_transcript_id,
  10825. feature.*
  10826. FROM
  10827. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10828. WHERE cvterm.name = 'C_D_box_snoRNA_primary_transcript';
  10829. --- ************************************************
  10830. --- *** relation: h_aca_box_snorna_primary_transcript ***
  10831. --- *** relation type: VIEW ***
  10832. --- *** ***
  10833. --- *** A primary transcript encoding a small nu ***
  10834. --- *** cleolar RNA of the box H/ACA family. ***
  10835. --- ************************************************
  10836. ---
  10837. CREATE VIEW h_aca_box_snorna_primary_transcript AS
  10838. SELECT
  10839. feature_id AS h_aca_box_snorna_primary_transcript_id,
  10840. feature.*
  10841. FROM
  10842. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10843. WHERE cvterm.name = 'H_ACA_box_snoRNA_primary_transcript';
  10844. --- ************************************************
  10845. --- *** relation: guide_rna ***
  10846. --- *** relation type: VIEW ***
  10847. --- *** ***
  10848. --- *** A short 3'-uridylated RNA that can form ***
  10849. --- *** a duplex (except for its post-transcript ***
  10850. --- *** ionally added oligo_U tail (SO:0000609)) ***
  10851. --- *** with a stretch of mature edited mRNA. ***
  10852. --- ************************************************
  10853. ---
  10854. CREATE VIEW guide_rna AS
  10855. SELECT
  10856. feature_id AS guide_rna_id,
  10857. feature.*
  10858. FROM
  10859. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10860. WHERE cvterm.name = 'guide_RNA';
  10861. --- ************************************************
  10862. --- *** relation: group_ii_intron ***
  10863. --- *** relation type: VIEW ***
  10864. --- *** ***
  10865. --- *** Group II introns are found in rRNA, tRNA ***
  10866. --- *** and mRNA of organelles in fungi, plants ***
  10867. --- *** and protists, and also in mRNA in bacte ***
  10868. --- *** ria. They are large self-splicing ribozy ***
  10869. --- *** mes and have 6 structural domains (usual ***
  10870. --- *** ly designated dI to dVI). A subset of gr ***
  10871. --- *** oup II introns also encode essential spl ***
  10872. --- *** icing proteins in intronic ORFs. The len ***
  10873. --- *** gth of these introns can therefore be up ***
  10874. --- *** to 3kb. Splicing occurs in almost ident ***
  10875. --- *** ical fashion to nuclear pre-mRNA splicin ***
  10876. --- *** g with two transesterification steps. Th ***
  10877. --- *** e 2' hydroxyl of a bulged adenosine in d ***
  10878. --- *** omain VI attacks the 5' splice site, fol ***
  10879. --- *** lowed by nucleophilic attack on the 3' s ***
  10880. --- *** plice site by the 3' OH of the upstream ***
  10881. --- *** exon. Protein machinery is required for ***
  10882. --- *** splicing in vivo, and long range intron- ***
  10883. --- *** intron and intron-exon interactions are ***
  10884. --- *** important for splice site positioning. G ***
  10885. --- *** roup II introns are further sub-classifi ***
  10886. --- *** ed into groups IIA and IIB which differ ***
  10887. --- *** in splice site consensus, distance of bu ***
  10888. --- *** lged A from 3' splice site, some tertiar ***
  10889. --- *** y interactions, and intronic ORF phyloge ***
  10890. --- *** ny. ***
  10891. --- ************************************************
  10892. ---
  10893. CREATE VIEW group_ii_intron AS
  10894. SELECT
  10895. feature_id AS group_ii_intron_id,
  10896. feature.*
  10897. FROM
  10898. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10899. WHERE cvterm.name = 'group_IIA_intron' OR cvterm.name = 'group_IIB_intron' OR cvterm.name = 'group_II_intron';
  10900. --- ************************************************
  10901. --- *** relation: editing_block ***
  10902. --- *** relation type: VIEW ***
  10903. --- *** ***
  10904. --- *** Edited mRNA sequence mediated by a singl ***
  10905. --- *** e guide RNA (SO:0000602). ***
  10906. --- ************************************************
  10907. ---
  10908. CREATE VIEW editing_block AS
  10909. SELECT
  10910. feature_id AS editing_block_id,
  10911. feature.*
  10912. FROM
  10913. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10914. WHERE cvterm.name = 'editing_block';
  10915. --- ************************************************
  10916. --- *** relation: intergenic_region ***
  10917. --- *** relation type: VIEW ***
  10918. --- *** ***
  10919. --- *** A region containing or overlapping no ge ***
  10920. --- *** nes that is bounded on either side by a ***
  10921. --- *** gene, or bounded by a gene and the end o ***
  10922. --- *** f the chromosome. ***
  10923. --- ************************************************
  10924. ---
  10925. CREATE VIEW intergenic_region AS
  10926. SELECT
  10927. feature_id AS intergenic_region_id,
  10928. feature.*
  10929. FROM
  10930. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10931. WHERE cvterm.name = 'intergenic_region';
  10932. --- ************************************************
  10933. --- *** relation: editing_domain ***
  10934. --- *** relation type: VIEW ***
  10935. --- *** ***
  10936. --- *** Edited mRNA sequence mediated by two or ***
  10937. --- *** more overlapping guide RNAs (SO:0000602) ***
  10938. --- *** . ***
  10939. --- ************************************************
  10940. ---
  10941. CREATE VIEW editing_domain AS
  10942. SELECT
  10943. feature_id AS editing_domain_id,
  10944. feature.*
  10945. FROM
  10946. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10947. WHERE cvterm.name = 'editing_domain';
  10948. --- ************************************************
  10949. --- *** relation: unedited_region ***
  10950. --- *** relation type: VIEW ***
  10951. --- *** ***
  10952. --- *** The region of an edited transcript that ***
  10953. --- *** will not be edited. ***
  10954. --- ************************************************
  10955. ---
  10956. CREATE VIEW unedited_region AS
  10957. SELECT
  10958. feature_id AS unedited_region_id,
  10959. feature.*
  10960. FROM
  10961. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10962. WHERE cvterm.name = 'unedited_region';
  10963. --- ************************************************
  10964. --- *** relation: h_aca_box_snorna_encoding ***
  10965. --- *** relation type: VIEW ***
  10966. --- *** ***
  10967. --- ************************************************
  10968. ---
  10969. CREATE VIEW h_aca_box_snorna_encoding AS
  10970. SELECT
  10971. feature_id AS h_aca_box_snorna_encoding_id,
  10972. feature.*
  10973. FROM
  10974. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10975. WHERE cvterm.name = 'H_ACA_box_snoRNA_encoding';
  10976. --- ************************************************
  10977. --- *** relation: oligo_u_tail ***
  10978. --- *** relation type: VIEW ***
  10979. --- *** ***
  10980. --- *** The string of non-encoded U's at the 3' ***
  10981. --- *** end of a guide RNA (SO:0000602). ***
  10982. --- ************************************************
  10983. ---
  10984. CREATE VIEW oligo_u_tail AS
  10985. SELECT
  10986. feature_id AS oligo_u_tail_id,
  10987. feature.*
  10988. FROM
  10989. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10990. WHERE cvterm.name = 'oligo_U_tail';
  10991. --- ************************************************
  10992. --- *** relation: polya_sequence ***
  10993. --- *** relation type: VIEW ***
  10994. --- *** ***
  10995. --- *** Sequence of about 100 nucleotides of A a ***
  10996. --- *** dded to the 3' end of most eukaryotic mR ***
  10997. --- *** NAs. ***
  10998. --- ************************************************
  10999. ---
  11000. CREATE VIEW polya_sequence AS
  11001. SELECT
  11002. feature_id AS polya_sequence_id,
  11003. feature.*
  11004. FROM
  11005. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11006. WHERE cvterm.name = 'polyA_sequence';
  11007. --- ************************************************
  11008. --- *** relation: branch_site ***
  11009. --- *** relation type: VIEW ***
  11010. --- *** ***
  11011. --- *** A pyrimidine rich sequence near the 3' e ***
  11012. --- *** nd of an intron to which the 5'end becom ***
  11013. --- *** es covalently bound during nuclear splic ***
  11014. --- *** ing. The resulting structure resembles a ***
  11015. --- *** lariat. ***
  11016. --- ************************************************
  11017. ---
  11018. CREATE VIEW branch_site AS
  11019. SELECT
  11020. feature_id AS branch_site_id,
  11021. feature.*
  11022. FROM
  11023. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11024. WHERE cvterm.name = 'branch_site';
  11025. --- ************************************************
  11026. --- *** relation: polypyrimidine_tract ***
  11027. --- *** relation type: VIEW ***
  11028. --- *** ***
  11029. --- *** The polypyrimidine tract is one of the c ***
  11030. --- *** is-acting sequence elements directing in ***
  11031. --- *** tron removal in pre-mRNA splicing. ***
  11032. --- ************************************************
  11033. ---
  11034. CREATE VIEW polypyrimidine_tract AS
  11035. SELECT
  11036. feature_id AS polypyrimidine_tract_id,
  11037. feature.*
  11038. FROM
  11039. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11040. WHERE cvterm.name = 'polypyrimidine_tract';
  11041. --- ************************************************
  11042. --- *** relation: bacterial_rnapol_promoter ***
  11043. --- *** relation type: VIEW ***
  11044. --- *** ***
  11045. --- *** A DNA sequence to which bacterial RNA po ***
  11046. --- *** lymerase binds, to begin transcription. ***
  11047. --- ************************************************
  11048. ---
  11049. CREATE VIEW bacterial_rnapol_promoter AS
  11050. SELECT
  11051. feature_id AS bacterial_rnapol_promoter_id,
  11052. feature.*
  11053. FROM
  11054. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11055. WHERE cvterm.name = 'bacterial_RNApol_promoter';
  11056. --- ************************************************
  11057. --- *** relation: bacterial_terminator ***
  11058. --- *** relation type: VIEW ***
  11059. --- *** ***
  11060. --- *** A terminator signal for bacterial transc ***
  11061. --- *** ription. ***
  11062. --- ************************************************
  11063. ---
  11064. CREATE VIEW bacterial_terminator AS
  11065. SELECT
  11066. feature_id AS bacterial_terminator_id,
  11067. feature.*
  11068. FROM
  11069. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11070. WHERE cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'bacterial_terminator';
  11071. --- ************************************************
  11072. --- *** relation: terminator_of_type_2_rnapol_iii_promoter ***
  11073. --- *** relation type: VIEW ***
  11074. --- *** ***
  11075. --- *** A terminator signal for RNA polymerase I ***
  11076. --- *** II transcription. ***
  11077. --- ************************************************
  11078. ---
  11079. CREATE VIEW terminator_of_type_2_rnapol_iii_promoter AS
  11080. SELECT
  11081. feature_id AS terminator_of_type_2_rnapol_iii_promoter_id,
  11082. feature.*
  11083. FROM
  11084. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11085. WHERE cvterm.name = 'terminator_of_type_2_RNApol_III_promoter';
  11086. --- ************************************************
  11087. --- *** relation: transcription_end_site ***
  11088. --- *** relation type: VIEW ***
  11089. --- *** ***
  11090. --- *** The base where transcription ends. ***
  11091. --- ************************************************
  11092. ---
  11093. CREATE VIEW transcription_end_site AS
  11094. SELECT
  11095. feature_id AS transcription_end_site_id,
  11096. feature.*
  11097. FROM
  11098. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11099. WHERE cvterm.name = 'transcription_end_site';
  11100. --- ************************************************
  11101. --- *** relation: rnapol_iii_promoter_type_1 ***
  11102. --- *** relation type: VIEW ***
  11103. --- *** ***
  11104. --- ************************************************
  11105. ---
  11106. CREATE VIEW rnapol_iii_promoter_type_1 AS
  11107. SELECT
  11108. feature_id AS rnapol_iii_promoter_type_1_id,
  11109. feature.*
  11110. FROM
  11111. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11112. WHERE cvterm.name = 'RNApol_III_promoter_type_1';
  11113. --- ************************************************
  11114. --- *** relation: rnapol_iii_promoter_type_2 ***
  11115. --- *** relation type: VIEW ***
  11116. --- *** ***
  11117. --- ************************************************
  11118. ---
  11119. CREATE VIEW rnapol_iii_promoter_type_2 AS
  11120. SELECT
  11121. feature_id AS rnapol_iii_promoter_type_2_id,
  11122. feature.*
  11123. FROM
  11124. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11125. WHERE cvterm.name = 'RNApol_III_promoter_type_2';
  11126. --- ************************************************
  11127. --- *** relation: a_box ***
  11128. --- *** relation type: VIEW ***
  11129. --- *** ***
  11130. --- *** A variably distant linear promoter regio ***
  11131. --- *** n recognised by TFIIIC, with consensus s ***
  11132. --- *** equence TGGCnnAGTGG. ***
  11133. --- ************************************************
  11134. ---
  11135. CREATE VIEW a_box AS
  11136. SELECT
  11137. feature_id AS a_box_id,
  11138. feature.*
  11139. FROM
  11140. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11141. WHERE cvterm.name = 'A_box';
  11142. --- ************************************************
  11143. --- *** relation: b_box ***
  11144. --- *** relation type: VIEW ***
  11145. --- *** ***
  11146. --- *** A variably distant linear promoter regio ***
  11147. --- *** n recognised by TFIIIC, with consensus s ***
  11148. --- *** equence AGGTTCCAnnCC. ***
  11149. --- ************************************************
  11150. ---
  11151. CREATE VIEW b_box AS
  11152. SELECT
  11153. feature_id AS b_box_id,
  11154. feature.*
  11155. FROM
  11156. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11157. WHERE cvterm.name = 'B_box';
  11158. --- ************************************************
  11159. --- *** relation: rnapol_iii_promoter_type_3 ***
  11160. --- *** relation type: VIEW ***
  11161. --- *** ***
  11162. --- ************************************************
  11163. ---
  11164. CREATE VIEW rnapol_iii_promoter_type_3 AS
  11165. SELECT
  11166. feature_id AS rnapol_iii_promoter_type_3_id,
  11167. feature.*
  11168. FROM
  11169. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11170. WHERE cvterm.name = 'RNApol_III_promoter_type_3';
  11171. --- ************************************************
  11172. --- *** relation: c_box ***
  11173. --- *** relation type: VIEW ***
  11174. --- *** ***
  11175. --- *** An RNA polymerase III type 1 promoter wi ***
  11176. --- *** th consensus sequence CAnnCCn. ***
  11177. --- ************************************************
  11178. ---
  11179. CREATE VIEW c_box AS
  11180. SELECT
  11181. feature_id AS c_box_id,
  11182. feature.*
  11183. FROM
  11184. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11185. WHERE cvterm.name = 'C_box';
  11186. --- ************************************************
  11187. --- *** relation: snrna_encoding ***
  11188. --- *** relation type: VIEW ***
  11189. --- *** ***
  11190. --- ************************************************
  11191. ---
  11192. CREATE VIEW snrna_encoding AS
  11193. SELECT
  11194. feature_id AS snrna_encoding_id,
  11195. feature.*
  11196. FROM
  11197. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11198. WHERE cvterm.name = 'snRNA_encoding';
  11199. --- ************************************************
  11200. --- *** relation: telomere ***
  11201. --- *** relation type: VIEW ***
  11202. --- *** ***
  11203. --- *** A specific structure at the end of a lin ***
  11204. --- *** ear chromosome, required for the integri ***
  11205. --- *** ty and maintenance of the end. ***
  11206. --- ************************************************
  11207. ---
  11208. CREATE VIEW telomere AS
  11209. SELECT
  11210. feature_id AS telomere_id,
  11211. feature.*
  11212. FROM
  11213. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11214. WHERE cvterm.name = 'telomere';
  11215. --- ************************************************
  11216. --- *** relation: silencer ***
  11217. --- *** relation type: VIEW ***
  11218. --- *** ***
  11219. --- *** A regulatory region which upon binding o ***
  11220. --- *** f transcription factors, suppress the tr ***
  11221. --- *** anscription of the gene or genes they co ***
  11222. --- *** ntrol. ***
  11223. --- ************************************************
  11224. ---
  11225. CREATE VIEW silencer AS
  11226. SELECT
  11227. feature_id AS silencer_id,
  11228. feature.*
  11229. FROM
  11230. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11231. WHERE cvterm.name = 'silencer';
  11232. --- ************************************************
  11233. --- *** relation: chromosomal_regulatory_element ***
  11234. --- *** relation type: VIEW ***
  11235. --- *** ***
  11236. --- ************************************************
  11237. ---
  11238. CREATE VIEW chromosomal_regulatory_element AS
  11239. SELECT
  11240. feature_id AS chromosomal_regulatory_element_id,
  11241. feature.*
  11242. FROM
  11243. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11244. WHERE cvterm.name = 'matrix_attachment_site' OR cvterm.name = 'chromosomal_regulatory_element';
  11245. --- ************************************************
  11246. --- *** relation: insulator ***
  11247. --- *** relation type: VIEW ***
  11248. --- *** ***
  11249. --- *** A trancriptional cis regulatory region t ***
  11250. --- *** hat when located between a CM and a gene ***
  11251. --- *** 's promoter prevents the CRM from modula ***
  11252. --- *** ting that genes expression. ***
  11253. --- ************************************************
  11254. ---
  11255. CREATE VIEW insulator AS
  11256. SELECT
  11257. feature_id AS insulator_id,
  11258. feature.*
  11259. FROM
  11260. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11261. WHERE cvterm.name = 'insulator';
  11262. --- ************************************************
  11263. --- *** relation: chromosomal_structural_element ***
  11264. --- *** relation type: VIEW ***
  11265. --- *** ***
  11266. --- ************************************************
  11267. ---
  11268. CREATE VIEW chromosomal_structural_element AS
  11269. SELECT
  11270. feature_id AS chromosomal_structural_element_id,
  11271. feature.*
  11272. FROM
  11273. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11274. WHERE cvterm.name = 'centromere' OR cvterm.name = 'telomere' OR cvterm.name = 'chromosomal_structural_element';
  11275. --- ************************************************
  11276. --- *** relation: five_prime_open_reading_frame ***
  11277. --- *** relation type: VIEW ***
  11278. --- *** ***
  11279. --- ************************************************
  11280. ---
  11281. CREATE VIEW five_prime_open_reading_frame AS
  11282. SELECT
  11283. feature_id AS five_prime_open_reading_frame_id,
  11284. feature.*
  11285. FROM
  11286. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11287. WHERE cvterm.name = 'five_prime_open_reading_frame';
  11288. --- ************************************************
  11289. --- *** relation: upstream_aug_codon ***
  11290. --- *** relation type: VIEW ***
  11291. --- *** ***
  11292. --- *** A start codon upstream of the ORF. ***
  11293. --- ************************************************
  11294. ---
  11295. CREATE VIEW upstream_aug_codon AS
  11296. SELECT
  11297. feature_id AS upstream_aug_codon_id,
  11298. feature.*
  11299. FROM
  11300. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11301. WHERE cvterm.name = 'upstream_AUG_codon';
  11302. --- ************************************************
  11303. --- *** relation: polycistronic_primary_transcript ***
  11304. --- *** relation type: VIEW ***
  11305. --- *** ***
  11306. --- *** A primary transcript encoding for more t ***
  11307. --- *** han one gene product. ***
  11308. --- ************************************************
  11309. ---
  11310. CREATE VIEW polycistronic_primary_transcript AS
  11311. SELECT
  11312. feature_id AS polycistronic_primary_transcript_id,
  11313. feature.*
  11314. FROM
  11315. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11316. WHERE cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'polycistronic_primary_transcript';
  11317. --- ************************************************
  11318. --- *** relation: monocistronic_primary_transcript ***
  11319. --- *** relation type: VIEW ***
  11320. --- *** ***
  11321. --- *** A primary transcript encoding for one ge ***
  11322. --- *** ne product. ***
  11323. --- ************************************************
  11324. ---
  11325. CREATE VIEW monocistronic_primary_transcript AS
  11326. SELECT
  11327. feature_id AS monocistronic_primary_transcript_id,
  11328. feature.*
  11329. FROM
  11330. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11331. WHERE cvterm.name = 'monocistronic_primary_transcript';
  11332. --- ************************************************
  11333. --- *** relation: monocistronic_mrna ***
  11334. --- *** relation type: VIEW ***
  11335. --- *** ***
  11336. --- *** An mRNA with either a single protein pro ***
  11337. --- *** duct, or for which the regions encoding ***
  11338. --- *** all its protein products overlap. ***
  11339. --- ************************************************
  11340. ---
  11341. CREATE VIEW monocistronic_mrna AS
  11342. SELECT
  11343. feature_id AS monocistronic_mrna_id,
  11344. feature.*
  11345. FROM
  11346. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11347. WHERE cvterm.name = 'monocistronic_mRNA';
  11348. --- ************************************************
  11349. --- *** relation: polycistronic_mrna ***
  11350. --- *** relation type: VIEW ***
  11351. --- *** ***
  11352. --- *** An mRNA that encodes multiple proteins f ***
  11353. --- *** rom at least two non-overlapping regions ***
  11354. --- *** . ***
  11355. --- ************************************************
  11356. ---
  11357. CREATE VIEW polycistronic_mrna AS
  11358. SELECT
  11359. feature_id AS polycistronic_mrna_id,
  11360. feature.*
  11361. FROM
  11362. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11363. WHERE cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'polycistronic_mRNA';
  11364. --- ************************************************
  11365. --- *** relation: mini_exon_donor_rna ***
  11366. --- *** relation type: VIEW ***
  11367. --- *** ***
  11368. --- *** A primary transcript that donates the sp ***
  11369. --- *** liced leader to other mRNA. ***
  11370. --- ************************************************
  11371. ---
  11372. CREATE VIEW mini_exon_donor_rna AS
  11373. SELECT
  11374. feature_id AS mini_exon_donor_rna_id,
  11375. feature.*
  11376. FROM
  11377. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11378. WHERE cvterm.name = 'mini_exon_donor_RNA';
  11379. --- ************************************************
  11380. --- *** relation: spliced_leader_rna ***
  11381. --- *** relation type: VIEW ***
  11382. --- *** ***
  11383. --- ************************************************
  11384. ---
  11385. CREATE VIEW spliced_leader_rna AS
  11386. SELECT
  11387. feature_id AS spliced_leader_rna_id,
  11388. feature.*
  11389. FROM
  11390. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11391. WHERE cvterm.name = 'spliced_leader_RNA';
  11392. --- ************************************************
  11393. --- *** relation: engineered_plasmid ***
  11394. --- *** relation type: VIEW ***
  11395. --- *** ***
  11396. --- *** A plasmid that is engineered. ***
  11397. --- ************************************************
  11398. ---
  11399. CREATE VIEW engineered_plasmid AS
  11400. SELECT
  11401. feature_id AS engineered_plasmid_id,
  11402. feature.*
  11403. FROM
  11404. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11405. 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';
  11406. --- ************************************************
  11407. --- *** relation: transcribed_spacer_region ***
  11408. --- *** relation type: VIEW ***
  11409. --- *** ***
  11410. --- *** Part of an rRNA transcription unit that ***
  11411. --- *** is transcribed but discarded during matu ***
  11412. --- *** ration, not giving rise to any part of r ***
  11413. --- *** RNA. ***
  11414. --- ************************************************
  11415. ---
  11416. CREATE VIEW transcribed_spacer_region AS
  11417. SELECT
  11418. feature_id AS transcribed_spacer_region_id,
  11419. feature.*
  11420. FROM
  11421. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11422. WHERE cvterm.name = 'internal_transcribed_spacer_region' OR cvterm.name = 'external_transcribed_spacer_region' OR cvterm.name = 'transcribed_spacer_region';
  11423. --- ************************************************
  11424. --- *** relation: internal_transcribed_spacer_region ***
  11425. --- *** relation type: VIEW ***
  11426. --- *** ***
  11427. --- *** Non-coding regions of DNA sequence that ***
  11428. --- *** separate genes coding for the 28S, 5.8S, ***
  11429. --- *** and 18S ribosomal RNAs. ***
  11430. --- ************************************************
  11431. ---
  11432. CREATE VIEW internal_transcribed_spacer_region AS
  11433. SELECT
  11434. feature_id AS internal_transcribed_spacer_region_id,
  11435. feature.*
  11436. FROM
  11437. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11438. WHERE cvterm.name = 'internal_transcribed_spacer_region';
  11439. --- ************************************************
  11440. --- *** relation: external_transcribed_spacer_region ***
  11441. --- *** relation type: VIEW ***
  11442. --- *** ***
  11443. --- *** Non-coding regions of DNA that precede t ***
  11444. --- *** he sequence that codes for the ribosomal ***
  11445. --- *** RNA. ***
  11446. --- ************************************************
  11447. ---
  11448. CREATE VIEW external_transcribed_spacer_region AS
  11449. SELECT
  11450. feature_id AS external_transcribed_spacer_region_id,
  11451. feature.*
  11452. FROM
  11453. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11454. WHERE cvterm.name = 'external_transcribed_spacer_region';
  11455. --- ************************************************
  11456. --- *** relation: tetranuc_repeat_microsat ***
  11457. --- *** relation type: VIEW ***
  11458. --- *** ***
  11459. --- ************************************************
  11460. ---
  11461. CREATE VIEW tetranuc_repeat_microsat AS
  11462. SELECT
  11463. feature_id AS tetranuc_repeat_microsat_id,
  11464. feature.*
  11465. FROM
  11466. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11467. WHERE cvterm.name = 'tetranucleotide_repeat_microsatellite_feature';
  11468. --- ************************************************
  11469. --- *** relation: srp_rna_encoding ***
  11470. --- *** relation type: VIEW ***
  11471. --- *** ***
  11472. --- ************************************************
  11473. ---
  11474. CREATE VIEW srp_rna_encoding AS
  11475. SELECT
  11476. feature_id AS srp_rna_encoding_id,
  11477. feature.*
  11478. FROM
  11479. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11480. WHERE cvterm.name = 'SRP_RNA_encoding';
  11481. --- ************************************************
  11482. --- *** relation: minisatellite ***
  11483. --- *** relation type: VIEW ***
  11484. --- *** ***
  11485. --- *** A repeat region containing tandemly repe ***
  11486. --- *** ated sequences having a unit length of 1 ***
  11487. --- *** 0 to 40 bp. ***
  11488. --- ************************************************
  11489. ---
  11490. CREATE VIEW minisatellite AS
  11491. SELECT
  11492. feature_id AS minisatellite_id,
  11493. feature.*
  11494. FROM
  11495. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11496. WHERE cvterm.name = 'minisatellite';
  11497. --- ************************************************
  11498. --- *** relation: antisense_rna ***
  11499. --- *** relation type: VIEW ***
  11500. --- *** ***
  11501. --- *** Antisense RNA is RNA that is transcribed ***
  11502. --- *** from the coding, rather than the templa ***
  11503. --- *** te, strand of DNA. It is therefore compl ***
  11504. --- *** ementary to mRNA. ***
  11505. --- ************************************************
  11506. ---
  11507. CREATE VIEW antisense_rna AS
  11508. SELECT
  11509. feature_id AS antisense_rna_id,
  11510. feature.*
  11511. FROM
  11512. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11513. WHERE cvterm.name = 'MicF_RNA' OR cvterm.name = 'antisense_RNA';
  11514. --- ************************************************
  11515. --- *** relation: antisense_primary_transcript ***
  11516. --- *** relation type: VIEW ***
  11517. --- *** ***
  11518. --- *** The reverse complement of the primary tr ***
  11519. --- *** anscript. ***
  11520. --- ************************************************
  11521. ---
  11522. CREATE VIEW antisense_primary_transcript AS
  11523. SELECT
  11524. feature_id AS antisense_primary_transcript_id,
  11525. feature.*
  11526. FROM
  11527. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11528. WHERE cvterm.name = 'antisense_primary_transcript';
  11529. --- ************************************************
  11530. --- *** relation: sirna ***
  11531. --- *** relation type: VIEW ***
  11532. --- *** ***
  11533. --- *** A small RNA molecule that is the product ***
  11534. --- *** of a longer exogenous or endogenous dsR ***
  11535. --- *** NA, which is either a bimolecular duplex ***
  11536. --- *** or very long hairpin, processed (via th ***
  11537. --- *** e Dicer pathway) such that numerous siRN ***
  11538. --- *** As accumulate from both strands of the d ***
  11539. --- *** sRNA. SRNAs trigger the cleavage of thei ***
  11540. --- *** r target molecules. ***
  11541. --- ************************************************
  11542. ---
  11543. CREATE VIEW sirna AS
  11544. SELECT
  11545. feature_id AS sirna_id,
  11546. feature.*
  11547. FROM
  11548. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11549. WHERE cvterm.name = 'siRNA';
  11550. --- ************************************************
  11551. --- *** relation: mirna_primary_transcript ***
  11552. --- *** relation type: VIEW ***
  11553. --- *** ***
  11554. --- *** A primary transcript encoding a micro RN ***
  11555. --- *** A. ***
  11556. --- ************************************************
  11557. ---
  11558. CREATE VIEW mirna_primary_transcript AS
  11559. SELECT
  11560. feature_id AS mirna_primary_transcript_id,
  11561. feature.*
  11562. FROM
  11563. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11564. WHERE cvterm.name = 'stRNA_primary_transcript' OR cvterm.name = 'miRNA_primary_transcript';
  11565. --- ************************************************
  11566. --- *** relation: strna_primary_transcript ***
  11567. --- *** relation type: VIEW ***
  11568. --- *** ***
  11569. --- *** A primary transcript encoding a small te ***
  11570. --- *** mporal mRNA (SO:0000649). ***
  11571. --- ************************************************
  11572. ---
  11573. CREATE VIEW strna_primary_transcript AS
  11574. SELECT
  11575. feature_id AS strna_primary_transcript_id,
  11576. feature.*
  11577. FROM
  11578. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11579. WHERE cvterm.name = 'stRNA_primary_transcript';
  11580. --- ************************************************
  11581. --- *** relation: strna ***
  11582. --- *** relation type: VIEW ***
  11583. --- *** ***
  11584. --- *** Non-coding RNAs of about 21 nucleotides ***
  11585. --- *** in length that regulate temporal develop ***
  11586. --- *** ment; first discovered in C. elegans. ***
  11587. --- ************************************************
  11588. ---
  11589. CREATE VIEW strna AS
  11590. SELECT
  11591. feature_id AS strna_id,
  11592. feature.*
  11593. FROM
  11594. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11595. WHERE cvterm.name = 'stRNA';
  11596. --- ************************************************
  11597. --- *** relation: small_subunit_rrna ***
  11598. --- *** relation type: VIEW ***
  11599. --- *** ***
  11600. --- *** Ribosomal RNA transcript that structures ***
  11601. --- *** the small subunit of the ribosome. ***
  11602. --- ************************************************
  11603. ---
  11604. CREATE VIEW small_subunit_rrna AS
  11605. SELECT
  11606. feature_id AS small_subunit_rrna_id,
  11607. feature.*
  11608. FROM
  11609. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11610. WHERE cvterm.name = 'rRNA_18S' OR cvterm.name = 'rRNA_16S' OR cvterm.name = 'small_subunit_rRNA';
  11611. --- ************************************************
  11612. --- *** relation: large_subunit_rrna ***
  11613. --- *** relation type: VIEW ***
  11614. --- *** ***
  11615. --- *** Ribosomal RNA transcript that structures ***
  11616. --- *** the large subunit of the ribosome. ***
  11617. --- ************************************************
  11618. ---
  11619. CREATE VIEW large_subunit_rrna AS
  11620. SELECT
  11621. feature_id AS large_subunit_rrna_id,
  11622. feature.*
  11623. FROM
  11624. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11625. 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';
  11626. --- ************************************************
  11627. --- *** relation: rrna_5s ***
  11628. --- *** relation type: VIEW ***
  11629. --- *** ***
  11630. --- *** 5S ribosomal RNA (5S rRNA) is a componen ***
  11631. --- *** t of the large ribosomal subunit in both ***
  11632. --- *** prokaryotes and eukaryotes. In eukaryot ***
  11633. --- *** es, it is synthesised by RNA polymerase ***
  11634. --- *** III (the other eukaryotic rRNAs are clea ***
  11635. --- *** ved from a 45S precursor synthesised by ***
  11636. --- *** RNA polymerase I). In Xenopus oocytes, i ***
  11637. --- *** t has been shown that fingers 4-7 of the ***
  11638. --- *** nine-zinc finger transcription factor T ***
  11639. --- *** FIIIA can bind to the central region of ***
  11640. --- *** 5S RNA. Thus, in addition to positively ***
  11641. --- *** regulating 5S rRNA transcription, TFIIIA ***
  11642. --- *** also stabilises 5S rRNA until it is req ***
  11643. --- *** uired for transcription. ***
  11644. --- ************************************************
  11645. ---
  11646. CREATE VIEW rrna_5s AS
  11647. SELECT
  11648. feature_id AS rrna_5s_id,
  11649. feature.*
  11650. FROM
  11651. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11652. WHERE cvterm.name = 'rRNA_5S';
  11653. --- ************************************************
  11654. --- *** relation: rrna_28s ***
  11655. --- *** relation type: VIEW ***
  11656. --- *** ***
  11657. --- *** A component of the large ribosomal subun ***
  11658. --- *** it. ***
  11659. --- ************************************************
  11660. ---
  11661. CREATE VIEW rrna_28s AS
  11662. SELECT
  11663. feature_id AS rrna_28s_id,
  11664. feature.*
  11665. FROM
  11666. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11667. WHERE cvterm.name = 'rRNA_28S';
  11668. --- ************************************************
  11669. --- *** relation: maxicircle_gene ***
  11670. --- *** relation type: VIEW ***
  11671. --- *** ***
  11672. --- *** A mitochondrial gene located in a maxici ***
  11673. --- *** rcle. ***
  11674. --- ************************************************
  11675. ---
  11676. CREATE VIEW maxicircle_gene AS
  11677. SELECT
  11678. feature_id AS maxicircle_gene_id,
  11679. feature.*
  11680. FROM
  11681. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11682. WHERE cvterm.name = 'cryptogene' OR cvterm.name = 'maxicircle_gene';
  11683. --- ************************************************
  11684. --- *** relation: ncrna ***
  11685. --- *** relation type: VIEW ***
  11686. --- *** ***
  11687. --- *** An RNA transcript that does not encode f ***
  11688. --- *** or a protein rather the RNA molecule is ***
  11689. --- *** the gene product. ***
  11690. --- ************************************************
  11691. ---
  11692. CREATE VIEW ncrna AS
  11693. SELECT
  11694. feature_id AS ncrna_id,
  11695. feature.*
  11696. FROM
  11697. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11698. 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';
  11699. --- ************************************************
  11700. --- *** relation: strna_encoding ***
  11701. --- *** relation type: VIEW ***
  11702. --- *** ***
  11703. --- ************************************************
  11704. ---
  11705. CREATE VIEW strna_encoding AS
  11706. SELECT
  11707. feature_id AS strna_encoding_id,
  11708. feature.*
  11709. FROM
  11710. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11711. WHERE cvterm.name = 'stRNA_encoding';
  11712. --- ************************************************
  11713. --- *** relation: repeat_region ***
  11714. --- *** relation type: VIEW ***
  11715. --- *** ***
  11716. --- *** A region of sequence containing one or m ***
  11717. --- *** ore repeat units. ***
  11718. --- ************************************************
  11719. ---
  11720. CREATE VIEW repeat_region AS
  11721. SELECT
  11722. feature_id AS repeat_region_id,
  11723. feature.*
  11724. FROM
  11725. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11726. 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';
  11727. --- ************************************************
  11728. --- *** relation: dispersed_repeat ***
  11729. --- *** relation type: VIEW ***
  11730. --- *** ***
  11731. --- *** A repeat that is located at dispersed si ***
  11732. --- *** tes in the genome. ***
  11733. --- ************************************************
  11734. ---
  11735. CREATE VIEW dispersed_repeat AS
  11736. SELECT
  11737. feature_id AS dispersed_repeat_id,
  11738. feature.*
  11739. FROM
  11740. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11741. WHERE cvterm.name = 'dispersed_repeat';
  11742. --- ************************************************
  11743. --- *** relation: tmrna_encoding ***
  11744. --- *** relation type: VIEW ***
  11745. --- *** ***
  11746. --- ************************************************
  11747. ---
  11748. CREATE VIEW tmrna_encoding AS
  11749. SELECT
  11750. feature_id AS tmrna_encoding_id,
  11751. feature.*
  11752. FROM
  11753. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11754. WHERE cvterm.name = 'tmRNA_encoding';
  11755. --- ************************************************
  11756. --- *** relation: spliceosomal_intron ***
  11757. --- *** relation type: VIEW ***
  11758. --- *** ***
  11759. --- *** An intron which is spliced by the splice ***
  11760. --- *** osome. ***
  11761. --- ************************************************
  11762. ---
  11763. CREATE VIEW spliceosomal_intron AS
  11764. SELECT
  11765. feature_id AS spliceosomal_intron_id,
  11766. feature.*
  11767. FROM
  11768. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11769. WHERE cvterm.name = 'U2_intron' OR cvterm.name = 'U12_intron' OR cvterm.name = 'spliceosomal_intron';
  11770. --- ************************************************
  11771. --- *** relation: trna_encoding ***
  11772. --- *** relation type: VIEW ***
  11773. --- *** ***
  11774. --- ************************************************
  11775. ---
  11776. CREATE VIEW trna_encoding AS
  11777. SELECT
  11778. feature_id AS trna_encoding_id,
  11779. feature.*
  11780. FROM
  11781. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11782. WHERE cvterm.name = 'tRNA_encoding';
  11783. --- ************************************************
  11784. --- *** relation: introgressed_chromosome_region ***
  11785. --- *** relation type: VIEW ***
  11786. --- *** ***
  11787. --- ************************************************
  11788. ---
  11789. CREATE VIEW introgressed_chromosome_region AS
  11790. SELECT
  11791. feature_id AS introgressed_chromosome_region_id,
  11792. feature.*
  11793. FROM
  11794. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11795. WHERE cvterm.name = 'introgressed_chromosome_region';
  11796. --- ************************************************
  11797. --- *** relation: monocistronic_transcript ***
  11798. --- *** relation type: VIEW ***
  11799. --- *** ***
  11800. --- *** A transcript that is monocistronic. ***
  11801. --- ************************************************
  11802. ---
  11803. CREATE VIEW monocistronic_transcript AS
  11804. SELECT
  11805. feature_id AS monocistronic_transcript_id,
  11806. feature.*
  11807. FROM
  11808. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11809. WHERE cvterm.name = 'monocistronic_primary_transcript' OR cvterm.name = 'monocistronic_mRNA' OR cvterm.name = 'monocistronic_transcript';
  11810. --- ************************************************
  11811. --- *** relation: mobile_intron ***
  11812. --- *** relation type: VIEW ***
  11813. --- *** ***
  11814. --- *** An intron (mitochondrial, chloroplast, n ***
  11815. --- *** uclear or prokaryotic) that encodes a do ***
  11816. --- *** uble strand sequence specific endonuclea ***
  11817. --- *** se allowing for mobility. ***
  11818. --- ************************************************
  11819. ---
  11820. CREATE VIEW mobile_intron AS
  11821. SELECT
  11822. feature_id AS mobile_intron_id,
  11823. feature.*
  11824. FROM
  11825. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11826. WHERE cvterm.name = 'mobile_intron';
  11827. --- ************************************************
  11828. --- *** relation: insertion ***
  11829. --- *** relation type: VIEW ***
  11830. --- *** ***
  11831. --- *** A region of sequence that has been inser ***
  11832. --- *** ted. ***
  11833. --- ************************************************
  11834. ---
  11835. CREATE VIEW insertion AS
  11836. SELECT
  11837. feature_id AS insertion_id,
  11838. feature.*
  11839. FROM
  11840. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11841. WHERE cvterm.name = 'transgenic_insertion' OR cvterm.name = 'insertion';
  11842. --- ************************************************
  11843. --- *** relation: est_match ***
  11844. --- *** relation type: VIEW ***
  11845. --- *** ***
  11846. --- *** A match against an EST sequence. ***
  11847. --- ************************************************
  11848. ---
  11849. CREATE VIEW est_match AS
  11850. SELECT
  11851. feature_id AS est_match_id,
  11852. feature.*
  11853. FROM
  11854. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11855. WHERE cvterm.name = 'EST_match';
  11856. --- ************************************************
  11857. --- *** relation: sequence_rearrangement_feature ***
  11858. --- *** relation type: VIEW ***
  11859. --- *** ***
  11860. --- ************************************************
  11861. ---
  11862. CREATE VIEW sequence_rearrangement_feature AS
  11863. SELECT
  11864. feature_id AS sequence_rearrangement_feature_id,
  11865. feature.*
  11866. FROM
  11867. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11868. 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';
  11869. --- ************************************************
  11870. --- *** relation: chromosome_breakage_sequence ***
  11871. --- *** relation type: VIEW ***
  11872. --- *** ***
  11873. --- *** A sequence within the micronuclear DNA o ***
  11874. --- *** f ciliates at which chromosome breakage ***
  11875. --- *** and telomere addition occurs during nucl ***
  11876. --- *** ear differentiation. ***
  11877. --- ************************************************
  11878. ---
  11879. CREATE VIEW chromosome_breakage_sequence AS
  11880. SELECT
  11881. feature_id AS chromosome_breakage_sequence_id,
  11882. feature.*
  11883. FROM
  11884. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11885. WHERE cvterm.name = 'chromosome_breakage_sequence';
  11886. --- ************************************************
  11887. --- *** relation: internal_eliminated_sequence ***
  11888. --- *** relation type: VIEW ***
  11889. --- *** ***
  11890. --- *** A sequence eliminated from the genome of ***
  11891. --- *** ciliates during nuclear differentiation ***
  11892. --- *** . ***
  11893. --- ************************************************
  11894. ---
  11895. CREATE VIEW internal_eliminated_sequence AS
  11896. SELECT
  11897. feature_id AS internal_eliminated_sequence_id,
  11898. feature.*
  11899. FROM
  11900. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11901. WHERE cvterm.name = 'internal_eliminated_sequence';
  11902. --- ************************************************
  11903. --- *** relation: macronucleus_destined_segment ***
  11904. --- *** relation type: VIEW ***
  11905. --- *** ***
  11906. --- *** A sequence that is conserved, although r ***
  11907. --- *** earranged relative to the micronucleus, ***
  11908. --- *** in the macronucleus of a ciliate genome. ***
  11909. --- ************************************************
  11910. ---
  11911. CREATE VIEW macronucleus_destined_segment AS
  11912. SELECT
  11913. feature_id AS macronucleus_destined_segment_id,
  11914. feature.*
  11915. FROM
  11916. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11917. WHERE cvterm.name = 'macronucleus_destined_segment';
  11918. --- ************************************************
  11919. --- *** relation: transcript ***
  11920. --- *** relation type: VIEW ***
  11921. --- *** ***
  11922. --- *** An RNA synthesized on a DNA or RNA templ ***
  11923. --- *** ate by an RNA polymerase. ***
  11924. --- ************************************************
  11925. ---
  11926. CREATE VIEW transcript AS
  11927. SELECT
  11928. feature_id AS transcript_id,
  11929. feature.*
  11930. FROM
  11931. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11932. 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';
  11933. --- ************************************************
  11934. --- *** relation: canonical_three_prime_splice_site ***
  11935. --- *** relation type: VIEW ***
  11936. --- *** ***
  11937. --- *** The canonical 3' splice site has the seq ***
  11938. --- *** uence "AG". ***
  11939. --- ************************************************
  11940. ---
  11941. CREATE VIEW canonical_three_prime_splice_site AS
  11942. SELECT
  11943. feature_id AS canonical_three_prime_splice_site_id,
  11944. feature.*
  11945. FROM
  11946. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11947. WHERE cvterm.name = 'canonical_three_prime_splice_site';
  11948. --- ************************************************
  11949. --- *** relation: canonical_five_prime_splice_site ***
  11950. --- *** relation type: VIEW ***
  11951. --- *** ***
  11952. --- *** The canonical 5' splice site has the seq ***
  11953. --- *** uence "GT". ***
  11954. --- ************************************************
  11955. ---
  11956. CREATE VIEW canonical_five_prime_splice_site AS
  11957. SELECT
  11958. feature_id AS canonical_five_prime_splice_site_id,
  11959. feature.*
  11960. FROM
  11961. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11962. WHERE cvterm.name = 'canonical_five_prime_splice_site';
  11963. --- ************************************************
  11964. --- *** relation: non_canonical_three_prime_splice_site ***
  11965. --- *** relation type: VIEW ***
  11966. --- *** ***
  11967. --- *** A 3' splice site that does not have the ***
  11968. --- *** sequence "AG". ***
  11969. --- ************************************************
  11970. ---
  11971. CREATE VIEW non_canonical_three_prime_splice_site AS
  11972. SELECT
  11973. feature_id AS non_canonical_three_prime_splice_site_id,
  11974. feature.*
  11975. FROM
  11976. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11977. WHERE cvterm.name = 'non_canonical_three_prime_splice_site';
  11978. --- ************************************************
  11979. --- *** relation: non_canonical_five_prime_splice_site ***
  11980. --- *** relation type: VIEW ***
  11981. --- *** ***
  11982. --- *** A 5' splice site which does not have the ***
  11983. --- *** sequence "GT". ***
  11984. --- ************************************************
  11985. ---
  11986. CREATE VIEW non_canonical_five_prime_splice_site AS
  11987. SELECT
  11988. feature_id AS non_canonical_five_prime_splice_site_id,
  11989. feature.*
  11990. FROM
  11991. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11992. WHERE cvterm.name = 'non_canonical_five_prime_splice_site';
  11993. --- ************************************************
  11994. --- *** relation: non_canonical_start_codon ***
  11995. --- *** relation type: VIEW ***
  11996. --- *** ***
  11997. --- *** A start codon that is not the usual AUG ***
  11998. --- *** sequence. ***
  11999. --- ************************************************
  12000. ---
  12001. CREATE VIEW non_canonical_start_codon AS
  12002. SELECT
  12003. feature_id AS non_canonical_start_codon_id,
  12004. feature.*
  12005. FROM
  12006. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12007. WHERE cvterm.name = 'four_bp_start_codon' OR cvterm.name = 'CTG_start_codon' OR cvterm.name = 'non_canonical_start_codon';
  12008. --- ************************************************
  12009. --- *** relation: aberrant_processed_transcript ***
  12010. --- *** relation type: VIEW ***
  12011. --- *** ***
  12012. --- *** A transcript that has been processed "in ***
  12013. --- *** correctly", for example by the failure o ***
  12014. --- *** f splicing of one or more exons. ***
  12015. --- ************************************************
  12016. ---
  12017. CREATE VIEW aberrant_processed_transcript AS
  12018. SELECT
  12019. feature_id AS aberrant_processed_transcript_id,
  12020. feature.*
  12021. FROM
  12022. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12023. WHERE cvterm.name = 'aberrant_processed_transcript';
  12024. --- ************************************************
  12025. --- *** relation: exonic_splice_enhancer ***
  12026. --- *** relation type: VIEW ***
  12027. --- *** ***
  12028. --- *** Exonic splicing enhancers (ESEs) facilit ***
  12029. --- *** ate exon definition by assisting in the ***
  12030. --- *** recruitment of splicing factors to the a ***
  12031. --- *** djacent intron. ***
  12032. --- ************************************************
  12033. ---
  12034. CREATE VIEW exonic_splice_enhancer AS
  12035. SELECT
  12036. feature_id AS exonic_splice_enhancer_id,
  12037. feature.*
  12038. FROM
  12039. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12040. WHERE cvterm.name = 'exonic_splice_enhancer';
  12041. --- ************************************************
  12042. --- *** relation: nuclease_sensitive_site ***
  12043. --- *** relation type: VIEW ***
  12044. --- *** ***
  12045. --- *** A region of nucleotide sequence targeted ***
  12046. --- *** by a nuclease enzyme. ***
  12047. --- ************************************************
  12048. ---
  12049. CREATE VIEW nuclease_sensitive_site AS
  12050. SELECT
  12051. feature_id AS nuclease_sensitive_site_id,
  12052. feature.*
  12053. FROM
  12054. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12055. 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';
  12056. --- ************************************************
  12057. --- *** relation: dnasei_hypersensitive_site ***
  12058. --- *** relation type: VIEW ***
  12059. --- *** ***
  12060. --- ************************************************
  12061. ---
  12062. CREATE VIEW dnasei_hypersensitive_site AS
  12063. SELECT
  12064. feature_id AS dnasei_hypersensitive_site_id,
  12065. feature.*
  12066. FROM
  12067. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12068. WHERE cvterm.name = 'DNAseI_hypersensitive_site';
  12069. --- ************************************************
  12070. --- *** relation: translocation_element ***
  12071. --- *** relation type: VIEW ***
  12072. --- *** ***
  12073. --- *** For some translocations, particularly bu ***
  12074. --- *** t not exclusively, reciprocal translocat ***
  12075. --- *** ions, the chromosomes carrying non-homol ***
  12076. --- *** ogous centromeres may be recovered indep ***
  12077. --- *** endently. These chromosomes are describe ***
  12078. --- *** d as translocation elements. ***
  12079. --- ************************************************
  12080. ---
  12081. CREATE VIEW translocation_element AS
  12082. SELECT
  12083. feature_id AS translocation_element_id,
  12084. feature.*
  12085. FROM
  12086. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12087. WHERE cvterm.name = 'translocation_element';
  12088. --- ************************************************
  12089. --- *** relation: deletion_junction ***
  12090. --- *** relation type: VIEW ***
  12091. --- *** ***
  12092. --- *** The space between two bases in a sequenc ***
  12093. --- *** e which marks the position where a delet ***
  12094. --- *** ion has occurred. ***
  12095. --- ************************************************
  12096. ---
  12097. CREATE VIEW deletion_junction AS
  12098. SELECT
  12099. feature_id AS deletion_junction_id,
  12100. feature.*
  12101. FROM
  12102. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12103. WHERE cvterm.name = 'deletion_junction';
  12104. --- ************************************************
  12105. --- *** relation: golden_path ***
  12106. --- *** relation type: VIEW ***
  12107. --- *** ***
  12108. --- *** A set of subregions selected from sequen ***
  12109. --- *** ce contigs which when concatenated form ***
  12110. --- *** a nonredundant linear sequence. ***
  12111. --- ************************************************
  12112. ---
  12113. CREATE VIEW golden_path AS
  12114. SELECT
  12115. feature_id AS golden_path_id,
  12116. feature.*
  12117. FROM
  12118. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12119. WHERE cvterm.name = 'golden_path';
  12120. --- ************************************************
  12121. --- *** relation: cdna_match ***
  12122. --- *** relation type: VIEW ***
  12123. --- *** ***
  12124. --- *** A match against cDNA sequence. ***
  12125. --- ************************************************
  12126. ---
  12127. CREATE VIEW cdna_match AS
  12128. SELECT
  12129. feature_id AS cdna_match_id,
  12130. feature.*
  12131. FROM
  12132. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12133. WHERE cvterm.name = 'cDNA_match';
  12134. --- ************************************************
  12135. --- *** relation: gene_with_polycistronic_transcript ***
  12136. --- *** relation type: VIEW ***
  12137. --- *** ***
  12138. --- *** A gene that encodes a polycistronic tran ***
  12139. --- *** script. ***
  12140. --- ************************************************
  12141. ---
  12142. CREATE VIEW gene_with_polycistronic_transcript AS
  12143. SELECT
  12144. feature_id AS gene_with_polycistronic_transcript_id,
  12145. feature.*
  12146. FROM
  12147. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12148. 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';
  12149. --- ************************************************
  12150. --- *** relation: cleaved_initiator_methionine ***
  12151. --- *** relation type: VIEW ***
  12152. --- *** ***
  12153. --- *** The initiator methionine that has been c ***
  12154. --- *** leaved from a mature polypeptide sequenc ***
  12155. --- *** e. ***
  12156. --- ************************************************
  12157. ---
  12158. CREATE VIEW cleaved_initiator_methionine AS
  12159. SELECT
  12160. feature_id AS cleaved_initiator_methionine_id,
  12161. feature.*
  12162. FROM
  12163. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12164. WHERE cvterm.name = 'cleaved_initiator_methionine';
  12165. --- ************************************************
  12166. --- *** relation: gene_with_dicistronic_transcript ***
  12167. --- *** relation type: VIEW ***
  12168. --- *** ***
  12169. --- *** A gene that encodes a dicistronic transc ***
  12170. --- *** ript. ***
  12171. --- ************************************************
  12172. ---
  12173. CREATE VIEW gene_with_dicistronic_transcript AS
  12174. SELECT
  12175. feature_id AS gene_with_dicistronic_transcript_id,
  12176. feature.*
  12177. FROM
  12178. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12179. WHERE cvterm.name = 'gene_with_dicistronic_primary_transcript' OR cvterm.name = 'gene_with_dicistronic_mRNA' OR cvterm.name = 'gene_with_dicistronic_transcript';
  12180. --- ************************************************
  12181. --- *** relation: gene_with_recoded_mrna ***
  12182. --- *** relation type: VIEW ***
  12183. --- *** ***
  12184. --- *** A gene that encodes an mRNA that is reco ***
  12185. --- *** ded. ***
  12186. --- ************************************************
  12187. ---
  12188. CREATE VIEW gene_with_recoded_mrna AS
  12189. SELECT
  12190. feature_id AS gene_with_recoded_mrna_id,
  12191. feature.*
  12192. FROM
  12193. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12194. 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';
  12195. --- ************************************************
  12196. --- *** relation: snp ***
  12197. --- *** relation type: VIEW ***
  12198. --- *** ***
  12199. --- *** SNPs are single base pair positions in g ***
  12200. --- *** enomic DNA at which different sequence a ***
  12201. --- *** lternatives (alleles) exist in normal in ***
  12202. --- *** dividuals in some population(s), wherein ***
  12203. --- *** the least frequent allele has an abunda ***
  12204. --- *** nce of 1% or greater. ***
  12205. --- ************************************************
  12206. ---
  12207. CREATE VIEW snp AS
  12208. SELECT
  12209. feature_id AS snp_id,
  12210. feature.*
  12211. FROM
  12212. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12213. WHERE cvterm.name = 'SNP';
  12214. --- ************************************************
  12215. --- *** relation: reagent ***
  12216. --- *** relation type: VIEW ***
  12217. --- *** ***
  12218. --- *** A sequence used in experiment. ***
  12219. --- ************************************************
  12220. ---
  12221. CREATE VIEW reagent AS
  12222. SELECT
  12223. feature_id AS reagent_id,
  12224. feature.*
  12225. FROM
  12226. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12227. 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';
  12228. --- ************************************************
  12229. --- *** relation: oligo ***
  12230. --- *** relation type: VIEW ***
  12231. --- *** ***
  12232. --- *** A short oligonucleotide sequence, of len ***
  12233. --- *** gth on the order of 10's of bases; eithe ***
  12234. --- *** r single or double stranded. ***
  12235. --- ************************************************
  12236. ---
  12237. CREATE VIEW oligo AS
  12238. SELECT
  12239. feature_id AS oligo_id,
  12240. feature.*
  12241. FROM
  12242. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12243. 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';
  12244. --- ************************************************
  12245. --- *** relation: gene_with_stop_codon_read_through ***
  12246. --- *** relation type: VIEW ***
  12247. --- *** ***
  12248. --- *** A gene that encodes a transcript with st ***
  12249. --- *** op codon readthrough. ***
  12250. --- ************************************************
  12251. ---
  12252. CREATE VIEW gene_with_stop_codon_read_through AS
  12253. SELECT
  12254. feature_id AS gene_with_stop_codon_read_through_id,
  12255. feature.*
  12256. FROM
  12257. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12258. 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';
  12259. --- ************************************************
  12260. --- *** relation: gene_with_stop_codon_redefined_as_pyrrolysine ***
  12261. --- *** relation type: VIEW ***
  12262. --- *** ***
  12263. --- *** A gene encoding an mRNA that has the sto ***
  12264. --- *** p codon redefined as pyrrolysine. ***
  12265. --- ************************************************
  12266. ---
  12267. CREATE VIEW gene_with_stop_codon_redefined_as_pyrrolysine AS
  12268. SELECT
  12269. feature_id AS gene_with_stop_codon_redefined_as_pyrrolysine_id,
  12270. feature.*
  12271. FROM
  12272. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12273. WHERE cvterm.name = 'gene_with_stop_codon_redefined_as_pyrrolysine';
  12274. --- ************************************************
  12275. --- *** relation: junction ***
  12276. --- *** relation type: VIEW ***
  12277. --- *** ***
  12278. --- *** A sequence_feature with an extent of zer ***
  12279. --- *** o. ***
  12280. --- ************************************************
  12281. ---
  12282. CREATE VIEW junction AS
  12283. SELECT
  12284. feature_id AS junction_id,
  12285. feature.*
  12286. FROM
  12287. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12288. 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';
  12289. --- ************************************************
  12290. --- *** relation: remark ***
  12291. --- *** relation type: VIEW ***
  12292. --- *** ***
  12293. --- *** A comment about the sequence. ***
  12294. --- ************************************************
  12295. ---
  12296. CREATE VIEW remark AS
  12297. SELECT
  12298. feature_id AS remark_id,
  12299. feature.*
  12300. FROM
  12301. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12302. 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';
  12303. --- ************************************************
  12304. --- *** relation: possible_base_call_error ***
  12305. --- *** relation type: VIEW ***
  12306. --- *** ***
  12307. --- *** A region of sequence where the validity ***
  12308. --- *** of the base calling is questionable. ***
  12309. --- ************************************************
  12310. ---
  12311. CREATE VIEW possible_base_call_error AS
  12312. SELECT
  12313. feature_id AS possible_base_call_error_id,
  12314. feature.*
  12315. FROM
  12316. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12317. WHERE cvterm.name = 'possible_base_call_error';
  12318. --- ************************************************
  12319. --- *** relation: possible_assembly_error ***
  12320. --- *** relation type: VIEW ***
  12321. --- *** ***
  12322. --- *** A region of sequence where there may hav ***
  12323. --- *** e been an error in the assembly. ***
  12324. --- ************************************************
  12325. ---
  12326. CREATE VIEW possible_assembly_error AS
  12327. SELECT
  12328. feature_id AS possible_assembly_error_id,
  12329. feature.*
  12330. FROM
  12331. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12332. WHERE cvterm.name = 'possible_assembly_error';
  12333. --- ************************************************
  12334. --- *** relation: experimental_result_region ***
  12335. --- *** relation type: VIEW ***
  12336. --- *** ***
  12337. --- *** A region of sequence implicated in an ex ***
  12338. --- *** perimental result. ***
  12339. --- ************************************************
  12340. ---
  12341. CREATE VIEW experimental_result_region AS
  12342. SELECT
  12343. feature_id AS experimental_result_region_id,
  12344. feature.*
  12345. FROM
  12346. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12347. WHERE cvterm.name = 'overlapping_feature_set' OR cvterm.name = 'no_output' OR cvterm.name = 'overlapping_EST_set' OR cvterm.name = 'experimental_result_region';
  12348. --- ************************************************
  12349. --- *** relation: gene ***
  12350. --- *** relation type: VIEW ***
  12351. --- *** ***
  12352. --- *** A region (or regions) that includes all ***
  12353. --- *** of the sequence elements necessary to en ***
  12354. --- *** code a functional transcript. A gene may ***
  12355. --- *** include regulatory regions, transcribed ***
  12356. --- *** regions and/or other functional sequenc ***
  12357. --- *** e regions. ***
  12358. --- ************************************************
  12359. ---
  12360. CREATE VIEW gene AS
  12361. SELECT
  12362. feature_id AS gene_id,
  12363. feature.*
  12364. FROM
  12365. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12366. 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';
  12367. --- ************************************************
  12368. --- *** relation: tandem_repeat ***
  12369. --- *** relation type: VIEW ***
  12370. --- *** ***
  12371. --- *** Two or more adjcent copies of a region ( ***
  12372. --- *** of length greater than 1). ***
  12373. --- ************************************************
  12374. ---
  12375. CREATE VIEW tandem_repeat AS
  12376. SELECT
  12377. feature_id AS tandem_repeat_id,
  12378. feature.*
  12379. FROM
  12380. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12381. 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';
  12382. --- ************************************************
  12383. --- *** relation: trans_splice_acceptor_site ***
  12384. --- *** relation type: VIEW ***
  12385. --- *** ***
  12386. --- *** The 3' splice site of the acceptor prima ***
  12387. --- *** ry transcript. ***
  12388. --- ************************************************
  12389. ---
  12390. CREATE VIEW trans_splice_acceptor_site AS
  12391. SELECT
  12392. feature_id AS trans_splice_acceptor_site_id,
  12393. feature.*
  12394. FROM
  12395. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12396. WHERE cvterm.name = 'SL1_acceptor_site' OR cvterm.name = 'SL2_acceptor_site' OR cvterm.name = 'trans_splice_acceptor_site';
  12397. --- ************************************************
  12398. --- *** relation: trans_splice_donor_site ***
  12399. --- *** relation type: VIEW ***
  12400. --- *** ***
  12401. --- *** The 5' five prime splice site region of ***
  12402. --- *** the donor RNA. ***
  12403. --- ************************************************
  12404. ---
  12405. CREATE VIEW trans_splice_donor_site AS
  12406. SELECT
  12407. feature_id AS trans_splice_donor_site_id,
  12408. feature.*
  12409. FROM
  12410. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12411. WHERE cvterm.name = 'trans_splice_donor_site';
  12412. --- ************************************************
  12413. --- *** relation: sl1_acceptor_site ***
  12414. --- *** relation type: VIEW ***
  12415. --- *** ***
  12416. --- ************************************************
  12417. ---
  12418. CREATE VIEW sl1_acceptor_site AS
  12419. SELECT
  12420. feature_id AS sl1_acceptor_site_id,
  12421. feature.*
  12422. FROM
  12423. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12424. WHERE cvterm.name = 'SL1_acceptor_site';
  12425. --- ************************************************
  12426. --- *** relation: sl2_acceptor_site ***
  12427. --- *** relation type: VIEW ***
  12428. --- *** ***
  12429. --- ************************************************
  12430. ---
  12431. CREATE VIEW sl2_acceptor_site AS
  12432. SELECT
  12433. feature_id AS sl2_acceptor_site_id,
  12434. feature.*
  12435. FROM
  12436. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12437. WHERE cvterm.name = 'SL2_acceptor_site';
  12438. --- ************************************************
  12439. --- *** relation: gene_with_stop_codon_redefined_as_selenocysteine ***
  12440. --- *** relation type: VIEW ***
  12441. --- *** ***
  12442. --- *** A gene encoding an mRNA that has the sto ***
  12443. --- *** p codon redefined as selenocysteine. ***
  12444. --- ************************************************
  12445. ---
  12446. CREATE VIEW gene_with_stop_codon_redefined_as_selenocysteine AS
  12447. SELECT
  12448. feature_id AS gene_with_stop_codon_redefined_as_selenocysteine_id,
  12449. feature.*
  12450. FROM
  12451. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12452. WHERE cvterm.name = 'gene_with_stop_codon_redefined_as_selenocysteine';
  12453. --- ************************************************
  12454. --- *** relation: gene_with_mrna_recoded_by_translational_bypass ***
  12455. --- *** relation type: VIEW ***
  12456. --- *** ***
  12457. --- *** A gene with mRNA recoded by translationa ***
  12458. --- *** l bypass. ***
  12459. --- ************************************************
  12460. ---
  12461. CREATE VIEW gene_with_mrna_recoded_by_translational_bypass AS
  12462. SELECT
  12463. feature_id AS gene_with_mrna_recoded_by_translational_bypass_id,
  12464. feature.*
  12465. FROM
  12466. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12467. WHERE cvterm.name = 'gene_with_mRNA_recoded_by_translational_bypass';
  12468. --- ************************************************
  12469. --- *** relation: gene_with_transcript_with_translational_frameshift ***
  12470. --- *** relation type: VIEW ***
  12471. --- *** ***
  12472. --- *** A gene encoding a transcript that has a ***
  12473. --- *** translational frameshift. ***
  12474. --- ************************************************
  12475. ---
  12476. CREATE VIEW gene_with_transcript_with_translational_frameshift AS
  12477. SELECT
  12478. feature_id AS gene_with_transcript_with_translational_frameshift_id,
  12479. feature.*
  12480. FROM
  12481. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12482. WHERE cvterm.name = 'gene_with_transcript_with_translational_frameshift';
  12483. --- ************************************************
  12484. --- *** relation: dna_motif ***
  12485. --- *** relation type: VIEW ***
  12486. --- *** ***
  12487. --- *** A motif that is active in the DNA form o ***
  12488. --- *** f the sequence. ***
  12489. --- ************************************************
  12490. ---
  12491. CREATE VIEW dna_motif AS
  12492. SELECT
  12493. feature_id AS dna_motif_id,
  12494. feature.*
  12495. FROM
  12496. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12497. 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';
  12498. --- ************************************************
  12499. --- *** relation: nucleotide_motif ***
  12500. --- *** relation type: VIEW ***
  12501. --- *** ***
  12502. --- *** A region of nucleotide sequence correspo ***
  12503. --- *** nding to a known motif. ***
  12504. --- ************************************************
  12505. ---
  12506. CREATE VIEW nucleotide_motif AS
  12507. SELECT
  12508. feature_id AS nucleotide_motif_id,
  12509. feature.*
  12510. FROM
  12511. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12512. 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';
  12513. --- ************************************************
  12514. --- *** relation: rna_motif ***
  12515. --- *** relation type: VIEW ***
  12516. --- *** ***
  12517. --- *** A motif that is active in RNA sequence. ***
  12518. --- ************************************************
  12519. ---
  12520. CREATE VIEW rna_motif AS
  12521. SELECT
  12522. feature_id AS rna_motif_id,
  12523. feature.*
  12524. FROM
  12525. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12526. 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';
  12527. --- ************************************************
  12528. --- *** relation: dicistronic_mrna ***
  12529. --- *** relation type: VIEW ***
  12530. --- *** ***
  12531. --- *** An mRNA that has the quality dicistronic ***
  12532. --- *** . ***
  12533. --- ************************************************
  12534. ---
  12535. CREATE VIEW dicistronic_mrna AS
  12536. SELECT
  12537. feature_id AS dicistronic_mrna_id,
  12538. feature.*
  12539. FROM
  12540. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12541. WHERE cvterm.name = 'dicistronic_mRNA';
  12542. --- ************************************************
  12543. --- *** relation: reading_frame ***
  12544. --- *** relation type: VIEW ***
  12545. --- *** ***
  12546. --- *** A nucleic acid sequence that when read a ***
  12547. --- *** s sequential triplets, has the potential ***
  12548. --- *** of encoding a sequential string of amin ***
  12549. --- *** o acids. It need not contain the start o ***
  12550. --- *** r stop codon. ***
  12551. --- ************************************************
  12552. ---
  12553. CREATE VIEW reading_frame AS
  12554. SELECT
  12555. feature_id AS reading_frame_id,
  12556. feature.*
  12557. FROM
  12558. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12559. 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';
  12560. --- ************************************************
  12561. --- *** relation: blocked_reading_frame ***
  12562. --- *** relation type: VIEW ***
  12563. --- *** ***
  12564. --- *** A reading_frame that is interrupted by o ***
  12565. --- *** ne or more stop codons; usually identifi ***
  12566. --- *** ed through intergenomic sequence compari ***
  12567. --- *** sons. ***
  12568. --- ************************************************
  12569. ---
  12570. CREATE VIEW blocked_reading_frame AS
  12571. SELECT
  12572. feature_id AS blocked_reading_frame_id,
  12573. feature.*
  12574. FROM
  12575. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12576. WHERE cvterm.name = 'blocked_reading_frame';
  12577. --- ************************************************
  12578. --- *** relation: ultracontig ***
  12579. --- *** relation type: VIEW ***
  12580. --- *** ***
  12581. --- *** An ordered and oriented set of scaffolds ***
  12582. --- *** based on somewhat weaker sets of infere ***
  12583. --- *** ntial evidence such as one set of mate p ***
  12584. --- *** air reads together with supporting evide ***
  12585. --- *** nce from ESTs or location of markers fro ***
  12586. --- *** m SNP or microsatellite maps, or cytogen ***
  12587. --- *** etic localization of contained markers. ***
  12588. --- ************************************************
  12589. ---
  12590. CREATE VIEW ultracontig AS
  12591. SELECT
  12592. feature_id AS ultracontig_id,
  12593. feature.*
  12594. FROM
  12595. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12596. WHERE cvterm.name = 'ultracontig';
  12597. --- ************************************************
  12598. --- *** relation: foreign_transposable_element ***
  12599. --- *** relation type: VIEW ***
  12600. --- *** ***
  12601. --- *** A transposable element that is foreign. ***
  12602. --- ************************************************
  12603. ---
  12604. CREATE VIEW foreign_transposable_element AS
  12605. SELECT
  12606. feature_id AS foreign_transposable_element_id,
  12607. feature.*
  12608. FROM
  12609. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12610. WHERE cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'foreign_transposable_element';
  12611. --- ************************************************
  12612. --- *** relation: gene_with_dicistronic_primary_transcript ***
  12613. --- *** relation type: VIEW ***
  12614. --- *** ***
  12615. --- *** A gene that encodes a dicistronic primar ***
  12616. --- *** y transcript. ***
  12617. --- ************************************************
  12618. ---
  12619. CREATE VIEW gene_with_dicistronic_primary_transcript AS
  12620. SELECT
  12621. feature_id AS gene_with_dicistronic_primary_transcript_id,
  12622. feature.*
  12623. FROM
  12624. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12625. WHERE cvterm.name = 'gene_with_dicistronic_primary_transcript';
  12626. --- ************************************************
  12627. --- *** relation: gene_with_dicistronic_mrna ***
  12628. --- *** relation type: VIEW ***
  12629. --- *** ***
  12630. --- *** A gene that encodes a polycistronic mRNA ***
  12631. --- *** . ***
  12632. --- ************************************************
  12633. ---
  12634. CREATE VIEW gene_with_dicistronic_mrna AS
  12635. SELECT
  12636. feature_id AS gene_with_dicistronic_mrna_id,
  12637. feature.*
  12638. FROM
  12639. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12640. WHERE cvterm.name = 'gene_with_dicistronic_mRNA';
  12641. --- ************************************************
  12642. --- *** relation: idna ***
  12643. --- *** relation type: VIEW ***
  12644. --- *** ***
  12645. --- *** Genomic sequence removed from the genome ***
  12646. --- *** , as a normal event, by a process of rec ***
  12647. --- *** ombination. ***
  12648. --- ************************************************
  12649. ---
  12650. CREATE VIEW idna AS
  12651. SELECT
  12652. feature_id AS idna_id,
  12653. feature.*
  12654. FROM
  12655. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12656. WHERE cvterm.name = 'iDNA';
  12657. --- ************************************************
  12658. --- *** relation: orit ***
  12659. --- *** relation type: VIEW ***
  12660. --- *** ***
  12661. --- *** A region of a DNA molecule where transfe ***
  12662. --- *** r is initiated during the process of con ***
  12663. --- *** jugation or mobilization. ***
  12664. --- ************************************************
  12665. ---
  12666. CREATE VIEW orit AS
  12667. SELECT
  12668. feature_id AS orit_id,
  12669. feature.*
  12670. FROM
  12671. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12672. WHERE cvterm.name = 'oriT';
  12673. --- ************************************************
  12674. --- *** relation: transit_peptide ***
  12675. --- *** relation type: VIEW ***
  12676. --- *** ***
  12677. --- *** The transit_peptide is a short region at ***
  12678. --- *** the N-terminus of the peptide that dire ***
  12679. --- *** cts the protein to an organelle (chlorop ***
  12680. --- *** last, mitochondrion, microbody or cyanel ***
  12681. --- *** le). ***
  12682. --- ************************************************
  12683. ---
  12684. CREATE VIEW transit_peptide AS
  12685. SELECT
  12686. feature_id AS transit_peptide_id,
  12687. feature.*
  12688. FROM
  12689. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12690. WHERE cvterm.name = 'transit_peptide';
  12691. --- ************************************************
  12692. --- *** relation: repeat_unit ***
  12693. --- *** relation type: VIEW ***
  12694. --- *** ***
  12695. --- *** The simplest repeated component of a rep ***
  12696. --- *** eat region. A single repeat. ***
  12697. --- ************************************************
  12698. ---
  12699. CREATE VIEW repeat_unit AS
  12700. SELECT
  12701. feature_id AS repeat_unit_id,
  12702. feature.*
  12703. FROM
  12704. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12705. WHERE cvterm.name = 'repeat_unit';
  12706. --- ************************************************
  12707. --- *** relation: crm ***
  12708. --- *** relation type: VIEW ***
  12709. --- *** ***
  12710. --- *** A regulatory_region where more than 1 TF ***
  12711. --- *** _binding_site together are regulatorily ***
  12712. --- *** active. ***
  12713. --- ************************************************
  12714. ---
  12715. CREATE VIEW crm AS
  12716. SELECT
  12717. feature_id AS crm_id,
  12718. feature.*
  12719. FROM
  12720. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12721. 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';
  12722. --- ************************************************
  12723. --- *** relation: intein ***
  12724. --- *** relation type: VIEW ***
  12725. --- *** ***
  12726. --- *** A region of a peptide that is able to ex ***
  12727. --- *** cise itself and rejoin the remaining por ***
  12728. --- *** tions with a peptide bond. ***
  12729. --- ************************************************
  12730. ---
  12731. CREATE VIEW intein AS
  12732. SELECT
  12733. feature_id AS intein_id,
  12734. feature.*
  12735. FROM
  12736. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12737. WHERE cvterm.name = 'intein';
  12738. --- ************************************************
  12739. --- *** relation: intein_containing ***
  12740. --- *** relation type: VIEW ***
  12741. --- *** ***
  12742. --- *** An attribute of protein-coding genes whe ***
  12743. --- *** re the initial protein product contains ***
  12744. --- *** an intein. ***
  12745. --- ************************************************
  12746. ---
  12747. CREATE VIEW intein_containing AS
  12748. SELECT
  12749. feature_id AS intein_containing_id,
  12750. feature.*
  12751. FROM
  12752. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12753. WHERE cvterm.name = 'intein_containing';
  12754. --- ************************************************
  12755. --- *** relation: gap ***
  12756. --- *** relation type: VIEW ***
  12757. --- *** ***
  12758. --- *** A gap in the sequence of known length. T ***
  12759. --- *** he unknown bases are filled in with N's. ***
  12760. --- ************************************************
  12761. ---
  12762. CREATE VIEW gap AS
  12763. SELECT
  12764. feature_id AS gap_id,
  12765. feature.*
  12766. FROM
  12767. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12768. WHERE cvterm.name = 'gap';
  12769. --- ************************************************
  12770. --- *** relation: fragmentary ***
  12771. --- *** relation type: VIEW ***
  12772. --- *** ***
  12773. --- *** An attribute to describe a feature that ***
  12774. --- *** is incomplete. ***
  12775. --- ************************************************
  12776. ---
  12777. CREATE VIEW fragmentary AS
  12778. SELECT
  12779. feature_id AS fragmentary_id,
  12780. feature.*
  12781. FROM
  12782. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12783. WHERE cvterm.name = 'fragmentary';
  12784. --- ************************************************
  12785. --- *** relation: predicted ***
  12786. --- *** relation type: VIEW ***
  12787. --- *** ***
  12788. --- *** An attribute describing an unverified re ***
  12789. --- *** gion. ***
  12790. --- ************************************************
  12791. ---
  12792. CREATE VIEW predicted AS
  12793. SELECT
  12794. feature_id AS predicted_id,
  12795. feature.*
  12796. FROM
  12797. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12798. 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';
  12799. --- ************************************************
  12800. --- *** relation: feature_attribute ***
  12801. --- *** relation type: VIEW ***
  12802. --- *** ***
  12803. --- *** An attribute describing a located_sequen ***
  12804. --- *** ce_feature. ***
  12805. --- ************************************************
  12806. ---
  12807. CREATE VIEW feature_attribute AS
  12808. SELECT
  12809. feature_id AS feature_attribute_id,
  12810. feature.*
  12811. FROM
  12812. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12813. 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';
  12814. --- ************************************************
  12815. --- *** relation: exemplar_mrna ***
  12816. --- *** relation type: VIEW ***
  12817. --- *** ***
  12818. --- *** An exemplar is a representative cDNA seq ***
  12819. --- *** uence for each gene. The exemplar approa ***
  12820. --- *** ch is a method that usually involves som ***
  12821. --- *** e initial clustering into gene groups an ***
  12822. --- *** d the subsequent selection of a represen ***
  12823. --- *** tative from each gene group. ***
  12824. --- ************************************************
  12825. ---
  12826. CREATE VIEW exemplar_mrna AS
  12827. SELECT
  12828. feature_id AS exemplar_mrna_id,
  12829. feature.*
  12830. FROM
  12831. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12832. WHERE cvterm.name = 'exemplar_mRNA';
  12833. --- ************************************************
  12834. --- *** relation: sequence_location ***
  12835. --- *** relation type: VIEW ***
  12836. --- *** ***
  12837. --- ************************************************
  12838. ---
  12839. CREATE VIEW sequence_location AS
  12840. SELECT
  12841. feature_id AS sequence_location_id,
  12842. feature.*
  12843. FROM
  12844. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12845. 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';
  12846. --- ************************************************
  12847. --- *** relation: organelle_sequence ***
  12848. --- *** relation type: VIEW ***
  12849. --- *** ***
  12850. --- ************************************************
  12851. ---
  12852. CREATE VIEW organelle_sequence AS
  12853. SELECT
  12854. feature_id AS organelle_sequence_id,
  12855. feature.*
  12856. FROM
  12857. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12858. 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';
  12859. --- ************************************************
  12860. --- *** relation: mitochondrial_sequence ***
  12861. --- *** relation type: VIEW ***
  12862. --- *** ***
  12863. --- ************************************************
  12864. ---
  12865. CREATE VIEW mitochondrial_sequence AS
  12866. SELECT
  12867. feature_id AS mitochondrial_sequence_id,
  12868. feature.*
  12869. FROM
  12870. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12871. WHERE cvterm.name = 'mitochondrial_DNA' OR cvterm.name = 'mitochondrial_sequence';
  12872. --- ************************************************
  12873. --- *** relation: nuclear_sequence ***
  12874. --- *** relation type: VIEW ***
  12875. --- *** ***
  12876. --- ************************************************
  12877. ---
  12878. CREATE VIEW nuclear_sequence AS
  12879. SELECT
  12880. feature_id AS nuclear_sequence_id,
  12881. feature.*
  12882. FROM
  12883. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12884. WHERE cvterm.name = 'nuclear_sequence';
  12885. --- ************************************************
  12886. --- *** relation: nucleomorphic_sequence ***
  12887. --- *** relation type: VIEW ***
  12888. --- *** ***
  12889. --- ************************************************
  12890. ---
  12891. CREATE VIEW nucleomorphic_sequence AS
  12892. SELECT
  12893. feature_id AS nucleomorphic_sequence_id,
  12894. feature.*
  12895. FROM
  12896. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12897. WHERE cvterm.name = 'nucleomorphic_sequence';
  12898. --- ************************************************
  12899. --- *** relation: plastid_sequence ***
  12900. --- *** relation type: VIEW ***
  12901. --- *** ***
  12902. --- ************************************************
  12903. ---
  12904. CREATE VIEW plastid_sequence AS
  12905. SELECT
  12906. feature_id AS plastid_sequence_id,
  12907. feature.*
  12908. FROM
  12909. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12910. 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';
  12911. --- ************************************************
  12912. --- *** relation: kinetoplast ***
  12913. --- *** relation type: VIEW ***
  12914. --- *** ***
  12915. --- *** A kinetoplast is an interlocked network ***
  12916. --- *** of thousands of minicircles and tens of ***
  12917. --- *** maxi circles, located near the base of t ***
  12918. --- *** he flagellum of some protozoan species. ***
  12919. --- ************************************************
  12920. ---
  12921. CREATE VIEW kinetoplast AS
  12922. SELECT
  12923. feature_id AS kinetoplast_id,
  12924. feature.*
  12925. FROM
  12926. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12927. WHERE cvterm.name = 'kinetoplast';
  12928. --- ************************************************
  12929. --- *** relation: maxicircle ***
  12930. --- *** relation type: VIEW ***
  12931. --- *** ***
  12932. --- *** A maxicircle is a replicon, part of a ki ***
  12933. --- *** netoplast, that contains open reading fr ***
  12934. --- *** ames and replicates via a rolling circle ***
  12935. --- *** method. ***
  12936. --- ************************************************
  12937. ---
  12938. CREATE VIEW maxicircle AS
  12939. SELECT
  12940. feature_id AS maxicircle_id,
  12941. feature.*
  12942. FROM
  12943. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12944. WHERE cvterm.name = 'maxicircle';
  12945. --- ************************************************
  12946. --- *** relation: apicoplast_sequence ***
  12947. --- *** relation type: VIEW ***
  12948. --- *** ***
  12949. --- ************************************************
  12950. ---
  12951. CREATE VIEW apicoplast_sequence AS
  12952. SELECT
  12953. feature_id AS apicoplast_sequence_id,
  12954. feature.*
  12955. FROM
  12956. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12957. WHERE cvterm.name = 'apicoplast_sequence';
  12958. --- ************************************************
  12959. --- *** relation: chromoplast_sequence ***
  12960. --- *** relation type: VIEW ***
  12961. --- *** ***
  12962. --- ************************************************
  12963. ---
  12964. CREATE VIEW chromoplast_sequence AS
  12965. SELECT
  12966. feature_id AS chromoplast_sequence_id,
  12967. feature.*
  12968. FROM
  12969. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12970. WHERE cvterm.name = 'chromoplast_sequence';
  12971. --- ************************************************
  12972. --- *** relation: chloroplast_sequence ***
  12973. --- *** relation type: VIEW ***
  12974. --- *** ***
  12975. --- ************************************************
  12976. ---
  12977. CREATE VIEW chloroplast_sequence AS
  12978. SELECT
  12979. feature_id AS chloroplast_sequence_id,
  12980. feature.*
  12981. FROM
  12982. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12983. WHERE cvterm.name = 'chloroplast_DNA' OR cvterm.name = 'chloroplast_sequence';
  12984. --- ************************************************
  12985. --- *** relation: cyanelle_sequence ***
  12986. --- *** relation type: VIEW ***
  12987. --- *** ***
  12988. --- ************************************************
  12989. ---
  12990. CREATE VIEW cyanelle_sequence AS
  12991. SELECT
  12992. feature_id AS cyanelle_sequence_id,
  12993. feature.*
  12994. FROM
  12995. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12996. WHERE cvterm.name = 'cyanelle_sequence';
  12997. --- ************************************************
  12998. --- *** relation: leucoplast_sequence ***
  12999. --- *** relation type: VIEW ***
  13000. --- *** ***
  13001. --- ************************************************
  13002. ---
  13003. CREATE VIEW leucoplast_sequence AS
  13004. SELECT
  13005. feature_id AS leucoplast_sequence_id,
  13006. feature.*
  13007. FROM
  13008. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13009. WHERE cvterm.name = 'leucoplast_sequence';
  13010. --- ************************************************
  13011. --- *** relation: proplastid_sequence ***
  13012. --- *** relation type: VIEW ***
  13013. --- *** ***
  13014. --- ************************************************
  13015. ---
  13016. CREATE VIEW proplastid_sequence AS
  13017. SELECT
  13018. feature_id AS proplastid_sequence_id,
  13019. feature.*
  13020. FROM
  13021. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13022. WHERE cvterm.name = 'proplastid_sequence';
  13023. --- ************************************************
  13024. --- *** relation: plasmid_location ***
  13025. --- *** relation type: VIEW ***
  13026. --- *** ***
  13027. --- ************************************************
  13028. ---
  13029. CREATE VIEW plasmid_location AS
  13030. SELECT
  13031. feature_id AS plasmid_location_id,
  13032. feature.*
  13033. FROM
  13034. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13035. WHERE cvterm.name = 'plasmid_location';
  13036. --- ************************************************
  13037. --- *** relation: amplification_origin ***
  13038. --- *** relation type: VIEW ***
  13039. --- *** ***
  13040. --- *** An origin_of_replication that is used fo ***
  13041. --- *** r the amplification of a chromosomal nuc ***
  13042. --- *** leic acid sequence. ***
  13043. --- ************************************************
  13044. ---
  13045. CREATE VIEW amplification_origin AS
  13046. SELECT
  13047. feature_id AS amplification_origin_id,
  13048. feature.*
  13049. FROM
  13050. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13051. WHERE cvterm.name = 'amplification_origin';
  13052. --- ************************************************
  13053. --- *** relation: proviral_location ***
  13054. --- *** relation type: VIEW ***
  13055. --- *** ***
  13056. --- ************************************************
  13057. ---
  13058. CREATE VIEW proviral_location AS
  13059. SELECT
  13060. feature_id AS proviral_location_id,
  13061. feature.*
  13062. FROM
  13063. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13064. WHERE cvterm.name = 'endogenous_retroviral_sequence' OR cvterm.name = 'proviral_location';
  13065. --- ************************************************
  13066. --- *** relation: gene_group_regulatory_region ***
  13067. --- *** relation type: VIEW ***
  13068. --- *** ***
  13069. --- ************************************************
  13070. ---
  13071. CREATE VIEW gene_group_regulatory_region AS
  13072. SELECT
  13073. feature_id AS gene_group_regulatory_region_id,
  13074. feature.*
  13075. FROM
  13076. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13077. 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';
  13078. --- ************************************************
  13079. --- *** relation: clone_insert ***
  13080. --- *** relation type: VIEW ***
  13081. --- *** ***
  13082. --- *** The region of sequence that has been ins ***
  13083. --- *** erted and is being propogated by the clo ***
  13084. --- *** ne. ***
  13085. --- ************************************************
  13086. ---
  13087. CREATE VIEW clone_insert AS
  13088. SELECT
  13089. feature_id AS clone_insert_id,
  13090. feature.*
  13091. FROM
  13092. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13093. 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';
  13094. --- ************************************************
  13095. --- *** relation: lambda_vector ***
  13096. --- *** relation type: VIEW ***
  13097. --- *** ***
  13098. --- *** The lambda bacteriophage is the vector f ***
  13099. --- *** or the linear lambda clone. The genes in ***
  13100. --- *** volved in the lysogenic pathway are remo ***
  13101. --- *** ved from the from the viral DNA. Up to 2 ***
  13102. --- *** 5 kb of foreign DNA can then be inserted ***
  13103. --- *** into the lambda genome. ***
  13104. --- ************************************************
  13105. ---
  13106. CREATE VIEW lambda_vector AS
  13107. SELECT
  13108. feature_id AS lambda_vector_id,
  13109. feature.*
  13110. FROM
  13111. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13112. WHERE cvterm.name = 'lambda_vector';
  13113. --- ************************************************
  13114. --- *** relation: plasmid_vector ***
  13115. --- *** relation type: VIEW ***
  13116. --- *** ***
  13117. --- ************************************************
  13118. ---
  13119. CREATE VIEW plasmid_vector AS
  13120. SELECT
  13121. feature_id AS plasmid_vector_id,
  13122. feature.*
  13123. FROM
  13124. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13125. WHERE cvterm.name = 'plasmid_vector';
  13126. --- ************************************************
  13127. --- *** relation: cdna ***
  13128. --- *** relation type: VIEW ***
  13129. --- *** ***
  13130. --- *** DNA synthesized by reverse transcriptase ***
  13131. --- *** using RNA as a template. ***
  13132. --- ************************************************
  13133. ---
  13134. CREATE VIEW cdna AS
  13135. SELECT
  13136. feature_id AS cdna_id,
  13137. feature.*
  13138. FROM
  13139. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13140. WHERE cvterm.name = 'single_stranded_cDNA' OR cvterm.name = 'double_stranded_cDNA' OR cvterm.name = 'cDNA';
  13141. --- ************************************************
  13142. --- *** relation: single_stranded_cdna ***
  13143. --- *** relation type: VIEW ***
  13144. --- *** ***
  13145. --- ************************************************
  13146. ---
  13147. CREATE VIEW single_stranded_cdna AS
  13148. SELECT
  13149. feature_id AS single_stranded_cdna_id,
  13150. feature.*
  13151. FROM
  13152. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13153. WHERE cvterm.name = 'single_stranded_cDNA';
  13154. --- ************************************************
  13155. --- *** relation: double_stranded_cdna ***
  13156. --- *** relation type: VIEW ***
  13157. --- *** ***
  13158. --- ************************************************
  13159. ---
  13160. CREATE VIEW double_stranded_cdna AS
  13161. SELECT
  13162. feature_id AS double_stranded_cdna_id,
  13163. feature.*
  13164. FROM
  13165. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13166. WHERE cvterm.name = 'double_stranded_cDNA';
  13167. --- ************************************************
  13168. --- *** relation: pyrrolysyl_trna ***
  13169. --- *** relation type: VIEW ***
  13170. --- *** ***
  13171. --- *** A tRNA sequence that has a pyrrolysine a ***
  13172. --- *** nticodon, and a 3' pyrrolysine binding r ***
  13173. --- *** egion. ***
  13174. --- ************************************************
  13175. ---
  13176. CREATE VIEW pyrrolysyl_trna AS
  13177. SELECT
  13178. feature_id AS pyrrolysyl_trna_id,
  13179. feature.*
  13180. FROM
  13181. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13182. WHERE cvterm.name = 'pyrrolysyl_tRNA';
  13183. --- ************************************************
  13184. --- *** relation: episome ***
  13185. --- *** relation type: VIEW ***
  13186. --- *** ***
  13187. --- *** A plasmid that may integrate with a chro ***
  13188. --- *** mosome. ***
  13189. --- ************************************************
  13190. ---
  13191. CREATE VIEW episome AS
  13192. SELECT
  13193. feature_id AS episome_id,
  13194. feature.*
  13195. FROM
  13196. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13197. WHERE cvterm.name = 'engineered_episome' OR cvterm.name = 'episome';
  13198. --- ************************************************
  13199. --- *** relation: tmrna_coding_piece ***
  13200. --- *** relation type: VIEW ***
  13201. --- *** ***
  13202. --- *** The region of a two-piece tmRNA that bea ***
  13203. --- *** rs the reading frame encoding the proteo ***
  13204. --- *** lysis tag. The tmRNA gene undergoes circ ***
  13205. --- *** ular permutation in some groups of bacte ***
  13206. --- *** ria. Processing of the transcripts from ***
  13207. --- *** such a gene leaves the mature tmRNA in t ***
  13208. --- *** wo pieces, base-paired together. ***
  13209. --- ************************************************
  13210. ---
  13211. CREATE VIEW tmrna_coding_piece AS
  13212. SELECT
  13213. feature_id AS tmrna_coding_piece_id,
  13214. feature.*
  13215. FROM
  13216. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13217. WHERE cvterm.name = 'tmRNA_coding_piece';
  13218. --- ************************************************
  13219. --- *** relation: tmrna_acceptor_piece ***
  13220. --- *** relation type: VIEW ***
  13221. --- *** ***
  13222. --- *** The acceptor region of a two-piece tmRNA ***
  13223. --- *** that when mature is charged at its 3' e ***
  13224. --- *** nd with alanine. The tmRNA gene undergoe ***
  13225. --- *** s circular permutation in some groups of ***
  13226. --- *** bacteria; processing of the transcripts ***
  13227. --- *** from such a gene leaves the mature tmRN ***
  13228. --- *** A in two pieces, base-paired together. ***
  13229. --- ************************************************
  13230. ---
  13231. CREATE VIEW tmrna_acceptor_piece AS
  13232. SELECT
  13233. feature_id AS tmrna_acceptor_piece_id,
  13234. feature.*
  13235. FROM
  13236. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13237. WHERE cvterm.name = 'tmRNA_acceptor_piece';
  13238. --- ************************************************
  13239. --- *** relation: qtl ***
  13240. --- *** relation type: VIEW ***
  13241. --- *** ***
  13242. --- *** A quantitative trait locus (QTL) is a po ***
  13243. --- *** lymorphic locus which contains alleles t ***
  13244. --- *** hat differentially affect the expression ***
  13245. --- *** of a continuously distributed phenotypi ***
  13246. --- *** c trait. Usually it is a marker describe ***
  13247. --- *** d by statistical association to quantita ***
  13248. --- *** tive variation in the particular phenoty ***
  13249. --- *** pic trait that is thought to be controll ***
  13250. --- *** ed by the cumulative action of alleles a ***
  13251. --- *** t multiple loci. ***
  13252. --- ************************************************
  13253. ---
  13254. CREATE VIEW qtl AS
  13255. SELECT
  13256. feature_id AS qtl_id,
  13257. feature.*
  13258. FROM
  13259. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13260. WHERE cvterm.name = 'QTL';
  13261. --- ************************************************
  13262. --- *** relation: genomic_island ***
  13263. --- *** relation type: VIEW ***
  13264. --- *** ***
  13265. --- *** A genomic island is an integrated mobile ***
  13266. --- *** genetic element, characterized by size ***
  13267. --- *** (over 10 Kb). It that has features that ***
  13268. --- *** suggest a foreign origin. These can incl ***
  13269. --- *** ude nucleotide distribution (oligonucleo ***
  13270. --- *** tides signature, CG content etc.) that d ***
  13271. --- *** iffers from the bulk of the chromosome a ***
  13272. --- *** nd/or genes suggesting DNA mobility. ***
  13273. --- ************************************************
  13274. ---
  13275. CREATE VIEW genomic_island AS
  13276. SELECT
  13277. feature_id AS genomic_island_id,
  13278. feature.*
  13279. FROM
  13280. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13281. 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';
  13282. --- ************************************************
  13283. --- *** relation: pathogenic_island ***
  13284. --- *** relation type: VIEW ***
  13285. --- *** ***
  13286. --- *** Mobile genetic elements that contribute ***
  13287. --- *** to rapid changes in virulence potential. ***
  13288. --- *** They are present on the genomes of path ***
  13289. --- *** ogenic strains but absent from the genom ***
  13290. --- *** es of non pathogenic members of the same ***
  13291. --- *** or related species. ***
  13292. --- ************************************************
  13293. ---
  13294. CREATE VIEW pathogenic_island AS
  13295. SELECT
  13296. feature_id AS pathogenic_island_id,
  13297. feature.*
  13298. FROM
  13299. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13300. WHERE cvterm.name = 'pathogenic_island';
  13301. --- ************************************************
  13302. --- *** relation: metabolic_island ***
  13303. --- *** relation type: VIEW ***
  13304. --- *** ***
  13305. --- *** A transmissible element containing genes ***
  13306. --- *** involved in metabolism, analogous to th ***
  13307. --- *** e pathogenicity islands of gram negative ***
  13308. --- *** bacteria. ***
  13309. --- ************************************************
  13310. ---
  13311. CREATE VIEW metabolic_island AS
  13312. SELECT
  13313. feature_id AS metabolic_island_id,
  13314. feature.*
  13315. FROM
  13316. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13317. WHERE cvterm.name = 'metabolic_island';
  13318. --- ************************************************
  13319. --- *** relation: adaptive_island ***
  13320. --- *** relation type: VIEW ***
  13321. --- *** ***
  13322. --- *** An adaptive island is a genomic island t ***
  13323. --- *** hat provides an adaptive advantage to th ***
  13324. --- *** e host. ***
  13325. --- ************************************************
  13326. ---
  13327. CREATE VIEW adaptive_island AS
  13328. SELECT
  13329. feature_id AS adaptive_island_id,
  13330. feature.*
  13331. FROM
  13332. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13333. WHERE cvterm.name = 'adaptive_island';
  13334. --- ************************************************
  13335. --- *** relation: symbiosis_island ***
  13336. --- *** relation type: VIEW ***
  13337. --- *** ***
  13338. --- *** A transmissible element containing genes ***
  13339. --- *** involved in symbiosis, analogous to the ***
  13340. --- *** pathogenicity islands of gram negative ***
  13341. --- *** bacteria. ***
  13342. --- ************************************************
  13343. ---
  13344. CREATE VIEW symbiosis_island AS
  13345. SELECT
  13346. feature_id AS symbiosis_island_id,
  13347. feature.*
  13348. FROM
  13349. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13350. WHERE cvterm.name = 'symbiosis_island';
  13351. --- ************************************************
  13352. --- *** relation: pseudogenic_rrna ***
  13353. --- *** relation type: VIEW ***
  13354. --- *** ***
  13355. --- *** A non functional descendent of an rRNA. ***
  13356. --- ************************************************
  13357. ---
  13358. CREATE VIEW pseudogenic_rrna AS
  13359. SELECT
  13360. feature_id AS pseudogenic_rrna_id,
  13361. feature.*
  13362. FROM
  13363. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13364. WHERE cvterm.name = 'pseudogenic_rRNA';
  13365. --- ************************************************
  13366. --- *** relation: pseudogenic_trna ***
  13367. --- *** relation type: VIEW ***
  13368. --- *** ***
  13369. --- *** A non functional descendent of a tRNA. ***
  13370. --- ************************************************
  13371. ---
  13372. CREATE VIEW pseudogenic_trna AS
  13373. SELECT
  13374. feature_id AS pseudogenic_trna_id,
  13375. feature.*
  13376. FROM
  13377. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13378. WHERE cvterm.name = 'pseudogenic_tRNA';
  13379. --- ************************************************
  13380. --- *** relation: engineered_episome ***
  13381. --- *** relation type: VIEW ***
  13382. --- *** ***
  13383. --- *** An episome that is engineered. ***
  13384. --- ************************************************
  13385. ---
  13386. CREATE VIEW engineered_episome AS
  13387. SELECT
  13388. feature_id AS engineered_episome_id,
  13389. feature.*
  13390. FROM
  13391. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13392. WHERE cvterm.name = 'engineered_episome';
  13393. --- ************************************************
  13394. --- *** relation: transgenic ***
  13395. --- *** relation type: VIEW ***
  13396. --- *** ***
  13397. --- *** Attribute describing sequence that has b ***
  13398. --- *** een integrated with foreign sequence. ***
  13399. --- ************************************************
  13400. ---
  13401. CREATE VIEW transgenic AS
  13402. SELECT
  13403. feature_id AS transgenic_id,
  13404. feature.*
  13405. FROM
  13406. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13407. WHERE cvterm.name = 'transgenic';
  13408. --- ************************************************
  13409. --- *** relation: so_natural ***
  13410. --- *** relation type: VIEW ***
  13411. --- *** ***
  13412. --- *** An attribute describing a feature that o ***
  13413. --- *** ccurs in nature. ***
  13414. --- ************************************************
  13415. ---
  13416. CREATE VIEW so_natural AS
  13417. SELECT
  13418. feature_id AS so_natural_id,
  13419. feature.*
  13420. FROM
  13421. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13422. WHERE cvterm.name = 'natural';
  13423. --- ************************************************
  13424. --- *** relation: engineered ***
  13425. --- *** relation type: VIEW ***
  13426. --- *** ***
  13427. --- *** An attribute to describe a region that w ***
  13428. --- *** as modified in vitro. ***
  13429. --- ************************************************
  13430. ---
  13431. CREATE VIEW engineered AS
  13432. SELECT
  13433. feature_id AS engineered_id,
  13434. feature.*
  13435. FROM
  13436. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13437. WHERE cvterm.name = 'engineered';
  13438. --- ************************************************
  13439. --- *** relation: so_foreign ***
  13440. --- *** relation type: VIEW ***
  13441. --- *** ***
  13442. --- *** An attribute to describe a region from a ***
  13443. --- *** nother species. ***
  13444. --- ************************************************
  13445. ---
  13446. CREATE VIEW so_foreign AS
  13447. SELECT
  13448. feature_id AS so_foreign_id,
  13449. feature.*
  13450. FROM
  13451. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13452. WHERE cvterm.name = 'foreign';
  13453. --- ************************************************
  13454. --- *** relation: cloned_region ***
  13455. --- *** relation type: VIEW ***
  13456. --- *** ***
  13457. --- ************************************************
  13458. ---
  13459. CREATE VIEW cloned_region AS
  13460. SELECT
  13461. feature_id AS cloned_region_id,
  13462. feature.*
  13463. FROM
  13464. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13465. WHERE cvterm.name = 'cloned_region';
  13466. --- ************************************************
  13467. --- *** relation: validated ***
  13468. --- *** relation type: VIEW ***
  13469. --- *** ***
  13470. --- *** An attribute to describe a feature that ***
  13471. --- *** has been proven. ***
  13472. --- ************************************************
  13473. ---
  13474. CREATE VIEW validated AS
  13475. SELECT
  13476. feature_id AS validated_id,
  13477. feature.*
  13478. FROM
  13479. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13480. WHERE cvterm.name = 'experimentally_determined' OR cvterm.name = 'validated';
  13481. --- ************************************************
  13482. --- *** relation: invalidated ***
  13483. --- *** relation type: VIEW ***
  13484. --- *** ***
  13485. --- *** An attribute describing a feature that i ***
  13486. --- *** s invalidated. ***
  13487. --- ************************************************
  13488. ---
  13489. CREATE VIEW invalidated AS
  13490. SELECT
  13491. feature_id AS invalidated_id,
  13492. feature.*
  13493. FROM
  13494. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13495. 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';
  13496. --- ************************************************
  13497. --- *** relation: engineered_rescue_region ***
  13498. --- *** relation type: VIEW ***
  13499. --- *** ***
  13500. --- *** A rescue region that is engineered. ***
  13501. --- ************************************************
  13502. ---
  13503. CREATE VIEW engineered_rescue_region AS
  13504. SELECT
  13505. feature_id AS engineered_rescue_region_id,
  13506. feature.*
  13507. FROM
  13508. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13509. WHERE cvterm.name = 'engineered_rescue_region';
  13510. --- ************************************************
  13511. --- *** relation: rescue_mini_gene ***
  13512. --- *** relation type: VIEW ***
  13513. --- *** ***
  13514. --- *** A mini_gene that rescues. ***
  13515. --- ************************************************
  13516. ---
  13517. CREATE VIEW rescue_mini_gene AS
  13518. SELECT
  13519. feature_id AS rescue_mini_gene_id,
  13520. feature.*
  13521. FROM
  13522. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13523. WHERE cvterm.name = 'rescue_mini_gene';
  13524. --- ************************************************
  13525. --- *** relation: transgenic_transposable_element ***
  13526. --- *** relation type: VIEW ***
  13527. --- *** ***
  13528. --- *** TE that has been modified in vitro, incl ***
  13529. --- *** uding insertion of DNA derived from a so ***
  13530. --- *** urce other than the originating TE. ***
  13531. --- ************************************************
  13532. ---
  13533. CREATE VIEW transgenic_transposable_element AS
  13534. SELECT
  13535. feature_id AS transgenic_transposable_element_id,
  13536. feature.*
  13537. FROM
  13538. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13539. WHERE cvterm.name = 'transgenic_transposable_element';
  13540. --- ************************************************
  13541. --- *** relation: natural_transposable_element ***
  13542. --- *** relation type: VIEW ***
  13543. --- *** ***
  13544. --- *** TE that exists (or existed) in nature. ***
  13545. --- ************************************************
  13546. ---
  13547. CREATE VIEW natural_transposable_element AS
  13548. SELECT
  13549. feature_id AS natural_transposable_element_id,
  13550. feature.*
  13551. FROM
  13552. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13553. WHERE cvterm.name = 'natural_transposable_element';
  13554. --- ************************************************
  13555. --- *** relation: engineered_transposable_element ***
  13556. --- *** relation type: VIEW ***
  13557. --- *** ***
  13558. --- *** TE that has been modified by manipulatio ***
  13559. --- *** ns in vitro. ***
  13560. --- ************************************************
  13561. ---
  13562. CREATE VIEW engineered_transposable_element AS
  13563. SELECT
  13564. feature_id AS engineered_transposable_element_id,
  13565. feature.*
  13566. FROM
  13567. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13568. WHERE cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_transposable_element';
  13569. --- ************************************************
  13570. --- *** relation: engineered_foreign_transposable_element ***
  13571. --- *** relation type: VIEW ***
  13572. --- *** ***
  13573. --- *** A transposable_element that is engineere ***
  13574. --- *** d and foreign. ***
  13575. --- ************************************************
  13576. ---
  13577. CREATE VIEW engineered_foreign_transposable_element AS
  13578. SELECT
  13579. feature_id AS engineered_foreign_transposable_element_id,
  13580. feature.*
  13581. FROM
  13582. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13583. WHERE cvterm.name = 'engineered_foreign_transposable_element';
  13584. --- ************************************************
  13585. --- *** relation: assortment_derived_duplication ***
  13586. --- *** relation type: VIEW ***
  13587. --- *** ***
  13588. --- *** A multi-chromosome duplication aberratio ***
  13589. --- *** n generated by reassortment of other abe ***
  13590. --- *** rration components. ***
  13591. --- ************************************************
  13592. ---
  13593. CREATE VIEW assortment_derived_duplication AS
  13594. SELECT
  13595. feature_id AS assortment_derived_duplication_id,
  13596. feature.*
  13597. FROM
  13598. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13599. WHERE cvterm.name = 'assortment_derived_duplication';
  13600. --- ************************************************
  13601. --- *** relation: assortment_derived_deficiency_plus_duplication ***
  13602. --- *** relation type: VIEW ***
  13603. --- *** ***
  13604. --- *** A multi-chromosome aberration generated ***
  13605. --- *** by reassortment of other aberration comp ***
  13606. --- *** onents; presumed to have a deficiency an ***
  13607. --- *** d a duplication. ***
  13608. --- ************************************************
  13609. ---
  13610. CREATE VIEW assortment_derived_deficiency_plus_duplication AS
  13611. SELECT
  13612. feature_id AS assortment_derived_deficiency_plus_duplication_id,
  13613. feature.*
  13614. FROM
  13615. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13616. WHERE cvterm.name = 'assortment_derived_deficiency_plus_duplication';
  13617. --- ************************************************
  13618. --- *** relation: assortment_derived_deficiency ***
  13619. --- *** relation type: VIEW ***
  13620. --- *** ***
  13621. --- *** A multi-chromosome deficiency aberration ***
  13622. --- *** generated by reassortment of other aber ***
  13623. --- *** ration components. ***
  13624. --- ************************************************
  13625. ---
  13626. CREATE VIEW assortment_derived_deficiency AS
  13627. SELECT
  13628. feature_id AS assortment_derived_deficiency_id,
  13629. feature.*
  13630. FROM
  13631. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13632. WHERE cvterm.name = 'assortment_derived_deficiency';
  13633. --- ************************************************
  13634. --- *** relation: assortment_derived_aneuploid ***
  13635. --- *** relation type: VIEW ***
  13636. --- *** ***
  13637. --- *** A multi-chromosome aberration generated ***
  13638. --- *** by reassortment of other aberration comp ***
  13639. --- *** onents; presumed to have a deficiency or ***
  13640. --- *** a duplication. ***
  13641. --- ************************************************
  13642. ---
  13643. CREATE VIEW assortment_derived_aneuploid AS
  13644. SELECT
  13645. feature_id AS assortment_derived_aneuploid_id,
  13646. feature.*
  13647. FROM
  13648. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13649. WHERE cvterm.name = 'assortment_derived_aneuploid';
  13650. --- ************************************************
  13651. --- *** relation: engineered_region ***
  13652. --- *** relation type: VIEW ***
  13653. --- *** ***
  13654. --- *** A region that is engineered. ***
  13655. --- ************************************************
  13656. ---
  13657. CREATE VIEW engineered_region AS
  13658. SELECT
  13659. feature_id AS engineered_region_id,
  13660. feature.*
  13661. FROM
  13662. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13663. 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';
  13664. --- ************************************************
  13665. --- *** relation: engineered_foreign_region ***
  13666. --- *** relation type: VIEW ***
  13667. --- *** ***
  13668. --- *** A region that is engineered and foreign. ***
  13669. --- ************************************************
  13670. ---
  13671. CREATE VIEW engineered_foreign_region AS
  13672. SELECT
  13673. feature_id AS engineered_foreign_region_id,
  13674. feature.*
  13675. FROM
  13676. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13677. 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';
  13678. --- ************************************************
  13679. --- *** relation: fusion ***
  13680. --- *** relation type: VIEW ***
  13681. --- *** ***
  13682. --- ************************************************
  13683. ---
  13684. CREATE VIEW fusion AS
  13685. SELECT
  13686. feature_id AS fusion_id,
  13687. feature.*
  13688. FROM
  13689. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13690. WHERE cvterm.name = 'fusion';
  13691. --- ************************************************
  13692. --- *** relation: engineered_tag ***
  13693. --- *** relation type: VIEW ***
  13694. --- *** ***
  13695. --- *** A tag that is engineered. ***
  13696. --- ************************************************
  13697. ---
  13698. CREATE VIEW engineered_tag AS
  13699. SELECT
  13700. feature_id AS engineered_tag_id,
  13701. feature.*
  13702. FROM
  13703. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13704. WHERE cvterm.name = 'engineered_tag';
  13705. --- ************************************************
  13706. --- *** relation: validated_cdna_clone ***
  13707. --- *** relation type: VIEW ***
  13708. --- *** ***
  13709. --- *** A cDNA clone that has been validated. ***
  13710. --- ************************************************
  13711. ---
  13712. CREATE VIEW validated_cdna_clone AS
  13713. SELECT
  13714. feature_id AS validated_cdna_clone_id,
  13715. feature.*
  13716. FROM
  13717. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13718. WHERE cvterm.name = 'validated_cDNA_clone';
  13719. --- ************************************************
  13720. --- *** relation: invalidated_cdna_clone ***
  13721. --- *** relation type: VIEW ***
  13722. --- *** ***
  13723. --- *** A cDNA clone that is invalid. ***
  13724. --- ************************************************
  13725. ---
  13726. CREATE VIEW invalidated_cdna_clone AS
  13727. SELECT
  13728. feature_id AS invalidated_cdna_clone_id,
  13729. feature.*
  13730. FROM
  13731. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13732. 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';
  13733. --- ************************************************
  13734. --- *** relation: chimeric_cdna_clone ***
  13735. --- *** relation type: VIEW ***
  13736. --- *** ***
  13737. --- *** A cDNA clone invalidated because it is c ***
  13738. --- *** himeric. ***
  13739. --- ************************************************
  13740. ---
  13741. CREATE VIEW chimeric_cdna_clone AS
  13742. SELECT
  13743. feature_id AS chimeric_cdna_clone_id,
  13744. feature.*
  13745. FROM
  13746. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13747. WHERE cvterm.name = 'chimeric_cDNA_clone';
  13748. --- ************************************************
  13749. --- *** relation: genomically_contaminated_cdna_clone ***
  13750. --- *** relation type: VIEW ***
  13751. --- *** ***
  13752. --- *** A cDNA clone invalidated by genomic cont ***
  13753. --- *** amination. ***
  13754. --- ************************************************
  13755. ---
  13756. CREATE VIEW genomically_contaminated_cdna_clone AS
  13757. SELECT
  13758. feature_id AS genomically_contaminated_cdna_clone_id,
  13759. feature.*
  13760. FROM
  13761. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13762. WHERE cvterm.name = 'genomically_contaminated_cDNA_clone';
  13763. --- ************************************************
  13764. --- *** relation: polya_primed_cdna_clone ***
  13765. --- *** relation type: VIEW ***
  13766. --- *** ***
  13767. --- *** A cDNA clone invalidated by polyA primin ***
  13768. --- *** g. ***
  13769. --- ************************************************
  13770. ---
  13771. CREATE VIEW polya_primed_cdna_clone AS
  13772. SELECT
  13773. feature_id AS polya_primed_cdna_clone_id,
  13774. feature.*
  13775. FROM
  13776. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13777. WHERE cvterm.name = 'polyA_primed_cDNA_clone';
  13778. --- ************************************************
  13779. --- *** relation: partially_processed_cdna_clone ***
  13780. --- *** relation type: VIEW ***
  13781. --- *** ***
  13782. --- *** A cDNA invalidated clone by partial proc ***
  13783. --- *** essing. ***
  13784. --- ************************************************
  13785. ---
  13786. CREATE VIEW partially_processed_cdna_clone AS
  13787. SELECT
  13788. feature_id AS partially_processed_cdna_clone_id,
  13789. feature.*
  13790. FROM
  13791. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13792. WHERE cvterm.name = 'partially_processed_cDNA_clone';
  13793. --- ************************************************
  13794. --- *** relation: rescue ***
  13795. --- *** relation type: VIEW ***
  13796. --- *** ***
  13797. --- *** An attribute describing a region's abili ***
  13798. --- *** ty, when introduced to a mutant organism ***
  13799. --- *** , to re-establish (rescue) a phenotype. ***
  13800. --- ************************************************
  13801. ---
  13802. CREATE VIEW rescue AS
  13803. SELECT
  13804. feature_id AS rescue_id,
  13805. feature.*
  13806. FROM
  13807. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13808. WHERE cvterm.name = 'rescue';
  13809. --- ************************************************
  13810. --- *** relation: mini_gene ***
  13811. --- *** relation type: VIEW ***
  13812. --- *** ***
  13813. --- *** By definition, minigenes are short open- ***
  13814. --- *** reading frames (ORF), usually encoding a ***
  13815. --- *** pproximately 9 to 20 amino acids, which ***
  13816. --- *** are expressed in vivo (as distinct from ***
  13817. --- *** being synthesized as peptide or protein ***
  13818. --- *** ex vivo and subsequently injected). The ***
  13819. --- *** in vivo synthesis confers a distinct adv ***
  13820. --- *** antage: the expressed sequences can ente ***
  13821. --- *** r both antigen presentation pathways, MH ***
  13822. --- *** C I (inducing CD8+ T- cells, which are u ***
  13823. --- *** sually cytotoxic T-lymphocytes (CTL)) an ***
  13824. --- *** d MHC II (inducing CD4+ T-cells, usually ***
  13825. --- *** 'T-helpers' (Th)); and can encounter B- ***
  13826. --- *** cells, inducing antibody responses. Thre ***
  13827. --- *** e main vector approaches have been used ***
  13828. --- *** to deliver minigenes: viral vectors, bac ***
  13829. --- *** terial vectors and plasmid DNA. ***
  13830. --- ************************************************
  13831. ---
  13832. CREATE VIEW mini_gene AS
  13833. SELECT
  13834. feature_id AS mini_gene_id,
  13835. feature.*
  13836. FROM
  13837. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13838. WHERE cvterm.name = 'rescue_mini_gene' OR cvterm.name = 'mini_gene';
  13839. --- ************************************************
  13840. --- *** relation: rescue_gene ***
  13841. --- *** relation type: VIEW ***
  13842. --- *** ***
  13843. --- *** A gene that rescues. ***
  13844. --- ************************************************
  13845. ---
  13846. CREATE VIEW rescue_gene AS
  13847. SELECT
  13848. feature_id AS rescue_gene_id,
  13849. feature.*
  13850. FROM
  13851. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13852. WHERE cvterm.name = 'wild_type_rescue_gene' OR cvterm.name = 'rescue_gene';
  13853. --- ************************************************
  13854. --- *** relation: wild_type ***
  13855. --- *** relation type: VIEW ***
  13856. --- *** ***
  13857. --- *** An attribute describing sequence with th ***
  13858. --- *** e genotype found in nature and/or standa ***
  13859. --- *** rd laboratory stock. ***
  13860. --- ************************************************
  13861. ---
  13862. CREATE VIEW wild_type AS
  13863. SELECT
  13864. feature_id AS wild_type_id,
  13865. feature.*
  13866. FROM
  13867. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13868. WHERE cvterm.name = 'wild_type';
  13869. --- ************************************************
  13870. --- *** relation: wild_type_rescue_gene ***
  13871. --- *** relation type: VIEW ***
  13872. --- *** ***
  13873. --- *** A gene that rescues. ***
  13874. --- ************************************************
  13875. ---
  13876. CREATE VIEW wild_type_rescue_gene AS
  13877. SELECT
  13878. feature_id AS wild_type_rescue_gene_id,
  13879. feature.*
  13880. FROM
  13881. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13882. WHERE cvterm.name = 'wild_type_rescue_gene';
  13883. --- ************************************************
  13884. --- *** relation: mitochondrial_chromosome ***
  13885. --- *** relation type: VIEW ***
  13886. --- *** ***
  13887. --- *** A chromosome originating in a mitochondr ***
  13888. --- *** ia. ***
  13889. --- ************************************************
  13890. ---
  13891. CREATE VIEW mitochondrial_chromosome AS
  13892. SELECT
  13893. feature_id AS mitochondrial_chromosome_id,
  13894. feature.*
  13895. FROM
  13896. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13897. WHERE cvterm.name = 'mitochondrial_chromosome';
  13898. --- ************************************************
  13899. --- *** relation: chloroplast_chromosome ***
  13900. --- *** relation type: VIEW ***
  13901. --- *** ***
  13902. --- *** A chromosome originating in a chloroplas ***
  13903. --- *** t. ***
  13904. --- ************************************************
  13905. ---
  13906. CREATE VIEW chloroplast_chromosome AS
  13907. SELECT
  13908. feature_id AS chloroplast_chromosome_id,
  13909. feature.*
  13910. FROM
  13911. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13912. WHERE cvterm.name = 'chloroplast_chromosome';
  13913. --- ************************************************
  13914. --- *** relation: chromoplast_chromosome ***
  13915. --- *** relation type: VIEW ***
  13916. --- *** ***
  13917. --- *** A chromosome originating in a chromoplas ***
  13918. --- *** t. ***
  13919. --- ************************************************
  13920. ---
  13921. CREATE VIEW chromoplast_chromosome AS
  13922. SELECT
  13923. feature_id AS chromoplast_chromosome_id,
  13924. feature.*
  13925. FROM
  13926. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13927. WHERE cvterm.name = 'chromoplast_chromosome';
  13928. --- ************************************************
  13929. --- *** relation: cyanelle_chromosome ***
  13930. --- *** relation type: VIEW ***
  13931. --- *** ***
  13932. --- *** A chromosome originating in a cyanelle. ***
  13933. --- ************************************************
  13934. ---
  13935. CREATE VIEW cyanelle_chromosome AS
  13936. SELECT
  13937. feature_id AS cyanelle_chromosome_id,
  13938. feature.*
  13939. FROM
  13940. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13941. WHERE cvterm.name = 'cyanelle_chromosome';
  13942. --- ************************************************
  13943. --- *** relation: leucoplast_chromosome ***
  13944. --- *** relation type: VIEW ***
  13945. --- *** ***
  13946. --- *** A chromosome with origin in a leucoplast ***
  13947. --- *** . ***
  13948. --- ************************************************
  13949. ---
  13950. CREATE VIEW leucoplast_chromosome AS
  13951. SELECT
  13952. feature_id AS leucoplast_chromosome_id,
  13953. feature.*
  13954. FROM
  13955. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13956. WHERE cvterm.name = 'leucoplast_chromosome';
  13957. --- ************************************************
  13958. --- *** relation: macronuclear_chromosome ***
  13959. --- *** relation type: VIEW ***
  13960. --- *** ***
  13961. --- *** A chromosome originating in a macronucle ***
  13962. --- *** us. ***
  13963. --- ************************************************
  13964. ---
  13965. CREATE VIEW macronuclear_chromosome AS
  13966. SELECT
  13967. feature_id AS macronuclear_chromosome_id,
  13968. feature.*
  13969. FROM
  13970. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13971. WHERE cvterm.name = 'macronuclear_chromosome';
  13972. --- ************************************************
  13973. --- *** relation: micronuclear_chromosome ***
  13974. --- *** relation type: VIEW ***
  13975. --- *** ***
  13976. --- *** A chromosome originating in a micronucle ***
  13977. --- *** us. ***
  13978. --- ************************************************
  13979. ---
  13980. CREATE VIEW micronuclear_chromosome AS
  13981. SELECT
  13982. feature_id AS micronuclear_chromosome_id,
  13983. feature.*
  13984. FROM
  13985. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13986. WHERE cvterm.name = 'micronuclear_chromosome';
  13987. --- ************************************************
  13988. --- *** relation: nuclear_chromosome ***
  13989. --- *** relation type: VIEW ***
  13990. --- *** ***
  13991. --- *** A chromosome originating in a nucleus. ***
  13992. --- ************************************************
  13993. ---
  13994. CREATE VIEW nuclear_chromosome AS
  13995. SELECT
  13996. feature_id AS nuclear_chromosome_id,
  13997. feature.*
  13998. FROM
  13999. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14000. WHERE cvterm.name = 'nuclear_chromosome';
  14001. --- ************************************************
  14002. --- *** relation: nucleomorphic_chromosome ***
  14003. --- *** relation type: VIEW ***
  14004. --- *** ***
  14005. --- *** A chromosome originating in a nucleomorp ***
  14006. --- *** h. ***
  14007. --- ************************************************
  14008. ---
  14009. CREATE VIEW nucleomorphic_chromosome AS
  14010. SELECT
  14011. feature_id AS nucleomorphic_chromosome_id,
  14012. feature.*
  14013. FROM
  14014. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14015. WHERE cvterm.name = 'nucleomorphic_chromosome';
  14016. --- ************************************************
  14017. --- *** relation: chromosome_part ***
  14018. --- *** relation type: VIEW ***
  14019. --- *** ***
  14020. --- *** A region of a chromosome. ***
  14021. --- ************************************************
  14022. ---
  14023. CREATE VIEW chromosome_part AS
  14024. SELECT
  14025. feature_id AS chromosome_part_id,
  14026. feature.*
  14027. FROM
  14028. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14029. 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';
  14030. --- ************************************************
  14031. --- *** relation: gene_member_region ***
  14032. --- *** relation type: VIEW ***
  14033. --- *** ***
  14034. --- *** A region of a gene. ***
  14035. --- ************************************************
  14036. ---
  14037. CREATE VIEW gene_member_region AS
  14038. SELECT
  14039. feature_id AS gene_member_region_id,
  14040. feature.*
  14041. FROM
  14042. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14043. 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';
  14044. --- ************************************************
  14045. --- *** relation: transcript_region ***
  14046. --- *** relation type: VIEW ***
  14047. --- *** ***
  14048. --- *** A region of a transcript. ***
  14049. --- ************************************************
  14050. ---
  14051. CREATE VIEW transcript_region AS
  14052. SELECT
  14053. feature_id AS transcript_region_id,
  14054. feature.*
  14055. FROM
  14056. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14057. 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';
  14058. --- ************************************************
  14059. --- *** relation: mature_transcript_region ***
  14060. --- *** relation type: VIEW ***
  14061. --- *** ***
  14062. --- *** A region of a mature transcript. ***
  14063. --- ************************************************
  14064. ---
  14065. CREATE VIEW mature_transcript_region AS
  14066. SELECT
  14067. feature_id AS mature_transcript_region_id,
  14068. feature.*
  14069. FROM
  14070. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14071. 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';
  14072. --- ************************************************
  14073. --- *** relation: primary_transcript_region ***
  14074. --- *** relation type: VIEW ***
  14075. --- *** ***
  14076. --- *** A part of a primary transcript. ***
  14077. --- ************************************************
  14078. ---
  14079. CREATE VIEW primary_transcript_region AS
  14080. SELECT
  14081. feature_id AS primary_transcript_region_id,
  14082. feature.*
  14083. FROM
  14084. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14085. 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';
  14086. --- ************************************************
  14087. --- *** relation: mrna_region ***
  14088. --- *** relation type: VIEW ***
  14089. --- *** ***
  14090. --- *** A region of an mRNA. ***
  14091. --- ************************************************
  14092. ---
  14093. CREATE VIEW mrna_region AS
  14094. SELECT
  14095. feature_id AS mrna_region_id,
  14096. feature.*
  14097. FROM
  14098. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14099. 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';
  14100. --- ************************************************
  14101. --- *** relation: utr_region ***
  14102. --- *** relation type: VIEW ***
  14103. --- *** ***
  14104. --- *** A region of UTR. ***
  14105. --- ************************************************
  14106. ---
  14107. CREATE VIEW utr_region AS
  14108. SELECT
  14109. feature_id AS utr_region_id,
  14110. feature.*
  14111. FROM
  14112. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14113. 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';
  14114. --- ************************************************
  14115. --- *** relation: rrna_primary_transcript_region ***
  14116. --- *** relation type: VIEW ***
  14117. --- *** ***
  14118. --- *** A region of an rRNA primary transcript. ***
  14119. --- ************************************************
  14120. ---
  14121. CREATE VIEW rrna_primary_transcript_region AS
  14122. SELECT
  14123. feature_id AS rrna_primary_transcript_region_id,
  14124. feature.*
  14125. FROM
  14126. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14127. 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';
  14128. --- ************************************************
  14129. --- *** relation: polypeptide_region ***
  14130. --- *** relation type: VIEW ***
  14131. --- *** ***
  14132. --- *** Biological sequence region that can be a ***
  14133. --- *** ssigned to a specific subsequence of a p ***
  14134. --- *** olypeptide. ***
  14135. --- ************************************************
  14136. ---
  14137. CREATE VIEW polypeptide_region AS
  14138. SELECT
  14139. feature_id AS polypeptide_region_id,
  14140. feature.*
  14141. FROM
  14142. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14143. 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';
  14144. --- ************************************************
  14145. --- *** relation: repeat_component ***
  14146. --- *** relation type: VIEW ***
  14147. --- *** ***
  14148. --- *** A region of a repeated sequence. ***
  14149. --- ************************************************
  14150. ---
  14151. CREATE VIEW repeat_component AS
  14152. SELECT
  14153. feature_id AS repeat_component_id,
  14154. feature.*
  14155. FROM
  14156. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14157. 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';
  14158. --- ************************************************
  14159. --- *** relation: spliceosomal_intron_region ***
  14160. --- *** relation type: VIEW ***
  14161. --- *** ***
  14162. --- *** A region within an intron. ***
  14163. --- ************************************************
  14164. ---
  14165. CREATE VIEW spliceosomal_intron_region AS
  14166. SELECT
  14167. feature_id AS spliceosomal_intron_region_id,
  14168. feature.*
  14169. FROM
  14170. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14171. WHERE cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'branch_site' OR cvterm.name = 'polypyrimidine_tract' OR cvterm.name = 'spliceosomal_intron_region';
  14172. --- ************************************************
  14173. --- *** relation: gene_component_region ***
  14174. --- *** relation type: VIEW ***
  14175. --- *** ***
  14176. --- ************************************************
  14177. ---
  14178. CREATE VIEW gene_component_region AS
  14179. SELECT
  14180. feature_id AS gene_component_region_id,
  14181. feature.*
  14182. FROM
  14183. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14184. 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';
  14185. --- ************************************************
  14186. --- *** relation: tmrna_region ***
  14187. --- *** relation type: VIEW ***
  14188. --- *** ***
  14189. --- *** A region of a tmRNA. ***
  14190. --- ************************************************
  14191. ---
  14192. CREATE VIEW tmrna_region AS
  14193. SELECT
  14194. feature_id AS tmrna_region_id,
  14195. feature.*
  14196. FROM
  14197. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14198. WHERE cvterm.name = 'tmRNA_coding_piece' OR cvterm.name = 'tmRNA_acceptor_piece' OR cvterm.name = 'tmRNA_region';
  14199. --- ************************************************
  14200. --- *** relation: ltr_component ***
  14201. --- *** relation type: VIEW ***
  14202. --- *** ***
  14203. --- ************************************************
  14204. ---
  14205. CREATE VIEW ltr_component AS
  14206. SELECT
  14207. feature_id AS ltr_component_id,
  14208. feature.*
  14209. FROM
  14210. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14211. 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';
  14212. --- ************************************************
  14213. --- *** relation: three_prime_ltr_component ***
  14214. --- *** relation type: VIEW ***
  14215. --- *** ***
  14216. --- ************************************************
  14217. ---
  14218. CREATE VIEW three_prime_ltr_component AS
  14219. SELECT
  14220. feature_id AS three_prime_ltr_component_id,
  14221. feature.*
  14222. FROM
  14223. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14224. 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';
  14225. --- ************************************************
  14226. --- *** relation: five_prime_ltr_component ***
  14227. --- *** relation type: VIEW ***
  14228. --- *** ***
  14229. --- ************************************************
  14230. ---
  14231. CREATE VIEW five_prime_ltr_component AS
  14232. SELECT
  14233. feature_id AS five_prime_ltr_component_id,
  14234. feature.*
  14235. FROM
  14236. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14237. 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';
  14238. --- ************************************************
  14239. --- *** relation: cds_region ***
  14240. --- *** relation type: VIEW ***
  14241. --- *** ***
  14242. --- *** A region of a CDS. ***
  14243. --- ************************************************
  14244. ---
  14245. CREATE VIEW cds_region AS
  14246. SELECT
  14247. feature_id AS cds_region_id,
  14248. feature.*
  14249. FROM
  14250. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14251. WHERE cvterm.name = 'coding_start' OR cvterm.name = 'coding_end' OR cvterm.name = 'CDS_region';
  14252. --- ************************************************
  14253. --- *** relation: exon_region ***
  14254. --- *** relation type: VIEW ***
  14255. --- *** ***
  14256. --- *** A region of an exon. ***
  14257. --- ************************************************
  14258. ---
  14259. CREATE VIEW exon_region AS
  14260. SELECT
  14261. feature_id AS exon_region_id,
  14262. feature.*
  14263. FROM
  14264. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14265. 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';
  14266. --- ************************************************
  14267. --- *** relation: homologous_region ***
  14268. --- *** relation type: VIEW ***
  14269. --- *** ***
  14270. --- *** A region that is homologous to another r ***
  14271. --- *** egion. ***
  14272. --- ************************************************
  14273. ---
  14274. CREATE VIEW homologous_region AS
  14275. SELECT
  14276. feature_id AS homologous_region_id,
  14277. feature.*
  14278. FROM
  14279. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14280. WHERE cvterm.name = 'paralogous_region' OR cvterm.name = 'orthologous_region' OR cvterm.name = 'homologous_region';
  14281. --- ************************************************
  14282. --- *** relation: paralogous_region ***
  14283. --- *** relation type: VIEW ***
  14284. --- *** ***
  14285. --- *** A homologous_region that is paralogous t ***
  14286. --- *** o another region. ***
  14287. --- ************************************************
  14288. ---
  14289. CREATE VIEW paralogous_region AS
  14290. SELECT
  14291. feature_id AS paralogous_region_id,
  14292. feature.*
  14293. FROM
  14294. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14295. WHERE cvterm.name = 'paralogous_region';
  14296. --- ************************************************
  14297. --- *** relation: orthologous_region ***
  14298. --- *** relation type: VIEW ***
  14299. --- *** ***
  14300. --- *** A homologous_region that is orthologous ***
  14301. --- *** to another region. ***
  14302. --- ************************************************
  14303. ---
  14304. CREATE VIEW orthologous_region AS
  14305. SELECT
  14306. feature_id AS orthologous_region_id,
  14307. feature.*
  14308. FROM
  14309. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14310. WHERE cvterm.name = 'orthologous_region';
  14311. --- ************************************************
  14312. --- *** relation: conserved ***
  14313. --- *** relation type: VIEW ***
  14314. --- *** ***
  14315. --- ************************************************
  14316. ---
  14317. CREATE VIEW conserved AS
  14318. SELECT
  14319. feature_id AS conserved_id,
  14320. feature.*
  14321. FROM
  14322. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14323. WHERE cvterm.name = 'homologous' OR cvterm.name = 'syntenic' OR cvterm.name = 'orthologous' OR cvterm.name = 'paralogous' OR cvterm.name = 'conserved';
  14324. --- ************************************************
  14325. --- *** relation: homologous ***
  14326. --- *** relation type: VIEW ***
  14327. --- *** ***
  14328. --- *** Similarity due to common ancestry. ***
  14329. --- ************************************************
  14330. ---
  14331. CREATE VIEW homologous AS
  14332. SELECT
  14333. feature_id AS homologous_id,
  14334. feature.*
  14335. FROM
  14336. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14337. WHERE cvterm.name = 'orthologous' OR cvterm.name = 'paralogous' OR cvterm.name = 'homologous';
  14338. --- ************************************************
  14339. --- *** relation: orthologous ***
  14340. --- *** relation type: VIEW ***
  14341. --- *** ***
  14342. --- *** An attribute describing a kind of homolo ***
  14343. --- *** gy where divergence occured after a spec ***
  14344. --- *** iation event. ***
  14345. --- ************************************************
  14346. ---
  14347. CREATE VIEW orthologous AS
  14348. SELECT
  14349. feature_id AS orthologous_id,
  14350. feature.*
  14351. FROM
  14352. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14353. WHERE cvterm.name = 'orthologous';
  14354. --- ************************************************
  14355. --- *** relation: paralogous ***
  14356. --- *** relation type: VIEW ***
  14357. --- *** ***
  14358. --- *** An attribute describing a kind of homolo ***
  14359. --- *** gy where divergence occurred after a dup ***
  14360. --- *** lication event. ***
  14361. --- ************************************************
  14362. ---
  14363. CREATE VIEW paralogous AS
  14364. SELECT
  14365. feature_id AS paralogous_id,
  14366. feature.*
  14367. FROM
  14368. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14369. WHERE cvterm.name = 'paralogous';
  14370. --- ************************************************
  14371. --- *** relation: syntenic ***
  14372. --- *** relation type: VIEW ***
  14373. --- *** ***
  14374. --- *** Attribute describing sequence regions oc ***
  14375. --- *** curring in same order on chromosome of d ***
  14376. --- *** ifferent species. ***
  14377. --- ************************************************
  14378. ---
  14379. CREATE VIEW syntenic AS
  14380. SELECT
  14381. feature_id AS syntenic_id,
  14382. feature.*
  14383. FROM
  14384. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14385. WHERE cvterm.name = 'syntenic';
  14386. --- ************************************************
  14387. --- *** relation: capped_primary_transcript ***
  14388. --- *** relation type: VIEW ***
  14389. --- *** ***
  14390. --- *** A primary transcript that is capped. ***
  14391. --- ************************************************
  14392. ---
  14393. CREATE VIEW capped_primary_transcript AS
  14394. SELECT
  14395. feature_id AS capped_primary_transcript_id,
  14396. feature.*
  14397. FROM
  14398. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14399. WHERE cvterm.name = 'capped_primary_transcript';
  14400. --- ************************************************
  14401. --- *** relation: capped_mrna ***
  14402. --- *** relation type: VIEW ***
  14403. --- *** ***
  14404. --- *** An mRNA that is capped. ***
  14405. --- ************************************************
  14406. ---
  14407. CREATE VIEW capped_mrna AS
  14408. SELECT
  14409. feature_id AS capped_mrna_id,
  14410. feature.*
  14411. FROM
  14412. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14413. WHERE cvterm.name = 'capped_mRNA';
  14414. --- ************************************************
  14415. --- *** relation: mrna_attribute ***
  14416. --- *** relation type: VIEW ***
  14417. --- *** ***
  14418. --- *** An attribute describing an mRNA feature. ***
  14419. --- ************************************************
  14420. ---
  14421. CREATE VIEW mrna_attribute AS
  14422. SELECT
  14423. feature_id AS mrna_attribute_id,
  14424. feature.*
  14425. FROM
  14426. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14427. 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';
  14428. --- ************************************************
  14429. --- *** relation: exemplar ***
  14430. --- *** relation type: VIEW ***
  14431. --- *** ***
  14432. --- *** An attribute describing a sequence is re ***
  14433. --- *** presentative of a class of similar seque ***
  14434. --- *** nces. ***
  14435. --- ************************************************
  14436. ---
  14437. CREATE VIEW exemplar AS
  14438. SELECT
  14439. feature_id AS exemplar_id,
  14440. feature.*
  14441. FROM
  14442. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14443. WHERE cvterm.name = 'exemplar';
  14444. --- ************************************************
  14445. --- *** relation: frameshift ***
  14446. --- *** relation type: VIEW ***
  14447. --- *** ***
  14448. --- *** An attribute describing a sequence that ***
  14449. --- *** contains a mutation involving the deleti ***
  14450. --- *** on or insertion of one or more bases, wh ***
  14451. --- *** ere this number is not divisible by 3. ***
  14452. --- ************************************************
  14453. ---
  14454. CREATE VIEW frameshift AS
  14455. SELECT
  14456. feature_id AS frameshift_id,
  14457. feature.*
  14458. FROM
  14459. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14460. 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';
  14461. --- ************************************************
  14462. --- *** relation: minus_1_frameshift ***
  14463. --- *** relation type: VIEW ***
  14464. --- *** ***
  14465. --- *** A frameshift caused by deleting one base ***
  14466. --- *** . ***
  14467. --- ************************************************
  14468. ---
  14469. CREATE VIEW minus_1_frameshift AS
  14470. SELECT
  14471. feature_id AS minus_1_frameshift_id,
  14472. feature.*
  14473. FROM
  14474. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14475. WHERE cvterm.name = 'minus_1_frameshift';
  14476. --- ************************************************
  14477. --- *** relation: minus_2_frameshift ***
  14478. --- *** relation type: VIEW ***
  14479. --- *** ***
  14480. --- *** A frameshift caused by deleting two base ***
  14481. --- *** s. ***
  14482. --- ************************************************
  14483. ---
  14484. CREATE VIEW minus_2_frameshift AS
  14485. SELECT
  14486. feature_id AS minus_2_frameshift_id,
  14487. feature.*
  14488. FROM
  14489. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14490. WHERE cvterm.name = 'minus_2_frameshift';
  14491. --- ************************************************
  14492. --- *** relation: plus_1_frameshift ***
  14493. --- *** relation type: VIEW ***
  14494. --- *** ***
  14495. --- *** A frameshift caused by inserting one bas ***
  14496. --- *** e. ***
  14497. --- ************************************************
  14498. ---
  14499. CREATE VIEW plus_1_frameshift AS
  14500. SELECT
  14501. feature_id AS plus_1_frameshift_id,
  14502. feature.*
  14503. FROM
  14504. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14505. WHERE cvterm.name = 'plus_1_frameshift';
  14506. --- ************************************************
  14507. --- *** relation: plus_2_framshift ***
  14508. --- *** relation type: VIEW ***
  14509. --- *** ***
  14510. --- *** A frameshift caused by inserting two bas ***
  14511. --- *** es. ***
  14512. --- ************************************************
  14513. ---
  14514. CREATE VIEW plus_2_framshift AS
  14515. SELECT
  14516. feature_id AS plus_2_framshift_id,
  14517. feature.*
  14518. FROM
  14519. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14520. WHERE cvterm.name = 'plus_2_framshift';
  14521. --- ************************************************
  14522. --- *** relation: trans_spliced ***
  14523. --- *** relation type: VIEW ***
  14524. --- *** ***
  14525. --- *** An attribute describing transcript seque ***
  14526. --- *** nce that is created by splicing exons fr ***
  14527. --- *** om diferent genes. ***
  14528. --- ************************************************
  14529. ---
  14530. CREATE VIEW trans_spliced AS
  14531. SELECT
  14532. feature_id AS trans_spliced_id,
  14533. feature.*
  14534. FROM
  14535. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14536. WHERE cvterm.name = 'trans_spliced';
  14537. --- ************************************************
  14538. --- *** relation: polyadenylated_mrna ***
  14539. --- *** relation type: VIEW ***
  14540. --- *** ***
  14541. --- *** An mRNA that is polyadenylated. ***
  14542. --- ************************************************
  14543. ---
  14544. CREATE VIEW polyadenylated_mrna AS
  14545. SELECT
  14546. feature_id AS polyadenylated_mrna_id,
  14547. feature.*
  14548. FROM
  14549. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14550. WHERE cvterm.name = 'polyadenylated_mRNA';
  14551. --- ************************************************
  14552. --- *** relation: trans_spliced_mrna ***
  14553. --- *** relation type: VIEW ***
  14554. --- *** ***
  14555. --- *** An mRNA that is trans-spliced. ***
  14556. --- ************************************************
  14557. ---
  14558. CREATE VIEW trans_spliced_mrna AS
  14559. SELECT
  14560. feature_id AS trans_spliced_mrna_id,
  14561. feature.*
  14562. FROM
  14563. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14564. WHERE cvterm.name = 'trans_spliced_mRNA';
  14565. --- ************************************************
  14566. --- *** relation: edited_transcript ***
  14567. --- *** relation type: VIEW ***
  14568. --- *** ***
  14569. --- *** A transcript that is edited. ***
  14570. --- ************************************************
  14571. ---
  14572. CREATE VIEW edited_transcript AS
  14573. SELECT
  14574. feature_id AS edited_transcript_id,
  14575. feature.*
  14576. FROM
  14577. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14578. 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';
  14579. --- ************************************************
  14580. --- *** relation: edited_transcript_by_a_to_i_substitution ***
  14581. --- *** relation type: VIEW ***
  14582. --- *** ***
  14583. --- *** A transcript that has been edited by A t ***
  14584. --- *** o I substitution. ***
  14585. --- ************************************************
  14586. ---
  14587. CREATE VIEW edited_transcript_by_a_to_i_substitution AS
  14588. SELECT
  14589. feature_id AS edited_transcript_by_a_to_i_substitution_id,
  14590. feature.*
  14591. FROM
  14592. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14593. WHERE cvterm.name = 'edited_transcript_by_A_to_I_substitution';
  14594. --- ************************************************
  14595. --- *** relation: bound_by_protein ***
  14596. --- *** relation type: VIEW ***
  14597. --- *** ***
  14598. --- *** An attribute describing a sequence that ***
  14599. --- *** is bound by a protein. ***
  14600. --- ************************************************
  14601. ---
  14602. CREATE VIEW bound_by_protein AS
  14603. SELECT
  14604. feature_id AS bound_by_protein_id,
  14605. feature.*
  14606. FROM
  14607. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14608. WHERE cvterm.name = 'bound_by_protein';
  14609. --- ************************************************
  14610. --- *** relation: bound_by_nucleic_acid ***
  14611. --- *** relation type: VIEW ***
  14612. --- *** ***
  14613. --- *** An attribute describing a sequence that ***
  14614. --- *** is bound by a nucleic acid. ***
  14615. --- ************************************************
  14616. ---
  14617. CREATE VIEW bound_by_nucleic_acid AS
  14618. SELECT
  14619. feature_id AS bound_by_nucleic_acid_id,
  14620. feature.*
  14621. FROM
  14622. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14623. WHERE cvterm.name = 'bound_by_nucleic_acid';
  14624. --- ************************************************
  14625. --- *** relation: alternatively_spliced ***
  14626. --- *** relation type: VIEW ***
  14627. --- *** ***
  14628. --- *** An attribute describing a situation wher ***
  14629. --- *** e a gene may encode for more than 1 tran ***
  14630. --- *** script. ***
  14631. --- ************************************************
  14632. ---
  14633. CREATE VIEW alternatively_spliced AS
  14634. SELECT
  14635. feature_id AS alternatively_spliced_id,
  14636. feature.*
  14637. FROM
  14638. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14639. WHERE cvterm.name = 'alternatively_spliced';
  14640. --- ************************************************
  14641. --- *** relation: monocistronic ***
  14642. --- *** relation type: VIEW ***
  14643. --- *** ***
  14644. --- *** An attribute describing a sequence that ***
  14645. --- *** contains the code for one gene product. ***
  14646. --- ************************************************
  14647. ---
  14648. CREATE VIEW monocistronic AS
  14649. SELECT
  14650. feature_id AS monocistronic_id,
  14651. feature.*
  14652. FROM
  14653. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14654. WHERE cvterm.name = 'monocistronic';
  14655. --- ************************************************
  14656. --- *** relation: dicistronic ***
  14657. --- *** relation type: VIEW ***
  14658. --- *** ***
  14659. --- *** An attribute describing a sequence that ***
  14660. --- *** contains the code for two gene products. ***
  14661. --- ************************************************
  14662. ---
  14663. CREATE VIEW dicistronic AS
  14664. SELECT
  14665. feature_id AS dicistronic_id,
  14666. feature.*
  14667. FROM
  14668. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14669. WHERE cvterm.name = 'dicistronic';
  14670. --- ************************************************
  14671. --- *** relation: polycistronic ***
  14672. --- *** relation type: VIEW ***
  14673. --- *** ***
  14674. --- *** An attribute describing a sequence that ***
  14675. --- *** contains the code for more than one gene ***
  14676. --- *** product. ***
  14677. --- ************************************************
  14678. ---
  14679. CREATE VIEW polycistronic AS
  14680. SELECT
  14681. feature_id AS polycistronic_id,
  14682. feature.*
  14683. FROM
  14684. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14685. WHERE cvterm.name = 'dicistronic' OR cvterm.name = 'polycistronic';
  14686. --- ************************************************
  14687. --- *** relation: recoded ***
  14688. --- *** relation type: VIEW ***
  14689. --- *** ***
  14690. --- *** An attribute describing an mRNA sequence ***
  14691. --- *** that has been reprogrammed at translati ***
  14692. --- *** on, causing localized alterations. ***
  14693. --- ************************************************
  14694. ---
  14695. CREATE VIEW recoded AS
  14696. SELECT
  14697. feature_id AS recoded_id,
  14698. feature.*
  14699. FROM
  14700. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14701. 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';
  14702. --- ************************************************
  14703. --- *** relation: codon_redefined ***
  14704. --- *** relation type: VIEW ***
  14705. --- *** ***
  14706. --- *** An attribute describing the alteration o ***
  14707. --- *** f codon meaning. ***
  14708. --- ************************************************
  14709. ---
  14710. CREATE VIEW codon_redefined AS
  14711. SELECT
  14712. feature_id AS codon_redefined_id,
  14713. feature.*
  14714. FROM
  14715. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14716. WHERE cvterm.name = 'codon_redefined';
  14717. --- ************************************************
  14718. --- *** relation: stop_codon_read_through ***
  14719. --- *** relation type: VIEW ***
  14720. --- *** ***
  14721. --- *** A stop codon redefined to be a new amino ***
  14722. --- *** acid. ***
  14723. --- ************************************************
  14724. ---
  14725. CREATE VIEW stop_codon_read_through AS
  14726. SELECT
  14727. feature_id AS stop_codon_read_through_id,
  14728. feature.*
  14729. FROM
  14730. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14731. WHERE cvterm.name = 'stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'stop_codon_read_through';
  14732. --- ************************************************
  14733. --- *** relation: stop_codon_redefined_as_pyrrolysine ***
  14734. --- *** relation type: VIEW ***
  14735. --- *** ***
  14736. --- *** A stop codon redefined to be the new ami ***
  14737. --- *** no acid, pyrrolysine. ***
  14738. --- ************************************************
  14739. ---
  14740. CREATE VIEW stop_codon_redefined_as_pyrrolysine AS
  14741. SELECT
  14742. feature_id AS stop_codon_redefined_as_pyrrolysine_id,
  14743. feature.*
  14744. FROM
  14745. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14746. WHERE cvterm.name = 'stop_codon_redefined_as_pyrrolysine';
  14747. --- ************************************************
  14748. --- *** relation: stop_codon_redefined_as_selenocysteine ***
  14749. --- *** relation type: VIEW ***
  14750. --- *** ***
  14751. --- *** A stop codon redefined to be the new ami ***
  14752. --- *** no acid, selenocysteine. ***
  14753. --- ************************************************
  14754. ---
  14755. CREATE VIEW stop_codon_redefined_as_selenocysteine AS
  14756. SELECT
  14757. feature_id AS stop_codon_redefined_as_selenocysteine_id,
  14758. feature.*
  14759. FROM
  14760. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14761. WHERE cvterm.name = 'stop_codon_redefined_as_selenocysteine';
  14762. --- ************************************************
  14763. --- *** relation: recoded_by_translational_bypass ***
  14764. --- *** relation type: VIEW ***
  14765. --- *** ***
  14766. --- *** Recoded mRNA where a block of nucleotide ***
  14767. --- *** s is not translated. ***
  14768. --- ************************************************
  14769. ---
  14770. CREATE VIEW recoded_by_translational_bypass AS
  14771. SELECT
  14772. feature_id AS recoded_by_translational_bypass_id,
  14773. feature.*
  14774. FROM
  14775. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14776. WHERE cvterm.name = 'recoded_by_translational_bypass';
  14777. --- ************************************************
  14778. --- *** relation: translationally_frameshifted ***
  14779. --- *** relation type: VIEW ***
  14780. --- *** ***
  14781. --- *** Recoding by frameshifting a particular s ***
  14782. --- *** ite. ***
  14783. --- ************************************************
  14784. ---
  14785. CREATE VIEW translationally_frameshifted AS
  14786. SELECT
  14787. feature_id AS translationally_frameshifted_id,
  14788. feature.*
  14789. FROM
  14790. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14791. WHERE cvterm.name = 'minus_1_translationally_frameshifted' OR cvterm.name = 'plus_1_translationally_frameshifted' OR cvterm.name = 'translationally_frameshifted';
  14792. --- ************************************************
  14793. --- *** relation: maternally_imprinted_gene ***
  14794. --- *** relation type: VIEW ***
  14795. --- *** ***
  14796. --- *** A gene that is maternally_imprinted. ***
  14797. --- ************************************************
  14798. ---
  14799. CREATE VIEW maternally_imprinted_gene AS
  14800. SELECT
  14801. feature_id AS maternally_imprinted_gene_id,
  14802. feature.*
  14803. FROM
  14804. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14805. WHERE cvterm.name = 'maternally_imprinted_gene';
  14806. --- ************************************************
  14807. --- *** relation: paternally_imprinted_gene ***
  14808. --- *** relation type: VIEW ***
  14809. --- *** ***
  14810. --- *** A gene that is paternally imprinted. ***
  14811. --- ************************************************
  14812. ---
  14813. CREATE VIEW paternally_imprinted_gene AS
  14814. SELECT
  14815. feature_id AS paternally_imprinted_gene_id,
  14816. feature.*
  14817. FROM
  14818. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14819. WHERE cvterm.name = 'paternally_imprinted_gene';
  14820. --- ************************************************
  14821. --- *** relation: post_translationally_regulated_gene ***
  14822. --- *** relation type: VIEW ***
  14823. --- *** ***
  14824. --- *** A gene that is post translationally regu ***
  14825. --- *** lated. ***
  14826. --- ************************************************
  14827. ---
  14828. CREATE VIEW post_translationally_regulated_gene AS
  14829. SELECT
  14830. feature_id AS post_translationally_regulated_gene_id,
  14831. feature.*
  14832. FROM
  14833. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14834. WHERE cvterm.name = 'post_translationally_regulated_gene';
  14835. --- ************************************************
  14836. --- *** relation: negatively_autoregulated_gene ***
  14837. --- *** relation type: VIEW ***
  14838. --- *** ***
  14839. --- *** A gene that is negatively autoreguated. ***
  14840. --- ************************************************
  14841. ---
  14842. CREATE VIEW negatively_autoregulated_gene AS
  14843. SELECT
  14844. feature_id AS negatively_autoregulated_gene_id,
  14845. feature.*
  14846. FROM
  14847. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14848. WHERE cvterm.name = 'negatively_autoregulated_gene';
  14849. --- ************************************************
  14850. --- *** relation: positively_autoregulated_gene ***
  14851. --- *** relation type: VIEW ***
  14852. --- *** ***
  14853. --- *** A gene that is positively autoregulated. ***
  14854. --- ************************************************
  14855. ---
  14856. CREATE VIEW positively_autoregulated_gene AS
  14857. SELECT
  14858. feature_id AS positively_autoregulated_gene_id,
  14859. feature.*
  14860. FROM
  14861. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14862. WHERE cvterm.name = 'positively_autoregulated_gene';
  14863. --- ************************************************
  14864. --- *** relation: silenced ***
  14865. --- *** relation type: VIEW ***
  14866. --- *** ***
  14867. --- *** An attribute describing an epigenetic pr ***
  14868. --- *** ocess where a gene is inactivated at tra ***
  14869. --- *** nscriptional or translational level. ***
  14870. --- ************************************************
  14871. ---
  14872. CREATE VIEW silenced AS
  14873. SELECT
  14874. feature_id AS silenced_id,
  14875. feature.*
  14876. FROM
  14877. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14878. 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';
  14879. --- ************************************************
  14880. --- *** relation: silenced_by_dna_modification ***
  14881. --- *** relation type: VIEW ***
  14882. --- *** ***
  14883. --- *** An attribute describing an epigenetic pr ***
  14884. --- *** ocess where a gene is inactivated by DNA ***
  14885. --- *** modifications, resulting in repression ***
  14886. --- *** of transcription. ***
  14887. --- ************************************************
  14888. ---
  14889. CREATE VIEW silenced_by_dna_modification AS
  14890. SELECT
  14891. feature_id AS silenced_by_dna_modification_id,
  14892. feature.*
  14893. FROM
  14894. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14895. WHERE cvterm.name = 'silenced_by_DNA_methylation' OR cvterm.name = 'silenced_by_DNA_modification';
  14896. --- ************************************************
  14897. --- *** relation: silenced_by_dna_methylation ***
  14898. --- *** relation type: VIEW ***
  14899. --- *** ***
  14900. --- *** An attribute describing an epigenetic pr ***
  14901. --- *** ocess where a gene is inactivated by DNA ***
  14902. --- *** methylation, resulting in repression of ***
  14903. --- *** transcription. ***
  14904. --- ************************************************
  14905. ---
  14906. CREATE VIEW silenced_by_dna_methylation AS
  14907. SELECT
  14908. feature_id AS silenced_by_dna_methylation_id,
  14909. feature.*
  14910. FROM
  14911. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14912. WHERE cvterm.name = 'silenced_by_DNA_methylation';
  14913. --- ************************************************
  14914. --- *** relation: translationally_regulated_gene ***
  14915. --- *** relation type: VIEW ***
  14916. --- *** ***
  14917. --- *** A gene that is translationally regulated ***
  14918. --- *** . ***
  14919. --- ************************************************
  14920. ---
  14921. CREATE VIEW translationally_regulated_gene AS
  14922. SELECT
  14923. feature_id AS translationally_regulated_gene_id,
  14924. feature.*
  14925. FROM
  14926. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14927. WHERE cvterm.name = 'translationally_regulated_gene';
  14928. --- ************************************************
  14929. --- *** relation: allelically_excluded_gene ***
  14930. --- *** relation type: VIEW ***
  14931. --- *** ***
  14932. --- *** A gene that is allelically_excluded. ***
  14933. --- ************************************************
  14934. ---
  14935. CREATE VIEW allelically_excluded_gene AS
  14936. SELECT
  14937. feature_id AS allelically_excluded_gene_id,
  14938. feature.*
  14939. FROM
  14940. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14941. WHERE cvterm.name = 'allelically_excluded_gene';
  14942. --- ************************************************
  14943. --- *** relation: epigenetically_modified_gene ***
  14944. --- *** relation type: VIEW ***
  14945. --- *** ***
  14946. --- *** A gene that is epigenetically modified. ***
  14947. --- ************************************************
  14948. ---
  14949. CREATE VIEW epigenetically_modified_gene AS
  14950. SELECT
  14951. feature_id AS epigenetically_modified_gene_id,
  14952. feature.*
  14953. FROM
  14954. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14955. 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';
  14956. --- ************************************************
  14957. --- *** relation: transgene ***
  14958. --- *** relation type: VIEW ***
  14959. --- *** ***
  14960. --- *** A gene that is transgenic. ***
  14961. --- ************************************************
  14962. ---
  14963. CREATE VIEW transgene AS
  14964. SELECT
  14965. feature_id AS transgene_id,
  14966. feature.*
  14967. FROM
  14968. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14969. WHERE cvterm.name = 'floxed_gene' OR cvterm.name = 'transgene';
  14970. --- ************************************************
  14971. --- *** relation: endogenous_retroviral_sequence ***
  14972. --- *** relation type: VIEW ***
  14973. --- *** ***
  14974. --- ************************************************
  14975. ---
  14976. CREATE VIEW endogenous_retroviral_sequence AS
  14977. SELECT
  14978. feature_id AS endogenous_retroviral_sequence_id,
  14979. feature.*
  14980. FROM
  14981. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14982. WHERE cvterm.name = 'endogenous_retroviral_sequence';
  14983. --- ************************************************
  14984. --- *** relation: rearranged_at_dna_level ***
  14985. --- *** relation type: VIEW ***
  14986. --- *** ***
  14987. --- *** An attribute to describe the sequence of ***
  14988. --- *** a feature, where the DNA is rearranged. ***
  14989. --- ************************************************
  14990. ---
  14991. CREATE VIEW rearranged_at_dna_level AS
  14992. SELECT
  14993. feature_id AS rearranged_at_dna_level_id,
  14994. feature.*
  14995. FROM
  14996. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14997. WHERE cvterm.name = 'rearranged_at_DNA_level';
  14998. --- ************************************************
  14999. --- *** relation: status ***
  15000. --- *** relation type: VIEW ***
  15001. --- *** ***
  15002. --- *** An attribute describing the status of a ***
  15003. --- *** feature, based on the available evidence ***
  15004. --- *** . ***
  15005. --- ************************************************
  15006. ---
  15007. CREATE VIEW status AS
  15008. SELECT
  15009. feature_id AS status_id,
  15010. feature.*
  15011. FROM
  15012. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15013. 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';
  15014. --- ************************************************
  15015. --- *** relation: independently_known ***
  15016. --- *** relation type: VIEW ***
  15017. --- *** ***
  15018. --- *** Attribute to describe a feature that is ***
  15019. --- *** independently known - not predicted. ***
  15020. --- ************************************************
  15021. ---
  15022. CREATE VIEW independently_known AS
  15023. SELECT
  15024. feature_id AS independently_known_id,
  15025. feature.*
  15026. FROM
  15027. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15028. WHERE cvterm.name = 'independently_known';
  15029. --- ************************************************
  15030. --- *** relation: supported_by_sequence_similarity ***
  15031. --- *** relation type: VIEW ***
  15032. --- *** ***
  15033. --- *** An attribute to describe a feature that ***
  15034. --- *** has been predicted using sequence simila ***
  15035. --- *** rity techniques. ***
  15036. --- ************************************************
  15037. ---
  15038. CREATE VIEW supported_by_sequence_similarity AS
  15039. SELECT
  15040. feature_id AS supported_by_sequence_similarity_id,
  15041. feature.*
  15042. FROM
  15043. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15044. WHERE cvterm.name = 'supported_by_domain_match' OR cvterm.name = 'supported_by_EST_or_cDNA' OR cvterm.name = 'supported_by_sequence_similarity';
  15045. --- ************************************************
  15046. --- *** relation: supported_by_domain_match ***
  15047. --- *** relation type: VIEW ***
  15048. --- *** ***
  15049. --- *** An attribute to describe a feature that ***
  15050. --- *** has been predicted using sequence simila ***
  15051. --- *** rity of a known domain. ***
  15052. --- ************************************************
  15053. ---
  15054. CREATE VIEW supported_by_domain_match AS
  15055. SELECT
  15056. feature_id AS supported_by_domain_match_id,
  15057. feature.*
  15058. FROM
  15059. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15060. WHERE cvterm.name = 'supported_by_domain_match';
  15061. --- ************************************************
  15062. --- *** relation: supported_by_est_or_cdna ***
  15063. --- *** relation type: VIEW ***
  15064. --- *** ***
  15065. --- *** An attribute to describe a feature that ***
  15066. --- *** has been predicted using sequence simila ***
  15067. --- *** rity to EST or cDNA data. ***
  15068. --- ************************************************
  15069. ---
  15070. CREATE VIEW supported_by_est_or_cdna AS
  15071. SELECT
  15072. feature_id AS supported_by_est_or_cdna_id,
  15073. feature.*
  15074. FROM
  15075. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15076. WHERE cvterm.name = 'supported_by_EST_or_cDNA';
  15077. --- ************************************************
  15078. --- *** relation: orphan ***
  15079. --- *** relation type: VIEW ***
  15080. --- *** ***
  15081. --- ************************************************
  15082. ---
  15083. CREATE VIEW orphan AS
  15084. SELECT
  15085. feature_id AS orphan_id,
  15086. feature.*
  15087. FROM
  15088. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15089. WHERE cvterm.name = 'orphan';
  15090. --- ************************************************
  15091. --- *** relation: predicted_by_ab_initio_computation ***
  15092. --- *** relation type: VIEW ***
  15093. --- *** ***
  15094. --- *** An attribute describing a feature that i ***
  15095. --- *** s predicted by a computer program that d ***
  15096. --- *** id not rely on sequence similarity. ***
  15097. --- ************************************************
  15098. ---
  15099. CREATE VIEW predicted_by_ab_initio_computation AS
  15100. SELECT
  15101. feature_id AS predicted_by_ab_initio_computation_id,
  15102. feature.*
  15103. FROM
  15104. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15105. WHERE cvterm.name = 'predicted_by_ab_initio_computation';
  15106. --- ************************************************
  15107. --- *** relation: asx_turn ***
  15108. --- *** relation type: VIEW ***
  15109. --- *** ***
  15110. --- *** A motif of three consecutive residues an ***
  15111. --- *** d one H-bond in which: residue(i) is Asp ***
  15112. --- *** artate or Asparagine (Asx), the side-cha ***
  15113. --- *** in O of residue(i) is H-bonded to the ma ***
  15114. --- *** in-chain NH of residue(i+2). ***
  15115. --- ************************************************
  15116. ---
  15117. CREATE VIEW asx_turn AS
  15118. SELECT
  15119. feature_id AS asx_turn_id,
  15120. feature.*
  15121. FROM
  15122. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15123. 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';
  15124. --- ************************************************
  15125. --- *** relation: cloned_cdna_insert ***
  15126. --- *** relation type: VIEW ***
  15127. --- *** ***
  15128. --- *** A clone insert made from cDNA. ***
  15129. --- ************************************************
  15130. ---
  15131. CREATE VIEW cloned_cdna_insert AS
  15132. SELECT
  15133. feature_id AS cloned_cdna_insert_id,
  15134. feature.*
  15135. FROM
  15136. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15137. WHERE cvterm.name = 'cloned_cDNA_insert';
  15138. --- ************************************************
  15139. --- *** relation: cloned_genomic_insert ***
  15140. --- *** relation type: VIEW ***
  15141. --- *** ***
  15142. --- *** A clone insert made from genomic DNA. ***
  15143. --- ************************************************
  15144. ---
  15145. CREATE VIEW cloned_genomic_insert AS
  15146. SELECT
  15147. feature_id AS cloned_genomic_insert_id,
  15148. feature.*
  15149. FROM
  15150. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15151. WHERE cvterm.name = 'BAC_cloned_genomic_insert' OR cvterm.name = 'cloned_genomic_insert';
  15152. --- ************************************************
  15153. --- *** relation: engineered_insert ***
  15154. --- *** relation type: VIEW ***
  15155. --- *** ***
  15156. --- *** A clone insert that is engineered. ***
  15157. --- ************************************************
  15158. ---
  15159. CREATE VIEW engineered_insert AS
  15160. SELECT
  15161. feature_id AS engineered_insert_id,
  15162. feature.*
  15163. FROM
  15164. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15165. WHERE cvterm.name = 'engineered_insert';
  15166. --- ************************************************
  15167. --- *** relation: edited_mrna ***
  15168. --- *** relation type: VIEW ***
  15169. --- *** ***
  15170. --- *** An mRNA that is edited. ***
  15171. --- ************************************************
  15172. ---
  15173. CREATE VIEW edited_mrna AS
  15174. SELECT
  15175. feature_id AS edited_mrna_id,
  15176. feature.*
  15177. FROM
  15178. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15179. WHERE cvterm.name = 'edited_transcript_by_A_to_I_substitution' OR cvterm.name = 'edited_mRNA';
  15180. --- ************************************************
  15181. --- *** relation: guide_rna_region ***
  15182. --- *** relation type: VIEW ***
  15183. --- *** ***
  15184. --- *** A region of guide RNA. ***
  15185. --- ************************************************
  15186. ---
  15187. CREATE VIEW guide_rna_region AS
  15188. SELECT
  15189. feature_id AS guide_rna_region_id,
  15190. feature.*
  15191. FROM
  15192. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15193. WHERE cvterm.name = 'anchor_region' OR cvterm.name = 'template_region' OR cvterm.name = 'guide_RNA_region';
  15194. --- ************************************************
  15195. --- *** relation: anchor_region ***
  15196. --- *** relation type: VIEW ***
  15197. --- *** ***
  15198. --- *** A region of a guide_RNA that base-pairs ***
  15199. --- *** to a target mRNA. ***
  15200. --- ************************************************
  15201. ---
  15202. CREATE VIEW anchor_region AS
  15203. SELECT
  15204. feature_id AS anchor_region_id,
  15205. feature.*
  15206. FROM
  15207. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15208. WHERE cvterm.name = 'anchor_region';
  15209. --- ************************************************
  15210. --- *** relation: pre_edited_mrna ***
  15211. --- *** relation type: VIEW ***
  15212. --- *** ***
  15213. --- ************************************************
  15214. ---
  15215. CREATE VIEW pre_edited_mrna AS
  15216. SELECT
  15217. feature_id AS pre_edited_mrna_id,
  15218. feature.*
  15219. FROM
  15220. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15221. WHERE cvterm.name = 'pre_edited_mRNA';
  15222. --- ************************************************
  15223. --- *** relation: intermediate ***
  15224. --- *** relation type: VIEW ***
  15225. --- *** ***
  15226. --- *** An attribute to describe a feature betwe ***
  15227. --- *** en stages of processing. ***
  15228. --- ************************************************
  15229. ---
  15230. CREATE VIEW intermediate AS
  15231. SELECT
  15232. feature_id AS intermediate_id,
  15233. feature.*
  15234. FROM
  15235. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15236. WHERE cvterm.name = 'intermediate';
  15237. --- ************************************************
  15238. --- *** relation: mirna_target_site ***
  15239. --- *** relation type: VIEW ***
  15240. --- *** ***
  15241. --- *** A miRNA target site is a binding site wh ***
  15242. --- *** ere the molecule is a micro RNA. ***
  15243. --- ************************************************
  15244. ---
  15245. CREATE VIEW mirna_target_site AS
  15246. SELECT
  15247. feature_id AS mirna_target_site_id,
  15248. feature.*
  15249. FROM
  15250. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15251. WHERE cvterm.name = 'miRNA_target_site';
  15252. --- ************************************************
  15253. --- *** relation: edited_cds ***
  15254. --- *** relation type: VIEW ***
  15255. --- *** ***
  15256. --- *** A CDS that is edited. ***
  15257. --- ************************************************
  15258. ---
  15259. CREATE VIEW edited_cds AS
  15260. SELECT
  15261. feature_id AS edited_cds_id,
  15262. feature.*
  15263. FROM
  15264. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15265. WHERE cvterm.name = 'edited_CDS';
  15266. --- ************************************************
  15267. --- *** relation: vertebrate_immunoglobulin_t_cell_receptor_rearranged_segment ***
  15268. --- *** relation type: VIEW ***
  15269. --- *** ***
  15270. --- ************************************************
  15271. ---
  15272. CREATE VIEW vertebrate_immunoglobulin_t_cell_receptor_rearranged_segment AS
  15273. SELECT
  15274. feature_id AS vertebrate_immunoglobulin_t_cell_receptor_rearranged_segment_id,
  15275. feature.*
  15276. FROM
  15277. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15278. 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';
  15279. --- ************************************************
  15280. --- *** relation: vertebrate_ig_t_cell_receptor_rearranged_gene_cluster ***
  15281. --- *** relation type: VIEW ***
  15282. --- *** ***
  15283. --- ************************************************
  15284. ---
  15285. CREATE VIEW vertebrate_ig_t_cell_receptor_rearranged_gene_cluster AS
  15286. SELECT
  15287. feature_id AS vertebrate_ig_t_cell_receptor_rearranged_gene_cluster_id,
  15288. feature.*
  15289. FROM
  15290. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15291. 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';
  15292. --- ************************************************
  15293. --- *** relation: vertebrate_immune_system_gene_recombination_signal_feature ***
  15294. --- *** relation type: VIEW ***
  15295. --- *** ***
  15296. --- ************************************************
  15297. ---
  15298. CREATE VIEW vertebrate_immune_system_gene_recombination_signal_feature AS
  15299. SELECT
  15300. feature_id AS vertebrate_immune_system_gene_recombination_signal_feature_id,
  15301. feature.*
  15302. FROM
  15303. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15304. 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';
  15305. --- ************************************************
  15306. --- *** relation: recombinationally_rearranged ***
  15307. --- *** relation type: VIEW ***
  15308. --- *** ***
  15309. --- ************************************************
  15310. ---
  15311. CREATE VIEW recombinationally_rearranged AS
  15312. SELECT
  15313. feature_id AS recombinationally_rearranged_id,
  15314. feature.*
  15315. FROM
  15316. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15317. WHERE cvterm.name = 'recombinationally_rearranged';
  15318. --- ************************************************
  15319. --- *** relation: recombinationally_rearranged_vertebrate_immune_system_gene ***
  15320. --- *** relation type: VIEW ***
  15321. --- *** ***
  15322. --- *** A recombinationally rearranged gene of t ***
  15323. --- *** he vertebrate immune system. ***
  15324. --- ************************************************
  15325. ---
  15326. CREATE VIEW recombinationally_rearranged_vertebrate_immune_system_gene AS
  15327. SELECT
  15328. feature_id AS recombinationally_rearranged_vertebrate_immune_system_gene_id,
  15329. feature.*
  15330. FROM
  15331. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15332. WHERE cvterm.name = 'recombinationally_rearranged_vertebrate_immune_system_gene';
  15333. --- ************************************************
  15334. --- *** relation: attp_site ***
  15335. --- *** relation type: VIEW ***
  15336. --- *** ***
  15337. --- *** An integration/excision site of a phage ***
  15338. --- *** chromosome at which a recombinase acts t ***
  15339. --- *** o insert the phage DNA at a cognate inte ***
  15340. --- *** gration/excision site on a bacterial chr ***
  15341. --- *** omosome. ***
  15342. --- ************************************************
  15343. ---
  15344. CREATE VIEW attp_site AS
  15345. SELECT
  15346. feature_id AS attp_site_id,
  15347. feature.*
  15348. FROM
  15349. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15350. WHERE cvterm.name = 'attP_site';
  15351. --- ************************************************
  15352. --- *** relation: attb_site ***
  15353. --- *** relation type: VIEW ***
  15354. --- *** ***
  15355. --- *** An integration/excision site of a bacter ***
  15356. --- *** ial chromosome at which a recombinase ac ***
  15357. --- *** ts to insert foreign DNA containing a co ***
  15358. --- *** gnate integration/excision site. ***
  15359. --- ************************************************
  15360. ---
  15361. CREATE VIEW attb_site AS
  15362. SELECT
  15363. feature_id AS attb_site_id,
  15364. feature.*
  15365. FROM
  15366. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15367. WHERE cvterm.name = 'attB_site';
  15368. --- ************************************************
  15369. --- *** relation: attl_site ***
  15370. --- *** relation type: VIEW ***
  15371. --- *** ***
  15372. --- *** A region that results from recombination ***
  15373. --- *** between attP_site and attB_site, compos ***
  15374. --- *** ed of the 5' portion of attB_site and th ***
  15375. --- *** e 3' portion of attP_site. ***
  15376. --- ************************************************
  15377. ---
  15378. CREATE VIEW attl_site AS
  15379. SELECT
  15380. feature_id AS attl_site_id,
  15381. feature.*
  15382. FROM
  15383. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15384. WHERE cvterm.name = 'attL_site';
  15385. --- ************************************************
  15386. --- *** relation: attr_site ***
  15387. --- *** relation type: VIEW ***
  15388. --- *** ***
  15389. --- *** A region that results from recombination ***
  15390. --- *** between attP_site and attB_site, compos ***
  15391. --- *** ed of the 5' portion of attP_site and th ***
  15392. --- *** e 3' portion of attB_site. ***
  15393. --- ************************************************
  15394. ---
  15395. CREATE VIEW attr_site AS
  15396. SELECT
  15397. feature_id AS attr_site_id,
  15398. feature.*
  15399. FROM
  15400. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15401. WHERE cvterm.name = 'attR_site';
  15402. --- ************************************************
  15403. --- *** relation: integration_excision_site ***
  15404. --- *** relation type: VIEW ***
  15405. --- *** ***
  15406. --- *** A region specifically recognised by a re ***
  15407. --- *** combinase, which inserts or removes anot ***
  15408. --- *** her region marked by a distinct cognate ***
  15409. --- *** integration/excision site. ***
  15410. --- ************************************************
  15411. ---
  15412. CREATE VIEW integration_excision_site AS
  15413. SELECT
  15414. feature_id AS integration_excision_site_id,
  15415. feature.*
  15416. FROM
  15417. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15418. 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';
  15419. --- ************************************************
  15420. --- *** relation: resolution_site ***
  15421. --- *** relation type: VIEW ***
  15422. --- *** ***
  15423. --- *** A region specifically recognised by a re ***
  15424. --- *** combinase, which separates a physically ***
  15425. --- *** contiguous circle of DNA into two physic ***
  15426. --- *** ally separate circles. ***
  15427. --- ************************************************
  15428. ---
  15429. CREATE VIEW resolution_site AS
  15430. SELECT
  15431. feature_id AS resolution_site_id,
  15432. feature.*
  15433. FROM
  15434. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15435. WHERE cvterm.name = 'loxP_site' OR cvterm.name = 'dif_site' OR cvterm.name = 'resolution_site';
  15436. --- ************************************************
  15437. --- *** relation: inversion_site ***
  15438. --- *** relation type: VIEW ***
  15439. --- *** ***
  15440. --- *** A region specifically recognised by a re ***
  15441. --- *** combinase, which inverts the region flan ***
  15442. --- *** ked by a pair of sites. ***
  15443. --- ************************************************
  15444. ---
  15445. CREATE VIEW inversion_site AS
  15446. SELECT
  15447. feature_id AS inversion_site_id,
  15448. feature.*
  15449. FROM
  15450. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15451. WHERE cvterm.name = 'FRT_site' OR cvterm.name = 'inversion_site';
  15452. --- ************************************************
  15453. --- *** relation: dif_site ***
  15454. --- *** relation type: VIEW ***
  15455. --- *** ***
  15456. --- *** A site at which replicated bacterial cir ***
  15457. --- *** cular chromosomes are decatenated by sit ***
  15458. --- *** e specific resolvase. ***
  15459. --- ************************************************
  15460. ---
  15461. CREATE VIEW dif_site AS
  15462. SELECT
  15463. feature_id AS dif_site_id,
  15464. feature.*
  15465. FROM
  15466. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15467. WHERE cvterm.name = 'dif_site';
  15468. --- ************************************************
  15469. --- *** relation: attc_site ***
  15470. --- *** relation type: VIEW ***
  15471. --- *** ***
  15472. --- *** An attC site is a sequence required for ***
  15473. --- *** the integration of a DNA of an integron. ***
  15474. --- ************************************************
  15475. ---
  15476. CREATE VIEW attc_site AS
  15477. SELECT
  15478. feature_id AS attc_site_id,
  15479. feature.*
  15480. FROM
  15481. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15482. WHERE cvterm.name = 'attC_site';
  15483. --- ************************************************
  15484. --- *** relation: eukaryotic_terminator ***
  15485. --- *** relation type: VIEW ***
  15486. --- *** ***
  15487. --- ************************************************
  15488. ---
  15489. CREATE VIEW eukaryotic_terminator AS
  15490. SELECT
  15491. feature_id AS eukaryotic_terminator_id,
  15492. feature.*
  15493. FROM
  15494. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15495. WHERE cvterm.name = 'terminator_of_type_2_RNApol_III_promoter' OR cvterm.name = 'eukaryotic_terminator';
  15496. --- ************************************************
  15497. --- *** relation: oriv ***
  15498. --- *** relation type: VIEW ***
  15499. --- *** ***
  15500. --- *** An origin of vegetative replication in p ***
  15501. --- *** lasmids and phages. ***
  15502. --- ************************************************
  15503. ---
  15504. CREATE VIEW oriv AS
  15505. SELECT
  15506. feature_id AS oriv_id,
  15507. feature.*
  15508. FROM
  15509. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15510. WHERE cvterm.name = 'oriV';
  15511. --- ************************************************
  15512. --- *** relation: oric ***
  15513. --- *** relation type: VIEW ***
  15514. --- *** ***
  15515. --- *** An origin of bacterial chromosome replic ***
  15516. --- *** ation. ***
  15517. --- ************************************************
  15518. ---
  15519. CREATE VIEW oric AS
  15520. SELECT
  15521. feature_id AS oric_id,
  15522. feature.*
  15523. FROM
  15524. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15525. WHERE cvterm.name = 'oriC';
  15526. --- ************************************************
  15527. --- *** relation: dna_chromosome ***
  15528. --- *** relation type: VIEW ***
  15529. --- *** ***
  15530. --- *** Structural unit composed of a self-repli ***
  15531. --- *** cating, DNA molecule. ***
  15532. --- ************************************************
  15533. ---
  15534. CREATE VIEW dna_chromosome AS
  15535. SELECT
  15536. feature_id AS dna_chromosome_id,
  15537. feature.*
  15538. FROM
  15539. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15540. 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';
  15541. --- ************************************************
  15542. --- *** relation: double_stranded_dna_chromosome ***
  15543. --- *** relation type: VIEW ***
  15544. --- *** ***
  15545. --- *** Structural unit composed of a self-repli ***
  15546. --- *** cating, double-stranded DNA molecule. ***
  15547. --- ************************************************
  15548. ---
  15549. CREATE VIEW double_stranded_dna_chromosome AS
  15550. SELECT
  15551. feature_id AS double_stranded_dna_chromosome_id,
  15552. feature.*
  15553. FROM
  15554. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15555. WHERE cvterm.name = 'linear_double_stranded_DNA_chromosome' OR cvterm.name = 'circular_double_stranded_DNA_chromosome' OR cvterm.name = 'double_stranded_DNA_chromosome';
  15556. --- ************************************************
  15557. --- *** relation: single_stranded_dna_chromosome ***
  15558. --- *** relation type: VIEW ***
  15559. --- *** ***
  15560. --- *** Structural unit composed of a self-repli ***
  15561. --- *** cating, single-stranded DNA molecule. ***
  15562. --- ************************************************
  15563. ---
  15564. CREATE VIEW single_stranded_dna_chromosome AS
  15565. SELECT
  15566. feature_id AS single_stranded_dna_chromosome_id,
  15567. feature.*
  15568. FROM
  15569. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15570. WHERE cvterm.name = 'linear_single_stranded_DNA_chromosome' OR cvterm.name = 'circular_single_stranded_DNA_chromosome' OR cvterm.name = 'single_stranded_DNA_chromosome';
  15571. --- ************************************************
  15572. --- *** relation: linear_double_stranded_dna_chromosome ***
  15573. --- *** relation type: VIEW ***
  15574. --- *** ***
  15575. --- *** Structural unit composed of a self-repli ***
  15576. --- *** cating, double-stranded, linear DNA mole ***
  15577. --- *** cule. ***
  15578. --- ************************************************
  15579. ---
  15580. CREATE VIEW linear_double_stranded_dna_chromosome AS
  15581. SELECT
  15582. feature_id AS linear_double_stranded_dna_chromosome_id,
  15583. feature.*
  15584. FROM
  15585. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15586. WHERE cvterm.name = 'linear_double_stranded_DNA_chromosome';
  15587. --- ************************************************
  15588. --- *** relation: circular_double_stranded_dna_chromosome ***
  15589. --- *** relation type: VIEW ***
  15590. --- *** ***
  15591. --- *** Structural unit composed of a self-repli ***
  15592. --- *** cating, double-stranded, circular DNA mo ***
  15593. --- *** lecule. ***
  15594. --- ************************************************
  15595. ---
  15596. CREATE VIEW circular_double_stranded_dna_chromosome AS
  15597. SELECT
  15598. feature_id AS circular_double_stranded_dna_chromosome_id,
  15599. feature.*
  15600. FROM
  15601. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15602. WHERE cvterm.name = 'circular_double_stranded_DNA_chromosome';
  15603. --- ************************************************
  15604. --- *** relation: linear_single_stranded_dna_chromosome ***
  15605. --- *** relation type: VIEW ***
  15606. --- *** ***
  15607. --- *** Structural unit composed of a self-repli ***
  15608. --- *** cating, single-stranded, linear DNA mole ***
  15609. --- *** cule. ***
  15610. --- ************************************************
  15611. ---
  15612. CREATE VIEW linear_single_stranded_dna_chromosome AS
  15613. SELECT
  15614. feature_id AS linear_single_stranded_dna_chromosome_id,
  15615. feature.*
  15616. FROM
  15617. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15618. WHERE cvterm.name = 'linear_single_stranded_DNA_chromosome';
  15619. --- ************************************************
  15620. --- *** relation: circular_single_stranded_dna_chromosome ***
  15621. --- *** relation type: VIEW ***
  15622. --- *** ***
  15623. --- *** Structural unit composed of a self-repli ***
  15624. --- *** cating, single-stranded, circular DNA mo ***
  15625. --- *** lecule. ***
  15626. --- ************************************************
  15627. ---
  15628. CREATE VIEW circular_single_stranded_dna_chromosome AS
  15629. SELECT
  15630. feature_id AS circular_single_stranded_dna_chromosome_id,
  15631. feature.*
  15632. FROM
  15633. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15634. WHERE cvterm.name = 'circular_single_stranded_DNA_chromosome';
  15635. --- ************************************************
  15636. --- *** relation: rna_chromosome ***
  15637. --- *** relation type: VIEW ***
  15638. --- *** ***
  15639. --- *** Structural unit composed of a self-repli ***
  15640. --- *** cating, RNA molecule. ***
  15641. --- ************************************************
  15642. ---
  15643. CREATE VIEW rna_chromosome AS
  15644. SELECT
  15645. feature_id AS rna_chromosome_id,
  15646. feature.*
  15647. FROM
  15648. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15649. 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';
  15650. --- ************************************************
  15651. --- *** relation: single_stranded_rna_chromosome ***
  15652. --- *** relation type: VIEW ***
  15653. --- *** ***
  15654. --- *** Structural unit composed of a self-repli ***
  15655. --- *** cating, single-stranded RNA molecule. ***
  15656. --- ************************************************
  15657. ---
  15658. CREATE VIEW single_stranded_rna_chromosome AS
  15659. SELECT
  15660. feature_id AS single_stranded_rna_chromosome_id,
  15661. feature.*
  15662. FROM
  15663. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15664. WHERE cvterm.name = 'linear_single_stranded_RNA_chromosome' OR cvterm.name = 'circular_single_stranded_RNA_chromosome' OR cvterm.name = 'single_stranded_RNA_chromosome';
  15665. --- ************************************************
  15666. --- *** relation: linear_single_stranded_rna_chromosome ***
  15667. --- *** relation type: VIEW ***
  15668. --- *** ***
  15669. --- *** Structural unit composed of a self-repli ***
  15670. --- *** cating, single-stranded, linear RNA mole ***
  15671. --- *** cule. ***
  15672. --- ************************************************
  15673. ---
  15674. CREATE VIEW linear_single_stranded_rna_chromosome AS
  15675. SELECT
  15676. feature_id AS linear_single_stranded_rna_chromosome_id,
  15677. feature.*
  15678. FROM
  15679. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15680. WHERE cvterm.name = 'linear_single_stranded_RNA_chromosome';
  15681. --- ************************************************
  15682. --- *** relation: linear_double_stranded_rna_chromosome ***
  15683. --- *** relation type: VIEW ***
  15684. --- *** ***
  15685. --- *** Structural unit composed of a self-repli ***
  15686. --- *** cating, double-stranded, linear RNA mole ***
  15687. --- *** cule. ***
  15688. --- ************************************************
  15689. ---
  15690. CREATE VIEW linear_double_stranded_rna_chromosome AS
  15691. SELECT
  15692. feature_id AS linear_double_stranded_rna_chromosome_id,
  15693. feature.*
  15694. FROM
  15695. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15696. WHERE cvterm.name = 'linear_double_stranded_RNA_chromosome';
  15697. --- ************************************************
  15698. --- *** relation: double_stranded_rna_chromosome ***
  15699. --- *** relation type: VIEW ***
  15700. --- *** ***
  15701. --- *** Structural unit composed of a self-repli ***
  15702. --- *** cating, double-stranded RNA molecule. ***
  15703. --- ************************************************
  15704. ---
  15705. CREATE VIEW double_stranded_rna_chromosome AS
  15706. SELECT
  15707. feature_id AS double_stranded_rna_chromosome_id,
  15708. feature.*
  15709. FROM
  15710. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15711. WHERE cvterm.name = 'linear_double_stranded_RNA_chromosome' OR cvterm.name = 'circular_double_stranded_RNA_chromosome' OR cvterm.name = 'double_stranded_RNA_chromosome';
  15712. --- ************************************************
  15713. --- *** relation: circular_single_stranded_rna_chromosome ***
  15714. --- *** relation type: VIEW ***
  15715. --- *** ***
  15716. --- *** Structural unit composed of a self-repli ***
  15717. --- *** cating, single-stranded, circular DNA mo ***
  15718. --- *** lecule. ***
  15719. --- ************************************************
  15720. ---
  15721. CREATE VIEW circular_single_stranded_rna_chromosome AS
  15722. SELECT
  15723. feature_id AS circular_single_stranded_rna_chromosome_id,
  15724. feature.*
  15725. FROM
  15726. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15727. WHERE cvterm.name = 'circular_single_stranded_RNA_chromosome';
  15728. --- ************************************************
  15729. --- *** relation: circular_double_stranded_rna_chromosome ***
  15730. --- *** relation type: VIEW ***
  15731. --- *** ***
  15732. --- *** Structural unit composed of a self-repli ***
  15733. --- *** cating, double-stranded, circular RNA mo ***
  15734. --- *** lecule. ***
  15735. --- ************************************************
  15736. ---
  15737. CREATE VIEW circular_double_stranded_rna_chromosome AS
  15738. SELECT
  15739. feature_id AS circular_double_stranded_rna_chromosome_id,
  15740. feature.*
  15741. FROM
  15742. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15743. WHERE cvterm.name = 'circular_double_stranded_RNA_chromosome';
  15744. --- ************************************************
  15745. --- *** relation: insertion_sequence ***
  15746. --- *** relation type: VIEW ***
  15747. --- *** ***
  15748. --- *** A terminal_inverted_repeat_element that ***
  15749. --- *** is bacterial and only encodes the functi ***
  15750. --- *** ons required for its transposition betwe ***
  15751. --- *** en these inverted repeats. ***
  15752. --- ************************************************
  15753. ---
  15754. CREATE VIEW insertion_sequence AS
  15755. SELECT
  15756. feature_id AS insertion_sequence_id,
  15757. feature.*
  15758. FROM
  15759. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15760. WHERE cvterm.name = 'insertion_sequence';
  15761. --- ************************************************
  15762. --- *** relation: minicircle_gene ***
  15763. --- *** relation type: VIEW ***
  15764. --- *** ***
  15765. --- ************************************************
  15766. ---
  15767. CREATE VIEW minicircle_gene AS
  15768. SELECT
  15769. feature_id AS minicircle_gene_id,
  15770. feature.*
  15771. FROM
  15772. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15773. WHERE cvterm.name = 'minicircle_gene';
  15774. --- ************************************************
  15775. --- *** relation: cryptic ***
  15776. --- *** relation type: VIEW ***
  15777. --- *** ***
  15778. --- *** A feature_attribute describing a feature ***
  15779. --- *** that is not manifest under normal condi ***
  15780. --- *** tions. ***
  15781. --- ************************************************
  15782. ---
  15783. CREATE VIEW cryptic AS
  15784. SELECT
  15785. feature_id AS cryptic_id,
  15786. feature.*
  15787. FROM
  15788. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15789. WHERE cvterm.name = 'cryptic';
  15790. --- ************************************************
  15791. --- *** relation: anchor_binding_site ***
  15792. --- *** relation type: VIEW ***
  15793. --- *** ***
  15794. --- ************************************************
  15795. ---
  15796. CREATE VIEW anchor_binding_site AS
  15797. SELECT
  15798. feature_id AS anchor_binding_site_id,
  15799. feature.*
  15800. FROM
  15801. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15802. WHERE cvterm.name = 'anchor_binding_site';
  15803. --- ************************************************
  15804. --- *** relation: template_region ***
  15805. --- *** relation type: VIEW ***
  15806. --- *** ***
  15807. --- *** A region of a guide_RNA that specifies t ***
  15808. --- *** he insertions and deletions of bases in ***
  15809. --- *** the editing of a target mRNA. ***
  15810. --- ************************************************
  15811. ---
  15812. CREATE VIEW template_region AS
  15813. SELECT
  15814. feature_id AS template_region_id,
  15815. feature.*
  15816. FROM
  15817. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15818. WHERE cvterm.name = 'template_region';
  15819. --- ************************************************
  15820. --- *** relation: grna_encoding ***
  15821. --- *** relation type: VIEW ***
  15822. --- *** ***
  15823. --- *** A non-protein_coding gene that encodes a ***
  15824. --- *** guide_RNA. ***
  15825. --- ************************************************
  15826. ---
  15827. CREATE VIEW grna_encoding AS
  15828. SELECT
  15829. feature_id AS grna_encoding_id,
  15830. feature.*
  15831. FROM
  15832. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15833. WHERE cvterm.name = 'gRNA_encoding';
  15834. --- ************************************************
  15835. --- *** relation: minicircle ***
  15836. --- *** relation type: VIEW ***
  15837. --- *** ***
  15838. --- *** A minicircle is a replicon, part of a ki ***
  15839. --- *** netoplast, that encodes for guide RNAs. ***
  15840. --- ************************************************
  15841. ---
  15842. CREATE VIEW minicircle AS
  15843. SELECT
  15844. feature_id AS minicircle_id,
  15845. feature.*
  15846. FROM
  15847. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15848. WHERE cvterm.name = 'minicircle';
  15849. --- ************************************************
  15850. --- *** relation: rho_dependent_bacterial_terminator ***
  15851. --- *** relation type: VIEW ***
  15852. --- *** ***
  15853. --- ************************************************
  15854. ---
  15855. CREATE VIEW rho_dependent_bacterial_terminator AS
  15856. SELECT
  15857. feature_id AS rho_dependent_bacterial_terminator_id,
  15858. feature.*
  15859. FROM
  15860. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15861. WHERE cvterm.name = 'rho_dependent_bacterial_terminator';
  15862. --- ************************************************
  15863. --- *** relation: rho_independent_bacterial_terminator ***
  15864. --- *** relation type: VIEW ***
  15865. --- *** ***
  15866. --- ************************************************
  15867. ---
  15868. CREATE VIEW rho_independent_bacterial_terminator AS
  15869. SELECT
  15870. feature_id AS rho_independent_bacterial_terminator_id,
  15871. feature.*
  15872. FROM
  15873. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15874. WHERE cvterm.name = 'rho_independent_bacterial_terminator';
  15875. --- ************************************************
  15876. --- *** relation: strand_attribute ***
  15877. --- *** relation type: VIEW ***
  15878. --- *** ***
  15879. --- ************************************************
  15880. ---
  15881. CREATE VIEW strand_attribute AS
  15882. SELECT
  15883. feature_id AS strand_attribute_id,
  15884. feature.*
  15885. FROM
  15886. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15887. WHERE cvterm.name = 'single' OR cvterm.name = 'double' OR cvterm.name = 'strand_attribute';
  15888. --- ************************************************
  15889. --- *** relation: single ***
  15890. --- *** relation type: VIEW ***
  15891. --- *** ***
  15892. --- ************************************************
  15893. ---
  15894. CREATE VIEW single AS
  15895. SELECT
  15896. feature_id AS single_id,
  15897. feature.*
  15898. FROM
  15899. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15900. WHERE cvterm.name = 'single';
  15901. --- ************************************************
  15902. --- *** relation: double ***
  15903. --- *** relation type: VIEW ***
  15904. --- *** ***
  15905. --- ************************************************
  15906. ---
  15907. CREATE VIEW double AS
  15908. SELECT
  15909. feature_id AS double_id,
  15910. feature.*
  15911. FROM
  15912. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15913. WHERE cvterm.name = 'double';
  15914. --- ************************************************
  15915. --- *** relation: topology_attribute ***
  15916. --- *** relation type: VIEW ***
  15917. --- *** ***
  15918. --- ************************************************
  15919. ---
  15920. CREATE VIEW topology_attribute AS
  15921. SELECT
  15922. feature_id AS topology_attribute_id,
  15923. feature.*
  15924. FROM
  15925. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15926. WHERE cvterm.name = 'linear' OR cvterm.name = 'circular' OR cvterm.name = 'topology_attribute';
  15927. --- ************************************************
  15928. --- *** relation: linear ***
  15929. --- *** relation type: VIEW ***
  15930. --- *** ***
  15931. --- *** A quality of a nucleotide polymer that h ***
  15932. --- *** as a 3'-terminal residue and a 5'-termin ***
  15933. --- *** al residue. ***
  15934. --- ************************************************
  15935. ---
  15936. CREATE VIEW linear AS
  15937. SELECT
  15938. feature_id AS linear_id,
  15939. feature.*
  15940. FROM
  15941. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15942. WHERE cvterm.name = 'linear';
  15943. --- ************************************************
  15944. --- *** relation: circular ***
  15945. --- *** relation type: VIEW ***
  15946. --- *** ***
  15947. --- *** A quality of a nucleotide polymer that h ***
  15948. --- *** as no terminal nucleotide residues. ***
  15949. --- ************************************************
  15950. ---
  15951. CREATE VIEW circular AS
  15952. SELECT
  15953. feature_id AS circular_id,
  15954. feature.*
  15955. FROM
  15956. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15957. WHERE cvterm.name = 'circular';
  15958. --- ************************************************
  15959. --- *** relation: class_ii_rna ***
  15960. --- *** relation type: VIEW ***
  15961. --- *** ***
  15962. --- *** Small non-coding RNA (59-60 nt long) con ***
  15963. --- *** taining 5' and 3' ends that are predicte ***
  15964. --- *** d to come together to form a stem struct ***
  15965. --- *** ure. Identified in the social amoeba Dic ***
  15966. --- *** tyostelium discoideum and localized in t ***
  15967. --- *** he cytoplasm. ***
  15968. --- ************************************************
  15969. ---
  15970. CREATE VIEW class_ii_rna AS
  15971. SELECT
  15972. feature_id AS class_ii_rna_id,
  15973. feature.*
  15974. FROM
  15975. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15976. WHERE cvterm.name = 'class_II_RNA';
  15977. --- ************************************************
  15978. --- *** relation: class_i_rna ***
  15979. --- *** relation type: VIEW ***
  15980. --- *** ***
  15981. --- *** Small non-coding RNA (55-65 nt long) con ***
  15982. --- *** taining highly conserved 5' and 3' ends ***
  15983. --- *** (16 and 8 nt, respectively) that are pre ***
  15984. --- *** dicted to come together to form a stem s ***
  15985. --- *** tructure. Identified in the social amoeb ***
  15986. --- *** a Dictyostelium discoideum and localized ***
  15987. --- *** in the cytoplasm. ***
  15988. --- ************************************************
  15989. ---
  15990. CREATE VIEW class_i_rna AS
  15991. SELECT
  15992. feature_id AS class_i_rna_id,
  15993. feature.*
  15994. FROM
  15995. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15996. WHERE cvterm.name = 'class_I_RNA';
  15997. --- ************************************************
  15998. --- *** relation: genomic_dna ***
  15999. --- *** relation type: VIEW ***
  16000. --- *** ***
  16001. --- ************************************************
  16002. ---
  16003. CREATE VIEW genomic_dna AS
  16004. SELECT
  16005. feature_id AS genomic_dna_id,
  16006. feature.*
  16007. FROM
  16008. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16009. WHERE cvterm.name = 'genomic_DNA';
  16010. --- ************************************************
  16011. --- *** relation: bac_cloned_genomic_insert ***
  16012. --- *** relation type: VIEW ***
  16013. --- *** ***
  16014. --- ************************************************
  16015. ---
  16016. CREATE VIEW bac_cloned_genomic_insert AS
  16017. SELECT
  16018. feature_id AS bac_cloned_genomic_insert_id,
  16019. feature.*
  16020. FROM
  16021. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16022. WHERE cvterm.name = 'BAC_cloned_genomic_insert';
  16023. --- ************************************************
  16024. --- *** relation: consensus ***
  16025. --- *** relation type: VIEW ***
  16026. --- *** ***
  16027. --- ************************************************
  16028. ---
  16029. CREATE VIEW consensus AS
  16030. SELECT
  16031. feature_id AS consensus_id,
  16032. feature.*
  16033. FROM
  16034. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16035. WHERE cvterm.name = 'consensus';
  16036. --- ************************************************
  16037. --- *** relation: consensus_region ***
  16038. --- *** relation type: VIEW ***
  16039. --- *** ***
  16040. --- ************************************************
  16041. ---
  16042. CREATE VIEW consensus_region AS
  16043. SELECT
  16044. feature_id AS consensus_region_id,
  16045. feature.*
  16046. FROM
  16047. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16048. WHERE cvterm.name = 'consensus_mRNA' OR cvterm.name = 'consensus_region';
  16049. --- ************************************************
  16050. --- *** relation: consensus_mrna ***
  16051. --- *** relation type: VIEW ***
  16052. --- *** ***
  16053. --- ************************************************
  16054. ---
  16055. CREATE VIEW consensus_mrna AS
  16056. SELECT
  16057. feature_id AS consensus_mrna_id,
  16058. feature.*
  16059. FROM
  16060. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16061. WHERE cvterm.name = 'consensus_mRNA';
  16062. --- ************************************************
  16063. --- *** relation: predicted_gene ***
  16064. --- *** relation type: VIEW ***
  16065. --- *** ***
  16066. --- ************************************************
  16067. ---
  16068. CREATE VIEW predicted_gene AS
  16069. SELECT
  16070. feature_id AS predicted_gene_id,
  16071. feature.*
  16072. FROM
  16073. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16074. WHERE cvterm.name = 'predicted_gene';
  16075. --- ************************************************
  16076. --- *** relation: gene_fragment ***
  16077. --- *** relation type: VIEW ***
  16078. --- *** ***
  16079. --- ************************************************
  16080. ---
  16081. CREATE VIEW gene_fragment AS
  16082. SELECT
  16083. feature_id AS gene_fragment_id,
  16084. feature.*
  16085. FROM
  16086. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16087. WHERE cvterm.name = 'gene_fragment';
  16088. --- ************************************************
  16089. --- *** relation: recursive_splice_site ***
  16090. --- *** relation type: VIEW ***
  16091. --- *** ***
  16092. --- *** A recursive splice site is a splice site ***
  16093. --- *** which subdivides a large intron. Recurs ***
  16094. --- *** ive splicing is a mechanism that splices ***
  16095. --- *** large introns by sub dividing the intro ***
  16096. --- *** n at non exonic elements and alternate e ***
  16097. --- *** xons. ***
  16098. --- ************************************************
  16099. ---
  16100. CREATE VIEW recursive_splice_site AS
  16101. SELECT
  16102. feature_id AS recursive_splice_site_id,
  16103. feature.*
  16104. FROM
  16105. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16106. WHERE cvterm.name = 'recursive_splice_site';
  16107. --- ************************************************
  16108. --- *** relation: bac_end ***
  16109. --- *** relation type: VIEW ***
  16110. --- *** ***
  16111. --- *** A region of sequence from the end of a B ***
  16112. --- *** AC clone that may provide a highly speci ***
  16113. --- *** fic marker. ***
  16114. --- ************************************************
  16115. ---
  16116. CREATE VIEW bac_end AS
  16117. SELECT
  16118. feature_id AS bac_end_id,
  16119. feature.*
  16120. FROM
  16121. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16122. WHERE cvterm.name = 'BAC_end';
  16123. --- ************************************************
  16124. --- *** relation: rrna_16s ***
  16125. --- *** relation type: VIEW ***
  16126. --- *** ***
  16127. --- *** A large polynucleotide in Bacteria and A ***
  16128. --- *** rchaea, which functions as the small sub ***
  16129. --- *** unit of the ribosome. ***
  16130. --- ************************************************
  16131. ---
  16132. CREATE VIEW rrna_16s AS
  16133. SELECT
  16134. feature_id AS rrna_16s_id,
  16135. feature.*
  16136. FROM
  16137. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16138. WHERE cvterm.name = 'rRNA_16S';
  16139. --- ************************************************
  16140. --- *** relation: rrna_23s ***
  16141. --- *** relation type: VIEW ***
  16142. --- *** ***
  16143. --- *** A large polynucleotide in Bacteria and A ***
  16144. --- *** rchaea, which functions as the large sub ***
  16145. --- *** unit of the ribosome. ***
  16146. --- ************************************************
  16147. ---
  16148. CREATE VIEW rrna_23s AS
  16149. SELECT
  16150. feature_id AS rrna_23s_id,
  16151. feature.*
  16152. FROM
  16153. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16154. WHERE cvterm.name = 'rRNA_23S';
  16155. --- ************************************************
  16156. --- *** relation: rrna_25s ***
  16157. --- *** relation type: VIEW ***
  16158. --- *** ***
  16159. --- *** A large polynucleotide which functions a ***
  16160. --- *** s part of the large subunit of the ribos ***
  16161. --- *** ome in some eukaryotes. ***
  16162. --- ************************************************
  16163. ---
  16164. CREATE VIEW rrna_25s AS
  16165. SELECT
  16166. feature_id AS rrna_25s_id,
  16167. feature.*
  16168. FROM
  16169. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16170. WHERE cvterm.name = 'rRNA_25S';
  16171. --- ************************************************
  16172. --- *** relation: solo_ltr ***
  16173. --- *** relation type: VIEW ***
  16174. --- *** ***
  16175. --- *** A recombination product between the 2 LT ***
  16176. --- *** R of the same element. ***
  16177. --- ************************************************
  16178. ---
  16179. CREATE VIEW solo_ltr AS
  16180. SELECT
  16181. feature_id AS solo_ltr_id,
  16182. feature.*
  16183. FROM
  16184. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16185. WHERE cvterm.name = 'solo_LTR';
  16186. --- ************************************************
  16187. --- *** relation: low_complexity ***
  16188. --- *** relation type: VIEW ***
  16189. --- *** ***
  16190. --- ************************************************
  16191. ---
  16192. CREATE VIEW low_complexity AS
  16193. SELECT
  16194. feature_id AS low_complexity_id,
  16195. feature.*
  16196. FROM
  16197. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16198. WHERE cvterm.name = 'low_complexity';
  16199. --- ************************************************
  16200. --- *** relation: low_complexity_region ***
  16201. --- *** relation type: VIEW ***
  16202. --- *** ***
  16203. --- ************************************************
  16204. ---
  16205. CREATE VIEW low_complexity_region AS
  16206. SELECT
  16207. feature_id AS low_complexity_region_id,
  16208. feature.*
  16209. FROM
  16210. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16211. WHERE cvterm.name = 'low_complexity_region';
  16212. --- ************************************************
  16213. --- *** relation: prophage ***
  16214. --- *** relation type: VIEW ***
  16215. --- *** ***
  16216. --- *** A phage genome after it has established ***
  16217. --- *** in the host genome in a latent/immune st ***
  16218. --- *** ate either as a plasmid or as an integra ***
  16219. --- *** ted "island". ***
  16220. --- ************************************************
  16221. ---
  16222. CREATE VIEW prophage AS
  16223. SELECT
  16224. feature_id AS prophage_id,
  16225. feature.*
  16226. FROM
  16227. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16228. WHERE cvterm.name = 'prophage';
  16229. --- ************************************************
  16230. --- *** relation: cryptic_prophage ***
  16231. --- *** relation type: VIEW ***
  16232. --- *** ***
  16233. --- *** A remnant of an integrated prophage in t ***
  16234. --- *** he host genome or an "island" in the hos ***
  16235. --- *** t genome that includes phage like-genes. ***
  16236. --- ************************************************
  16237. ---
  16238. CREATE VIEW cryptic_prophage AS
  16239. SELECT
  16240. feature_id AS cryptic_prophage_id,
  16241. feature.*
  16242. FROM
  16243. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16244. WHERE cvterm.name = 'cryptic_prophage';
  16245. --- ************************************************
  16246. --- *** relation: tetraloop ***
  16247. --- *** relation type: VIEW ***
  16248. --- *** ***
  16249. --- *** A base-paired stem with loop of 4 non-hy ***
  16250. --- *** drogen bonded nucleotides. ***
  16251. --- ************************************************
  16252. ---
  16253. CREATE VIEW tetraloop AS
  16254. SELECT
  16255. feature_id AS tetraloop_id,
  16256. feature.*
  16257. FROM
  16258. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16259. WHERE cvterm.name = 'tetraloop';
  16260. --- ************************************************
  16261. --- *** relation: dna_constraint_sequence ***
  16262. --- *** relation type: VIEW ***
  16263. --- *** ***
  16264. --- *** A double-stranded DNA used to control ma ***
  16265. --- *** cromolecular structure and function. ***
  16266. --- ************************************************
  16267. ---
  16268. CREATE VIEW dna_constraint_sequence AS
  16269. SELECT
  16270. feature_id AS dna_constraint_sequence_id,
  16271. feature.*
  16272. FROM
  16273. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16274. WHERE cvterm.name = 'DNA_constraint_sequence';
  16275. --- ************************************************
  16276. --- *** relation: i_motif ***
  16277. --- *** relation type: VIEW ***
  16278. --- *** ***
  16279. --- *** A cytosine rich domain whereby strands a ***
  16280. --- *** ssociate both inter- and intramolecularl ***
  16281. --- *** y at moderately acidic pH. ***
  16282. --- ************************************************
  16283. ---
  16284. CREATE VIEW i_motif AS
  16285. SELECT
  16286. feature_id AS i_motif_id,
  16287. feature.*
  16288. FROM
  16289. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16290. WHERE cvterm.name = 'i_motif';
  16291. --- ************************************************
  16292. --- *** relation: pna_oligo ***
  16293. --- *** relation type: VIEW ***
  16294. --- *** ***
  16295. --- *** Peptide nucleic acid, is a chemical not ***
  16296. --- *** known to occur naturally but is artifici ***
  16297. --- *** ally synthesized and used in some biolog ***
  16298. --- *** ical research and medical treatments. Th ***
  16299. --- *** e PNA backbone is composed of repeating ***
  16300. --- *** N-(2-aminoethyl)-glycine units linked by ***
  16301. --- *** peptide bonds. The purine and pyrimidin ***
  16302. --- *** e bases are linked to the backbone by me ***
  16303. --- *** thylene carbonyl bonds. ***
  16304. --- ************************************************
  16305. ---
  16306. CREATE VIEW pna_oligo AS
  16307. SELECT
  16308. feature_id AS pna_oligo_id,
  16309. feature.*
  16310. FROM
  16311. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16312. WHERE cvterm.name = 'PNA_oligo';
  16313. --- ************************************************
  16314. --- *** relation: dnazyme ***
  16315. --- *** relation type: VIEW ***
  16316. --- *** ***
  16317. --- *** A DNA sequence with catalytic activity. ***
  16318. --- ************************************************
  16319. ---
  16320. CREATE VIEW dnazyme AS
  16321. SELECT
  16322. feature_id AS dnazyme_id,
  16323. feature.*
  16324. FROM
  16325. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16326. WHERE cvterm.name = 'DNAzyme';
  16327. --- ************************************************
  16328. --- *** relation: mnp ***
  16329. --- *** relation type: VIEW ***
  16330. --- *** ***
  16331. --- *** A multiple nucleotide polymorphism with ***
  16332. --- *** alleles of common length > 1, for exampl ***
  16333. --- *** e AAA/TTT. ***
  16334. --- ************************************************
  16335. ---
  16336. CREATE VIEW mnp AS
  16337. SELECT
  16338. feature_id AS mnp_id,
  16339. feature.*
  16340. FROM
  16341. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16342. WHERE cvterm.name = 'MNP';
  16343. --- ************************************************
  16344. --- *** relation: intron_domain ***
  16345. --- *** relation type: VIEW ***
  16346. --- *** ***
  16347. --- ************************************************
  16348. ---
  16349. CREATE VIEW intron_domain AS
  16350. SELECT
  16351. feature_id AS intron_domain_id,
  16352. feature.*
  16353. FROM
  16354. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16355. WHERE cvterm.name = 'internal_guide_sequence' OR cvterm.name = 'mirtron' OR cvterm.name = 'intron_domain';
  16356. --- ************************************************
  16357. --- *** relation: wobble_base_pair ***
  16358. --- *** relation type: VIEW ***
  16359. --- *** ***
  16360. --- *** A type of non-canonical base pairing, mo ***
  16361. --- *** st commonly between G and U, which is im ***
  16362. --- *** portant for the secondary structure of R ***
  16363. --- *** NAs. It has similar thermodynamic stabil ***
  16364. --- *** ity to the Watson-Crick pairing. Wobble ***
  16365. --- *** base pairs only have two hydrogen bonds. ***
  16366. --- *** Other wobble base pair possibilities ar ***
  16367. --- *** e I-A, I-U and I-C. ***
  16368. --- ************************************************
  16369. ---
  16370. CREATE VIEW wobble_base_pair AS
  16371. SELECT
  16372. feature_id AS wobble_base_pair_id,
  16373. feature.*
  16374. FROM
  16375. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16376. WHERE cvterm.name = 'wobble_base_pair';
  16377. --- ************************************************
  16378. --- *** relation: internal_guide_sequence ***
  16379. --- *** relation type: VIEW ***
  16380. --- *** ***
  16381. --- *** A purine-rich sequence in the group I in ***
  16382. --- *** trons which determines the locations of ***
  16383. --- *** the splice sites in group I intron splic ***
  16384. --- *** ing and has catalytic activity. ***
  16385. --- ************************************************
  16386. ---
  16387. CREATE VIEW internal_guide_sequence AS
  16388. SELECT
  16389. feature_id AS internal_guide_sequence_id,
  16390. feature.*
  16391. FROM
  16392. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16393. WHERE cvterm.name = 'internal_guide_sequence';
  16394. --- ************************************************
  16395. --- *** relation: silent_mutation ***
  16396. --- *** relation type: VIEW ***
  16397. --- *** ***
  16398. --- ************************************************
  16399. ---
  16400. CREATE VIEW silent_mutation AS
  16401. SELECT
  16402. feature_id AS silent_mutation_id,
  16403. feature.*
  16404. FROM
  16405. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16406. WHERE cvterm.name = 'silent_mutation';
  16407. --- ************************************************
  16408. --- *** relation: epitope ***
  16409. --- *** relation type: VIEW ***
  16410. --- *** ***
  16411. --- *** A region of a macromolecule that is reco ***
  16412. --- *** gnized by the immune system. ***
  16413. --- ************************************************
  16414. ---
  16415. CREATE VIEW epitope AS
  16416. SELECT
  16417. feature_id AS epitope_id,
  16418. feature.*
  16419. FROM
  16420. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16421. WHERE cvterm.name = 'epitope';
  16422. --- ************************************************
  16423. --- *** relation: copy_number_variation ***
  16424. --- *** relation type: VIEW ***
  16425. --- *** ***
  16426. --- *** A variation that increases or decreases ***
  16427. --- *** the copy number of a given region. ***
  16428. --- ************************************************
  16429. ---
  16430. CREATE VIEW copy_number_variation AS
  16431. SELECT
  16432. feature_id AS copy_number_variation_id,
  16433. feature.*
  16434. FROM
  16435. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16436. WHERE cvterm.name = 'copy_number_variation';
  16437. --- ************************************************
  16438. --- *** relation: sequence_variant_affecting_copy_number ***
  16439. --- *** relation type: VIEW ***
  16440. --- *** ***
  16441. --- ************************************************
  16442. ---
  16443. CREATE VIEW sequence_variant_affecting_copy_number AS
  16444. SELECT
  16445. feature_id AS sequence_variant_affecting_copy_number_id,
  16446. feature.*
  16447. FROM
  16448. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16449. WHERE cvterm.name = 'sequence_variant_affecting_copy_number';
  16450. --- ************************************************
  16451. --- *** relation: chromosome_breakpoint ***
  16452. --- *** relation type: VIEW ***
  16453. --- *** ***
  16454. --- ************************************************
  16455. ---
  16456. CREATE VIEW chromosome_breakpoint AS
  16457. SELECT
  16458. feature_id AS chromosome_breakpoint_id,
  16459. feature.*
  16460. FROM
  16461. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16462. 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';
  16463. --- ************************************************
  16464. --- *** relation: inversion_breakpoint ***
  16465. --- *** relation type: VIEW ***
  16466. --- *** ***
  16467. --- *** The point within a chromosome where an i ***
  16468. --- *** nversion begins or ends. ***
  16469. --- ************************************************
  16470. ---
  16471. CREATE VIEW inversion_breakpoint AS
  16472. SELECT
  16473. feature_id AS inversion_breakpoint_id,
  16474. feature.*
  16475. FROM
  16476. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16477. WHERE cvterm.name = 'inversion_breakpoint';
  16478. --- ************************************************
  16479. --- *** relation: allele ***
  16480. --- *** relation type: VIEW ***
  16481. --- *** ***
  16482. --- *** An allele is one of a set of coexisting ***
  16483. --- *** sequence variants of a gene. ***
  16484. --- ************************************************
  16485. ---
  16486. CREATE VIEW allele AS
  16487. SELECT
  16488. feature_id AS allele_id,
  16489. feature.*
  16490. FROM
  16491. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16492. WHERE cvterm.name = 'allele';
  16493. --- ************************************************
  16494. --- *** relation: haplotype ***
  16495. --- *** relation type: VIEW ***
  16496. --- *** ***
  16497. --- *** A haplotype is one of a set of coexistin ***
  16498. --- *** g sequence variants of a haplotype block ***
  16499. --- *** . ***
  16500. --- ************************************************
  16501. ---
  16502. CREATE VIEW haplotype AS
  16503. SELECT
  16504. feature_id AS haplotype_id,
  16505. feature.*
  16506. FROM
  16507. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16508. WHERE cvterm.name = 'haplotype';
  16509. --- ************************************************
  16510. --- *** relation: polymorphic_sequence_variant ***
  16511. --- *** relation type: VIEW ***
  16512. --- *** ***
  16513. --- *** A sequence variant that is segregating i ***
  16514. --- *** n one or more natural populations of a s ***
  16515. --- *** pecies. ***
  16516. --- ************************************************
  16517. ---
  16518. CREATE VIEW polymorphic_sequence_variant AS
  16519. SELECT
  16520. feature_id AS polymorphic_sequence_variant_id,
  16521. feature.*
  16522. FROM
  16523. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16524. WHERE cvterm.name = 'polymorphic_sequence_variant';
  16525. --- ************************************************
  16526. --- *** relation: genome ***
  16527. --- *** relation type: VIEW ***
  16528. --- *** ***
  16529. --- *** A genome is the sum of genetic material ***
  16530. --- *** within a cell or virion. ***
  16531. --- ************************************************
  16532. ---
  16533. CREATE VIEW genome AS
  16534. SELECT
  16535. feature_id AS genome_id,
  16536. feature.*
  16537. FROM
  16538. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16539. WHERE cvterm.name = 'genome';
  16540. --- ************************************************
  16541. --- *** relation: genotype ***
  16542. --- *** relation type: VIEW ***
  16543. --- *** ***
  16544. --- *** A genotype is a variant genome, complete ***
  16545. --- *** or incomplete. ***
  16546. --- ************************************************
  16547. ---
  16548. CREATE VIEW genotype AS
  16549. SELECT
  16550. feature_id AS genotype_id,
  16551. feature.*
  16552. FROM
  16553. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16554. WHERE cvterm.name = 'diplotype' OR cvterm.name = 'genotype';
  16555. --- ************************************************
  16556. --- *** relation: diplotype ***
  16557. --- *** relation type: VIEW ***
  16558. --- *** ***
  16559. --- *** A diplotype is a pair of haplotypes from ***
  16560. --- *** a given individual. It is a genotype wh ***
  16561. --- *** ere the phase is known. ***
  16562. --- ************************************************
  16563. ---
  16564. CREATE VIEW diplotype AS
  16565. SELECT
  16566. feature_id AS diplotype_id,
  16567. feature.*
  16568. FROM
  16569. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16570. WHERE cvterm.name = 'diplotype';
  16571. --- ************************************************
  16572. --- *** relation: direction_attribute ***
  16573. --- *** relation type: VIEW ***
  16574. --- *** ***
  16575. --- ************************************************
  16576. ---
  16577. CREATE VIEW direction_attribute AS
  16578. SELECT
  16579. feature_id AS direction_attribute_id,
  16580. feature.*
  16581. FROM
  16582. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16583. WHERE cvterm.name = 'forward' OR cvterm.name = 'reverse' OR cvterm.name = 'direction_attribute';
  16584. --- ************************************************
  16585. --- *** relation: forward ***
  16586. --- *** relation type: VIEW ***
  16587. --- *** ***
  16588. --- *** Forward is an attribute of the feature, ***
  16589. --- *** where the feature is in the 5' to 3' dir ***
  16590. --- *** ection. ***
  16591. --- ************************************************
  16592. ---
  16593. CREATE VIEW forward AS
  16594. SELECT
  16595. feature_id AS forward_id,
  16596. feature.*
  16597. FROM
  16598. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16599. WHERE cvterm.name = 'forward';
  16600. --- ************************************************
  16601. --- *** relation: reverse ***
  16602. --- *** relation type: VIEW ***
  16603. --- *** ***
  16604. --- *** Reverse is an attribute of the feature, ***
  16605. --- *** where the feature is in the 3' to 5' dir ***
  16606. --- *** ection. Again could be applied to primer ***
  16607. --- *** . ***
  16608. --- ************************************************
  16609. ---
  16610. CREATE VIEW reverse AS
  16611. SELECT
  16612. feature_id AS reverse_id,
  16613. feature.*
  16614. FROM
  16615. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16616. WHERE cvterm.name = 'reverse';
  16617. --- ************************************************
  16618. --- *** relation: mitochondrial_dna ***
  16619. --- *** relation type: VIEW ***
  16620. --- *** ***
  16621. --- ************************************************
  16622. ---
  16623. CREATE VIEW mitochondrial_dna AS
  16624. SELECT
  16625. feature_id AS mitochondrial_dna_id,
  16626. feature.*
  16627. FROM
  16628. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16629. WHERE cvterm.name = 'mitochondrial_DNA';
  16630. --- ************************************************
  16631. --- *** relation: chloroplast_dna ***
  16632. --- *** relation type: VIEW ***
  16633. --- *** ***
  16634. --- ************************************************
  16635. ---
  16636. CREATE VIEW chloroplast_dna AS
  16637. SELECT
  16638. feature_id AS chloroplast_dna_id,
  16639. feature.*
  16640. FROM
  16641. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16642. WHERE cvterm.name = 'chloroplast_DNA';
  16643. --- ************************************************
  16644. --- *** relation: mirtron ***
  16645. --- *** relation type: VIEW ***
  16646. --- *** ***
  16647. --- *** A debranched intron which mimics the str ***
  16648. --- *** ucture of pre-miRNA and enters the miRNA ***
  16649. --- *** processing pathway without Drosha media ***
  16650. --- *** ted cleavage. ***
  16651. --- ************************************************
  16652. ---
  16653. CREATE VIEW mirtron AS
  16654. SELECT
  16655. feature_id AS mirtron_id,
  16656. feature.*
  16657. FROM
  16658. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16659. WHERE cvterm.name = 'mirtron';
  16660. --- ************************************************
  16661. --- *** relation: pirna ***
  16662. --- *** relation type: VIEW ***
  16663. --- *** ***
  16664. --- *** A small non coding RNA, part of a silenc ***
  16665. --- *** ing system that prevents the spreading o ***
  16666. --- *** f selfish genetic elements. ***
  16667. --- ************************************************
  16668. ---
  16669. CREATE VIEW pirna AS
  16670. SELECT
  16671. feature_id AS pirna_id,
  16672. feature.*
  16673. FROM
  16674. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16675. WHERE cvterm.name = 'piRNA';
  16676. --- ************************************************
  16677. --- *** relation: arginyl_trna ***
  16678. --- *** relation type: VIEW ***
  16679. --- *** ***
  16680. --- *** A tRNA sequence that has an arginine ant ***
  16681. --- *** icodon, and a 3' arginine binding region ***
  16682. --- *** . ***
  16683. --- ************************************************
  16684. ---
  16685. CREATE VIEW arginyl_trna AS
  16686. SELECT
  16687. feature_id AS arginyl_trna_id,
  16688. feature.*
  16689. FROM
  16690. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16691. WHERE cvterm.name = 'arginyl_tRNA';
  16692. --- ************************************************
  16693. --- *** relation: mobile_genetic_element ***
  16694. --- *** relation type: VIEW ***
  16695. --- *** ***
  16696. --- *** A nucleotide region with either intra-ge ***
  16697. --- *** nome or intracellular moblity, of varyin ***
  16698. --- *** g length, which often carry the informat ***
  16699. --- *** ion necessary for transfer and recombina ***
  16700. --- *** tion with the host genome. ***
  16701. --- ************************************************
  16702. ---
  16703. CREATE VIEW mobile_genetic_element AS
  16704. SELECT
  16705. feature_id AS mobile_genetic_element_id,
  16706. feature.*
  16707. FROM
  16708. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16709. 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';
  16710. --- ************************************************
  16711. --- *** relation: extrachromosomal_mobile_genetic_element ***
  16712. --- *** relation type: VIEW ***
  16713. --- *** ***
  16714. --- *** An MGE that is not integrated into the h ***
  16715. --- *** ost chromosome. ***
  16716. --- ************************************************
  16717. ---
  16718. CREATE VIEW extrachromosomal_mobile_genetic_element AS
  16719. SELECT
  16720. feature_id AS extrachromosomal_mobile_genetic_element_id,
  16721. feature.*
  16722. FROM
  16723. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16724. 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';
  16725. --- ************************************************
  16726. --- *** relation: integrated_mobile_genetic_element ***
  16727. --- *** relation type: VIEW ***
  16728. --- *** ***
  16729. --- *** An MGE that is integrated into the host ***
  16730. --- *** chromosome. ***
  16731. --- ************************************************
  16732. ---
  16733. CREATE VIEW integrated_mobile_genetic_element AS
  16734. SELECT
  16735. feature_id AS integrated_mobile_genetic_element_id,
  16736. feature.*
  16737. FROM
  16738. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16739. 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';
  16740. --- ************************************************
  16741. --- *** relation: integrated_plasmid ***
  16742. --- *** relation type: VIEW ***
  16743. --- *** ***
  16744. --- *** A plasmid sequence that is integrated wi ***
  16745. --- *** thin the host chromosome. ***
  16746. --- ************************************************
  16747. ---
  16748. CREATE VIEW integrated_plasmid AS
  16749. SELECT
  16750. feature_id AS integrated_plasmid_id,
  16751. feature.*
  16752. FROM
  16753. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16754. WHERE cvterm.name = 'integrated_plasmid';
  16755. --- ************************************************
  16756. --- *** relation: viral_sequence ***
  16757. --- *** relation type: VIEW ***
  16758. --- *** ***
  16759. --- *** The region of nucleotide sequence of a v ***
  16760. --- *** irus, a submicroscopic particle that rep ***
  16761. --- *** licates by infecting a host cell. ***
  16762. --- ************************************************
  16763. ---
  16764. CREATE VIEW viral_sequence AS
  16765. SELECT
  16766. feature_id AS viral_sequence_id,
  16767. feature.*
  16768. FROM
  16769. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16770. 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';
  16771. --- ************************************************
  16772. --- *** relation: phage_sequence ***
  16773. --- *** relation type: VIEW ***
  16774. --- *** ***
  16775. --- *** The nucleotide sequence of a virus that ***
  16776. --- *** infects bacteria. ***
  16777. --- ************************************************
  16778. ---
  16779. CREATE VIEW phage_sequence AS
  16780. SELECT
  16781. feature_id AS phage_sequence_id,
  16782. feature.*
  16783. FROM
  16784. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16785. WHERE cvterm.name = 'phage_sequence';
  16786. --- ************************************************
  16787. --- *** relation: attctn_site ***
  16788. --- *** relation type: VIEW ***
  16789. --- *** ***
  16790. --- *** An attachment site located on a conjugat ***
  16791. --- *** ive transposon and used for site-specifi ***
  16792. --- *** c integration of a conjugative transposo ***
  16793. --- *** n. ***
  16794. --- ************************************************
  16795. ---
  16796. CREATE VIEW attctn_site AS
  16797. SELECT
  16798. feature_id AS attctn_site_id,
  16799. feature.*
  16800. FROM
  16801. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16802. WHERE cvterm.name = 'attCtn_site';
  16803. --- ************************************************
  16804. --- *** relation: nuclear_mt_pseudogene ***
  16805. --- *** relation type: VIEW ***
  16806. --- *** ***
  16807. --- *** A nuclear pseudogene of a mitochndrial g ***
  16808. --- *** ene. ***
  16809. --- ************************************************
  16810. ---
  16811. CREATE VIEW nuclear_mt_pseudogene AS
  16812. SELECT
  16813. feature_id AS nuclear_mt_pseudogene_id,
  16814. feature.*
  16815. FROM
  16816. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16817. WHERE cvterm.name = 'nuclear_mt_pseudogene';
  16818. --- ************************************************
  16819. --- *** relation: cointegrated_plasmid ***
  16820. --- *** relation type: VIEW ***
  16821. --- *** ***
  16822. --- *** A MGE region consisting of two fused pla ***
  16823. --- *** smids resulting from a replicative trans ***
  16824. --- *** position event. ***
  16825. --- ************************************************
  16826. ---
  16827. CREATE VIEW cointegrated_plasmid AS
  16828. SELECT
  16829. feature_id AS cointegrated_plasmid_id,
  16830. feature.*
  16831. FROM
  16832. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16833. WHERE cvterm.name = 'cointegrated_plasmid';
  16834. --- ************************************************
  16835. --- *** relation: irlinv_site ***
  16836. --- *** relation type: VIEW ***
  16837. --- *** ***
  16838. --- *** Component of the inversion site located ***
  16839. --- *** at the left of a region susceptible to s ***
  16840. --- *** ite-specific inversion. ***
  16841. --- ************************************************
  16842. ---
  16843. CREATE VIEW irlinv_site AS
  16844. SELECT
  16845. feature_id AS irlinv_site_id,
  16846. feature.*
  16847. FROM
  16848. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16849. WHERE cvterm.name = 'IRLinv_site';
  16850. --- ************************************************
  16851. --- *** relation: irrinv_site ***
  16852. --- *** relation type: VIEW ***
  16853. --- *** ***
  16854. --- *** Component of the inversion site located ***
  16855. --- *** at the right of a region susceptible to ***
  16856. --- *** site-specific inversion. ***
  16857. --- ************************************************
  16858. ---
  16859. CREATE VIEW irrinv_site AS
  16860. SELECT
  16861. feature_id AS irrinv_site_id,
  16862. feature.*
  16863. FROM
  16864. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16865. WHERE cvterm.name = 'IRRinv_site';
  16866. --- ************************************************
  16867. --- *** relation: inversion_site_part ***
  16868. --- *** relation type: VIEW ***
  16869. --- *** ***
  16870. --- *** A region located within an inversion sit ***
  16871. --- *** e. ***
  16872. --- ************************************************
  16873. ---
  16874. CREATE VIEW inversion_site_part AS
  16875. SELECT
  16876. feature_id AS inversion_site_part_id,
  16877. feature.*
  16878. FROM
  16879. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16880. WHERE cvterm.name = 'IRLinv_site' OR cvterm.name = 'IRRinv_site' OR cvterm.name = 'inversion_site_part';
  16881. --- ************************************************
  16882. --- *** relation: defective_conjugative_transposon ***
  16883. --- *** relation type: VIEW ***
  16884. --- *** ***
  16885. --- *** An island that contains genes for integr ***
  16886. --- *** ation/excision and the gene and site for ***
  16887. --- *** the initiation of intercellular transfe ***
  16888. --- *** r by conjugation. It can be complemented ***
  16889. --- *** for transfer by a conjugative transposo ***
  16890. --- *** n. ***
  16891. --- ************************************************
  16892. ---
  16893. CREATE VIEW defective_conjugative_transposon AS
  16894. SELECT
  16895. feature_id AS defective_conjugative_transposon_id,
  16896. feature.*
  16897. FROM
  16898. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16899. WHERE cvterm.name = 'defective_conjugative_transposon';
  16900. --- ************************************************
  16901. --- *** relation: repeat_fragment ***
  16902. --- *** relation type: VIEW ***
  16903. --- *** ***
  16904. --- *** A portion of a repeat, interrupted by th ***
  16905. --- *** e insertion of another element. ***
  16906. --- ************************************************
  16907. ---
  16908. CREATE VIEW repeat_fragment AS
  16909. SELECT
  16910. feature_id AS repeat_fragment_id,
  16911. feature.*
  16912. FROM
  16913. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16914. WHERE cvterm.name = 'repeat_fragment';
  16915. --- ************************************************
  16916. --- *** relation: transposon_fragment ***
  16917. --- *** relation type: VIEW ***
  16918. --- *** ***
  16919. --- ************************************************
  16920. ---
  16921. CREATE VIEW transposon_fragment AS
  16922. SELECT
  16923. feature_id AS transposon_fragment_id,
  16924. feature.*
  16925. FROM
  16926. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16927. WHERE cvterm.name = 'transposon_fragment';
  16928. --- ************************************************
  16929. --- *** relation: transcriptional_cis_regulatory_region ***
  16930. --- *** relation type: VIEW ***
  16931. --- *** ***
  16932. --- *** A regulatory_region that modulates the t ***
  16933. --- *** ranscription of a gene or genes. ***
  16934. --- ************************************************
  16935. ---
  16936. CREATE VIEW transcriptional_cis_regulatory_region AS
  16937. SELECT
  16938. feature_id AS transcriptional_cis_regulatory_region_id,
  16939. feature.*
  16940. FROM
  16941. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16942. 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';
  16943. --- ************************************************
  16944. --- *** relation: splicing_regulatory_region ***
  16945. --- *** relation type: VIEW ***
  16946. --- *** ***
  16947. --- *** A regulatory_region that modulates splic ***
  16948. --- *** ing. ***
  16949. --- ************************************************
  16950. ---
  16951. CREATE VIEW splicing_regulatory_region AS
  16952. SELECT
  16953. feature_id AS splicing_regulatory_region_id,
  16954. feature.*
  16955. FROM
  16956. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16957. WHERE cvterm.name = 'splice_enhancer' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' OR cvterm.name = 'splicing_regulatory_region';
  16958. --- ************************************************
  16959. --- *** relation: promoter_targeting_sequence ***
  16960. --- *** relation type: VIEW ***
  16961. --- *** ***
  16962. --- *** A transcriptional_cis_regulatory_region ***
  16963. --- *** that restricts the activity of a CRM to ***
  16964. --- *** a single promoter and which functions on ***
  16965. --- *** ly when both itself and an insulator are ***
  16966. --- *** located between the CRM and the promote ***
  16967. --- *** r. ***
  16968. --- ************************************************
  16969. ---
  16970. CREATE VIEW promoter_targeting_sequence AS
  16971. SELECT
  16972. feature_id AS promoter_targeting_sequence_id,
  16973. feature.*
  16974. FROM
  16975. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16976. WHERE cvterm.name = 'promoter_targeting_sequence';
  16977. --- ************************************************
  16978. --- *** relation: sequence_alteration ***
  16979. --- *** relation type: VIEW ***
  16980. --- *** ***
  16981. --- *** A sequence_alteration is a sequence_feat ***
  16982. --- *** ure whose extent is the deviation from a ***
  16983. --- *** nother sequence. ***
  16984. --- ************************************************
  16985. ---
  16986. CREATE VIEW sequence_alteration AS
  16987. SELECT
  16988. feature_id AS sequence_alteration_id,
  16989. feature.*
  16990. FROM
  16991. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16992. 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';
  16993. --- ************************************************
  16994. --- *** relation: sequence_variant ***
  16995. --- *** relation type: VIEW ***
  16996. --- *** ***
  16997. --- *** A sequence_variant is a non exact copy o ***
  16998. --- *** f a sequence_feature or genome exhibitin ***
  16999. --- *** g one or more sequence_alteration. ***
  17000. --- ************************************************
  17001. ---
  17002. CREATE VIEW sequence_variant AS
  17003. SELECT
  17004. feature_id AS sequence_variant_id,
  17005. feature.*
  17006. FROM
  17007. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17008. 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';
  17009. --- ************************************************
  17010. --- *** relation: propeptide_cleavage_site ***
  17011. --- *** relation type: VIEW ***
  17012. --- *** ***
  17013. --- *** The propeptide_cleavage_site is the argi ***
  17014. --- *** nine/lysine boundary on a propeptide whe ***
  17015. --- *** re cleavage occurs. ***
  17016. --- ************************************************
  17017. ---
  17018. CREATE VIEW propeptide_cleavage_site AS
  17019. SELECT
  17020. feature_id AS propeptide_cleavage_site_id,
  17021. feature.*
  17022. FROM
  17023. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17024. WHERE cvterm.name = 'propeptide_cleavage_site';
  17025. --- ************************************************
  17026. --- *** relation: propeptide ***
  17027. --- *** relation type: VIEW ***
  17028. --- *** ***
  17029. --- *** Part of a peptide chain which is cleaved ***
  17030. --- *** off during the formation of the mature ***
  17031. --- *** protein. ***
  17032. --- ************************************************
  17033. ---
  17034. CREATE VIEW propeptide AS
  17035. SELECT
  17036. feature_id AS propeptide_id,
  17037. feature.*
  17038. FROM
  17039. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17040. WHERE cvterm.name = 'propeptide';
  17041. --- ************************************************
  17042. --- *** relation: immature_peptide_region ***
  17043. --- *** relation type: VIEW ***
  17044. --- *** ***
  17045. --- *** An immature_peptide_region is the extent ***
  17046. --- *** of the peptide after it has been transl ***
  17047. --- *** ated and before any processing occurs. ***
  17048. --- ************************************************
  17049. ---
  17050. CREATE VIEW immature_peptide_region AS
  17051. SELECT
  17052. feature_id AS immature_peptide_region_id,
  17053. feature.*
  17054. FROM
  17055. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17056. WHERE cvterm.name = 'immature_peptide_region';
  17057. --- ************************************************
  17058. --- *** relation: active_peptide ***
  17059. --- *** relation type: VIEW ***
  17060. --- *** ***
  17061. --- *** Active peptides are proteins which are b ***
  17062. --- *** iologically active, released from a prec ***
  17063. --- *** ursor molecule. ***
  17064. --- ************************************************
  17065. ---
  17066. CREATE VIEW active_peptide AS
  17067. SELECT
  17068. feature_id AS active_peptide_id,
  17069. feature.*
  17070. FROM
  17071. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17072. WHERE cvterm.name = 'active_peptide';
  17073. --- ************************************************
  17074. --- *** relation: compositionally_biased_region_of_peptide ***
  17075. --- *** relation type: VIEW ***
  17076. --- *** ***
  17077. --- *** Polypeptide region that is rich in a par ***
  17078. --- *** ticular amino acid or homopolymeric and ***
  17079. --- *** greater than three residues in length. ***
  17080. --- ************************************************
  17081. ---
  17082. CREATE VIEW compositionally_biased_region_of_peptide AS
  17083. SELECT
  17084. feature_id AS compositionally_biased_region_of_peptide_id,
  17085. feature.*
  17086. FROM
  17087. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17088. WHERE cvterm.name = 'compositionally_biased_region_of_peptide';
  17089. --- ************************************************
  17090. --- *** relation: polypeptide_motif ***
  17091. --- *** relation type: VIEW ***
  17092. --- *** ***
  17093. --- *** A sequence motif is a short (up to 20 am ***
  17094. --- *** ino acids) region of biological interest ***
  17095. --- *** . Such motifs, although they are too sho ***
  17096. --- *** rt to constitute functional domains, sha ***
  17097. --- *** re sequence similarities and are conserv ***
  17098. --- *** ed in different proteins. They display a ***
  17099. --- *** common function (protein-binding, subce ***
  17100. --- *** llular location etc.). ***
  17101. --- ************************************************
  17102. ---
  17103. CREATE VIEW polypeptide_motif AS
  17104. SELECT
  17105. feature_id AS polypeptide_motif_id,
  17106. feature.*
  17107. FROM
  17108. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17109. 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';
  17110. --- ************************************************
  17111. --- *** relation: polypeptide_repeat ***
  17112. --- *** relation type: VIEW ***
  17113. --- *** ***
  17114. --- *** A polypeptide_repeat is a single copy of ***
  17115. --- *** an internal sequence repetition. ***
  17116. --- ************************************************
  17117. ---
  17118. CREATE VIEW polypeptide_repeat AS
  17119. SELECT
  17120. feature_id AS polypeptide_repeat_id,
  17121. feature.*
  17122. FROM
  17123. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17124. WHERE cvterm.name = 'polypeptide_repeat';
  17125. --- ************************************************
  17126. --- *** relation: polypeptide_structural_region ***
  17127. --- *** relation type: VIEW ***
  17128. --- *** ***
  17129. --- *** Region of polypeptide with a given struc ***
  17130. --- *** tural property. ***
  17131. --- ************************************************
  17132. ---
  17133. CREATE VIEW polypeptide_structural_region AS
  17134. SELECT
  17135. feature_id AS polypeptide_structural_region_id,
  17136. feature.*
  17137. FROM
  17138. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17139. 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';
  17140. --- ************************************************
  17141. --- *** relation: membrane_structure ***
  17142. --- *** relation type: VIEW ***
  17143. --- *** ***
  17144. --- *** Arrangement of the polypeptide with resp ***
  17145. --- *** ect to the lipid bilayer. ***
  17146. --- ************************************************
  17147. ---
  17148. CREATE VIEW membrane_structure AS
  17149. SELECT
  17150. feature_id AS membrane_structure_id,
  17151. feature.*
  17152. FROM
  17153. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17154. WHERE cvterm.name = 'membrane_structure';
  17155. --- ************************************************
  17156. --- *** relation: extramembrane_polypeptide_region ***
  17157. --- *** relation type: VIEW ***
  17158. --- *** ***
  17159. --- *** Polypeptide region that is localized out ***
  17160. --- *** side of a lipid bilayer. ***
  17161. --- ************************************************
  17162. ---
  17163. CREATE VIEW extramembrane_polypeptide_region AS
  17164. SELECT
  17165. feature_id AS extramembrane_polypeptide_region_id,
  17166. feature.*
  17167. FROM
  17168. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17169. WHERE cvterm.name = 'cytoplasmic_polypeptide_region' OR cvterm.name = 'non_cytoplasmic_polypeptide_region' OR cvterm.name = 'extramembrane_polypeptide_region';
  17170. --- ************************************************
  17171. --- *** relation: cytoplasmic_polypeptide_region ***
  17172. --- *** relation type: VIEW ***
  17173. --- *** ***
  17174. --- *** Polypeptide region that is localized ins ***
  17175. --- *** ide the cytoplasm. ***
  17176. --- ************************************************
  17177. ---
  17178. CREATE VIEW cytoplasmic_polypeptide_region AS
  17179. SELECT
  17180. feature_id AS cytoplasmic_polypeptide_region_id,
  17181. feature.*
  17182. FROM
  17183. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17184. WHERE cvterm.name = 'cytoplasmic_polypeptide_region';
  17185. --- ************************************************
  17186. --- *** relation: non_cytoplasmic_polypeptide_region ***
  17187. --- *** relation type: VIEW ***
  17188. --- *** ***
  17189. --- *** Polypeptide region that is localized out ***
  17190. --- *** side of a lipid bilayer and outside of t ***
  17191. --- *** he cytoplasm. ***
  17192. --- ************************************************
  17193. ---
  17194. CREATE VIEW non_cytoplasmic_polypeptide_region AS
  17195. SELECT
  17196. feature_id AS non_cytoplasmic_polypeptide_region_id,
  17197. feature.*
  17198. FROM
  17199. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17200. WHERE cvterm.name = 'non_cytoplasmic_polypeptide_region';
  17201. --- ************************************************
  17202. --- *** relation: intramembrane_polypeptide_region ***
  17203. --- *** relation type: VIEW ***
  17204. --- *** ***
  17205. --- *** Polypeptide region present in the lipid ***
  17206. --- *** bilayer. ***
  17207. --- ************************************************
  17208. ---
  17209. CREATE VIEW intramembrane_polypeptide_region AS
  17210. SELECT
  17211. feature_id AS intramembrane_polypeptide_region_id,
  17212. feature.*
  17213. FROM
  17214. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17215. WHERE cvterm.name = 'membrane_peptide_loop' OR cvterm.name = 'transmembrane_polypeptide_region' OR cvterm.name = 'intramembrane_polypeptide_region';
  17216. --- ************************************************
  17217. --- *** relation: membrane_peptide_loop ***
  17218. --- *** relation type: VIEW ***
  17219. --- *** ***
  17220. --- *** Polypeptide region localized within the ***
  17221. --- *** lipid bilayer where both ends traverse t ***
  17222. --- *** he same membrane. ***
  17223. --- ************************************************
  17224. ---
  17225. CREATE VIEW membrane_peptide_loop AS
  17226. SELECT
  17227. feature_id AS membrane_peptide_loop_id,
  17228. feature.*
  17229. FROM
  17230. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17231. WHERE cvterm.name = 'membrane_peptide_loop';
  17232. --- ************************************************
  17233. --- *** relation: transmembrane_polypeptide_region ***
  17234. --- *** relation type: VIEW ***
  17235. --- *** ***
  17236. --- *** Polypeptide region traversing the lipid ***
  17237. --- *** bilayer. ***
  17238. --- ************************************************
  17239. ---
  17240. CREATE VIEW transmembrane_polypeptide_region AS
  17241. SELECT
  17242. feature_id AS transmembrane_polypeptide_region_id,
  17243. feature.*
  17244. FROM
  17245. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17246. WHERE cvterm.name = 'transmembrane_polypeptide_region';
  17247. --- ************************************************
  17248. --- *** relation: polypeptide_secondary_structure ***
  17249. --- *** relation type: VIEW ***
  17250. --- *** ***
  17251. --- *** A region of peptide with secondary struc ***
  17252. --- *** ture has hydrogen bonding along the pept ***
  17253. --- *** ide chain that causes a defined conforma ***
  17254. --- *** tion of the chain. ***
  17255. --- ************************************************
  17256. ---
  17257. CREATE VIEW polypeptide_secondary_structure AS
  17258. SELECT
  17259. feature_id AS polypeptide_secondary_structure_id,
  17260. feature.*
  17261. FROM
  17262. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17263. 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';
  17264. --- ************************************************
  17265. --- *** relation: polypeptide_structural_motif ***
  17266. --- *** relation type: VIEW ***
  17267. --- *** ***
  17268. --- *** Motif is a three-dimensional structural ***
  17269. --- *** element within the chain, which appears ***
  17270. --- *** also in a variety of other molecules. Un ***
  17271. --- *** like a domain, a motif does not need to ***
  17272. --- *** form a stable globular unit. ***
  17273. --- ************************************************
  17274. ---
  17275. CREATE VIEW polypeptide_structural_motif AS
  17276. SELECT
  17277. feature_id AS polypeptide_structural_motif_id,
  17278. feature.*
  17279. FROM
  17280. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17281. WHERE cvterm.name = 'coiled_coil' OR cvterm.name = 'helix_turn_helix' OR cvterm.name = 'polypeptide_structural_motif';
  17282. --- ************************************************
  17283. --- *** relation: coiled_coil ***
  17284. --- *** relation type: VIEW ***
  17285. --- *** ***
  17286. --- *** A coiled coil is a structural motif in p ***
  17287. --- *** roteins, in which alpha-helices are coil ***
  17288. --- *** ed together like the strands of a rope. ***
  17289. --- ************************************************
  17290. ---
  17291. CREATE VIEW coiled_coil AS
  17292. SELECT
  17293. feature_id AS coiled_coil_id,
  17294. feature.*
  17295. FROM
  17296. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17297. WHERE cvterm.name = 'coiled_coil';
  17298. --- ************************************************
  17299. --- *** relation: helix_turn_helix ***
  17300. --- *** relation type: VIEW ***
  17301. --- *** ***
  17302. --- *** A motif comprising two helices separated ***
  17303. --- *** by a turn. ***
  17304. --- ************************************************
  17305. ---
  17306. CREATE VIEW helix_turn_helix AS
  17307. SELECT
  17308. feature_id AS helix_turn_helix_id,
  17309. feature.*
  17310. FROM
  17311. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17312. WHERE cvterm.name = 'helix_turn_helix';
  17313. --- ************************************************
  17314. --- *** relation: polypeptide_sequencing_information ***
  17315. --- *** relation type: VIEW ***
  17316. --- *** ***
  17317. --- *** Incompatibility in the sequence due to s ***
  17318. --- *** ome experimental problem. ***
  17319. --- ************************************************
  17320. ---
  17321. CREATE VIEW polypeptide_sequencing_information AS
  17322. SELECT
  17323. feature_id AS polypeptide_sequencing_information_id,
  17324. feature.*
  17325. FROM
  17326. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17327. 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';
  17328. --- ************************************************
  17329. --- *** relation: non_adjacent_residues ***
  17330. --- *** relation type: VIEW ***
  17331. --- *** ***
  17332. --- *** Indicates that two consecutive residues ***
  17333. --- *** in a fragment sequence are not consecuti ***
  17334. --- *** ve in the full-length protein and that t ***
  17335. --- *** here are a number of unsequenced residue ***
  17336. --- *** s between them. ***
  17337. --- ************************************************
  17338. ---
  17339. CREATE VIEW non_adjacent_residues AS
  17340. SELECT
  17341. feature_id AS non_adjacent_residues_id,
  17342. feature.*
  17343. FROM
  17344. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17345. WHERE cvterm.name = 'non_adjacent_residues';
  17346. --- ************************************************
  17347. --- *** relation: non_terminal_residue ***
  17348. --- *** relation type: VIEW ***
  17349. --- *** ***
  17350. --- *** The residue at an extremity of the seque ***
  17351. --- *** nce is not the terminal residue. ***
  17352. --- ************************************************
  17353. ---
  17354. CREATE VIEW non_terminal_residue AS
  17355. SELECT
  17356. feature_id AS non_terminal_residue_id,
  17357. feature.*
  17358. FROM
  17359. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17360. WHERE cvterm.name = 'non_terminal_residue';
  17361. --- ************************************************
  17362. --- *** relation: sequence_conflict ***
  17363. --- *** relation type: VIEW ***
  17364. --- *** ***
  17365. --- *** Different sources report differing seque ***
  17366. --- *** nces. ***
  17367. --- ************************************************
  17368. ---
  17369. CREATE VIEW sequence_conflict AS
  17370. SELECT
  17371. feature_id AS sequence_conflict_id,
  17372. feature.*
  17373. FROM
  17374. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17375. WHERE cvterm.name = 'sequence_conflict';
  17376. --- ************************************************
  17377. --- *** relation: sequence_uncertainty ***
  17378. --- *** relation type: VIEW ***
  17379. --- *** ***
  17380. --- *** Describes the positions in a sequence wh ***
  17381. --- *** ere the authors are unsure about the seq ***
  17382. --- *** uence assignment. ***
  17383. --- ************************************************
  17384. ---
  17385. CREATE VIEW sequence_uncertainty AS
  17386. SELECT
  17387. feature_id AS sequence_uncertainty_id,
  17388. feature.*
  17389. FROM
  17390. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17391. WHERE cvterm.name = 'sequence_uncertainty';
  17392. --- ************************************************
  17393. --- *** relation: post_translationally_modified_region ***
  17394. --- *** relation type: VIEW ***
  17395. --- *** ***
  17396. --- *** A region where a transformation occurs i ***
  17397. --- *** n a protein after it has been synthesize ***
  17398. --- *** d. This which may regulate, stabilize, c ***
  17399. --- *** rosslink or introduce new chemical funct ***
  17400. --- *** ionalities in the protein. ***
  17401. --- ************************************************
  17402. ---
  17403. CREATE VIEW post_translationally_modified_region AS
  17404. SELECT
  17405. feature_id AS post_translationally_modified_region_id,
  17406. feature.*
  17407. FROM
  17408. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17409. WHERE cvterm.name = 'post_translationally_modified_region';
  17410. --- ************************************************
  17411. --- *** relation: polypeptide_metal_contact ***
  17412. --- *** relation type: VIEW ***
  17413. --- *** ***
  17414. --- *** Residue is part of a binding site for a ***
  17415. --- *** metal ion. ***
  17416. --- ************************************************
  17417. ---
  17418. CREATE VIEW polypeptide_metal_contact AS
  17419. SELECT
  17420. feature_id AS polypeptide_metal_contact_id,
  17421. feature.*
  17422. FROM
  17423. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17424. 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';
  17425. --- ************************************************
  17426. --- *** relation: protein_protein_contact ***
  17427. --- *** relation type: VIEW ***
  17428. --- *** ***
  17429. --- *** Residues involved in protein-protein int ***
  17430. --- *** eractions. ***
  17431. --- ************************************************
  17432. ---
  17433. CREATE VIEW protein_protein_contact AS
  17434. SELECT
  17435. feature_id AS protein_protein_contact_id,
  17436. feature.*
  17437. FROM
  17438. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17439. WHERE cvterm.name = 'protein_protein_contact';
  17440. --- ************************************************
  17441. --- *** relation: polypeptide_calcium_ion_contact_site ***
  17442. --- *** relation type: VIEW ***
  17443. --- *** ***
  17444. --- *** Residue involved in contact with calcium ***
  17445. --- *** . ***
  17446. --- ************************************************
  17447. ---
  17448. CREATE VIEW polypeptide_calcium_ion_contact_site AS
  17449. SELECT
  17450. feature_id AS polypeptide_calcium_ion_contact_site_id,
  17451. feature.*
  17452. FROM
  17453. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17454. WHERE cvterm.name = 'polypeptide_calcium_ion_contact_site';
  17455. --- ************************************************
  17456. --- *** relation: polypeptide_cobalt_ion_contact_site ***
  17457. --- *** relation type: VIEW ***
  17458. --- *** ***
  17459. --- *** Residue involved in contact with cobalt. ***
  17460. --- ************************************************
  17461. ---
  17462. CREATE VIEW polypeptide_cobalt_ion_contact_site AS
  17463. SELECT
  17464. feature_id AS polypeptide_cobalt_ion_contact_site_id,
  17465. feature.*
  17466. FROM
  17467. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17468. WHERE cvterm.name = 'polypeptide_cobalt_ion_contact_site';
  17469. --- ************************************************
  17470. --- *** relation: polypeptide_copper_ion_contact_site ***
  17471. --- *** relation type: VIEW ***
  17472. --- *** ***
  17473. --- *** Residue involved in contact with copper. ***
  17474. --- ************************************************
  17475. ---
  17476. CREATE VIEW polypeptide_copper_ion_contact_site AS
  17477. SELECT
  17478. feature_id AS polypeptide_copper_ion_contact_site_id,
  17479. feature.*
  17480. FROM
  17481. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17482. WHERE cvterm.name = 'polypeptide_copper_ion_contact_site';
  17483. --- ************************************************
  17484. --- *** relation: polypeptide_iron_ion_contact_site ***
  17485. --- *** relation type: VIEW ***
  17486. --- *** ***
  17487. --- *** Residue involved in contact with iron. ***
  17488. --- ************************************************
  17489. ---
  17490. CREATE VIEW polypeptide_iron_ion_contact_site AS
  17491. SELECT
  17492. feature_id AS polypeptide_iron_ion_contact_site_id,
  17493. feature.*
  17494. FROM
  17495. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17496. WHERE cvterm.name = 'polypeptide_iron_ion_contact_site';
  17497. --- ************************************************
  17498. --- *** relation: polypeptide_magnesium_ion_contact_site ***
  17499. --- *** relation type: VIEW ***
  17500. --- *** ***
  17501. --- *** Residue involved in contact with magnesi ***
  17502. --- *** um. ***
  17503. --- ************************************************
  17504. ---
  17505. CREATE VIEW polypeptide_magnesium_ion_contact_site AS
  17506. SELECT
  17507. feature_id AS polypeptide_magnesium_ion_contact_site_id,
  17508. feature.*
  17509. FROM
  17510. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17511. WHERE cvterm.name = 'polypeptide_magnesium_ion_contact_site';
  17512. --- ************************************************
  17513. --- *** relation: polypeptide_manganese_ion_contact_site ***
  17514. --- *** relation type: VIEW ***
  17515. --- *** ***
  17516. --- *** Residue involved in contact with mangane ***
  17517. --- *** se. ***
  17518. --- ************************************************
  17519. ---
  17520. CREATE VIEW polypeptide_manganese_ion_contact_site AS
  17521. SELECT
  17522. feature_id AS polypeptide_manganese_ion_contact_site_id,
  17523. feature.*
  17524. FROM
  17525. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17526. WHERE cvterm.name = 'polypeptide_manganese_ion_contact_site';
  17527. --- ************************************************
  17528. --- *** relation: polypeptide_molybdenum_ion_contact_site ***
  17529. --- *** relation type: VIEW ***
  17530. --- *** ***
  17531. --- *** Residue involved in contact with molybde ***
  17532. --- *** num. ***
  17533. --- ************************************************
  17534. ---
  17535. CREATE VIEW polypeptide_molybdenum_ion_contact_site AS
  17536. SELECT
  17537. feature_id AS polypeptide_molybdenum_ion_contact_site_id,
  17538. feature.*
  17539. FROM
  17540. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17541. WHERE cvterm.name = 'polypeptide_molybdenum_ion_contact_site';
  17542. --- ************************************************
  17543. --- *** relation: polypeptide_nickel_ion_contact_site ***
  17544. --- *** relation type: VIEW ***
  17545. --- *** ***
  17546. --- *** Residue involved in contact with nickel. ***
  17547. --- ************************************************
  17548. ---
  17549. CREATE VIEW polypeptide_nickel_ion_contact_site AS
  17550. SELECT
  17551. feature_id AS polypeptide_nickel_ion_contact_site_id,
  17552. feature.*
  17553. FROM
  17554. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17555. WHERE cvterm.name = 'polypeptide_nickel_ion_contact_site';
  17556. --- ************************************************
  17557. --- *** relation: polypeptide_tungsten_ion_contact_site ***
  17558. --- *** relation type: VIEW ***
  17559. --- *** ***
  17560. --- *** Residue involved in contact with tungste ***
  17561. --- *** n. ***
  17562. --- ************************************************
  17563. ---
  17564. CREATE VIEW polypeptide_tungsten_ion_contact_site AS
  17565. SELECT
  17566. feature_id AS polypeptide_tungsten_ion_contact_site_id,
  17567. feature.*
  17568. FROM
  17569. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17570. WHERE cvterm.name = 'polypeptide_tungsten_ion_contact_site';
  17571. --- ************************************************
  17572. --- *** relation: polypeptide_zinc_ion_contact_site ***
  17573. --- *** relation type: VIEW ***
  17574. --- *** ***
  17575. --- *** Residue involved in contact with zinc. ***
  17576. --- ************************************************
  17577. ---
  17578. CREATE VIEW polypeptide_zinc_ion_contact_site AS
  17579. SELECT
  17580. feature_id AS polypeptide_zinc_ion_contact_site_id,
  17581. feature.*
  17582. FROM
  17583. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17584. WHERE cvterm.name = 'polypeptide_zinc_ion_contact_site';
  17585. --- ************************************************
  17586. --- *** relation: catalytic_residue ***
  17587. --- *** relation type: VIEW ***
  17588. --- *** ***
  17589. --- *** Amino acid involved in the activity of a ***
  17590. --- *** n enzyme. ***
  17591. --- ************************************************
  17592. ---
  17593. CREATE VIEW catalytic_residue AS
  17594. SELECT
  17595. feature_id AS catalytic_residue_id,
  17596. feature.*
  17597. FROM
  17598. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17599. WHERE cvterm.name = 'catalytic_residue';
  17600. --- ************************************************
  17601. --- *** relation: polypeptide_ligand_contact ***
  17602. --- *** relation type: VIEW ***
  17603. --- *** ***
  17604. --- *** Residues which interact with a ligand. ***
  17605. --- ************************************************
  17606. ---
  17607. CREATE VIEW polypeptide_ligand_contact AS
  17608. SELECT
  17609. feature_id AS polypeptide_ligand_contact_id,
  17610. feature.*
  17611. FROM
  17612. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17613. WHERE cvterm.name = 'polypeptide_ligand_contact';
  17614. --- ************************************************
  17615. --- *** relation: asx_motif ***
  17616. --- *** relation type: VIEW ***
  17617. --- *** ***
  17618. --- *** A motif of five consecutive residues and ***
  17619. --- *** two H-bonds in which: Residue(i) is Asp ***
  17620. --- *** artate or Asparagine (Asx), side-chain O ***
  17621. --- *** of residue(i) is H-bonded to the main-c ***
  17622. --- *** hain NH of residue(i+2) or (i+3), main-c ***
  17623. --- *** hain CO of residue(i) is H-bonded to the ***
  17624. --- *** main-chain NH of residue(i+3) or (i+4). ***
  17625. --- ************************************************
  17626. ---
  17627. CREATE VIEW asx_motif AS
  17628. SELECT
  17629. feature_id AS asx_motif_id,
  17630. feature.*
  17631. FROM
  17632. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17633. WHERE cvterm.name = 'asx_motif';
  17634. --- ************************************************
  17635. --- *** relation: beta_bulge ***
  17636. --- *** relation type: VIEW ***
  17637. --- *** ***
  17638. --- *** A motif of three residues within a beta- ***
  17639. --- *** sheet in which the main chains of two co ***
  17640. --- *** nsecutive residues are H-bonded to that ***
  17641. --- *** of the third, and in which the dihedral ***
  17642. --- *** angles are as follows: Residue(i): -140 ***
  17643. --- *** degrees < phi(l) -20 degrees , -90 degre ***
  17644. --- *** es < psi(l) < 40 degrees. Residue (i+1): ***
  17645. --- *** -180 degrees < phi < -25 degrees or +12 ***
  17646. --- *** 0 degrees < phi < +180 degrees, +40 degr ***
  17647. --- *** ees < psi < +180 degrees or -180 degrees ***
  17648. --- *** < psi < -120 degrees. ***
  17649. --- ************************************************
  17650. ---
  17651. CREATE VIEW beta_bulge AS
  17652. SELECT
  17653. feature_id AS beta_bulge_id,
  17654. feature.*
  17655. FROM
  17656. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17657. WHERE cvterm.name = 'beta_bulge';
  17658. --- ************************************************
  17659. --- *** relation: beta_bulge_loop ***
  17660. --- *** relation type: VIEW ***
  17661. --- *** ***
  17662. --- *** A motif of three residues within a beta- ***
  17663. --- *** sheet consisting of two H-bonds. Beta bu ***
  17664. --- *** lge loops often occur at the loop ends o ***
  17665. --- *** f beta-hairpins. ***
  17666. --- ************************************************
  17667. ---
  17668. CREATE VIEW beta_bulge_loop AS
  17669. SELECT
  17670. feature_id AS beta_bulge_loop_id,
  17671. feature.*
  17672. FROM
  17673. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17674. WHERE cvterm.name = 'beta_bulge_loop_five' OR cvterm.name = 'beta_bulge_loop_six' OR cvterm.name = 'beta_bulge_loop';
  17675. --- ************************************************
  17676. --- *** relation: beta_bulge_loop_five ***
  17677. --- *** relation type: VIEW ***
  17678. --- *** ***
  17679. --- *** A motif of three residues within a beta- ***
  17680. --- *** sheet consisting of two H-bonds in which ***
  17681. --- *** : the main-chain NH of residue(i) is H-b ***
  17682. --- *** onded to the main-chain CO of residue(i+ ***
  17683. --- *** 4), the main-chain CO of residue i is H- ***
  17684. --- *** bonded to the main-chain NH of residue(i ***
  17685. --- *** +3), these loops have an RL nest at resi ***
  17686. --- *** dues i+2 and i+3. ***
  17687. --- ************************************************
  17688. ---
  17689. CREATE VIEW beta_bulge_loop_five AS
  17690. SELECT
  17691. feature_id AS beta_bulge_loop_five_id,
  17692. feature.*
  17693. FROM
  17694. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17695. WHERE cvterm.name = 'beta_bulge_loop_five';
  17696. --- ************************************************
  17697. --- *** relation: beta_bulge_loop_six ***
  17698. --- *** relation type: VIEW ***
  17699. --- *** ***
  17700. --- *** A motif of three residues within a beta- ***
  17701. --- *** sheet consisting of two H-bonds in which ***
  17702. --- *** : the main-chain NH of residue(i) is H-b ***
  17703. --- *** onded to the main-chain CO of residue(i+ ***
  17704. --- *** 5), the main-chain CO of residue i is H- ***
  17705. --- *** bonded to the main-chain NH of residue(i ***
  17706. --- *** +4), these loops have an RL nest at resi ***
  17707. --- *** dues i+3 and i+4. ***
  17708. --- ************************************************
  17709. ---
  17710. CREATE VIEW beta_bulge_loop_six AS
  17711. SELECT
  17712. feature_id AS beta_bulge_loop_six_id,
  17713. feature.*
  17714. FROM
  17715. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17716. WHERE cvterm.name = 'beta_bulge_loop_six';
  17717. --- ************************************************
  17718. --- *** relation: beta_strand ***
  17719. --- *** relation type: VIEW ***
  17720. --- *** ***
  17721. --- *** A beta strand describes a single length ***
  17722. --- *** of polypeptide chain that forms part of ***
  17723. --- *** a beta sheet. A single continuous stretc ***
  17724. --- *** h of amino acids adopting an extended co ***
  17725. --- *** nformation of hydrogen bonds between the ***
  17726. --- *** N-O and the C=O of another part of the ***
  17727. --- *** peptide. This forms a secondary protein ***
  17728. --- *** structure in which two or more extended ***
  17729. --- *** polypeptide regions are hydrogen-bonded ***
  17730. --- *** to one another in a planar array. ***
  17731. --- ************************************************
  17732. ---
  17733. CREATE VIEW beta_strand AS
  17734. SELECT
  17735. feature_id AS beta_strand_id,
  17736. feature.*
  17737. FROM
  17738. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17739. WHERE cvterm.name = 'antiparallel_beta_strand' OR cvterm.name = 'parallel_beta_strand' OR cvterm.name = 'beta_strand';
  17740. --- ************************************************
  17741. --- *** relation: antiparallel_beta_strand ***
  17742. --- *** relation type: VIEW ***
  17743. --- *** ***
  17744. --- *** A peptide region which hydrogen bonded t ***
  17745. --- *** o another region of peptide running in t ***
  17746. --- *** he oposite direction (one running N-term ***
  17747. --- *** inal to C-terminal and one running C-ter ***
  17748. --- *** minal to N-terminal). Hydrogen bonding o ***
  17749. --- *** ccurs between every other C=O from one s ***
  17750. --- *** trand to every other N-H on the adjacent ***
  17751. --- *** strand. In this case, if two atoms C-al ***
  17752. --- *** pha (i) and C-alpha (j) are adjacent in ***
  17753. --- *** two hydrogen-bonded beta strands, then t ***
  17754. --- *** hey form two mutual backbone hydrogen bo ***
  17755. --- *** nds to each other's flanking peptide gro ***
  17756. --- *** ups; this is known as a close pair of hy ***
  17757. --- *** drogen bonds. The peptide backbone dihed ***
  17758. --- *** ral angles (phi, psi) are about (-140 de ***
  17759. --- *** grees, 135 degrees) in antiparallel shee ***
  17760. --- *** ts. ***
  17761. --- ************************************************
  17762. ---
  17763. CREATE VIEW antiparallel_beta_strand AS
  17764. SELECT
  17765. feature_id AS antiparallel_beta_strand_id,
  17766. feature.*
  17767. FROM
  17768. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17769. WHERE cvterm.name = 'antiparallel_beta_strand';
  17770. --- ************************************************
  17771. --- *** relation: parallel_beta_strand ***
  17772. --- *** relation type: VIEW ***
  17773. --- *** ***
  17774. --- *** A peptide region which hydrogen bonded t ***
  17775. --- *** o another region of peptide running in t ***
  17776. --- *** he oposite direction (both running N-ter ***
  17777. --- *** minal to C-terminal). This orientation i ***
  17778. --- *** s slightly less stable because it introd ***
  17779. --- *** uces nonplanarity in the inter-strand hy ***
  17780. --- *** drogen bonding pattern. Hydrogen bonding ***
  17781. --- *** occurs between every other C=O from one ***
  17782. --- *** strand to every other N-H on the adjace ***
  17783. --- *** nt strand. In this case, if two atoms C- ***
  17784. --- *** alpha (i)and C-alpha (j) are adjacent in ***
  17785. --- *** two hydrogen-bonded beta strands, then ***
  17786. --- *** they do not hydrogen bond to each other; ***
  17787. --- *** rather, one residue forms hydrogen bond ***
  17788. --- *** s to the residues that flank the other ( ***
  17789. --- *** but not vice versa). For example, residu ***
  17790. --- *** e i may form hydrogen bonds to residues ***
  17791. --- *** j - 1 and j + 1; this is known as a wide ***
  17792. --- *** pair of hydrogen bonds. By contrast, re ***
  17793. --- *** sidue j may hydrogen-bond to different r ***
  17794. --- *** esidues altogether, or to none at all. T ***
  17795. --- *** he dihedral angles (phi, psi) are about ***
  17796. --- *** (-120 degrees, 115 degrees) in parallel ***
  17797. --- *** sheets. ***
  17798. --- ************************************************
  17799. ---
  17800. CREATE VIEW parallel_beta_strand AS
  17801. SELECT
  17802. feature_id AS parallel_beta_strand_id,
  17803. feature.*
  17804. FROM
  17805. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17806. WHERE cvterm.name = 'parallel_beta_strand';
  17807. --- ************************************************
  17808. --- *** relation: peptide_helix ***
  17809. --- *** relation type: VIEW ***
  17810. --- *** ***
  17811. --- *** A helix is a secondary_structure conform ***
  17812. --- *** ation where the peptide backbone forms a ***
  17813. --- *** coil. ***
  17814. --- ************************************************
  17815. ---
  17816. CREATE VIEW peptide_helix AS
  17817. SELECT
  17818. feature_id AS peptide_helix_id,
  17819. feature.*
  17820. FROM
  17821. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17822. 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';
  17823. --- ************************************************
  17824. --- *** relation: left_handed_peptide_helix ***
  17825. --- *** relation type: VIEW ***
  17826. --- *** ***
  17827. --- *** A left handed helix is a region of pepti ***
  17828. --- *** de where the coiled conformation turns i ***
  17829. --- *** n an anticlockwise, left handed screw. ***
  17830. --- ************************************************
  17831. ---
  17832. CREATE VIEW left_handed_peptide_helix AS
  17833. SELECT
  17834. feature_id AS left_handed_peptide_helix_id,
  17835. feature.*
  17836. FROM
  17837. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17838. WHERE cvterm.name = 'left_handed_peptide_helix';
  17839. --- ************************************************
  17840. --- *** relation: right_handed_peptide_helix ***
  17841. --- *** relation type: VIEW ***
  17842. --- *** ***
  17843. --- *** A right handed helix is a region of pept ***
  17844. --- *** ide where the coiled conformation turns ***
  17845. --- *** in a clockwise, right handed screw. ***
  17846. --- ************************************************
  17847. ---
  17848. CREATE VIEW right_handed_peptide_helix AS
  17849. SELECT
  17850. feature_id AS right_handed_peptide_helix_id,
  17851. feature.*
  17852. FROM
  17853. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17854. WHERE cvterm.name = 'alpha_helix' OR cvterm.name = 'pi_helix' OR cvterm.name = 'three_ten_helix' OR cvterm.name = 'right_handed_peptide_helix';
  17855. --- ************************************************
  17856. --- *** relation: alpha_helix ***
  17857. --- *** relation type: VIEW ***
  17858. --- *** ***
  17859. --- *** The helix has 3.6 residues per turn whic ***
  17860. --- *** h corersponds to a translation of 1.5 an ***
  17861. --- *** gstroms (= 0.15 nm) along the helical ax ***
  17862. --- *** is. Every backbone N-H group donates a h ***
  17863. --- *** ydrogen bond to the backbone C=O group o ***
  17864. --- *** f the amino acid four residues earlier. ***
  17865. --- ************************************************
  17866. ---
  17867. CREATE VIEW alpha_helix AS
  17868. SELECT
  17869. feature_id AS alpha_helix_id,
  17870. feature.*
  17871. FROM
  17872. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17873. WHERE cvterm.name = 'alpha_helix';
  17874. --- ************************************************
  17875. --- *** relation: pi_helix ***
  17876. --- *** relation type: VIEW ***
  17877. --- *** ***
  17878. --- *** The pi helix has 4.1 residues per turn a ***
  17879. --- *** nd a translation of 1.15 (=0.115 nm) al ***
  17880. --- *** ong the helical axis. The N-H group of a ***
  17881. --- *** n amino acid forms a hydrogen bond with ***
  17882. --- *** the C=O group of the amino acid five res ***
  17883. --- *** idues earlier. ***
  17884. --- ************************************************
  17885. ---
  17886. CREATE VIEW pi_helix AS
  17887. SELECT
  17888. feature_id AS pi_helix_id,
  17889. feature.*
  17890. FROM
  17891. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17892. WHERE cvterm.name = 'pi_helix';
  17893. --- ************************************************
  17894. --- *** relation: three_ten_helix ***
  17895. --- *** relation type: VIEW ***
  17896. --- *** ***
  17897. --- *** The 3-10 helix has 3 residues per turn w ***
  17898. --- *** ith a translation of 2.0 angstroms (=0.2 ***
  17899. --- *** nm) along the helical axis. The N-H gro ***
  17900. --- *** up of an amino acid forms a hydrogen bon ***
  17901. --- *** d with the C=O group of the amino acid t ***
  17902. --- *** hree residues earlier. ***
  17903. --- ************************************************
  17904. ---
  17905. CREATE VIEW three_ten_helix AS
  17906. SELECT
  17907. feature_id AS three_ten_helix_id,
  17908. feature.*
  17909. FROM
  17910. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17911. WHERE cvterm.name = 'three_ten_helix';
  17912. --- ************************************************
  17913. --- *** relation: polypeptide_nest_motif ***
  17914. --- *** relation type: VIEW ***
  17915. --- *** ***
  17916. --- *** A motif of two consecutive residues with ***
  17917. --- *** dihedral angles. Nest should not have P ***
  17918. --- *** roline as any residue. Nests frequently ***
  17919. --- *** occur as parts of other motifs such as S ***
  17920. --- *** chellman loops. ***
  17921. --- ************************************************
  17922. ---
  17923. CREATE VIEW polypeptide_nest_motif AS
  17924. SELECT
  17925. feature_id AS polypeptide_nest_motif_id,
  17926. feature.*
  17927. FROM
  17928. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17929. WHERE cvterm.name = 'polypeptide_nest_left_right_motif' OR cvterm.name = 'polypeptide_nest_right_left_motif' OR cvterm.name = 'polypeptide_nest_motif';
  17930. --- ************************************************
  17931. --- *** relation: polypeptide_nest_left_right_motif ***
  17932. --- *** relation type: VIEW ***
  17933. --- *** ***
  17934. --- *** A motif of two consecutive residues with ***
  17935. --- *** dihedral angles: Residue(i): +20 degree ***
  17936. --- *** s < phi < +140 degrees, -40 degrees < ps ***
  17937. --- *** i < +90 degrees. Residue(i+1): -140 degr ***
  17938. --- *** ees < phi < -20 degrees, -90 degrees < p ***
  17939. --- *** si < +40 degrees. ***
  17940. --- ************************************************
  17941. ---
  17942. CREATE VIEW polypeptide_nest_left_right_motif AS
  17943. SELECT
  17944. feature_id AS polypeptide_nest_left_right_motif_id,
  17945. feature.*
  17946. FROM
  17947. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17948. WHERE cvterm.name = 'polypeptide_nest_left_right_motif';
  17949. --- ************************************************
  17950. --- *** relation: polypeptide_nest_right_left_motif ***
  17951. --- *** relation type: VIEW ***
  17952. --- *** ***
  17953. --- *** A motif of two consecutive residues with ***
  17954. --- *** dihedral angles: Residue(i): -140 degre ***
  17955. --- *** es < phi < -20 degrees, -90 degrees < ps ***
  17956. --- *** i < +40 degrees. Residue(i+1): +20 degre ***
  17957. --- *** es < phi < +140 degrees, -40 degrees < p ***
  17958. --- *** si < +90 degrees. ***
  17959. --- ************************************************
  17960. ---
  17961. CREATE VIEW polypeptide_nest_right_left_motif AS
  17962. SELECT
  17963. feature_id AS polypeptide_nest_right_left_motif_id,
  17964. feature.*
  17965. FROM
  17966. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17967. WHERE cvterm.name = 'polypeptide_nest_right_left_motif';
  17968. --- ************************************************
  17969. --- *** relation: schellmann_loop ***
  17970. --- *** relation type: VIEW ***
  17971. --- *** ***
  17972. --- *** A motif of six or seven consecutive resi ***
  17973. --- *** dues that contains two H-bonds. ***
  17974. --- ************************************************
  17975. ---
  17976. CREATE VIEW schellmann_loop AS
  17977. SELECT
  17978. feature_id AS schellmann_loop_id,
  17979. feature.*
  17980. FROM
  17981. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17982. WHERE cvterm.name = 'schellmann_loop_seven' OR cvterm.name = 'schellmann_loop_six' OR cvterm.name = 'schellmann_loop';
  17983. --- ************************************************
  17984. --- *** relation: schellmann_loop_seven ***
  17985. --- *** relation type: VIEW ***
  17986. --- *** ***
  17987. --- *** Wild type: A motif of seven consecutive ***
  17988. --- *** residues that contains two H-bonds in wh ***
  17989. --- *** ich: the main-chain CO of residue(i) is ***
  17990. --- *** H-bonded to the main-chain NH of residue ***
  17991. --- *** (i+6), the main-chain CO of residue(i+1) ***
  17992. --- *** is H-bonded to the main-chain NH of res ***
  17993. --- *** idue(i+5). ***
  17994. --- ************************************************
  17995. ---
  17996. CREATE VIEW schellmann_loop_seven AS
  17997. SELECT
  17998. feature_id AS schellmann_loop_seven_id,
  17999. feature.*
  18000. FROM
  18001. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18002. WHERE cvterm.name = 'schellmann_loop_seven';
  18003. --- ************************************************
  18004. --- *** relation: schellmann_loop_six ***
  18005. --- *** relation type: VIEW ***
  18006. --- *** ***
  18007. --- *** Common Type: A motif of six consecutive ***
  18008. --- *** residues that contains two H-bonds in wh ***
  18009. --- *** ich: the main-chain CO of residue(i) is ***
  18010. --- *** H-bonded to the main-chain NH of residue ***
  18011. --- *** (i+5) the main-chain CO of residue(i+1) ***
  18012. --- *** is H-bonded to the main-chain NH of resi ***
  18013. --- *** due(i+4). ***
  18014. --- ************************************************
  18015. ---
  18016. CREATE VIEW schellmann_loop_six AS
  18017. SELECT
  18018. feature_id AS schellmann_loop_six_id,
  18019. feature.*
  18020. FROM
  18021. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18022. WHERE cvterm.name = 'schellmann_loop_six';
  18023. --- ************************************************
  18024. --- *** relation: serine_threonine_motif ***
  18025. --- *** relation type: VIEW ***
  18026. --- *** ***
  18027. --- *** A motif of five consecutive residues and ***
  18028. --- *** two hydrogen bonds in which: residue(i) ***
  18029. --- *** is Serine (S) or Threonine (T), the sid ***
  18030. --- *** e-chain O of residue(i) is H-bonded to t ***
  18031. --- *** he main-chain NH of residue(i+2) or (i+3 ***
  18032. --- *** ) , the main-chain CO group of residue(i ***
  18033. --- *** ) is H-bonded to the main-chain NH of re ***
  18034. --- *** sidue(i+3) or (i+4). ***
  18035. --- ************************************************
  18036. ---
  18037. CREATE VIEW serine_threonine_motif AS
  18038. SELECT
  18039. feature_id AS serine_threonine_motif_id,
  18040. feature.*
  18041. FROM
  18042. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18043. WHERE cvterm.name = 'serine_threonine_motif';
  18044. --- ************************************************
  18045. --- *** relation: serine_threonine_staple_motif ***
  18046. --- *** relation type: VIEW ***
  18047. --- *** ***
  18048. --- *** A motif of four or five consecutive resi ***
  18049. --- *** dues and one H-bond in which: residue(i) ***
  18050. --- *** is Serine (S) or Threonine (T), the sid ***
  18051. --- *** e-chain OH of residue(i) is H-bonded to ***
  18052. --- *** the main-chain CO of residue(i3) or (i4) ***
  18053. --- *** , Phi angles of residues(i1), (i2) and ( ***
  18054. --- *** i3) are negative. ***
  18055. --- ************************************************
  18056. ---
  18057. CREATE VIEW serine_threonine_staple_motif AS
  18058. SELECT
  18059. feature_id AS serine_threonine_staple_motif_id,
  18060. feature.*
  18061. FROM
  18062. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18063. WHERE cvterm.name = 'serine_threonine_staple_motif';
  18064. --- ************************************************
  18065. --- *** relation: polypeptide_turn_motif ***
  18066. --- *** relation type: VIEW ***
  18067. --- *** ***
  18068. --- *** A reversal in the direction of the backb ***
  18069. --- *** one of a protein that is stabilized by h ***
  18070. --- *** ydrogen bond between backbone NH and CO ***
  18071. --- *** groups, involving no more than 4 amino a ***
  18072. --- *** cid residues. ***
  18073. --- ************************************************
  18074. ---
  18075. CREATE VIEW polypeptide_turn_motif AS
  18076. SELECT
  18077. feature_id AS polypeptide_turn_motif_id,
  18078. feature.*
  18079. FROM
  18080. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18081. 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';
  18082. --- ************************************************
  18083. --- *** relation: asx_turn_left_handed_type_one ***
  18084. --- *** relation type: VIEW ***
  18085. --- *** ***
  18086. --- *** Left handed type I (dihedral angles):- R ***
  18087. --- *** esidue(i): -140 degrees < chi (1) -120 d ***
  18088. --- *** egrees < -20 degrees, -90 degrees < psi ***
  18089. --- *** +120 degrees < +40 degrees. Residue(i+1) ***
  18090. --- *** : -140 degrees < phi < -20 degrees, -90 ***
  18091. --- *** degrees < psi < +40 degrees. ***
  18092. --- ************************************************
  18093. ---
  18094. CREATE VIEW asx_turn_left_handed_type_one AS
  18095. SELECT
  18096. feature_id AS asx_turn_left_handed_type_one_id,
  18097. feature.*
  18098. FROM
  18099. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18100. WHERE cvterm.name = 'asx_turn_left_handed_type_one';
  18101. --- ************************************************
  18102. --- *** relation: asx_turn_left_handed_type_two ***
  18103. --- *** relation type: VIEW ***
  18104. --- *** ***
  18105. --- *** Left handed type II (dihedral angles):- ***
  18106. --- *** Residue(i): -140 degrees < chi (1) -120 ***
  18107. --- *** degrees < -20 degrees, +80 degrees < psi ***
  18108. --- *** +120 degrees < +180 degrees. Residue(i+ ***
  18109. --- *** 1): +20 degrees < phi < +140 degrees, -4 ***
  18110. --- *** 0 degrees < psi < +90 degrees. ***
  18111. --- ************************************************
  18112. ---
  18113. CREATE VIEW asx_turn_left_handed_type_two AS
  18114. SELECT
  18115. feature_id AS asx_turn_left_handed_type_two_id,
  18116. feature.*
  18117. FROM
  18118. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18119. WHERE cvterm.name = 'asx_turn_left_handed_type_two';
  18120. --- ************************************************
  18121. --- *** relation: asx_turn_right_handed_type_two ***
  18122. --- *** relation type: VIEW ***
  18123. --- *** ***
  18124. --- *** Right handed type II (dihedral angles):- ***
  18125. --- *** Residue(i): -140 degrees < chi (1) -120 ***
  18126. --- *** degrees < -20 degrees, +80 degrees < ps ***
  18127. --- *** i +120 degrees < +180 degrees. Residue(i ***
  18128. --- *** +1): +20 degrees < phi < +140 degrees, - ***
  18129. --- *** 40 degrees < psi < +90 degrees. ***
  18130. --- ************************************************
  18131. ---
  18132. CREATE VIEW asx_turn_right_handed_type_two AS
  18133. SELECT
  18134. feature_id AS asx_turn_right_handed_type_two_id,
  18135. feature.*
  18136. FROM
  18137. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18138. WHERE cvterm.name = 'asx_turn_right_handed_type_two';
  18139. --- ************************************************
  18140. --- *** relation: asx_turn_right_handed_type_one ***
  18141. --- *** relation type: VIEW ***
  18142. --- *** ***
  18143. --- *** Right handed type I (dihedral angles):- ***
  18144. --- *** Residue(i): -140 degrees < chi (1) -120 ***
  18145. --- *** degrees < -20 degrees, -90 degrees < psi ***
  18146. --- *** +120 degrees < +40 degrees. Residue(i+1 ***
  18147. --- *** ): -140 degrees < phi < -20 degrees, -90 ***
  18148. --- *** degrees < psi < +40 degrees. ***
  18149. --- ************************************************
  18150. ---
  18151. CREATE VIEW asx_turn_right_handed_type_one AS
  18152. SELECT
  18153. feature_id AS asx_turn_right_handed_type_one_id,
  18154. feature.*
  18155. FROM
  18156. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18157. WHERE cvterm.name = 'asx_turn_right_handed_type_one';
  18158. --- ************************************************
  18159. --- *** relation: beta_turn ***
  18160. --- *** relation type: VIEW ***
  18161. --- *** ***
  18162. --- *** A motif of four consecutive residues tha ***
  18163. --- *** t may contain one H-bond, which, if pres ***
  18164. --- *** ent, is between the main-chain CO of the ***
  18165. --- *** first residue and the main-chain NH of ***
  18166. --- *** the fourth. It is characterized by the d ***
  18167. --- *** ihedral angles of the second and third r ***
  18168. --- *** esidues, which are the basis for sub-cat ***
  18169. --- *** egorization. ***
  18170. --- ************************************************
  18171. ---
  18172. CREATE VIEW beta_turn AS
  18173. SELECT
  18174. feature_id AS beta_turn_id,
  18175. feature.*
  18176. FROM
  18177. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18178. 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';
  18179. --- ************************************************
  18180. --- *** relation: beta_turn_left_handed_type_one ***
  18181. --- *** relation type: VIEW ***
  18182. --- *** ***
  18183. --- *** Left handed type I:A motif of four conse ***
  18184. --- *** cutive residues that may contain one H-b ***
  18185. --- *** ond, which, if present, is between the m ***
  18186. --- *** ain-chain CO of the first residue and th ***
  18187. --- *** e main-chain NH of the fourth. It is cha ***
  18188. --- *** racterized by the dihedral angles:- Resi ***
  18189. --- *** due(i+1): -140 degrees > phi > -20 degre ***
  18190. --- *** es, -90 degrees > psi > +40 degrees. Res ***
  18191. --- *** idue(i+2): -140 degrees > phi > -20 degr ***
  18192. --- *** ees, -90 degrees > psi > +40 degrees. ***
  18193. --- ************************************************
  18194. ---
  18195. CREATE VIEW beta_turn_left_handed_type_one AS
  18196. SELECT
  18197. feature_id AS beta_turn_left_handed_type_one_id,
  18198. feature.*
  18199. FROM
  18200. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18201. WHERE cvterm.name = 'beta_turn_left_handed_type_one';
  18202. --- ************************************************
  18203. --- *** relation: beta_turn_left_handed_type_two ***
  18204. --- *** relation type: VIEW ***
  18205. --- *** ***
  18206. --- *** Left handed type II: A motif of four con ***
  18207. --- *** secutive residues that may contain one H ***
  18208. --- *** -bond, which, if present, is between the ***
  18209. --- *** main-chain CO of the first residue and ***
  18210. --- *** the main-chain NH of the fourth. It is c ***
  18211. --- *** haracterized by the dihedral angles: Res ***
  18212. --- *** idue(i+1): -140 degrees > phi > -20 degr ***
  18213. --- *** ees, +80 degrees > psi > +180 degrees. R ***
  18214. --- *** esidue(i+2): +20 degrees > phi > +140 de ***
  18215. --- *** grees, -40 degrees > psi > +90 degrees. ***
  18216. --- ************************************************
  18217. ---
  18218. CREATE VIEW beta_turn_left_handed_type_two AS
  18219. SELECT
  18220. feature_id AS beta_turn_left_handed_type_two_id,
  18221. feature.*
  18222. FROM
  18223. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18224. WHERE cvterm.name = 'beta_turn_left_handed_type_two';
  18225. --- ************************************************
  18226. --- *** relation: beta_turn_right_handed_type_one ***
  18227. --- *** relation type: VIEW ***
  18228. --- *** ***
  18229. --- *** Right handed type I:A motif of four cons ***
  18230. --- *** ecutive residues that may contain one H- ***
  18231. --- *** bond, which, if present, is between the ***
  18232. --- *** main-chain CO of the first residue and t ***
  18233. --- *** he main-chain NH of the fourth. It is ch ***
  18234. --- *** aracterized by the dihedral angles: Resi ***
  18235. --- *** due(i+1): -140 degrees < phi < -20 degre ***
  18236. --- *** es, -90 degrees < psi < +40 degrees. Res ***
  18237. --- *** idue(i+2): -140 degrees < phi < -20 degr ***
  18238. --- *** ees, -90 degrees < psi < +40 degrees. ***
  18239. --- ************************************************
  18240. ---
  18241. CREATE VIEW beta_turn_right_handed_type_one AS
  18242. SELECT
  18243. feature_id AS beta_turn_right_handed_type_one_id,
  18244. feature.*
  18245. FROM
  18246. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18247. WHERE cvterm.name = 'beta_turn_right_handed_type_one';
  18248. --- ************************************************
  18249. --- *** relation: beta_turn_right_handed_type_two ***
  18250. --- *** relation type: VIEW ***
  18251. --- *** ***
  18252. --- *** Right handed type II:A motif of four con ***
  18253. --- *** secutive residues that may contain one H ***
  18254. --- *** -bond, which, if present, is between the ***
  18255. --- *** main-chain CO of the first residue and ***
  18256. --- *** the main-chain NH of the fourth. It is c ***
  18257. --- *** haracterized by the dihedral angles: Res ***
  18258. --- *** idue(i+1): -140 degrees < phi < -20 degr ***
  18259. --- *** ees, +80 degrees < psi < +180 degrees. R ***
  18260. --- *** esidue(i+2): +20 degrees < phi < +140 de ***
  18261. --- *** grees, -40 degrees < psi < +90 degrees. ***
  18262. --- ************************************************
  18263. ---
  18264. CREATE VIEW beta_turn_right_handed_type_two AS
  18265. SELECT
  18266. feature_id AS beta_turn_right_handed_type_two_id,
  18267. feature.*
  18268. FROM
  18269. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18270. WHERE cvterm.name = 'beta_turn_right_handed_type_two';
  18271. --- ************************************************
  18272. --- *** relation: gamma_turn ***
  18273. --- *** relation type: VIEW ***
  18274. --- *** ***
  18275. --- *** Gamma turns, defined for 3 residues i, i ***
  18276. --- *** +1, i+2 if a hydrogen bond exists betwee ***
  18277. --- *** n residues i and i+2 and the phi and psi ***
  18278. --- *** angles of residue i+1 fall within 40 de ***
  18279. --- *** grees. ***
  18280. --- ************************************************
  18281. ---
  18282. CREATE VIEW gamma_turn AS
  18283. SELECT
  18284. feature_id AS gamma_turn_id,
  18285. feature.*
  18286. FROM
  18287. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18288. WHERE cvterm.name = 'gamma_turn_classic' OR cvterm.name = 'gamma_turn_inverse' OR cvterm.name = 'gamma_turn';
  18289. --- ************************************************
  18290. --- *** relation: gamma_turn_classic ***
  18291. --- *** relation type: VIEW ***
  18292. --- *** ***
  18293. --- *** Gamma turns, defined for 3 residues i, i ***
  18294. --- *** +1, i+2 if a hydrogen bond exists betwee ***
  18295. --- *** n residues i and i+2 and the phi and psi ***
  18296. --- *** angles of residue i+1 fall within 40 de ***
  18297. --- *** grees: phi(i+1)=75.0 - psi(i+1)=-64.0. ***
  18298. --- ************************************************
  18299. ---
  18300. CREATE VIEW gamma_turn_classic AS
  18301. SELECT
  18302. feature_id AS gamma_turn_classic_id,
  18303. feature.*
  18304. FROM
  18305. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18306. WHERE cvterm.name = 'gamma_turn_classic';
  18307. --- ************************************************
  18308. --- *** relation: gamma_turn_inverse ***
  18309. --- *** relation type: VIEW ***
  18310. --- *** ***
  18311. --- *** Gamma turns, defined for 3 residues i, i ***
  18312. --- *** +1, i+2 if a hydrogen bond exists betwee ***
  18313. --- *** n residues i and i+2 and the phi and psi ***
  18314. --- *** angles of residue i+1 fall within 40 de ***
  18315. --- *** grees: phi(i+1)=-79.0 - psi(i+1)=69.0. ***
  18316. --- ************************************************
  18317. ---
  18318. CREATE VIEW gamma_turn_inverse AS
  18319. SELECT
  18320. feature_id AS gamma_turn_inverse_id,
  18321. feature.*
  18322. FROM
  18323. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18324. WHERE cvterm.name = 'gamma_turn_inverse';
  18325. --- ************************************************
  18326. --- *** relation: serine_threonine_turn ***
  18327. --- *** relation type: VIEW ***
  18328. --- *** ***
  18329. --- *** A motif of three consecutive residues an ***
  18330. --- *** d one H-bond in which: residue(i) is Ser ***
  18331. --- *** ine (S) or Threonine (T), the side-chain ***
  18332. --- *** O of residue(i) is H-bonded to the main ***
  18333. --- *** -chain NH of residue(i+2). ***
  18334. --- ************************************************
  18335. ---
  18336. CREATE VIEW serine_threonine_turn AS
  18337. SELECT
  18338. feature_id AS serine_threonine_turn_id,
  18339. feature.*
  18340. FROM
  18341. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18342. 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';
  18343. --- ************************************************
  18344. --- *** relation: st_turn_left_handed_type_one ***
  18345. --- *** relation type: VIEW ***
  18346. --- *** ***
  18347. --- *** The peptide twists in an anticlockwise, ***
  18348. --- *** left handed manner. The dihedral angles ***
  18349. --- *** for this turn are: Residue(i): -140 degr ***
  18350. --- *** ees < chi(1) -120 degrees < -20 degrees, ***
  18351. --- *** -90 degrees psi +120 degrees < +40 degr ***
  18352. --- *** ees, residue(i+1): -140 degrees < phi < ***
  18353. --- *** -20 degrees, -90 < psi < +40 degrees. ***
  18354. --- ************************************************
  18355. ---
  18356. CREATE VIEW st_turn_left_handed_type_one AS
  18357. SELECT
  18358. feature_id AS st_turn_left_handed_type_one_id,
  18359. feature.*
  18360. FROM
  18361. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18362. WHERE cvterm.name = 'st_turn_left_handed_type_one';
  18363. --- ************************************************
  18364. --- *** relation: st_turn_left_handed_type_two ***
  18365. --- *** relation type: VIEW ***
  18366. --- *** ***
  18367. --- *** The peptide twists in an anticlockwise, ***
  18368. --- *** left handed manner. The dihedral angles ***
  18369. --- *** for this turn are: Residue(i): -140 degr ***
  18370. --- *** ees < chi(1) -120 degrees < -20 degrees, ***
  18371. --- *** +80 degrees psi +120 degrees < +180 deg ***
  18372. --- *** rees, residue(i+1): +20 degrees < phi < ***
  18373. --- *** +140 degrees, -40 < psi < +90 degrees. ***
  18374. --- ************************************************
  18375. ---
  18376. CREATE VIEW st_turn_left_handed_type_two AS
  18377. SELECT
  18378. feature_id AS st_turn_left_handed_type_two_id,
  18379. feature.*
  18380. FROM
  18381. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18382. WHERE cvterm.name = 'st_turn_left_handed_type_two';
  18383. --- ************************************************
  18384. --- *** relation: st_turn_right_handed_type_one ***
  18385. --- *** relation type: VIEW ***
  18386. --- *** ***
  18387. --- *** The peptide twists in an clockwise, righ ***
  18388. --- *** t handed manner. The dihedral angles for ***
  18389. --- *** this turn are: Residue(i): -140 degrees ***
  18390. --- *** < chi(1) -120 degrees < -20 degrees, -9 ***
  18391. --- *** 0 degrees psi +120 degrees < +40 degrees ***
  18392. --- *** , residue(i+1): -140 degrees < phi < -20 ***
  18393. --- *** degrees, -90 < psi < +40 degrees. ***
  18394. --- ************************************************
  18395. ---
  18396. CREATE VIEW st_turn_right_handed_type_one AS
  18397. SELECT
  18398. feature_id AS st_turn_right_handed_type_one_id,
  18399. feature.*
  18400. FROM
  18401. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18402. WHERE cvterm.name = 'st_turn_right_handed_type_one';
  18403. --- ************************************************
  18404. --- *** relation: st_turn_right_handed_type_two ***
  18405. --- *** relation type: VIEW ***
  18406. --- *** ***
  18407. --- *** The peptide twists in an clockwise, righ ***
  18408. --- *** t handed manner. The dihedral angles for ***
  18409. --- *** this turn are: Residue(i): -140 degrees ***
  18410. --- *** < chi(1) -120 degrees < -20 degrees, +8 ***
  18411. --- *** 0 degrees psi +120 degrees < +180 degree ***
  18412. --- *** s, residue(i+1): +20 degrees < phi < +14 ***
  18413. --- *** 0 degrees, -40 < psi < +90 degrees. ***
  18414. --- ************************************************
  18415. ---
  18416. CREATE VIEW st_turn_right_handed_type_two AS
  18417. SELECT
  18418. feature_id AS st_turn_right_handed_type_two_id,
  18419. feature.*
  18420. FROM
  18421. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18422. WHERE cvterm.name = 'st_turn_right_handed_type_two';
  18423. --- ************************************************
  18424. --- *** relation: polypeptide_variation_site ***
  18425. --- *** relation type: VIEW ***
  18426. --- *** ***
  18427. --- *** A site of sequence variation (alteration ***
  18428. --- *** ). Alternative sequence due to naturally ***
  18429. --- *** occuring events such as polymorphisms a ***
  18430. --- *** nd altermatve splicing or experimental m ***
  18431. --- *** ethods such as site directed mutagenesis ***
  18432. --- *** . ***
  18433. --- ************************************************
  18434. ---
  18435. CREATE VIEW polypeptide_variation_site AS
  18436. SELECT
  18437. feature_id AS polypeptide_variation_site_id,
  18438. feature.*
  18439. FROM
  18440. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18441. WHERE cvterm.name = 'natural_variant_site' OR cvterm.name = 'mutated_variant_site' OR cvterm.name = 'alternate_sequence_site' OR cvterm.name = 'polypeptide_variation_site';
  18442. --- ************************************************
  18443. --- *** relation: natural_variant_site ***
  18444. --- *** relation type: VIEW ***
  18445. --- *** ***
  18446. --- *** Describes the natural sequence variants ***
  18447. --- *** due to polymorphisms, disease-associated ***
  18448. --- *** mutations, RNA editing and variations b ***
  18449. --- *** etween strains, isolates or cultivars. ***
  18450. --- ************************************************
  18451. ---
  18452. CREATE VIEW natural_variant_site AS
  18453. SELECT
  18454. feature_id AS natural_variant_site_id,
  18455. feature.*
  18456. FROM
  18457. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18458. WHERE cvterm.name = 'natural_variant_site';
  18459. --- ************************************************
  18460. --- *** relation: mutated_variant_site ***
  18461. --- *** relation type: VIEW ***
  18462. --- *** ***
  18463. --- *** Site which has been experimentally alter ***
  18464. --- *** ed. ***
  18465. --- ************************************************
  18466. ---
  18467. CREATE VIEW mutated_variant_site AS
  18468. SELECT
  18469. feature_id AS mutated_variant_site_id,
  18470. feature.*
  18471. FROM
  18472. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18473. WHERE cvterm.name = 'mutated_variant_site';
  18474. --- ************************************************
  18475. --- *** relation: alternate_sequence_site ***
  18476. --- *** relation type: VIEW ***
  18477. --- *** ***
  18478. --- *** Description of sequence variants produce ***
  18479. --- *** d by alternative splicing, alternative p ***
  18480. --- *** romoter usage, alternative initiation an ***
  18481. --- *** d ribosomal frameshifting. ***
  18482. --- ************************************************
  18483. ---
  18484. CREATE VIEW alternate_sequence_site AS
  18485. SELECT
  18486. feature_id AS alternate_sequence_site_id,
  18487. feature.*
  18488. FROM
  18489. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18490. WHERE cvterm.name = 'alternate_sequence_site';
  18491. --- ************************************************
  18492. --- *** relation: beta_turn_type_six ***
  18493. --- *** relation type: VIEW ***
  18494. --- *** ***
  18495. --- *** A motif of four consecutive peptide resi ***
  18496. --- *** des of type VIa or type VIb and where th ***
  18497. --- *** e i+2 residue is cis-proline. ***
  18498. --- ************************************************
  18499. ---
  18500. CREATE VIEW beta_turn_type_six AS
  18501. SELECT
  18502. feature_id AS beta_turn_type_six_id,
  18503. feature.*
  18504. FROM
  18505. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18506. 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';
  18507. --- ************************************************
  18508. --- *** relation: beta_turn_type_six_a ***
  18509. --- *** relation type: VIEW ***
  18510. --- *** ***
  18511. --- *** A motif of four consecutive peptide resi ***
  18512. --- *** dues, of which the i+2 residue is prolin ***
  18513. --- *** e, and that may contain one H-bond, whic ***
  18514. --- *** h, if present, is between the main-chain ***
  18515. --- *** CO of the first residue and the main-ch ***
  18516. --- *** ain NH of the fourth and is characterize ***
  18517. --- *** d by the dihedral angles: Residue(i+1): ***
  18518. --- *** phi ~ -60 degrees, psi ~ 120 degrees. Re ***
  18519. --- *** sidue(i+2): phi ~ -90 degrees, psi ~ 0 d ***
  18520. --- *** egrees. ***
  18521. --- ************************************************
  18522. ---
  18523. CREATE VIEW beta_turn_type_six_a AS
  18524. SELECT
  18525. feature_id AS beta_turn_type_six_a_id,
  18526. feature.*
  18527. FROM
  18528. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18529. 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';
  18530. --- ************************************************
  18531. --- *** relation: beta_turn_type_six_a_one ***
  18532. --- *** relation type: VIEW ***
  18533. --- *** ***
  18534. --- ************************************************
  18535. ---
  18536. CREATE VIEW beta_turn_type_six_a_one AS
  18537. SELECT
  18538. feature_id AS beta_turn_type_six_a_one_id,
  18539. feature.*
  18540. FROM
  18541. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18542. WHERE cvterm.name = 'beta_turn_type_six_a_one';
  18543. --- ************************************************
  18544. --- *** relation: beta_turn_type_six_a_two ***
  18545. --- *** relation type: VIEW ***
  18546. --- *** ***
  18547. --- ************************************************
  18548. ---
  18549. CREATE VIEW beta_turn_type_six_a_two AS
  18550. SELECT
  18551. feature_id AS beta_turn_type_six_a_two_id,
  18552. feature.*
  18553. FROM
  18554. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18555. WHERE cvterm.name = 'beta_turn_type_six_a_two';
  18556. --- ************************************************
  18557. --- *** relation: beta_turn_type_six_b ***
  18558. --- *** relation type: VIEW ***
  18559. --- *** ***
  18560. --- *** A motif of four consecutive peptide resi ***
  18561. --- *** dues, of which the i+2 residue is prolin ***
  18562. --- *** e, and that may contain one H-bond, whic ***
  18563. --- *** h, if present, is between the main-chain ***
  18564. --- *** CO of the first residue and the main-ch ***
  18565. --- *** ain NH of the fourth and is characterize ***
  18566. --- *** d by the dihedral angles: Residue(i+1): ***
  18567. --- *** phi ~ -120 degrees, psi ~ 120 degrees. R ***
  18568. --- *** esidue(i+2): phi ~ -60 degrees, psi ~ 0 ***
  18569. --- *** degrees. ***
  18570. --- ************************************************
  18571. ---
  18572. CREATE VIEW beta_turn_type_six_b AS
  18573. SELECT
  18574. feature_id AS beta_turn_type_six_b_id,
  18575. feature.*
  18576. FROM
  18577. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18578. WHERE cvterm.name = 'beta_turn_type_six_b';
  18579. --- ************************************************
  18580. --- *** relation: beta_turn_type_eight ***
  18581. --- *** relation type: VIEW ***
  18582. --- *** ***
  18583. --- *** A motif of four consecutive peptide resi ***
  18584. --- *** dues that may contain one H-bond, which, ***
  18585. --- *** if present, is between the main-chain C ***
  18586. --- *** O of the first residue and the main-chai ***
  18587. --- *** n NH of the fourth and is characterized ***
  18588. --- *** by the dihedral angles: Residue(i+1): ph ***
  18589. --- *** i ~ -60 degrees, psi ~ -30 degrees. Resi ***
  18590. --- *** due(i+2): phi ~ -120 degrees, psi ~ 120 ***
  18591. --- *** degrees. ***
  18592. --- ************************************************
  18593. ---
  18594. CREATE VIEW beta_turn_type_eight AS
  18595. SELECT
  18596. feature_id AS beta_turn_type_eight_id,
  18597. feature.*
  18598. FROM
  18599. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18600. WHERE cvterm.name = 'beta_turn_type_eight';
  18601. --- ************************************************
  18602. --- *** relation: dre_motif ***
  18603. --- *** relation type: VIEW ***
  18604. --- *** ***
  18605. --- *** A sequence element characteristic of som ***
  18606. --- *** e RNA polymerase II promoters, usually l ***
  18607. --- *** ocated between -10 and -60 relative to t ***
  18608. --- *** he TSS. Consensus sequence is WATCGATW. ***
  18609. --- ************************************************
  18610. ---
  18611. CREATE VIEW dre_motif AS
  18612. SELECT
  18613. feature_id AS dre_motif_id,
  18614. feature.*
  18615. FROM
  18616. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18617. WHERE cvterm.name = 'DRE_motif';
  18618. --- ************************************************
  18619. --- *** relation: dmv4_motif ***
  18620. --- *** relation type: VIEW ***
  18621. --- *** ***
  18622. --- *** A sequence element characteristic of som ***
  18623. --- *** e RNA polymerase II promoters, located i ***
  18624. --- *** mmediately upstream of some TATA box ele ***
  18625. --- *** ments with respect to the TSS (+1). Cons ***
  18626. --- *** ensus sequence is YGGTCACACTR. Marked sp ***
  18627. --- *** atial preference within core promoter; t ***
  18628. --- *** end to occur near the TSS, although not ***
  18629. --- *** as tightly as INR (SO:0000014). ***
  18630. --- ************************************************
  18631. ---
  18632. CREATE VIEW dmv4_motif AS
  18633. SELECT
  18634. feature_id AS dmv4_motif_id,
  18635. feature.*
  18636. FROM
  18637. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18638. WHERE cvterm.name = 'DMv4_motif';
  18639. --- ************************************************
  18640. --- *** relation: e_box_motif ***
  18641. --- *** relation type: VIEW ***
  18642. --- *** ***
  18643. --- *** A sequence element characteristic of som ***
  18644. --- *** e RNA polymerase II promoters, usually l ***
  18645. --- *** ocated between -60 and +1 relative to th ***
  18646. --- *** e TSS. Consensus sequence is AWCAGCTGWT. ***
  18647. --- *** Tends to co-occur with DMv2 (SO:0001161 ***
  18648. --- *** ). Tends to not occur with DPE motif (SO ***
  18649. --- *** :0000015). ***
  18650. --- ************************************************
  18651. ---
  18652. CREATE VIEW e_box_motif AS
  18653. SELECT
  18654. feature_id AS e_box_motif_id,
  18655. feature.*
  18656. FROM
  18657. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18658. WHERE cvterm.name = 'E_box_motif';
  18659. --- ************************************************
  18660. --- *** relation: dmv5_motif ***
  18661. --- *** relation type: VIEW ***
  18662. --- *** ***
  18663. --- *** A sequence element characteristic of som ***
  18664. --- *** e RNA polymerase II promoters, usually l ***
  18665. --- *** ocated between -50 and -10 relative to t ***
  18666. --- *** he TSS. Consensus sequence is KTYRGTATWT ***
  18667. --- *** TT. Tends to co-occur with DMv4 (SO:0001 ***
  18668. --- *** 157) . Tends to not occur with DPE motif ***
  18669. --- *** (SO:0000015) or MTE (SO:0001162). ***
  18670. --- ************************************************
  18671. ---
  18672. CREATE VIEW dmv5_motif AS
  18673. SELECT
  18674. feature_id AS dmv5_motif_id,
  18675. feature.*
  18676. FROM
  18677. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18678. WHERE cvterm.name = 'DMv5_motif';
  18679. --- ************************************************
  18680. --- *** relation: dmv3_motif ***
  18681. --- *** relation type: VIEW ***
  18682. --- *** ***
  18683. --- *** A sequence element characteristic of som ***
  18684. --- *** e RNA polymerase II promoters, usually l ***
  18685. --- *** ocated between -30 and +15 relative to t ***
  18686. --- *** he TSS. Consensus sequence is KNNCAKCNCT ***
  18687. --- *** RNY. Tends to co-occur with DMv2 (SO:000 ***
  18688. --- *** 1161). Tends to not occur with DPE motif ***
  18689. --- *** (SO:0000015) or MTE (0001162). ***
  18690. --- ************************************************
  18691. ---
  18692. CREATE VIEW dmv3_motif AS
  18693. SELECT
  18694. feature_id AS dmv3_motif_id,
  18695. feature.*
  18696. FROM
  18697. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18698. WHERE cvterm.name = 'DMv3_motif';
  18699. --- ************************************************
  18700. --- *** relation: dmv2_motif ***
  18701. --- *** relation type: VIEW ***
  18702. --- *** ***
  18703. --- *** A sequence element characteristic of som ***
  18704. --- *** e RNA polymerase II promoters, usually l ***
  18705. --- *** ocated between -60 and -45 relative to t ***
  18706. --- *** he TSS. Consensus sequence is MKSYGGCARC ***
  18707. --- *** GSYSS. Tends to co-occur with DMv3 (SO:0 ***
  18708. --- *** 001160). Tends to not occur with DPE mot ***
  18709. --- *** if (SO:0000015) or MTE (SO:0001162). ***
  18710. --- ************************************************
  18711. ---
  18712. CREATE VIEW dmv2_motif AS
  18713. SELECT
  18714. feature_id AS dmv2_motif_id,
  18715. feature.*
  18716. FROM
  18717. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18718. WHERE cvterm.name = 'DMv2_motif';
  18719. --- ************************************************
  18720. --- *** relation: mte ***
  18721. --- *** relation type: VIEW ***
  18722. --- *** ***
  18723. --- *** A sequence element characteristic of som ***
  18724. --- *** e RNA polymerase II promoters, usually l ***
  18725. --- *** ocated between +20 and +30 relative to t ***
  18726. --- *** he TSS. Consensus sequence is CSARCSSAAC ***
  18727. --- *** GS. Tends to co-occur with INR motif (SO ***
  18728. --- *** :0000014). Tends to not occur with DPE m ***
  18729. --- *** otif (SO:0000015) or DMv5 (SO:0001159). ***
  18730. --- ************************************************
  18731. ---
  18732. CREATE VIEW mte AS
  18733. SELECT
  18734. feature_id AS mte_id,
  18735. feature.*
  18736. FROM
  18737. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18738. WHERE cvterm.name = 'MTE';
  18739. --- ************************************************
  18740. --- *** relation: inr1_motif ***
  18741. --- *** relation type: VIEW ***
  18742. --- *** ***
  18743. --- *** A promoter motif with consensus sequence ***
  18744. --- *** TCATTCG. ***
  18745. --- ************************************************
  18746. ---
  18747. CREATE VIEW inr1_motif AS
  18748. SELECT
  18749. feature_id AS inr1_motif_id,
  18750. feature.*
  18751. FROM
  18752. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18753. WHERE cvterm.name = 'INR1_motif';
  18754. --- ************************************************
  18755. --- *** relation: dpe1_motif ***
  18756. --- *** relation type: VIEW ***
  18757. --- *** ***
  18758. --- *** A promoter motif with consensus sequence ***
  18759. --- *** CGGACGT. ***
  18760. --- ************************************************
  18761. ---
  18762. CREATE VIEW dpe1_motif AS
  18763. SELECT
  18764. feature_id AS dpe1_motif_id,
  18765. feature.*
  18766. FROM
  18767. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18768. WHERE cvterm.name = 'DPE1_motif';
  18769. --- ************************************************
  18770. --- *** relation: dmv1_motif ***
  18771. --- *** relation type: VIEW ***
  18772. --- *** ***
  18773. --- *** A promoter motif with consensus sequence ***
  18774. --- *** CARCCCT. ***
  18775. --- ************************************************
  18776. ---
  18777. CREATE VIEW dmv1_motif AS
  18778. SELECT
  18779. feature_id AS dmv1_motif_id,
  18780. feature.*
  18781. FROM
  18782. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18783. WHERE cvterm.name = 'DMv1_motif';
  18784. --- ************************************************
  18785. --- *** relation: gaga_motif ***
  18786. --- *** relation type: VIEW ***
  18787. --- *** ***
  18788. --- *** A non directional promoter motif with co ***
  18789. --- *** nsensus sequence GAGAGCG. ***
  18790. --- ************************************************
  18791. ---
  18792. CREATE VIEW gaga_motif AS
  18793. SELECT
  18794. feature_id AS gaga_motif_id,
  18795. feature.*
  18796. FROM
  18797. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18798. WHERE cvterm.name = 'GAGA_motif';
  18799. --- ************************************************
  18800. --- *** relation: ndm2_motif ***
  18801. --- *** relation type: VIEW ***
  18802. --- *** ***
  18803. --- *** A non directional promoter motif with co ***
  18804. --- *** nsensus CGMYGYCR. ***
  18805. --- ************************************************
  18806. ---
  18807. CREATE VIEW ndm2_motif AS
  18808. SELECT
  18809. feature_id AS ndm2_motif_id,
  18810. feature.*
  18811. FROM
  18812. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18813. WHERE cvterm.name = 'NDM2_motif';
  18814. --- ************************************************
  18815. --- *** relation: ndm3_motif ***
  18816. --- *** relation type: VIEW ***
  18817. --- *** ***
  18818. --- *** A non directional promoter motif with co ***
  18819. --- *** nsensus sequence GAAAGCT. ***
  18820. --- ************************************************
  18821. ---
  18822. CREATE VIEW ndm3_motif AS
  18823. SELECT
  18824. feature_id AS ndm3_motif_id,
  18825. feature.*
  18826. FROM
  18827. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18828. WHERE cvterm.name = 'NDM3_motif';
  18829. --- ************************************************
  18830. --- *** relation: ds_rna_viral_sequence ***
  18831. --- *** relation type: VIEW ***
  18832. --- *** ***
  18833. --- *** A ds_RNA_viral_sequence is a viral_seque ***
  18834. --- *** nce that is the sequence of a virus that ***
  18835. --- *** exists as double stranded RNA. ***
  18836. --- ************************************************
  18837. ---
  18838. CREATE VIEW ds_rna_viral_sequence AS
  18839. SELECT
  18840. feature_id AS ds_rna_viral_sequence_id,
  18841. feature.*
  18842. FROM
  18843. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18844. WHERE cvterm.name = 'ds_RNA_viral_sequence';
  18845. --- ************************************************
  18846. --- *** relation: polinton ***
  18847. --- *** relation type: VIEW ***
  18848. --- *** ***
  18849. --- *** A kind of DNA transposon that populates ***
  18850. --- *** the genomes of protists, fungi, and anim ***
  18851. --- *** als, characterized by a unique set of pr ***
  18852. --- *** oteins necessary for their transposition ***
  18853. --- *** , including a protein-primed DNA polymer ***
  18854. --- *** ase B, retroviral integrase, cysteine pr ***
  18855. --- *** otease, and ATPase. Polintons are charac ***
  18856. --- *** terized by 6-bp target site duplications ***
  18857. --- *** , terminal-inverted repeats that are sev ***
  18858. --- *** eral hundred nucleotides long, and 5'-AG ***
  18859. --- *** and TC-3' termini. Polintons exist as a ***
  18860. --- *** utonomous and nonautonomous elements. ***
  18861. --- ************************************************
  18862. ---
  18863. CREATE VIEW polinton AS
  18864. SELECT
  18865. feature_id AS polinton_id,
  18866. feature.*
  18867. FROM
  18868. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18869. WHERE cvterm.name = 'polinton';
  18870. --- ************************************************
  18871. --- *** relation: rrna_21s ***
  18872. --- *** relation type: VIEW ***
  18873. --- *** ***
  18874. --- *** A component of the large ribosomal subun ***
  18875. --- *** it in mitochondrial rRNA. ***
  18876. --- ************************************************
  18877. ---
  18878. CREATE VIEW rrna_21s AS
  18879. SELECT
  18880. feature_id AS rrna_21s_id,
  18881. feature.*
  18882. FROM
  18883. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18884. WHERE cvterm.name = 'rRNA_21S';
  18885. --- ************************************************
  18886. --- *** relation: trna_region ***
  18887. --- *** relation type: VIEW ***
  18888. --- *** ***
  18889. --- *** A region of a tRNA. ***
  18890. --- ************************************************
  18891. ---
  18892. CREATE VIEW trna_region AS
  18893. SELECT
  18894. feature_id AS trna_region_id,
  18895. feature.*
  18896. FROM
  18897. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18898. 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';
  18899. --- ************************************************
  18900. --- *** relation: anticodon_loop ***
  18901. --- *** relation type: VIEW ***
  18902. --- *** ***
  18903. --- *** A sequence of seven nucleotide bases in ***
  18904. --- *** tRNA which contains the anticodon. It ha ***
  18905. --- *** s the sequence 5'-pyrimidine-purine-anti ***
  18906. --- *** codon-modified purine-any base-3. ***
  18907. --- ************************************************
  18908. ---
  18909. CREATE VIEW anticodon_loop AS
  18910. SELECT
  18911. feature_id AS anticodon_loop_id,
  18912. feature.*
  18913. FROM
  18914. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18915. WHERE cvterm.name = 'anticodon_loop';
  18916. --- ************************************************
  18917. --- *** relation: anticodon ***
  18918. --- *** relation type: VIEW ***
  18919. --- *** ***
  18920. --- *** A sequence of three nucleotide bases in ***
  18921. --- *** tRNA which recognizes a codon in mRNA. ***
  18922. --- ************************************************
  18923. ---
  18924. CREATE VIEW anticodon AS
  18925. SELECT
  18926. feature_id AS anticodon_id,
  18927. feature.*
  18928. FROM
  18929. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18930. WHERE cvterm.name = 'anticodon';
  18931. --- ************************************************
  18932. --- *** relation: cca_tail ***
  18933. --- *** relation type: VIEW ***
  18934. --- *** ***
  18935. --- *** Base sequence at the 3' end of a tRNA. T ***
  18936. --- *** he 3'-hydroxyl group on the terminal ade ***
  18937. --- *** nosine is the attachment point for the a ***
  18938. --- *** mino acid. ***
  18939. --- ************************************************
  18940. ---
  18941. CREATE VIEW cca_tail AS
  18942. SELECT
  18943. feature_id AS cca_tail_id,
  18944. feature.*
  18945. FROM
  18946. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18947. WHERE cvterm.name = 'CCA_tail';
  18948. --- ************************************************
  18949. --- *** relation: dhu_loop ***
  18950. --- *** relation type: VIEW ***
  18951. --- *** ***
  18952. --- *** Non-base-paired sequence of nucleotide b ***
  18953. --- *** ases in tRNA. It contains several dihydr ***
  18954. --- *** ouracil residues. ***
  18955. --- ************************************************
  18956. ---
  18957. CREATE VIEW dhu_loop AS
  18958. SELECT
  18959. feature_id AS dhu_loop_id,
  18960. feature.*
  18961. FROM
  18962. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18963. WHERE cvterm.name = 'DHU_loop';
  18964. --- ************************************************
  18965. --- *** relation: t_loop ***
  18966. --- *** relation type: VIEW ***
  18967. --- *** ***
  18968. --- *** Non-base-paired sequence of three nucleo ***
  18969. --- *** tide bases in tRNA. It has sequence T-Ps ***
  18970. --- *** i-C. ***
  18971. --- ************************************************
  18972. ---
  18973. CREATE VIEW t_loop AS
  18974. SELECT
  18975. feature_id AS t_loop_id,
  18976. feature.*
  18977. FROM
  18978. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18979. WHERE cvterm.name = 'T_loop';
  18980. --- ************************************************
  18981. --- *** relation: pyrrolysine_trna_primary_transcript ***
  18982. --- *** relation type: VIEW ***
  18983. --- *** ***
  18984. --- *** A primary transcript encoding pyrrolysyl ***
  18985. --- *** tRNA (SO:0000766). ***
  18986. --- ************************************************
  18987. ---
  18988. CREATE VIEW pyrrolysine_trna_primary_transcript AS
  18989. SELECT
  18990. feature_id AS pyrrolysine_trna_primary_transcript_id,
  18991. feature.*
  18992. FROM
  18993. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18994. WHERE cvterm.name = 'pyrrolysine_tRNA_primary_transcript';
  18995. --- ************************************************
  18996. --- *** relation: u3_snorna ***
  18997. --- *** relation type: VIEW ***
  18998. --- *** ***
  18999. --- *** U3 snoRNA is a member of the box C/D cla ***
  19000. --- *** ss of small nucleolar RNAs. The U3 snoRN ***
  19001. --- *** A secondary structure is characterised b ***
  19002. --- *** y a small 5' domain (with boxes A and A' ***
  19003. --- *** ), and a larger 3' domain (with boxes B, ***
  19004. --- *** C, C', and D), the two domains being li ***
  19005. --- *** nked by a single-stranded hinge. Boxes B ***
  19006. --- *** and C form the B/C motif, which appears ***
  19007. --- *** to be exclusive to U3 snoRNAs, and boxe ***
  19008. --- *** s C' and D form the C'/D motif. The latt ***
  19009. --- *** er is functionally similar to the C/D mo ***
  19010. --- *** tifs found in other snoRNAs. The 5' doma ***
  19011. --- *** in and the hinge region act as a pre-rRN ***
  19012. --- *** A-binding domain. The 3' domain has cons ***
  19013. --- *** erved protein-binding sites. Both the bo ***
  19014. --- *** x B/C and box C'/D motifs are sufficient ***
  19015. --- *** for nuclear retention of U3 snoRNA. The ***
  19016. --- *** box C'/D motif is also necessary for nu ***
  19017. --- *** cleolar localization, stability and hype ***
  19018. --- *** rmethylation of U3 snoRNA. Both box B/C ***
  19019. --- *** and C'/D motifs are involved in specific ***
  19020. --- *** protein interactions and are necessary ***
  19021. --- *** for the rRNA processing functions of U3 ***
  19022. --- *** snoRNA. ***
  19023. --- ************************************************
  19024. ---
  19025. CREATE VIEW u3_snorna AS
  19026. SELECT
  19027. feature_id AS u3_snorna_id,
  19028. feature.*
  19029. FROM
  19030. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19031. WHERE cvterm.name = 'U3_snoRNA';
  19032. --- ************************************************
  19033. --- *** relation: au_rich_element ***
  19034. --- *** relation type: VIEW ***
  19035. --- *** ***
  19036. --- *** A cis-acting element found in the 3' UTR ***
  19037. --- *** of some mRNA which is rich in AUUUA pen ***
  19038. --- *** tamers. Messenger RNAs bearing multiple ***
  19039. --- *** AU-rich elements are often unstable. ***
  19040. --- ************************************************
  19041. ---
  19042. CREATE VIEW au_rich_element AS
  19043. SELECT
  19044. feature_id AS au_rich_element_id,
  19045. feature.*
  19046. FROM
  19047. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19048. WHERE cvterm.name = 'AU_rich_element';
  19049. --- ************************************************
  19050. --- *** relation: bruno_response_element ***
  19051. --- *** relation type: VIEW ***
  19052. --- *** ***
  19053. --- *** A cis-acting element found in the 3' UTR ***
  19054. --- *** of some mRNA which is bound by the Dros ***
  19055. --- *** ophila Bruno protein and its homologs. ***
  19056. --- ************************************************
  19057. ---
  19058. CREATE VIEW bruno_response_element AS
  19059. SELECT
  19060. feature_id AS bruno_response_element_id,
  19061. feature.*
  19062. FROM
  19063. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19064. WHERE cvterm.name = 'Bruno_response_element';
  19065. --- ************************************************
  19066. --- *** relation: iron_responsive_element ***
  19067. --- *** relation type: VIEW ***
  19068. --- *** ***
  19069. --- *** A regulatory sequence found in the 5' an ***
  19070. --- *** d 3' UTRs of many mRNAs which encode iro ***
  19071. --- *** n-binding proteins. It has a hairpin str ***
  19072. --- *** ucture and is recognized by trans-acting ***
  19073. --- *** proteins known as iron-regulatory prote ***
  19074. --- *** ins. ***
  19075. --- ************************************************
  19076. ---
  19077. CREATE VIEW iron_responsive_element AS
  19078. SELECT
  19079. feature_id AS iron_responsive_element_id,
  19080. feature.*
  19081. FROM
  19082. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19083. WHERE cvterm.name = 'iron_responsive_element';
  19084. --- ************************************************
  19085. --- *** relation: morpholino ***
  19086. --- *** relation type: VIEW ***
  19087. --- *** ***
  19088. --- *** An attribute describing a sequence compo ***
  19089. --- *** sed of nucleobases bound to a morpholino ***
  19090. --- *** backbone. A morpholino backbone consist ***
  19091. --- *** s of morpholine (CHEBI:34856) rings conn ***
  19092. --- *** ected by phosphorodiamidate linkages. ***
  19093. --- ************************************************
  19094. ---
  19095. CREATE VIEW morpholino AS
  19096. SELECT
  19097. feature_id AS morpholino_id,
  19098. feature.*
  19099. FROM
  19100. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19101. WHERE cvterm.name = 'morpholino';
  19102. --- ************************************************
  19103. --- *** relation: pna ***
  19104. --- *** relation type: VIEW ***
  19105. --- *** ***
  19106. --- *** An attribute describing a sequence compo ***
  19107. --- *** sed of peptide nucleic acid (CHEBI:48021 ***
  19108. --- *** ), a chemical consisting of nucleobases ***
  19109. --- *** bound to a backbone composed of repeatin ***
  19110. --- *** g N-(2-aminoethyl)-glycine units linked ***
  19111. --- *** by peptide bonds. The purine and pyrimid ***
  19112. --- *** ine bases are linked to the backbone by ***
  19113. --- *** methylene carbonyl bonds. ***
  19114. --- ************************************************
  19115. ---
  19116. CREATE VIEW pna AS
  19117. SELECT
  19118. feature_id AS pna_id,
  19119. feature.*
  19120. FROM
  19121. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19122. WHERE cvterm.name = 'PNA';
  19123. --- ************************************************
  19124. --- *** relation: enzymatic ***
  19125. --- *** relation type: VIEW ***
  19126. --- *** ***
  19127. --- *** An attribute describing the sequence of ***
  19128. --- *** a transcript that has catalytic activity ***
  19129. --- *** with or without an associated ribonucle ***
  19130. --- *** oprotein. ***
  19131. --- ************************************************
  19132. ---
  19133. CREATE VIEW enzymatic AS
  19134. SELECT
  19135. feature_id AS enzymatic_id,
  19136. feature.*
  19137. FROM
  19138. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19139. WHERE cvterm.name = 'ribozymic' OR cvterm.name = 'enzymatic';
  19140. --- ************************************************
  19141. --- *** relation: ribozymic ***
  19142. --- *** relation type: VIEW ***
  19143. --- *** ***
  19144. --- *** An attribute describing the sequence of ***
  19145. --- *** a transcript that has catalytic activity ***
  19146. --- *** even without an associated ribonucleopr ***
  19147. --- *** otein. ***
  19148. --- ************************************************
  19149. ---
  19150. CREATE VIEW ribozymic AS
  19151. SELECT
  19152. feature_id AS ribozymic_id,
  19153. feature.*
  19154. FROM
  19155. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19156. WHERE cvterm.name = 'ribozymic';
  19157. --- ************************************************
  19158. --- *** relation: pseudouridylation_guide_snorna ***
  19159. --- *** relation type: VIEW ***
  19160. --- *** ***
  19161. --- *** A snoRNA that specifies the site of pseu ***
  19162. --- *** douridylation in an RNA molecule by base ***
  19163. --- *** pairing with a short sequence around th ***
  19164. --- *** e target residue. ***
  19165. --- ************************************************
  19166. ---
  19167. CREATE VIEW pseudouridylation_guide_snorna AS
  19168. SELECT
  19169. feature_id AS pseudouridylation_guide_snorna_id,
  19170. feature.*
  19171. FROM
  19172. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19173. WHERE cvterm.name = 'pseudouridylation_guide_snoRNA';
  19174. --- ************************************************
  19175. --- *** relation: lna ***
  19176. --- *** relation type: VIEW ***
  19177. --- *** ***
  19178. --- *** An attribute describing a sequence consi ***
  19179. --- *** sting of nucleobases attached to a repea ***
  19180. --- *** ting unit made of 'locked' deoxyribose r ***
  19181. --- *** ings connected to a phosphate backbone. ***
  19182. --- *** The deoxyribose unit's conformation is ' ***
  19183. --- *** locked' by a 2'-C,4'-C-oxymethylene link ***
  19184. --- *** . ***
  19185. --- ************************************************
  19186. ---
  19187. CREATE VIEW lna AS
  19188. SELECT
  19189. feature_id AS lna_id,
  19190. feature.*
  19191. FROM
  19192. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19193. WHERE cvterm.name = 'LNA';
  19194. --- ************************************************
  19195. --- *** relation: lna_oligo ***
  19196. --- *** relation type: VIEW ***
  19197. --- *** ***
  19198. --- *** An oligo composed of LNA residues. ***
  19199. --- ************************************************
  19200. ---
  19201. CREATE VIEW lna_oligo AS
  19202. SELECT
  19203. feature_id AS lna_oligo_id,
  19204. feature.*
  19205. FROM
  19206. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19207. WHERE cvterm.name = 'LNA_oligo';
  19208. --- ************************************************
  19209. --- *** relation: tna ***
  19210. --- *** relation type: VIEW ***
  19211. --- *** ***
  19212. --- *** An attribute describing a sequence consi ***
  19213. --- *** sting of nucleobases attached to a repea ***
  19214. --- *** ting unit made of threose rings connecte ***
  19215. --- *** d to a phosphate backbone. ***
  19216. --- ************************************************
  19217. ---
  19218. CREATE VIEW tna AS
  19219. SELECT
  19220. feature_id AS tna_id,
  19221. feature.*
  19222. FROM
  19223. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19224. WHERE cvterm.name = 'TNA';
  19225. --- ************************************************
  19226. --- *** relation: tna_oligo ***
  19227. --- *** relation type: VIEW ***
  19228. --- *** ***
  19229. --- *** An oligo composed of TNA residues. ***
  19230. --- ************************************************
  19231. ---
  19232. CREATE VIEW tna_oligo AS
  19233. SELECT
  19234. feature_id AS tna_oligo_id,
  19235. feature.*
  19236. FROM
  19237. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19238. WHERE cvterm.name = 'TNA_oligo';
  19239. --- ************************************************
  19240. --- *** relation: gna ***
  19241. --- *** relation type: VIEW ***
  19242. --- *** ***
  19243. --- *** An attribute describing a sequence consi ***
  19244. --- *** sting of nucleobases attached to a repea ***
  19245. --- *** ting unit made of an acyclic three-carbo ***
  19246. --- *** n propylene glycol connected to a phosph ***
  19247. --- *** ate backbone. It has two enantiomeric fo ***
  19248. --- *** rms, (R)-GNA and (S)-GNA. ***
  19249. --- ************************************************
  19250. ---
  19251. CREATE VIEW gna AS
  19252. SELECT
  19253. feature_id AS gna_id,
  19254. feature.*
  19255. FROM
  19256. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19257. WHERE cvterm.name = 'R_GNA' OR cvterm.name = 'S_GNA' OR cvterm.name = 'GNA';
  19258. --- ************************************************
  19259. --- *** relation: gna_oligo ***
  19260. --- *** relation type: VIEW ***
  19261. --- *** ***
  19262. --- *** An oligo composed of GNA residues. ***
  19263. --- ************************************************
  19264. ---
  19265. CREATE VIEW gna_oligo AS
  19266. SELECT
  19267. feature_id AS gna_oligo_id,
  19268. feature.*
  19269. FROM
  19270. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19271. WHERE cvterm.name = 'R_GNA_oligo' OR cvterm.name = 'S_GNA_oligo' OR cvterm.name = 'GNA_oligo';
  19272. --- ************************************************
  19273. --- *** relation: r_gna ***
  19274. --- *** relation type: VIEW ***
  19275. --- *** ***
  19276. --- *** An attribute describing a GNA sequence i ***
  19277. --- *** n the (R)-GNA enantiomer. ***
  19278. --- ************************************************
  19279. ---
  19280. CREATE VIEW r_gna AS
  19281. SELECT
  19282. feature_id AS r_gna_id,
  19283. feature.*
  19284. FROM
  19285. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19286. WHERE cvterm.name = 'R_GNA';
  19287. --- ************************************************
  19288. --- *** relation: r_gna_oligo ***
  19289. --- *** relation type: VIEW ***
  19290. --- *** ***
  19291. --- *** An oligo composed of (R)-GNA residues. ***
  19292. --- ************************************************
  19293. ---
  19294. CREATE VIEW r_gna_oligo AS
  19295. SELECT
  19296. feature_id AS r_gna_oligo_id,
  19297. feature.*
  19298. FROM
  19299. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19300. WHERE cvterm.name = 'R_GNA_oligo';
  19301. --- ************************************************
  19302. --- *** relation: s_gna ***
  19303. --- *** relation type: VIEW ***
  19304. --- *** ***
  19305. --- *** An attribute describing a GNA sequence i ***
  19306. --- *** n the (S)-GNA enantiomer. ***
  19307. --- ************************************************
  19308. ---
  19309. CREATE VIEW s_gna AS
  19310. SELECT
  19311. feature_id AS s_gna_id,
  19312. feature.*
  19313. FROM
  19314. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19315. WHERE cvterm.name = 'S_GNA';
  19316. --- ************************************************
  19317. --- *** relation: s_gna_oligo ***
  19318. --- *** relation type: VIEW ***
  19319. --- *** ***
  19320. --- *** An oligo composed of (S)-GNA residues. ***
  19321. --- ************************************************
  19322. ---
  19323. CREATE VIEW s_gna_oligo AS
  19324. SELECT
  19325. feature_id AS s_gna_oligo_id,
  19326. feature.*
  19327. FROM
  19328. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19329. WHERE cvterm.name = 'S_GNA_oligo';
  19330. --- ************************************************
  19331. --- *** relation: ds_dna_viral_sequence ***
  19332. --- *** relation type: VIEW ***
  19333. --- *** ***
  19334. --- *** A ds_DNA_viral_sequence is a viral_seque ***
  19335. --- *** nce that is the sequence of a virus that ***
  19336. --- *** exists as double stranded DNA. ***
  19337. --- ************************************************
  19338. ---
  19339. CREATE VIEW ds_dna_viral_sequence AS
  19340. SELECT
  19341. feature_id AS ds_dna_viral_sequence_id,
  19342. feature.*
  19343. FROM
  19344. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19345. WHERE cvterm.name = 'ds_DNA_viral_sequence';
  19346. --- ************************************************
  19347. --- *** relation: ss_rna_viral_sequence ***
  19348. --- *** relation type: VIEW ***
  19349. --- *** ***
  19350. --- *** A ss_RNA_viral_sequence is a viral_seque ***
  19351. --- *** nce that is the sequence of a virus that ***
  19352. --- *** exists as single stranded RNA. ***
  19353. --- ************************************************
  19354. ---
  19355. CREATE VIEW ss_rna_viral_sequence AS
  19356. SELECT
  19357. feature_id AS ss_rna_viral_sequence_id,
  19358. feature.*
  19359. FROM
  19360. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19361. 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';
  19362. --- ************************************************
  19363. --- *** relation: negative_sense_ssrna_viral_sequence ***
  19364. --- *** relation type: VIEW ***
  19365. --- *** ***
  19366. --- *** A negative_sense_RNA_viral_sequence is a ***
  19367. --- *** ss_RNA_viral_sequence that is the seque ***
  19368. --- *** nce of a single stranded RNA virus that ***
  19369. --- *** is complementary to mRNA and must be con ***
  19370. --- *** verted to positive sense RNA by RNA poly ***
  19371. --- *** merase before translation. ***
  19372. --- ************************************************
  19373. ---
  19374. CREATE VIEW negative_sense_ssrna_viral_sequence AS
  19375. SELECT
  19376. feature_id AS negative_sense_ssrna_viral_sequence_id,
  19377. feature.*
  19378. FROM
  19379. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19380. WHERE cvterm.name = 'negative_sense_ssRNA_viral_sequence';
  19381. --- ************************************************
  19382. --- *** relation: positive_sense_ssrna_viral_sequence ***
  19383. --- *** relation type: VIEW ***
  19384. --- *** ***
  19385. --- *** A positive_sense_RNA_viral_sequence is a ***
  19386. --- *** ss_RNA_viral_sequence that is the seque ***
  19387. --- *** nce of a single stranded RNA virus that ***
  19388. --- *** can be immediately translated by the hos ***
  19389. --- *** t. ***
  19390. --- ************************************************
  19391. ---
  19392. CREATE VIEW positive_sense_ssrna_viral_sequence AS
  19393. SELECT
  19394. feature_id AS positive_sense_ssrna_viral_sequence_id,
  19395. feature.*
  19396. FROM
  19397. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19398. WHERE cvterm.name = 'positive_sense_ssRNA_viral_sequence';
  19399. --- ************************************************
  19400. --- *** relation: ambisense_ssrna_viral_sequence ***
  19401. --- *** relation type: VIEW ***
  19402. --- *** ***
  19403. --- *** A ambisense_RNA_virus is a ss_RNA_viral_ ***
  19404. --- *** sequence that is the sequence of a singl ***
  19405. --- *** e stranded RNA virus with both messenger ***
  19406. --- *** and anti messenger polarity. ***
  19407. --- ************************************************
  19408. ---
  19409. CREATE VIEW ambisense_ssrna_viral_sequence AS
  19410. SELECT
  19411. feature_id AS ambisense_ssrna_viral_sequence_id,
  19412. feature.*
  19413. FROM
  19414. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19415. WHERE cvterm.name = 'ambisense_ssRNA_viral_sequence';
  19416. --- ************************************************
  19417. --- *** relation: rna_polymerase_promoter ***
  19418. --- *** relation type: VIEW ***
  19419. --- *** ***
  19420. --- *** A region (DNA) to which RNA polymerase b ***
  19421. --- *** inds, to begin transcription. ***
  19422. --- ************************************************
  19423. ---
  19424. CREATE VIEW rna_polymerase_promoter AS
  19425. SELECT
  19426. feature_id AS rna_polymerase_promoter_id,
  19427. feature.*
  19428. FROM
  19429. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19430. 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';
  19431. --- ************************************************
  19432. --- *** relation: phage_rna_polymerase_promoter ***
  19433. --- *** relation type: VIEW ***
  19434. --- *** ***
  19435. --- *** A region (DNA) to which Bacteriophage RN ***
  19436. --- *** A polymerase binds, to begin transcripti ***
  19437. --- *** on. ***
  19438. --- ************************************************
  19439. ---
  19440. CREATE VIEW phage_rna_polymerase_promoter AS
  19441. SELECT
  19442. feature_id AS phage_rna_polymerase_promoter_id,
  19443. feature.*
  19444. FROM
  19445. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19446. 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';
  19447. --- ************************************************
  19448. --- *** relation: sp6_rna_polymerase_promoter ***
  19449. --- *** relation type: VIEW ***
  19450. --- *** ***
  19451. --- *** A region (DNA) to which the SP6 RNA poly ***
  19452. --- *** merase binds, to begin transcription. ***
  19453. --- ************************************************
  19454. ---
  19455. CREATE VIEW sp6_rna_polymerase_promoter AS
  19456. SELECT
  19457. feature_id AS sp6_rna_polymerase_promoter_id,
  19458. feature.*
  19459. FROM
  19460. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19461. WHERE cvterm.name = 'SP6_RNA_Polymerase_Promoter';
  19462. --- ************************************************
  19463. --- *** relation: t3_rna_polymerase_promoter ***
  19464. --- *** relation type: VIEW ***
  19465. --- *** ***
  19466. --- *** A DNA sequence to which the T3 RNA polym ***
  19467. --- *** erase binds, to begin transcription. ***
  19468. --- ************************************************
  19469. ---
  19470. CREATE VIEW t3_rna_polymerase_promoter AS
  19471. SELECT
  19472. feature_id AS t3_rna_polymerase_promoter_id,
  19473. feature.*
  19474. FROM
  19475. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19476. WHERE cvterm.name = 'T3_RNA_Polymerase_Promoter';
  19477. --- ************************************************
  19478. --- *** relation: t7_rna_polymerase_promoter ***
  19479. --- *** relation type: VIEW ***
  19480. --- *** ***
  19481. --- *** A region (DNA) to which the T7 RNA polym ***
  19482. --- *** erase binds, to begin transcription. ***
  19483. --- ************************************************
  19484. ---
  19485. CREATE VIEW t7_rna_polymerase_promoter AS
  19486. SELECT
  19487. feature_id AS t7_rna_polymerase_promoter_id,
  19488. feature.*
  19489. FROM
  19490. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19491. WHERE cvterm.name = 'T7_RNA_Polymerase_Promoter';
  19492. --- ************************************************
  19493. --- *** relation: five_prime_est ***
  19494. --- *** relation type: VIEW ***
  19495. --- *** ***
  19496. --- *** An EST read from the 5' end of a transcr ***
  19497. --- *** ipt that usually codes for a protein. Th ***
  19498. --- *** ese regions tend to be conserved across ***
  19499. --- *** species and do not change much within a ***
  19500. --- *** gene family. ***
  19501. --- ************************************************
  19502. ---
  19503. CREATE VIEW five_prime_est AS
  19504. SELECT
  19505. feature_id AS five_prime_est_id,
  19506. feature.*
  19507. FROM
  19508. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19509. WHERE cvterm.name = 'five_prime_EST';
  19510. --- ************************************************
  19511. --- *** relation: three_prime_est ***
  19512. --- *** relation type: VIEW ***
  19513. --- *** ***
  19514. --- *** An EST read from the 3' end of a transcr ***
  19515. --- *** ipt. They are more likely to fall within ***
  19516. --- *** non-coding, or untranslated regions(UTR ***
  19517. --- *** s). ***
  19518. --- ************************************************
  19519. ---
  19520. CREATE VIEW three_prime_est AS
  19521. SELECT
  19522. feature_id AS three_prime_est_id,
  19523. feature.*
  19524. FROM
  19525. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19526. WHERE cvterm.name = 'three_prime_EST';
  19527. --- ************************************************
  19528. --- *** relation: translational_frameshift ***
  19529. --- *** relation type: VIEW ***
  19530. --- *** ***
  19531. --- *** The region of mRNA (not divisible by 3 b ***
  19532. --- *** ases) that is skipped during the process ***
  19533. --- *** of translational frameshifting (GO:0006 ***
  19534. --- *** 452), causing the reading frame to be di ***
  19535. --- *** fferent. ***
  19536. --- ************************************************
  19537. ---
  19538. CREATE VIEW translational_frameshift AS
  19539. SELECT
  19540. feature_id AS translational_frameshift_id,
  19541. feature.*
  19542. FROM
  19543. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19544. WHERE cvterm.name = 'plus_1_translational_frameshift' OR cvterm.name = 'plus_2_translational_frameshift' OR cvterm.name = 'translational_frameshift';
  19545. --- ************************************************
  19546. --- *** relation: plus_1_translational_frameshift ***
  19547. --- *** relation type: VIEW ***
  19548. --- *** ***
  19549. --- *** The region of mRNA 1 base long that is s ***
  19550. --- *** kipped during the process of translation ***
  19551. --- *** al frameshifting (GO:0006452), causing t ***
  19552. --- *** he reading frame to be different. ***
  19553. --- ************************************************
  19554. ---
  19555. CREATE VIEW plus_1_translational_frameshift AS
  19556. SELECT
  19557. feature_id AS plus_1_translational_frameshift_id,
  19558. feature.*
  19559. FROM
  19560. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19561. WHERE cvterm.name = 'plus_1_translational_frameshift';
  19562. --- ************************************************
  19563. --- *** relation: plus_2_translational_frameshift ***
  19564. --- *** relation type: VIEW ***
  19565. --- *** ***
  19566. --- *** The region of mRNA 2 bases long that is ***
  19567. --- *** skipped during the process of translatio ***
  19568. --- *** nal frameshifting (GO:0006452), causing ***
  19569. --- *** the reading frame to be different. ***
  19570. --- ************************************************
  19571. ---
  19572. CREATE VIEW plus_2_translational_frameshift AS
  19573. SELECT
  19574. feature_id AS plus_2_translational_frameshift_id,
  19575. feature.*
  19576. FROM
  19577. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19578. WHERE cvterm.name = 'plus_2_translational_frameshift';
  19579. --- ************************************************
  19580. --- *** relation: group_iii_intron ***
  19581. --- *** relation type: VIEW ***
  19582. --- *** ***
  19583. --- *** Group III introns are introns found in t ***
  19584. --- *** he mRNA of the plastids of euglenoid pro ***
  19585. --- *** tists. They are spliced by a two step tr ***
  19586. --- *** ansesterification with bulged adenosine ***
  19587. --- *** as initiating nucleophile. ***
  19588. --- ************************************************
  19589. ---
  19590. CREATE VIEW group_iii_intron AS
  19591. SELECT
  19592. feature_id AS group_iii_intron_id,
  19593. feature.*
  19594. FROM
  19595. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19596. WHERE cvterm.name = 'group_III_intron';
  19597. --- ************************************************
  19598. --- *** relation: noncoding_region_of_exon ***
  19599. --- *** relation type: VIEW ***
  19600. --- *** ***
  19601. --- *** The maximal intersection of exon and UTR ***
  19602. --- *** . ***
  19603. --- ************************************************
  19604. ---
  19605. CREATE VIEW noncoding_region_of_exon AS
  19606. SELECT
  19607. feature_id AS noncoding_region_of_exon_id,
  19608. feature.*
  19609. FROM
  19610. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19611. 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';
  19612. --- ************************************************
  19613. --- *** relation: coding_region_of_exon ***
  19614. --- *** relation type: VIEW ***
  19615. --- *** ***
  19616. --- *** The region of an exon that encodes for p ***
  19617. --- *** rotein sequence. ***
  19618. --- ************************************************
  19619. ---
  19620. CREATE VIEW coding_region_of_exon AS
  19621. SELECT
  19622. feature_id AS coding_region_of_exon_id,
  19623. feature.*
  19624. FROM
  19625. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19626. 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';
  19627. --- ************************************************
  19628. --- *** relation: endonuclease_spliced_intron ***
  19629. --- *** relation type: VIEW ***
  19630. --- *** ***
  19631. --- *** An intron that spliced via endonucleolyt ***
  19632. --- *** ic cleavage and ligation rather than tra ***
  19633. --- *** nsesterification. ***
  19634. --- ************************************************
  19635. ---
  19636. CREATE VIEW endonuclease_spliced_intron AS
  19637. SELECT
  19638. feature_id AS endonuclease_spliced_intron_id,
  19639. feature.*
  19640. FROM
  19641. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19642. WHERE cvterm.name = 'archaeal_intron' OR cvterm.name = 'tRNA_intron' OR cvterm.name = 'endonuclease_spliced_intron';
  19643. --- ************************************************
  19644. --- *** relation: protein_coding_gene ***
  19645. --- *** relation type: VIEW ***
  19646. --- *** ***
  19647. --- ************************************************
  19648. ---
  19649. CREATE VIEW protein_coding_gene AS
  19650. SELECT
  19651. feature_id AS protein_coding_gene_id,
  19652. feature.*
  19653. FROM
  19654. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19655. 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';
  19656. --- ************************************************
  19657. --- *** relation: transgenic_insertion ***
  19658. --- *** relation type: VIEW ***
  19659. --- *** ***
  19660. --- ************************************************
  19661. ---
  19662. CREATE VIEW transgenic_insertion AS
  19663. SELECT
  19664. feature_id AS transgenic_insertion_id,
  19665. feature.*
  19666. FROM
  19667. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19668. WHERE cvterm.name = 'transgenic_insertion';
  19669. --- ************************************************
  19670. --- *** relation: retrogene ***
  19671. --- *** relation type: VIEW ***
  19672. --- *** ***
  19673. --- ************************************************
  19674. ---
  19675. CREATE VIEW retrogene AS
  19676. SELECT
  19677. feature_id AS retrogene_id,
  19678. feature.*
  19679. FROM
  19680. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19681. WHERE cvterm.name = 'retrogene';
  19682. --- ************************************************
  19683. --- *** relation: silenced_by_rna_interference ***
  19684. --- *** relation type: VIEW ***
  19685. --- *** ***
  19686. --- *** An attribute describing an epigenetic pr ***
  19687. --- *** ocess where a gene is inactivated by RNA ***
  19688. --- *** interference. ***
  19689. --- ************************************************
  19690. ---
  19691. CREATE VIEW silenced_by_rna_interference AS
  19692. SELECT
  19693. feature_id AS silenced_by_rna_interference_id,
  19694. feature.*
  19695. FROM
  19696. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19697. WHERE cvterm.name = 'silenced_by_RNA_interference';
  19698. --- ************************************************
  19699. --- *** relation: silenced_by_histone_modification ***
  19700. --- *** relation type: VIEW ***
  19701. --- *** ***
  19702. --- *** An attribute describing an epigenetic pr ***
  19703. --- *** ocess where a gene is inactivated by his ***
  19704. --- *** tone modification. ***
  19705. --- ************************************************
  19706. ---
  19707. CREATE VIEW silenced_by_histone_modification AS
  19708. SELECT
  19709. feature_id AS silenced_by_histone_modification_id,
  19710. feature.*
  19711. FROM
  19712. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19713. WHERE cvterm.name = 'silenced_by_histone_methylation' OR cvterm.name = 'silenced_by_histone_deacetylation' OR cvterm.name = 'silenced_by_histone_modification';
  19714. --- ************************************************
  19715. --- *** relation: silenced_by_histone_methylation ***
  19716. --- *** relation type: VIEW ***
  19717. --- *** ***
  19718. --- *** An attribute describing an epigenetic pr ***
  19719. --- *** ocess where a gene is inactivated by his ***
  19720. --- *** tone methylation. ***
  19721. --- ************************************************
  19722. ---
  19723. CREATE VIEW silenced_by_histone_methylation AS
  19724. SELECT
  19725. feature_id AS silenced_by_histone_methylation_id,
  19726. feature.*
  19727. FROM
  19728. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19729. WHERE cvterm.name = 'silenced_by_histone_methylation';
  19730. --- ************************************************
  19731. --- *** relation: silenced_by_histone_deacetylation ***
  19732. --- *** relation type: VIEW ***
  19733. --- *** ***
  19734. --- *** An attribute describing an epigenetic pr ***
  19735. --- *** ocess where a gene is inactivated by his ***
  19736. --- *** tone deacetylation. ***
  19737. --- ************************************************
  19738. ---
  19739. CREATE VIEW silenced_by_histone_deacetylation AS
  19740. SELECT
  19741. feature_id AS silenced_by_histone_deacetylation_id,
  19742. feature.*
  19743. FROM
  19744. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19745. WHERE cvterm.name = 'silenced_by_histone_deacetylation';
  19746. --- ************************************************
  19747. --- *** relation: gene_silenced_by_rna_interference ***
  19748. --- *** relation type: VIEW ***
  19749. --- *** ***
  19750. --- *** A gene that is silenced by RNA interfere ***
  19751. --- *** nce. ***
  19752. --- ************************************************
  19753. ---
  19754. CREATE VIEW gene_silenced_by_rna_interference AS
  19755. SELECT
  19756. feature_id AS gene_silenced_by_rna_interference_id,
  19757. feature.*
  19758. FROM
  19759. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19760. WHERE cvterm.name = 'gene_silenced_by_RNA_interference';
  19761. --- ************************************************
  19762. --- *** relation: gene_silenced_by_histone_modification ***
  19763. --- *** relation type: VIEW ***
  19764. --- *** ***
  19765. --- *** A gene that is silenced by histone modif ***
  19766. --- *** ication. ***
  19767. --- ************************************************
  19768. ---
  19769. CREATE VIEW gene_silenced_by_histone_modification AS
  19770. SELECT
  19771. feature_id AS gene_silenced_by_histone_modification_id,
  19772. feature.*
  19773. FROM
  19774. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19775. WHERE cvterm.name = 'gene_silenced_by_histone_methylation' OR cvterm.name = 'gene_silenced_by_histone_deacetylation' OR cvterm.name = 'gene_silenced_by_histone_modification';
  19776. --- ************************************************
  19777. --- *** relation: gene_silenced_by_histone_methylation ***
  19778. --- *** relation type: VIEW ***
  19779. --- *** ***
  19780. --- *** A gene that is silenced by histone methy ***
  19781. --- *** lation. ***
  19782. --- ************************************************
  19783. ---
  19784. CREATE VIEW gene_silenced_by_histone_methylation AS
  19785. SELECT
  19786. feature_id AS gene_silenced_by_histone_methylation_id,
  19787. feature.*
  19788. FROM
  19789. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19790. WHERE cvterm.name = 'gene_silenced_by_histone_methylation';
  19791. --- ************************************************
  19792. --- *** relation: gene_silenced_by_histone_deacetylation ***
  19793. --- *** relation type: VIEW ***
  19794. --- *** ***
  19795. --- *** A gene that is silenced by histone deace ***
  19796. --- *** tylation. ***
  19797. --- ************************************************
  19798. ---
  19799. CREATE VIEW gene_silenced_by_histone_deacetylation AS
  19800. SELECT
  19801. feature_id AS gene_silenced_by_histone_deacetylation_id,
  19802. feature.*
  19803. FROM
  19804. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19805. WHERE cvterm.name = 'gene_silenced_by_histone_deacetylation';
  19806. --- ************************************************
  19807. --- *** relation: dihydrouridine ***
  19808. --- *** relation type: VIEW ***
  19809. --- *** ***
  19810. --- *** A modified RNA base in which the 5,6-dih ***
  19811. --- *** ydrouracil is bound to the ribose ring. ***
  19812. --- ************************************************
  19813. ---
  19814. CREATE VIEW dihydrouridine AS
  19815. SELECT
  19816. feature_id AS dihydrouridine_id,
  19817. feature.*
  19818. FROM
  19819. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19820. WHERE cvterm.name = 'dihydrouridine';
  19821. --- ************************************************
  19822. --- *** relation: pseudouridine ***
  19823. --- *** relation type: VIEW ***
  19824. --- *** ***
  19825. --- *** A modified RNA base in which the 5- posi ***
  19826. --- *** tion of the uracil is bound to the ribos ***
  19827. --- *** e ring instead of the 4- position. ***
  19828. --- ************************************************
  19829. ---
  19830. CREATE VIEW pseudouridine AS
  19831. SELECT
  19832. feature_id AS pseudouridine_id,
  19833. feature.*
  19834. FROM
  19835. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19836. WHERE cvterm.name = 'pseudouridine';
  19837. --- ************************************************
  19838. --- *** relation: inosine ***
  19839. --- *** relation type: VIEW ***
  19840. --- *** ***
  19841. --- *** A modified RNA base in which hypoxanthin ***
  19842. --- *** e is bound to the ribose ring. ***
  19843. --- ************************************************
  19844. ---
  19845. CREATE VIEW inosine AS
  19846. SELECT
  19847. feature_id AS inosine_id,
  19848. feature.*
  19849. FROM
  19850. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19851. 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';
  19852. --- ************************************************
  19853. --- *** relation: seven_methylguanine ***
  19854. --- *** relation type: VIEW ***
  19855. --- *** ***
  19856. --- *** A modified RNA base in which guanine is ***
  19857. --- *** methylated at the 7- position. ***
  19858. --- ************************************************
  19859. ---
  19860. CREATE VIEW seven_methylguanine AS
  19861. SELECT
  19862. feature_id AS seven_methylguanine_id,
  19863. feature.*
  19864. FROM
  19865. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19866. WHERE cvterm.name = 'seven_methylguanine';
  19867. --- ************************************************
  19868. --- *** relation: ribothymidine ***
  19869. --- *** relation type: VIEW ***
  19870. --- *** ***
  19871. --- *** A modified RNA base in which thymine is ***
  19872. --- *** bound to the ribose ring. ***
  19873. --- ************************************************
  19874. ---
  19875. CREATE VIEW ribothymidine AS
  19876. SELECT
  19877. feature_id AS ribothymidine_id,
  19878. feature.*
  19879. FROM
  19880. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19881. WHERE cvterm.name = 'ribothymidine';
  19882. --- ************************************************
  19883. --- *** relation: methylinosine ***
  19884. --- *** relation type: VIEW ***
  19885. --- *** ***
  19886. --- *** A modified RNA base in which methylhypox ***
  19887. --- *** anthine is bound to the ribose ring. ***
  19888. --- ************************************************
  19889. ---
  19890. CREATE VIEW methylinosine AS
  19891. SELECT
  19892. feature_id AS methylinosine_id,
  19893. feature.*
  19894. FROM
  19895. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19896. WHERE cvterm.name = 'methylinosine';
  19897. --- ************************************************
  19898. --- *** relation: mobile ***
  19899. --- *** relation type: VIEW ***
  19900. --- *** ***
  19901. --- *** An attribute describing a feature that h ***
  19902. --- *** as either intra-genome or intracellular ***
  19903. --- *** mobility. ***
  19904. --- ************************************************
  19905. ---
  19906. CREATE VIEW mobile AS
  19907. SELECT
  19908. feature_id AS mobile_id,
  19909. feature.*
  19910. FROM
  19911. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19912. WHERE cvterm.name = 'mobile';
  19913. --- ************************************************
  19914. --- *** relation: replicon ***
  19915. --- *** relation type: VIEW ***
  19916. --- *** ***
  19917. --- *** A region containing at least one unique ***
  19918. --- *** origin of replication and a unique termi ***
  19919. --- *** nation site. ***
  19920. --- ************************************************
  19921. ---
  19922. CREATE VIEW replicon AS
  19923. SELECT
  19924. feature_id AS replicon_id,
  19925. feature.*
  19926. FROM
  19927. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19928. 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';
  19929. --- ************************************************
  19930. --- *** relation: base ***
  19931. --- *** relation type: VIEW ***
  19932. --- *** ***
  19933. --- *** A base is a sequence feature that corres ***
  19934. --- *** ponds to a single unit of a nucleotide p ***
  19935. --- *** olymer. ***
  19936. --- ************************************************
  19937. ---
  19938. CREATE VIEW base AS
  19939. SELECT
  19940. feature_id AS base_id,
  19941. feature.*
  19942. FROM
  19943. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19944. 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';
  19945. --- ************************************************
  19946. --- *** relation: amino_acid ***
  19947. --- *** relation type: VIEW ***
  19948. --- *** ***
  19949. --- *** A sequence feature that corresponds to a ***
  19950. --- *** single amino acid residue in a polypept ***
  19951. --- *** ide. ***
  19952. --- ************************************************
  19953. ---
  19954. CREATE VIEW amino_acid AS
  19955. SELECT
  19956. feature_id AS amino_acid_id,
  19957. feature.*
  19958. FROM
  19959. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19960. 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';
  19961. --- ************************************************
  19962. --- *** relation: major_tss ***
  19963. --- *** relation type: VIEW ***
  19964. --- *** ***
  19965. --- ************************************************
  19966. ---
  19967. CREATE VIEW major_tss AS
  19968. SELECT
  19969. feature_id AS major_tss_id,
  19970. feature.*
  19971. FROM
  19972. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19973. WHERE cvterm.name = 'major_TSS';
  19974. --- ************************************************
  19975. --- *** relation: minor_tss ***
  19976. --- *** relation type: VIEW ***
  19977. --- *** ***
  19978. --- ************************************************
  19979. ---
  19980. CREATE VIEW minor_tss AS
  19981. SELECT
  19982. feature_id AS minor_tss_id,
  19983. feature.*
  19984. FROM
  19985. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19986. WHERE cvterm.name = 'minor_TSS';
  19987. --- ************************************************
  19988. --- *** relation: tss_region ***
  19989. --- *** relation type: VIEW ***
  19990. --- *** ***
  19991. --- *** The region of a gene from the 5' most TS ***
  19992. --- *** S to the 3' TSS. ***
  19993. --- ************************************************
  19994. ---
  19995. CREATE VIEW tss_region AS
  19996. SELECT
  19997. feature_id AS tss_region_id,
  19998. feature.*
  19999. FROM
  20000. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20001. WHERE cvterm.name = 'TSS_region';
  20002. --- ************************************************
  20003. --- *** relation: encodes_alternate_transcription_start_sites ***
  20004. --- *** relation type: VIEW ***
  20005. --- *** ***
  20006. --- ************************************************
  20007. ---
  20008. CREATE VIEW encodes_alternate_transcription_start_sites AS
  20009. SELECT
  20010. feature_id AS encodes_alternate_transcription_start_sites_id,
  20011. feature.*
  20012. FROM
  20013. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20014. WHERE cvterm.name = 'encodes_alternate_transcription_start_sites';
  20015. --- ************************************************
  20016. --- *** relation: mirna_primary_transcript_region ***
  20017. --- *** relation type: VIEW ***
  20018. --- *** ***
  20019. --- *** A part of an miRNA primary_transcript. ***
  20020. --- ************************************************
  20021. ---
  20022. CREATE VIEW mirna_primary_transcript_region AS
  20023. SELECT
  20024. feature_id AS mirna_primary_transcript_region_id,
  20025. feature.*
  20026. FROM
  20027. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20028. 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';
  20029. --- ************************************************
  20030. --- *** relation: pre_mirna ***
  20031. --- *** relation type: VIEW ***
  20032. --- *** ***
  20033. --- *** The 60-70 nucleotide region remain after ***
  20034. --- *** Drosha processing of the primary transc ***
  20035. --- *** ript, that folds back upon itself to for ***
  20036. --- *** m a hairpin sructure. ***
  20037. --- ************************************************
  20038. ---
  20039. CREATE VIEW pre_mirna AS
  20040. SELECT
  20041. feature_id AS pre_mirna_id,
  20042. feature.*
  20043. FROM
  20044. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20045. WHERE cvterm.name = 'pre_miRNA';
  20046. --- ************************************************
  20047. --- *** relation: mirna_stem ***
  20048. --- *** relation type: VIEW ***
  20049. --- *** ***
  20050. --- *** The stem of the hairpin loop formed by f ***
  20051. --- *** olding of the pre-miRNA. ***
  20052. --- ************************************************
  20053. ---
  20054. CREATE VIEW mirna_stem AS
  20055. SELECT
  20056. feature_id AS mirna_stem_id,
  20057. feature.*
  20058. FROM
  20059. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20060. WHERE cvterm.name = 'miRNA_stem';
  20061. --- ************************************************
  20062. --- *** relation: mirna_loop ***
  20063. --- *** relation type: VIEW ***
  20064. --- *** ***
  20065. --- *** The loop of the hairpin loop formed by f ***
  20066. --- *** olding of the pre-miRNA. ***
  20067. --- ************************************************
  20068. ---
  20069. CREATE VIEW mirna_loop AS
  20070. SELECT
  20071. feature_id AS mirna_loop_id,
  20072. feature.*
  20073. FROM
  20074. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20075. WHERE cvterm.name = 'miRNA_loop';
  20076. --- ************************************************
  20077. --- *** relation: synthetic_oligo ***
  20078. --- *** relation type: VIEW ***
  20079. --- *** ***
  20080. --- *** An oligo composed of synthetic nucleotid ***
  20081. --- *** es. ***
  20082. --- ************************************************
  20083. ---
  20084. CREATE VIEW synthetic_oligo AS
  20085. SELECT
  20086. feature_id AS synthetic_oligo_id,
  20087. feature.*
  20088. FROM
  20089. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20090. 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';
  20091. --- ************************************************
  20092. --- *** relation: assembly ***
  20093. --- *** relation type: VIEW ***
  20094. --- *** ***
  20095. --- *** A region of the genome of known length t ***
  20096. --- *** hat is composed by ordering and aligning ***
  20097. --- *** two or more different regions. ***
  20098. --- ************************************************
  20099. ---
  20100. CREATE VIEW assembly AS
  20101. SELECT
  20102. feature_id AS assembly_id,
  20103. feature.*
  20104. FROM
  20105. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20106. 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';
  20107. --- ************************************************
  20108. --- *** relation: fragment_assembly ***
  20109. --- *** relation type: VIEW ***
  20110. --- *** ***
  20111. --- *** A fragment assembly is a genome assembly ***
  20112. --- *** that orders overlapping fragments of th ***
  20113. --- *** e genome based on landmark sequences. Th ***
  20114. --- *** e base pair distance between the landmar ***
  20115. --- *** ks is known allowing additivity of lengt ***
  20116. --- *** hs. ***
  20117. --- ************************************************
  20118. ---
  20119. CREATE VIEW fragment_assembly AS
  20120. SELECT
  20121. feature_id AS fragment_assembly_id,
  20122. feature.*
  20123. FROM
  20124. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20125. WHERE cvterm.name = 'fingerprint_map' OR cvterm.name = 'STS_map' OR cvterm.name = 'RH_map' OR cvterm.name = 'fragment_assembly';
  20126. --- ************************************************
  20127. --- *** relation: fingerprint_map ***
  20128. --- *** relation type: VIEW ***
  20129. --- *** ***
  20130. --- *** A fingerprint_map is a physical map comp ***
  20131. --- *** osed of restriction fragments. ***
  20132. --- ************************************************
  20133. ---
  20134. CREATE VIEW fingerprint_map AS
  20135. SELECT
  20136. feature_id AS fingerprint_map_id,
  20137. feature.*
  20138. FROM
  20139. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20140. WHERE cvterm.name = 'fingerprint_map';
  20141. --- ************************************************
  20142. --- *** relation: sts_map ***
  20143. --- *** relation type: VIEW ***
  20144. --- *** ***
  20145. --- *** An STS map is a physical map organized b ***
  20146. --- *** y the unique STS landmarks. ***
  20147. --- ************************************************
  20148. ---
  20149. CREATE VIEW sts_map AS
  20150. SELECT
  20151. feature_id AS sts_map_id,
  20152. feature.*
  20153. FROM
  20154. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20155. WHERE cvterm.name = 'STS_map';
  20156. --- ************************************************
  20157. --- *** relation: rh_map ***
  20158. --- *** relation type: VIEW ***
  20159. --- *** ***
  20160. --- *** A radiation hybrid map is a physical map ***
  20161. --- *** . ***
  20162. --- ************************************************
  20163. ---
  20164. CREATE VIEW rh_map AS
  20165. SELECT
  20166. feature_id AS rh_map_id,
  20167. feature.*
  20168. FROM
  20169. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20170. WHERE cvterm.name = 'RH_map';
  20171. --- ************************************************
  20172. --- *** relation: sonicate_fragment ***
  20173. --- *** relation type: VIEW ***
  20174. --- *** ***
  20175. --- *** A DNA fragment generated by sonication. ***
  20176. --- *** Sonication is a technique used to sheer ***
  20177. --- *** DNA into smaller fragments. ***
  20178. --- ************************************************
  20179. ---
  20180. CREATE VIEW sonicate_fragment AS
  20181. SELECT
  20182. feature_id AS sonicate_fragment_id,
  20183. feature.*
  20184. FROM
  20185. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20186. WHERE cvterm.name = 'sonicate_fragment';
  20187. --- ************************************************
  20188. --- *** relation: polyploid ***
  20189. --- *** relation type: VIEW ***
  20190. --- *** ***
  20191. --- *** A kind of chromosome variation where the ***
  20192. --- *** chromosome complement is an exact multi ***
  20193. --- *** ple of the haploid number and is greater ***
  20194. --- *** than the diploid number. ***
  20195. --- ************************************************
  20196. ---
  20197. CREATE VIEW polyploid AS
  20198. SELECT
  20199. feature_id AS polyploid_id,
  20200. feature.*
  20201. FROM
  20202. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20203. WHERE cvterm.name = 'autopolyploid' OR cvterm.name = 'allopolyploid' OR cvterm.name = 'polyploid';
  20204. --- ************************************************
  20205. --- *** relation: autopolyploid ***
  20206. --- *** relation type: VIEW ***
  20207. --- *** ***
  20208. --- *** A polyploid where the multiple chromosom ***
  20209. --- *** e set was derived from the same organism ***
  20210. --- *** . ***
  20211. --- ************************************************
  20212. ---
  20213. CREATE VIEW autopolyploid AS
  20214. SELECT
  20215. feature_id AS autopolyploid_id,
  20216. feature.*
  20217. FROM
  20218. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20219. WHERE cvterm.name = 'autopolyploid';
  20220. --- ************************************************
  20221. --- *** relation: allopolyploid ***
  20222. --- *** relation type: VIEW ***
  20223. --- *** ***
  20224. --- *** A polyploid where the multiple chromosom ***
  20225. --- *** e set was derived from a different organ ***
  20226. --- *** ism. ***
  20227. --- ************************************************
  20228. ---
  20229. CREATE VIEW allopolyploid AS
  20230. SELECT
  20231. feature_id AS allopolyploid_id,
  20232. feature.*
  20233. FROM
  20234. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20235. WHERE cvterm.name = 'allopolyploid';
  20236. --- ************************************************
  20237. --- *** relation: homing_endonuclease_binding_site ***
  20238. --- *** relation type: VIEW ***
  20239. --- *** ***
  20240. --- *** The binding site (recognition site) of a ***
  20241. --- *** homing endonuclease. The binding site i ***
  20242. --- *** s typically large. ***
  20243. --- ************************************************
  20244. ---
  20245. CREATE VIEW homing_endonuclease_binding_site AS
  20246. SELECT
  20247. feature_id AS homing_endonuclease_binding_site_id,
  20248. feature.*
  20249. FROM
  20250. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20251. WHERE cvterm.name = 'homing_endonuclease_binding_site';
  20252. --- ************************************************
  20253. --- *** relation: octamer_motif ***
  20254. --- *** relation type: VIEW ***
  20255. --- *** ***
  20256. --- *** A sequence element characteristic of som ***
  20257. --- *** e RNA polymerase II promoters with seque ***
  20258. --- *** nce ATTGCAT that binds Pou-domain transc ***
  20259. --- *** ription factors. ***
  20260. --- ************************************************
  20261. ---
  20262. CREATE VIEW octamer_motif AS
  20263. SELECT
  20264. feature_id AS octamer_motif_id,
  20265. feature.*
  20266. FROM
  20267. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20268. WHERE cvterm.name = 'octamer_motif';
  20269. --- ************************************************
  20270. --- *** relation: apicoplast_chromosome ***
  20271. --- *** relation type: VIEW ***
  20272. --- *** ***
  20273. --- *** A chromosome originating in an apicoplas ***
  20274. --- *** t. ***
  20275. --- ************************************************
  20276. ---
  20277. CREATE VIEW apicoplast_chromosome AS
  20278. SELECT
  20279. feature_id AS apicoplast_chromosome_id,
  20280. feature.*
  20281. FROM
  20282. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20283. WHERE cvterm.name = 'apicoplast_chromosome';
  20284. --- ************************************************
  20285. --- *** relation: sequence_collection ***
  20286. --- *** relation type: VIEW ***
  20287. --- *** ***
  20288. --- *** A collection of discontinuous sequences. ***
  20289. --- ************************************************
  20290. ---
  20291. CREATE VIEW sequence_collection AS
  20292. SELECT
  20293. feature_id AS sequence_collection_id,
  20294. feature.*
  20295. FROM
  20296. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20297. WHERE cvterm.name = 'kinetoplast' OR cvterm.name = 'genome' OR cvterm.name = 'contig_collection' OR cvterm.name = 'sequence_collection';
  20298. --- ************************************************
  20299. --- *** relation: overlapping_feature_set ***
  20300. --- *** relation type: VIEW ***
  20301. --- *** ***
  20302. --- *** A continuous region of sequence composed ***
  20303. --- *** of the overlapping of multiple sequence ***
  20304. --- *** _features, which ultimately provides evi ***
  20305. --- *** dence for another sequence_feature. ***
  20306. --- ************************************************
  20307. ---
  20308. CREATE VIEW overlapping_feature_set AS
  20309. SELECT
  20310. feature_id AS overlapping_feature_set_id,
  20311. feature.*
  20312. FROM
  20313. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20314. WHERE cvterm.name = 'overlapping_EST_set' OR cvterm.name = 'overlapping_feature_set';
  20315. --- ************************************************
  20316. --- *** relation: overlapping_est_set ***
  20317. --- *** relation type: VIEW ***
  20318. --- *** ***
  20319. --- *** A continous experimental result region e ***
  20320. --- *** xtending the length of multiple overlapp ***
  20321. --- *** ing EST's. ***
  20322. --- ************************************************
  20323. ---
  20324. CREATE VIEW overlapping_est_set AS
  20325. SELECT
  20326. feature_id AS overlapping_est_set_id,
  20327. feature.*
  20328. FROM
  20329. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20330. WHERE cvterm.name = 'overlapping_EST_set';
  20331. --- ************************************************
  20332. --- *** relation: ncrna_gene ***
  20333. --- *** relation type: VIEW ***
  20334. --- *** ***
  20335. --- ************************************************
  20336. ---
  20337. CREATE VIEW ncrna_gene AS
  20338. SELECT
  20339. feature_id AS ncrna_gene_id,
  20340. feature.*
  20341. FROM
  20342. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20343. 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';
  20344. --- ************************************************
  20345. --- *** relation: grna_gene ***
  20346. --- *** relation type: VIEW ***
  20347. --- *** ***
  20348. --- ************************************************
  20349. ---
  20350. CREATE VIEW grna_gene AS
  20351. SELECT
  20352. feature_id AS grna_gene_id,
  20353. feature.*
  20354. FROM
  20355. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20356. WHERE cvterm.name = 'gRNA_gene';
  20357. --- ************************************************
  20358. --- *** relation: mirna_gene ***
  20359. --- *** relation type: VIEW ***
  20360. --- *** ***
  20361. --- ************************************************
  20362. ---
  20363. CREATE VIEW mirna_gene AS
  20364. SELECT
  20365. feature_id AS mirna_gene_id,
  20366. feature.*
  20367. FROM
  20368. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20369. WHERE cvterm.name = 'miRNA_gene';
  20370. --- ************************************************
  20371. --- *** relation: scrna_gene ***
  20372. --- *** relation type: VIEW ***
  20373. --- *** ***
  20374. --- ************************************************
  20375. ---
  20376. CREATE VIEW scrna_gene AS
  20377. SELECT
  20378. feature_id AS scrna_gene_id,
  20379. feature.*
  20380. FROM
  20381. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20382. WHERE cvterm.name = 'scRNA_gene';
  20383. --- ************************************************
  20384. --- *** relation: snorna_gene ***
  20385. --- *** relation type: VIEW ***
  20386. --- *** ***
  20387. --- ************************************************
  20388. ---
  20389. CREATE VIEW snorna_gene AS
  20390. SELECT
  20391. feature_id AS snorna_gene_id,
  20392. feature.*
  20393. FROM
  20394. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20395. WHERE cvterm.name = 'snoRNA_gene';
  20396. --- ************************************************
  20397. --- *** relation: snrna_gene ***
  20398. --- *** relation type: VIEW ***
  20399. --- *** ***
  20400. --- ************************************************
  20401. ---
  20402. CREATE VIEW snrna_gene AS
  20403. SELECT
  20404. feature_id AS snrna_gene_id,
  20405. feature.*
  20406. FROM
  20407. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20408. WHERE cvterm.name = 'snRNA_gene';
  20409. --- ************************************************
  20410. --- *** relation: srp_rna_gene ***
  20411. --- *** relation type: VIEW ***
  20412. --- *** ***
  20413. --- ************************************************
  20414. ---
  20415. CREATE VIEW srp_rna_gene AS
  20416. SELECT
  20417. feature_id AS srp_rna_gene_id,
  20418. feature.*
  20419. FROM
  20420. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20421. WHERE cvterm.name = 'SRP_RNA_gene';
  20422. --- ************************************************
  20423. --- *** relation: strna_gene ***
  20424. --- *** relation type: VIEW ***
  20425. --- *** ***
  20426. --- ************************************************
  20427. ---
  20428. CREATE VIEW strna_gene AS
  20429. SELECT
  20430. feature_id AS strna_gene_id,
  20431. feature.*
  20432. FROM
  20433. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20434. WHERE cvterm.name = 'stRNA_gene';
  20435. --- ************************************************
  20436. --- *** relation: tmrna_gene ***
  20437. --- *** relation type: VIEW ***
  20438. --- *** ***
  20439. --- ************************************************
  20440. ---
  20441. CREATE VIEW tmrna_gene AS
  20442. SELECT
  20443. feature_id AS tmrna_gene_id,
  20444. feature.*
  20445. FROM
  20446. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20447. WHERE cvterm.name = 'tmRNA_gene';
  20448. --- ************************************************
  20449. --- *** relation: trna_gene ***
  20450. --- *** relation type: VIEW ***
  20451. --- *** ***
  20452. --- ************************************************
  20453. ---
  20454. CREATE VIEW trna_gene AS
  20455. SELECT
  20456. feature_id AS trna_gene_id,
  20457. feature.*
  20458. FROM
  20459. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20460. WHERE cvterm.name = 'tRNA_gene';
  20461. --- ************************************************
  20462. --- *** relation: modified_adenosine ***
  20463. --- *** relation type: VIEW ***
  20464. --- *** ***
  20465. --- *** A modified adenine is an adenine base fe ***
  20466. --- *** ature that has been altered. ***
  20467. --- ************************************************
  20468. ---
  20469. CREATE VIEW modified_adenosine AS
  20470. SELECT
  20471. feature_id AS modified_adenosine_id,
  20472. feature.*
  20473. FROM
  20474. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20475. 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';
  20476. --- ************************************************
  20477. --- *** relation: modified_inosine ***
  20478. --- *** relation type: VIEW ***
  20479. --- *** ***
  20480. --- *** A modified inosine is an inosine base fe ***
  20481. --- *** ature that has been altered. ***
  20482. --- ************************************************
  20483. ---
  20484. CREATE VIEW modified_inosine AS
  20485. SELECT
  20486. feature_id AS modified_inosine_id,
  20487. feature.*
  20488. FROM
  20489. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20490. 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';
  20491. --- ************************************************
  20492. --- *** relation: modified_cytidine ***
  20493. --- *** relation type: VIEW ***
  20494. --- *** ***
  20495. --- *** A modified cytidine is a cytidine base f ***
  20496. --- *** eature which has been altered. ***
  20497. --- ************************************************
  20498. ---
  20499. CREATE VIEW modified_cytidine AS
  20500. SELECT
  20501. feature_id AS modified_cytidine_id,
  20502. feature.*
  20503. FROM
  20504. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20505. 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';
  20506. --- ************************************************
  20507. --- *** relation: modified_guanosine ***
  20508. --- *** relation type: VIEW ***
  20509. --- *** ***
  20510. --- ************************************************
  20511. ---
  20512. CREATE VIEW modified_guanosine AS
  20513. SELECT
  20514. feature_id AS modified_guanosine_id,
  20515. feature.*
  20516. FROM
  20517. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20518. 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';
  20519. --- ************************************************
  20520. --- *** relation: modified_uridine ***
  20521. --- *** relation type: VIEW ***
  20522. --- *** ***
  20523. --- ************************************************
  20524. ---
  20525. CREATE VIEW modified_uridine AS
  20526. SELECT
  20527. feature_id AS modified_uridine_id,
  20528. feature.*
  20529. FROM
  20530. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20531. 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';
  20532. --- ************************************************
  20533. --- *** relation: one_methylinosine ***
  20534. --- *** relation type: VIEW ***
  20535. --- *** ***
  20536. --- *** 1-methylinosine is a modified insosine. ***
  20537. --- ************************************************
  20538. ---
  20539. CREATE VIEW one_methylinosine AS
  20540. SELECT
  20541. feature_id AS one_methylinosine_id,
  20542. feature.*
  20543. FROM
  20544. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20545. WHERE cvterm.name = 'one_methylinosine';
  20546. --- ************************************************
  20547. --- *** relation: one_two_prime_o_dimethylinosine ***
  20548. --- *** relation type: VIEW ***
  20549. --- *** ***
  20550. --- *** 1,2'-O-dimethylinosine is a modified ino ***
  20551. --- *** sine. ***
  20552. --- ************************************************
  20553. ---
  20554. CREATE VIEW one_two_prime_o_dimethylinosine AS
  20555. SELECT
  20556. feature_id AS one_two_prime_o_dimethylinosine_id,
  20557. feature.*
  20558. FROM
  20559. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20560. WHERE cvterm.name = 'one_two_prime_O_dimethylinosine';
  20561. --- ************************************************
  20562. --- *** relation: two_prime_o_methylinosine ***
  20563. --- *** relation type: VIEW ***
  20564. --- *** ***
  20565. --- *** 2'-O-methylinosine is a modified inosine ***
  20566. --- *** . ***
  20567. --- ************************************************
  20568. ---
  20569. CREATE VIEW two_prime_o_methylinosine AS
  20570. SELECT
  20571. feature_id AS two_prime_o_methylinosine_id,
  20572. feature.*
  20573. FROM
  20574. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20575. WHERE cvterm.name = 'two_prime_O_methylinosine';
  20576. --- ************************************************
  20577. --- *** relation: three_methylcytidine ***
  20578. --- *** relation type: VIEW ***
  20579. --- *** ***
  20580. --- *** 3-methylcytidine is a modified cytidine. ***
  20581. --- ************************************************
  20582. ---
  20583. CREATE VIEW three_methylcytidine AS
  20584. SELECT
  20585. feature_id AS three_methylcytidine_id,
  20586. feature.*
  20587. FROM
  20588. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20589. WHERE cvterm.name = 'three_methylcytidine';
  20590. --- ************************************************
  20591. --- *** relation: five_methylcytidine ***
  20592. --- *** relation type: VIEW ***
  20593. --- *** ***
  20594. --- *** 5-methylcytidine is a modified cytidine. ***
  20595. --- ************************************************
  20596. ---
  20597. CREATE VIEW five_methylcytidine AS
  20598. SELECT
  20599. feature_id AS five_methylcytidine_id,
  20600. feature.*
  20601. FROM
  20602. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20603. WHERE cvterm.name = 'five_methylcytidine';
  20604. --- ************************************************
  20605. --- *** relation: two_prime_o_methylcytidine ***
  20606. --- *** relation type: VIEW ***
  20607. --- *** ***
  20608. --- *** 2'-O-methylcytidine is a modified cytidi ***
  20609. --- *** ne. ***
  20610. --- ************************************************
  20611. ---
  20612. CREATE VIEW two_prime_o_methylcytidine AS
  20613. SELECT
  20614. feature_id AS two_prime_o_methylcytidine_id,
  20615. feature.*
  20616. FROM
  20617. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20618. WHERE cvterm.name = 'two_prime_O_methylcytidine';
  20619. --- ************************************************
  20620. --- *** relation: two_thiocytidine ***
  20621. --- *** relation type: VIEW ***
  20622. --- *** ***
  20623. --- *** 2-thiocytidine is a modified cytidine. ***
  20624. --- ************************************************
  20625. ---
  20626. CREATE VIEW two_thiocytidine AS
  20627. SELECT
  20628. feature_id AS two_thiocytidine_id,
  20629. feature.*
  20630. FROM
  20631. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20632. WHERE cvterm.name = 'two_thiocytidine';
  20633. --- ************************************************
  20634. --- *** relation: n4_acetylcytidine ***
  20635. --- *** relation type: VIEW ***
  20636. --- *** ***
  20637. --- *** N4-acetylcytidine is a modified cytidine ***
  20638. --- *** . ***
  20639. --- ************************************************
  20640. ---
  20641. CREATE VIEW n4_acetylcytidine AS
  20642. SELECT
  20643. feature_id AS n4_acetylcytidine_id,
  20644. feature.*
  20645. FROM
  20646. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20647. WHERE cvterm.name = 'N4_acetylcytidine';
  20648. --- ************************************************
  20649. --- *** relation: five_formylcytidine ***
  20650. --- *** relation type: VIEW ***
  20651. --- *** ***
  20652. --- *** 5-formylcytidine is a modified cytidine. ***
  20653. --- ************************************************
  20654. ---
  20655. CREATE VIEW five_formylcytidine AS
  20656. SELECT
  20657. feature_id AS five_formylcytidine_id,
  20658. feature.*
  20659. FROM
  20660. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20661. WHERE cvterm.name = 'five_formylcytidine';
  20662. --- ************************************************
  20663. --- *** relation: five_two_prime_o_dimethylcytidine ***
  20664. --- *** relation type: VIEW ***
  20665. --- *** ***
  20666. --- *** 5,2'-O-dimethylcytidine is a modified cy ***
  20667. --- *** tidine. ***
  20668. --- ************************************************
  20669. ---
  20670. CREATE VIEW five_two_prime_o_dimethylcytidine AS
  20671. SELECT
  20672. feature_id AS five_two_prime_o_dimethylcytidine_id,
  20673. feature.*
  20674. FROM
  20675. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20676. WHERE cvterm.name = 'five_two_prime_O_dimethylcytidine';
  20677. --- ************************************************
  20678. --- *** relation: n4_acetyl_2_prime_o_methylcytidine ***
  20679. --- *** relation type: VIEW ***
  20680. --- *** ***
  20681. --- *** N4-acetyl-2'-O-methylcytidine is a modif ***
  20682. --- *** ied cytidine. ***
  20683. --- ************************************************
  20684. ---
  20685. CREATE VIEW n4_acetyl_2_prime_o_methylcytidine AS
  20686. SELECT
  20687. feature_id AS n4_acetyl_2_prime_o_methylcytidine_id,
  20688. feature.*
  20689. FROM
  20690. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20691. WHERE cvterm.name = 'N4_acetyl_2_prime_O_methylcytidine';
  20692. --- ************************************************
  20693. --- *** relation: lysidine ***
  20694. --- *** relation type: VIEW ***
  20695. --- *** ***
  20696. --- *** Lysidine is a modified cytidine. ***
  20697. --- ************************************************
  20698. ---
  20699. CREATE VIEW lysidine AS
  20700. SELECT
  20701. feature_id AS lysidine_id,
  20702. feature.*
  20703. FROM
  20704. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20705. WHERE cvterm.name = 'lysidine';
  20706. --- ************************************************
  20707. --- *** relation: n4_methylcytidine ***
  20708. --- *** relation type: VIEW ***
  20709. --- *** ***
  20710. --- *** N4-methylcytidine is a modified cytidine ***
  20711. --- *** . ***
  20712. --- ************************************************
  20713. ---
  20714. CREATE VIEW n4_methylcytidine AS
  20715. SELECT
  20716. feature_id AS n4_methylcytidine_id,
  20717. feature.*
  20718. FROM
  20719. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20720. WHERE cvterm.name = 'N4_methylcytidine';
  20721. --- ************************************************
  20722. --- *** relation: n4_2_prime_o_dimethylcytidine ***
  20723. --- *** relation type: VIEW ***
  20724. --- *** ***
  20725. --- *** N4,2'-O-dimethylcytidine is a modified c ***
  20726. --- *** ytidine. ***
  20727. --- ************************************************
  20728. ---
  20729. CREATE VIEW n4_2_prime_o_dimethylcytidine AS
  20730. SELECT
  20731. feature_id AS n4_2_prime_o_dimethylcytidine_id,
  20732. feature.*
  20733. FROM
  20734. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20735. WHERE cvterm.name = 'N4_2_prime_O_dimethylcytidine';
  20736. --- ************************************************
  20737. --- *** relation: five_hydroxymethylcytidine ***
  20738. --- *** relation type: VIEW ***
  20739. --- *** ***
  20740. --- *** 5-hydroxymethylcytidine is a modified cy ***
  20741. --- *** tidine. ***
  20742. --- ************************************************
  20743. ---
  20744. CREATE VIEW five_hydroxymethylcytidine AS
  20745. SELECT
  20746. feature_id AS five_hydroxymethylcytidine_id,
  20747. feature.*
  20748. FROM
  20749. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20750. WHERE cvterm.name = 'five_hydroxymethylcytidine';
  20751. --- ************************************************
  20752. --- *** relation: five_formyl_two_prime_o_methylcytidine ***
  20753. --- *** relation type: VIEW ***
  20754. --- *** ***
  20755. --- *** 5-formyl-2'-O-methylcytidine is a modifi ***
  20756. --- *** ed cytidine. ***
  20757. --- ************************************************
  20758. ---
  20759. CREATE VIEW five_formyl_two_prime_o_methylcytidine AS
  20760. SELECT
  20761. feature_id AS five_formyl_two_prime_o_methylcytidine_id,
  20762. feature.*
  20763. FROM
  20764. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20765. WHERE cvterm.name = 'five_formyl_two_prime_O_methylcytidine';
  20766. --- ************************************************
  20767. --- *** relation: n4_n4_2_prime_o_trimethylcytidine ***
  20768. --- *** relation type: VIEW ***
  20769. --- *** ***
  20770. --- *** N4_N4_2_prime_O_trimethylcytidine is a m ***
  20771. --- *** odified cytidine. ***
  20772. --- ************************************************
  20773. ---
  20774. CREATE VIEW n4_n4_2_prime_o_trimethylcytidine AS
  20775. SELECT
  20776. feature_id AS n4_n4_2_prime_o_trimethylcytidine_id,
  20777. feature.*
  20778. FROM
  20779. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20780. WHERE cvterm.name = 'N4_N4_2_prime_O_trimethylcytidine';
  20781. --- ************************************************
  20782. --- *** relation: one_methyladenosine ***
  20783. --- *** relation type: VIEW ***
  20784. --- *** ***
  20785. --- *** 1_methyladenosine is a modified adenosin ***
  20786. --- *** e. ***
  20787. --- ************************************************
  20788. ---
  20789. CREATE VIEW one_methyladenosine AS
  20790. SELECT
  20791. feature_id AS one_methyladenosine_id,
  20792. feature.*
  20793. FROM
  20794. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20795. WHERE cvterm.name = 'one_methyladenosine';
  20796. --- ************************************************
  20797. --- *** relation: two_methyladenosine ***
  20798. --- *** relation type: VIEW ***
  20799. --- *** ***
  20800. --- *** 2_methyladenosine is a modified adenosin ***
  20801. --- *** e. ***
  20802. --- ************************************************
  20803. ---
  20804. CREATE VIEW two_methyladenosine AS
  20805. SELECT
  20806. feature_id AS two_methyladenosine_id,
  20807. feature.*
  20808. FROM
  20809. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20810. WHERE cvterm.name = 'two_methyladenosine';
  20811. --- ************************************************
  20812. --- *** relation: n6_methyladenosine ***
  20813. --- *** relation type: VIEW ***
  20814. --- *** ***
  20815. --- *** N6_methyladenosine is a modified adenosi ***
  20816. --- *** ne. ***
  20817. --- ************************************************
  20818. ---
  20819. CREATE VIEW n6_methyladenosine AS
  20820. SELECT
  20821. feature_id AS n6_methyladenosine_id,
  20822. feature.*
  20823. FROM
  20824. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20825. WHERE cvterm.name = 'N6_methyladenosine';
  20826. --- ************************************************
  20827. --- *** relation: two_prime_o_methyladenosine ***
  20828. --- *** relation type: VIEW ***
  20829. --- *** ***
  20830. --- *** 2prime_O_methyladenosine is a modified a ***
  20831. --- *** denosine. ***
  20832. --- ************************************************
  20833. ---
  20834. CREATE VIEW two_prime_o_methyladenosine AS
  20835. SELECT
  20836. feature_id AS two_prime_o_methyladenosine_id,
  20837. feature.*
  20838. FROM
  20839. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20840. WHERE cvterm.name = 'two_prime_O_methyladenosine';
  20841. --- ************************************************
  20842. --- *** relation: two_methylthio_n6_methyladenosine ***
  20843. --- *** relation type: VIEW ***
  20844. --- *** ***
  20845. --- *** 2_methylthio_N6_methyladenosine is a mod ***
  20846. --- *** ified adenosine. ***
  20847. --- ************************************************
  20848. ---
  20849. CREATE VIEW two_methylthio_n6_methyladenosine AS
  20850. SELECT
  20851. feature_id AS two_methylthio_n6_methyladenosine_id,
  20852. feature.*
  20853. FROM
  20854. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20855. WHERE cvterm.name = 'two_methylthio_N6_methyladenosine';
  20856. --- ************************************************
  20857. --- *** relation: n6_isopentenyladenosine ***
  20858. --- *** relation type: VIEW ***
  20859. --- *** ***
  20860. --- *** N6_isopentenyladenosine is a modified ad ***
  20861. --- *** enosine. ***
  20862. --- ************************************************
  20863. ---
  20864. CREATE VIEW n6_isopentenyladenosine AS
  20865. SELECT
  20866. feature_id AS n6_isopentenyladenosine_id,
  20867. feature.*
  20868. FROM
  20869. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20870. WHERE cvterm.name = 'N6_isopentenyladenosine';
  20871. --- ************************************************
  20872. --- *** relation: two_methylthio_n6_isopentenyladenosine ***
  20873. --- *** relation type: VIEW ***
  20874. --- *** ***
  20875. --- *** 2_methylthio_N6_isopentenyladenosine is ***
  20876. --- *** a modified adenosine. ***
  20877. --- ************************************************
  20878. ---
  20879. CREATE VIEW two_methylthio_n6_isopentenyladenosine AS
  20880. SELECT
  20881. feature_id AS two_methylthio_n6_isopentenyladenosine_id,
  20882. feature.*
  20883. FROM
  20884. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20885. WHERE cvterm.name = 'two_methylthio_N6_isopentenyladenosine';
  20886. --- ************************************************
  20887. --- *** relation: n6_cis_hydroxyisopentenyl_adenosine ***
  20888. --- *** relation type: VIEW ***
  20889. --- *** ***
  20890. --- *** N6_cis_hydroxyisopentenyl_adenosine is a ***
  20891. --- *** modified adenosine. ***
  20892. --- ************************************************
  20893. ---
  20894. CREATE VIEW n6_cis_hydroxyisopentenyl_adenosine AS
  20895. SELECT
  20896. feature_id AS n6_cis_hydroxyisopentenyl_adenosine_id,
  20897. feature.*
  20898. FROM
  20899. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20900. WHERE cvterm.name = 'N6_cis_hydroxyisopentenyl_adenosine';
  20901. --- ************************************************
  20902. --- *** relation: two_methylthio_n6_cis_hydroxyisopentenyl_adenosine ***
  20903. --- *** relation type: VIEW ***
  20904. --- *** ***
  20905. --- *** 2_methylthio_N6_cis_hydroxyisopentenyl_a ***
  20906. --- *** denosine is a modified adenosine. ***
  20907. --- ************************************************
  20908. ---
  20909. CREATE VIEW two_methylthio_n6_cis_hydroxyisopentenyl_adenosine AS
  20910. SELECT
  20911. feature_id AS two_methylthio_n6_cis_hydroxyisopentenyl_adenosine_id,
  20912. feature.*
  20913. FROM
  20914. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20915. WHERE cvterm.name = 'two_methylthio_N6_cis_hydroxyisopentenyl_adenosine';
  20916. --- ************************************************
  20917. --- *** relation: n6_glycinylcarbamoyladenosine ***
  20918. --- *** relation type: VIEW ***
  20919. --- *** ***
  20920. --- *** N6_glycinylcarbamoyladenosine is a modif ***
  20921. --- *** ied adenosine. ***
  20922. --- ************************************************
  20923. ---
  20924. CREATE VIEW n6_glycinylcarbamoyladenosine AS
  20925. SELECT
  20926. feature_id AS n6_glycinylcarbamoyladenosine_id,
  20927. feature.*
  20928. FROM
  20929. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20930. WHERE cvterm.name = 'N6_glycinylcarbamoyladenosine';
  20931. --- ************************************************
  20932. --- *** relation: n6_threonylcarbamoyladenosine ***
  20933. --- *** relation type: VIEW ***
  20934. --- *** ***
  20935. --- *** N6_threonylcarbamoyladenosine is a modif ***
  20936. --- *** ied adenosine. ***
  20937. --- ************************************************
  20938. ---
  20939. CREATE VIEW n6_threonylcarbamoyladenosine AS
  20940. SELECT
  20941. feature_id AS n6_threonylcarbamoyladenosine_id,
  20942. feature.*
  20943. FROM
  20944. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20945. WHERE cvterm.name = 'N6_threonylcarbamoyladenosine';
  20946. --- ************************************************
  20947. --- *** relation: two_methylthio_n6_threonyl_carbamoyladenosine ***
  20948. --- *** relation type: VIEW ***
  20949. --- *** ***
  20950. --- *** 2_methylthio_N6_threonyl_carbamoyladenos ***
  20951. --- *** ine is a modified adenosine. ***
  20952. --- ************************************************
  20953. ---
  20954. CREATE VIEW two_methylthio_n6_threonyl_carbamoyladenosine AS
  20955. SELECT
  20956. feature_id AS two_methylthio_n6_threonyl_carbamoyladenosine_id,
  20957. feature.*
  20958. FROM
  20959. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20960. WHERE cvterm.name = 'two_methylthio_N6_threonyl_carbamoyladenosine';
  20961. --- ************************************************
  20962. --- *** relation: n6_methyl_n6_threonylcarbamoyladenosine ***
  20963. --- *** relation type: VIEW ***
  20964. --- *** ***
  20965. --- *** N6_methyl_N6_threonylcarbamoyladenosine ***
  20966. --- *** is a modified adenosine. ***
  20967. --- ************************************************
  20968. ---
  20969. CREATE VIEW n6_methyl_n6_threonylcarbamoyladenosine AS
  20970. SELECT
  20971. feature_id AS n6_methyl_n6_threonylcarbamoyladenosine_id,
  20972. feature.*
  20973. FROM
  20974. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20975. WHERE cvterm.name = 'N6_methyl_N6_threonylcarbamoyladenosine';
  20976. --- ************************************************
  20977. --- *** relation: n6_hydroxynorvalylcarbamoyladenosine ***
  20978. --- *** relation type: VIEW ***
  20979. --- *** ***
  20980. --- *** N6_hydroxynorvalylcarbamoyladenosine is ***
  20981. --- *** a modified adenosine. ***
  20982. --- ************************************************
  20983. ---
  20984. CREATE VIEW n6_hydroxynorvalylcarbamoyladenosine AS
  20985. SELECT
  20986. feature_id AS n6_hydroxynorvalylcarbamoyladenosine_id,
  20987. feature.*
  20988. FROM
  20989. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20990. WHERE cvterm.name = 'N6_hydroxynorvalylcarbamoyladenosine';
  20991. --- ************************************************
  20992. --- *** relation: two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine ***
  20993. --- *** relation type: VIEW ***
  20994. --- *** ***
  20995. --- *** 2_methylthio_N6_hydroxynorvalyl_carbamoy ***
  20996. --- *** ladenosine is a modified adenosine. ***
  20997. --- ************************************************
  20998. ---
  20999. CREATE VIEW two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine AS
  21000. SELECT
  21001. feature_id AS two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine_id,
  21002. feature.*
  21003. FROM
  21004. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21005. WHERE cvterm.name = 'two_methylthio_N6_hydroxynorvalyl_carbamoyladenosine';
  21006. --- ************************************************
  21007. --- *** relation: two_prime_o_riboA_phosphate ***
  21008. --- *** relation type: VIEW ***
  21009. --- *** ***
  21010. --- *** 2prime_O_ribosyladenosine_phosphate is a ***
  21011. --- *** modified adenosine. ***
  21012. --- ************************************************
  21013. ---
  21014. CREATE VIEW two_prime_o_riboA_phosphate AS
  21015. SELECT
  21016. feature_id AS two_prime_o_riboA_phosphate_id,
  21017. feature.*
  21018. FROM
  21019. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21020. WHERE cvterm.name = 'two_prime_O_ribosyladenosine_phosphate';
  21021. --- ************************************************
  21022. --- *** relation: n6_n6_dimethyladenosine ***
  21023. --- *** relation type: VIEW ***
  21024. --- *** ***
  21025. --- *** N6_N6_dimethyladenosine is a modified ad ***
  21026. --- *** enosine. ***
  21027. --- ************************************************
  21028. ---
  21029. CREATE VIEW n6_n6_dimethyladenosine AS
  21030. SELECT
  21031. feature_id AS n6_n6_dimethyladenosine_id,
  21032. feature.*
  21033. FROM
  21034. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21035. WHERE cvterm.name = 'N6_N6_dimethyladenosine';
  21036. --- ************************************************
  21037. --- *** relation: n6_2_prime_o_dimethyladenosine ***
  21038. --- *** relation type: VIEW ***
  21039. --- *** ***
  21040. --- *** N6_2prime_O_dimethyladenosine is a modif ***
  21041. --- *** ied adenosine. ***
  21042. --- ************************************************
  21043. ---
  21044. CREATE VIEW n6_2_prime_o_dimethyladenosine AS
  21045. SELECT
  21046. feature_id AS n6_2_prime_o_dimethyladenosine_id,
  21047. feature.*
  21048. FROM
  21049. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21050. WHERE cvterm.name = 'N6_2_prime_O_dimethyladenosine';
  21051. --- ************************************************
  21052. --- *** relation: n6_n6_2_prime_o_trimethyladenosine ***
  21053. --- *** relation type: VIEW ***
  21054. --- *** ***
  21055. --- *** N6_N6_2prime_O_trimethyladenosine is a m ***
  21056. --- *** odified adenosine. ***
  21057. --- ************************************************
  21058. ---
  21059. CREATE VIEW n6_n6_2_prime_o_trimethyladenosine AS
  21060. SELECT
  21061. feature_id AS n6_n6_2_prime_o_trimethyladenosine_id,
  21062. feature.*
  21063. FROM
  21064. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21065. WHERE cvterm.name = 'N6_N6_2_prime_O_trimethyladenosine';
  21066. --- ************************************************
  21067. --- *** relation: one_two_prime_o_dimethyladenosine ***
  21068. --- *** relation type: VIEW ***
  21069. --- *** ***
  21070. --- *** 1,2'-O-dimethyladenosine is a modified a ***
  21071. --- *** denosine. ***
  21072. --- ************************************************
  21073. ---
  21074. CREATE VIEW one_two_prime_o_dimethyladenosine AS
  21075. SELECT
  21076. feature_id AS one_two_prime_o_dimethyladenosine_id,
  21077. feature.*
  21078. FROM
  21079. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21080. WHERE cvterm.name = 'one_two_prime_O_dimethyladenosine';
  21081. --- ************************************************
  21082. --- *** relation: n6_acetyladenosine ***
  21083. --- *** relation type: VIEW ***
  21084. --- *** ***
  21085. --- *** N6_acetyladenosine is a modified adenosi ***
  21086. --- *** ne. ***
  21087. --- ************************************************
  21088. ---
  21089. CREATE VIEW n6_acetyladenosine AS
  21090. SELECT
  21091. feature_id AS n6_acetyladenosine_id,
  21092. feature.*
  21093. FROM
  21094. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21095. WHERE cvterm.name = 'N6_acetyladenosine';
  21096. --- ************************************************
  21097. --- *** relation: seven_deazaguanosine ***
  21098. --- *** relation type: VIEW ***
  21099. --- *** ***
  21100. --- *** 7-deazaguanosine is a moddified guanosin ***
  21101. --- *** e. ***
  21102. --- ************************************************
  21103. ---
  21104. CREATE VIEW seven_deazaguanosine AS
  21105. SELECT
  21106. feature_id AS seven_deazaguanosine_id,
  21107. feature.*
  21108. FROM
  21109. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21110. 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';
  21111. --- ************************************************
  21112. --- *** relation: queuosine ***
  21113. --- *** relation type: VIEW ***
  21114. --- *** ***
  21115. --- *** Queuosine is a modified 7-deazoguanosine ***
  21116. --- *** . ***
  21117. --- ************************************************
  21118. ---
  21119. CREATE VIEW queuosine AS
  21120. SELECT
  21121. feature_id AS queuosine_id,
  21122. feature.*
  21123. FROM
  21124. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21125. WHERE cvterm.name = 'queuosine';
  21126. --- ************************************************
  21127. --- *** relation: epoxyqueuosine ***
  21128. --- *** relation type: VIEW ***
  21129. --- *** ***
  21130. --- *** Epoxyqueuosine is a modified 7-deazoguan ***
  21131. --- *** osine. ***
  21132. --- ************************************************
  21133. ---
  21134. CREATE VIEW epoxyqueuosine AS
  21135. SELECT
  21136. feature_id AS epoxyqueuosine_id,
  21137. feature.*
  21138. FROM
  21139. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21140. WHERE cvterm.name = 'epoxyqueuosine';
  21141. --- ************************************************
  21142. --- *** relation: galactosyl_queuosine ***
  21143. --- *** relation type: VIEW ***
  21144. --- *** ***
  21145. --- *** Galactosyl_queuosine is a modified 7-dea ***
  21146. --- *** zoguanosine. ***
  21147. --- ************************************************
  21148. ---
  21149. CREATE VIEW galactosyl_queuosine AS
  21150. SELECT
  21151. feature_id AS galactosyl_queuosine_id,
  21152. feature.*
  21153. FROM
  21154. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21155. WHERE cvterm.name = 'galactosyl_queuosine';
  21156. --- ************************************************
  21157. --- *** relation: mannosyl_queuosine ***
  21158. --- *** relation type: VIEW ***
  21159. --- *** ***
  21160. --- *** Mannosyl_queuosine is a modified 7-deazo ***
  21161. --- *** guanosine. ***
  21162. --- ************************************************
  21163. ---
  21164. CREATE VIEW mannosyl_queuosine AS
  21165. SELECT
  21166. feature_id AS mannosyl_queuosine_id,
  21167. feature.*
  21168. FROM
  21169. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21170. WHERE cvterm.name = 'mannosyl_queuosine';
  21171. --- ************************************************
  21172. --- *** relation: seven_cyano_seven_deazaguanosine ***
  21173. --- *** relation type: VIEW ***
  21174. --- *** ***
  21175. --- *** 7_cyano_7_deazaguanosine is a modified 7 ***
  21176. --- *** -deazoguanosine. ***
  21177. --- ************************************************
  21178. ---
  21179. CREATE VIEW seven_cyano_seven_deazaguanosine AS
  21180. SELECT
  21181. feature_id AS seven_cyano_seven_deazaguanosine_id,
  21182. feature.*
  21183. FROM
  21184. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21185. WHERE cvterm.name = 'seven_cyano_seven_deazaguanosine';
  21186. --- ************************************************
  21187. --- *** relation: seven_aminomethyl_seven_deazaguanosine ***
  21188. --- *** relation type: VIEW ***
  21189. --- *** ***
  21190. --- *** 7_aminomethyl_7_deazaguanosine is a modi ***
  21191. --- *** fied 7-deazoguanosine. ***
  21192. --- ************************************************
  21193. ---
  21194. CREATE VIEW seven_aminomethyl_seven_deazaguanosine AS
  21195. SELECT
  21196. feature_id AS seven_aminomethyl_seven_deazaguanosine_id,
  21197. feature.*
  21198. FROM
  21199. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21200. WHERE cvterm.name = 'seven_aminomethyl_seven_deazaguanosine';
  21201. --- ************************************************
  21202. --- *** relation: archaeosine ***
  21203. --- *** relation type: VIEW ***
  21204. --- *** ***
  21205. --- *** Archaeosine is a modified 7-deazoguanosi ***
  21206. --- *** ne. ***
  21207. --- ************************************************
  21208. ---
  21209. CREATE VIEW archaeosine AS
  21210. SELECT
  21211. feature_id AS archaeosine_id,
  21212. feature.*
  21213. FROM
  21214. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21215. WHERE cvterm.name = 'archaeosine';
  21216. --- ************************************************
  21217. --- *** relation: one_methylguanosine ***
  21218. --- *** relation type: VIEW ***
  21219. --- *** ***
  21220. --- *** 1_methylguanosine is a modified guanosin ***
  21221. --- *** e base feature. ***
  21222. --- ************************************************
  21223. ---
  21224. CREATE VIEW one_methylguanosine AS
  21225. SELECT
  21226. feature_id AS one_methylguanosine_id,
  21227. feature.*
  21228. FROM
  21229. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21230. WHERE cvterm.name = 'one_methylguanosine';
  21231. --- ************************************************
  21232. --- *** relation: n2_methylguanosine ***
  21233. --- *** relation type: VIEW ***
  21234. --- *** ***
  21235. --- *** N2_methylguanosine is a modified guanosi ***
  21236. --- *** ne base feature. ***
  21237. --- ************************************************
  21238. ---
  21239. CREATE VIEW n2_methylguanosine AS
  21240. SELECT
  21241. feature_id AS n2_methylguanosine_id,
  21242. feature.*
  21243. FROM
  21244. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21245. WHERE cvterm.name = 'N2_methylguanosine';
  21246. --- ************************************************
  21247. --- *** relation: seven_methylguanosine ***
  21248. --- *** relation type: VIEW ***
  21249. --- *** ***
  21250. --- *** 7_methylguanosine is a modified guanosin ***
  21251. --- *** e base feature. ***
  21252. --- ************************************************
  21253. ---
  21254. CREATE VIEW seven_methylguanosine AS
  21255. SELECT
  21256. feature_id AS seven_methylguanosine_id,
  21257. feature.*
  21258. FROM
  21259. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21260. WHERE cvterm.name = 'seven_methylguanosine';
  21261. --- ************************************************
  21262. --- *** relation: two_prime_o_methylguanosine ***
  21263. --- *** relation type: VIEW ***
  21264. --- *** ***
  21265. --- *** 2prime_O_methylguanosine is a modified g ***
  21266. --- *** uanosine base feature. ***
  21267. --- ************************************************
  21268. ---
  21269. CREATE VIEW two_prime_o_methylguanosine AS
  21270. SELECT
  21271. feature_id AS two_prime_o_methylguanosine_id,
  21272. feature.*
  21273. FROM
  21274. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21275. WHERE cvterm.name = 'two_prime_O_methylguanosine';
  21276. --- ************************************************
  21277. --- *** relation: n2_n2_dimethylguanosine ***
  21278. --- *** relation type: VIEW ***
  21279. --- *** ***
  21280. --- *** N2_N2_dimethylguanosine is a modified gu ***
  21281. --- *** anosine base feature. ***
  21282. --- ************************************************
  21283. ---
  21284. CREATE VIEW n2_n2_dimethylguanosine AS
  21285. SELECT
  21286. feature_id AS n2_n2_dimethylguanosine_id,
  21287. feature.*
  21288. FROM
  21289. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21290. WHERE cvterm.name = 'N2_N2_dimethylguanosine';
  21291. --- ************************************************
  21292. --- *** relation: n2_2_prime_o_dimethylguanosine ***
  21293. --- *** relation type: VIEW ***
  21294. --- *** ***
  21295. --- *** N2_2prime_O_dimethylguanosine is a modif ***
  21296. --- *** ied guanosine base feature. ***
  21297. --- ************************************************
  21298. ---
  21299. CREATE VIEW n2_2_prime_o_dimethylguanosine AS
  21300. SELECT
  21301. feature_id AS n2_2_prime_o_dimethylguanosine_id,
  21302. feature.*
  21303. FROM
  21304. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21305. WHERE cvterm.name = 'N2_2_prime_O_dimethylguanosine';
  21306. --- ************************************************
  21307. --- *** relation: n2_n2_2_prime_o_trimethylguanosine ***
  21308. --- *** relation type: VIEW ***
  21309. --- *** ***
  21310. --- *** N2_N2_2prime_O_trimethylguanosine is a m ***
  21311. --- *** odified guanosine base feature. ***
  21312. --- ************************************************
  21313. ---
  21314. CREATE VIEW n2_n2_2_prime_o_trimethylguanosine AS
  21315. SELECT
  21316. feature_id AS n2_n2_2_prime_o_trimethylguanosine_id,
  21317. feature.*
  21318. FROM
  21319. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21320. WHERE cvterm.name = 'N2_N2_2_prime_O_trimethylguanosine';
  21321. --- ************************************************
  21322. --- *** relation: two_prime_o_ribosylguanosine_phosphate ***
  21323. --- *** relation type: VIEW ***
  21324. --- *** ***
  21325. --- *** 2prime_O_ribosylguanosine_phosphate is a ***
  21326. --- *** modified guanosine base feature. ***
  21327. --- ************************************************
  21328. ---
  21329. CREATE VIEW two_prime_o_ribosylguanosine_phosphate AS
  21330. SELECT
  21331. feature_id AS two_prime_o_ribosylguanosine_phosphate_id,
  21332. feature.*
  21333. FROM
  21334. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21335. WHERE cvterm.name = 'two_prime_O_ribosylguanosine_phosphate';
  21336. --- ************************************************
  21337. --- *** relation: wybutosine ***
  21338. --- *** relation type: VIEW ***
  21339. --- *** ***
  21340. --- *** Wybutosine is a modified guanosine base ***
  21341. --- *** feature. ***
  21342. --- ************************************************
  21343. ---
  21344. CREATE VIEW wybutosine AS
  21345. SELECT
  21346. feature_id AS wybutosine_id,
  21347. feature.*
  21348. FROM
  21349. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21350. WHERE cvterm.name = 'wybutosine';
  21351. --- ************************************************
  21352. --- *** relation: peroxywybutosine ***
  21353. --- *** relation type: VIEW ***
  21354. --- *** ***
  21355. --- *** Peroxywybutosine is a modified guanosine ***
  21356. --- *** base feature. ***
  21357. --- ************************************************
  21358. ---
  21359. CREATE VIEW peroxywybutosine AS
  21360. SELECT
  21361. feature_id AS peroxywybutosine_id,
  21362. feature.*
  21363. FROM
  21364. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21365. WHERE cvterm.name = 'peroxywybutosine';
  21366. --- ************************************************
  21367. --- *** relation: hydroxywybutosine ***
  21368. --- *** relation type: VIEW ***
  21369. --- *** ***
  21370. --- *** Hydroxywybutosine is a modified guanosin ***
  21371. --- *** e base feature. ***
  21372. --- ************************************************
  21373. ---
  21374. CREATE VIEW hydroxywybutosine AS
  21375. SELECT
  21376. feature_id AS hydroxywybutosine_id,
  21377. feature.*
  21378. FROM
  21379. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21380. WHERE cvterm.name = 'hydroxywybutosine';
  21381. --- ************************************************
  21382. --- *** relation: undermodified_hydroxywybutosine ***
  21383. --- *** relation type: VIEW ***
  21384. --- *** ***
  21385. --- *** Undermodified_hydroxywybutosine is a mod ***
  21386. --- *** ified guanosine base feature. ***
  21387. --- ************************************************
  21388. ---
  21389. CREATE VIEW undermodified_hydroxywybutosine AS
  21390. SELECT
  21391. feature_id AS undermodified_hydroxywybutosine_id,
  21392. feature.*
  21393. FROM
  21394. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21395. WHERE cvterm.name = 'undermodified_hydroxywybutosine';
  21396. --- ************************************************
  21397. --- *** relation: wyosine ***
  21398. --- *** relation type: VIEW ***
  21399. --- *** ***
  21400. --- *** Wyosine is a modified guanosine base fea ***
  21401. --- *** ture. ***
  21402. --- ************************************************
  21403. ---
  21404. CREATE VIEW wyosine AS
  21405. SELECT
  21406. feature_id AS wyosine_id,
  21407. feature.*
  21408. FROM
  21409. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21410. WHERE cvterm.name = 'wyosine';
  21411. --- ************************************************
  21412. --- *** relation: methylwyosine ***
  21413. --- *** relation type: VIEW ***
  21414. --- *** ***
  21415. --- *** Methylwyosine is a modified guanosine ba ***
  21416. --- *** se feature. ***
  21417. --- ************************************************
  21418. ---
  21419. CREATE VIEW methylwyosine AS
  21420. SELECT
  21421. feature_id AS methylwyosine_id,
  21422. feature.*
  21423. FROM
  21424. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21425. WHERE cvterm.name = 'methylwyosine';
  21426. --- ************************************************
  21427. --- *** relation: n2_7_dimethylguanosine ***
  21428. --- *** relation type: VIEW ***
  21429. --- *** ***
  21430. --- *** N2_7_dimethylguanosine is a modified gua ***
  21431. --- *** nosine base feature. ***
  21432. --- ************************************************
  21433. ---
  21434. CREATE VIEW n2_7_dimethylguanosine AS
  21435. SELECT
  21436. feature_id AS n2_7_dimethylguanosine_id,
  21437. feature.*
  21438. FROM
  21439. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21440. WHERE cvterm.name = 'N2_7_dimethylguanosine';
  21441. --- ************************************************
  21442. --- *** relation: n2_n2_7_trimethylguanosine ***
  21443. --- *** relation type: VIEW ***
  21444. --- *** ***
  21445. --- *** N2_N2_7_trimethylguanosine is a modified ***
  21446. --- *** guanosine base feature. ***
  21447. --- ************************************************
  21448. ---
  21449. CREATE VIEW n2_n2_7_trimethylguanosine AS
  21450. SELECT
  21451. feature_id AS n2_n2_7_trimethylguanosine_id,
  21452. feature.*
  21453. FROM
  21454. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21455. WHERE cvterm.name = 'N2_N2_7_trimethylguanosine';
  21456. --- ************************************************
  21457. --- *** relation: one_two_prime_o_dimethylguanosine ***
  21458. --- *** relation type: VIEW ***
  21459. --- *** ***
  21460. --- *** 1_2prime_O_dimethylguanosine is a modifi ***
  21461. --- *** ed guanosine base feature. ***
  21462. --- ************************************************
  21463. ---
  21464. CREATE VIEW one_two_prime_o_dimethylguanosine AS
  21465. SELECT
  21466. feature_id AS one_two_prime_o_dimethylguanosine_id,
  21467. feature.*
  21468. FROM
  21469. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21470. WHERE cvterm.name = 'one_two_prime_O_dimethylguanosine';
  21471. --- ************************************************
  21472. --- *** relation: four_demethylwyosine ***
  21473. --- *** relation type: VIEW ***
  21474. --- *** ***
  21475. --- *** 4_demethylwyosine is a modified guanosin ***
  21476. --- *** e base feature. ***
  21477. --- ************************************************
  21478. ---
  21479. CREATE VIEW four_demethylwyosine AS
  21480. SELECT
  21481. feature_id AS four_demethylwyosine_id,
  21482. feature.*
  21483. FROM
  21484. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21485. WHERE cvterm.name = 'four_demethylwyosine';
  21486. --- ************************************************
  21487. --- *** relation: isowyosine ***
  21488. --- *** relation type: VIEW ***
  21489. --- *** ***
  21490. --- *** Isowyosine is a modified guanosine base ***
  21491. --- *** feature. ***
  21492. --- ************************************************
  21493. ---
  21494. CREATE VIEW isowyosine AS
  21495. SELECT
  21496. feature_id AS isowyosine_id,
  21497. feature.*
  21498. FROM
  21499. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21500. WHERE cvterm.name = 'isowyosine';
  21501. --- ************************************************
  21502. --- *** relation: n2_7_2prirme_o_trimethylguanosine ***
  21503. --- *** relation type: VIEW ***
  21504. --- *** ***
  21505. --- *** N2_7_2prirme_O_trimethylguanosine is a m ***
  21506. --- *** odified guanosine base feature. ***
  21507. --- ************************************************
  21508. ---
  21509. CREATE VIEW n2_7_2prirme_o_trimethylguanosine AS
  21510. SELECT
  21511. feature_id AS n2_7_2prirme_o_trimethylguanosine_id,
  21512. feature.*
  21513. FROM
  21514. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21515. WHERE cvterm.name = 'N2_7_2prirme_O_trimethylguanosine';
  21516. --- ************************************************
  21517. --- *** relation: five_methyluridine ***
  21518. --- *** relation type: VIEW ***
  21519. --- *** ***
  21520. --- *** 5_methyluridine is a modified uridine ba ***
  21521. --- *** se feature. ***
  21522. --- ************************************************
  21523. ---
  21524. CREATE VIEW five_methyluridine AS
  21525. SELECT
  21526. feature_id AS five_methyluridine_id,
  21527. feature.*
  21528. FROM
  21529. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21530. WHERE cvterm.name = 'five_methyluridine';
  21531. --- ************************************************
  21532. --- *** relation: two_prime_o_methyluridine ***
  21533. --- *** relation type: VIEW ***
  21534. --- *** ***
  21535. --- *** 2prime_O_methyluridine is a modified uri ***
  21536. --- *** dine base feature. ***
  21537. --- ************************************************
  21538. ---
  21539. CREATE VIEW two_prime_o_methyluridine AS
  21540. SELECT
  21541. feature_id AS two_prime_o_methyluridine_id,
  21542. feature.*
  21543. FROM
  21544. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21545. WHERE cvterm.name = 'two_prime_O_methyluridine';
  21546. --- ************************************************
  21547. --- *** relation: five_two_prime_o_dimethyluridine ***
  21548. --- *** relation type: VIEW ***
  21549. --- *** ***
  21550. --- *** 5_2_prime_O_dimethyluridine is a modifie ***
  21551. --- *** d uridine base feature. ***
  21552. --- ************************************************
  21553. ---
  21554. CREATE VIEW five_two_prime_o_dimethyluridine AS
  21555. SELECT
  21556. feature_id AS five_two_prime_o_dimethyluridine_id,
  21557. feature.*
  21558. FROM
  21559. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21560. WHERE cvterm.name = 'five_two_prime_O_dimethyluridine';
  21561. --- ************************************************
  21562. --- *** relation: one_methylpseudouridine ***
  21563. --- *** relation type: VIEW ***
  21564. --- *** ***
  21565. --- *** 1_methylpseudouridine is a modified urid ***
  21566. --- *** ine base feature. ***
  21567. --- ************************************************
  21568. ---
  21569. CREATE VIEW one_methylpseudouridine AS
  21570. SELECT
  21571. feature_id AS one_methylpseudouridine_id,
  21572. feature.*
  21573. FROM
  21574. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21575. WHERE cvterm.name = 'one_methylpseudouridine';
  21576. --- ************************************************
  21577. --- *** relation: two_prime_o_methylpseudouridine ***
  21578. --- *** relation type: VIEW ***
  21579. --- *** ***
  21580. --- *** 2prime_O_methylpseudouridine is a modifi ***
  21581. --- *** ed uridine base feature. ***
  21582. --- ************************************************
  21583. ---
  21584. CREATE VIEW two_prime_o_methylpseudouridine AS
  21585. SELECT
  21586. feature_id AS two_prime_o_methylpseudouridine_id,
  21587. feature.*
  21588. FROM
  21589. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21590. WHERE cvterm.name = 'two_prime_O_methylpseudouridine';
  21591. --- ************************************************
  21592. --- *** relation: two_thiouridine ***
  21593. --- *** relation type: VIEW ***
  21594. --- *** ***
  21595. --- *** 2_thiouridine is a modified uridine base ***
  21596. --- *** feature. ***
  21597. --- ************************************************
  21598. ---
  21599. CREATE VIEW two_thiouridine AS
  21600. SELECT
  21601. feature_id AS two_thiouridine_id,
  21602. feature.*
  21603. FROM
  21604. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21605. WHERE cvterm.name = 'two_thiouridine';
  21606. --- ************************************************
  21607. --- *** relation: four_thiouridine ***
  21608. --- *** relation type: VIEW ***
  21609. --- *** ***
  21610. --- *** 4_thiouridine is a modified uridine base ***
  21611. --- *** feature. ***
  21612. --- ************************************************
  21613. ---
  21614. CREATE VIEW four_thiouridine AS
  21615. SELECT
  21616. feature_id AS four_thiouridine_id,
  21617. feature.*
  21618. FROM
  21619. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21620. WHERE cvterm.name = 'four_thiouridine';
  21621. --- ************************************************
  21622. --- *** relation: five_methyl_2_thiouridine ***
  21623. --- *** relation type: VIEW ***
  21624. --- *** ***
  21625. --- *** 5_methyl_2_thiouridine is a modified uri ***
  21626. --- *** dine base feature. ***
  21627. --- ************************************************
  21628. ---
  21629. CREATE VIEW five_methyl_2_thiouridine AS
  21630. SELECT
  21631. feature_id AS five_methyl_2_thiouridine_id,
  21632. feature.*
  21633. FROM
  21634. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21635. WHERE cvterm.name = 'five_methyl_2_thiouridine';
  21636. --- ************************************************
  21637. --- *** relation: two_thio_two_prime_o_methyluridine ***
  21638. --- *** relation type: VIEW ***
  21639. --- *** ***
  21640. --- *** 2_thio_2prime_O_methyluridine is a modif ***
  21641. --- *** ied uridine base feature. ***
  21642. --- ************************************************
  21643. ---
  21644. CREATE VIEW two_thio_two_prime_o_methyluridine AS
  21645. SELECT
  21646. feature_id AS two_thio_two_prime_o_methyluridine_id,
  21647. feature.*
  21648. FROM
  21649. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21650. WHERE cvterm.name = 'two_thio_two_prime_O_methyluridine';
  21651. --- ************************************************
  21652. --- *** relation: three_three_amino_three_carboxypropyl_uridine ***
  21653. --- *** relation type: VIEW ***
  21654. --- *** ***
  21655. --- *** 3_3_amino_3_carboxypropyl_uridine is a m ***
  21656. --- *** odified uridine base feature. ***
  21657. --- ************************************************
  21658. ---
  21659. CREATE VIEW three_three_amino_three_carboxypropyl_uridine AS
  21660. SELECT
  21661. feature_id AS three_three_amino_three_carboxypropyl_uridine_id,
  21662. feature.*
  21663. FROM
  21664. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21665. WHERE cvterm.name = 'three_three_amino_three_carboxypropyl_uridine';
  21666. --- ************************************************
  21667. --- *** relation: five_hydroxyuridine ***
  21668. --- *** relation type: VIEW ***
  21669. --- *** ***
  21670. --- *** 5_hydroxyuridine is a modified uridine b ***
  21671. --- *** ase feature. ***
  21672. --- ************************************************
  21673. ---
  21674. CREATE VIEW five_hydroxyuridine AS
  21675. SELECT
  21676. feature_id AS five_hydroxyuridine_id,
  21677. feature.*
  21678. FROM
  21679. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21680. WHERE cvterm.name = 'five_hydroxyuridine';
  21681. --- ************************************************
  21682. --- *** relation: five_methoxyuridine ***
  21683. --- *** relation type: VIEW ***
  21684. --- *** ***
  21685. --- *** 5_methoxyuridine is a modified uridine b ***
  21686. --- *** ase feature. ***
  21687. --- ************************************************
  21688. ---
  21689. CREATE VIEW five_methoxyuridine AS
  21690. SELECT
  21691. feature_id AS five_methoxyuridine_id,
  21692. feature.*
  21693. FROM
  21694. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21695. WHERE cvterm.name = 'five_methoxyuridine';
  21696. --- ************************************************
  21697. --- *** relation: uridine_five_oxyacetic_acid ***
  21698. --- *** relation type: VIEW ***
  21699. --- *** ***
  21700. --- *** Uridine_5_oxyacetic_acid is a modified u ***
  21701. --- *** ridine base feature. ***
  21702. --- ************************************************
  21703. ---
  21704. CREATE VIEW uridine_five_oxyacetic_acid AS
  21705. SELECT
  21706. feature_id AS uridine_five_oxyacetic_acid_id,
  21707. feature.*
  21708. FROM
  21709. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21710. WHERE cvterm.name = 'uridine_five_oxyacetic_acid';
  21711. --- ************************************************
  21712. --- *** relation: uridine_five_oxyacetic_acid_methyl_ester ***
  21713. --- *** relation type: VIEW ***
  21714. --- *** ***
  21715. --- *** Uridine_5_oxyacetic_acid_methyl_ester is ***
  21716. --- *** a modified uridine base feature. ***
  21717. --- ************************************************
  21718. ---
  21719. CREATE VIEW uridine_five_oxyacetic_acid_methyl_ester AS
  21720. SELECT
  21721. feature_id AS uridine_five_oxyacetic_acid_methyl_ester_id,
  21722. feature.*
  21723. FROM
  21724. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21725. WHERE cvterm.name = 'uridine_five_oxyacetic_acid_methyl_ester';
  21726. --- ************************************************
  21727. --- *** relation: five_carboxyhydroxymethyl_uridine ***
  21728. --- *** relation type: VIEW ***
  21729. --- *** ***
  21730. --- *** 5_carboxyhydroxymethyl_uridine is a modi ***
  21731. --- *** fied uridine base feature. ***
  21732. --- ************************************************
  21733. ---
  21734. CREATE VIEW five_carboxyhydroxymethyl_uridine AS
  21735. SELECT
  21736. feature_id AS five_carboxyhydroxymethyl_uridine_id,
  21737. feature.*
  21738. FROM
  21739. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21740. WHERE cvterm.name = 'five_carboxyhydroxymethyl_uridine';
  21741. --- ************************************************
  21742. --- *** relation: five_carboxyhydroxymethyl_uridine_methyl_ester ***
  21743. --- *** relation type: VIEW ***
  21744. --- *** ***
  21745. --- *** 5_carboxyhydroxymethyl_uridine_methyl_es ***
  21746. --- *** ter is a modified uridine base feature. ***
  21747. --- ************************************************
  21748. ---
  21749. CREATE VIEW five_carboxyhydroxymethyl_uridine_methyl_ester AS
  21750. SELECT
  21751. feature_id AS five_carboxyhydroxymethyl_uridine_methyl_ester_id,
  21752. feature.*
  21753. FROM
  21754. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21755. WHERE cvterm.name = 'five_carboxyhydroxymethyl_uridine_methyl_ester';
  21756. --- ************************************************
  21757. --- *** relation: five_methoxycarbonylmethyluridine ***
  21758. --- *** relation type: VIEW ***
  21759. --- *** ***
  21760. --- *** Five_methoxycarbonylmethyluridine is a m ***
  21761. --- *** odified uridine base feature. ***
  21762. --- ************************************************
  21763. ---
  21764. CREATE VIEW five_methoxycarbonylmethyluridine AS
  21765. SELECT
  21766. feature_id AS five_methoxycarbonylmethyluridine_id,
  21767. feature.*
  21768. FROM
  21769. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21770. WHERE cvterm.name = 'five_methoxycarbonylmethyluridine';
  21771. --- ************************************************
  21772. --- *** relation: five_methoxycarbonylmethyl_two_prime_o_methyluridine ***
  21773. --- *** relation type: VIEW ***
  21774. --- *** ***
  21775. --- *** Five_methoxycarbonylmethyl_2_prime_O_met ***
  21776. --- *** hyluridine is a modified uridine base fe ***
  21777. --- *** ature. ***
  21778. --- ************************************************
  21779. ---
  21780. CREATE VIEW five_methoxycarbonylmethyl_two_prime_o_methyluridine AS
  21781. SELECT
  21782. feature_id AS five_methoxycarbonylmethyl_two_prime_o_methyluridine_id,
  21783. feature.*
  21784. FROM
  21785. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21786. WHERE cvterm.name = 'five_methoxycarbonylmethyl_two_prime_O_methyluridine';
  21787. --- ************************************************
  21788. --- *** relation: five_mcm_2_thiouridine ***
  21789. --- *** relation type: VIEW ***
  21790. --- *** ***
  21791. --- *** 5_methoxycarbonylmethyl_2_thiouridine is ***
  21792. --- *** a modified uridine base feature. ***
  21793. --- ************************************************
  21794. ---
  21795. CREATE VIEW five_mcm_2_thiouridine AS
  21796. SELECT
  21797. feature_id AS five_mcm_2_thiouridine_id,
  21798. feature.*
  21799. FROM
  21800. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21801. WHERE cvterm.name = 'five_methoxycarbonylmethyl_two_thiouridine';
  21802. --- ************************************************
  21803. --- *** relation: five_aminomethyl_two_thiouridine ***
  21804. --- *** relation type: VIEW ***
  21805. --- *** ***
  21806. --- *** 5_aminomethyl_2_thiouridine is a modifie ***
  21807. --- *** d uridine base feature. ***
  21808. --- ************************************************
  21809. ---
  21810. CREATE VIEW five_aminomethyl_two_thiouridine AS
  21811. SELECT
  21812. feature_id AS five_aminomethyl_two_thiouridine_id,
  21813. feature.*
  21814. FROM
  21815. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21816. WHERE cvterm.name = 'five_aminomethyl_two_thiouridine';
  21817. --- ************************************************
  21818. --- *** relation: five_methylaminomethyluridine ***
  21819. --- *** relation type: VIEW ***
  21820. --- *** ***
  21821. --- *** 5_methylaminomethyluridine is a modified ***
  21822. --- *** uridine base feature. ***
  21823. --- ************************************************
  21824. ---
  21825. CREATE VIEW five_methylaminomethyluridine AS
  21826. SELECT
  21827. feature_id AS five_methylaminomethyluridine_id,
  21828. feature.*
  21829. FROM
  21830. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21831. WHERE cvterm.name = 'five_methylaminomethyluridine';
  21832. --- ************************************************
  21833. --- *** relation: five_mam_2_thiouridine ***
  21834. --- *** relation type: VIEW ***
  21835. --- *** ***
  21836. --- *** 5_methylaminomethyl_2_thiouridine is a m ***
  21837. --- *** odified uridine base feature. ***
  21838. --- ************************************************
  21839. ---
  21840. CREATE VIEW five_mam_2_thiouridine AS
  21841. SELECT
  21842. feature_id AS five_mam_2_thiouridine_id,
  21843. feature.*
  21844. FROM
  21845. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21846. WHERE cvterm.name = 'five_methylaminomethyl_two_thiouridine';
  21847. --- ************************************************
  21848. --- *** relation: five_methylaminomethyl_two_selenouridine ***
  21849. --- *** relation type: VIEW ***
  21850. --- *** ***
  21851. --- *** 5_methylaminomethyl_2_selenouridine is a ***
  21852. --- *** modified uridine base feature. ***
  21853. --- ************************************************
  21854. ---
  21855. CREATE VIEW five_methylaminomethyl_two_selenouridine AS
  21856. SELECT
  21857. feature_id AS five_methylaminomethyl_two_selenouridine_id,
  21858. feature.*
  21859. FROM
  21860. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21861. WHERE cvterm.name = 'five_methylaminomethyl_two_selenouridine';
  21862. --- ************************************************
  21863. --- *** relation: five_carbamoylmethyluridine ***
  21864. --- *** relation type: VIEW ***
  21865. --- *** ***
  21866. --- *** 5_carbamoylmethyluridine is a modified u ***
  21867. --- *** ridine base feature. ***
  21868. --- ************************************************
  21869. ---
  21870. CREATE VIEW five_carbamoylmethyluridine AS
  21871. SELECT
  21872. feature_id AS five_carbamoylmethyluridine_id,
  21873. feature.*
  21874. FROM
  21875. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21876. WHERE cvterm.name = 'five_carbamoylmethyluridine';
  21877. --- ************************************************
  21878. --- *** relation: five_cm_2_prime_o_methU ***
  21879. --- *** relation type: VIEW ***
  21880. --- *** ***
  21881. --- *** 5_carbamoylmethyl_2_prime_O_methyluridin ***
  21882. --- *** e is a modified uridine base feature. ***
  21883. --- ************************************************
  21884. ---
  21885. CREATE VIEW five_cm_2_prime_o_methU AS
  21886. SELECT
  21887. feature_id AS five_cm_2_prime_o_methU_id,
  21888. feature.*
  21889. FROM
  21890. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21891. WHERE cvterm.name = 'five_carbamoylmethyl_two_prime_O_methyluridine';
  21892. --- ************************************************
  21893. --- *** relation: five_carboxymethylaminomethyluridine ***
  21894. --- *** relation type: VIEW ***
  21895. --- *** ***
  21896. --- *** 5_carboxymethylaminomethyluridine is a m ***
  21897. --- *** odified uridine base feature. ***
  21898. --- ************************************************
  21899. ---
  21900. CREATE VIEW five_carboxymethylaminomethyluridine AS
  21901. SELECT
  21902. feature_id AS five_carboxymethylaminomethyluridine_id,
  21903. feature.*
  21904. FROM
  21905. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21906. WHERE cvterm.name = 'five_carboxymethylaminomethyluridine';
  21907. --- ************************************************
  21908. --- *** relation: five_carboxymethylaminomethyl_two_prime_o_methyluridine ***
  21909. --- *** relation type: VIEW ***
  21910. --- *** ***
  21911. --- *** 5_carboxymethylaminomethyl_2_prime_O_met ***
  21912. --- *** hyluridine is a modified uridine base fe ***
  21913. --- *** ature. ***
  21914. --- ************************************************
  21915. ---
  21916. CREATE VIEW five_carboxymethylaminomethyl_two_prime_o_methyluridine AS
  21917. SELECT
  21918. feature_id AS five_carboxymethylaminomethyl_two_prime_o_methyluridine_id,
  21919. feature.*
  21920. FROM
  21921. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21922. WHERE cvterm.name = 'five_carboxymethylaminomethyl_two_prime_O_methyluridine';
  21923. --- ************************************************
  21924. --- *** relation: five_carboxymethylaminomethyl_two_thiouridine ***
  21925. --- *** relation type: VIEW ***
  21926. --- *** ***
  21927. --- *** 5_carboxymethylaminomethyl_2_thiouridine ***
  21928. --- *** is a modified uridine base feature. ***
  21929. --- ************************************************
  21930. ---
  21931. CREATE VIEW five_carboxymethylaminomethyl_two_thiouridine AS
  21932. SELECT
  21933. feature_id AS five_carboxymethylaminomethyl_two_thiouridine_id,
  21934. feature.*
  21935. FROM
  21936. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21937. WHERE cvterm.name = 'five_carboxymethylaminomethyl_two_thiouridine';
  21938. --- ************************************************
  21939. --- *** relation: three_methyluridine ***
  21940. --- *** relation type: VIEW ***
  21941. --- *** ***
  21942. --- *** 3_methyluridine is a modified uridine ba ***
  21943. --- *** se feature. ***
  21944. --- ************************************************
  21945. ---
  21946. CREATE VIEW three_methyluridine AS
  21947. SELECT
  21948. feature_id AS three_methyluridine_id,
  21949. feature.*
  21950. FROM
  21951. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21952. WHERE cvterm.name = 'three_methyluridine';
  21953. --- ************************************************
  21954. --- *** relation: one_methyl_3_3_amino_three_carboxypropyl_pseudouridine ***
  21955. --- *** relation type: VIEW ***
  21956. --- *** ***
  21957. --- *** 1_methyl_3_3_amino_3_carboxypropyl_pseud ***
  21958. --- *** ouridine is a modified uridine base feat ***
  21959. --- *** ure. ***
  21960. --- ************************************************
  21961. ---
  21962. CREATE VIEW one_methyl_3_3_amino_three_carboxypropyl_pseudouridine AS
  21963. SELECT
  21964. feature_id AS one_methyl_3_3_amino_three_carboxypropyl_pseudouridine_id,
  21965. feature.*
  21966. FROM
  21967. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21968. WHERE cvterm.name = 'one_methyl_three_three_amino_three_carboxypropyl_pseudouridine';
  21969. --- ************************************************
  21970. --- *** relation: five_carboxymethyluridine ***
  21971. --- *** relation type: VIEW ***
  21972. --- *** ***
  21973. --- *** 5_carboxymethyluridine is a modified uri ***
  21974. --- *** dine base feature. ***
  21975. --- ************************************************
  21976. ---
  21977. CREATE VIEW five_carboxymethyluridine AS
  21978. SELECT
  21979. feature_id AS five_carboxymethyluridine_id,
  21980. feature.*
  21981. FROM
  21982. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21983. WHERE cvterm.name = 'five_carboxymethyluridine';
  21984. --- ************************************************
  21985. --- *** relation: three_two_prime_o_dimethyluridine ***
  21986. --- *** relation type: VIEW ***
  21987. --- *** ***
  21988. --- *** 3_2prime_O_dimethyluridine is a modified ***
  21989. --- *** uridine base feature. ***
  21990. --- ************************************************
  21991. ---
  21992. CREATE VIEW three_two_prime_o_dimethyluridine AS
  21993. SELECT
  21994. feature_id AS three_two_prime_o_dimethyluridine_id,
  21995. feature.*
  21996. FROM
  21997. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21998. WHERE cvterm.name = 'three_two_prime_O_dimethyluridine';
  21999. --- ************************************************
  22000. --- *** relation: five_methyldihydrouridine ***
  22001. --- *** relation type: VIEW ***
  22002. --- *** ***
  22003. --- *** 5_methyldihydrouridine is a modified uri ***
  22004. --- *** dine base feature. ***
  22005. --- ************************************************
  22006. ---
  22007. CREATE VIEW five_methyldihydrouridine AS
  22008. SELECT
  22009. feature_id AS five_methyldihydrouridine_id,
  22010. feature.*
  22011. FROM
  22012. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22013. WHERE cvterm.name = 'five_methyldihydrouridine';
  22014. --- ************************************************
  22015. --- *** relation: three_methylpseudouridine ***
  22016. --- *** relation type: VIEW ***
  22017. --- *** ***
  22018. --- *** 3_methylpseudouridine is a modified urid ***
  22019. --- *** ine base feature. ***
  22020. --- ************************************************
  22021. ---
  22022. CREATE VIEW three_methylpseudouridine AS
  22023. SELECT
  22024. feature_id AS three_methylpseudouridine_id,
  22025. feature.*
  22026. FROM
  22027. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22028. WHERE cvterm.name = 'three_methylpseudouridine';
  22029. --- ************************************************
  22030. --- *** relation: five_taurinomethyluridine ***
  22031. --- *** relation type: VIEW ***
  22032. --- *** ***
  22033. --- *** 5_taurinomethyluridine is a modified uri ***
  22034. --- *** dine base feature. ***
  22035. --- ************************************************
  22036. ---
  22037. CREATE VIEW five_taurinomethyluridine AS
  22038. SELECT
  22039. feature_id AS five_taurinomethyluridine_id,
  22040. feature.*
  22041. FROM
  22042. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22043. WHERE cvterm.name = 'five_taurinomethyluridine';
  22044. --- ************************************************
  22045. --- *** relation: five_taurinomethyl_two_thiouridine ***
  22046. --- *** relation type: VIEW ***
  22047. --- *** ***
  22048. --- *** 5_taurinomethyl_2_thiouridineis a modifi ***
  22049. --- *** ed uridine base feature. ***
  22050. --- ************************************************
  22051. ---
  22052. CREATE VIEW five_taurinomethyl_two_thiouridine AS
  22053. SELECT
  22054. feature_id AS five_taurinomethyl_two_thiouridine_id,
  22055. feature.*
  22056. FROM
  22057. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22058. WHERE cvterm.name = 'five_taurinomethyl_two_thiouridine';
  22059. --- ************************************************
  22060. --- *** relation: five_isopentenylaminomethyl_uridine ***
  22061. --- *** relation type: VIEW ***
  22062. --- *** ***
  22063. --- *** 5_isopentenylaminomethyl_uridine is a mo ***
  22064. --- *** dified uridine base feature. ***
  22065. --- ************************************************
  22066. ---
  22067. CREATE VIEW five_isopentenylaminomethyl_uridine AS
  22068. SELECT
  22069. feature_id AS five_isopentenylaminomethyl_uridine_id,
  22070. feature.*
  22071. FROM
  22072. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22073. WHERE cvterm.name = 'five_isopentenylaminomethyl_uridine';
  22074. --- ************************************************
  22075. --- *** relation: five_isopentenylaminomethyl_two_thiouridine ***
  22076. --- *** relation type: VIEW ***
  22077. --- *** ***
  22078. --- *** 5_isopentenylaminomethyl_2_thiouridine i ***
  22079. --- *** s a modified uridine base feature. ***
  22080. --- ************************************************
  22081. ---
  22082. CREATE VIEW five_isopentenylaminomethyl_two_thiouridine AS
  22083. SELECT
  22084. feature_id AS five_isopentenylaminomethyl_two_thiouridine_id,
  22085. feature.*
  22086. FROM
  22087. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22088. WHERE cvterm.name = 'five_isopentenylaminomethyl_two_thiouridine';
  22089. --- ************************************************
  22090. --- *** relation: five_isopentenylaminomethyl_two_prime_o_methyluridine ***
  22091. --- *** relation type: VIEW ***
  22092. --- *** ***
  22093. --- *** 5_isopentenylaminomethyl_2prime_O_methyl ***
  22094. --- *** uridine is a modified uridine base featu ***
  22095. --- *** re. ***
  22096. --- ************************************************
  22097. ---
  22098. CREATE VIEW five_isopentenylaminomethyl_two_prime_o_methyluridine AS
  22099. SELECT
  22100. feature_id AS five_isopentenylaminomethyl_two_prime_o_methyluridine_id,
  22101. feature.*
  22102. FROM
  22103. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22104. WHERE cvterm.name = 'five_isopentenylaminomethyl_two_prime_O_methyluridine';
  22105. --- ************************************************
  22106. --- *** relation: histone_binding_site ***
  22107. --- *** relation type: VIEW ***
  22108. --- *** ***
  22109. --- *** A region of a DNA molecule that is bound ***
  22110. --- *** by a histone. ***
  22111. --- ************************************************
  22112. ---
  22113. CREATE VIEW histone_binding_site AS
  22114. SELECT
  22115. feature_id AS histone_binding_site_id,
  22116. feature.*
  22117. FROM
  22118. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22119. WHERE cvterm.name = 'histone_binding_site';
  22120. --- ************************************************
  22121. --- *** relation: cds_fragment ***
  22122. --- *** relation type: VIEW ***
  22123. --- *** ***
  22124. --- ************************************************
  22125. ---
  22126. CREATE VIEW cds_fragment AS
  22127. SELECT
  22128. feature_id AS cds_fragment_id,
  22129. feature.*
  22130. FROM
  22131. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22132. WHERE cvterm.name = 'CDS_fragment';
  22133. --- ************************************************
  22134. --- *** relation: modified_amino_acid_feature ***
  22135. --- *** relation type: VIEW ***
  22136. --- *** ***
  22137. --- *** A post translationally modified amino ac ***
  22138. --- *** id feature. ***
  22139. --- ************************************************
  22140. ---
  22141. CREATE VIEW modified_amino_acid_feature AS
  22142. SELECT
  22143. feature_id AS modified_amino_acid_feature_id,
  22144. feature.*
  22145. FROM
  22146. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22147. 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';
  22148. --- ************************************************
  22149. --- *** relation: modified_glycine ***
  22150. --- *** relation type: VIEW ***
  22151. --- *** ***
  22152. --- *** A post translationally modified glycine ***
  22153. --- *** amino acid feature. ***
  22154. --- ************************************************
  22155. ---
  22156. CREATE VIEW modified_glycine AS
  22157. SELECT
  22158. feature_id AS modified_glycine_id,
  22159. feature.*
  22160. FROM
  22161. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22162. WHERE cvterm.name = 'modified_glycine';
  22163. --- ************************************************
  22164. --- *** relation: modified_l_alanine ***
  22165. --- *** relation type: VIEW ***
  22166. --- *** ***
  22167. --- *** A post translationally modified alanine ***
  22168. --- *** amino acid feature. ***
  22169. --- ************************************************
  22170. ---
  22171. CREATE VIEW modified_l_alanine AS
  22172. SELECT
  22173. feature_id AS modified_l_alanine_id,
  22174. feature.*
  22175. FROM
  22176. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22177. WHERE cvterm.name = 'modified_L_alanine';
  22178. --- ************************************************
  22179. --- *** relation: modified_l_asparagine ***
  22180. --- *** relation type: VIEW ***
  22181. --- *** ***
  22182. --- *** A post translationally modified asparagi ***
  22183. --- *** ne amino acid feature. ***
  22184. --- ************************************************
  22185. ---
  22186. CREATE VIEW modified_l_asparagine AS
  22187. SELECT
  22188. feature_id AS modified_l_asparagine_id,
  22189. feature.*
  22190. FROM
  22191. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22192. WHERE cvterm.name = 'modified_L_asparagine';
  22193. --- ************************************************
  22194. --- *** relation: modified_l_aspartic_acid ***
  22195. --- *** relation type: VIEW ***
  22196. --- *** ***
  22197. --- *** A post translationally modified aspartic ***
  22198. --- *** acid amino acid feature. ***
  22199. --- ************************************************
  22200. ---
  22201. CREATE VIEW modified_l_aspartic_acid AS
  22202. SELECT
  22203. feature_id AS modified_l_aspartic_acid_id,
  22204. feature.*
  22205. FROM
  22206. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22207. WHERE cvterm.name = 'modified_L_aspartic_acid';
  22208. --- ************************************************
  22209. --- *** relation: modified_l_cysteine ***
  22210. --- *** relation type: VIEW ***
  22211. --- *** ***
  22212. --- *** A post translationally modified cysteine ***
  22213. --- *** amino acid feature. ***
  22214. --- ************************************************
  22215. ---
  22216. CREATE VIEW modified_l_cysteine AS
  22217. SELECT
  22218. feature_id AS modified_l_cysteine_id,
  22219. feature.*
  22220. FROM
  22221. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22222. WHERE cvterm.name = 'modified_L_cysteine';
  22223. --- ************************************************
  22224. --- *** relation: modified_l_glutamic_acid ***
  22225. --- *** relation type: VIEW ***
  22226. --- *** ***
  22227. --- ************************************************
  22228. ---
  22229. CREATE VIEW modified_l_glutamic_acid AS
  22230. SELECT
  22231. feature_id AS modified_l_glutamic_acid_id,
  22232. feature.*
  22233. FROM
  22234. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22235. WHERE cvterm.name = 'modified_L_glutamic_acid';
  22236. --- ************************************************
  22237. --- *** relation: modified_l_threonine ***
  22238. --- *** relation type: VIEW ***
  22239. --- *** ***
  22240. --- *** A post translationally modified threonin ***
  22241. --- *** e amino acid feature. ***
  22242. --- ************************************************
  22243. ---
  22244. CREATE VIEW modified_l_threonine AS
  22245. SELECT
  22246. feature_id AS modified_l_threonine_id,
  22247. feature.*
  22248. FROM
  22249. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22250. WHERE cvterm.name = 'modified_L_threonine';
  22251. --- ************************************************
  22252. --- *** relation: modified_l_tryptophan ***
  22253. --- *** relation type: VIEW ***
  22254. --- *** ***
  22255. --- *** A post translationally modified tryptoph ***
  22256. --- *** an amino acid feature. ***
  22257. --- ************************************************
  22258. ---
  22259. CREATE VIEW modified_l_tryptophan AS
  22260. SELECT
  22261. feature_id AS modified_l_tryptophan_id,
  22262. feature.*
  22263. FROM
  22264. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22265. WHERE cvterm.name = 'modified_L_tryptophan';
  22266. --- ************************************************
  22267. --- *** relation: modified_l_glutamine ***
  22268. --- *** relation type: VIEW ***
  22269. --- *** ***
  22270. --- *** A post translationally modified glutamin ***
  22271. --- *** e amino acid feature. ***
  22272. --- ************************************************
  22273. ---
  22274. CREATE VIEW modified_l_glutamine AS
  22275. SELECT
  22276. feature_id AS modified_l_glutamine_id,
  22277. feature.*
  22278. FROM
  22279. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22280. WHERE cvterm.name = 'modified_L_glutamine';
  22281. --- ************************************************
  22282. --- *** relation: modified_l_methionine ***
  22283. --- *** relation type: VIEW ***
  22284. --- *** ***
  22285. --- *** A post translationally modified methioni ***
  22286. --- *** ne amino acid feature. ***
  22287. --- ************************************************
  22288. ---
  22289. CREATE VIEW modified_l_methionine AS
  22290. SELECT
  22291. feature_id AS modified_l_methionine_id,
  22292. feature.*
  22293. FROM
  22294. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22295. WHERE cvterm.name = 'modified_L_methionine';
  22296. --- ************************************************
  22297. --- *** relation: modified_l_isoleucine ***
  22298. --- *** relation type: VIEW ***
  22299. --- *** ***
  22300. --- *** A post translationally modified isoleuci ***
  22301. --- *** ne amino acid feature. ***
  22302. --- ************************************************
  22303. ---
  22304. CREATE VIEW modified_l_isoleucine AS
  22305. SELECT
  22306. feature_id AS modified_l_isoleucine_id,
  22307. feature.*
  22308. FROM
  22309. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22310. WHERE cvterm.name = 'modified_L_isoleucine';
  22311. --- ************************************************
  22312. --- *** relation: modified_l_phenylalanine ***
  22313. --- *** relation type: VIEW ***
  22314. --- *** ***
  22315. --- *** A post translationally modified phenylal ***
  22316. --- *** anine amino acid feature. ***
  22317. --- ************************************************
  22318. ---
  22319. CREATE VIEW modified_l_phenylalanine AS
  22320. SELECT
  22321. feature_id AS modified_l_phenylalanine_id,
  22322. feature.*
  22323. FROM
  22324. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22325. WHERE cvterm.name = 'modified_L_phenylalanine';
  22326. --- ************************************************
  22327. --- *** relation: modified_l_histidine ***
  22328. --- *** relation type: VIEW ***
  22329. --- *** ***
  22330. --- *** A post translationally modified histidie ***
  22331. --- *** amino acid feature. ***
  22332. --- ************************************************
  22333. ---
  22334. CREATE VIEW modified_l_histidine AS
  22335. SELECT
  22336. feature_id AS modified_l_histidine_id,
  22337. feature.*
  22338. FROM
  22339. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22340. WHERE cvterm.name = 'modified_L_histidine';
  22341. --- ************************************************
  22342. --- *** relation: modified_l_serine ***
  22343. --- *** relation type: VIEW ***
  22344. --- *** ***
  22345. --- *** A post translationally modified serine a ***
  22346. --- *** mino acid feature. ***
  22347. --- ************************************************
  22348. ---
  22349. CREATE VIEW modified_l_serine AS
  22350. SELECT
  22351. feature_id AS modified_l_serine_id,
  22352. feature.*
  22353. FROM
  22354. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22355. WHERE cvterm.name = 'modified_L_serine';
  22356. --- ************************************************
  22357. --- *** relation: modified_l_lysine ***
  22358. --- *** relation type: VIEW ***
  22359. --- *** ***
  22360. --- *** A post translationally modified lysine a ***
  22361. --- *** mino acid feature. ***
  22362. --- ************************************************
  22363. ---
  22364. CREATE VIEW modified_l_lysine AS
  22365. SELECT
  22366. feature_id AS modified_l_lysine_id,
  22367. feature.*
  22368. FROM
  22369. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22370. WHERE cvterm.name = 'modified_L_lysine';
  22371. --- ************************************************
  22372. --- *** relation: modified_l_leucine ***
  22373. --- *** relation type: VIEW ***
  22374. --- *** ***
  22375. --- *** A post translationally modified leucine ***
  22376. --- *** amino acid feature. ***
  22377. --- ************************************************
  22378. ---
  22379. CREATE VIEW modified_l_leucine AS
  22380. SELECT
  22381. feature_id AS modified_l_leucine_id,
  22382. feature.*
  22383. FROM
  22384. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22385. WHERE cvterm.name = 'modified_L_leucine';
  22386. --- ************************************************
  22387. --- *** relation: modified_l_selenocysteine ***
  22388. --- *** relation type: VIEW ***
  22389. --- *** ***
  22390. --- *** A post translationally modified selenocy ***
  22391. --- *** steine amino acid feature. ***
  22392. --- ************************************************
  22393. ---
  22394. CREATE VIEW modified_l_selenocysteine AS
  22395. SELECT
  22396. feature_id AS modified_l_selenocysteine_id,
  22397. feature.*
  22398. FROM
  22399. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22400. WHERE cvterm.name = 'modified_L_selenocysteine';
  22401. --- ************************************************
  22402. --- *** relation: modified_l_valine ***
  22403. --- *** relation type: VIEW ***
  22404. --- *** ***
  22405. --- *** A post translationally modified valine a ***
  22406. --- *** mino acid feature. ***
  22407. --- ************************************************
  22408. ---
  22409. CREATE VIEW modified_l_valine AS
  22410. SELECT
  22411. feature_id AS modified_l_valine_id,
  22412. feature.*
  22413. FROM
  22414. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22415. WHERE cvterm.name = 'modified_L_valine';
  22416. --- ************************************************
  22417. --- *** relation: modified_l_proline ***
  22418. --- *** relation type: VIEW ***
  22419. --- *** ***
  22420. --- *** A post translationally modified proline ***
  22421. --- *** amino acid feature. ***
  22422. --- ************************************************
  22423. ---
  22424. CREATE VIEW modified_l_proline AS
  22425. SELECT
  22426. feature_id AS modified_l_proline_id,
  22427. feature.*
  22428. FROM
  22429. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22430. WHERE cvterm.name = 'modified_L_proline';
  22431. --- ************************************************
  22432. --- *** relation: modified_l_tyrosine ***
  22433. --- *** relation type: VIEW ***
  22434. --- *** ***
  22435. --- *** A post translationally modified tyrosine ***
  22436. --- *** amino acid feature. ***
  22437. --- ************************************************
  22438. ---
  22439. CREATE VIEW modified_l_tyrosine AS
  22440. SELECT
  22441. feature_id AS modified_l_tyrosine_id,
  22442. feature.*
  22443. FROM
  22444. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22445. WHERE cvterm.name = 'modified_L_tyrosine';
  22446. --- ************************************************
  22447. --- *** relation: modified_l_arginine ***
  22448. --- *** relation type: VIEW ***
  22449. --- *** ***
  22450. --- *** A post translationally modified arginine ***
  22451. --- *** amino acid feature. ***
  22452. --- ************************************************
  22453. ---
  22454. CREATE VIEW modified_l_arginine AS
  22455. SELECT
  22456. feature_id AS modified_l_arginine_id,
  22457. feature.*
  22458. FROM
  22459. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22460. WHERE cvterm.name = 'modified_L_arginine';
  22461. --- ************************************************
  22462. --- *** relation: peptidyl ***
  22463. --- *** relation type: VIEW ***
  22464. --- *** ***
  22465. --- *** An attribute describing the nature of a ***
  22466. --- *** proteinaceous polymer, where by the amin ***
  22467. --- *** o acid units are joined by peptide bonds ***
  22468. --- *** . ***
  22469. --- ************************************************
  22470. ---
  22471. CREATE VIEW peptidyl AS
  22472. SELECT
  22473. feature_id AS peptidyl_id,
  22474. feature.*
  22475. FROM
  22476. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22477. WHERE cvterm.name = 'peptidyl';
  22478. --- ************************************************
  22479. --- *** relation: cleaved_for_gpi_anchor_region ***
  22480. --- *** relation type: VIEW ***
  22481. --- *** ***
  22482. --- *** The C-terminal residues of a polypeptide ***
  22483. --- *** which are exchanged for a GPI-anchor. ***
  22484. --- ************************************************
  22485. ---
  22486. CREATE VIEW cleaved_for_gpi_anchor_region AS
  22487. SELECT
  22488. feature_id AS cleaved_for_gpi_anchor_region_id,
  22489. feature.*
  22490. FROM
  22491. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22492. WHERE cvterm.name = 'cleaved_for_gpi_anchor_region';
  22493. --- ************************************************
  22494. --- *** relation: biomaterial_region ***
  22495. --- *** relation type: VIEW ***
  22496. --- *** ***
  22497. --- *** A region which is intended for use in an ***
  22498. --- *** experiment. ***
  22499. --- ************************************************
  22500. ---
  22501. CREATE VIEW biomaterial_region AS
  22502. SELECT
  22503. feature_id AS biomaterial_region_id,
  22504. feature.*
  22505. FROM
  22506. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22507. 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';
  22508. --- ************************************************
  22509. --- *** relation: experimental_feature ***
  22510. --- *** relation type: VIEW ***
  22511. --- *** ***
  22512. --- *** A region which is the result of some arb ***
  22513. --- *** itrary experimental procedure. The proce ***
  22514. --- *** dure may be carried out with biological ***
  22515. --- *** material or inside a computer. ***
  22516. --- ************************************************
  22517. ---
  22518. CREATE VIEW experimental_feature AS
  22519. SELECT
  22520. feature_id AS experimental_feature_id,
  22521. feature.*
  22522. FROM
  22523. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22524. 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';
  22525. --- ************************************************
  22526. --- *** relation: biological_region ***
  22527. --- *** relation type: VIEW ***
  22528. --- *** ***
  22529. --- *** A region defined by its disposition to b ***
  22530. --- *** e involved in a biological process. ***
  22531. --- ************************************************
  22532. ---
  22533. CREATE VIEW biological_region AS
  22534. SELECT
  22535. feature_id AS biological_region_id,
  22536. feature.*
  22537. FROM
  22538. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22539. 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';
  22540. --- ************************************************
  22541. --- *** relation: topologically_defined_region ***
  22542. --- *** relation type: VIEW ***
  22543. --- *** ***
  22544. --- *** A region that is defined according to it ***
  22545. --- *** s relations with other regions within th ***
  22546. --- *** e same sequence. ***
  22547. --- ************************************************
  22548. ---
  22549. CREATE VIEW topologically_defined_region AS
  22550. SELECT
  22551. feature_id AS topologically_defined_region_id,
  22552. feature.*
  22553. FROM
  22554. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22555. 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';
  22556. --- ************************************************
  22557. --- *** relation: translocation_breakpoint ***
  22558. --- *** relation type: VIEW ***
  22559. --- *** ***
  22560. --- *** The point within a chromosome where a tr ***
  22561. --- *** anslocation begins or ends. ***
  22562. --- ************************************************
  22563. ---
  22564. CREATE VIEW translocation_breakpoint AS
  22565. SELECT
  22566. feature_id AS translocation_breakpoint_id,
  22567. feature.*
  22568. FROM
  22569. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22570. WHERE cvterm.name = 'translocation_breakpoint';
  22571. --- ************************************************
  22572. --- *** relation: insertion_breakpoint ***
  22573. --- *** relation type: VIEW ***
  22574. --- *** ***
  22575. --- *** The point within a chromosome where a in ***
  22576. --- *** sertion begins or ends. ***
  22577. --- ************************************************
  22578. ---
  22579. CREATE VIEW insertion_breakpoint AS
  22580. SELECT
  22581. feature_id AS insertion_breakpoint_id,
  22582. feature.*
  22583. FROM
  22584. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22585. WHERE cvterm.name = 'insertion_breakpoint';
  22586. --- ************************************************
  22587. --- *** relation: deletion_breakpoint ***
  22588. --- *** relation type: VIEW ***
  22589. --- *** ***
  22590. --- *** The point within a chromosome where a de ***
  22591. --- *** letion begins or ends. ***
  22592. --- ************************************************
  22593. ---
  22594. CREATE VIEW deletion_breakpoint AS
  22595. SELECT
  22596. feature_id AS deletion_breakpoint_id,
  22597. feature.*
  22598. FROM
  22599. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22600. WHERE cvterm.name = 'deletion_breakpoint';
  22601. --- ************************************************
  22602. --- *** relation: five_prime_flanking_region ***
  22603. --- *** relation type: VIEW ***
  22604. --- *** ***
  22605. --- *** A flanking region located five prime of ***
  22606. --- *** a specific region. ***
  22607. --- ************************************************
  22608. ---
  22609. CREATE VIEW five_prime_flanking_region AS
  22610. SELECT
  22611. feature_id AS five_prime_flanking_region_id,
  22612. feature.*
  22613. FROM
  22614. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22615. WHERE cvterm.name = 'five_prime_flanking_region';
  22616. --- ************************************************
  22617. --- *** relation: three_prime_flanking_region ***
  22618. --- *** relation type: VIEW ***
  22619. --- *** ***
  22620. --- *** A flanking region located three prime of ***
  22621. --- *** a specific region. ***
  22622. --- ************************************************
  22623. ---
  22624. CREATE VIEW three_prime_flanking_region AS
  22625. SELECT
  22626. feature_id AS three_prime_flanking_region_id,
  22627. feature.*
  22628. FROM
  22629. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22630. WHERE cvterm.name = 'three_prime_flanking_region';
  22631. --- ************************************************
  22632. --- *** relation: transcribed_fragment ***
  22633. --- *** relation type: VIEW ***
  22634. --- *** ***
  22635. --- *** An experimental region, defined by a til ***
  22636. --- *** ing array experiment to be transcribed a ***
  22637. --- *** t some level. ***
  22638. --- ************************************************
  22639. ---
  22640. CREATE VIEW transcribed_fragment AS
  22641. SELECT
  22642. feature_id AS transcribed_fragment_id,
  22643. feature.*
  22644. FROM
  22645. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22646. WHERE cvterm.name = 'transcribed_fragment';
  22647. --- ************************************************
  22648. --- *** relation: cis_splice_site ***
  22649. --- *** relation type: VIEW ***
  22650. --- *** ***
  22651. --- *** Intronic 2 bp region bordering exon. A s ***
  22652. --- *** plice_site that adjacent_to exon and ove ***
  22653. --- *** rlaps intron. ***
  22654. --- ************************************************
  22655. ---
  22656. CREATE VIEW cis_splice_site AS
  22657. SELECT
  22658. feature_id AS cis_splice_site_id,
  22659. feature.*
  22660. FROM
  22661. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22662. 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';
  22663. --- ************************************************
  22664. --- *** relation: trans_splice_site ***
  22665. --- *** relation type: VIEW ***
  22666. --- *** ***
  22667. --- *** Primary transcript region bordering tran ***
  22668. --- *** s-splice junction. ***
  22669. --- ************************************************
  22670. ---
  22671. CREATE VIEW trans_splice_site AS
  22672. SELECT
  22673. feature_id AS trans_splice_site_id,
  22674. feature.*
  22675. FROM
  22676. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22677. 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';
  22678. --- ************************************************
  22679. --- *** relation: splice_junction ***
  22680. --- *** relation type: VIEW ***
  22681. --- *** ***
  22682. --- *** The boundary between an intron and an ex ***
  22683. --- *** on. ***
  22684. --- ************************************************
  22685. ---
  22686. CREATE VIEW splice_junction AS
  22687. SELECT
  22688. feature_id AS splice_junction_id,
  22689. feature.*
  22690. FROM
  22691. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22692. WHERE cvterm.name = 'splice_junction';
  22693. --- ************************************************
  22694. --- *** relation: conformational_switch ***
  22695. --- *** relation type: VIEW ***
  22696. --- *** ***
  22697. --- *** A region of a polypeptide, involved in t ***
  22698. --- *** he transition from one conformational st ***
  22699. --- *** ate to another. ***
  22700. --- ************************************************
  22701. ---
  22702. CREATE VIEW conformational_switch AS
  22703. SELECT
  22704. feature_id AS conformational_switch_id,
  22705. feature.*
  22706. FROM
  22707. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22708. WHERE cvterm.name = 'conformational_switch';
  22709. --- ************************************************
  22710. --- *** relation: dye_terminator_read ***
  22711. --- *** relation type: VIEW ***
  22712. --- *** ***
  22713. --- *** A read produced by the dye terminator me ***
  22714. --- *** thod of sequencing. ***
  22715. --- ************************************************
  22716. ---
  22717. CREATE VIEW dye_terminator_read AS
  22718. SELECT
  22719. feature_id AS dye_terminator_read_id,
  22720. feature.*
  22721. FROM
  22722. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22723. WHERE cvterm.name = 'dye_terminator_read';
  22724. --- ************************************************
  22725. --- *** relation: pyrosequenced_read ***
  22726. --- *** relation type: VIEW ***
  22727. --- *** ***
  22728. --- *** A read produced by pyrosequencing techno ***
  22729. --- *** logy. ***
  22730. --- ************************************************
  22731. ---
  22732. CREATE VIEW pyrosequenced_read AS
  22733. SELECT
  22734. feature_id AS pyrosequenced_read_id,
  22735. feature.*
  22736. FROM
  22737. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22738. WHERE cvterm.name = 'pyrosequenced_read';
  22739. --- ************************************************
  22740. --- *** relation: ligation_based_read ***
  22741. --- *** relation type: VIEW ***
  22742. --- *** ***
  22743. --- *** A read produced by ligation based sequen ***
  22744. --- *** cing technologies. ***
  22745. --- ************************************************
  22746. ---
  22747. CREATE VIEW ligation_based_read AS
  22748. SELECT
  22749. feature_id AS ligation_based_read_id,
  22750. feature.*
  22751. FROM
  22752. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22753. WHERE cvterm.name = 'ligation_based_read';
  22754. --- ************************************************
  22755. --- *** relation: polymerase_synthesis_read ***
  22756. --- *** relation type: VIEW ***
  22757. --- *** ***
  22758. --- *** A read produced by the polymerase based ***
  22759. --- *** sequence by synthesis method. ***
  22760. --- ************************************************
  22761. ---
  22762. CREATE VIEW polymerase_synthesis_read AS
  22763. SELECT
  22764. feature_id AS polymerase_synthesis_read_id,
  22765. feature.*
  22766. FROM
  22767. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22768. WHERE cvterm.name = 'polymerase_synthesis_read';
  22769. --- ************************************************
  22770. --- *** relation: cis_regulatory_frameshift_element ***
  22771. --- *** relation type: VIEW ***
  22772. --- *** ***
  22773. --- *** A structural region in an RNA molecule w ***
  22774. --- *** hich promotes ribosomal frameshifting of ***
  22775. --- *** cis coding sequence. ***
  22776. --- ************************************************
  22777. ---
  22778. CREATE VIEW cis_regulatory_frameshift_element AS
  22779. SELECT
  22780. feature_id AS cis_regulatory_frameshift_element_id,
  22781. feature.*
  22782. FROM
  22783. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22784. WHERE cvterm.name = 'cis_regulatory_frameshift_element';
  22785. --- ************************************************
  22786. --- *** relation: expressed_sequence_assembly ***
  22787. --- *** relation type: VIEW ***
  22788. --- *** ***
  22789. --- *** A sequence assembly derived from express ***
  22790. --- *** ed sequences. ***
  22791. --- ************************************************
  22792. ---
  22793. CREATE VIEW expressed_sequence_assembly AS
  22794. SELECT
  22795. feature_id AS expressed_sequence_assembly_id,
  22796. feature.*
  22797. FROM
  22798. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22799. WHERE cvterm.name = 'expressed_sequence_assembly';
  22800. --- ************************************************
  22801. --- *** relation: dna_binding_site ***
  22802. --- *** relation type: VIEW ***
  22803. --- *** ***
  22804. --- *** A region of a molecule that binds to DNA ***
  22805. --- *** . ***
  22806. --- ************************************************
  22807. ---
  22808. CREATE VIEW dna_binding_site AS
  22809. SELECT
  22810. feature_id AS dna_binding_site_id,
  22811. feature.*
  22812. FROM
  22813. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22814. WHERE cvterm.name = 'DNA_binding_site';
  22815. --- ************************************************
  22816. --- *** relation: polya_junction ***
  22817. --- *** relation type: VIEW ***
  22818. --- *** ***
  22819. --- *** The boundary between the UTR and the pol ***
  22820. --- *** yA sequence. ***
  22821. --- ************************************************
  22822. ---
  22823. CREATE VIEW polya_junction AS
  22824. SELECT
  22825. feature_id AS polya_junction_id,
  22826. feature.*
  22827. FROM
  22828. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22829. WHERE cvterm.name = 'polyA_junction';
  22830. --- ************************************************
  22831. --- *** relation: cryptic_gene ***
  22832. --- *** relation type: VIEW ***
  22833. --- *** ***
  22834. --- *** A gene that is not transcribed under nor ***
  22835. --- *** mal conditions and is not critical to no ***
  22836. --- *** rmal cellular functioning. ***
  22837. --- ************************************************
  22838. ---
  22839. CREATE VIEW cryptic_gene AS
  22840. SELECT
  22841. feature_id AS cryptic_gene_id,
  22842. feature.*
  22843. FROM
  22844. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22845. WHERE cvterm.name = 'cryptogene' OR cvterm.name = 'cryptic_gene';
  22846. --- ************************************************
  22847. --- *** relation: sequence_variant_affecting_polyadenylation ***
  22848. --- *** relation type: VIEW ***
  22849. --- *** ***
  22850. --- ************************************************
  22851. ---
  22852. CREATE VIEW sequence_variant_affecting_polyadenylation AS
  22853. SELECT
  22854. feature_id AS sequence_variant_affecting_polyadenylation_id,
  22855. feature.*
  22856. FROM
  22857. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22858. WHERE cvterm.name = 'sequence_variant_affecting_polyadenylation';
  22859. --- ************************************************
  22860. --- *** relation: three_prime_race_clone ***
  22861. --- *** relation type: VIEW ***
  22862. --- *** ***
  22863. --- *** A three prime RACE (Rapid Amplification ***
  22864. --- *** of cDNA Ends) clone is a cDNA clone copi ***
  22865. --- *** ed from the 3' end of an mRNA (using a p ***
  22866. --- *** oly-dT primer to capture the polyA tail ***
  22867. --- *** and a gene-specific or randomly primed 5 ***
  22868. --- *** ' primer), and spliced into a vector for ***
  22869. --- *** propagation in a suitable host. ***
  22870. --- ************************************************
  22871. ---
  22872. CREATE VIEW three_prime_race_clone AS
  22873. SELECT
  22874. feature_id AS three_prime_race_clone_id,
  22875. feature.*
  22876. FROM
  22877. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22878. WHERE cvterm.name = 'three_prime_RACE_clone';
  22879. --- ************************************************
  22880. --- *** relation: cassette_pseudogene ***
  22881. --- *** relation type: VIEW ***
  22882. --- *** ***
  22883. --- *** A cassette pseudogene is a kind of gene ***
  22884. --- *** in an innactive form which may recombine ***
  22885. --- *** at a telomeric locus to form a function ***
  22886. --- *** al copy. ***
  22887. --- ************************************************
  22888. ---
  22889. CREATE VIEW cassette_pseudogene AS
  22890. SELECT
  22891. feature_id AS cassette_pseudogene_id,
  22892. feature.*
  22893. FROM
  22894. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22895. WHERE cvterm.name = 'cassette_pseudogene';
  22896. --- ************************************************
  22897. --- *** relation: alanine ***
  22898. --- *** relation type: VIEW ***
  22899. --- *** ***
  22900. --- ************************************************
  22901. ---
  22902. CREATE VIEW alanine AS
  22903. SELECT
  22904. feature_id AS alanine_id,
  22905. feature.*
  22906. FROM
  22907. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22908. WHERE cvterm.name = 'alanine';
  22909. --- ************************************************
  22910. --- *** relation: valine ***
  22911. --- *** relation type: VIEW ***
  22912. --- *** ***
  22913. --- ************************************************
  22914. ---
  22915. CREATE VIEW valine AS
  22916. SELECT
  22917. feature_id AS valine_id,
  22918. feature.*
  22919. FROM
  22920. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22921. WHERE cvterm.name = 'valine';
  22922. --- ************************************************
  22923. --- *** relation: leucine ***
  22924. --- *** relation type: VIEW ***
  22925. --- *** ***
  22926. --- ************************************************
  22927. ---
  22928. CREATE VIEW leucine AS
  22929. SELECT
  22930. feature_id AS leucine_id,
  22931. feature.*
  22932. FROM
  22933. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22934. WHERE cvterm.name = 'leucine';
  22935. --- ************************************************
  22936. --- *** relation: isoleucine ***
  22937. --- *** relation type: VIEW ***
  22938. --- *** ***
  22939. --- ************************************************
  22940. ---
  22941. CREATE VIEW isoleucine AS
  22942. SELECT
  22943. feature_id AS isoleucine_id,
  22944. feature.*
  22945. FROM
  22946. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22947. WHERE cvterm.name = 'isoleucine';
  22948. --- ************************************************
  22949. --- *** relation: proline ***
  22950. --- *** relation type: VIEW ***
  22951. --- *** ***
  22952. --- ************************************************
  22953. ---
  22954. CREATE VIEW proline AS
  22955. SELECT
  22956. feature_id AS proline_id,
  22957. feature.*
  22958. FROM
  22959. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22960. WHERE cvterm.name = 'proline';
  22961. --- ************************************************
  22962. --- *** relation: tryptophan ***
  22963. --- *** relation type: VIEW ***
  22964. --- *** ***
  22965. --- ************************************************
  22966. ---
  22967. CREATE VIEW tryptophan AS
  22968. SELECT
  22969. feature_id AS tryptophan_id,
  22970. feature.*
  22971. FROM
  22972. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22973. WHERE cvterm.name = 'tryptophan';
  22974. --- ************************************************
  22975. --- *** relation: phenylalanine ***
  22976. --- *** relation type: VIEW ***
  22977. --- *** ***
  22978. --- ************************************************
  22979. ---
  22980. CREATE VIEW phenylalanine AS
  22981. SELECT
  22982. feature_id AS phenylalanine_id,
  22983. feature.*
  22984. FROM
  22985. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22986. WHERE cvterm.name = 'phenylalanine';
  22987. --- ************************************************
  22988. --- *** relation: methionine ***
  22989. --- *** relation type: VIEW ***
  22990. --- *** ***
  22991. --- ************************************************
  22992. ---
  22993. CREATE VIEW methionine AS
  22994. SELECT
  22995. feature_id AS methionine_id,
  22996. feature.*
  22997. FROM
  22998. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22999. WHERE cvterm.name = 'methionine';
  23000. --- ************************************************
  23001. --- *** relation: glycine ***
  23002. --- *** relation type: VIEW ***
  23003. --- *** ***
  23004. --- ************************************************
  23005. ---
  23006. CREATE VIEW glycine AS
  23007. SELECT
  23008. feature_id AS glycine_id,
  23009. feature.*
  23010. FROM
  23011. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23012. WHERE cvterm.name = 'glycine';
  23013. --- ************************************************
  23014. --- *** relation: serine ***
  23015. --- *** relation type: VIEW ***
  23016. --- *** ***
  23017. --- ************************************************
  23018. ---
  23019. CREATE VIEW serine AS
  23020. SELECT
  23021. feature_id AS serine_id,
  23022. feature.*
  23023. FROM
  23024. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23025. WHERE cvterm.name = 'serine';
  23026. --- ************************************************
  23027. --- *** relation: threonine ***
  23028. --- *** relation type: VIEW ***
  23029. --- *** ***
  23030. --- ************************************************
  23031. ---
  23032. CREATE VIEW threonine AS
  23033. SELECT
  23034. feature_id AS threonine_id,
  23035. feature.*
  23036. FROM
  23037. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23038. WHERE cvterm.name = 'threonine';
  23039. --- ************************************************
  23040. --- *** relation: tyrosine ***
  23041. --- *** relation type: VIEW ***
  23042. --- *** ***
  23043. --- ************************************************
  23044. ---
  23045. CREATE VIEW tyrosine AS
  23046. SELECT
  23047. feature_id AS tyrosine_id,
  23048. feature.*
  23049. FROM
  23050. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23051. WHERE cvterm.name = 'tyrosine';
  23052. --- ************************************************
  23053. --- *** relation: cysteine ***
  23054. --- *** relation type: VIEW ***
  23055. --- *** ***
  23056. --- ************************************************
  23057. ---
  23058. CREATE VIEW cysteine AS
  23059. SELECT
  23060. feature_id AS cysteine_id,
  23061. feature.*
  23062. FROM
  23063. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23064. WHERE cvterm.name = 'cysteine';
  23065. --- ************************************************
  23066. --- *** relation: glutamine ***
  23067. --- *** relation type: VIEW ***
  23068. --- *** ***
  23069. --- ************************************************
  23070. ---
  23071. CREATE VIEW glutamine AS
  23072. SELECT
  23073. feature_id AS glutamine_id,
  23074. feature.*
  23075. FROM
  23076. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23077. WHERE cvterm.name = 'glutamine';
  23078. --- ************************************************
  23079. --- *** relation: asparagine ***
  23080. --- *** relation type: VIEW ***
  23081. --- *** ***
  23082. --- ************************************************
  23083. ---
  23084. CREATE VIEW asparagine AS
  23085. SELECT
  23086. feature_id AS asparagine_id,
  23087. feature.*
  23088. FROM
  23089. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23090. WHERE cvterm.name = 'asparagine';
  23091. --- ************************************************
  23092. --- *** relation: lysine ***
  23093. --- *** relation type: VIEW ***
  23094. --- *** ***
  23095. --- ************************************************
  23096. ---
  23097. CREATE VIEW lysine AS
  23098. SELECT
  23099. feature_id AS lysine_id,
  23100. feature.*
  23101. FROM
  23102. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23103. WHERE cvterm.name = 'lysine';
  23104. --- ************************************************
  23105. --- *** relation: argenine ***
  23106. --- *** relation type: VIEW ***
  23107. --- *** ***
  23108. --- ************************************************
  23109. ---
  23110. CREATE VIEW argenine AS
  23111. SELECT
  23112. feature_id AS argenine_id,
  23113. feature.*
  23114. FROM
  23115. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23116. WHERE cvterm.name = 'argenine';
  23117. --- ************************************************
  23118. --- *** relation: histidine ***
  23119. --- *** relation type: VIEW ***
  23120. --- *** ***
  23121. --- ************************************************
  23122. ---
  23123. CREATE VIEW histidine AS
  23124. SELECT
  23125. feature_id AS histidine_id,
  23126. feature.*
  23127. FROM
  23128. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23129. WHERE cvterm.name = 'histidine';
  23130. --- ************************************************
  23131. --- *** relation: aspartic_acid ***
  23132. --- *** relation type: VIEW ***
  23133. --- *** ***
  23134. --- ************************************************
  23135. ---
  23136. CREATE VIEW aspartic_acid AS
  23137. SELECT
  23138. feature_id AS aspartic_acid_id,
  23139. feature.*
  23140. FROM
  23141. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23142. WHERE cvterm.name = 'aspartic_acid';
  23143. --- ************************************************
  23144. --- *** relation: glutamic_acid ***
  23145. --- *** relation type: VIEW ***
  23146. --- *** ***
  23147. --- ************************************************
  23148. ---
  23149. CREATE VIEW glutamic_acid AS
  23150. SELECT
  23151. feature_id AS glutamic_acid_id,
  23152. feature.*
  23153. FROM
  23154. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23155. WHERE cvterm.name = 'glutamic_acid';
  23156. --- ************************************************
  23157. --- *** relation: selenocysteine ***
  23158. --- *** relation type: VIEW ***
  23159. --- *** ***
  23160. --- ************************************************
  23161. ---
  23162. CREATE VIEW selenocysteine AS
  23163. SELECT
  23164. feature_id AS selenocysteine_id,
  23165. feature.*
  23166. FROM
  23167. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23168. WHERE cvterm.name = 'selenocysteine';
  23169. --- ************************************************
  23170. --- *** relation: pyrrolysine ***
  23171. --- *** relation type: VIEW ***
  23172. --- *** ***
  23173. --- ************************************************
  23174. ---
  23175. CREATE VIEW pyrrolysine AS
  23176. SELECT
  23177. feature_id AS pyrrolysine_id,
  23178. feature.*
  23179. FROM
  23180. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23181. WHERE cvterm.name = 'pyrrolysine';
  23182. --- ************************************************
  23183. --- *** relation: transcribed_cluster ***
  23184. --- *** relation type: VIEW ***
  23185. --- *** ***
  23186. --- *** A region defined by a set of transcribed ***
  23187. --- *** sequences from the same gene or express ***
  23188. --- *** ed pseudogene. ***
  23189. --- ************************************************
  23190. ---
  23191. CREATE VIEW transcribed_cluster AS
  23192. SELECT
  23193. feature_id AS transcribed_cluster_id,
  23194. feature.*
  23195. FROM
  23196. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23197. WHERE cvterm.name = 'unigene_cluster' OR cvterm.name = 'transcribed_cluster';
  23198. --- ************************************************
  23199. --- *** relation: unigene_cluster ***
  23200. --- *** relation type: VIEW ***
  23201. --- *** ***
  23202. --- *** A kind of transcribed_cluster defined by ***
  23203. --- *** a set of transcribed sequences from the ***
  23204. --- *** a unique gene. ***
  23205. --- ************************************************
  23206. ---
  23207. CREATE VIEW unigene_cluster AS
  23208. SELECT
  23209. feature_id AS unigene_cluster_id,
  23210. feature.*
  23211. FROM
  23212. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23213. WHERE cvterm.name = 'unigene_cluster';
  23214. --- ************************************************
  23215. --- *** relation: crispr ***
  23216. --- *** relation type: VIEW ***
  23217. --- *** ***
  23218. --- *** Clustered Palindromic Repeats interspers ***
  23219. --- *** ed with bacteriophage derived spacer seq ***
  23220. --- *** uences. ***
  23221. --- ************************************************
  23222. ---
  23223. CREATE VIEW crispr AS
  23224. SELECT
  23225. feature_id AS crispr_id,
  23226. feature.*
  23227. FROM
  23228. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23229. WHERE cvterm.name = 'CRISPR';
  23230. --- ************************************************
  23231. --- *** relation: insulator_binding_site ***
  23232. --- *** relation type: VIEW ***
  23233. --- *** ***
  23234. --- *** A protein_binding_site located within an ***
  23235. --- *** insulator. ***
  23236. --- ************************************************
  23237. ---
  23238. CREATE VIEW insulator_binding_site AS
  23239. SELECT
  23240. feature_id AS insulator_binding_site_id,
  23241. feature.*
  23242. FROM
  23243. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23244. WHERE cvterm.name = 'insulator_binding_site';
  23245. --- ************************************************
  23246. --- *** relation: enhancer_binding_site ***
  23247. --- *** relation type: VIEW ***
  23248. --- *** ***
  23249. --- *** A protein_binding_site located within an ***
  23250. --- *** enhancer. ***
  23251. --- ************************************************
  23252. ---
  23253. CREATE VIEW enhancer_binding_site AS
  23254. SELECT
  23255. feature_id AS enhancer_binding_site_id,
  23256. feature.*
  23257. FROM
  23258. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23259. WHERE cvterm.name = 'enhancer_binding_site';
  23260. --- ************************************************
  23261. --- *** relation: contig_collection ***
  23262. --- *** relation type: VIEW ***
  23263. --- *** ***
  23264. --- *** A collection of contigs. ***
  23265. --- ************************************************
  23266. ---
  23267. CREATE VIEW contig_collection AS
  23268. SELECT
  23269. feature_id AS contig_collection_id,
  23270. feature.*
  23271. FROM
  23272. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23273. WHERE cvterm.name = 'contig_collection';
  23274. --- ************************************************
  23275. --- *** relation: lincrna ***
  23276. --- *** relation type: VIEW ***
  23277. --- *** ***
  23278. --- *** A multiexonic non-coding RNA transcribed ***
  23279. --- *** by RNA polymerase II. ***
  23280. --- ************************************************
  23281. ---
  23282. CREATE VIEW lincrna AS
  23283. SELECT
  23284. feature_id AS lincrna_id,
  23285. feature.*
  23286. FROM
  23287. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23288. WHERE cvterm.name = 'lincRNA';
  23289. --- ************************************************
  23290. --- *** relation: ust ***
  23291. --- *** relation type: VIEW ***
  23292. --- *** ***
  23293. --- *** An EST spanning part or all of the untra ***
  23294. --- *** nslated regions of a protein-coding tran ***
  23295. --- *** script. ***
  23296. --- ************************************************
  23297. ---
  23298. CREATE VIEW ust AS
  23299. SELECT
  23300. feature_id AS ust_id,
  23301. feature.*
  23302. FROM
  23303. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23304. WHERE cvterm.name = 'three_prime_UST' OR cvterm.name = 'five_prime_UST' OR cvterm.name = 'UST';
  23305. --- ************************************************
  23306. --- *** relation: three_prime_ust ***
  23307. --- *** relation type: VIEW ***
  23308. --- *** ***
  23309. --- *** A UST located in the 3'UTR of a protein- ***
  23310. --- *** coding transcript. ***
  23311. --- ************************************************
  23312. ---
  23313. CREATE VIEW three_prime_ust AS
  23314. SELECT
  23315. feature_id AS three_prime_ust_id,
  23316. feature.*
  23317. FROM
  23318. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23319. WHERE cvterm.name = 'three_prime_UST';
  23320. --- ************************************************
  23321. --- *** relation: five_prime_ust ***
  23322. --- *** relation type: VIEW ***
  23323. --- *** ***
  23324. --- *** An UST located in the 5'UTR of a protein ***
  23325. --- *** -coding transcript. ***
  23326. --- ************************************************
  23327. ---
  23328. CREATE VIEW five_prime_ust AS
  23329. SELECT
  23330. feature_id AS five_prime_ust_id,
  23331. feature.*
  23332. FROM
  23333. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23334. WHERE cvterm.name = 'five_prime_UST';
  23335. --- ************************************************
  23336. --- *** relation: rst ***
  23337. --- *** relation type: VIEW ***
  23338. --- *** ***
  23339. --- *** A tag produced from a single sequencing ***
  23340. --- *** read from a RACE product; typically a fe ***
  23341. --- *** w hundred base pairs long. ***
  23342. --- ************************************************
  23343. ---
  23344. CREATE VIEW rst AS
  23345. SELECT
  23346. feature_id AS rst_id,
  23347. feature.*
  23348. FROM
  23349. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23350. WHERE cvterm.name = 'three_prime_RST' OR cvterm.name = 'five_prime_RST' OR cvterm.name = 'RST';
  23351. --- ************************************************
  23352. --- *** relation: three_prime_rst ***
  23353. --- *** relation type: VIEW ***
  23354. --- *** ***
  23355. --- *** A tag produced from a single sequencing ***
  23356. --- *** read from a 3'-RACE product; typically a ***
  23357. --- *** few hundred base pairs long. ***
  23358. --- ************************************************
  23359. ---
  23360. CREATE VIEW three_prime_rst AS
  23361. SELECT
  23362. feature_id AS three_prime_rst_id,
  23363. feature.*
  23364. FROM
  23365. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23366. WHERE cvterm.name = 'three_prime_RST';
  23367. --- ************************************************
  23368. --- *** relation: five_prime_rst ***
  23369. --- *** relation type: VIEW ***
  23370. --- *** ***
  23371. --- *** A tag produced from a single sequencing ***
  23372. --- *** read from a 5'-RACE product; typically a ***
  23373. --- *** few hundred base pairs long. ***
  23374. --- ************************************************
  23375. ---
  23376. CREATE VIEW five_prime_rst AS
  23377. SELECT
  23378. feature_id AS five_prime_rst_id,
  23379. feature.*
  23380. FROM
  23381. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23382. WHERE cvterm.name = 'five_prime_RST';
  23383. --- ************************************************
  23384. --- *** relation: ust_match ***
  23385. --- *** relation type: VIEW ***
  23386. --- *** ***
  23387. --- *** A match against an UST sequence. ***
  23388. --- ************************************************
  23389. ---
  23390. CREATE VIEW ust_match AS
  23391. SELECT
  23392. feature_id AS ust_match_id,
  23393. feature.*
  23394. FROM
  23395. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23396. WHERE cvterm.name = 'UST_match';
  23397. --- ************************************************
  23398. --- *** relation: rst_match ***
  23399. --- *** relation type: VIEW ***
  23400. --- *** ***
  23401. --- *** A match against an RST sequence. ***
  23402. --- ************************************************
  23403. ---
  23404. CREATE VIEW rst_match AS
  23405. SELECT
  23406. feature_id AS rst_match_id,
  23407. feature.*
  23408. FROM
  23409. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23410. WHERE cvterm.name = 'RST_match';
  23411. --- ************************************************
  23412. --- *** relation: primer_match ***
  23413. --- *** relation type: VIEW ***
  23414. --- *** ***
  23415. --- *** A nucleotide match to a primer sequence. ***
  23416. --- ************************************************
  23417. ---
  23418. CREATE VIEW primer_match AS
  23419. SELECT
  23420. feature_id AS primer_match_id,
  23421. feature.*
  23422. FROM
  23423. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23424. WHERE cvterm.name = 'primer_match';
  23425. --- ************************************************
  23426. --- *** relation: mirna_antiguide ***
  23427. --- *** relation type: VIEW ***
  23428. --- *** ***
  23429. --- *** A region of the pri miRNA that basepairs ***
  23430. --- *** with the guide to form the hairpin. ***
  23431. --- ************************************************
  23432. ---
  23433. CREATE VIEW mirna_antiguide AS
  23434. SELECT
  23435. feature_id AS mirna_antiguide_id,
  23436. feature.*
  23437. FROM
  23438. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23439. WHERE cvterm.name = 'miRNA_antiguide';
  23440. --- ************************************************
  23441. --- *** relation: trans_splice_junction ***
  23442. --- *** relation type: VIEW ***
  23443. --- *** ***
  23444. --- *** The boundary between the spliced leader ***
  23445. --- *** and the first exon of the mRNA. ***
  23446. --- ************************************************
  23447. ---
  23448. CREATE VIEW trans_splice_junction AS
  23449. SELECT
  23450. feature_id AS trans_splice_junction_id,
  23451. feature.*
  23452. FROM
  23453. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23454. WHERE cvterm.name = 'trans_splice_junction';
  23455. --- ************************************************
  23456. --- *** relation: outron ***
  23457. --- *** relation type: VIEW ***
  23458. --- *** ***
  23459. --- *** A region of a primary transcript, that i ***
  23460. --- *** s removed via trans splicing. ***
  23461. --- ************************************************
  23462. ---
  23463. CREATE VIEW outron AS
  23464. SELECT
  23465. feature_id AS outron_id,
  23466. feature.*
  23467. FROM
  23468. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23469. WHERE cvterm.name = 'outron';
  23470. --- ************************************************
  23471. --- *** relation: natural_plasmid ***
  23472. --- *** relation type: VIEW ***
  23473. --- *** ***
  23474. --- *** A plasmid that occurs naturally. ***
  23475. --- ************************************************
  23476. ---
  23477. CREATE VIEW natural_plasmid AS
  23478. SELECT
  23479. feature_id AS natural_plasmid_id,
  23480. feature.*
  23481. FROM
  23482. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23483. WHERE cvterm.name = 'natural_transposable_element' OR cvterm.name = 'natural_plasmid';
  23484. --- ************************************************
  23485. --- *** relation: gene_trap_construct ***
  23486. --- *** relation type: VIEW ***
  23487. --- *** ***
  23488. --- *** A gene trap construct is a type of engin ***
  23489. --- *** eered plasmid which is designed to integ ***
  23490. --- *** rate into a genome and produce a fusion ***
  23491. --- *** transcript between exons of the gene int ***
  23492. --- *** o which it inserts and a reporter elemen ***
  23493. --- *** t in the construct. Gene traps contain a ***
  23494. --- *** splice acceptor, do not contain promote ***
  23495. --- *** r elements for the reporter, and are mut ***
  23496. --- *** agenic. Gene traps may be bicistronic wi ***
  23497. --- *** th the second cassette containing a prom ***
  23498. --- *** oter driving an a selectable marker. ***
  23499. --- ************************************************
  23500. ---
  23501. CREATE VIEW gene_trap_construct AS
  23502. SELECT
  23503. feature_id AS gene_trap_construct_id,
  23504. feature.*
  23505. FROM
  23506. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23507. WHERE cvterm.name = 'gene_trap_construct';
  23508. --- ************************************************
  23509. --- *** relation: promoter_trap_construct ***
  23510. --- *** relation type: VIEW ***
  23511. --- *** ***
  23512. --- *** A promoter trap construct is a type of e ***
  23513. --- *** ngineered plasmid which is designed to i ***
  23514. --- *** ntegrate into a genome and express a rep ***
  23515. --- *** orter when inserted in close proximity t ***
  23516. --- *** o a promoter element. Promoter traps typ ***
  23517. --- *** ically do not contain promoter elements ***
  23518. --- *** and are mutagenic. ***
  23519. --- ************************************************
  23520. ---
  23521. CREATE VIEW promoter_trap_construct AS
  23522. SELECT
  23523. feature_id AS promoter_trap_construct_id,
  23524. feature.*
  23525. FROM
  23526. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23527. WHERE cvterm.name = 'promoter_trap_construct';
  23528. --- ************************************************
  23529. --- *** relation: enhancer_trap_construct ***
  23530. --- *** relation type: VIEW ***
  23531. --- *** ***
  23532. --- *** An enhancer trap construct is a type of ***
  23533. --- *** engineered plasmid which is designed to ***
  23534. --- *** integrate into a genome and express a re ***
  23535. --- *** porter when the expression from a basic ***
  23536. --- *** minimal promoter is enhanced by genomic ***
  23537. --- *** enhancer elements. Enhancer traps contai ***
  23538. --- *** n promoter elements and are not usually ***
  23539. --- *** mutagenic. ***
  23540. --- ************************************************
  23541. ---
  23542. CREATE VIEW enhancer_trap_construct AS
  23543. SELECT
  23544. feature_id AS enhancer_trap_construct_id,
  23545. feature.*
  23546. FROM
  23547. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23548. WHERE cvterm.name = 'enhancer_trap_construct';
  23549. --- ************************************************
  23550. --- *** relation: pac_end ***
  23551. --- *** relation type: VIEW ***
  23552. --- *** ***
  23553. --- *** A region of sequence from the end of a P ***
  23554. --- *** AC clone that may provide anhighly speci ***
  23555. --- *** fic marker. ***
  23556. --- ************************************************
  23557. ---
  23558. CREATE VIEW pac_end AS
  23559. SELECT
  23560. feature_id AS pac_end_id,
  23561. feature.*
  23562. FROM
  23563. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23564. WHERE cvterm.name = 'PAC_end';
  23565. --- ************************************************
  23566. --- *** relation: rapd ***
  23567. --- *** relation type: VIEW ***
  23568. --- *** ***
  23569. --- *** RAPD is a 'PCR product' where a sequence ***
  23570. --- *** variant is identified through the use o ***
  23571. --- *** f PCR with random primers. ***
  23572. --- ************************************************
  23573. ---
  23574. CREATE VIEW rapd AS
  23575. SELECT
  23576. feature_id AS rapd_id,
  23577. feature.*
  23578. FROM
  23579. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23580. WHERE cvterm.name = 'RAPD';
  23581. --- ************************************************
  23582. --- *** relation: shadow_enhancer ***
  23583. --- *** relation type: VIEW ***
  23584. --- *** ***
  23585. --- ************************************************
  23586. ---
  23587. CREATE VIEW shadow_enhancer AS
  23588. SELECT
  23589. feature_id AS shadow_enhancer_id,
  23590. feature.*
  23591. FROM
  23592. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23593. WHERE cvterm.name = 'shadow_enhancer';
  23594. --- ************************************************
  23595. --- *** relation: regulatory_region ***
  23596. --- *** relation type: VIEW ***
  23597. --- *** ***
  23598. --- *** A DNA sequence that controls the express ***
  23599. --- *** ion of a gene. ***
  23600. --- ************************************************
  23601. ---
  23602. CREATE VIEW regulatory_region AS
  23603. SELECT
  23604. feature_id AS regulatory_region_id,
  23605. feature.*
  23606. FROM
  23607. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23608. 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';
  23609. --- ************************************************
  23610. --- *** relation: u14_snorna_primary_transcript ***
  23611. --- *** relation type: VIEW ***
  23612. --- *** ***
  23613. --- *** The primary transcript of an evolutionar ***
  23614. --- *** ily conserved eukaryotic low molecular w ***
  23615. --- *** eight RNA capable of intermolecular hybr ***
  23616. --- *** idization with both homologous and heter ***
  23617. --- *** ologous 18S rRNA. ***
  23618. --- ************************************************
  23619. ---
  23620. CREATE VIEW u14_snorna_primary_transcript AS
  23621. SELECT
  23622. feature_id AS u14_snorna_primary_transcript_id,
  23623. feature.*
  23624. FROM
  23625. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23626. WHERE cvterm.name = 'U14_snoRNA_primary_transcript';
  23627. --- ************************************************
  23628. --- *** relation: methylation_guide_snorna ***
  23629. --- *** relation type: VIEW ***
  23630. --- *** ***
  23631. --- *** A snoRNA that specifies the site of 2'-O ***
  23632. --- *** -ribose methylation in an RNA molecule b ***
  23633. --- *** y base pairing with a short sequence aro ***
  23634. --- *** und the target residue. ***
  23635. --- ************************************************
  23636. ---
  23637. CREATE VIEW methylation_guide_snorna AS
  23638. SELECT
  23639. feature_id AS methylation_guide_snorna_id,
  23640. feature.*
  23641. FROM
  23642. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23643. WHERE cvterm.name = 'methylation_guide_snoRNA';
  23644. --- ************************************************
  23645. --- *** relation: rrna_cleavage_rna ***
  23646. --- *** relation type: VIEW ***
  23647. --- *** ***
  23648. --- *** An ncRNA that is part of a ribonucleopro ***
  23649. --- *** tein that cleaves the primary pre-rRNA t ***
  23650. --- *** ranscript in the process of producing ma ***
  23651. --- *** ture rRNA molecules. ***
  23652. --- ************************************************
  23653. ---
  23654. CREATE VIEW rrna_cleavage_rna AS
  23655. SELECT
  23656. feature_id AS rrna_cleavage_rna_id,
  23657. feature.*
  23658. FROM
  23659. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23660. WHERE cvterm.name = 'rRNA_cleavage_RNA';
  23661. --- ************************************************
  23662. --- *** relation: exon_of_single_exon_gene ***
  23663. --- *** relation type: VIEW ***
  23664. --- *** ***
  23665. --- *** An exon that is the only exon in a gene. ***
  23666. --- ************************************************
  23667. ---
  23668. CREATE VIEW exon_of_single_exon_gene AS
  23669. SELECT
  23670. feature_id AS exon_of_single_exon_gene_id,
  23671. feature.*
  23672. FROM
  23673. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23674. WHERE cvterm.name = 'exon_of_single_exon_gene';
  23675. --- ************************************************
  23676. --- *** relation: cassette_array_member ***
  23677. --- *** relation type: VIEW ***
  23678. --- *** ***
  23679. --- ************************************************
  23680. ---
  23681. CREATE VIEW cassette_array_member AS
  23682. SELECT
  23683. feature_id AS cassette_array_member_id,
  23684. feature.*
  23685. FROM
  23686. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23687. WHERE cvterm.name = 'cassette_array_member';
  23688. --- ************************************************
  23689. --- *** relation: gene_cassette_member ***
  23690. --- *** relation type: VIEW ***
  23691. --- *** ***
  23692. --- ************************************************
  23693. ---
  23694. CREATE VIEW gene_cassette_member AS
  23695. SELECT
  23696. feature_id AS gene_cassette_member_id,
  23697. feature.*
  23698. FROM
  23699. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23700. WHERE cvterm.name = 'cassette_array_member' OR cvterm.name = 'gene_cassette_member';
  23701. --- ************************************************
  23702. --- *** relation: gene_subarray_member ***
  23703. --- *** relation type: VIEW ***
  23704. --- *** ***
  23705. --- ************************************************
  23706. ---
  23707. CREATE VIEW gene_subarray_member AS
  23708. SELECT
  23709. feature_id AS gene_subarray_member_id,
  23710. feature.*
  23711. FROM
  23712. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23713. WHERE cvterm.name = 'gene_subarray_member';
  23714. --- ************************************************
  23715. --- *** relation: primer_binding_site ***
  23716. --- *** relation type: VIEW ***
  23717. --- *** ***
  23718. --- *** Non-covalent primer binding site for ini ***
  23719. --- *** tiation of replication, transcription, o ***
  23720. --- *** r reverse transcription. ***
  23721. --- ************************************************
  23722. ---
  23723. CREATE VIEW primer_binding_site AS
  23724. SELECT
  23725. feature_id AS primer_binding_site_id,
  23726. feature.*
  23727. FROM
  23728. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23729. WHERE cvterm.name = 'primer_binding_site';
  23730. --- ************************************************
  23731. --- *** relation: gene_array ***
  23732. --- *** relation type: VIEW ***
  23733. --- *** ***
  23734. --- *** An array includes two or more genes, or ***
  23735. --- *** two or more gene subarrays, contiguously ***
  23736. --- *** arranged where the individual genes, or ***
  23737. --- *** subarrays, are either identical in sequ ***
  23738. --- *** ence, or essentially so. ***
  23739. --- ************************************************
  23740. ---
  23741. CREATE VIEW gene_array AS
  23742. SELECT
  23743. feature_id AS gene_array_id,
  23744. feature.*
  23745. FROM
  23746. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23747. WHERE cvterm.name = 'gene_array';
  23748. --- ************************************************
  23749. --- *** relation: gene_subarray ***
  23750. --- *** relation type: VIEW ***
  23751. --- *** ***
  23752. --- *** A subarray is, by defintition, a member ***
  23753. --- *** of a gene array (SO:0005851); the member ***
  23754. --- *** s of a subarray may differ substantially ***
  23755. --- *** in sequence, but are closely related in ***
  23756. --- *** function. ***
  23757. --- ************************************************
  23758. ---
  23759. CREATE VIEW gene_subarray AS
  23760. SELECT
  23761. feature_id AS gene_subarray_id,
  23762. feature.*
  23763. FROM
  23764. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23765. WHERE cvterm.name = 'gene_subarray';
  23766. --- ************************************************
  23767. --- *** relation: gene_cassette ***
  23768. --- *** relation type: VIEW ***
  23769. --- *** ***
  23770. --- *** A gene that can be substituted for a rel ***
  23771. --- *** ated gene at a different site in the gen ***
  23772. --- *** ome. ***
  23773. --- ************************************************
  23774. ---
  23775. CREATE VIEW gene_cassette AS
  23776. SELECT
  23777. feature_id AS gene_cassette_id,
  23778. feature.*
  23779. FROM
  23780. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23781. WHERE cvterm.name = 'gene_cassette';
  23782. --- ************************************************
  23783. --- *** relation: gene_cassette_array ***
  23784. --- *** relation type: VIEW ***
  23785. --- *** ***
  23786. --- *** An array of non-functional genes whose m ***
  23787. --- *** embers, when captured by recombination f ***
  23788. --- *** orm functional genes. ***
  23789. --- ************************************************
  23790. ---
  23791. CREATE VIEW gene_cassette_array AS
  23792. SELECT
  23793. feature_id AS gene_cassette_array_id,
  23794. feature.*
  23795. FROM
  23796. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23797. WHERE cvterm.name = 'gene_cassette_array';
  23798. --- ************************************************
  23799. --- *** relation: gene_group ***
  23800. --- *** relation type: VIEW ***
  23801. --- *** ***
  23802. --- *** A collection of related genes. ***
  23803. --- ************************************************
  23804. ---
  23805. CREATE VIEW gene_group AS
  23806. SELECT
  23807. feature_id AS gene_group_id,
  23808. feature.*
  23809. FROM
  23810. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23811. 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';
  23812. --- ************************************************
  23813. --- *** relation: selenocysteine_trna_primary_transcript ***
  23814. --- *** relation type: VIEW ***
  23815. --- *** ***
  23816. --- *** A primary transcript encoding seryl tRNA ***
  23817. --- *** (SO:000269). ***
  23818. --- ************************************************
  23819. ---
  23820. CREATE VIEW selenocysteine_trna_primary_transcript AS
  23821. SELECT
  23822. feature_id AS selenocysteine_trna_primary_transcript_id,
  23823. feature.*
  23824. FROM
  23825. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23826. WHERE cvterm.name = 'selenocysteine_tRNA_primary_transcript';
  23827. --- ************************************************
  23828. --- *** relation: selenocysteinyl_trna ***
  23829. --- *** relation type: VIEW ***
  23830. --- *** ***
  23831. --- *** A tRNA sequence that has a selenocystein ***
  23832. --- *** e anticodon, and a 3' selenocysteine bin ***
  23833. --- *** ding region. ***
  23834. --- ************************************************
  23835. ---
  23836. CREATE VIEW selenocysteinyl_trna AS
  23837. SELECT
  23838. feature_id AS selenocysteinyl_trna_id,
  23839. feature.*
  23840. FROM
  23841. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23842. WHERE cvterm.name = 'selenocysteinyl_tRNA';
  23843. --- ************************************************
  23844. --- *** relation: syntenic_region ***
  23845. --- *** relation type: VIEW ***
  23846. --- *** ***
  23847. --- *** A region in which two or more pairs of h ***
  23848. --- *** omologous markers occur on the same chro ***
  23849. --- *** mosome in two or more species. ***
  23850. --- ************************************************
  23851. ---
  23852. CREATE VIEW syntenic_region AS
  23853. SELECT
  23854. feature_id AS syntenic_region_id,
  23855. feature.*
  23856. FROM
  23857. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23858. WHERE cvterm.name = 'syntenic_region';
  23859. --- ************************************************
  23860. --- *** relation: biochemical_region_of_peptide ***
  23861. --- *** relation type: VIEW ***
  23862. --- *** ***
  23863. --- *** A region of a peptide that is involved i ***
  23864. --- *** n a biochemical function. ***
  23865. --- ************************************************
  23866. ---
  23867. CREATE VIEW biochemical_region_of_peptide AS
  23868. SELECT
  23869. feature_id AS biochemical_region_of_peptide_id,
  23870. feature.*
  23871. FROM
  23872. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23873. 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';
  23874. --- ************************************************
  23875. --- *** relation: molecular_contact_region ***
  23876. --- *** relation type: VIEW ***
  23877. --- *** ***
  23878. --- *** A region that is involved a contact with ***
  23879. --- *** another molecule. ***
  23880. --- ************************************************
  23881. ---
  23882. CREATE VIEW molecular_contact_region AS
  23883. SELECT
  23884. feature_id AS molecular_contact_region_id,
  23885. feature.*
  23886. FROM
  23887. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23888. 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';
  23889. --- ************************************************
  23890. --- *** relation: intrinsically_unstructured_polypeptide_region ***
  23891. --- *** relation type: VIEW ***
  23892. --- *** ***
  23893. --- *** A region of polypeptide chain with high ***
  23894. --- *** conformational flexibility. ***
  23895. --- ************************************************
  23896. ---
  23897. CREATE VIEW intrinsically_unstructured_polypeptide_region AS
  23898. SELECT
  23899. feature_id AS intrinsically_unstructured_polypeptide_region_id,
  23900. feature.*
  23901. FROM
  23902. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23903. WHERE cvterm.name = 'intrinsically_unstructured_polypeptide_region';
  23904. --- ************************************************
  23905. --- *** relation: catmat_left_handed_three ***
  23906. --- *** relation type: VIEW ***
  23907. --- *** ***
  23908. --- *** A motif of 3 consecutive residues with d ***
  23909. --- *** ihedral angles as follows: res i: phi -9 ***
  23910. --- *** 0 bounds -120 to -60, res i: psi -10 bou ***
  23911. --- *** nds -50 to 30, res i+1: phi -75 bounds - ***
  23912. --- *** 100 to -50, res i+1: psi 140 bounds 110 ***
  23913. --- *** to 170. An extra restriction of the leng ***
  23914. --- *** th of the O to O distance would be usefu ***
  23915. --- *** l, that it be less than 5 Angstrom. More ***
  23916. --- *** precisely these two oxygens are the mai ***
  23917. --- *** n chain carbonyl oxygen atoms of residue ***
  23918. --- *** s i-1 and i+1. ***
  23919. --- ************************************************
  23920. ---
  23921. CREATE VIEW catmat_left_handed_three AS
  23922. SELECT
  23923. feature_id AS catmat_left_handed_three_id,
  23924. feature.*
  23925. FROM
  23926. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23927. WHERE cvterm.name = 'catmat_left_handed_three';
  23928. --- ************************************************
  23929. --- *** relation: catmat_left_handed_four ***
  23930. --- *** relation type: VIEW ***
  23931. --- *** ***
  23932. --- *** A motif of 4 consecutive residues with d ***
  23933. --- *** ihedral angles as follows: res i: phi -9 ***
  23934. --- *** 0 bounds -120 to -60, res i psi -10 boun ***
  23935. --- *** ds -50 to 30, res i+1: phi -90 bounds -1 ***
  23936. --- *** 20 to -60, res i+1: psi -10 bounds -50 t ***
  23937. --- *** o 30, res i+2: phi -75 bounds -100 to -5 ***
  23938. --- *** 0, res i+2: psi 140 bounds 110 to 170. ***
  23939. --- *** The extra restriction of the length of t ***
  23940. --- *** he O to O distance is similar, that it b ***
  23941. --- *** e less than 5 Angstrom. In this case the ***
  23942. --- *** se two Oxygen atoms are the main chain c ***
  23943. --- *** arbonyl oxygen atoms of residues i-1 and ***
  23944. --- *** i+2. ***
  23945. --- ************************************************
  23946. ---
  23947. CREATE VIEW catmat_left_handed_four AS
  23948. SELECT
  23949. feature_id AS catmat_left_handed_four_id,
  23950. feature.*
  23951. FROM
  23952. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23953. WHERE cvterm.name = 'catmat_left_handed_four';
  23954. --- ************************************************
  23955. --- *** relation: catmat_right_handed_three ***
  23956. --- *** relation type: VIEW ***
  23957. --- *** ***
  23958. --- *** A motif of 3 consecutive residues with d ***
  23959. --- *** ihedral angles as follows: res i: phi -9 ***
  23960. --- *** 0 bounds -120 to -60, res i: psi -10 bou ***
  23961. --- *** nds -50 to 30, res i+1: phi -75 bounds - ***
  23962. --- *** 100 to -50, res i+1: psi 140 bounds 110 ***
  23963. --- *** to 170. An extra restriction of the leng ***
  23964. --- *** th of the O to O distance would be usefu ***
  23965. --- *** l, that it be less than 5 Angstrom. More ***
  23966. --- *** precisely these two oxygens are the mai ***
  23967. --- *** n chain carbonyl oxygen atoms of residue ***
  23968. --- *** s i-1 and i+1. ***
  23969. --- ************************************************
  23970. ---
  23971. CREATE VIEW catmat_right_handed_three AS
  23972. SELECT
  23973. feature_id AS catmat_right_handed_three_id,
  23974. feature.*
  23975. FROM
  23976. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23977. WHERE cvterm.name = 'catmat_right_handed_three';
  23978. --- ************************************************
  23979. --- *** relation: catmat_right_handed_four ***
  23980. --- *** relation type: VIEW ***
  23981. --- *** ***
  23982. --- *** A motif of 4 consecutive residues with d ***
  23983. --- *** ihedral angles as follows: res i: phi -9 ***
  23984. --- *** 0 bounds -120 to -60, res i: psi -10 bou ***
  23985. --- *** nds -50 to 30, res i+1: phi -90 bounds - ***
  23986. --- *** 120 to -60, res i+1: psi -10 bounds -50 ***
  23987. --- *** to 30, res i+2: phi -75 bounds -100 to - ***
  23988. --- *** 50, res i+2: psi 140 bounds 110 to 170. ***
  23989. --- *** The extra restriction of the length of t ***
  23990. --- *** he O to O distance is similar, that it b ***
  23991. --- *** e less than 5 Angstrom. In this case the ***
  23992. --- *** se two Oxygen atoms are the main chain c ***
  23993. --- *** arbonyl oxygen atoms of residues i-1 and ***
  23994. --- *** i+2. ***
  23995. --- ************************************************
  23996. ---
  23997. CREATE VIEW catmat_right_handed_four AS
  23998. SELECT
  23999. feature_id AS catmat_right_handed_four_id,
  24000. feature.*
  24001. FROM
  24002. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24003. WHERE cvterm.name = 'catmat_right_handed_four';
  24004. --- ************************************************
  24005. --- *** relation: alpha_beta_motif ***
  24006. --- *** relation type: VIEW ***
  24007. --- *** ***
  24008. --- *** A motif of five consecutive residues and ***
  24009. --- *** two H-bonds in which: H-bond between CO ***
  24010. --- *** of residue(i) and NH of residue(i+4), H ***
  24011. --- *** -bond between CO of residue(i) and NH of ***
  24012. --- *** residue(i+3),Phi angles of residues(i+1 ***
  24013. --- *** ), (i+2) and (i+3) are negative. ***
  24014. --- ************************************************
  24015. ---
  24016. CREATE VIEW alpha_beta_motif AS
  24017. SELECT
  24018. feature_id AS alpha_beta_motif_id,
  24019. feature.*
  24020. FROM
  24021. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24022. WHERE cvterm.name = 'alpha_beta_motif';
  24023. --- ************************************************
  24024. --- *** relation: lipoprotein_signal_peptide ***
  24025. --- *** relation type: VIEW ***
  24026. --- *** ***
  24027. --- *** A peptide that acts as a signal for both ***
  24028. --- *** membrane translocation and lipid attach ***
  24029. --- *** ment in prokaryotes. ***
  24030. --- ************************************************
  24031. ---
  24032. CREATE VIEW lipoprotein_signal_peptide AS
  24033. SELECT
  24034. feature_id AS lipoprotein_signal_peptide_id,
  24035. feature.*
  24036. FROM
  24037. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24038. WHERE cvterm.name = 'lipoprotein_signal_peptide';
  24039. --- ************************************************
  24040. --- *** relation: no_output ***
  24041. --- *** relation type: VIEW ***
  24042. --- *** ***
  24043. --- *** An experimental region wherean analysis ***
  24044. --- *** has been run and not produced any annota ***
  24045. --- *** tion. ***
  24046. --- ************************************************
  24047. ---
  24048. CREATE VIEW no_output AS
  24049. SELECT
  24050. feature_id AS no_output_id,
  24051. feature.*
  24052. FROM
  24053. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24054. WHERE cvterm.name = 'no_output';
  24055. --- ************************************************
  24056. --- *** relation: cleaved_peptide_region ***
  24057. --- *** relation type: VIEW ***
  24058. --- *** ***
  24059. --- *** The cleaved_peptide_regon is the a regio ***
  24060. --- *** n of peptide sequence that is cleaved du ***
  24061. --- *** ring maturation. ***
  24062. --- ************************************************
  24063. ---
  24064. CREATE VIEW cleaved_peptide_region AS
  24065. SELECT
  24066. feature_id AS cleaved_peptide_region_id,
  24067. feature.*
  24068. FROM
  24069. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24070. 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';
  24071. --- ************************************************
  24072. --- *** relation: peptide_coil ***
  24073. --- *** relation type: VIEW ***
  24074. --- *** ***
  24075. --- *** Irregular, unstructured regions of a pro ***
  24076. --- *** tein's backbone, as distinct from the re ***
  24077. --- *** gular region (namely alpha helix and bet ***
  24078. --- *** a strand - characterised by specific pat ***
  24079. --- *** terns of main-chain hydrogen bonds). ***
  24080. --- ************************************************
  24081. ---
  24082. CREATE VIEW peptide_coil AS
  24083. SELECT
  24084. feature_id AS peptide_coil_id,
  24085. feature.*
  24086. FROM
  24087. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24088. WHERE cvterm.name = 'peptide_coil';
  24089. --- ************************************************
  24090. --- *** relation: hydrophobic_region_of_peptide ***
  24091. --- *** relation type: VIEW ***
  24092. --- *** ***
  24093. --- *** Hydrophobic regions are regions with a l ***
  24094. --- *** ow affinity for water. ***
  24095. --- ************************************************
  24096. ---
  24097. CREATE VIEW hydrophobic_region_of_peptide AS
  24098. SELECT
  24099. feature_id AS hydrophobic_region_of_peptide_id,
  24100. feature.*
  24101. FROM
  24102. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24103. WHERE cvterm.name = 'hydrophobic_region_of_peptide';
  24104. --- ************************************************
  24105. --- *** relation: n_terminal_region ***
  24106. --- *** relation type: VIEW ***
  24107. --- *** ***
  24108. --- *** The amino-terminal positively-charged re ***
  24109. --- *** gion of a signal peptide (approx 1-5 aa) ***
  24110. --- *** . ***
  24111. --- ************************************************
  24112. ---
  24113. CREATE VIEW n_terminal_region AS
  24114. SELECT
  24115. feature_id AS n_terminal_region_id,
  24116. feature.*
  24117. FROM
  24118. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24119. WHERE cvterm.name = 'n_terminal_region';
  24120. --- ************************************************
  24121. --- *** relation: c_terminal_region ***
  24122. --- *** relation type: VIEW ***
  24123. --- *** ***
  24124. --- *** The more polar, carboxy-terminal region ***
  24125. --- *** of the signal peptide (approx 3-7 aa). ***
  24126. --- ************************************************
  24127. ---
  24128. CREATE VIEW c_terminal_region AS
  24129. SELECT
  24130. feature_id AS c_terminal_region_id,
  24131. feature.*
  24132. FROM
  24133. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24134. WHERE cvterm.name = 'c_terminal_region';
  24135. --- ************************************************
  24136. --- *** relation: central_hydrophobic_region_of_signal_peptide ***
  24137. --- *** relation type: VIEW ***
  24138. --- *** ***
  24139. --- *** The central, hydrophobic region of the s ***
  24140. --- *** ignal peptide (approx 7-15 aa). ***
  24141. --- ************************************************
  24142. ---
  24143. CREATE VIEW central_hydrophobic_region_of_signal_peptide AS
  24144. SELECT
  24145. feature_id AS central_hydrophobic_region_of_signal_peptide_id,
  24146. feature.*
  24147. FROM
  24148. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24149. WHERE cvterm.name = 'central_hydrophobic_region_of_signal_peptide';
  24150. --- ************************************************
  24151. --- *** relation: polypeptide_conserved_motif ***
  24152. --- *** relation type: VIEW ***
  24153. --- *** ***
  24154. --- *** A conserved motif is a short (up to 20 a ***
  24155. --- *** mino acids) region of biological interes ***
  24156. --- *** t that is conserved in different protein ***
  24157. --- *** s. They may or may not have functional o ***
  24158. --- *** r structural significance within the pro ***
  24159. --- *** teins in which they are found. ***
  24160. --- ************************************************
  24161. ---
  24162. CREATE VIEW polypeptide_conserved_motif AS
  24163. SELECT
  24164. feature_id AS polypeptide_conserved_motif_id,
  24165. feature.*
  24166. FROM
  24167. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24168. WHERE cvterm.name = 'polypeptide_conserved_motif';
  24169. --- ************************************************
  24170. --- *** relation: polypeptide_binding_motif ***
  24171. --- *** relation type: VIEW ***
  24172. --- *** ***
  24173. --- *** A polypeptide binding motif is a short ( ***
  24174. --- *** up to 20 amino acids) polypeptide region ***
  24175. --- *** of biological interest that contains on ***
  24176. --- *** e or more amino acids experimentally sho ***
  24177. --- *** wn to bind to a ligand. ***
  24178. --- ************************************************
  24179. ---
  24180. CREATE VIEW polypeptide_binding_motif AS
  24181. SELECT
  24182. feature_id AS polypeptide_binding_motif_id,
  24183. feature.*
  24184. FROM
  24185. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24186. WHERE cvterm.name = 'polypeptide_binding_motif';
  24187. --- ************************************************
  24188. --- *** relation: polypeptide_catalytic_motif ***
  24189. --- *** relation type: VIEW ***
  24190. --- *** ***
  24191. --- *** A polypeptide catalytic motif is a short ***
  24192. --- *** (up to 20 amino acids) polypeptide regi ***
  24193. --- *** on that contains one or more active site ***
  24194. --- *** residues. ***
  24195. --- ************************************************
  24196. ---
  24197. CREATE VIEW polypeptide_catalytic_motif AS
  24198. SELECT
  24199. feature_id AS polypeptide_catalytic_motif_id,
  24200. feature.*
  24201. FROM
  24202. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24203. WHERE cvterm.name = 'polypeptide_catalytic_motif';
  24204. --- ************************************************
  24205. --- *** relation: polypeptide_dna_contact ***
  24206. --- *** relation type: VIEW ***
  24207. --- *** ***
  24208. --- *** Residues involved in interactions with D ***
  24209. --- *** NA. ***
  24210. --- ************************************************
  24211. ---
  24212. CREATE VIEW polypeptide_dna_contact AS
  24213. SELECT
  24214. feature_id AS polypeptide_dna_contact_id,
  24215. feature.*
  24216. FROM
  24217. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24218. WHERE cvterm.name = 'polypeptide_DNA_contact';
  24219. --- ************************************************
  24220. --- *** relation: polypeptide_conserved_region ***
  24221. --- *** relation type: VIEW ***
  24222. --- *** ***
  24223. --- *** A subsection of sequence with biological ***
  24224. --- *** interest that is conserved in different ***
  24225. --- *** proteins. They may or may not have func ***
  24226. --- *** tional or structural significance within ***
  24227. --- *** the proteins in which they are found. ***
  24228. --- ************************************************
  24229. ---
  24230. CREATE VIEW polypeptide_conserved_region AS
  24231. SELECT
  24232. feature_id AS polypeptide_conserved_region_id,
  24233. feature.*
  24234. FROM
  24235. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24236. 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';
  24237. --- ************************************************
  24238. --- *** relation: substitution ***
  24239. --- *** relation type: VIEW ***
  24240. --- *** ***
  24241. --- *** Any change in genomic DNA caused by a si ***
  24242. --- *** ngle event. ***
  24243. --- ************************************************
  24244. ---
  24245. CREATE VIEW substitution AS
  24246. SELECT
  24247. feature_id AS substitution_id,
  24248. feature.*
  24249. FROM
  24250. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24251. 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';
  24252. --- ************************************************
  24253. --- *** relation: partially_characterised_change_in_dna_sequence ***
  24254. --- *** relation type: VIEW ***
  24255. --- *** ***
  24256. --- *** The nature of the mutation event is only ***
  24257. --- *** partially characterised. ***
  24258. --- ************************************************
  24259. ---
  24260. CREATE VIEW partially_characterised_change_in_dna_sequence AS
  24261. SELECT
  24262. feature_id AS partially_characterised_change_in_dna_sequence_id,
  24263. feature.*
  24264. FROM
  24265. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24266. WHERE cvterm.name = 'partially_characterised_change_in_DNA_sequence';
  24267. --- ************************************************
  24268. --- *** relation: complex_substitution ***
  24269. --- *** relation type: VIEW ***
  24270. --- *** ***
  24271. --- *** When no simple or well defined DNA mutat ***
  24272. --- *** ion event describes the observed DNA cha ***
  24273. --- *** nge, the keyword "complex" should be use ***
  24274. --- *** d. Usually there are multiple equally pl ***
  24275. --- *** ausible explanations for the change. ***
  24276. --- ************************************************
  24277. ---
  24278. CREATE VIEW complex_substitution AS
  24279. SELECT
  24280. feature_id AS complex_substitution_id,
  24281. feature.*
  24282. FROM
  24283. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24284. WHERE cvterm.name = 'MNP' OR cvterm.name = 'complex_substitution';
  24285. --- ************************************************
  24286. --- *** relation: uncharacterised_change_in_nucleotide_sequence ***
  24287. --- *** relation type: VIEW ***
  24288. --- *** ***
  24289. --- *** The nature of the mutation event is eith ***
  24290. --- *** er uncharacterised or only partially cha ***
  24291. --- *** racterised. ***
  24292. --- ************************************************
  24293. ---
  24294. CREATE VIEW uncharacterised_change_in_nucleotide_sequence AS
  24295. SELECT
  24296. feature_id AS uncharacterised_change_in_nucleotide_sequence_id,
  24297. feature.*
  24298. FROM
  24299. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24300. WHERE cvterm.name = 'partially_characterised_change_in_DNA_sequence' OR cvterm.name = 'uncharacterised_change_in_nucleotide_sequence';
  24301. --- ************************************************
  24302. --- *** relation: point_mutation ***
  24303. --- *** relation type: VIEW ***
  24304. --- *** ***
  24305. --- *** A single nucleotide change which has occ ***
  24306. --- *** urred at the same position of a correspo ***
  24307. --- *** nding nucleotide in a reference sequence ***
  24308. --- *** . ***
  24309. --- ************************************************
  24310. ---
  24311. CREATE VIEW point_mutation AS
  24312. SELECT
  24313. feature_id AS point_mutation_id,
  24314. feature.*
  24315. FROM
  24316. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24317. 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';
  24318. --- ************************************************
  24319. --- *** relation: transition ***
  24320. --- *** relation type: VIEW ***
  24321. --- *** ***
  24322. --- *** Change of a pyrimidine nucleotide, C or ***
  24323. --- *** T, into an other pyrimidine nucleotide, ***
  24324. --- *** or change of a purine nucleotide, A or G ***
  24325. --- *** , into an other purine nucleotide. ***
  24326. --- ************************************************
  24327. ---
  24328. CREATE VIEW transition AS
  24329. SELECT
  24330. feature_id AS transition_id,
  24331. feature.*
  24332. FROM
  24333. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24334. 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';
  24335. --- ************************************************
  24336. --- *** relation: pyrimidine_transition ***
  24337. --- *** relation type: VIEW ***
  24338. --- *** ***
  24339. --- *** A substitution of a pyrimidine, C or T, ***
  24340. --- *** for another pyrimidine. ***
  24341. --- ************************************************
  24342. ---
  24343. CREATE VIEW pyrimidine_transition AS
  24344. SELECT
  24345. feature_id AS pyrimidine_transition_id,
  24346. feature.*
  24347. FROM
  24348. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24349. 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';
  24350. --- ************************************************
  24351. --- *** relation: c_to_t_transition ***
  24352. --- *** relation type: VIEW ***
  24353. --- *** ***
  24354. --- *** A transition of a cytidine to a thymine. ***
  24355. --- ************************************************
  24356. ---
  24357. CREATE VIEW c_to_t_transition AS
  24358. SELECT
  24359. feature_id AS c_to_t_transition_id,
  24360. feature.*
  24361. FROM
  24362. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24363. WHERE cvterm.name = 'C_to_T_transition_at_pCpG_site' OR cvterm.name = 'C_to_T_transition';
  24364. --- ************************************************
  24365. --- *** relation: c_to_t_transition_at_pcpg_site ***
  24366. --- *** relation type: VIEW ***
  24367. --- *** ***
  24368. --- *** The transition of cytidine to thymine oc ***
  24369. --- *** curring at a pCpG site as a consequence ***
  24370. --- *** of the spontaneous deamination of 5'-met ***
  24371. --- *** hylcytidine. ***
  24372. --- ************************************************
  24373. ---
  24374. CREATE VIEW c_to_t_transition_at_pcpg_site AS
  24375. SELECT
  24376. feature_id AS c_to_t_transition_at_pcpg_site_id,
  24377. feature.*
  24378. FROM
  24379. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24380. WHERE cvterm.name = 'C_to_T_transition_at_pCpG_site';
  24381. --- ************************************************
  24382. --- *** relation: t_to_c_transition ***
  24383. --- *** relation type: VIEW ***
  24384. --- *** ***
  24385. --- ************************************************
  24386. ---
  24387. CREATE VIEW t_to_c_transition AS
  24388. SELECT
  24389. feature_id AS t_to_c_transition_id,
  24390. feature.*
  24391. FROM
  24392. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24393. WHERE cvterm.name = 'T_to_C_transition';
  24394. --- ************************************************
  24395. --- *** relation: purine_transition ***
  24396. --- *** relation type: VIEW ***
  24397. --- *** ***
  24398. --- *** A substitution of a purine, A or G, for ***
  24399. --- *** another purine. ***
  24400. --- ************************************************
  24401. ---
  24402. CREATE VIEW purine_transition AS
  24403. SELECT
  24404. feature_id AS purine_transition_id,
  24405. feature.*
  24406. FROM
  24407. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24408. WHERE cvterm.name = 'A_to_G_transition' OR cvterm.name = 'G_to_A_transition' OR cvterm.name = 'purine_transition';
  24409. --- ************************************************
  24410. --- *** relation: a_to_g_transition ***
  24411. --- *** relation type: VIEW ***
  24412. --- *** ***
  24413. --- *** A transition of an adenine to a guanine. ***
  24414. --- ************************************************
  24415. ---
  24416. CREATE VIEW a_to_g_transition AS
  24417. SELECT
  24418. feature_id AS a_to_g_transition_id,
  24419. feature.*
  24420. FROM
  24421. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24422. WHERE cvterm.name = 'A_to_G_transition';
  24423. --- ************************************************
  24424. --- *** relation: g_to_a_transition ***
  24425. --- *** relation type: VIEW ***
  24426. --- *** ***
  24427. --- *** A transition of a guanine to an adenine. ***
  24428. --- ************************************************
  24429. ---
  24430. CREATE VIEW g_to_a_transition AS
  24431. SELECT
  24432. feature_id AS g_to_a_transition_id,
  24433. feature.*
  24434. FROM
  24435. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24436. WHERE cvterm.name = 'G_to_A_transition';
  24437. --- ************************************************
  24438. --- *** relation: transversion ***
  24439. --- *** relation type: VIEW ***
  24440. --- *** ***
  24441. --- *** Change of a pyrimidine nucleotide, C or ***
  24442. --- *** T, into a purine nucleotide, A or G, or ***
  24443. --- *** vice versa. ***
  24444. --- ************************************************
  24445. ---
  24446. CREATE VIEW transversion AS
  24447. SELECT
  24448. feature_id AS transversion_id,
  24449. feature.*
  24450. FROM
  24451. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24452. 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';
  24453. --- ************************************************
  24454. --- *** relation: pyrimidine_to_purine_transversion ***
  24455. --- *** relation type: VIEW ***
  24456. --- *** ***
  24457. --- *** Change of a pyrimidine nucleotide, C or ***
  24458. --- *** T, into a purine nucleotide, A or G. ***
  24459. --- ************************************************
  24460. ---
  24461. CREATE VIEW pyrimidine_to_purine_transversion AS
  24462. SELECT
  24463. feature_id AS pyrimidine_to_purine_transversion_id,
  24464. feature.*
  24465. FROM
  24466. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24467. 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';
  24468. --- ************************************************
  24469. --- *** relation: c_to_a_transversion ***
  24470. --- *** relation type: VIEW ***
  24471. --- *** ***
  24472. --- *** A transversion from cytidine to adenine. ***
  24473. --- ************************************************
  24474. ---
  24475. CREATE VIEW c_to_a_transversion AS
  24476. SELECT
  24477. feature_id AS c_to_a_transversion_id,
  24478. feature.*
  24479. FROM
  24480. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24481. WHERE cvterm.name = 'C_to_A_transversion';
  24482. --- ************************************************
  24483. --- *** relation: c_to_g_transversion ***
  24484. --- *** relation type: VIEW ***
  24485. --- *** ***
  24486. --- ************************************************
  24487. ---
  24488. CREATE VIEW c_to_g_transversion AS
  24489. SELECT
  24490. feature_id AS c_to_g_transversion_id,
  24491. feature.*
  24492. FROM
  24493. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24494. WHERE cvterm.name = 'C_to_G_transversion';
  24495. --- ************************************************
  24496. --- *** relation: t_to_a_transversion ***
  24497. --- *** relation type: VIEW ***
  24498. --- *** ***
  24499. --- *** A transversion from T to A. ***
  24500. --- ************************************************
  24501. ---
  24502. CREATE VIEW t_to_a_transversion AS
  24503. SELECT
  24504. feature_id AS t_to_a_transversion_id,
  24505. feature.*
  24506. FROM
  24507. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24508. WHERE cvterm.name = 'T_to_A_transversion';
  24509. --- ************************************************
  24510. --- *** relation: t_to_g_transversion ***
  24511. --- *** relation type: VIEW ***
  24512. --- *** ***
  24513. --- *** A transversion from T to G. ***
  24514. --- ************************************************
  24515. ---
  24516. CREATE VIEW t_to_g_transversion AS
  24517. SELECT
  24518. feature_id AS t_to_g_transversion_id,
  24519. feature.*
  24520. FROM
  24521. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24522. WHERE cvterm.name = 'T_to_G_transversion';
  24523. --- ************************************************
  24524. --- *** relation: purine_to_pyrimidine_transversion ***
  24525. --- *** relation type: VIEW ***
  24526. --- *** ***
  24527. --- *** Change of a purine nucleotide, A or G , ***
  24528. --- *** into a pyrimidine nucleotide C or T. ***
  24529. --- ************************************************
  24530. ---
  24531. CREATE VIEW purine_to_pyrimidine_transversion AS
  24532. SELECT
  24533. feature_id AS purine_to_pyrimidine_transversion_id,
  24534. feature.*
  24535. FROM
  24536. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24537. 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';
  24538. --- ************************************************
  24539. --- *** relation: a_to_c_transversion ***
  24540. --- *** relation type: VIEW ***
  24541. --- *** ***
  24542. --- *** A transversion from adenine to cytidine. ***
  24543. --- ************************************************
  24544. ---
  24545. CREATE VIEW a_to_c_transversion AS
  24546. SELECT
  24547. feature_id AS a_to_c_transversion_id,
  24548. feature.*
  24549. FROM
  24550. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24551. WHERE cvterm.name = 'A_to_C_transversion';
  24552. --- ************************************************
  24553. --- *** relation: a_to_t_transversion ***
  24554. --- *** relation type: VIEW ***
  24555. --- *** ***
  24556. --- *** A transversion from adenine to thymine. ***
  24557. --- ************************************************
  24558. ---
  24559. CREATE VIEW a_to_t_transversion AS
  24560. SELECT
  24561. feature_id AS a_to_t_transversion_id,
  24562. feature.*
  24563. FROM
  24564. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24565. WHERE cvterm.name = 'A_to_T_transversion';
  24566. --- ************************************************
  24567. --- *** relation: g_to_c_transversion ***
  24568. --- *** relation type: VIEW ***
  24569. --- *** ***
  24570. --- *** A transversion from guanine to cytidine. ***
  24571. --- ************************************************
  24572. ---
  24573. CREATE VIEW g_to_c_transversion AS
  24574. SELECT
  24575. feature_id AS g_to_c_transversion_id,
  24576. feature.*
  24577. FROM
  24578. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24579. WHERE cvterm.name = 'G_to_C_transversion';
  24580. --- ************************************************
  24581. --- *** relation: g_to_t_transversion ***
  24582. --- *** relation type: VIEW ***
  24583. --- *** ***
  24584. --- *** A transversion from guanine to thymine. ***
  24585. --- ************************************************
  24586. ---
  24587. CREATE VIEW g_to_t_transversion AS
  24588. SELECT
  24589. feature_id AS g_to_t_transversion_id,
  24590. feature.*
  24591. FROM
  24592. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24593. WHERE cvterm.name = 'G_to_T_transversion';
  24594. --- ************************************************
  24595. --- *** relation: intrachromosomal_mutation ***
  24596. --- *** relation type: VIEW ***
  24597. --- *** ***
  24598. --- ************************************************
  24599. ---
  24600. CREATE VIEW intrachromosomal_mutation AS
  24601. SELECT
  24602. feature_id AS intrachromosomal_mutation_id,
  24603. feature.*
  24604. FROM
  24605. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24606. 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';
  24607. --- ************************************************
  24608. --- *** relation: chromosomal_deletion ***
  24609. --- *** relation type: VIEW ***
  24610. --- *** ***
  24611. --- *** An incomplete chromosome. ***
  24612. --- ************************************************
  24613. ---
  24614. CREATE VIEW chromosomal_deletion AS
  24615. SELECT
  24616. feature_id AS chromosomal_deletion_id,
  24617. feature.*
  24618. FROM
  24619. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24620. 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';
  24621. --- ************************************************
  24622. --- *** relation: chromosomal_inversion ***
  24623. --- *** relation type: VIEW ***
  24624. --- *** ***
  24625. --- ************************************************
  24626. ---
  24627. CREATE VIEW chromosomal_inversion AS
  24628. SELECT
  24629. feature_id AS chromosomal_inversion_id,
  24630. feature.*
  24631. FROM
  24632. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24633. 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';
  24634. --- ************************************************
  24635. --- *** relation: interchromosomal_mutation ***
  24636. --- *** relation type: VIEW ***
  24637. --- *** ***
  24638. --- ************************************************
  24639. ---
  24640. CREATE VIEW interchromosomal_mutation AS
  24641. SELECT
  24642. feature_id AS interchromosomal_mutation_id,
  24643. feature.*
  24644. FROM
  24645. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24646. 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';
  24647. --- ************************************************
  24648. --- *** relation: indel ***
  24649. --- *** relation type: VIEW ***
  24650. --- *** ***
  24651. --- *** A hybrid term (insertion/deletion) to de ***
  24652. --- *** scribe sequence length change when the d ***
  24653. --- *** irection of the change is unspecified. ***
  24654. --- ************************************************
  24655. ---
  24656. CREATE VIEW indel AS
  24657. SELECT
  24658. feature_id AS indel_id,
  24659. feature.*
  24660. FROM
  24661. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24662. WHERE cvterm.name = 'nucleotide_deletion' OR cvterm.name = 'nucleotide_insertion' OR cvterm.name = 'nucleotide_duplication' OR cvterm.name = 'indel';
  24663. --- ************************************************
  24664. --- *** relation: nucleotide_deletion ***
  24665. --- *** relation type: VIEW ***
  24666. --- *** ***
  24667. --- *** One or more continuous nucleotides are e ***
  24668. --- *** xcised from the sequence. ***
  24669. --- ************************************************
  24670. ---
  24671. CREATE VIEW nucleotide_deletion AS
  24672. SELECT
  24673. feature_id AS nucleotide_deletion_id,
  24674. feature.*
  24675. FROM
  24676. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24677. WHERE cvterm.name = 'nucleotide_deletion';
  24678. --- ************************************************
  24679. --- *** relation: nucleotide_insertion ***
  24680. --- *** relation type: VIEW ***
  24681. --- *** ***
  24682. --- *** One or more nucleotides are added betwee ***
  24683. --- *** n two adjacent nucleotides in the sequen ***
  24684. --- *** ce. ***
  24685. --- ************************************************
  24686. ---
  24687. CREATE VIEW nucleotide_insertion AS
  24688. SELECT
  24689. feature_id AS nucleotide_insertion_id,
  24690. feature.*
  24691. FROM
  24692. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24693. WHERE cvterm.name = 'nucleotide_duplication' OR cvterm.name = 'nucleotide_insertion';
  24694. --- ************************************************
  24695. --- *** relation: nucleotide_duplication ***
  24696. --- *** relation type: VIEW ***
  24697. --- *** ***
  24698. --- *** One or more nucleotides are added betwee ***
  24699. --- *** n two adjacent nucleotides in the sequen ***
  24700. --- *** ce; the inserted sequence derives from, ***
  24701. --- *** or is identical in sequence to, nucleoti ***
  24702. --- *** des adjacent to insertion point. ***
  24703. --- ************************************************
  24704. ---
  24705. CREATE VIEW nucleotide_duplication AS
  24706. SELECT
  24707. feature_id AS nucleotide_duplication_id,
  24708. feature.*
  24709. FROM
  24710. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24711. WHERE cvterm.name = 'nucleotide_duplication';
  24712. --- ************************************************
  24713. --- *** relation: inversion ***
  24714. --- *** relation type: VIEW ***
  24715. --- *** ***
  24716. --- *** A continuous nucleotide sequence is inve ***
  24717. --- *** rted in the same position. ***
  24718. --- ************************************************
  24719. ---
  24720. CREATE VIEW inversion AS
  24721. SELECT
  24722. feature_id AS inversion_id,
  24723. feature.*
  24724. FROM
  24725. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24726. WHERE cvterm.name = 'inversion';
  24727. --- ************************************************
  24728. --- *** relation: chromosomal_duplication ***
  24729. --- *** relation type: VIEW ***
  24730. --- *** ***
  24731. --- *** An extra chromosome. ***
  24732. --- ************************************************
  24733. ---
  24734. CREATE VIEW chromosomal_duplication AS
  24735. SELECT
  24736. feature_id AS chromosomal_duplication_id,
  24737. feature.*
  24738. FROM
  24739. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24740. 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';
  24741. --- ************************************************
  24742. --- *** relation: intrachromosomal_duplication ***
  24743. --- *** relation type: VIEW ***
  24744. --- *** ***
  24745. --- ************************************************
  24746. ---
  24747. CREATE VIEW intrachromosomal_duplication AS
  24748. SELECT
  24749. feature_id AS intrachromosomal_duplication_id,
  24750. feature.*
  24751. FROM
  24752. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24753. 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';
  24754. --- ************************************************
  24755. --- *** relation: direct_tandem_duplication ***
  24756. --- *** relation type: VIEW ***
  24757. --- *** ***
  24758. --- ************************************************
  24759. ---
  24760. CREATE VIEW direct_tandem_duplication AS
  24761. SELECT
  24762. feature_id AS direct_tandem_duplication_id,
  24763. feature.*
  24764. FROM
  24765. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24766. WHERE cvterm.name = 'direct_tandem_duplication';
  24767. --- ************************************************
  24768. --- *** relation: inverted_tandem_duplication ***
  24769. --- *** relation type: VIEW ***
  24770. --- *** ***
  24771. --- ************************************************
  24772. ---
  24773. CREATE VIEW inverted_tandem_duplication AS
  24774. SELECT
  24775. feature_id AS inverted_tandem_duplication_id,
  24776. feature.*
  24777. FROM
  24778. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24779. WHERE cvterm.name = 'inverted_tandem_duplication';
  24780. --- ************************************************
  24781. --- *** relation: intrachromosomal_transposition ***
  24782. --- *** relation type: VIEW ***
  24783. --- *** ***
  24784. --- ************************************************
  24785. ---
  24786. CREATE VIEW intrachromosomal_transposition AS
  24787. SELECT
  24788. feature_id AS intrachromosomal_transposition_id,
  24789. feature.*
  24790. FROM
  24791. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24792. 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';
  24793. --- ************************************************
  24794. --- *** relation: compound_chromosome ***
  24795. --- *** relation type: VIEW ***
  24796. --- *** ***
  24797. --- ************************************************
  24798. ---
  24799. CREATE VIEW compound_chromosome AS
  24800. SELECT
  24801. feature_id AS compound_chromosome_id,
  24802. feature.*
  24803. FROM
  24804. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24805. WHERE cvterm.name = 'compound_chromosome_arm' OR cvterm.name = 'homo_compound_chromosome' OR cvterm.name = 'hetero_compound_chromosome' OR cvterm.name = 'compound_chromosome';
  24806. --- ************************************************
  24807. --- *** relation: robertsonian_fusion ***
  24808. --- *** relation type: VIEW ***
  24809. --- *** ***
  24810. --- ************************************************
  24811. ---
  24812. CREATE VIEW robertsonian_fusion AS
  24813. SELECT
  24814. feature_id AS robertsonian_fusion_id,
  24815. feature.*
  24816. FROM
  24817. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24818. WHERE cvterm.name = 'Robertsonian_fusion';
  24819. --- ************************************************
  24820. --- *** relation: chromosomal_translocation ***
  24821. --- *** relation type: VIEW ***
  24822. --- *** ***
  24823. --- ************************************************
  24824. ---
  24825. CREATE VIEW chromosomal_translocation AS
  24826. SELECT
  24827. feature_id AS chromosomal_translocation_id,
  24828. feature.*
  24829. FROM
  24830. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24831. 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';
  24832. --- ************************************************
  24833. --- *** relation: ring_chromosome ***
  24834. --- *** relation type: VIEW ***
  24835. --- *** ***
  24836. --- ************************************************
  24837. ---
  24838. CREATE VIEW ring_chromosome AS
  24839. SELECT
  24840. feature_id AS ring_chromosome_id,
  24841. feature.*
  24842. FROM
  24843. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24844. WHERE cvterm.name = 'inverted_ring_chromosome' OR cvterm.name = 'free_ring_duplication' OR cvterm.name = 'ring_chromosome';
  24845. --- ************************************************
  24846. --- *** relation: pericentric_inversion ***
  24847. --- *** relation type: VIEW ***
  24848. --- *** ***
  24849. --- ************************************************
  24850. ---
  24851. CREATE VIEW pericentric_inversion AS
  24852. SELECT
  24853. feature_id AS pericentric_inversion_id,
  24854. feature.*
  24855. FROM
  24856. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24857. WHERE cvterm.name = 'pericentric_inversion';
  24858. --- ************************************************
  24859. --- *** relation: paracentric_inversion ***
  24860. --- *** relation type: VIEW ***
  24861. --- *** ***
  24862. --- ************************************************
  24863. ---
  24864. CREATE VIEW paracentric_inversion AS
  24865. SELECT
  24866. feature_id AS paracentric_inversion_id,
  24867. feature.*
  24868. FROM
  24869. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24870. WHERE cvterm.name = 'paracentric_inversion';
  24871. --- ************************************************
  24872. --- *** relation: reciprocal_chromosomal_translocation ***
  24873. --- *** relation type: VIEW ***
  24874. --- *** ***
  24875. --- ************************************************
  24876. ---
  24877. CREATE VIEW reciprocal_chromosomal_translocation AS
  24878. SELECT
  24879. feature_id AS reciprocal_chromosomal_translocation_id,
  24880. feature.*
  24881. FROM
  24882. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24883. WHERE cvterm.name = 'reciprocal_chromosomal_translocation';
  24884. --- ************************************************
  24885. --- *** relation: sequence_variation_affecting_transcript ***
  24886. --- *** relation type: VIEW ***
  24887. --- *** ***
  24888. --- *** Any change in mature, spliced and proces ***
  24889. --- *** sed, RNA that results from a change in t ***
  24890. --- *** he corresponding DNA sequence. ***
  24891. --- ************************************************
  24892. ---
  24893. CREATE VIEW sequence_variation_affecting_transcript AS
  24894. SELECT
  24895. feature_id AS sequence_variation_affecting_transcript_id,
  24896. feature.*
  24897. FROM
  24898. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24899. 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';
  24900. --- ************************************************
  24901. --- *** relation: sequence_variant_causing_no_change_in_transcript ***
  24902. --- *** relation type: VIEW ***
  24903. --- *** ***
  24904. --- *** No effect on the state of the RNA. ***
  24905. --- ************************************************
  24906. ---
  24907. CREATE VIEW sequence_variant_causing_no_change_in_transcript AS
  24908. SELECT
  24909. feature_id AS sequence_variant_causing_no_change_in_transcript_id,
  24910. feature.*
  24911. FROM
  24912. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24913. WHERE cvterm.name = 'sequence_variant_causing_no_change_in_transcript';
  24914. --- ************************************************
  24915. --- *** relation: sequence_variation_affecting_complex_change_in_transcript ***
  24916. --- *** relation type: VIEW ***
  24917. --- *** ***
  24918. --- ************************************************
  24919. ---
  24920. CREATE VIEW sequence_variation_affecting_complex_change_in_transcript AS
  24921. SELECT
  24922. feature_id AS sequence_variation_affecting_complex_change_in_transcript_id,
  24923. feature.*
  24924. FROM
  24925. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24926. WHERE cvterm.name = 'sequence_variation_affecting_complex_change_in_transcript';
  24927. --- ************************************************
  24928. --- *** relation: sequence_variation_affecting_coding_sequence ***
  24929. --- *** relation type: VIEW ***
  24930. --- *** ***
  24931. --- *** Any of the amino acid coding triplets of ***
  24932. --- *** a gene are affected by the DNA mutation ***
  24933. --- *** . ***
  24934. --- ************************************************
  24935. ---
  24936. CREATE VIEW sequence_variation_affecting_coding_sequence AS
  24937. SELECT
  24938. feature_id AS sequence_variation_affecting_coding_sequence_id,
  24939. feature.*
  24940. FROM
  24941. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24942. 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';
  24943. --- ************************************************
  24944. --- *** relation: sequence_variant_causing_initiator_codon_change_in_trans ***
  24945. --- *** relation type: VIEW ***
  24946. --- *** ***
  24947. --- *** The DNA mutation changes, usually destro ***
  24948. --- *** ys, the first coding triplet of a gene. ***
  24949. --- *** Usually prevents translation although an ***
  24950. --- *** other initiator codon may be used. ***
  24951. --- ************************************************
  24952. ---
  24953. CREATE VIEW sequence_variant_causing_initiator_codon_change_in_trans AS
  24954. SELECT
  24955. feature_id AS sequence_variant_causing_initiator_codon_change_in_trans_id,
  24956. feature.*
  24957. FROM
  24958. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24959. WHERE cvterm.name = 'sequence_variant_causing_initiator_codon_change_in_transcript';
  24960. --- ************************************************
  24961. --- *** relation: seq_variant_causing_amino_acid_coding_codon_change_in_trans ***
  24962. --- *** relation type: VIEW ***
  24963. --- *** ***
  24964. --- *** The DNA mutation affects the amino acid ***
  24965. --- *** coding sequence of a gene; this region i ***
  24966. --- *** ncludes both the initiator and terminato ***
  24967. --- *** r codons. ***
  24968. --- ************************************************
  24969. ---
  24970. CREATE VIEW seq_variant_causing_amino_acid_coding_codon_change_in_trans AS
  24971. SELECT
  24972. feature_id AS seq_variant_causing_amino_acid_coding_codon_change_in_trans_id,
  24973. feature.*
  24974. FROM
  24975. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24976. 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';
  24977. --- ************************************************
  24978. --- *** relation: seq_variant_causing_synonymous_codon_change_in_trans ***
  24979. --- *** relation type: VIEW ***
  24980. --- *** ***
  24981. --- *** The changed codon has the same translati ***
  24982. --- *** on product as the original codon. ***
  24983. --- ************************************************
  24984. ---
  24985. CREATE VIEW seq_variant_causing_synonymous_codon_change_in_trans AS
  24986. SELECT
  24987. feature_id AS seq_variant_causing_synonymous_codon_change_in_trans_id,
  24988. feature.*
  24989. FROM
  24990. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24991. WHERE cvterm.name = 'sequence_variant_causing_synonymous_codon_change_in_transcript';
  24992. --- ************************************************
  24993. --- *** relation: seq_variant_causing_non_synonymous_codon_change_in_trans ***
  24994. --- *** relation type: VIEW ***
  24995. --- *** ***
  24996. --- *** A DNA point mutation that causes a subst ***
  24997. --- *** itution of an amino acid by an other. ***
  24998. --- ************************************************
  24999. ---
  25000. CREATE VIEW seq_variant_causing_non_synonymous_codon_change_in_trans AS
  25001. SELECT
  25002. feature_id AS seq_variant_causing_non_synonymous_codon_change_in_trans_id,
  25003. feature.*
  25004. FROM
  25005. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25006. 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';
  25007. --- ************************************************
  25008. --- *** relation: sequence_variant_causing_missense_codon_change_in_transcript ***
  25009. --- *** relation type: VIEW ***
  25010. --- *** ***
  25011. --- *** The nucleotide change in the codon leads ***
  25012. --- *** to a new codon coding for a new amino a ***
  25013. --- *** cid. ***
  25014. --- ************************************************
  25015. ---
  25016. CREATE VIEW sequence_variant_causing_missense_codon_change_in_transcript AS
  25017. SELECT
  25018. feature_id AS sequence_variant_causing_missense_codon_change_in_transcript_id,
  25019. feature.*
  25020. FROM
  25021. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25022. 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';
  25023. --- ************************************************
  25024. --- *** relation: seq_var_causing_conservative_missense_codon_change_in_trans ***
  25025. --- *** relation type: VIEW ***
  25026. --- *** ***
  25027. --- *** The amino acid change following from the ***
  25028. --- *** codon change does not change the gross ***
  25029. --- *** properties (size, charge, hydrophobicity ***
  25030. --- *** ) of the amino acid at that position. ***
  25031. --- ************************************************
  25032. ---
  25033. CREATE VIEW seq_var_causing_conservative_missense_codon_change_in_trans AS
  25034. SELECT
  25035. feature_id AS seq_var_causing_conservative_missense_codon_change_in_trans_id,
  25036. feature.*
  25037. FROM
  25038. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25039. WHERE cvterm.name = 'sequence_variant_causing_conservative_missense_codon_change_in_transcript';
  25040. --- ************************************************
  25041. --- *** relation: seq_var_causing_nonconserv_missense_codon_change_in_trans ***
  25042. --- *** relation type: VIEW ***
  25043. --- *** ***
  25044. --- *** The amino acid change following from the ***
  25045. --- *** codon change changes the gross properti ***
  25046. --- *** es (size, charge, hydrophobicity) of the ***
  25047. --- *** amino acid in that position. ***
  25048. --- ************************************************
  25049. ---
  25050. CREATE VIEW seq_var_causing_nonconserv_missense_codon_change_in_trans AS
  25051. SELECT
  25052. feature_id AS seq_var_causing_nonconserv_missense_codon_change_in_trans_id,
  25053. feature.*
  25054. FROM
  25055. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25056. WHERE cvterm.name = 'sequence_variant_causing_nonconservative_missense_codon_change_in_transcript';
  25057. --- ************************************************
  25058. --- *** relation: sequence_variant_causing_nonsense_codon_change_in_transcript ***
  25059. --- *** relation type: VIEW ***
  25060. --- *** ***
  25061. --- *** The nucleotide change in the codon tripl ***
  25062. --- *** et creates a terminator codon. ***
  25063. --- ************************************************
  25064. ---
  25065. CREATE VIEW sequence_variant_causing_nonsense_codon_change_in_transcript AS
  25066. SELECT
  25067. feature_id AS sequence_variant_causing_nonsense_codon_change_in_transcript_id,
  25068. feature.*
  25069. FROM
  25070. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25071. WHERE cvterm.name = 'sequence_variant_causing_nonsense_codon_change_in_transcript';
  25072. --- ************************************************
  25073. --- *** relation: sequence_variant_causing_terminator_codon_change_in_trans ***
  25074. --- *** relation type: VIEW ***
  25075. --- *** ***
  25076. --- *** The nucleotide change in the codon tripl ***
  25077. --- *** et changes the stop codon, causing an el ***
  25078. --- *** ongated transcript sequence. ***
  25079. --- ************************************************
  25080. ---
  25081. CREATE VIEW sequence_variant_causing_terminator_codon_change_in_trans AS
  25082. SELECT
  25083. feature_id AS sequence_variant_causing_terminator_codon_change_in_trans_id,
  25084. feature.*
  25085. FROM
  25086. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25087. WHERE cvterm.name = 'sequence_variant_causing_terminator_codon_change_in_transcript';
  25088. --- ************************************************
  25089. --- *** relation: sequence_variation_affecting_reading_frame ***
  25090. --- *** relation type: VIEW ***
  25091. --- *** ***
  25092. --- *** An umbrella term for terms describing an ***
  25093. --- *** effect of a sequence variation on the f ***
  25094. --- *** rame of translation. ***
  25095. --- ************************************************
  25096. ---
  25097. CREATE VIEW sequence_variation_affecting_reading_frame AS
  25098. SELECT
  25099. feature_id AS sequence_variation_affecting_reading_frame_id,
  25100. feature.*
  25101. FROM
  25102. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25103. 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';
  25104. --- ************************************************
  25105. --- *** relation: frameshift_sequence_variation ***
  25106. --- *** relation type: VIEW ***
  25107. --- *** ***
  25108. --- *** A mutation causing a disruption of the t ***
  25109. --- *** ranslational reading frame, because the ***
  25110. --- *** number of nucleotides inserted or delete ***
  25111. --- *** d is not a multiple of three. ***
  25112. --- ************************************************
  25113. ---
  25114. CREATE VIEW frameshift_sequence_variation AS
  25115. SELECT
  25116. feature_id AS frameshift_sequence_variation_id,
  25117. feature.*
  25118. FROM
  25119. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25120. 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';
  25121. --- ************************************************
  25122. --- *** relation: sequence_variant_causing_plus_1_frameshift_mutation ***
  25123. --- *** relation type: VIEW ***
  25124. --- *** ***
  25125. --- *** A mutation causing a disruption of the t ***
  25126. --- *** ranslational reading frame, due to the i ***
  25127. --- *** nsertion of a nucleotide. ***
  25128. --- ************************************************
  25129. ---
  25130. CREATE VIEW sequence_variant_causing_plus_1_frameshift_mutation AS
  25131. SELECT
  25132. feature_id AS sequence_variant_causing_plus_1_frameshift_mutation_id,
  25133. feature.*
  25134. FROM
  25135. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25136. WHERE cvterm.name = 'sequence_variant_causing_plus_1_frameshift_mutation';
  25137. --- ************************************************
  25138. --- *** relation: sequence_variant_causing_minus_1_frameshift ***
  25139. --- *** relation type: VIEW ***
  25140. --- *** ***
  25141. --- *** A mutation causing a disruption of the t ***
  25142. --- *** ranslational reading frame, due to the d ***
  25143. --- *** eletion of a nucleotide. ***
  25144. --- ************************************************
  25145. ---
  25146. CREATE VIEW sequence_variant_causing_minus_1_frameshift AS
  25147. SELECT
  25148. feature_id AS sequence_variant_causing_minus_1_frameshift_id,
  25149. feature.*
  25150. FROM
  25151. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25152. WHERE cvterm.name = 'sequence_variant_causing_minus_1_frameshift';
  25153. --- ************************************************
  25154. --- *** relation: sequence_variant_causing_plus_2_frameshift ***
  25155. --- *** relation type: VIEW ***
  25156. --- *** ***
  25157. --- *** A mutation causing a disruption of the t ***
  25158. --- *** ranslational reading frame, due to the i ***
  25159. --- *** nsertion of two nucleotides. ***
  25160. --- ************************************************
  25161. ---
  25162. CREATE VIEW sequence_variant_causing_plus_2_frameshift AS
  25163. SELECT
  25164. feature_id AS sequence_variant_causing_plus_2_frameshift_id,
  25165. feature.*
  25166. FROM
  25167. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25168. WHERE cvterm.name = 'sequence_variant_causing_plus_2_frameshift';
  25169. --- ************************************************
  25170. --- *** relation: sequence_variant_causing_minus_2_frameshift ***
  25171. --- *** relation type: VIEW ***
  25172. --- *** ***
  25173. --- *** A mutation causing a disruption of the t ***
  25174. --- *** ranslational reading frame, due to the d ***
  25175. --- *** eletion of two nucleotides. ***
  25176. --- ************************************************
  25177. ---
  25178. CREATE VIEW sequence_variant_causing_minus_2_frameshift AS
  25179. SELECT
  25180. feature_id AS sequence_variant_causing_minus_2_frameshift_id,
  25181. feature.*
  25182. FROM
  25183. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25184. WHERE cvterm.name = 'sequence_variant_causing_minus_2_frameshift';
  25185. --- ************************************************
  25186. --- *** relation: sequence_variant_affecting_transcript_processing ***
  25187. --- *** relation type: VIEW ***
  25188. --- *** ***
  25189. --- *** Sequence variant affects the way in whic ***
  25190. --- *** h the primary transcriptional product is ***
  25191. --- *** processed to form the mature transcript ***
  25192. --- *** . ***
  25193. --- ************************************************
  25194. ---
  25195. CREATE VIEW sequence_variant_affecting_transcript_processing AS
  25196. SELECT
  25197. feature_id AS sequence_variant_affecting_transcript_processing_id,
  25198. feature.*
  25199. FROM
  25200. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25201. WHERE cvterm.name = 'sequence_variant_affecting_polyadenylation' OR cvterm.name = 'sequence_variant_affecting_editing' OR cvterm.name = 'sequence_variant_affecting_transcript_processing';
  25202. --- ************************************************
  25203. --- *** relation: sequence_variant_affecting_splicing ***
  25204. --- *** relation type: VIEW ***
  25205. --- *** ***
  25206. --- *** A sequence_variant_effect where the way ***
  25207. --- *** in which the primary transcriptional pro ***
  25208. --- *** duct is processed to form the mature tra ***
  25209. --- *** nscript, specifically by the removal (sp ***
  25210. --- *** licing) of intron sequences is changed. ***
  25211. --- ************************************************
  25212. ---
  25213. CREATE VIEW sequence_variant_affecting_splicing AS
  25214. SELECT
  25215. feature_id AS sequence_variant_affecting_splicing_id,
  25216. feature.*
  25217. FROM
  25218. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25219. 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';
  25220. --- ************************************************
  25221. --- *** relation: sequence_variant_affecting_splice_donor ***
  25222. --- *** relation type: VIEW ***
  25223. --- *** ***
  25224. --- *** A sequence_variant_effect that changes t ***
  25225. --- *** he splice donor sequence. ***
  25226. --- ************************************************
  25227. ---
  25228. CREATE VIEW sequence_variant_affecting_splice_donor AS
  25229. SELECT
  25230. feature_id AS sequence_variant_affecting_splice_donor_id,
  25231. feature.*
  25232. FROM
  25233. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25234. WHERE cvterm.name = 'sequence_variant_affecting_splice_donor';
  25235. --- ************************************************
  25236. --- *** relation: sequence_variant_affecting_splice_acceptor ***
  25237. --- *** relation type: VIEW ***
  25238. --- *** ***
  25239. --- *** A sequence_variant_effect that changes t ***
  25240. --- *** he splice acceptor sequence. ***
  25241. --- ************************************************
  25242. ---
  25243. CREATE VIEW sequence_variant_affecting_splice_acceptor AS
  25244. SELECT
  25245. feature_id AS sequence_variant_affecting_splice_acceptor_id,
  25246. feature.*
  25247. FROM
  25248. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25249. WHERE cvterm.name = 'sequence_variant_affecting_splice_acceptor';
  25250. --- ************************************************
  25251. --- *** relation: sequence_variant_causing_cryptic_splice_activation ***
  25252. --- *** relation type: VIEW ***
  25253. --- *** ***
  25254. --- *** A sequence variant causing a new (functi ***
  25255. --- *** onal) splice site. ***
  25256. --- ************************************************
  25257. ---
  25258. CREATE VIEW sequence_variant_causing_cryptic_splice_activation AS
  25259. SELECT
  25260. feature_id AS sequence_variant_causing_cryptic_splice_activation_id,
  25261. feature.*
  25262. FROM
  25263. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25264. 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';
  25265. --- ************************************************
  25266. --- *** relation: sequence_variant_affecting_editing ***
  25267. --- *** relation type: VIEW ***
  25268. --- *** ***
  25269. --- *** Sequence variant affects the editing of ***
  25270. --- *** the transcript. ***
  25271. --- ************************************************
  25272. ---
  25273. CREATE VIEW sequence_variant_affecting_editing AS
  25274. SELECT
  25275. feature_id AS sequence_variant_affecting_editing_id,
  25276. feature.*
  25277. FROM
  25278. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25279. WHERE cvterm.name = 'sequence_variant_affecting_editing';
  25280. --- ************************************************
  25281. --- *** relation: sequence_variant_affecting_transcription ***
  25282. --- *** relation type: VIEW ***
  25283. --- *** ***
  25284. --- *** Mutation affects the process of transcri ***
  25285. --- *** ption, its initiation, progression or te ***
  25286. --- *** rmination. ***
  25287. --- ************************************************
  25288. ---
  25289. CREATE VIEW sequence_variant_affecting_transcription AS
  25290. SELECT
  25291. feature_id AS sequence_variant_affecting_transcription_id,
  25292. feature.*
  25293. FROM
  25294. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25295. 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';
  25296. --- ************************************************
  25297. --- *** relation: sequence_variant_decreasing_rate_of_transcription ***
  25298. --- *** relation type: VIEW ***
  25299. --- *** ***
  25300. --- *** A sequence variation that decreases the ***
  25301. --- *** rate a which transcription of the sequen ***
  25302. --- *** ce occurs. ***
  25303. --- ************************************************
  25304. ---
  25305. CREATE VIEW sequence_variant_decreasing_rate_of_transcription AS
  25306. SELECT
  25307. feature_id AS sequence_variant_decreasing_rate_of_transcription_id,
  25308. feature.*
  25309. FROM
  25310. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25311. WHERE cvterm.name = 'sequence_variant_decreasing_rate_of_transcription';
  25312. --- ************************************************
  25313. --- *** relation: sequence_variation_affecting_transcript_sequence ***
  25314. --- *** relation type: VIEW ***
  25315. --- *** ***
  25316. --- ************************************************
  25317. ---
  25318. CREATE VIEW sequence_variation_affecting_transcript_sequence AS
  25319. SELECT
  25320. feature_id AS sequence_variation_affecting_transcript_sequence_id,
  25321. feature.*
  25322. FROM
  25323. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25324. 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';
  25325. --- ************************************************
  25326. --- *** relation: sequence_variant_increasing_rate_of_transcription ***
  25327. --- *** relation type: VIEW ***
  25328. --- *** ***
  25329. --- ************************************************
  25330. ---
  25331. CREATE VIEW sequence_variant_increasing_rate_of_transcription AS
  25332. SELECT
  25333. feature_id AS sequence_variant_increasing_rate_of_transcription_id,
  25334. feature.*
  25335. FROM
  25336. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25337. WHERE cvterm.name = 'sequence_variant_increasing_rate_of_transcription';
  25338. --- ************************************************
  25339. --- *** relation: sequence_variant_affecting_rate_of_transcription ***
  25340. --- *** relation type: VIEW ***
  25341. --- *** ***
  25342. --- *** A mutation that alters the rate a which ***
  25343. --- *** transcription of the sequence occurs. ***
  25344. --- ************************************************
  25345. ---
  25346. CREATE VIEW sequence_variant_affecting_rate_of_transcription AS
  25347. SELECT
  25348. feature_id AS sequence_variant_affecting_rate_of_transcription_id,
  25349. feature.*
  25350. FROM
  25351. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25352. 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';
  25353. --- ************************************************
  25354. --- *** relation: sequence_variant_affecting_transcript_stability ***
  25355. --- *** relation type: VIEW ***
  25356. --- *** ***
  25357. --- *** Sequence variant affects the stability o ***
  25358. --- *** f the transcript. ***
  25359. --- ************************************************
  25360. ---
  25361. CREATE VIEW sequence_variant_affecting_transcript_stability AS
  25362. SELECT
  25363. feature_id AS sequence_variant_affecting_transcript_stability_id,
  25364. feature.*
  25365. FROM
  25366. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25367. WHERE cvterm.name = 'sequence_variant_increasing_transcript_stability' OR cvterm.name = 'sequence_variant_decreasing_transcript_stability' OR cvterm.name = 'sequence variant_affecting_transcript_stability';
  25368. --- ************************************************
  25369. --- *** relation: sequence_variant_increasing_transcript_stability ***
  25370. --- *** relation type: VIEW ***
  25371. --- *** ***
  25372. --- *** Sequence variant increases the stability ***
  25373. --- *** (half-life) of the transcript. ***
  25374. --- ************************************************
  25375. ---
  25376. CREATE VIEW sequence_variant_increasing_transcript_stability AS
  25377. SELECT
  25378. feature_id AS sequence_variant_increasing_transcript_stability_id,
  25379. feature.*
  25380. FROM
  25381. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25382. WHERE cvterm.name = 'sequence_variant_increasing_transcript_stability';
  25383. --- ************************************************
  25384. --- *** relation: sequence_variant_decreasing_transcript_stability ***
  25385. --- *** relation type: VIEW ***
  25386. --- *** ***
  25387. --- *** Sequence variant decreases the stability ***
  25388. --- *** (half-life) of the transcript. ***
  25389. --- ************************************************
  25390. ---
  25391. CREATE VIEW sequence_variant_decreasing_transcript_stability AS
  25392. SELECT
  25393. feature_id AS sequence_variant_decreasing_transcript_stability_id,
  25394. feature.*
  25395. FROM
  25396. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25397. WHERE cvterm.name = 'sequence_variant_decreasing_transcript_stability';
  25398. --- ************************************************
  25399. --- *** relation: sequence_variation_affecting_level_of_transcript ***
  25400. --- *** relation type: VIEW ***
  25401. --- *** ***
  25402. --- *** A sequence variation that causes a chang ***
  25403. --- *** e in the level of mature, spliced and pr ***
  25404. --- *** ocessed RNA, resulting from a change in ***
  25405. --- *** the corresponding DNA sequence. ***
  25406. --- ************************************************
  25407. ---
  25408. CREATE VIEW sequence_variation_affecting_level_of_transcript AS
  25409. SELECT
  25410. feature_id AS sequence_variation_affecting_level_of_transcript_id,
  25411. feature.*
  25412. FROM
  25413. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25414. 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';
  25415. --- ************************************************
  25416. --- *** relation: sequence_variation_decreasing_level_of_transcript ***
  25417. --- *** relation type: VIEW ***
  25418. --- *** ***
  25419. --- *** A sequence variation that causes a decre ***
  25420. --- *** ase in the level of mature, spliced and ***
  25421. --- *** processed RNA, resulting from a change i ***
  25422. --- *** n the corresponding DNA sequence. ***
  25423. --- ************************************************
  25424. ---
  25425. CREATE VIEW sequence_variation_decreasing_level_of_transcript AS
  25426. SELECT
  25427. feature_id AS sequence_variation_decreasing_level_of_transcript_id,
  25428. feature.*
  25429. FROM
  25430. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25431. WHERE cvterm.name = 'sequence_variation_decreasing_level_of_transcript';
  25432. --- ************************************************
  25433. --- *** relation: sequence_variation_increasing_level_of_transcript ***
  25434. --- *** relation type: VIEW ***
  25435. --- *** ***
  25436. --- *** A sequence_variation that causes an incr ***
  25437. --- *** ease in the level of mature, spliced and ***
  25438. --- *** processed RNA, resulting from a change ***
  25439. --- *** in the corresponding DNA sequence. ***
  25440. --- ************************************************
  25441. ---
  25442. CREATE VIEW sequence_variation_increasing_level_of_transcript AS
  25443. SELECT
  25444. feature_id AS sequence_variation_increasing_level_of_transcript_id,
  25445. feature.*
  25446. FROM
  25447. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25448. WHERE cvterm.name = 'sequence_variation_increasing_level_of_transcript';
  25449. --- ************************************************
  25450. --- *** relation: sequence_variant_affecting_translational_product ***
  25451. --- *** relation type: VIEW ***
  25452. --- *** ***
  25453. --- *** Mutation causes a change in primary tran ***
  25454. --- *** slation product of a transcript. ***
  25455. --- ************************************************
  25456. ---
  25457. CREATE VIEW sequence_variant_affecting_translational_product AS
  25458. SELECT
  25459. feature_id AS sequence_variant_affecting_translational_product_id,
  25460. feature.*
  25461. FROM
  25462. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25463. 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';
  25464. --- ************************************************
  25465. --- *** relation: sequence_variant_causing_no_change_of_translational_product ***
  25466. --- *** relation type: VIEW ***
  25467. --- *** ***
  25468. --- *** The sequence variant at RNA level does n ***
  25469. --- *** ot lead to any change in polypeptide. ***
  25470. --- ************************************************
  25471. ---
  25472. CREATE VIEW sequence_variant_causing_no_change_of_translational_product AS
  25473. SELECT
  25474. feature_id AS sequence_variant_causing_no_change_of_translational_product_id,
  25475. feature.*
  25476. FROM
  25477. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25478. WHERE cvterm.name = 'sequence_variant_causing_no_change_of_translational_product';
  25479. --- ************************************************
  25480. --- *** relation: sequence_variant_causing_uncharacterised_change_of_product ***
  25481. --- *** relation type: VIEW ***
  25482. --- *** ***
  25483. --- *** A sequence variant causing an uncharacte ***
  25484. --- *** rized change of translational product. ***
  25485. --- ************************************************
  25486. ---
  25487. CREATE VIEW sequence_variant_causing_uncharacterised_change_of_product AS
  25488. SELECT
  25489. feature_id AS sequence_variant_causing_uncharacterised_change_of_product_id,
  25490. feature.*
  25491. FROM
  25492. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25493. WHERE cvterm.name = 'sequence_variant_causing_partially_characterised_change_of_translational_product' OR cvterm.name = 'sequence_variant_causing_uncharacterised_change_of_translational_product';
  25494. --- ************************************************
  25495. --- *** relation: seq_variant_causing_partly_characterised_change_of_product ***
  25496. --- *** relation type: VIEW ***
  25497. --- *** ***
  25498. --- *** A sequence variant causing a partially u ***
  25499. --- *** ncharacterised change in translational p ***
  25500. --- *** roduct. ***
  25501. --- ************************************************
  25502. ---
  25503. CREATE VIEW seq_variant_causing_partly_characterised_change_of_product AS
  25504. SELECT
  25505. feature_id AS seq_variant_causing_partly_characterised_change_of_product_id,
  25506. feature.*
  25507. FROM
  25508. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25509. WHERE cvterm.name = 'sequence_variant_causing_partially_characterised_change_of_translational_product';
  25510. --- ************************************************
  25511. --- *** relation: sequence_variant_causing_complex_change_of_product ***
  25512. --- *** relation type: VIEW ***
  25513. --- *** ***
  25514. --- *** Any sequence variant effect that is know ***
  25515. --- *** n at nucleotide level but cannot be expl ***
  25516. --- *** ained by using other key terms. ***
  25517. --- ************************************************
  25518. ---
  25519. CREATE VIEW sequence_variant_causing_complex_change_of_product AS
  25520. SELECT
  25521. feature_id AS sequence_variant_causing_complex_change_of_product_id,
  25522. feature.*
  25523. FROM
  25524. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25525. WHERE cvterm.name = 'sequence_variant_causing_complex_change_of_translational_product';
  25526. --- ************************************************
  25527. --- *** relation: sequence_variant_causing_amino_acid_substitution ***
  25528. --- *** relation type: VIEW ***
  25529. --- *** ***
  25530. --- *** The replacement of a single amino acid b ***
  25531. --- *** y another. ***
  25532. --- ************************************************
  25533. ---
  25534. CREATE VIEW sequence_variant_causing_amino_acid_substitution AS
  25535. SELECT
  25536. feature_id AS sequence_variant_causing_amino_acid_substitution_id,
  25537. feature.*
  25538. FROM
  25539. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25540. 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';
  25541. --- ************************************************
  25542. --- *** relation: sequence_variant_causing_conservative_amino_acid_sub ***
  25543. --- *** relation type: VIEW ***
  25544. --- *** ***
  25545. --- ************************************************
  25546. ---
  25547. CREATE VIEW sequence_variant_causing_conservative_amino_acid_sub AS
  25548. SELECT
  25549. feature_id AS sequence_variant_causing_conservative_amino_acid_sub_id,
  25550. feature.*
  25551. FROM
  25552. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25553. WHERE cvterm.name = 'sequence_variant_causing_conservative_amino_acid_substitution';
  25554. --- ************************************************
  25555. --- *** relation: sequence_variant_causing_nonconservative_amino_acid_sub ***
  25556. --- *** relation type: VIEW ***
  25557. --- *** ***
  25558. --- ************************************************
  25559. ---
  25560. CREATE VIEW sequence_variant_causing_nonconservative_amino_acid_sub AS
  25561. SELECT
  25562. feature_id AS sequence_variant_causing_nonconservative_amino_acid_sub_id,
  25563. feature.*
  25564. FROM
  25565. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25566. WHERE cvterm.name = 'sequence_variant_causing_nonconservative_amino_acid_substitution';
  25567. --- ************************************************
  25568. --- *** relation: sequence_variant_causing_amino_acid_insertion ***
  25569. --- *** relation type: VIEW ***
  25570. --- *** ***
  25571. --- *** The insertion of one or more amino acids ***
  25572. --- *** from the polypeptide, without affecting ***
  25573. --- *** the surrounding sequence. ***
  25574. --- ************************************************
  25575. ---
  25576. CREATE VIEW sequence_variant_causing_amino_acid_insertion AS
  25577. SELECT
  25578. feature_id AS sequence_variant_causing_amino_acid_insertion_id,
  25579. feature.*
  25580. FROM
  25581. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25582. WHERE cvterm.name = 'sequence_variant_causing_amino_acid_insertion';
  25583. --- ************************************************
  25584. --- *** relation: sequence_variant_causing_amino_acid_deletion ***
  25585. --- *** relation type: VIEW ***
  25586. --- *** ***
  25587. --- *** The deletion of one or more amino acids ***
  25588. --- *** from the polypeptide, without affecting ***
  25589. --- *** the surrounding sequence. ***
  25590. --- ************************************************
  25591. ---
  25592. CREATE VIEW sequence_variant_causing_amino_acid_deletion AS
  25593. SELECT
  25594. feature_id AS sequence_variant_causing_amino_acid_deletion_id,
  25595. feature.*
  25596. FROM
  25597. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25598. WHERE cvterm.name = 'sequence_variant_causing_amino_acid_deletion';
  25599. --- ************************************************
  25600. --- *** relation: sequence_variant_causing_polypeptide_truncation ***
  25601. --- *** relation type: VIEW ***
  25602. --- *** ***
  25603. --- *** The translational product is truncated a ***
  25604. --- *** t its C-terminus, usually a result of a ***
  25605. --- *** nonsense codon change in transcript (SO: ***
  25606. --- *** 1000062). ***
  25607. --- ************************************************
  25608. ---
  25609. CREATE VIEW sequence_variant_causing_polypeptide_truncation AS
  25610. SELECT
  25611. feature_id AS sequence_variant_causing_polypeptide_truncation_id,
  25612. feature.*
  25613. FROM
  25614. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25615. WHERE cvterm.name = 'sequence_variant_causing_polypeptide_truncation';
  25616. --- ************************************************
  25617. --- *** relation: sequence_variant_causing_polypeptide_elongation ***
  25618. --- *** relation type: VIEW ***
  25619. --- *** ***
  25620. --- *** The extension of the translational produ ***
  25621. --- *** ct at either (or both) the N-terminus an ***
  25622. --- *** d/or the C-terminus. ***
  25623. --- ************************************************
  25624. ---
  25625. CREATE VIEW sequence_variant_causing_polypeptide_elongation AS
  25626. SELECT
  25627. feature_id AS sequence_variant_causing_polypeptide_elongation_id,
  25628. feature.*
  25629. FROM
  25630. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25631. 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';
  25632. --- ************************************************
  25633. --- *** relation: mutation_causing_polypeptide_n_terminal_elongation ***
  25634. --- *** relation type: VIEW ***
  25635. --- *** ***
  25636. --- *** . ***
  25637. --- ************************************************
  25638. ---
  25639. CREATE VIEW mutation_causing_polypeptide_n_terminal_elongation AS
  25640. SELECT
  25641. feature_id AS mutation_causing_polypeptide_n_terminal_elongation_id,
  25642. feature.*
  25643. FROM
  25644. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25645. 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';
  25646. --- ************************************************
  25647. --- *** relation: mutation_causing_polypeptide_c_terminal_elongation ***
  25648. --- *** relation type: VIEW ***
  25649. --- *** ***
  25650. --- *** . ***
  25651. --- ************************************************
  25652. ---
  25653. CREATE VIEW mutation_causing_polypeptide_c_terminal_elongation AS
  25654. SELECT
  25655. feature_id AS mutation_causing_polypeptide_c_terminal_elongation_id,
  25656. feature.*
  25657. FROM
  25658. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25659. 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';
  25660. --- ************************************************
  25661. --- *** relation: sequence_variant_affecting_level_of_translational_product ***
  25662. --- *** relation type: VIEW ***
  25663. --- *** ***
  25664. --- ************************************************
  25665. ---
  25666. CREATE VIEW sequence_variant_affecting_level_of_translational_product AS
  25667. SELECT
  25668. feature_id AS sequence_variant_affecting_level_of_translational_product_id,
  25669. feature.*
  25670. FROM
  25671. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25672. 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';
  25673. --- ************************************************
  25674. --- *** relation: sequence_variant_decreasing_level_of_translation_product ***
  25675. --- *** relation type: VIEW ***
  25676. --- *** ***
  25677. --- ************************************************
  25678. ---
  25679. CREATE VIEW sequence_variant_decreasing_level_of_translation_product AS
  25680. SELECT
  25681. feature_id AS sequence_variant_decreasing_level_of_translation_product_id,
  25682. feature.*
  25683. FROM
  25684. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25685. WHERE cvterm.name = 'sequence_variant_decreasing_level_of_translation_product';
  25686. --- ************************************************
  25687. --- *** relation: sequence_variant_increasing_level_of_translation_product ***
  25688. --- *** relation type: VIEW ***
  25689. --- *** ***
  25690. --- ************************************************
  25691. ---
  25692. CREATE VIEW sequence_variant_increasing_level_of_translation_product AS
  25693. SELECT
  25694. feature_id AS sequence_variant_increasing_level_of_translation_product_id,
  25695. feature.*
  25696. FROM
  25697. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25698. WHERE cvterm.name = 'sequence_variant_increasing_level_of_translation_product';
  25699. --- ************************************************
  25700. --- *** relation: sequence_variant_affecting_polypeptide_amino_acid_sequence ***
  25701. --- *** relation type: VIEW ***
  25702. --- *** ***
  25703. --- ************************************************
  25704. ---
  25705. CREATE VIEW sequence_variant_affecting_polypeptide_amino_acid_sequence AS
  25706. SELECT
  25707. feature_id AS sequence_variant_affecting_polypeptide_amino_acid_sequence_id,
  25708. feature.*
  25709. FROM
  25710. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25711. 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';
  25712. --- ************************************************
  25713. --- *** relation: mutation_causing_inframe_polypeptide_n_terminal_elongation ***
  25714. --- *** relation type: VIEW ***
  25715. --- *** ***
  25716. --- ************************************************
  25717. ---
  25718. CREATE VIEW mutation_causing_inframe_polypeptide_n_terminal_elongation AS
  25719. SELECT
  25720. feature_id AS mutation_causing_inframe_polypeptide_n_terminal_elongation_id,
  25721. feature.*
  25722. FROM
  25723. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25724. WHERE cvterm.name = 'mutation_causing_inframe_polypeptide_N_terminal_elongation';
  25725. --- ************************************************
  25726. --- *** relation: mutation_causing_out_of_frame_polypeptide_n_terminal_elong ***
  25727. --- *** relation type: VIEW ***
  25728. --- *** ***
  25729. --- ************************************************
  25730. ---
  25731. CREATE VIEW mutation_causing_out_of_frame_polypeptide_n_terminal_elong AS
  25732. SELECT
  25733. feature_id AS mutation_causing_out_of_frame_polypeptide_n_terminal_elong_id,
  25734. feature.*
  25735. FROM
  25736. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25737. WHERE cvterm.name = 'mutation_causing_out_of_frame_polypeptide_N_terminal_elongation';
  25738. --- ************************************************
  25739. --- *** relation: mutaton_causing_inframe_polypeptide_c_terminal_elongation ***
  25740. --- *** relation type: VIEW ***
  25741. --- *** ***
  25742. --- ************************************************
  25743. ---
  25744. CREATE VIEW mutaton_causing_inframe_polypeptide_c_terminal_elongation AS
  25745. SELECT
  25746. feature_id AS mutaton_causing_inframe_polypeptide_c_terminal_elongation_id,
  25747. feature.*
  25748. FROM
  25749. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25750. WHERE cvterm.name = 'mutaton_causing_inframe_polypeptide_C_terminal_elongation';
  25751. --- ************************************************
  25752. --- *** relation: mutation_causing_out_of_frame_polypeptide_c_terminal_elong ***
  25753. --- *** relation type: VIEW ***
  25754. --- *** ***
  25755. --- ************************************************
  25756. ---
  25757. CREATE VIEW mutation_causing_out_of_frame_polypeptide_c_terminal_elong AS
  25758. SELECT
  25759. feature_id AS mutation_causing_out_of_frame_polypeptide_c_terminal_elong_id,
  25760. feature.*
  25761. FROM
  25762. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25763. WHERE cvterm.name = 'mutation_causing_out_of_frame_polypeptide_C_terminal_elongation';
  25764. --- ************************************************
  25765. --- *** relation: frame_restoring_sequence_variant ***
  25766. --- *** relation type: VIEW ***
  25767. --- *** ***
  25768. --- *** A mutation that reverts the sequence of ***
  25769. --- *** a previous frameshift mutation back to t ***
  25770. --- *** he initial frame. ***
  25771. --- ************************************************
  25772. ---
  25773. CREATE VIEW frame_restoring_sequence_variant AS
  25774. SELECT
  25775. feature_id AS frame_restoring_sequence_variant_id,
  25776. feature.*
  25777. FROM
  25778. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25779. WHERE cvterm.name = 'frame_restoring_sequence_variant';
  25780. --- ************************************************
  25781. --- *** relation: sequence_variant_affecting_3d_structure_of_polypeptide ***
  25782. --- *** relation type: VIEW ***
  25783. --- *** ***
  25784. --- *** A mutation that changes the amino acid s ***
  25785. --- *** equence of the peptide in such a way tha ***
  25786. --- *** t it changes the 3D structure of the mol ***
  25787. --- *** ecule. ***
  25788. --- ************************************************
  25789. ---
  25790. CREATE VIEW sequence_variant_affecting_3d_structure_of_polypeptide AS
  25791. SELECT
  25792. feature_id AS sequence_variant_affecting_3d_structure_of_polypeptide_id,
  25793. feature.*
  25794. FROM
  25795. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25796. 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';
  25797. --- ************************************************
  25798. --- *** relation: sequence_variant_causing_no_3d_structural_change ***
  25799. --- *** relation type: VIEW ***
  25800. --- *** ***
  25801. --- ************************************************
  25802. ---
  25803. CREATE VIEW sequence_variant_causing_no_3d_structural_change AS
  25804. SELECT
  25805. feature_id AS sequence_variant_causing_no_3d_structural_change_id,
  25806. feature.*
  25807. FROM
  25808. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25809. WHERE cvterm.name = 'sequence_variant_causing_no_3D_structural_change';
  25810. --- ************************************************
  25811. --- *** relation: seq_variant_causing_uncharacterised_3d_structural_change ***
  25812. --- *** relation type: VIEW ***
  25813. --- *** ***
  25814. --- ************************************************
  25815. ---
  25816. CREATE VIEW seq_variant_causing_uncharacterised_3d_structural_change AS
  25817. SELECT
  25818. feature_id AS seq_variant_causing_uncharacterised_3d_structural_change_id,
  25819. feature.*
  25820. FROM
  25821. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25822. WHERE cvterm.name = 'sequence_variant_causing_partially_characterised_3D_structural_change' OR cvterm.name = 'sequence_variant_causing_uncharacterised_3D_structural_change';
  25823. --- ************************************************
  25824. --- *** relation: seq_var_causing_partly_characterised_3d_structural_change ***
  25825. --- *** relation type: VIEW ***
  25826. --- *** ***
  25827. --- ************************************************
  25828. ---
  25829. CREATE VIEW seq_var_causing_partly_characterised_3d_structural_change AS
  25830. SELECT
  25831. feature_id AS seq_var_causing_partly_characterised_3d_structural_change_id,
  25832. feature.*
  25833. FROM
  25834. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25835. WHERE cvterm.name = 'sequence_variant_causing_partially_characterised_3D_structural_change';
  25836. --- ************************************************
  25837. --- *** relation: sequence_variant_causing_complex_3d_structural_change ***
  25838. --- *** relation type: VIEW ***
  25839. --- *** ***
  25840. --- ************************************************
  25841. ---
  25842. CREATE VIEW sequence_variant_causing_complex_3d_structural_change AS
  25843. SELECT
  25844. feature_id AS sequence_variant_causing_complex_3d_structural_change_id,
  25845. feature.*
  25846. FROM
  25847. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25848. WHERE cvterm.name = 'sequence_variant_causing_complex_3D_structural_change';
  25849. --- ************************************************
  25850. --- *** relation: sequence_variant_causing_conformational_change ***
  25851. --- *** relation type: VIEW ***
  25852. --- *** ***
  25853. --- ************************************************
  25854. ---
  25855. CREATE VIEW sequence_variant_causing_conformational_change AS
  25856. SELECT
  25857. feature_id AS sequence_variant_causing_conformational_change_id,
  25858. feature.*
  25859. FROM
  25860. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25861. WHERE cvterm.name = 'sequence_variant_causing_conformational_change';
  25862. --- ************************************************
  25863. --- *** relation: sequence_variant_affecting_polypeptide_function ***
  25864. --- *** relation type: VIEW ***
  25865. --- *** ***
  25866. --- ************************************************
  25867. ---
  25868. CREATE VIEW sequence_variant_affecting_polypeptide_function AS
  25869. SELECT
  25870. feature_id AS sequence_variant_affecting_polypeptide_function_id,
  25871. feature.*
  25872. FROM
  25873. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25874. 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';
  25875. --- ************************************************
  25876. --- *** relation: sequence_variant_causing_loss_of_function_of_polypeptide ***
  25877. --- *** relation type: VIEW ***
  25878. --- *** ***
  25879. --- ************************************************
  25880. ---
  25881. CREATE VIEW sequence_variant_causing_loss_of_function_of_polypeptide AS
  25882. SELECT
  25883. feature_id AS sequence_variant_causing_loss_of_function_of_polypeptide_id,
  25884. feature.*
  25885. FROM
  25886. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25887. 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';
  25888. --- ************************************************
  25889. --- *** relation: sequence_variant_causing_inactive_ligand_binding_site ***
  25890. --- *** relation type: VIEW ***
  25891. --- *** ***
  25892. --- ************************************************
  25893. ---
  25894. CREATE VIEW sequence_variant_causing_inactive_ligand_binding_site AS
  25895. SELECT
  25896. feature_id AS sequence_variant_causing_inactive_ligand_binding_site_id,
  25897. feature.*
  25898. FROM
  25899. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25900. WHERE cvterm.name = 'sequence_variant_causing_inactive_catalytic_site' OR cvterm.name = 'sequence_variant_causing_inactive_ligand_binding_site';
  25901. --- ************************************************
  25902. --- *** relation: sequence_variant_causing_inactive_catalytic_site ***
  25903. --- *** relation type: VIEW ***
  25904. --- *** ***
  25905. --- ************************************************
  25906. ---
  25907. CREATE VIEW sequence_variant_causing_inactive_catalytic_site AS
  25908. SELECT
  25909. feature_id AS sequence_variant_causing_inactive_catalytic_site_id,
  25910. feature.*
  25911. FROM
  25912. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25913. WHERE cvterm.name = 'sequence_variant_causing_inactive_catalytic_site';
  25914. --- ************************************************
  25915. --- *** relation: sequence_variant_causing_polypeptide_localization_change ***
  25916. --- *** relation type: VIEW ***
  25917. --- *** ***
  25918. --- ************************************************
  25919. ---
  25920. CREATE VIEW sequence_variant_causing_polypeptide_localization_change AS
  25921. SELECT
  25922. feature_id AS sequence_variant_causing_polypeptide_localization_change_id,
  25923. feature.*
  25924. FROM
  25925. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25926. WHERE cvterm.name = 'sequence_variant_causing_polypeptide_localization_change';
  25927. --- ************************************************
  25928. --- *** relation: seq_variant_causing_polypeptide_post_trans_processing_change ***
  25929. --- *** relation type: VIEW ***
  25930. --- *** ***
  25931. --- ************************************************
  25932. ---
  25933. CREATE VIEW seq_variant_causing_polypeptide_post_trans_processing_change AS
  25934. SELECT
  25935. feature_id AS seq_variant_causing_polypeptide_post_trans_processing_change_id,
  25936. feature.*
  25937. FROM
  25938. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25939. WHERE cvterm.name = 'sequence_variant_causing_polypeptide_post_translational_processing_change';
  25940. --- ************************************************
  25941. --- *** relation: seq_variant_causing_part_loss_of_function_of_polypeptide ***
  25942. --- *** relation type: VIEW ***
  25943. --- *** ***
  25944. --- ************************************************
  25945. ---
  25946. CREATE VIEW seq_variant_causing_part_loss_of_function_of_polypeptide AS
  25947. SELECT
  25948. feature_id AS seq_variant_causing_part_loss_of_function_of_polypeptide_id,
  25949. feature.*
  25950. FROM
  25951. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25952. WHERE cvterm.name = 'sequence_variant_causing_partial_loss_of_function_of_polypeptide';
  25953. --- ************************************************
  25954. --- *** relation: sequence_variant_causing_gain_of_function_of_polypeptide ***
  25955. --- *** relation type: VIEW ***
  25956. --- *** ***
  25957. --- ************************************************
  25958. ---
  25959. CREATE VIEW sequence_variant_causing_gain_of_function_of_polypeptide AS
  25960. SELECT
  25961. feature_id AS sequence_variant_causing_gain_of_function_of_polypeptide_id,
  25962. feature.*
  25963. FROM
  25964. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25965. WHERE cvterm.name = 'sequence_variant_causing_gain_of_function_of_polypeptide';
  25966. --- ************************************************
  25967. --- *** relation: sequence_variant_affecting_transcript_secondary_structure ***
  25968. --- *** relation type: VIEW ***
  25969. --- *** ***
  25970. --- *** A sequence variant that affects the seco ***
  25971. --- *** ndary structure (folding) of the RNA tra ***
  25972. --- *** nscript molecule. ***
  25973. --- ************************************************
  25974. ---
  25975. CREATE VIEW sequence_variant_affecting_transcript_secondary_structure AS
  25976. SELECT
  25977. feature_id AS sequence_variant_affecting_transcript_secondary_structure_id,
  25978. feature.*
  25979. FROM
  25980. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25981. WHERE cvterm.name = 'sequence_variant_causing_compensatory_transcript_secondary_structure_mutation' OR cvterm.name = 'sequence_variant_affecting_transcript_secondary_structure';
  25982. --- ************************************************
  25983. --- *** relation: seq_variant_caus_compensatory_trans_secondary_structure_mut ***
  25984. --- *** relation type: VIEW ***
  25985. --- *** ***
  25986. --- ************************************************
  25987. ---
  25988. CREATE VIEW seq_variant_caus_compensatory_trans_secondary_structure_mut AS
  25989. SELECT
  25990. feature_id AS seq_variant_caus_compensatory_trans_secondary_structure_mut_id,
  25991. feature.*
  25992. FROM
  25993. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25994. WHERE cvterm.name = 'sequence_variant_causing_compensatory_transcript_secondary_structure_mutation';
  25995. --- ************************************************
  25996. --- *** relation: sequence_variant_effect ***
  25997. --- *** relation type: VIEW ***
  25998. --- *** ***
  25999. --- *** The effect of a change in nucleotide seq ***
  26000. --- *** uence. ***
  26001. --- ************************************************
  26002. ---
  26003. CREATE VIEW sequence_variant_effect AS
  26004. SELECT
  26005. feature_id AS sequence_variant_effect_id,
  26006. feature.*
  26007. FROM
  26008. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26009. 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';
  26010. --- ************************************************
  26011. --- *** relation: sequence_variant_causing_polypeptide_fusion ***
  26012. --- *** relation type: VIEW ***
  26013. --- *** ***
  26014. --- ************************************************
  26015. ---
  26016. CREATE VIEW sequence_variant_causing_polypeptide_fusion AS
  26017. SELECT
  26018. feature_id AS sequence_variant_causing_polypeptide_fusion_id,
  26019. feature.*
  26020. FROM
  26021. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26022. WHERE cvterm.name = 'sequence_variant_causing_polypeptide_fusion';
  26023. --- ************************************************
  26024. --- *** relation: autosynaptic_chromosome ***
  26025. --- *** relation type: VIEW ***
  26026. --- *** ***
  26027. --- ************************************************
  26028. ---
  26029. CREATE VIEW autosynaptic_chromosome AS
  26030. SELECT
  26031. feature_id AS autosynaptic_chromosome_id,
  26032. feature.*
  26033. FROM
  26034. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26035. WHERE cvterm.name = 'dexstrosynaptic_chromosome' OR cvterm.name = 'laevosynaptic_chromosome' OR cvterm.name = 'autosynaptic_chromosome';
  26036. --- ************************************************
  26037. --- *** relation: homo_compound_chromosome ***
  26038. --- *** relation type: VIEW ***
  26039. --- *** ***
  26040. --- ************************************************
  26041. ---
  26042. CREATE VIEW homo_compound_chromosome AS
  26043. SELECT
  26044. feature_id AS homo_compound_chromosome_id,
  26045. feature.*
  26046. FROM
  26047. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26048. WHERE cvterm.name = 'homo_compound_chromosome';
  26049. --- ************************************************
  26050. --- *** relation: hetero_compound_chromosome ***
  26051. --- *** relation type: VIEW ***
  26052. --- *** ***
  26053. --- ************************************************
  26054. ---
  26055. CREATE VIEW hetero_compound_chromosome AS
  26056. SELECT
  26057. feature_id AS hetero_compound_chromosome_id,
  26058. feature.*
  26059. FROM
  26060. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26061. WHERE cvterm.name = 'hetero_compound_chromosome';
  26062. --- ************************************************
  26063. --- *** relation: chromosome_fission ***
  26064. --- *** relation type: VIEW ***
  26065. --- *** ***
  26066. --- ************************************************
  26067. ---
  26068. CREATE VIEW chromosome_fission AS
  26069. SELECT
  26070. feature_id AS chromosome_fission_id,
  26071. feature.*
  26072. FROM
  26073. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26074. WHERE cvterm.name = 'chromosome_fission';
  26075. --- ************************************************
  26076. --- *** relation: dexstrosynaptic_chromosome ***
  26077. --- *** relation type: VIEW ***
  26078. --- *** ***
  26079. --- ************************************************
  26080. ---
  26081. CREATE VIEW dexstrosynaptic_chromosome AS
  26082. SELECT
  26083. feature_id AS dexstrosynaptic_chromosome_id,
  26084. feature.*
  26085. FROM
  26086. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26087. WHERE cvterm.name = 'dexstrosynaptic_chromosome';
  26088. --- ************************************************
  26089. --- *** relation: laevosynaptic_chromosome ***
  26090. --- *** relation type: VIEW ***
  26091. --- *** ***
  26092. --- ************************************************
  26093. ---
  26094. CREATE VIEW laevosynaptic_chromosome AS
  26095. SELECT
  26096. feature_id AS laevosynaptic_chromosome_id,
  26097. feature.*
  26098. FROM
  26099. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26100. WHERE cvterm.name = 'laevosynaptic_chromosome';
  26101. --- ************************************************
  26102. --- *** relation: free_duplication ***
  26103. --- *** relation type: VIEW ***
  26104. --- *** ***
  26105. --- ************************************************
  26106. ---
  26107. CREATE VIEW free_duplication AS
  26108. SELECT
  26109. feature_id AS free_duplication_id,
  26110. feature.*
  26111. FROM
  26112. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26113. WHERE cvterm.name = 'free_ring_duplication' OR cvterm.name = 'free_duplication';
  26114. --- ************************************************
  26115. --- *** relation: free_ring_duplication ***
  26116. --- *** relation type: VIEW ***
  26117. --- *** ***
  26118. --- ************************************************
  26119. ---
  26120. CREATE VIEW free_ring_duplication AS
  26121. SELECT
  26122. feature_id AS free_ring_duplication_id,
  26123. feature.*
  26124. FROM
  26125. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26126. WHERE cvterm.name = 'free_ring_duplication';
  26127. --- ************************************************
  26128. --- *** relation: complex_chromosomal_mutation ***
  26129. --- *** relation type: VIEW ***
  26130. --- *** ***
  26131. --- ************************************************
  26132. ---
  26133. CREATE VIEW complex_chromosomal_mutation AS
  26134. SELECT
  26135. feature_id AS complex_chromosomal_mutation_id,
  26136. feature.*
  26137. FROM
  26138. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26139. WHERE cvterm.name = 'complex_chromosomal_mutation';
  26140. --- ************************************************
  26141. --- *** relation: deficient_translocation ***
  26142. --- *** relation type: VIEW ***
  26143. --- *** ***
  26144. --- *** A translocation in which one of the four ***
  26145. --- *** broken ends loses a segment before re-j ***
  26146. --- *** oining. ***
  26147. --- ************************************************
  26148. ---
  26149. CREATE VIEW deficient_translocation AS
  26150. SELECT
  26151. feature_id AS deficient_translocation_id,
  26152. feature.*
  26153. FROM
  26154. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26155. WHERE cvterm.name = 'deficient_translocation';
  26156. --- ************************************************
  26157. --- *** relation: inversion_cum_translocation ***
  26158. --- *** relation type: VIEW ***
  26159. --- *** ***
  26160. --- *** The first two breaks are in the same chr ***
  26161. --- *** omosome, and the region between them is ***
  26162. --- *** rejoined in inverted order to the other ***
  26163. --- *** side of the first break, such that both ***
  26164. --- *** sides of break one are present on the sa ***
  26165. --- *** me chromosome. The remaining free ends a ***
  26166. --- *** re joined as a translocation with those ***
  26167. --- *** resulting from the third break. ***
  26168. --- ************************************************
  26169. ---
  26170. CREATE VIEW inversion_cum_translocation AS
  26171. SELECT
  26172. feature_id AS inversion_cum_translocation_id,
  26173. feature.*
  26174. FROM
  26175. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26176. WHERE cvterm.name = 'inversion_cum_translocation';
  26177. --- ************************************************
  26178. --- *** relation: bipartite_duplication ***
  26179. --- *** relation type: VIEW ***
  26180. --- *** ***
  26181. --- *** The (large) region between the first two ***
  26182. --- *** breaks listed is lost, and the two flan ***
  26183. --- *** king segments (one of them centric) are ***
  26184. --- *** joined as a translocation to the free en ***
  26185. --- *** ds resulting from the third break. ***
  26186. --- ************************************************
  26187. ---
  26188. CREATE VIEW bipartite_duplication AS
  26189. SELECT
  26190. feature_id AS bipartite_duplication_id,
  26191. feature.*
  26192. FROM
  26193. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26194. WHERE cvterm.name = 'bipartite_duplication';
  26195. --- ************************************************
  26196. --- *** relation: cyclic_translocation ***
  26197. --- *** relation type: VIEW ***
  26198. --- *** ***
  26199. --- *** Three breaks in three different chromoso ***
  26200. --- *** mes. The centric segment resulting from ***
  26201. --- *** the first break listed is joined to the ***
  26202. --- *** acentric segment resulting from the seco ***
  26203. --- *** nd, rather than the third. ***
  26204. --- ************************************************
  26205. ---
  26206. CREATE VIEW cyclic_translocation AS
  26207. SELECT
  26208. feature_id AS cyclic_translocation_id,
  26209. feature.*
  26210. FROM
  26211. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26212. WHERE cvterm.name = 'cyclic_translocation';
  26213. --- ************************************************
  26214. --- *** relation: bipartite_inversion ***
  26215. --- *** relation type: VIEW ***
  26216. --- *** ***
  26217. --- *** Three breaks in the same chromosome; bot ***
  26218. --- *** h central segments are inverted in place ***
  26219. --- *** (i.e., they are not transposed). ***
  26220. --- ************************************************
  26221. ---
  26222. CREATE VIEW bipartite_inversion AS
  26223. SELECT
  26224. feature_id AS bipartite_inversion_id,
  26225. feature.*
  26226. FROM
  26227. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26228. WHERE cvterm.name = 'bipartite_inversion';
  26229. --- ************************************************
  26230. --- *** relation: uninvert_insert_dup ***
  26231. --- *** relation type: VIEW ***
  26232. --- *** ***
  26233. --- *** A copy of the segment between the first ***
  26234. --- *** two breaks listed is inserted at the thi ***
  26235. --- *** rd break; the insertion is in cytologica ***
  26236. --- *** lly the same orientation as its flanking ***
  26237. --- *** segments. ***
  26238. --- ************************************************
  26239. ---
  26240. CREATE VIEW uninvert_insert_dup AS
  26241. SELECT
  26242. feature_id AS uninvert_insert_dup_id,
  26243. feature.*
  26244. FROM
  26245. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26246. WHERE cvterm.name = 'uninverted_insertional_duplication';
  26247. --- ************************************************
  26248. --- *** relation: inverted_insertional_duplication ***
  26249. --- *** relation type: VIEW ***
  26250. --- *** ***
  26251. --- *** A copy of the segment between the first ***
  26252. --- *** two breaks listed is inserted at the thi ***
  26253. --- *** rd break; the insertion is in cytologica ***
  26254. --- *** lly inverted orientation with respect to ***
  26255. --- *** its flanking segments. ***
  26256. --- ************************************************
  26257. ---
  26258. CREATE VIEW inverted_insertional_duplication AS
  26259. SELECT
  26260. feature_id AS inverted_insertional_duplication_id,
  26261. feature.*
  26262. FROM
  26263. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26264. WHERE cvterm.name = 'inverted_insertional_duplication';
  26265. --- ************************************************
  26266. --- *** relation: insertional_duplication ***
  26267. --- *** relation type: VIEW ***
  26268. --- *** ***
  26269. --- *** A chromosome duplication involving the i ***
  26270. --- *** nsertion of a duplicated region. ***
  26271. --- ************************************************
  26272. ---
  26273. CREATE VIEW insertional_duplication AS
  26274. SELECT
  26275. feature_id AS insertional_duplication_id,
  26276. feature.*
  26277. FROM
  26278. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26279. WHERE cvterm.name = 'uninverted_insertional_duplication' OR cvterm.name = 'inverted_insertional_duplication' OR cvterm.name = 'unoriented_insertional_duplication' OR cvterm.name = 'insertional_duplication';
  26280. --- ************************************************
  26281. --- *** relation: interchromosomal_transposition ***
  26282. --- *** relation type: VIEW ***
  26283. --- *** ***
  26284. --- ************************************************
  26285. ---
  26286. CREATE VIEW interchromosomal_transposition AS
  26287. SELECT
  26288. feature_id AS interchromosomal_transposition_id,
  26289. feature.*
  26290. FROM
  26291. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26292. 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';
  26293. --- ************************************************
  26294. --- *** relation: invert_inter_transposition ***
  26295. --- *** relation type: VIEW ***
  26296. --- *** ***
  26297. --- ************************************************
  26298. ---
  26299. CREATE VIEW invert_inter_transposition AS
  26300. SELECT
  26301. feature_id AS invert_inter_transposition_id,
  26302. feature.*
  26303. FROM
  26304. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26305. WHERE cvterm.name = 'inverted_interchromosomal_transposition';
  26306. --- ************************************************
  26307. --- *** relation: uninvert_inter_transposition ***
  26308. --- *** relation type: VIEW ***
  26309. --- *** ***
  26310. --- ************************************************
  26311. ---
  26312. CREATE VIEW uninvert_inter_transposition AS
  26313. SELECT
  26314. feature_id AS uninvert_inter_transposition_id,
  26315. feature.*
  26316. FROM
  26317. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26318. WHERE cvterm.name = 'uninverted_interchromosomal_transposition';
  26319. --- ************************************************
  26320. --- *** relation: invert_intra_transposition ***
  26321. --- *** relation type: VIEW ***
  26322. --- *** ***
  26323. --- *** The segment between the first two breaks ***
  26324. --- *** listed is removed and inserted at the t ***
  26325. --- *** hird break; the insertion is in cytologi ***
  26326. --- *** cally inverted orientation with respect ***
  26327. --- *** to its flanking segments. ***
  26328. --- ************************************************
  26329. ---
  26330. CREATE VIEW invert_intra_transposition AS
  26331. SELECT
  26332. feature_id AS invert_intra_transposition_id,
  26333. feature.*
  26334. FROM
  26335. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26336. WHERE cvterm.name = 'inverted_intrachromosomal_transposition';
  26337. --- ************************************************
  26338. --- *** relation: uninvert_intra_transposition ***
  26339. --- *** relation type: VIEW ***
  26340. --- *** ***
  26341. --- *** The segment between the first two breaks ***
  26342. --- *** listed is removed and inserted at the t ***
  26343. --- *** hird break; the insertion is in cytologi ***
  26344. --- *** cally the same orientation as its flanki ***
  26345. --- *** ng segments. ***
  26346. --- ************************************************
  26347. ---
  26348. CREATE VIEW uninvert_intra_transposition AS
  26349. SELECT
  26350. feature_id AS uninvert_intra_transposition_id,
  26351. feature.*
  26352. FROM
  26353. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26354. WHERE cvterm.name = 'uninverted_intrachromosomal_transposition';
  26355. --- ************************************************
  26356. --- *** relation: unorient_insert_dup ***
  26357. --- *** relation type: VIEW ***
  26358. --- *** ***
  26359. --- *** A copy of the segment between the first ***
  26360. --- *** two breaks listed is inserted at the thi ***
  26361. --- *** rd break; the orientation of the inserti ***
  26362. --- *** on with respect to its flanking segments ***
  26363. --- *** is not recorded. ***
  26364. --- ************************************************
  26365. ---
  26366. CREATE VIEW unorient_insert_dup AS
  26367. SELECT
  26368. feature_id AS unorient_insert_dup_id,
  26369. feature.*
  26370. FROM
  26371. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26372. WHERE cvterm.name = 'unoriented_insertional_duplication';
  26373. --- ************************************************
  26374. --- *** relation: unorient_inter_transposition ***
  26375. --- *** relation type: VIEW ***
  26376. --- *** ***
  26377. --- ************************************************
  26378. ---
  26379. CREATE VIEW unorient_inter_transposition AS
  26380. SELECT
  26381. feature_id AS unorient_inter_transposition_id,
  26382. feature.*
  26383. FROM
  26384. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26385. WHERE cvterm.name = 'unorientated_interchromosomal_transposition';
  26386. --- ************************************************
  26387. --- *** relation: unorient_intra_transposition ***
  26388. --- *** relation type: VIEW ***
  26389. --- *** ***
  26390. --- *** The segment between the first two breaks ***
  26391. --- *** listed is removed and inserted at the t ***
  26392. --- *** hird break; the orientation of the inser ***
  26393. --- *** tion with respect to its flanking segmen ***
  26394. --- *** ts is not recorded. ***
  26395. --- ************************************************
  26396. ---
  26397. CREATE VIEW unorient_intra_transposition AS
  26398. SELECT
  26399. feature_id AS unorient_intra_transposition_id,
  26400. feature.*
  26401. FROM
  26402. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26403. WHERE cvterm.name = 'unorientated_intrachromosomal_transposition';
  26404. --- ************************************************
  26405. --- *** relation: uncharacterised_chromosomal_mutation ***
  26406. --- *** relation type: VIEW ***
  26407. --- *** ***
  26408. --- ************************************************
  26409. ---
  26410. CREATE VIEW uncharacterised_chromosomal_mutation AS
  26411. SELECT
  26412. feature_id AS uncharacterised_chromosomal_mutation_id,
  26413. feature.*
  26414. FROM
  26415. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26416. WHERE cvterm.name = 'partially_characterised_chromosomal_mutation' OR cvterm.name = 'uncharacterised_chromosomal_mutation';
  26417. --- ************************************************
  26418. --- *** relation: deficient_inversion ***
  26419. --- *** relation type: VIEW ***
  26420. --- *** ***
  26421. --- *** Three breaks in the same chromosome; one ***
  26422. --- *** central region lost, the other inverted ***
  26423. --- *** . ***
  26424. --- ************************************************
  26425. ---
  26426. CREATE VIEW deficient_inversion AS
  26427. SELECT
  26428. feature_id AS deficient_inversion_id,
  26429. feature.*
  26430. FROM
  26431. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26432. WHERE cvterm.name = 'deficient_inversion';
  26433. --- ************************************************
  26434. --- *** relation: tandem_duplication ***
  26435. --- *** relation type: VIEW ***
  26436. --- *** ***
  26437. --- ************************************************
  26438. ---
  26439. CREATE VIEW tandem_duplication AS
  26440. SELECT
  26441. feature_id AS tandem_duplication_id,
  26442. feature.*
  26443. FROM
  26444. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26445. WHERE cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' OR cvterm.name = 'tandem_duplication';
  26446. --- ************************************************
  26447. --- *** relation: partially_characterised_chromosomal_mutation ***
  26448. --- *** relation type: VIEW ***
  26449. --- *** ***
  26450. --- ************************************************
  26451. ---
  26452. CREATE VIEW partially_characterised_chromosomal_mutation AS
  26453. SELECT
  26454. feature_id AS partially_characterised_chromosomal_mutation_id,
  26455. feature.*
  26456. FROM
  26457. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26458. WHERE cvterm.name = 'partially_characterised_chromosomal_mutation';
  26459. --- ************************************************
  26460. --- *** relation: seq_variant_causing_uncharacterised_change_in_transcript ***
  26461. --- *** relation type: VIEW ***
  26462. --- *** ***
  26463. --- *** The nature of the mutation event is eith ***
  26464. --- *** er uncharacterised or only partially cha ***
  26465. --- *** racterised. ***
  26466. --- ************************************************
  26467. ---
  26468. CREATE VIEW seq_variant_causing_uncharacterised_change_in_transcript AS
  26469. SELECT
  26470. feature_id AS seq_variant_causing_uncharacterised_change_in_transcript_id,
  26471. feature.*
  26472. FROM
  26473. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26474. WHERE cvterm.name = 'sequence_variant_causing_partially_characterised_change_in_transcript' OR cvterm.name = 'sequence_variant_causing_uncharacterised_change_in_transcript';
  26475. --- ************************************************
  26476. --- *** relation: seq_variant_causing_partly_characterised_change_in_trans ***
  26477. --- *** relation type: VIEW ***
  26478. --- *** ***
  26479. --- *** The nature of the mutation event is only ***
  26480. --- *** partially characterised. ***
  26481. --- ************************************************
  26482. ---
  26483. CREATE VIEW seq_variant_causing_partly_characterised_change_in_trans AS
  26484. SELECT
  26485. feature_id AS seq_variant_causing_partly_characterised_change_in_trans_id,
  26486. feature.*
  26487. FROM
  26488. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26489. WHERE cvterm.name = 'sequence_variant_causing_partially_characterised_change_in_transcript';
  26490. --- ************************************************
  26491. --- *** relation: sequence_variant_affecting_gene_structure ***
  26492. --- *** relation type: VIEW ***
  26493. --- *** ***
  26494. --- *** A sequence_variant_effect that changes t ***
  26495. --- *** he gene structure. ***
  26496. --- ************************************************
  26497. ---
  26498. CREATE VIEW sequence_variant_affecting_gene_structure AS
  26499. SELECT
  26500. feature_id AS sequence_variant_affecting_gene_structure_id,
  26501. feature.*
  26502. FROM
  26503. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26504. WHERE cvterm.name = 'sequence_variant_causing_gene_fusion' OR cvterm.name = 'sequence_variant_affecting_gene_structure';
  26505. --- ************************************************
  26506. --- *** relation: sequence_variant_causing_gene_fusion ***
  26507. --- *** relation type: VIEW ***
  26508. --- *** ***
  26509. --- *** A sequence_variant_effect that changes t ***
  26510. --- *** he gene structure by causing a fusion to ***
  26511. --- *** another gene. ***
  26512. --- ************************************************
  26513. ---
  26514. CREATE VIEW sequence_variant_causing_gene_fusion AS
  26515. SELECT
  26516. feature_id AS sequence_variant_causing_gene_fusion_id,
  26517. feature.*
  26518. FROM
  26519. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26520. WHERE cvterm.name = 'sequence_variant_causing_gene_fusion';
  26521. --- ************************************************
  26522. --- *** relation: chromosome_number_variation ***
  26523. --- *** relation type: VIEW ***
  26524. --- *** ***
  26525. --- *** A kind of chromosome variation where the ***
  26526. --- *** chromosome complement is not an exact m ***
  26527. --- *** ultiple of the haploid number. ***
  26528. --- ************************************************
  26529. ---
  26530. CREATE VIEW chromosome_number_variation AS
  26531. SELECT
  26532. feature_id AS chromosome_number_variation_id,
  26533. feature.*
  26534. FROM
  26535. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26536. 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';
  26537. --- ************************************************
  26538. --- *** relation: chromosome_structure_variation ***
  26539. --- *** relation type: VIEW ***
  26540. --- *** ***
  26541. --- ************************************************
  26542. ---
  26543. CREATE VIEW chromosome_structure_variation AS
  26544. SELECT
  26545. feature_id AS chromosome_structure_variation_id,
  26546. feature.*
  26547. FROM
  26548. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26549. 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';
  26550. --- ************************************************
  26551. --- *** relation: sequence_variant_causes_exon_loss ***
  26552. --- *** relation type: VIEW ***
  26553. --- *** ***
  26554. --- *** A sequence variant affecting splicing an ***
  26555. --- *** d causes an exon loss. ***
  26556. --- ************************************************
  26557. ---
  26558. CREATE VIEW sequence_variant_causes_exon_loss AS
  26559. SELECT
  26560. feature_id AS sequence_variant_causes_exon_loss_id,
  26561. feature.*
  26562. FROM
  26563. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26564. WHERE cvterm.name = 'sequence_variant_causes_exon_loss';
  26565. --- ************************************************
  26566. --- *** relation: sequence_variant_causes_intron_gain ***
  26567. --- *** relation type: VIEW ***
  26568. --- *** ***
  26569. --- *** A sequence variant effect, causing an in ***
  26570. --- *** tron to be gained by the processed trans ***
  26571. --- *** cript; usually a result of a donor accep ***
  26572. --- *** tor mutation (SO:1000072). ***
  26573. --- ************************************************
  26574. ---
  26575. CREATE VIEW sequence_variant_causes_intron_gain AS
  26576. SELECT
  26577. feature_id AS sequence_variant_causes_intron_gain_id,
  26578. feature.*
  26579. FROM
  26580. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26581. WHERE cvterm.name = 'sequence_variant_causes_intron_gain';
  26582. --- ************************************************
  26583. --- *** relation: sequence_variant_causing_cryptic_splice_donor_activation ***
  26584. --- *** relation type: VIEW ***
  26585. --- *** ***
  26586. --- ************************************************
  26587. ---
  26588. CREATE VIEW sequence_variant_causing_cryptic_splice_donor_activation AS
  26589. SELECT
  26590. feature_id AS sequence_variant_causing_cryptic_splice_donor_activation_id,
  26591. feature.*
  26592. FROM
  26593. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26594. WHERE cvterm.name = 'sequence_variant_causing_cryptic_splice_donor_activation';
  26595. --- ************************************************
  26596. --- *** relation: sequence_variant_causing_cryptic_splice_acceptor_activation ***
  26597. --- *** relation type: VIEW ***
  26598. --- *** ***
  26599. --- ************************************************
  26600. ---
  26601. CREATE VIEW sequence_variant_causing_cryptic_splice_acceptor_activation AS
  26602. SELECT
  26603. feature_id AS sequence_variant_causing_cryptic_splice_acceptor_activation_id,
  26604. feature.*
  26605. FROM
  26606. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26607. WHERE cvterm.name = 'sequence_variant_causing_cryptic_splice_acceptor_activation';
  26608. --- ************************************************
  26609. --- *** relation: alternatively_spliced_transcript ***
  26610. --- *** relation type: VIEW ***
  26611. --- *** ***
  26612. --- *** A transcript that is alternatively splic ***
  26613. --- *** ed. ***
  26614. --- ************************************************
  26615. ---
  26616. CREATE VIEW alternatively_spliced_transcript AS
  26617. SELECT
  26618. feature_id AS alternatively_spliced_transcript_id,
  26619. feature.*
  26620. FROM
  26621. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26622. WHERE cvterm.name = 'alternatively_spliced_transcript';
  26623. --- ************************************************
  26624. --- *** relation: encodes_1_polypeptide ***
  26625. --- *** relation type: VIEW ***
  26626. --- *** ***
  26627. --- *** A gene that is alternately spliced, but ***
  26628. --- *** encodes only one polypeptide. ***
  26629. --- ************************************************
  26630. ---
  26631. CREATE VIEW encodes_1_polypeptide AS
  26632. SELECT
  26633. feature_id AS encodes_1_polypeptide_id,
  26634. feature.*
  26635. FROM
  26636. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26637. WHERE cvterm.name = 'encodes_1_polypeptide';
  26638. --- ************************************************
  26639. --- *** relation: encodes_greater_than_1_polypeptide ***
  26640. --- *** relation type: VIEW ***
  26641. --- *** ***
  26642. --- *** A gene that is alternately spliced, and ***
  26643. --- *** encodes more than one polypeptide. ***
  26644. --- ************************************************
  26645. ---
  26646. CREATE VIEW encodes_greater_than_1_polypeptide AS
  26647. SELECT
  26648. feature_id AS encodes_greater_than_1_polypeptide_id,
  26649. feature.*
  26650. FROM
  26651. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26652. 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';
  26653. --- ************************************************
  26654. --- *** relation: encodes_different_polypeptides_different_stop ***
  26655. --- *** relation type: VIEW ***
  26656. --- *** ***
  26657. --- *** A gene that is alternately spliced, and ***
  26658. --- *** encodes more than one polypeptide, that ***
  26659. --- *** have overlapping peptide sequences, but ***
  26660. --- *** use different stop codons. ***
  26661. --- ************************************************
  26662. ---
  26663. CREATE VIEW encodes_different_polypeptides_different_stop AS
  26664. SELECT
  26665. feature_id AS encodes_different_polypeptides_different_stop_id,
  26666. feature.*
  26667. FROM
  26668. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26669. WHERE cvterm.name = 'encodes_different_polypeptides_different_stop';
  26670. --- ************************************************
  26671. --- *** relation: encodes_overlapping_peptides_different_start ***
  26672. --- *** relation type: VIEW ***
  26673. --- *** ***
  26674. --- *** A gene that is alternately spliced, and ***
  26675. --- *** encodes more than one polypeptide, that ***
  26676. --- *** have overlapping peptide sequences, but ***
  26677. --- *** use different start codons. ***
  26678. --- ************************************************
  26679. ---
  26680. CREATE VIEW encodes_overlapping_peptides_different_start AS
  26681. SELECT
  26682. feature_id AS encodes_overlapping_peptides_different_start_id,
  26683. feature.*
  26684. FROM
  26685. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26686. WHERE cvterm.name = 'encodes_overlapping_peptides_different_start';
  26687. --- ************************************************
  26688. --- *** relation: encodes_disjoint_polypeptides ***
  26689. --- *** relation type: VIEW ***
  26690. --- *** ***
  26691. --- *** A gene that is alternately spliced, and ***
  26692. --- *** encodes more than one polypeptide, that ***
  26693. --- *** do not have overlapping peptide sequence ***
  26694. --- *** s. ***
  26695. --- ************************************************
  26696. ---
  26697. CREATE VIEW encodes_disjoint_polypeptides AS
  26698. SELECT
  26699. feature_id AS encodes_disjoint_polypeptides_id,
  26700. feature.*
  26701. FROM
  26702. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26703. WHERE cvterm.name = 'encodes_disjoint_polypeptides';
  26704. --- ************************************************
  26705. --- *** relation: encodes_overlapping_polypeptides_different_start_and_stop ***
  26706. --- *** relation type: VIEW ***
  26707. --- *** ***
  26708. --- *** A gene that is alternately spliced, and ***
  26709. --- *** encodes more than one polypeptide, that ***
  26710. --- *** have overlapping peptide sequences, but ***
  26711. --- *** use different start and stop codons. ***
  26712. --- ************************************************
  26713. ---
  26714. CREATE VIEW encodes_overlapping_polypeptides_different_start_and_stop AS
  26715. SELECT
  26716. feature_id AS encodes_overlapping_polypeptides_different_start_and_stop_id,
  26717. feature.*
  26718. FROM
  26719. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26720. WHERE cvterm.name = 'encodes_overlapping_polypeptides_different_start_and_stop';
  26721. --- ************************************************
  26722. --- *** relation: encodes_overlapping_peptides ***
  26723. --- *** relation type: VIEW ***
  26724. --- *** ***
  26725. --- *** A gene that is alternately spliced, and ***
  26726. --- *** encodes more than one polypeptide, that ***
  26727. --- *** have overlapping peptide sequences. ***
  26728. --- ************************************************
  26729. ---
  26730. CREATE VIEW encodes_overlapping_peptides AS
  26731. SELECT
  26732. feature_id AS encodes_overlapping_peptides_id,
  26733. feature.*
  26734. FROM
  26735. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26736. 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';
  26737. --- ************************************************
  26738. --- *** relation: cryptogene ***
  26739. --- *** relation type: VIEW ***
  26740. --- *** ***
  26741. --- *** A maxicircle gene so extensively edited ***
  26742. --- *** that it cannot be matched to its edited ***
  26743. --- *** mRNA sequence. ***
  26744. --- ************************************************
  26745. ---
  26746. CREATE VIEW cryptogene AS
  26747. SELECT
  26748. feature_id AS cryptogene_id,
  26749. feature.*
  26750. FROM
  26751. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26752. WHERE cvterm.name = 'cryptogene';
  26753. --- ************************************************
  26754. --- *** relation: dicistronic_primary_transcript ***
  26755. --- *** relation type: VIEW ***
  26756. --- *** ***
  26757. --- *** A primary transcript that has the qualit ***
  26758. --- *** y dicistronic. ***
  26759. --- ************************************************
  26760. ---
  26761. CREATE VIEW dicistronic_primary_transcript AS
  26762. SELECT
  26763. feature_id AS dicistronic_primary_transcript_id,
  26764. feature.*
  26765. FROM
  26766. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26767. WHERE cvterm.name = 'dicistronic_primary_transcript';
  26768. --- ************************************************
  26769. --- *** relation: member_of_regulon ***
  26770. --- *** relation type: VIEW ***
  26771. --- *** ***
  26772. --- ************************************************
  26773. ---
  26774. CREATE VIEW member_of_regulon AS
  26775. SELECT
  26776. feature_id AS member_of_regulon_id,
  26777. feature.*
  26778. FROM
  26779. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26780. WHERE cvterm.name = 'member_of_regulon';
  26781. --- ************************************************
  26782. --- *** relation: cds_independently_known ***
  26783. --- *** relation type: VIEW ***
  26784. --- *** ***
  26785. --- *** A CDS with the evidence status of being ***
  26786. --- *** independently known. ***
  26787. --- ************************************************
  26788. ---
  26789. CREATE VIEW cds_independently_known AS
  26790. SELECT
  26791. feature_id AS cds_independently_known_id,
  26792. feature.*
  26793. FROM
  26794. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26795. WHERE cvterm.name = 'CDS_independently_known';
  26796. --- ************************************************
  26797. --- *** relation: orphan_cds ***
  26798. --- *** relation type: VIEW ***
  26799. --- *** ***
  26800. --- *** A CDS whose predicted amino acid sequenc ***
  26801. --- *** e is unsupported by any experimental evi ***
  26802. --- *** dence or by any match with any other kno ***
  26803. --- *** wn sequence. ***
  26804. --- ************************************************
  26805. ---
  26806. CREATE VIEW orphan_cds AS
  26807. SELECT
  26808. feature_id AS orphan_cds_id,
  26809. feature.*
  26810. FROM
  26811. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26812. WHERE cvterm.name = 'orphan_CDS';
  26813. --- ************************************************
  26814. --- *** relation: cds_supported_by_domain_match_data ***
  26815. --- *** relation type: VIEW ***
  26816. --- *** ***
  26817. --- *** A CDS that is supported by domain simila ***
  26818. --- *** rity. ***
  26819. --- ************************************************
  26820. ---
  26821. CREATE VIEW cds_supported_by_domain_match_data AS
  26822. SELECT
  26823. feature_id AS cds_supported_by_domain_match_data_id,
  26824. feature.*
  26825. FROM
  26826. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26827. WHERE cvterm.name = 'CDS_supported_by_domain_match_data';
  26828. --- ************************************************
  26829. --- *** relation: cds_supported_by_sequence_similarity_data ***
  26830. --- *** relation type: VIEW ***
  26831. --- *** ***
  26832. --- *** A CDS that is supported by sequence simi ***
  26833. --- *** larity data. ***
  26834. --- ************************************************
  26835. ---
  26836. CREATE VIEW cds_supported_by_sequence_similarity_data AS
  26837. SELECT
  26838. feature_id AS cds_supported_by_sequence_similarity_data_id,
  26839. feature.*
  26840. FROM
  26841. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26842. 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';
  26843. --- ************************************************
  26844. --- *** relation: cds_predicted ***
  26845. --- *** relation type: VIEW ***
  26846. --- *** ***
  26847. --- *** A CDS that is predicted. ***
  26848. --- ************************************************
  26849. ---
  26850. CREATE VIEW cds_predicted AS
  26851. SELECT
  26852. feature_id AS cds_predicted_id,
  26853. feature.*
  26854. FROM
  26855. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26856. 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';
  26857. --- ************************************************
  26858. --- *** relation: cds_supported_by_est_or_cdna_data ***
  26859. --- *** relation type: VIEW ***
  26860. --- *** ***
  26861. --- *** A CDS that is supported by similarity to ***
  26862. --- *** EST or cDNA data. ***
  26863. --- ************************************************
  26864. ---
  26865. CREATE VIEW cds_supported_by_est_or_cdna_data AS
  26866. SELECT
  26867. feature_id AS cds_supported_by_est_or_cdna_data_id,
  26868. feature.*
  26869. FROM
  26870. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26871. WHERE cvterm.name = 'CDS_supported_by_EST_or_cDNA_data';
  26872. --- ************************************************
  26873. --- *** relation: internal_shine_dalgarno_sequence ***
  26874. --- *** relation type: VIEW ***
  26875. --- *** ***
  26876. --- *** A Shine-Dalgarno sequence that stimulate ***
  26877. --- *** s recoding through interactions with the ***
  26878. --- *** anti-Shine-Dalgarno in the RNA of small ***
  26879. --- *** ribosomal subunits of translating ribos ***
  26880. --- *** omes. The signal is only operative in Ba ***
  26881. --- *** cteria. ***
  26882. --- ************************************************
  26883. ---
  26884. CREATE VIEW internal_shine_dalgarno_sequence AS
  26885. SELECT
  26886. feature_id AS internal_shine_dalgarno_sequence_id,
  26887. feature.*
  26888. FROM
  26889. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26890. WHERE cvterm.name = 'internal_Shine_Dalgarno_sequence';
  26891. --- ************************************************
  26892. --- *** relation: recoded_mrna ***
  26893. --- *** relation type: VIEW ***
  26894. --- *** ***
  26895. --- *** The sequence of a mature mRNA transcript ***
  26896. --- *** , modified before translation or during ***
  26897. --- *** translation, usually by special cis-acti ***
  26898. --- *** ng signals. ***
  26899. --- ************************************************
  26900. ---
  26901. CREATE VIEW recoded_mrna AS
  26902. SELECT
  26903. feature_id AS recoded_mrna_id,
  26904. feature.*
  26905. FROM
  26906. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26907. WHERE cvterm.name = 'mRNA_recoded_by_translational_bypass' OR cvterm.name = 'mRNA_recoded_by_codon_redefinition' OR cvterm.name = 'recoded_mRNA';
  26908. --- ************************************************
  26909. --- *** relation: minus_1_translationally_frameshifted ***
  26910. --- *** relation type: VIEW ***
  26911. --- *** ***
  26912. --- *** An attribute describing a translational ***
  26913. --- *** frameshift of -1. ***
  26914. --- ************************************************
  26915. ---
  26916. CREATE VIEW minus_1_translationally_frameshifted AS
  26917. SELECT
  26918. feature_id AS minus_1_translationally_frameshifted_id,
  26919. feature.*
  26920. FROM
  26921. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26922. WHERE cvterm.name = 'minus_1_translationally_frameshifted';
  26923. --- ************************************************
  26924. --- *** relation: plus_1_translationally_frameshifted ***
  26925. --- *** relation type: VIEW ***
  26926. --- *** ***
  26927. --- *** An attribute describing a translational ***
  26928. --- *** frameshift of +1. ***
  26929. --- ************************************************
  26930. ---
  26931. CREATE VIEW plus_1_translationally_frameshifted AS
  26932. SELECT
  26933. feature_id AS plus_1_translationally_frameshifted_id,
  26934. feature.*
  26935. FROM
  26936. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26937. WHERE cvterm.name = 'plus_1_translationally_frameshifted';
  26938. --- ************************************************
  26939. --- *** relation: mrna_recoded_by_translational_bypass ***
  26940. --- *** relation type: VIEW ***
  26941. --- *** ***
  26942. --- *** A recoded_mRNA where translation was sus ***
  26943. --- *** pended at a particular codon and resumed ***
  26944. --- *** at a particular non-overlapping downstr ***
  26945. --- *** eam codon. ***
  26946. --- ************************************************
  26947. ---
  26948. CREATE VIEW mrna_recoded_by_translational_bypass AS
  26949. SELECT
  26950. feature_id AS mrna_recoded_by_translational_bypass_id,
  26951. feature.*
  26952. FROM
  26953. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26954. WHERE cvterm.name = 'mRNA_recoded_by_translational_bypass';
  26955. --- ************************************************
  26956. --- *** relation: mrna_recoded_by_codon_redefinition ***
  26957. --- *** relation type: VIEW ***
  26958. --- *** ***
  26959. --- *** A recoded_mRNA that was modified by an a ***
  26960. --- *** lteration of codon meaning. ***
  26961. --- ************************************************
  26962. ---
  26963. CREATE VIEW mrna_recoded_by_codon_redefinition AS
  26964. SELECT
  26965. feature_id AS mrna_recoded_by_codon_redefinition_id,
  26966. feature.*
  26967. FROM
  26968. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26969. WHERE cvterm.name = 'mRNA_recoded_by_codon_redefinition';
  26970. --- ************************************************
  26971. --- *** relation: recoding_stimulatory_region ***
  26972. --- *** relation type: VIEW ***
  26973. --- *** ***
  26974. --- *** A site in an mRNA sequence that stimulat ***
  26975. --- *** es the recoding of a region in the same ***
  26976. --- *** mRNA. ***
  26977. --- ************************************************
  26978. ---
  26979. CREATE VIEW recoding_stimulatory_region AS
  26980. SELECT
  26981. feature_id AS recoding_stimulatory_region_id,
  26982. feature.*
  26983. FROM
  26984. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26985. 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';
  26986. --- ************************************************
  26987. --- *** relation: four_bp_start_codon ***
  26988. --- *** relation type: VIEW ***
  26989. --- *** ***
  26990. --- *** A non-canonical start codon with 4 base ***
  26991. --- *** pairs. ***
  26992. --- ************************************************
  26993. ---
  26994. CREATE VIEW four_bp_start_codon AS
  26995. SELECT
  26996. feature_id AS four_bp_start_codon_id,
  26997. feature.*
  26998. FROM
  26999. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27000. WHERE cvterm.name = 'four_bp_start_codon';
  27001. --- ************************************************
  27002. --- *** relation: archaeal_intron ***
  27003. --- *** relation type: VIEW ***
  27004. --- *** ***
  27005. --- *** An intron characteristic of Archaeal tRN ***
  27006. --- *** A and rRNA genes, where intron transcrip ***
  27007. --- *** t generates a bulge-helix-bulge motif th ***
  27008. --- *** at is recognised by a splicing endoribon ***
  27009. --- *** uclease. ***
  27010. --- ************************************************
  27011. ---
  27012. CREATE VIEW archaeal_intron AS
  27013. SELECT
  27014. feature_id AS archaeal_intron_id,
  27015. feature.*
  27016. FROM
  27017. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27018. WHERE cvterm.name = 'archaeal_intron';
  27019. --- ************************************************
  27020. --- *** relation: trna_intron ***
  27021. --- *** relation type: VIEW ***
  27022. --- *** ***
  27023. --- *** An intron found in tRNA that is spliced ***
  27024. --- *** via endonucleolytic cleavage and ligatio ***
  27025. --- *** n rather than transesterification. ***
  27026. --- ************************************************
  27027. ---
  27028. CREATE VIEW trna_intron AS
  27029. SELECT
  27030. feature_id AS trna_intron_id,
  27031. feature.*
  27032. FROM
  27033. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27034. WHERE cvterm.name = 'tRNA_intron';
  27035. --- ************************************************
  27036. --- *** relation: ctg_start_codon ***
  27037. --- *** relation type: VIEW ***
  27038. --- *** ***
  27039. --- *** A non-canonical start codon of sequence ***
  27040. --- *** CTG. ***
  27041. --- ************************************************
  27042. ---
  27043. CREATE VIEW ctg_start_codon AS
  27044. SELECT
  27045. feature_id AS ctg_start_codon_id,
  27046. feature.*
  27047. FROM
  27048. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27049. WHERE cvterm.name = 'CTG_start_codon';
  27050. --- ************************************************
  27051. --- *** relation: secis_element ***
  27052. --- *** relation type: VIEW ***
  27053. --- *** ***
  27054. --- *** The incorporation of selenocysteine into ***
  27055. --- *** a protein sequence is directed by an in ***
  27056. --- *** -frame UGA codon (usually a stop codon) ***
  27057. --- *** within the coding region of the mRNA. Se ***
  27058. --- *** lenoprotein mRNAs contain a conserved se ***
  27059. --- *** condary structure in the 3' UTR that is ***
  27060. --- *** required for the distinction of UGA stop ***
  27061. --- *** from UGA selenocysteine. The selenocyst ***
  27062. --- *** eine insertion sequence (SECIS) is aroun ***
  27063. --- *** d 60 nt in length and adopts a hairpin s ***
  27064. --- *** tructure which is sufficiently well-defi ***
  27065. --- *** ned and conserved to act as a computatio ***
  27066. --- *** nal screen for selenoprotein genes. ***
  27067. --- ************************************************
  27068. ---
  27069. CREATE VIEW secis_element AS
  27070. SELECT
  27071. feature_id AS secis_element_id,
  27072. feature.*
  27073. FROM
  27074. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27075. WHERE cvterm.name = 'SECIS_element';
  27076. --- ************************************************
  27077. --- *** relation: retron ***
  27078. --- *** relation type: VIEW ***
  27079. --- *** ***
  27080. --- *** Sequence coding for a short, single-stra ***
  27081. --- *** nded, DNA sequence via a retrotransposed ***
  27082. --- *** RNA intermediate; characteristic of som ***
  27083. --- *** e microbial genomes. ***
  27084. --- ************************************************
  27085. ---
  27086. CREATE VIEW retron AS
  27087. SELECT
  27088. feature_id AS retron_id,
  27089. feature.*
  27090. FROM
  27091. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27092. WHERE cvterm.name = 'retron';
  27093. --- ************************************************
  27094. --- *** relation: three_prime_recoding_site ***
  27095. --- *** relation type: VIEW ***
  27096. --- *** ***
  27097. --- *** The recoding stimulatory signal located ***
  27098. --- *** downstream of the recoding site. ***
  27099. --- ************************************************
  27100. ---
  27101. CREATE VIEW three_prime_recoding_site AS
  27102. SELECT
  27103. feature_id AS three_prime_recoding_site_id,
  27104. feature.*
  27105. FROM
  27106. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27107. 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';
  27108. --- ************************************************
  27109. --- *** relation: three_prime_stem_loop_structure ***
  27110. --- *** relation type: VIEW ***
  27111. --- *** ***
  27112. --- *** A recoding stimulatory region, the stem- ***
  27113. --- *** loop secondary structural element is dow ***
  27114. --- *** nstream of the redefined region. ***
  27115. --- ************************************************
  27116. ---
  27117. CREATE VIEW three_prime_stem_loop_structure AS
  27118. SELECT
  27119. feature_id AS three_prime_stem_loop_structure_id,
  27120. feature.*
  27121. FROM
  27122. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27123. WHERE cvterm.name = 'three_prime_stem_loop_structure';
  27124. --- ************************************************
  27125. --- *** relation: five_prime_recoding_site ***
  27126. --- *** relation type: VIEW ***
  27127. --- *** ***
  27128. --- *** The recoding stimulatory signal located ***
  27129. --- *** upstream of the recoding site. ***
  27130. --- ************************************************
  27131. ---
  27132. CREATE VIEW five_prime_recoding_site AS
  27133. SELECT
  27134. feature_id AS five_prime_recoding_site_id,
  27135. feature.*
  27136. FROM
  27137. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27138. WHERE cvterm.name = 'five_prime_recoding_site';
  27139. --- ************************************************
  27140. --- *** relation: flanking_three_prime_quadruplet_recoding_signal ***
  27141. --- *** relation type: VIEW ***
  27142. --- *** ***
  27143. --- *** Four base pair sequence immediately down ***
  27144. --- *** stream of the redefined region. The rede ***
  27145. --- *** fined region is a frameshift site. The q ***
  27146. --- *** uadruplet is 2 overlapping codons. ***
  27147. --- ************************************************
  27148. ---
  27149. CREATE VIEW flanking_three_prime_quadruplet_recoding_signal AS
  27150. SELECT
  27151. feature_id AS flanking_three_prime_quadruplet_recoding_signal_id,
  27152. feature.*
  27153. FROM
  27154. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27155. WHERE cvterm.name = 'flanking_three_prime_quadruplet_recoding_signal';
  27156. --- ************************************************
  27157. --- *** relation: uag_stop_codon_signal ***
  27158. --- *** relation type: VIEW ***
  27159. --- *** ***
  27160. --- *** A stop codon signal for a UAG stop codon ***
  27161. --- *** redefinition. ***
  27162. --- ************************************************
  27163. ---
  27164. CREATE VIEW uag_stop_codon_signal AS
  27165. SELECT
  27166. feature_id AS uag_stop_codon_signal_id,
  27167. feature.*
  27168. FROM
  27169. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27170. WHERE cvterm.name = 'UAG_stop_codon_signal';
  27171. --- ************************************************
  27172. --- *** relation: uaa_stop_codon_signal ***
  27173. --- *** relation type: VIEW ***
  27174. --- *** ***
  27175. --- *** A stop codon signal for a UAA stop codon ***
  27176. --- *** redefinition. ***
  27177. --- ************************************************
  27178. ---
  27179. CREATE VIEW uaa_stop_codon_signal AS
  27180. SELECT
  27181. feature_id AS uaa_stop_codon_signal_id,
  27182. feature.*
  27183. FROM
  27184. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27185. WHERE cvterm.name = 'UAA_stop_codon_signal';
  27186. --- ************************************************
  27187. --- *** relation: regulon ***
  27188. --- *** relation type: VIEW ***
  27189. --- *** ***
  27190. --- *** A group of genes, whether linked as a cl ***
  27191. --- *** uster or not, that respond to a common r ***
  27192. --- *** egulatory signal. ***
  27193. --- ************************************************
  27194. ---
  27195. CREATE VIEW regulon AS
  27196. SELECT
  27197. feature_id AS regulon_id,
  27198. feature.*
  27199. FROM
  27200. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27201. WHERE cvterm.name = 'regulon';
  27202. --- ************************************************
  27203. --- *** relation: uga_stop_codon_signal ***
  27204. --- *** relation type: VIEW ***
  27205. --- *** ***
  27206. --- *** A stop codon signal for a UGA stop codon ***
  27207. --- *** redefinition. ***
  27208. --- ************************************************
  27209. ---
  27210. CREATE VIEW uga_stop_codon_signal AS
  27211. SELECT
  27212. feature_id AS uga_stop_codon_signal_id,
  27213. feature.*
  27214. FROM
  27215. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27216. WHERE cvterm.name = 'UGA_stop_codon_signal';
  27217. --- ************************************************
  27218. --- *** relation: three_prime_repeat_recoding_signal ***
  27219. --- *** relation type: VIEW ***
  27220. --- *** ***
  27221. --- *** A recoding stimulatory signal, downstrea ***
  27222. --- *** m sequence important for recoding that c ***
  27223. --- *** ontains repetitive elements. ***
  27224. --- ************************************************
  27225. ---
  27226. CREATE VIEW three_prime_repeat_recoding_signal AS
  27227. SELECT
  27228. feature_id AS three_prime_repeat_recoding_signal_id,
  27229. feature.*
  27230. FROM
  27231. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27232. WHERE cvterm.name = 'three_prime_repeat_recoding_signal';
  27233. --- ************************************************
  27234. --- *** relation: distant_three_prime_recoding_signal ***
  27235. --- *** relation type: VIEW ***
  27236. --- *** ***
  27237. --- *** A recoding signal that is found many hun ***
  27238. --- *** dreds of nucleotides 3' of a redefined s ***
  27239. --- *** top codon. ***
  27240. --- ************************************************
  27241. ---
  27242. CREATE VIEW distant_three_prime_recoding_signal AS
  27243. SELECT
  27244. feature_id AS distant_three_prime_recoding_signal_id,
  27245. feature.*
  27246. FROM
  27247. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27248. WHERE cvterm.name = 'distant_three_prime_recoding_signal';
  27249. --- ************************************************
  27250. --- *** relation: stop_codon_signal ***
  27251. --- *** relation type: VIEW ***
  27252. --- *** ***
  27253. --- *** A recoding stimulatory signal that is a ***
  27254. --- *** stop codon and has effect on efficiency ***
  27255. --- *** of recoding. ***
  27256. --- ************************************************
  27257. ---
  27258. CREATE VIEW stop_codon_signal AS
  27259. SELECT
  27260. feature_id AS stop_codon_signal_id,
  27261. feature.*
  27262. FROM
  27263. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27264. 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';
  27265. --- ************************************************
  27266. --- *** relation: databank_entry ***
  27267. --- *** relation type: VIEW ***
  27268. --- *** ***
  27269. --- *** The sequence referred to by an entry in ***
  27270. --- *** a databank such as Genbank or SwissProt. ***
  27271. --- ************************************************
  27272. ---
  27273. CREATE VIEW databank_entry AS
  27274. SELECT
  27275. feature_id AS databank_entry_id,
  27276. feature.*
  27277. FROM
  27278. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27279. WHERE cvterm.name = 'databank_entry';
  27280. --- ************************************************
  27281. --- *** relation: gene_segment ***
  27282. --- *** relation type: VIEW ***
  27283. --- *** ***
  27284. --- *** A gene component region which acts as a ***
  27285. --- *** recombinational unit of a gene whose fun ***
  27286. --- *** ctional form is generated through somati ***
  27287. --- *** c recombination. ***
  27288. --- ************************************************
  27289. ---
  27290. CREATE VIEW gene_segment AS
  27291. SELECT
  27292. feature_id AS gene_segment_id,
  27293. feature.*
  27294. FROM
  27295. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27296. WHERE cvterm.name = 'gene_segment';
  27297. 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));
  27298. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('helitron','helitron');
  27299. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cleaved_initiator_methionine','cleaved_initiator_methionine');
  27300. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epoxyqueuosine','epoxyqueuosine');
  27301. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u4atac_snrna','u4atac_snrna');
  27302. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('kinetoplast','kinetoplast');
  27303. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('shadow_enhancer','shadow_enhancer');
  27304. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered','engineered');
  27305. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_aminomethyl_seven_deazaguanosine','seven_aminomethyl_seven_deazaguanosine');
  27306. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('low_complexity','low_complexity');
  27307. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('est_match','est_match');
  27308. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_nonamer','v_nonamer');
  27309. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_21s','rrna_21s');
  27310. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_j_c_cluster','d_dj_j_c_cluster');
  27311. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethyluridine','five_carboxymethyluridine');
  27312. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bound_by_factor','bound_by_factor');
  27313. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_methyladenosine','two_methylthio_n6_methyladenosine');
  27314. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dinucleotide_repeat_microsatellite_feature','dinucleotide_repeat_microsatellite_feature');
  27315. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_spliced_mrna','trans_spliced_mrna');
  27316. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_to_c_transversion','g_to_c_transversion');
  27317. 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');
  27318. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genotype','genotype');
  27319. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cloned_region','cloned_region');
  27320. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_coding_piece','tmrna_coding_piece');
  27321. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_6s','rna_6s');
  27322. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minicircle','minicircle');
  27323. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('grna_encoding','grna_encoding');
  27324. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('endonuclease_spliced_intron','endonuclease_spliced_intron');
  27325. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertional_duplication','insertional_duplication');
  27326. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('databank_entry','databank_entry');
  27327. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glycine','glycine');
  27328. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_cluster','v_cluster');
  27329. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nickel_ion_contact_site','polypeptide_nickel_ion_contact_site');
  27330. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_single_stranded_rna_chromosome','circular_single_stranded_rna_chromosome');
  27331. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wc_base_pair','wc_base_pair');
  27332. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pcr_product','pcr_product');
  27333. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_three_amino_three_carboxypropyl_uridine','three_three_amino_three_carboxypropyl_uridine');
  27334. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('site_specific_recombination_target_region','site_specific_recombination_target_region');
  27335. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_polycistronic_transcript','gene_with_polycistronic_transcript');
  27336. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue','rescue');
  27337. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclease_hypersensitive_site','nuclease_hypersensitive_site');
  27338. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_loop','mirna_loop');
  27339. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double_stranded_cdna','double_stranded_cdna');
  27340. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supported_by_domain_match','supported_by_domain_match');
  27341. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methylpseudouridine','one_methylpseudouridine');
  27342. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n_terminal_region','n_terminal_region');
  27343. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimental_result_region','experimental_result_region');
  27344. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methionine_trna_primary_transcript','methionine_trna_primary_transcript');
  27345. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('utr','utr');
  27346. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_terminal_residue','non_terminal_residue');
  27347. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('member_of_regulon','member_of_regulon');
  27348. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('threonine_trna_primary_transcript','thr_trna_primary_transcript');
  27349. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_supported_by_sequence_similarity_data','cds_supported_by_sequence_similarity_data');
  27350. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_structural_region','polypeptide_structural_region');
  27351. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_gene','trna_gene');
  27352. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge_loop_six','beta_bulge_loop_six');
  27353. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_tungsten_ion_contact_site','polypeptide_tungsten_ion_contact_site');
  27354. 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');
  27355. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nest_right_left_motif','polypeptide_nest_right_left_motif');
  27356. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_location','sequence_location');
  27357. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_c_cluster','d_dj_c_cluster');
  27358. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_spliced_transcript','trans_spliced_transcript');
  27359. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('y_rna','y_rna');
  27360. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucoplast_gene','leucoplast_gene');
  27361. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splicing_regulatory_region','splicing_regulatory_region');
  27362. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('branch_site','branch_site');
  27363. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge_loop_five','beta_bulge_loop_five');
  27364. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_breakpoint','chromosome_breakpoint');
  27365. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_uncertainty','sequence_uncertainty');
  27366. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_methyl_n6_threonylcarbamoyladenosine','n6_methyl_n6_threonylcarbamoyladenosine');
  27367. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_mrna_with_frameshift','gene_with_mrna_with_frameshift');
  27368. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('compositionally_biased_region_of_peptide','compositionally_biased_region_of_peptide');
  27369. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_j_c_cluster','vj_j_c_cluster');
  27370. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_splice_acceptor','sequence_variant_affecting_splice_acceptor');
  27371. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pirna','pirna');
  27372. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reverse_hoogsteen_base_pair','reverse_hoogsteen_base_pair');
  27373. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tryptophanyl_trna','tryptophanyl_trna');
  27374. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_primed_cdna_clone','polya_primed_cdna_clone');
  27375. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucoplast_chromosome','leucoplast_chromosome');
  27376. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('status','status');
  27377. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ltr_retrotransposon','ltr_retrotransposon');
  27378. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnase_p_rna','rnase_p_rna');
  27379. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conjugative_transposon','conjugative_transposon');
  27380. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linkage_group','linkage_group');
  27381. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_trans_spliced_transcript','gene_with_trans_spliced_transcript');
  27382. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptide_coil','peptide_coil');
  27383. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrrolysine_trna_primary_transcript','pyrrolysine_trna_primary_transcript');
  27384. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_c_cluster','v_vj_c_cluster');
  27385. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phage_sequence','phage_sequence');
  27386. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded','recoded');
  27387. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposon_fragment','transposon_fragment');
  27388. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_c_cluster','vj_c_cluster');
  27389. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('editing_domain','editing_domain');
  27390. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylaminomethyluridine','five_methylaminomethyluridine');
  27391. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_insertion','nucleotide_insertion');
  27392. 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');
  27393. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_ltr_retrotransposon_polymeric_tract','non_ltr_retrotransposon_polymeric_tract');
  27394. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transversion','transversion');
  27395. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tryptophan','tryptophan');
  27396. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recursive_splice_site','recursive_splice_site');
  27397. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insulator_binding_site','insulator_binding_site');
  27398. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proline_trna_primary_transcript','proline_trna_primary_transcript');
  27399. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_fragment','repeat_fragment');
  27400. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('blocked_reading_frame','blocked_reading_frame');
  27401. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_cleavage_snorna_primary_transcript','rrna_cleavage_snorna_primary_transcript');
  27402. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_isopentenyladenosine','n6_isopentenyladenosine');
  27403. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_arginine','modified_l_arginine');
  27404. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_conserved_motif','polypeptide_conserved_motif');
  27405. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t3_rna_polymerase_promoter','t3_rna_polymerase_promoter');
  27406. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_bipartite_duplication','inversion_derived_bipartite_duplication');
  27407. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_acceptor_site','trans_splice_acceptor_site');
  27408. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_ribosyladenosine_phosphate','two_prime_o_riboA_phosphate');
  27409. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rre_rna','rre_rna');
  27410. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pac_end','pac_end');
  27411. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('extramembrane_polypeptide_region','extramembrane_polypeptide_region');
  27412. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intein','intein');
  27413. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('twintron','twintron');
  27414. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethylaminomethyl_two_prime_o_methyluridine','five_carboxymethylaminomethyl_two_prime_o_methyluridine');
  27415. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna_primary_transcript','scrna_primary_transcript');
  27416. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_cobalt_ion_contact_site','polypeptide_cobalt_ion_contact_site');
  27417. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_encoding','tmrna_encoding');
  27418. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('flanked','flanked');
  27419. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ctg_start_codon','ctg_start_codon');
  27420. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion','inversion');
  27421. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('eukaryotic_terminator','eukaryotic_terminator');
  27422. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tyrosine_trna_primary_transcript','tyrosine_trna_primary_transcript');
  27423. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_region_of_exon','coding_region_of_exon');
  27424. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spliceosomal_intron_region','spliceosomal_intron_region');
  27425. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frt_flanked','frt_flanked');
  27426. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cloned_cdna_insert','cloned_cdna_insert');
  27427. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_c_cluster','v_vdj_c_cluster');
  27428. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translationally_regulated','translationally_regulated');
  27429. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variation_affecting_reading_frame','sequence_variation_affecting_reading_frame');
  27430. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_minus_1_frameshift','sequence_variant_causing_minus_1_frameshift');
  27431. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histidyl_trna','histidyl_trna');
  27432. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sonicate_fragment','sonicate_fragment');
  27433. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_recoded_mrna','gene_with_recoded_mrna');
  27434. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methyluridine','two_prime_o_methyluridine');
  27435. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cosmid','cosmid');
  27436. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_rna_interference','silenced_by_rna_interference');
  27437. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna','snorna');
  27438. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mature_transcript','mature_transcript');
  27439. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudouridylation_guide_snorna','pseudouridylation_guide_snorna');
  27440. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_gene','c_gene');
  27441. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('floxed_gene','floxed_gene');
  27442. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spot_42_rna','spot_42_rna');
  27443. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cdna_clone','cdna_clone');
  27444. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_ltr','three_prime_ltr');
  27445. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_ii_intron','group_ii_intron');
  27446. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pna_oligo','pna_oligo');
  27447. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion_sequence','insertion_sequence');
  27448. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('junction','junction');
  27449. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paralogous','paralogous');
  27450. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tna','tna');
  27451. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_isopentenylaminomethyl_two_thiouridine','five_isopentenylaminomethyl_two_thiouridine');
  27452. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_1_frameshift','minus_1_frameshift');
  27453. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_gene_structure','sequence_variant_affecting_gene_structure');
  27454. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_canonical_three_prime_splice_site','non_canonical_three_prime_splice_site');
  27455. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_rrna','pseudogenic_rrna');
  27456. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_threonine_turn','serine_threonine_turn');
  27457. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_gene','j_gene');
  27458. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna_primary_transcript','strna_primary_transcript');
  27459. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_eliminated_sequence','internal_eliminated_sequence');
  27460. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allelically_excluded_gene','allelically_excluded_gene');
  27461. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('qtl','qtl');
  27462. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_est','three_prime_est');
  27463. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reverse','reverse');
  27464. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_encoding','mirna_encoding');
  27465. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_n2_2_prime_o_trimethylguanosine','n2_n2_2_prime_o_trimethylguanosine');
  27466. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_alternate_transcription_start_sites','encodes_alternate_transcription_start_sites');
  27467. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_array','gene_array');
  27468. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tetranucleotide_repeat_microsatellite_feature','tetranuc_repeat_microsat');
  27469. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_aminomethyl_two_thiouridine','five_aminomethyl_two_thiouridine');
  27470. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic_primary_transcript','monocistronic_primary_transcript');
  27471. 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');
  27472. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mobile_genetic_element','mobile_genetic_element');
  27473. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_ligand_contact','polypeptide_ligand_contact');
  27474. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('biomaterial_region','biomaterial_region');
  27475. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element_flanking_region','transposable_element_flanking_region');
  27476. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('symmetric_rna_internal_loop','symmetric_rna_internal_loop');
  27477. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_plus_1_frameshift','mrna_with_plus_1_frameshift');
  27478. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_regulated','transcriptionally_regulated');
  27479. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_intron','five_prime_intron');
  27480. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vertebrate_immune_system_gene_recombination_feature','vertebrate_immune_system_gene_recombination_feature');
  27481. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxyhydroxymethyl_uridine_methyl_ester','five_carboxyhydroxymethyl_uridine_methyl_ester');
  27482. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proplastid_gene','proplastid_gene');
  27483. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_trna_primary_transcript','serine_trna_primary_transcript');
  27484. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attp_site','attp_site');
  27485. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antisense','antisense');
  27486. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminal_inverted_repeat_element','terminal_inverted_repeat_element');
  27487. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coiled_coil','coiled_coil');
  27488. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_cluster','v_vdj_cluster');
  27489. 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');
  27490. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_coding_primary_transcript','protein_coding_primary_transcript');
  27491. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mite','mite');
  27492. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion','insertion');
  27493. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('secis_element','secis_element');
  27494. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maxicircle','maxicircle');
  27495. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tss','tss');
  27496. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cysteine','cysteine');
  27497. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribothymidine','ribothymidine');
  27498. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_adjacent_residues','non_adjacent_residues');
  27499. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_ribosome_entry_site','internal_ribosome_entry_site');
  27500. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('outron','outron');
  27501. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_repeat','polypeptide_repeat');
  27502. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone_insert_start','clone_insert_start');
  27503. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attr_site','attr_site');
  27504. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv3_motif','dmv3_motif');
  27505. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('capped_mrna','capped_mrna');
  27506. 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');
  27507. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_rearrangement_feature','sequence_rearrangement_feature');
  27508. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('apicoplast_chromosome','apicoplast_chromosome');
  27509. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_a_two','beta_turn_type_six_a_two');
  27510. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated','invalidated');
  27511. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_junction','polya_junction');
  27512. 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');
  27513. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('valine','valine');
  27514. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translationally_regulated_gene','translationally_regulated_gene');
  27515. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('promoter_targeting_sequence','promoter_targeting_sequence');
  27516. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polinton','polinton');
  27517. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_tag','engineered_tag');
  27518. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylcytidine','five_methylcytidine');
  27519. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudouridine','pseudouridine');
  27520. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('positively_autoregulated','positively_autoregulated');
  27521. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('amplification_origin','amplification_origin');
  27522. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unoriented_insertional_duplication','unorient_insert_dup');
  27523. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('extrachromosomal_mobile_genetic_element','extrachromosomal_mobile_genetic_element');
  27524. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_constitutive','transcriptionally_constitutive');
  27525. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_polypeptide_fusion','sequence_variant_causing_polypeptide_fusion');
  27526. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('utr_region','utr_region');
  27527. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tyrosine','tyrosine');
  27528. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna','mirna');
  27529. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inr1_motif','inr1_motif');
  27530. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_acetyladenosine','n6_acetyladenosine');
  27531. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cis_splice_site','cis_splice_site');
  27532. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_right_handed_type_two','beta_turn_right_handed_type_two');
  27533. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('floxed','floxed');
  27534. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_terminal_region','c_terminal_region');
  27535. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_leucine','modified_l_leucine');
  27536. 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');
  27537. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_ltr_component','five_prime_ltr_component');
  27538. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_c_cluster','vdj_c_cluster');
  27539. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptional_cis_regulatory_region','transcriptional_cis_regulatory_region');
  27540. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_part','chromosome_part');
  27541. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion_site','insertion_site');
  27542. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phenylalanyl_trna','phenylalanyl_trna');
  27543. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('overlapping_est_set','overlapping_est_set');
  27544. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gc_rich_promoter_region','gc_rich_promoter_region');
  27545. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_right_handed_type_two','asx_turn_right_handed_type_two');
  27546. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anticodon_loop','anticodon_loop');
  27547. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('partially_characterised_change_in_dna_sequence','partially_characterised_change_in_dna_sequence');
  27548. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv5_motif','dmv5_motif');
  27549. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl1_acceptor_site','sl1_acceptor_site');
  27550. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_region','cds_region');
  27551. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_j_c_cluster','v_dj_j_c_cluster');
  27552. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_insert','engineered_insert');
  27553. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_inverted_gene','recombinationally_inverted_gene');
  27554. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cassette_array_member','cassette_array_member');
  27555. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('microarray_oligo','microarray_oligo');
  27556. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u12_snrna','u12_snrna');
  27557. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supported_by_est_or_cdna','supported_by_est_or_cdna');
  27558. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_10_signal','minus_10_signal');
  27559. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone_insert_end','clone_insert_end');
  27560. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inr_motif','inr_motif');
  27561. 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');
  27562. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_stem_loop_structure','three_prime_stem_loop_structure');
  27563. 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');
  27564. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rflp_fragment','rflp_fragment');
  27565. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phage_rna_polymerase_promoter','phage_rna_polymerase_promoter');
  27566. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrimidine_transition','pyrimidine_transition');
  27567. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrinsically_unstructured_polypeptide_region','intrinsically_unstructured_polypeptide_region');
  27568. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_2_prime_o_dimethylguanosine','n2_2_prime_o_dimethylguanosine');
  27569. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('archaeal_intron','archaeal_intron');
  27570. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lna','lna');
  27571. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_junction','exon_junction');
  27572. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t7_rna_polymerase_promoter','t7_rna_polymerase_promoter');
  27573. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_interchromosomal_transposition','invert_inter_transposition');
  27574. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('episome','episome');
  27575. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uninverted_insertional_duplication','uninvert_insert_dup');
  27576. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_difference','sequence_difference');
  27577. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_c_cluster','v_d_dj_c_cluster');
  27578. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_conflict','sequence_conflict');
  27579. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_gene_fusion','sequence_variant_causing_gene_fusion');
  27580. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tiling_path_clone','tiling_path_clone');
  27581. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_iii_intron','group_iii_intron');
  27582. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_glycine','modified_glycine');
  27583. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_alteration','sequence_alteration');
  27584. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polyploid','polyploid');
  27585. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_dna_modification','gene_silenced_by_dna_modification');
  27586. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_j_cluster','v_vj_j_cluster');
  27587. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isoleucine_trna_primary_transcript','isoleucine_trna_primary_transcript');
  27588. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_small_subunit_primary_transcript','rrna_small_subunit_primary_transcript');
  27589. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ltr_component','ltr_component');
  27590. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_2_framshift','plus_2_framshift');
  27591. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamic_acid_trna_primary_transcript','glutamic_acid_trna_primary_transcript');
  27592. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_rearranged_at_dna_level','gene_rearranged_at_dna_level');
  27593. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_transcript','edited_transcript');
  27594. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_partial_processing','invalidated_by_partial_processing');
  27595. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequencing_primer','sequencing_primer');
  27596. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cleaved_for_gpi_anchor_region','cleaved_for_gpi_anchor_region');
  27597. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frameshift_sequence_variation','frameshift_sequence_variation');
  27598. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_cysteine','modified_l_cysteine');
  27599. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_utr','five_prime_utr');
  27600. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frt_site','frt_site');
  27601. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminal_inverted_repeat','terminal_inverted_repeat');
  27602. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transition','transition');
  27603. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deletion_junction','deletion_junction');
  27604. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_right_handed_type_one','beta_turn_right_handed_type_one');
  27605. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_ribosylguanosine_phosphate','two_prime_o_ribosylguanosine_phosphate');
  27606. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carbamoylmethyl_two_prime_o_methyluridine','five_cm_2_prime_o_methU');
  27607. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_transcribed_spacer_region','internal_transcribed_spacer_region');
  27608. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic','dicistronic');
  27609. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supported_by_sequence_similarity','supported_by_sequence_similarity');
  27610. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reverse_primer','reverse_primer');
  27611. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_three_prime_ltr_region','u3_three_prime_ltr_region');
  27612. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamine_trna_primary_transcript','glutamine_trna_primary_transcript');
  27613. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_ii_promoter','rnapol_ii_promoter');
  27614. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('overlapping','overlapping');
  27615. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alpha_beta_motif','alpha_beta_motif');
  27616. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_transposable_element','engineered_transposable_element');
  27617. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('forward_primer','forward_primer');
  27618. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attctn_site','attctn_site');
  27619. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_recombination_signal_sequence','five_prime_d_recombination_signal_sequence');
  27620. 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');
  27621. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u6_snrna','u6_snrna');
  27622. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_rearranged_gene','recombinationally_rearranged_gene');
  27623. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_threonylcarbamoyladenosine','n6_threonylcarbamoyladenosine');
  27624. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carbamoylmethyluridine','five_carbamoylmethyluridine');
  27625. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_fragment','cds_fragment');
  27626. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genome','genome');
  27627. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('promoter','promoter');
  27628. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_coding_gene','protein_coding_gene');
  27629. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_snrna','u5_snrna');
  27630. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wybutosine','wybutosine');
  27631. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylwyosine','methylwyosine');
  27632. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('large_subunit_rrna','large_subunit_rrna');
  27633. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_amino_acid_substitution','sequence_variant_causing_amino_acid_substitution');
  27634. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_2_prime_o_dimethylcytidine','n4_2_prime_o_dimethylcytidine');
  27635. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_to_t_transition','c_to_t_transition');
  27636. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variation_affecting_transcript_sequence','sequence_variation_affecting_transcript_sequence');
  27637. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bidirectional_promoter','bidirectional_promoter');
  27638. 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');
  27639. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('validated_cdna_clone','validated_cdna_clone');
  27640. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('k_turn_rna_motif','k_turn_rna_motif');
  27641. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcribed_fragment','transcribed_fragment');
  27642. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_ust','five_prime_ust');
  27643. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_utr_intron','three_prime_utr_intron');
  27644. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retrogene','retrogene');
  27645. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrimidine_to_purine_transversion','pyrimidine_to_purine_transversion');
  27646. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sine_element','sine_element');
  27647. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_rst','five_prime_rst');
  27648. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_coding exon_coding_region','three_prime_coding_exon_coding_region');
  27649. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('utr_intron','utr_intron');
  27650. 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');
  27651. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interchromosomal_transposition','interchromosomal_transposition');
  27652. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_sequence_secondary_structure','rna_sequence_secondary_structure');
  27653. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_transposable_element','engineered_foreign_transposable_element');
  27654. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ds_rna_viral_sequence','ds_rna_viral_sequence');
  27655. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fosmid','fosmid');
  27656. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_substitution','complex_substitution');
  27657. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('validated','validated');
  27658. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u2_snrna','u2_snrna');
  27659. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('caat_signal','caat_signal');
  27660. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_cluster','c_cluster');
  27661. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('consensus_region','consensus_region');
  27662. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vertebrate_immune_system_gene_recombination_spacer','vertebrate_immune_system_gene_recombination_spacer');
  27663. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_trap_construct','gene_trap_construct');
  27664. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_aptamer','rna_aptamer');
  27665. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_induced','transcriptionally_induced');
  27666. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue_region','rescue_region');
  27667. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_site_part','inversion_site_part');
  27668. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('origin_of_replication','origin_of_replication');
  27669. 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');
  27670. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_internal_loop','rna_internal_loop');
  27671. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ultracontig','ultracontig');
  27672. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptidyl','peptidyl');
  27673. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_region','polypeptide_region');
  27674. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgenic_insertion','transgenic_insertion');
  27675. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_antiguide','mirna_antiguide');
  27676. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rearranged_at_dna_level','rearranged_at_dna_level');
  27677. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_spacer','v_spacer');
  27678. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strand_attribute','strand_attribute');
  27679. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variation_increasing_level_of_transcript','sequence_variation_increasing_level_of_transcript');
  27680. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alternatively_spliced','alternatively_spliced');
  27681. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_formyl_two_prime_o_methylcytidine','five_formyl_two_prime_o_methylcytidine');
  27682. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid_location','plasmid_location');
  27683. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('four_bp_start_codon','four_bp_start_codon');
  27684. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_rearranged','recombinationally_rearranged');
  27685. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chimeric_cdna_clone','chimeric_cdna_clone');
  27686. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_dicistronic_transcript','gene_with_dicistronic_transcript');
  27687. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_ltr_component','three_prime_ltr_component');
  27688. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retron','retron');
  27689. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autopolyploid','autopolyploid');
  27690. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phenylalanine','phenylalanine');
  27691. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transit_peptide','transit_peptide');
  27692. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_28s','rrna_28s');
  27693. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_two_prime_o_dimethylinosine','one_two_prime_o_dimethylinosine');
  27694. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('threonine','threonine');
  27695. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_minor_rna_motif','a_minor_rna_motif');
  27696. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_cluster','j_cluster');
  27697. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_cluster','d_dj_cluster');
  27698. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_cryptic_splice_activation','sequence_variant_causing_cryptic_splice_activation');
  27699. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_arm','chromosome_arm');
  27700. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('kinetoplast_gene','kinetoplast_gene');
  27701. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('line_element','line_element');
  27702. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('solo_ltr','solo_ltr');
  27703. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('external_transcribed_spacer_region','external_transcribed_spacer_region');
  27704. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_transcribed_region','non_transcribed_region');
  27705. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_stem','mirna_stem');
  27706. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_j_c_cluster','dj_j_c_cluster');
  27707. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hyperploid','hyperploid');
  27708. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic','cryptic');
  27709. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alpha_helix','alpha_helix');
  27710. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fusion','fusion');
  27711. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_j_cluster','vdj_j_cluster');
  27712. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isowyosine','isowyosine');
  27713. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paracentric_inversion','paracentric_inversion');
  27714. 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');
  27715. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homing_endonuclease_binding_site','homing_endonuclease_binding_site');
  27716. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tna_oligo','tna_oligo');
  27717. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mini_gene','mini_gene');
  27718. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('restriction_fragment','restriction_fragment');
  27719. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('base_pair','base_pair');
  27720. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inside_intron_antiparallel','inside_intron_antiparallel');
  27721. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_transcription','sequence_variant_affecting_transcription');
  27722. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_binding_site','dna_binding_site');
  27723. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_cytidine','modified_cytidine');
  27724. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hydrophobic_region_of_peptide','hydrophobic_region_of_peptide');
  27725. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic_primary_transcript','polycistronic_primary_transcript');
  27726. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_proline','modified_l_proline');
  27727. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('overlapping_feature_set','overlapping_feature_set');
  27728. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_left_handed_type_two','asx_turn_left_handed_type_two');
  27729. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interchromosomal_duplication','interchromosomal_duplication');
  27730. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('substitution','substitution');
  27731. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isoleucine','isoleucine');
  27732. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_recoding_site','three_prime_recoding_site');
  27733. 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');
  27734. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glycine_trna_primary_transcript','glycine_trna_primary_transcript');
  27735. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mutation_causing_polypeptide_c_terminal_elongation','mutation_causing_polypeptide_c_terminal_elongation');
  27736. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_heptamer','v_heptamer');
  27737. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dispersed_repeat','dispersed_repeat');
  27738. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primer','primer');
  27739. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variation_affecting_transcript','sequence_variation_affecting_transcript');
  27740. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wild_type','wild_type');
  27741. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_domain','polypeptide_domain');
  27742. 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');
  27743. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fusion_gene','fusion_gene');
  27744. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('arginyl_trna','arginyl_trna');
  27745. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_member_region','gene_member_region');
  27746. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uninverted_intrachromosomal_transposition','uninvert_intra_transposition');
  27747. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_translational_product','sequence_variant_affecting_translational_product');
  27748. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylated_base_feature','methylated_base_feature');
  27749. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna_gene','scrna_gene');
  27750. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_18s','rrna_18s');
  27751. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_polypeptide_elongation','sequence_variant_causing_polypeptide_elongation');
  27752. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter_type_1','rnapol_iii_promoter_type_1');
  27753. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('point_mutation','point_mutation');
  27754. 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');
  27755. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudoknot','pseudoknot');
  27756. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_quartet','g_quartet');
  27757. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_selenocysteine','modified_l_selenocysteine');
  27758. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('schellmann_loop','schellmann_loop');
  27759. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pna','pna');
  27760. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_coding_exon','three_prime_coding_exon');
  27761. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('endogenous_retroviral_gene','endogenous_retroviral_gene');
  27762. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vertebrate_immunoglobulin_t_cell_receptor_segment','vertebrate_immunoglobulin_t_cell_receptor_segment');
  27763. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_recoded_by_translational_bypass','mrna_recoded_by_translational_bypass');
  27764. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_region','engineered_foreign_region');
  27765. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna_encoding','snorna_encoding');
  27766. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_est','five_prime_est');
  27767. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna_encoding','srp_rna_encoding');
  27768. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foldback_element','foldback_element');
  27769. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_j_c_cluster','d_j_c_cluster');
  27770. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_c_cluster','dj_c_cluster');
  27771. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_encoding','rrna_encoding');
  27772. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_recoded_by_codon_redefinition','mrna_recoded_by_codon_redefinition');
  27773. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methyluridine','five_methyluridine');
  27774. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('immature_peptide_region','immature_peptide_region');
  27775. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homologous','homologous');
  27776. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('metabolic_island','metabolic_island');
  27777. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_sequence','polya_sequence');
  27778. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sirna','sirna');
  27779. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_attribute','sequence_attribute');
  27780. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_intron','trna_intron');
  27781. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_1_translationally_frameshifted','plus_1_translationally_frameshifted');
  27782. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_motif','nucleotide_motif');
  27783. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_motif','dna_motif');
  27784. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_noncoding_exon','five_prime_noncoding_exon');
  27785. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_strand','beta_strand');
  27786. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methyladenosine','one_methyladenosine');
  27787. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ds_oligo','ds_oligo');
  27788. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_motif','asx_motif');
  27789. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oxys_rna','oxys_rna');
  27790. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_hydroxyuridine','five_hydroxyuridine');
  27791. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_formylcytidine','five_formylcytidine');
  27792. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_1_translational_frameshift','plus_1_translational_frameshift');
  27793. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_exon','coding_exon');
  27794. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spliced_leader_rna','spliced_leader_rna');
  27795. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_7_2prirme_o_trimethylguanosine','n2_7_2prirme_o_trimethylguanosine');
  27796. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_fragment','gene_fragment');
  27797. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mitochondrial_chromosome','mitochondrial_chromosome');
  27798. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methyldihydrouridine','five_methyldihydrouridine');
  27799. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('propeptide_cleavage_site','propeptide_cleavage_site');
  27800. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frameshift','frameshift');
  27801. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('amino_acid','amino_acid');
  27802. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translocation_breakpoint','translocation_breakpoint');
  27803. 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');
  27804. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('helix_turn_helix','helix_turn_helix');
  27805. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_5_8s','rrna_5_8s');
  27806. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('simple_sequence_length_variation','simple_sequence_length_variation');
  27807. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methionine','methionine');
  27808. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element_gene','transposable_element_gene');
  27809. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomic_island','genomic_island');
  27810. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_segment','gene_segment');
  27811. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna_gene','snrna_gene');
  27812. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_region','engineered_region');
  27813. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptogene','cryptogene');
  27814. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_coding_exon_noncoding_region','three_prime_coding_exon_noncoding_region');
  27815. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_rna_interference','gene_silenced_by_rna_interference');
  27816. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_interchromosomal_transposition','d_interchr_transposition');
  27817. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural_variant_site','natural_variant_site');
  27818. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assembly','assembly');
  27819. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_minus_2_frameshift','sequence_variant_causing_minus_2_frameshift');
  27820. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('major_tss','major_tss');
  27821. 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');
  27822. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna','trna');
  27823. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_overlapping_peptides','encodes_overlapping_peptides');
  27824. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nc_conserved_region','nc_conserved_region');
  27825. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('locus_control_region','locus_control_region');
  27826. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('s_gna_oligo','s_gna_oligo');
  27827. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_chromosome','dna_chromosome');
  27828. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_b','beta_turn_type_six_b');
  27829. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_gene','engineered_gene');
  27830. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wobble_base_pair','wobble_base_pair');
  27831. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_amino_acid_feature','modified_amino_acid_feature');
  27832. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_to_c_transition','t_to_c_transition');
  27833. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('apicoplast_sequence','apicoplast_sequence');
  27834. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('irlinv_site','irlinv_site');
  27835. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('synthetic_sequence','synthetic_sequence');
  27836. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_1_polypeptide','encodes_1_polypeptide');
  27837. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_decreasing_transcript_stability','sequence_variant_decreasing_transcript_stability');
  27838. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_iia_intron','group_iia_intron');
  27839. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('telomere','telomere');
  27840. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interior_intron','interior_intron');
  27841. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_mrna','edited_mrna');
  27842. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_right_handed_three','catmat_right_handed_three');
  27843. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_effect','sequence_variant_effect');
  27844. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tandem_duplication','tandem_duplication');
  27845. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_gene','tmrna_gene');
  27846. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pre_edited_region','pre_edited_region');
  27847. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_hydroxynorvalylcarbamoyladenosine','n6_hydroxynorvalylcarbamoyladenosine');
  27848. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleomorphic_chromosome','nucleomorphic_chromosome');
  27849. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fragmentary','fragmentary');
  27850. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single','single');
  27851. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('binding_site','binding_site');
  27852. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_methylguanine','seven_methylguanine');
  27853. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('target_site_duplication','target_site_duplication');
  27854. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_gene','vdj_gene');
  27855. 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');
  27856. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bound_by_nucleic_acid','bound_by_nucleic_acid');
  27857. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_right_handed_four','catmat_right_handed_four');
  27858. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('compound_chromosome','compound_chromosome');
  27859. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_end','coding_end');
  27860. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gap','gap');
  27861. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('upstream_aug_codon','upstream_aug_codon');
  27862. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_transcript','pseudogenic_transcript');
  27863. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('satellite_dna','satellite_dna');
  27864. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_deficiency_plus_duplication','assortment_derived_deficiency_plus_duplication');
  27865. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element','transposable_element');
  27866. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('endogenous_retroviral_sequence','endogenous_retroviral_sequence');
  27867. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variation_affecting_level_of_transcript','sequence_variation_affecting_level_of_transcript');
  27868. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('microsatellite','microsatellite');
  27869. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_different_polypeptides_different_stop','encodes_different_polypeptides_different_stop');
  27870. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primary_transcript','primary_transcript');
  27871. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('consensus_mrna','consensus_mrna');
  27872. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('membrane_peptide_loop','membrane_peptide_loop');
  27873. 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');
  27874. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foreign','so_foreign');
  27875. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_deletion','nucleotide_deletion');
  27876. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rho_independent_bacterial_terminator','rho_independent_bacterial_terminator');
  27877. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_histone_deacetylation','gene_silenced_by_histone_deacetylation');
  27878. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_j_c_cluster','vdj_j_c_cluster');
  27879. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cpg_island','cpg_island');
  27880. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('haplotype','haplotype');
  27881. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylinosine','two_prime_o_methylinosine');
  27882. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna','dna');
  27883. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_double_stranded_rna_chromosome','circular_double_stranded_rna_chromosome');
  27884. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mature_protein_region','mature_protein_region');
  27885. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('b_box','b_box');
  27886. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_zinc_ion_contact_site','polypeptide_zinc_ion_contact_site');
  27887. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_subarray_member','gene_subarray_member');
  27888. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_cassette','gene_cassette');
  27889. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oric','oric');
  27890. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deletion_breakpoint','deletion_breakpoint');
  27891. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_plus_2_frameshift','mrna_with_plus_2_frameshift');
  27892. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_right_handed_type_one','asx_turn_right_handed_type_one');
  27893. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcribed_cluster','transcribed_cluster');
  27894. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variation_decreasing_level_of_transcript','sequence_variation_decreasing_level_of_transcript');
  27895. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tyrosyl_trna','tyrosyl_trna');
  27896. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orthologous','orthologous');
  27897. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('s_gna','s_gna');
  27898. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('canonical_three_prime_splice_site','canonical_three_prime_splice_site');
  27899. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('noncoding_exon','noncoding_exon');
  27900. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minor_tss','minor_tss');
  27901. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_two_prime_o_dimethylcytidine','five_two_prime_o_dimethylcytidine');
  27902. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('macronuclear_chromosome','macronuclear_chromosome');
  27903. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_translocation','deficient_translocation');
  27904. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('read_pair','read_pair');
  27905. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_with_translational_frameshift','transcript_with_translational_frameshift');
  27906. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter_type_3','rnapol_iii_promoter_type_3');
  27907. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_transposon','dna_transposon');
  27908. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orf','orf');
  27909. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('right_handed_peptide_helix','right_handed_peptide_helix');
  27910. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nest_left_right_motif','polypeptide_nest_left_right_motif');
  27911. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_splice_donor','sequence_variant_affecting_splice_donor');
  27912. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('topology_attribute','topology_attribute');
  27913. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirtron','mirtron');
  27914. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_motif','polypeptide_motif');
  27915. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proplastid_sequence','proplastid_sequence');
  27916. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('negatively_autoregulated_gene','negatively_autoregulated_gene');
  27917. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_base_site','modified_base_site');
  27918. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_d_box_snorna_encoding','c_d_box_snorna_encoding');
  27919. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_assembly','sequence_assembly');
  27920. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bre_motif','bre_motif');
  27921. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromoplast_gene','chromoplast_gene');
  27922. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_clip','five_prime_clip');
  27923. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('golden_path','golden_path');
  27924. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alanine','alanine');
  27925. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cleaved_peptide_region','cleaved_peptide_region');
  27926. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_j_cluster','v_dj_j_cluster');
  27927. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_region','pseudogenic_region');
  27928. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylation_guide_snorna','methylation_guide_snorna');
  27929. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_j_c_cluster','v_vj_j_c_cluster');
  27930. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_canonical_start_codon','non_canonical_start_codon');
  27931. 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');
  27932. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_turn_motif','polypeptide_turn_motif');
  27933. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autocatalytically_spliced_intron','autocatalytically_spliced_intron');
  27934. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mobile','mobile');
  27935. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intron','intron');
  27936. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clip','clip');
  27937. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dye_terminator_read','dye_terminator_read');
  27938. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('argenine','argenine');
  27939. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv4_motif','dmv4_motif');
  27940. 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');
  27941. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('au_rich_element','au_rich_element');
  27942. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_breakpoint','inversion_breakpoint');
  27943. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_recoding_site','five_prime_recoding_site');
  27944. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_protein_coding','non_protein_coding');
  27945. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mobile_intron','mobile_intron');
  27946. 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');
  27947. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_right_handed_type_one','st_turn_right_handed_type_one');
  27948. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna','rrna');
  27949. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inside_intron_parallel','inside_intron_parallel');
  27950. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spliceosomal_intron','spliceosomal_intron');
  27951. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phagemid','phagemid');
  27952. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('editing_block','editing_block');
  27953. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fragment_assembly','fragment_assembly');
  27954. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_acceptor_piece','tmrna_acceptor_piece');
  27955. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six','beta_turn_type_six');
  27956. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_rst','three_prime_rst');
  27957. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cysteine_trna_primary_transcript','cysteine_trna_primary_transcript');
  27958. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated_gene','post_translationally_regulated_gene');
  27959. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_repressed','transcriptionally_repressed');
  27960. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('crm','crm');
  27961. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cointegrated_plasmid','cointegrated_plasmid');
  27962. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_sequencing_information','polypeptide_sequencing_information');
  27963. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_spacer','three_prime_d_spacer');
  27964. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tiling_path_fragment','tiling_path_fragment');
  27965. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural','so_natural');
  27966. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pi_helix','pi_helix');
  27967. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('possible_base_call_error','possible_base_call_error');
  27968. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('adaptive_island','adaptive_island');
  27969. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uridine_five_oxyacetic_acid','uridine_five_oxyacetic_acid');
  27970. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_2_translational_frameshift','plus_2_translational_frameshift');
  27971. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homologous_region','homologous_region');
  27972. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_utr','internal_utr');
  27973. 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');
  27974. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_cytoplasmic_polypeptide_region','non_cytoplasmic_polypeptide_region');
  27975. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimental_feature','experimental_feature');
  27976. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_chromosome','nuclear_chromosome');
  27977. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exemplar','exemplar');
  27978. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alanine_trna_primary_transcript','alanine_trna_primary_transcript');
  27979. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_n2_dimethylguanosine','n2_n2_dimethylguanosine');
  27980. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_hook_turn','rna_hook_turn');
  27981. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcribed_spacer_region','transcribed_spacer_region');
  27982. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid_gene','plasmid_gene');
  27983. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u14_snorna','u14_snorna');
  27984. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('galactosyl_queuosine','galactosyl_queuosine');
  27985. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyanelle_gene','cyanelle_gene');
  27986. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wild_type_rescue_gene','wild_type_rescue_gene');
  27987. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u12_intron','u12_intron');
  27988. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aptamer','aptamer');
  27989. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded_mrna','recoded_mrna');
  27990. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('macronuclear_sequence','macronuclear_sequence');
  27991. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ust','ust');
  27992. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('selenocysteine','selenocysteine');
  27993. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_dicistronic_mrna','gene_with_dicistronic_mrna');
  27994. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('match_part','match_part');
  27995. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleomorphic_sequence','nucleomorphic_sequence');
  27996. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('apicoplast_gene','apicoplast_gene');
  27997. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulon','regulon');
  27998. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid_vector','plasmid_vector');
  27999. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_tryptophan','modified_l_tryptophan');
  28000. 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');
  28001. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('free_chromosome_arm','free_chromosome_arm');
  28002. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna_primary_transcript','srp_rna_primary_transcript');
  28003. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn','asx_turn');
  28004. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anchor_binding_site','anchor_binding_site');
  28005. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_primary_transcript','rrna_primary_transcript');
  28006. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reading_frame','reading_frame');
  28007. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dhu_loop','dhu_loop');
  28008. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_acetylcytidine','n4_acetylcytidine');
  28009. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_polypeptide_function','sequence_variant_affecting_polypeptide_function');
  28010. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_gene','silenced_gene');
  28011. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cloned_genomic_insert','cloned_genomic_insert');
  28012. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_sequence_secondary_structure','dna_sequence_secondary_structure');
  28013. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cdna_match','cdna_match');
  28014. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_flanking_region','five_prime_flanking_region');
  28015. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrrolysyl_trna','pyrrolysyl_trna');
  28016. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_cis_hydroxyisopentenyl_adenosine','two_methylthio_n6_cis_hydroxyisopentenyl_adenosine');
  28017. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_component','repeat_component');
  28018. 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');
  28019. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rpra_rna','rpra_rna');
  28020. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclease_sensitive_site','nuclease_sensitive_site');
  28021. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_coding_exon_noncoding_region','five_prime_coding_exon_noncoding_region');
  28022. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter','rnapol_iii_promoter');
  28023. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tryptophan_trna_primary_transcript','try_trna_primary_transcript');
  28024. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('region','region');
  28025. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tf_binding_site','tf_binding_site');
  28026. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attl_site','attl_site');
  28027. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural_plasmid','natural_plasmid');
  28028. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_n6_dimethyladenosine','n6_n6_dimethyladenosine');
  28029. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('laevosynaptic_chromosome','laevosynaptic_chromosome');
  28030. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_structural_element','chromosomal_structural_element');
  28031. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_cassette_array','gene_cassette_array');
  28032. 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');
  28033. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('canonical_five_prime_splice_site','canonical_five_prime_splice_site');
  28034. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bound_by_protein','bound_by_protein');
  28035. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sts_map','sts_map');
  28036. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dnazyme','dnazyme');
  28037. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silent_mutation','silent_mutation');
  28038. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_j_cluster','v_d_j_cluster');
  28039. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bipartite_duplication','bipartite_duplication');
  28040. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hydroxywybutosine','hydroxywybutosine');
  28041. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dihydrouridine','dihydrouridine');
  28042. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_rate_of_transcription','sequence_variant_affecting_rate_of_transcription');
  28043. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_coding_exon_coding_region','five_prime_coding_exon_coding_region');
  28044. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_left_handed_type_one','beta_turn_left_handed_type_one');
  28045. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded_codon','recoded_codon');
  28046. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('predicted','predicted');
  28047. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('resolution_site','resolution_site');
  28048. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_cyano_seven_deazaguanosine','seven_cyano_seven_deazaguanosine');
  28049. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_conformational_change','sequence_variant_causing_conformational_change');
  28050. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conformational_switch','conformational_switch');
  28051. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulated','regulated');
  28052. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_repeat','inverted_repeat');
  28053. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_to_a_transversion','t_to_a_transversion');
  28054. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attc_site','attc_site');
  28055. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methyladenosine','two_methyladenosine');
  28056. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cross_genome_match','cross_genome_match');
  28057. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tandem_repeat','tandem_repeat');
  28058. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antisense_primary_transcript','antisense_primary_transcript');
  28059. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_polyadenylation','sequence_variant_affecting_polyadenylation');
  28060. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_collection','sequence_collection');
  28061. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_polyadenylated_mrna','gene_with_polyadenylated_mrna');
  28062. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_i_promoter','rnapol_i_promoter');
  28063. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_methyluridine','three_methyluridine');
  28064. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('start_codon','start_codon');
  28065. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retrotransposon','retrotransposon');
  28066. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_gene','v_gene');
  28067. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chloroplast_dna','chloroplast_dna');
  28068. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('negative_sense_ssrna_viral_sequence','negative_sense_ssrna_viral_sequence');
  28069. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primer_binding_site','primer_binding_site');
  28070. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_box','c_box');
  28071. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid','plasmid');
  28072. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('biological_region','biological_region');
  28073. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_to_a_transition','g_to_a_transition');
  28074. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_canonical_five_prime_splice_site','non_canonical_five_prime_splice_site');
  28075. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_d_box_snorna_primary_transcript','c_d_box_snorna_primary_transcript');
  28076. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_region','trna_region');
  28077. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uncharacterised_change_in_nucleotide_sequence','uncharacterised_change_in_nucleotide_sequence');
  28078. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_cis_hydroxyisopentenyl_adenosine','n6_cis_hydroxyisopentenyl_adenosine');
  28079. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chloroplast_sequence','chloroplast_sequence');
  28080. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_region','exon_region');
  28081. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_five_prime_ltr_region','r_five_prime_ltr_region');
  28082. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_j_c_cluster','v_j_c_cluster');
  28083. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_three_prime_ltr_region','r_three_prime_ltr_region');
  28084. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna','snrna');
  28085. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methylinosine','one_methylinosine');
  28086. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_gene_recombination_feature','j_gene_recombination_feature');
  28087. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_structural_motif','polypeptide_structural_motif');
  28088. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conserved_region','conserved_region');
  28089. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('remark','remark');
  28090. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_dna_contact','polypeptide_dna_contact');
  28091. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('codon','codon');
  28092. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_23s','rrna_23s');
  28093. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna','mrna');
  28094. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glycyl_trna','glycyl_trna');
  28095. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyanelle_sequence','cyanelle_sequence');
  28096. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_independently_known','cds_independently_known');
  28097. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insulator','insulator');
  28098. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('positive_sense_ssrna_viral_sequence','positive_sense_ssrna_viral_sequence');
  28099. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('expressed_sequence_match','expressed_sequence_match');
  28100. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('possible_assembly_error','possible_assembly_error');
  28101. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_snorna','u3_snorna');
  28102. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unorientated_interchromosomal_transposition','unorient_inter_transposition');
  28103. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_manganese_ion_contact_site','polypeptide_manganese_ion_contact_site');
  28104. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_to_t_transversion','g_to_t_transversion');
  28105. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_feature_of_rearranged_gene','recombination_feature_of_rearranged_gene');
  28106. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_primary_transcript','tmrna_primary_transcript');
  28107. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single_stranded_cdna','single_stranded_cdna');
  28108. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimentally_determined','experimentally_determined');
  28109. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_exon','pseudogenic_exon');
  28110. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u2_intron','u2_intron');
  28111. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome','chromosome');
  28112. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_alternately_spliced_transcripts','encodes_alternately_spliced_transcripts');
  28113. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aberrant_processed_transcript','aberrant_processed_transcript');
  28114. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gna','gna');
  28115. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dsra_rna','dsra_rna');
  28116. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intron_domain','intron_domain');
  28117. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_predicted','cds_predicted');
  28118. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_asparagine','modified_l_asparagine');
  28119. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_nonamer','five_prime_d_nonamer');
  28120. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl2_acceptor_site','sl2_acceptor_site');
  28121. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna_primary_transcript','snrna_primary_transcript');
  28122. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translocation','translocation');
  28123. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_phenylalanine','modified_l_phenylalanine');
  28124. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lincrna','lincrna');
  28125. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_valine','modified_l_valine');
  28126. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('yac','yac');
  28127. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('signal_peptide','signal_peptide');
  28128. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_ltr_region','r_ltr_region');
  28129. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna_gene','srp_rna_gene');
  28130. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_transcript_processing','sequence_variant_affecting_transcript_processing');
  28131. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_hotspot','recombination_hotspot');
  28132. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_c_cluster','v_dj_c_cluster');
  28133. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('viral_sequence','viral_sequence');
  28134. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_terminal_inverted_repeat','five_prime_terminal_inverted_repeat');
  28135. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxycarbonylmethyl_two_thiouridine','five_mcm_2_thiouridine');
  28136. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited','edited');
  28137. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_start','coding_start');
  28138. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_utr','three_prime_utr');
  28139. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dpe1_motif','dpe1_motif');
  28140. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_tyrosine','modified_l_tyrosine');
  28141. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_j_c_cluster','v_d_j_c_cluster');
  28142. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unorientated_intrachromosomal_transposition','unorient_intra_transposition');
  28143. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_histone_methylation','silenced_by_histone_methylation');
  28144. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_inversion','deficient_inversion');
  28145. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_thiouridine','two_thiouridine');
  28146. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_thio_two_prime_o_methyluridine','two_thio_two_prime_o_methyluridine');
  28147. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucoplast_sequence','leucoplast_sequence');
  28148. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds','cds');
  28149. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mutation_causing_polypeptide_n_terminal_elongation','mutation_causing_polypeptide_n_terminal_elongation');
  28150. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_signal_sequence','polya_signal_sequence');
  28151. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('micronuclear_sequence','micronuclear_sequence');
  28152. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamyl_trna','glutamyl_trna');
  28153. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna_gene','strna_gene');
  28154. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paternally_imprinted_gene','paternally_imprinted_gene');
  28155. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_chromosome','rna_chromosome');
  28156. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ndm3_motif','ndm3_motif');
  28157. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u1_snrna','u1_snrna');
  28158. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_hydroxymethylcytidine','five_hydroxymethylcytidine');
  28159. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_feature','recombination_feature');
  28160. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_disjoint_polypeptides','encodes_disjoint_polypeptides');
  28161. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated','post_translationally_regulated');
  28162. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_fusion_gene','engineered_fusion_gene');
  28163. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_recombination_signal_sequence','three_prime_d_recombination_signal_sequence');
  28164. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causes_exon_loss','sequence_variant_causes_exon_loss');
  28165. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intermediate','intermediate');
  28166. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_calcium_ion_contact_site','polypeptide_calcium_ion_contact_site');
  28167. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('syntenic_region','syntenic_region');
  28168. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sugar_edge_base_pair','sugar_edge_base_pair');
  28169. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_gene','engineered_foreign_gene');
  28170. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_acetyl_2_prime_o_methylcytidine','n4_acetyl_2_prime_o_methylcytidine');
  28171. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('predicted_by_ab_initio_computation','predicted_by_ab_initio_computation');
  28172. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_secondary_structure','polypeptide_secondary_structure');
  28173. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ncrna_gene','ncrna_gene');
  28174. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_junction_loop','rna_junction_loop');
  28175. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('haplotype_block','haplotype_block');
  28176. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oriv','oriv');
  28177. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ambisense_ssrna_viral_sequence','ambisense_ssrna_viral_sequence');
  28178. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('morpholino_oligo','morpholino_oligo');
  28179. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('centromere','centromere');
  28180. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epigenetically_modified_gene','epigenetically_modified_gene');
  28181. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_inversion','chromosomal_inversion');
  28182. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_35_signal','minus_35_signal');
  28183. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_two_prime_o_dimethyluridine','three_two_prime_o_dimethyluridine');
  28184. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('four_thiouridine','four_thiouridine');
  28185. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcription_end_site','transcription_end_site');
  28186. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pre_mirna','pre_mirna');
  28187. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cysteinyl_trna','cysteinyl_trna');
  28188. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_left_handed_three','catmat_left_handed_three');
  28189. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('schellmann_loop_seven','schellmann_loop_seven');
  28190. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_j_c_cluster','v_vdj_j_c_cluster');
  28191. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element_insertion_site','transposable_element_insertion_site');
  28192. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translocation_element','translocation_element');
  28193. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_primary_transcript_region','mirna_primary_transcript_region');
  28194. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orphan_cds','orphan_cds');
  28195. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic_mrna','monocistronic_mrna');
  28196. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural_transposable_element','natural_transposable_element');
  28197. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('golden_path_fragment','golden_path_fragment');
  28198. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lipoprotein_signal_peptide','lipoprotein_signal_peptide');
  28199. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_large_subunit_primary_transcript','rrna_large_subunit_primary_transcript');
  28200. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_double_stranded_rna_chromosome','linear_double_stranded_rna_chromosome');
  28201. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_increasing_rate_of_transcription','sequence_variant_increasing_rate_of_transcription');
  28202. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plastid_sequence','plastid_sequence');
  28203. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('irrinv_site','irrinv_site');
  28204. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integrated_plasmid','integrated_plasmid');
  28205. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_methionine','modified_l_methionine');
  28206. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromoplast_sequence','chromoplast_sequence');
  28207. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_single_stranded_rna_chromosome','linear_single_stranded_rna_chromosome');
  28208. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('promoter_trap_construct','promoter_trap_construct');
  28209. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('contig_read','contig_read');
  28210. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_methylguanosine','seven_methylguanosine');
  28211. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_redefined_as_selenocysteine','stop_codon_redefined_as_selenocysteine');
  28212. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gamma_turn','gamma_turn');
  28213. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methionyl_trna','methionyl_trna');
  28214. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna','tmrna');
  28215. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cdna','cdna');
  28216. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclease_binding_site','nuclease_binding_site');
  28217. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uridine_five_oxyacetic_acid_methyl_ester','uridine_five_oxyacetic_acid_methyl_ester');
  28218. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_race_clone','three_prime_race_clone');
  28219. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_double_stranded_dna_chromosome','circular_double_stranded_dna_chromosome');
  28220. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_histidine','modified_l_histidine');
  28221. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tss_region','tss_region');
  28222. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('positively_autoregulated_gene','positively_autoregulated_gene');
  28223. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('consensus','consensus');
  28224. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integron','integron');
  28225. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_metal_contact','polypeptide_metal_contact');
  28226. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_loop','d_loop');
  28227. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decayed_exon','decayed_exon');
  28228. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_inosine','modified_inosine');
  28229. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_three_prime_overlap','three_prime_three_prime_overlap');
  28230. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_five_prime_overlap','three_prime_five_prime_overlap');
  28231. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_j_cluster','v_j_cluster');
  28232. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge_loop','beta_bulge_loop');
  28233. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrachromosomal_mutation','intrachromosomal_mutation');
  28234. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv2_motif','dmv2_motif');
  28235. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intergenic_region','intergenic_region');
  28236. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_glycinylcarbamoyladenosine','n6_glycinylcarbamoyladenosine');
  28237. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_feature','sequence_feature');
  28238. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antisense_rna','antisense_rna');
  28239. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_cis_splice_site','three_prime_cis_splice_site');
  28240. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gamma_turn_classic','gamma_turn_classic');
  28241. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rapd','rapd');
  28242. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cca_tail','cca_tail');
  28243. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_ring_chromosome','inverted_ring_chromosome');
  28244. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_double_stranded_dna_chromosome','linear_double_stranded_dna_chromosome');
  28245. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_to_g_transversion','t_to_g_transversion');
  28246. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bruno_response_element','bruno_response_element');
  28247. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_five_prime_ltr_region','u5_five_prime_ltr_region');
  28248. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_to_a_transversion','c_to_a_transversion');
  28249. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('distant_three_prime_recoding_signal','distant_three_prime_recoding_signal');
  28250. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('macronucleus_destined_segment','macronucleus_destined_segment');
  28251. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pre_edited_mrna','pre_edited_mrna');
  28252. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pac','pac');
  28253. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('base','base');
  28254. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic_mrna','polycistronic_mrna');
  28255. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('codon_redefined','codon_redefined');
  28256. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxycarbonylmethyl_two_prime_o_methyluridine','five_methoxycarbonylmethyl_two_prime_o_methyluridine');
  28257. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('match','match');
  28258. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_stop_codon_read_through','gene_with_stop_codon_read_through');
  28259. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asparaginyl_trna','asparaginyl_trna');
  28260. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('threonyl_trna','threonyl_trna');
  28261. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_five_prime_ltr_region','u3_five_prime_ltr_region');
  28262. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_ltr','five_prime_ltr');
  28263. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_gene','vj_gene');
  28264. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_methylguanosine','n2_methylguanosine');
  28265. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rho_dependent_bacterial_terminator','rho_dependent_bacterial_terminator');
  28266. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_flanking_region','three_prime_flanking_region');
  28267. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomically_contaminated_cdna_clone','genomically_contaminated_cdna_clone');
  28268. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_target_site','mirna_target_site');
  28269. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_guide_sequence','internal_guide_sequence');
  28270. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_three_prime_ltr_region','u5_three_prime_ltr_region');
  28271. 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');
  28272. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('undermodified_hydroxywybutosine','undermodified_hydroxywybutosine');
  28273. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('introgressed_chromosome_region','introgressed_chromosome_region');
  28274. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translationally_frameshifted','translationally_frameshifted');
  28275. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_deletion','chromosomal_deletion');
  28276. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucine','leucine');
  28277. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylation_guide_snorna_primary_transcript','methylation_guide_snorna_primary_transcript');
  28278. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_spliced','trans_spliced');
  28279. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_isopentenylaminomethyl_uridine','five_isopentenylaminomethyl_uridine');
  28280. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_threonyl_carbamoyladenosine','two_methylthio_n6_threonyl_carbamoyladenosine');
  28281. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon','stop_codon');
  28282. 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');
  28283. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('biochemical_region_of_peptide','biochemical_region_of_peptide');
  28284. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interband','interband');
  28285. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone_insert','clone_insert');
  28286. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_constraint_sequence','dna_constraint_sequence');
  28287. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snp','snp');
  28288. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromoplast_chromosome','chromoplast_chromosome');
  28289. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tata_box','tata_box');
  28290. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_25s','rrna_25s');
  28291. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plastid_gene','plastid_gene');
  28292. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_left_handed_type_one','asx_turn_left_handed_type_one');
  28293. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_increasing_transcript_stability','sequence_variant_increasing_transcript_stability');
  28294. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_uridine','modified_uridine');
  28295. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysyl_trna','lysyl_trna');
  28296. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intramembrane_polypeptide_region','intramembrane_polypeptide_region');
  28297. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rr_tract','rr_tract');
  28298. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_primary_transcript_region','rrna_primary_transcript_region');
  28299. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alternatively_spliced_transcript','alternatively_spliced_transcript');
  28300. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ds_dna_viral_sequence','ds_dna_viral_sequence');
  28301. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_duplication','chromosomal_duplication');
  28302. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna_encoding','scrna_encoding');
  28303. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_copper_ion_contact_site','polypeptide_copper_ion_contact_site');
  28304. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_isoleucine','modified_l_isoleucine');
  28305. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone','clone');
  28306. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hetero_compound_chromosome','hetero_compound_chromosome');
  28307. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_subarray','gene_subarray');
  28308. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic_transcript','dicistronic_transcript');
  28309. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_dna_methylation','silenced_by_dna_methylation');
  28310. 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');
  28311. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_loop','t_loop');
  28312. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_serine','modified_l_serine');
  28313. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_thiocytidine','two_thiocytidine');
  28314. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_repeat_recoding_signal','three_prime_repeat_recoding_signal');
  28315. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna','srp_rna');
  28316. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_binding_motif','polypeptide_binding_motif');
  28317. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylguanosine','two_prime_o_methylguanosine');
  28318. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_polypeptide_truncation','sequence_variant_causing_polypeptide_truncation');
  28319. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_box','a_box');
  28320. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_rearranged_vertebrate_immune_system_gene','recombinationally_rearranged_vertebrate_immune_system_gene');
  28321. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methylguanosine','one_methylguanosine');
  28322. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_glutamine','modified_l_glutamine');
  28323. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant','sequence_variant');
  28324. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_length_variation','sequence_length_variation');
  28325. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna_encoding','strna_encoding');
  28326. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_1_frameshift','plus_1_frameshift');
  28327. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('topologically_defined_region','topologically_defined_region');
  28328. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_cds','edited_cds');
  28329. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_histone_modification','gene_silenced_by_histone_modification');
  28330. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('e_box_motif','e_box_motif');
  28331. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('small_subunit_rrna','small_subunit_rrna');
  28332. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dnasei_hypersensitive_site','dnasei_hypersensitive_site');
  28333. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_j_c_cluster','v_d_dj_j_c_cluster');
  28334. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('compound_chromosome_arm','compound_chromosome_arm');
  28335. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('feature_attribute','feature_attribute');
  28336. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_match','protein_match');
  28337. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_splicing','sequence_variant_affecting_splicing');
  28338. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_variation','chromosome_variation');
  28339. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_threonine_motif','serine_threonine_motif');
  28340. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allelically_excluded','allelically_excluded');
  28341. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_aneuploid','assortment_derived_aneuploid');
  28342. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('morpholino','morpholino');
  28343. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_isopentenylaminomethyl_two_prime_o_methyluridine','five_isopentenylaminomethyl_two_prime_o_methyluridine');
  28344. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gna_oligo','gna_oligo');
  28345. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('copy_number_variation','copy_number_variation');
  28346. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced','silenced');
  28347. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_methylcytidine','three_methylcytidine');
  28348. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dexstrosynaptic_chromosome','dexstrosynaptic_chromosome');
  28349. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_insertional_duplication','inverted_insertional_duplication');
  28350. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue_mini_gene','rescue_mini_gene');
  28351. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_left_handed_four','catmat_left_handed_four');
  28352. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alternate_sequence_site','alternate_sequence_site');
  28353. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_iron_ion_contact_site','polypeptide_iron_ion_contact_site');
  28354. 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');
  28355. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_molybdenum_ion_contact_site','polypeptide_molybdenum_ion_contact_site');
  28356. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phenylalanine_trna_primary_transcript','phe_trna_primary_transcript');
  28357. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_aca_box_snorna_primary_transcript','h_aca_box_snorna_primary_transcript');
  28358. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_gna','r_gna');
  28359. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrachromosomal_transposition','intrachromosomal_transposition');
  28360. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_polypeptide_localization_change','sequence_variant_causing_polypeptide_localization_change');
  28361. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylated_a','methylated_a');
  28362. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_16s','rrna_16s');
  28363. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_methylcytidine','n4_methylcytidine');
  28364. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('riboswitch','riboswitch');
  28365. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_duplication','assortment_derived_duplication');
  28366. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_regulatory_element','chromosomal_regulatory_element');
  28367. 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');
  28368. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_five_prime_overlap','five_prime_five_prime_overlap');
  28369. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribozymic','ribozymic');
  28370. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_bipartite_deficiency','inversion_derived_bipartite_deficiency');
  28371. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_genomic_contamination','invalidated_by_genomic_contamination');
  28372. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_j_cluster','vj_j_cluster');
  28373. 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');
  28374. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_number_variation','chromosome_number_variation');
  28375. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_attribute','gene_attribute');
  28376. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uag_stop_codon_signal','uag_stop_codon_signal');
  28377. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_match','nucleotide_match');
  28378. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epigenetically_modified','epigenetically_modified');
  28379. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_left_handed_type_two','st_turn_left_handed_type_two');
  28380. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_deficiency_plus_duplication','inversion_derived_deficiency_plus_duplication');
  28381. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylaminomethyl_two_selenouridine','five_methylaminomethyl_two_selenouridine');
  28382. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aspartic_acid_trna_primary_transcript','aspartic_acid_trna_primary_transcript');
  28383. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_mt_pseudogene','nuclear_mt_pseudogene');
  28384. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exonic_splice_enhancer','exonic_splice_enhancer');
  28385. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u4_snrna','u4_snrna');
  28386. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('csrb_rsmb_rna','csrb_rsmb_rna');
  28387. 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');
  28388. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('crispr','crispr');
  28389. 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');
  28390. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna_gene','snorna_gene');
  28391. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_junction','trans_splice_junction');
  28392. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('flanking_three_prime_quadruplet_recoding_signal','flanking_three_prime_quadruplet_recoding_signal');
  28393. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_j_cluster','v_vdj_j_cluster');
  28394. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cassette_pseudogene','cassette_pseudogene');
  28395. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_histone_modification','silenced_by_histone_modification');
  28396. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proviral_gene','proviral_gene');
  28397. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxyhydroxymethyl_uridine','five_carboxyhydroxymethyl_uridine');
  28398. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mt_gene','mt_gene');
  28399. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single_stranded_rna_chromosome','single_stranded_rna_chromosome');
  28400. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoding_stimulatory_region','recoding_stimulatory_region');
  28401. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_taurinomethyluridine','five_taurinomethyluridine');
  28402. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_threonine','modified_l_threonine');
  28403. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_cluster','v_d_dj_cluster');
  28404. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('synthetic_oligo','synthetic_oligo');
  28405. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('purine_to_pyrimidine_transversion','purine_to_pyrimidine_transversion');
  28406. 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');
  28407. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antiparallel_beta_strand','antiparallel_beta_strand');
  28408. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('central_hydrophobic_region_of_signal_peptide','central_hydrophobic_region_of_signal_peptide');
  28409. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integrated_mobile_genetic_element','integrated_mobile_genetic_element');
  28410. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('parallel_beta_strand','parallel_beta_strand');
  28411. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_cluster','v_dj_cluster');
  28412. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dre_motif','dre_motif');
  28413. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_ltr_retrotransposon','non_ltr_retrotransposon');
  28414. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_gna_oligo','r_gna_oligo');
  28415. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autoregulated','autoregulated');
  28416. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_lysine','modified_l_lysine');
  28417. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bac_end','bac_end');
  28418. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrrolysine','pyrrolysine');
  28419. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysine','lysine');
  28420. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_protein_contact','protein_protein_contact');
  28421. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_site','splice_site');
  28422. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_translocation','chromosomal_translocation');
  28423. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epitope','epitope');
  28424. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allele','allele');
  28425. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_n4_2_prime_o_trimethylcytidine','n4_n4_2_prime_o_trimethylcytidine');
  28426. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_ltr_region','u5_ltr_region');
  28427. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue_gene','rescue_gene');
  28428. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgenic_transposable_element','transgenic_transposable_element');
  28429. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_conserved_region','polypeptide_conserved_region');
  28430. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sts','sts');
  28431. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_to_c_transversion','a_to_c_transversion');
  28432. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('class_ii_rna','class_ii_rna');
  28433. 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');
  28434. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unedited_region','unedited_region');
  28435. 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');
  28436. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lambda_vector','lambda_vector');
  28437. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene','gene');
  28438. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alanyl_trna','alanyl_trna');
  28439. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('virtual_sequence','virtual_sequence');
  28440. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_iib_intron','group_iib_intron');
  28441. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retrotransposed','retrotransposed');
  28442. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_minus_2_frameshift','mrna_with_minus_2_frameshift');
  28443. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polymer_attribute','polymer_attribute');
  28444. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autosynaptic_chromosome','autosynaptic_chromosome');
  28445. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptide_helix','peptide_helix');
  28446. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('partially_processed_cdna_clone','partially_processed_cdna_clone');
  28447. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rst_match','rst_match');
  28448. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paternally_imprinted','paternally_imprinted');
  28449. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('predicted_gene','predicted_gene');
  28450. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('robertsonian_fusion','robertsonian_fusion');
  28451. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylpseudouridine','two_prime_o_methylpseudouridine');
  28452. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pericentric_inversion','pericentric_inversion');
  28453. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aspartyl_trna','aspartyl_trna');
  28454. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna','strna');
  28455. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_intron','three_prime_intron');
  28456. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear','linear');
  28457. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_nonamer','j_nonamer');
  28458. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_to_t_transversion','a_to_t_transversion');
  28459. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('idna','idna');
  28460. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_n2_7_trimethylguanosine','n2_n2_7_trimethylguanosine');
  28461. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_chromosomal_mutation','complex_chromosomal_mutation');
  28462. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_deficiency_plus_aneuploid','inversion_derived_deficiency_plus_aneuploid');
  28463. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asymmetric_rna_internal_loop','asymmetric_rna_internal_loop');
  28464. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deletion','deletion');
  28465. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyclic_translocation','cyclic_translocation');
  28466. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ars','ars');
  28467. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutaminyl_trna','glutaminyl_trna');
  28468. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allopolyploid','allopolyploid');
  28469. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('replicon','replicon');
  28470. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylcytidine','two_prime_o_methylcytidine');
  28471. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_left_handed_type_one','st_turn_left_handed_type_one');
  28472. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paralogous_region','paralogous_region');
  28473. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mature_transcript_region','mature_transcript_region');
  28474. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_frameshift','mrna_with_frameshift');
  28475. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_j_cluster','d_dj_j_cluster');
  28476. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maxicircle_gene','maxicircle_gene');
  28477. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_right_handed_type_two','st_turn_right_handed_type_two');
  28478. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna_encoding','snrna_encoding');
  28479. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_spacer','five_prime_d_spacer');
  28480. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('read','read');
  28481. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('arginine_trna_primary_transcript','arg_trna_primary_transcript');
  28482. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oligo_u_tail','oligo_u_tail');
  28483. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoding_pseudoknot','recoding_pseudoknot');
  28484. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylaminomethyl_two_thiouridine','five_mam_2_thiouridine');
  28485. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic','monocistronic');
  28486. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frame_restoring_sequence_variant','frame_restoring_sequence_variant');
  28487. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transmembrane_polypeptide_region','transmembrane_polypeptide_region');
  28488. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vector_replicon','vector_replicon');
  28489. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrosequenced_read','pyrosequenced_read');
  28490. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_magnesium_ion_contact_site','polypeptide_magnesium_ion_contact_site');
  28491. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic_transcript','polycistronic_transcript');
  28492. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_site','polya_site');
  28493. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('free_duplication','free_duplication');
  28494. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_structure_variation','chromosome_structure_variation');
  28495. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_rna_base_feature','modified_rna_base_feature');
  28496. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mutated_variant_site','mutated_variant_site');
  28497. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gaga_motif','gaga_motif');
  28498. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interchromosomal_mutation','interchromosomal_mutation');
  28499. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('prophage','prophage');
  28500. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('syntenic','syntenic');
  28501. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_repetitive_element','engineered_foreign_repetitive_element');
  28502. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translated_nucleotide_match','translated_nucleotide_match');
  28503. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_aca_box_snorna','h_aca_box_snorna');
  28504. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vault_rna','vault_rna');
  28505. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orphan','orphan');
  28506. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_single_stranded_dna_chromosome','linear_single_stranded_dna_chromosome');
  28507. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_greater_than_1_polypeptide','encodes_greater_than_1_polypeptide');
  28508. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('atti_site','atti_site');
  28509. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_histone_deacetylation','silenced_by_histone_deacetylation');
  28510. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reagent','reagent');
  28511. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_fission','chromosome_fission');
  28512. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ct_gene','ct_gene');
  28513. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('capped_primary_transcript','capped_primary_transcript');
  28514. 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');
  28515. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylinosine','methylinosine');
  28516. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_spacer','j_spacer');
  28517. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamine','glutamine');
  28518. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_guanosine','modified_guanosine');
  28519. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_7_dimethylguanosine','n2_7_dimethylguanosine');
  28520. 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');
  28521. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_heptamer','three_prime_d_heptamer');
  28522. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_cdna_clone','invalidated_cdna_clone');
  28523. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminator','terminator');
  28524. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stem_loop','stem_loop');
  28525. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_utr_intron','five_prime_utr_intron');
  28526. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_plus_2_frameshift','sequence_variant_causing_plus_2_frameshift');
  28527. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_band','chromosome_band');
  28528. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mini_exon_donor_rna','mini_exon_donor_rna');
  28529. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aneuploid','aneuploid');
  28530. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methyl_2_thiouridine','five_methyl_2_thiouridine');
  28531. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_dna_methylation','gene_silenced_by_dna_methylation');
  28532. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_transposable_element_gene','engineered_foreign_transposable_element_gene');
  28533. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('processed_pseudogene','processed_pseudogene');
  28534. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supercontig','supercontig');
  28535. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_encoding','trna_encoding');
  28536. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reciprocal_chromosomal_translocation','reciprocal_chromosomal_translocation');
  28537. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hoogsteen_base_pair','hoogsteen_base_pair');
  28538. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('purine_transition','purine_transition');
  28539. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_d_box_snorna','c_d_box_snorna');
  28540. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna_primary_transcript','snorna_primary_transcript');
  28541. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_cluster','v_vj_cluster');
  28542. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_ltr_region','u3_ltr_region');
  28543. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attenuator','attenuator');
  28544. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_noncoding_exon','three_prime_noncoding_exon');
  28545. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u14_snorna_primary_transcript','u14_snorna_primary_transcript');
  28546. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_gene_recombination_feature','d_gene_recombination_feature');
  28547. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mte','mte');
  28548. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variation_affecting_coding_sequence','sequence_variation_affecting_coding_sequence');
  28549. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gcvb_rna','gcvb_rna');
  28550. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rst','rst');
  28551. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('operator','operator');
  28552. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ring_chromosome','ring_chromosome');
  28553. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ndm2_motif','ndm2_motif');
  28554. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('selenocysteine_trna_primary_transcript','selenocysteine_trna_primary_transcript');
  28555. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_transcript_feature','edited_transcript_feature');
  28556. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_redefined_as_pyrrolysine','stop_codon_redefined_as_pyrrolysine');
  28557. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homo_compound_chromosome','homo_compound_chromosome');
  28558. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foreign_gene','foreign_gene');
  28559. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('four_demethylwyosine','four_demethylwyosine');
  28560. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('guide_rna','guide_rna');
  28561. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_methylpseudouridine','three_methylpseudouridine');
  28562. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_aneuploid_chromosome','inversion_derived_aneuploid_chromosome');
  28563. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('specific_recombination_site','specific_recombination_site');
  28564. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inosine','inosine');
  28565. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foreign_transposable_element','foreign_transposable_element');
  28566. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_gene','d_gene');
  28567. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bipartite_inversion','bipartite_inversion');
  28568. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_plasmid','engineered_plasmid');
  28569. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_group_regulatory_region','gene_group_regulatory_region');
  28570. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vd_gene','vd_gene');
  28571. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulatory_region','regulatory_region');
  28572. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_decreasing_rate_of_transcription','sequence_variant_decreasing_rate_of_transcription');
  28573. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('guide_rna_region','guide_rna_region');
  28574. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence variant_affecting_transcript_stability','sequence_variant_affecting_transcript_stability');
  28575. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_ten_helix','three_ten_helix');
  28576. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sarcin_like_rna_motif','sarcin_like_rna_motif');
  28577. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_1_translationally_frameshifted','minus_1_translationally_frameshifted');
  28578. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_alanine','modified_l_alanine');
  28579. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_amino_acid_deletion','sequence_variant_causing_amino_acid_deletion');
  28580. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_cum_translocation','inversion_cum_translocation');
  28581. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tag','tag');
  28582. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uninverted_interchromosomal_transposition','uninvert_inter_transposition');
  28583. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_gene','cryptic_gene');
  28584. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgenic','transgenic');
  28585. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomic_clone','genomic_clone');
  28586. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_breakage_sequence','chromosome_breakage_sequence');
  28587. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_j_cluster','d_j_cluster');
  28588. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_a_one','beta_turn_type_six_a_one');
  28589. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribosome_entry_site','ribosome_entry_site');
  28590. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('left_handed_peptide_helix','left_handed_peptide_helix');
  28591. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_aptamer','dna_aptamer');
  28592. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('i_motif','i_motif');
  28593. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_intrachromosomal_transposition','d_intrachr_transposition');
  28594. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single_stranded_dna_chromosome','single_stranded_dna_chromosome');
  28595. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylated_c','methylated_c');
  28596. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ligation_based_read','ligation_based_read');
  28597. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('expressed_sequence_assembly','expressed_sequence_assembly');
  28598. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_two_prime_o_dimethyluridine','five_two_prime_o_dimethyluridine');
  28599. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histidine_trna_primary_transcript','histidine_trna_primary_transcript');
  28600. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orthologous_region','orthologous_region');
  28601. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('valine_trna_primary_transcript','valine_trna_primary_transcript');
  28602. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('operon_member','operon_member');
  28603. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_group','gene_group');
  28604. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposition','transposition');
  28605. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('small_regulatory_ncrna','small_regulatory_ncrna');
  28606. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrachromosomal_duplication','intrachromosomal_duplication');
  28607. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uaa_stop_codon_signal','uaa_stop_codon_signal');
  28608. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_2_frameshift','minus_2_frameshift');
  28609. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('organelle_sequence','organelle_sequence');
  28610. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_prophage','cryptic_prophage');
  28611. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('micf_rna','micf_rna');
  28612. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('direct_tandem_duplication','direct_tandem_duplication');
  28613. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conserved','conserved');
  28614. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('telomerase_rna','telomerase_rna');
  28615. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u6atac_snrna','u6atac_snrna');
  28616. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attb_site','attb_site');
  28617. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_array_member','gene_array_member');
  28618. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polyadenylated_mrna','polyadenylated_mrna');
  28619. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('symbiosis_island','symbiosis_island');
  28620. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_junction','splice_junction');
  28621. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fingerprint_map','fingerprint_map');
  28622. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wyosine','wyosine');
  28623. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uga_stop_codon_signal','uga_stop_codon_signal');
  28624. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cytoplasmic_polypeptide_region','cytoplasmic_polypeptide_region');
  28625. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_two_prime_o_dimethylguanosine','one_two_prime_o_dimethylguanosine');
  28626. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rh_map','rh_map');
  28627. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_dna_modification','silenced_by_dna_modification');
  28628. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anticodon','anticodon');
  28629. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_deazaguanosine','seven_deazaguanosine');
  28630. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asparagine','asparagine');
  28631. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('probe','probe');
  28632. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('defective_conjugative_transposon','defective_conjugative_transposon');
  28633. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('archaeosine','archaeosine');
  28634. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('molecular_contact_region','molecular_contact_region');
  28635. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('membrane_structure','membrane_structure');
  28636. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('contig_collection','contig_collection');
  28637. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tetraloop','tetraloop');
  28638. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_conserved_region','coding_conserved_region');
  28639. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('long_terminal_repeat','long_terminal_repeat');
  28640. 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');
  28641. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('untranslated_region_polycistronic_mrna','untranslated_region_polycistronic_mrna');
  28642. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucine_trna_primary_transcript','leucine_trna_primary_transcript');
  28643. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_single_stranded_dna_chromosome','circular_single_stranded_dna_chromosome');
  28644. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isoleucyl_trna','isoleucyl_trna');
  28645. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion_breakpoint','insertion_breakpoint');
  28646. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgene','transgene');
  28647. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_region','mrna_region');
  28648. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_attribute','transcript_attribute');
  28649. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_threonine_staple_motif','serine_threonine_staple_motif');
  28650. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_coding','protein_coding');
  28651. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer_bound_by_factor','enhancer_bound_by_factor');
  28652. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded_by_translational_bypass','recoded_by_translational_bypass');
  28653. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('operon','operon');
  28654. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic_transcript','monocistronic_transcript');
  28655. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_amino_acid_insertion','sequence_variant_causing_amino_acid_insertion');
  28656. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polyadenylated','polyadenylated');
  28657. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unigene_cluster','unigene_cluster');
  28658. 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');
  28659. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_cassette_member','gene_cassette_member');
  28660. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_read_through','stop_codon_read_through');
  28661. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_transcript_with_translational_frameshift','gene_with_transcript_with_translational_frameshift');
  28662. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mnp','mnp');
  28663. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamic_acid','glutamic_acid');
  28664. 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');
  28665. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn','beta_turn');
  28666. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pathogenic_island','pathogenic_island');
  28667. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ust_match','ust_match');
  28668. 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');
  28669. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_bound_by_protein','transcript_bound_by_protein');
  28670. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_methyladenosine','n6_methyladenosine');
  28671. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyanelle_chromosome','cyanelle_chromosome');
  28672. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orit','orit');
  28673. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maternally_imprinted','maternally_imprinted');
  28674. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chloroplast_chromosome','chloroplast_chromosome');
  28675. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minicircle_gene','minicircle_gene');
  28676. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_catalytic_motif','polypeptide_catalytic_motif');
  28677. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter_type_2','rnapol_iii_promoter_type_2');
  28678. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('no_output','no_output');
  28679. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interior_coding_exon','interior_coding_exon');
  28680. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_taurinomethyl_two_thiouridine','five_taurinomethyl_two_thiouridine');
  28681. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide','polypeptide');
  28682. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polymerase_synthesis_read','polymerase_synthesis_read');
  28683. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer_binding_site','enhancer_binding_site');
  28684. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_left_handed_type_two','beta_turn_left_handed_type_two');
  28685. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_genomic_polya_primed_cdna','invalidated_by_genomic_polya_primed_cdna');
  28686. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_edited_transcript','gene_with_edited_transcript');
  28687. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv1_motif','dmv1_motif');
  28688. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_modified_region','post_translationally_modified_region');
  28689. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proline','proline');
  28690. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('flanking_region','flanking_region');
  28691. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_isopentenyladenosine','two_methylthio_n6_isopentenyladenosine');
  28692. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypyrimidine_tract','polypyrimidine_tract');
  28693. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxyuridine','five_methoxyuridine');
  28694. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_to_gene_feature','gene_to_gene_feature');
  28695. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bac_cloned_genomic_insert','bac_cloned_genomic_insert');
  28696. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_heptamer','j_heptamer');
  28697. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_ust','three_prime_ust');
  28698. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_2_prime_o_dimethyladenosine','n6_2_prime_o_dimethyladenosine');
  28699. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_site','trans_splice_site');
  28700. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_rescue_region','engineered_rescue_region');
  28701. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleomorph_gene','nucleomorph_gene');
  28702. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_attribute','mrna_attribute');
  28703. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_three_prime_overlap','five_prime_three_prime_overlap');
  28704. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_i_intron','group_i_intron');
  28705. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_cluster','d_cluster');
  28706. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomic_dna','genomic_dna');
  28707. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inside_intron','inside_intron');
  28708. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hammerhead_ribozyme','hammerhead_ribozyme');
  28709. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_heptamer','five_prime_d_heptamer');
  28710. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intronic_splice_enhancer','intronic_splice_enhancer');
  28711. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_adenosine','modified_adenosine');
  28712. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethylaminomethyluridine','five_carboxymethylaminomethyluridine');
  28713. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_region','repeat_region');
  28714. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_unit','repeat_unit');
  28715. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double_stranded_dna_chromosome','double_stranded_dna_chromosome');
  28716. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('template_region','template_region');
  28717. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primary_transcript_region','primary_transcript_region');
  28718. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mitochondrial_dna','mitochondrial_dna');
  28719. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_region','transcript_region');
  28720. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribozyme','ribozyme');
  28721. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('matrix_attachment_site','matrix_attachment_site');
  28722. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('imprinted','imprinted');
  28723. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('est','est');
  28724. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_motif','rna_motif');
  28725. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_variation_site','polypeptide_variation_site');
  28726. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('class_i_rna','class_i_rna');
  28727. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oligo','oligo');
  28728. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_signal','stop_codon_signal');
  28729. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hypoploid','hypoploid');
  28730. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exemplar_mrna','exemplar_mrna');
  28731. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_to_g_transversion','c_to_g_transversion');
  28732. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('active_peptide','active_peptide');
  28733. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mannosyl_queuosine','mannosyl_queuosine');
  28734. 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');
  28735. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('queuosine','queuosine');
  28736. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lna_oligo','lna_oligo');
  28737. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('independently_known','independently_known');
  28738. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causes_intron_gain','sequence_variant_causes_intron_gain');
  28739. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proviral_region','proviral_region');
  28740. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('capped','capped');
  28741. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('direction_attribute','direction_attribute');
  28742. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('micronuclear_chromosome','micronuclear_chromosome');
  28743. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogene_by_unequal_crossing_over','pseudogene_by_unequal_crossing_over');
  28744. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_two_prime_o_dimethyladenosine','one_two_prime_o_dimethyladenosine');
  28745. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dpe_motif','dpe_motif');
  28746. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seryl_trna','seryl_trna');
  28747. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integration_excision_site','integration_excision_site');
  28748. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('noncoding_region_of_exon','noncoding_region_of_exon');
  28749. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnase_mrp_rna','rnase_mrp_rna');
  28750. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxycarbonylmethyluridine','five_methoxycarbonylmethyluridine');
  28751. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_of_single_exon_gene','exon_of_single_exon_gene');
  28752. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_dicistronic_primary_transcript','gene_with_dicistronic_primary_transcript');
  28753. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_secondary_structure','sequence_secondary_structure');
  28754. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tiling_path','tiling_path');
  28755. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_sequence','nuclear_sequence');
  28756. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('contig','contig');
  28757. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catalytic_residue','catalytic_residue');
  28758. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_site','inversion_site');
  28759. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aspartic_acid','aspartic_acid');
  28760. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dif_site','dif_site');
  28761. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_gene','mirna_gene');
  28762. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('valyl_trna','valyl_trna');
  28763. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_tandem_duplication','inverted_tandem_duplication');
  28764. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cis_regulatory_frameshift_element','cis_regulatory_frameshift_element');
  28765. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minisatellite','minisatellite');
  28766. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assembly_component','assembly_component');
  28767. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('low_complexity_region','low_complexity_region');
  28768. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('designed_sequence','designed_sequence');
  28769. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_n6_2_prime_o_trimethyladenosine','n6_n6_2_prime_o_trimethyladenosine');
  28770. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_polymerase_promoter','rna_polymerase_promoter');
  28771. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_gene_recombination_feature','v_gene_recombination_feature');
  28772. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethylaminomethyl_two_thiouridine','five_carboxymethylaminomethyl_two_thiouridine');
  28773. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('free_ring_duplication','free_ring_duplication');
  28774. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic_mrna','dicistronic_mrna');
  28775. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uncharacterised_chromosomal_mutation','uncharacterised_chromosomal_mutation');
  28776. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_cis_splice_site','five_prime_cis_splice_site');
  28777. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('octamer_motif','octamer_motif');
  28778. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_overlapping_peptides_different_start','encodes_overlapping_peptides_different_start');
  28779. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ss_rna_viral_sequence','ss_rna_viral_sequence');
  28780. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('indel','indel');
  28781. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic_primary_transcript','dicistronic_primary_transcript');
  28782. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_binding_site','protein_binding_site');
  28783. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic','polycistronic');
  28784. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asparagine_trna_primary_transcript','asparagine_trna_primary_transcript');
  28785. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_enhancer','splice_enhancer');
  28786. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aneuploid_chromosome','aneuploid_chromosome');
  28787. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peroxywybutosine','peroxywybutosine');
  28788. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_aspartic_acid','modified_l_aspartic_acid');
  28789. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_episome','engineered_episome');
  28790. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnai_reagent','rnai_reagent');
  28791. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rasirna','rasirna');
  28792. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_region','tmrna_region');
  28793. 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');
  28794. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bacterial_rnapol_promoter','bacterial_rnapol_promoter');
  28795. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mitochondrial_sequence','mitochondrial_sequence');
  28796. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trinucleotide_repeat_microsatellite_feature','trinuc_repeat_microsat');
  28797. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated_by_protein_stability','post_translationally_regulated_by_protein_stability');
  28798. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nc_primary_transcript','nc_primary_transcript');
  28799. 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');
  28800. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('iron_responsive_element','iron_responsive_element');
  28801. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_j_cluster','v_d_dj_j_cluster');
  28802. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('forward','forward');
  28803. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proviral_location','proviral_location');
  28804. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_binding_site','histone_binding_site');
  28805. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pse_motif','pse_motif');
  28806. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_eight','beta_turn_type_eight');
  28807. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double','double');
  28808. 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');
  28809. 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');
  28810. 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');
  28811. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double_stranded_rna_chromosome','double_stranded_rna_chromosome');
  28812. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_glutamic_acid','modified_l_glutamic_acid');
  28813. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nest_motif','polypeptide_nest_motif');
  28814. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translational_frameshift','translational_frameshift');
  28815. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_terminal_inverted_repeat','three_prime_terminal_inverted_repeat');
  28816. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_trna','pseudogenic_trna');
  28817. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cap','cap');
  28818. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_coding_exon','five_prime_coding_exon');
  28819. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enzymatic','enzymatic');
  28820. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interior_exon','interior_exon');
  28821. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_to_g_transition','a_to_g_transition');
  28822. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_causing_inactive_catalytic_site','sequence_variant_causing_inactive_catalytic_site');
  28823. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine','two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine');
  28824. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maternally_imprinted_gene','maternally_imprinted_gene');
  28825. 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');
  28826. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular','circular');
  28827. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_pseudoknot','h_pseudoknot');
  28828. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript','transcript');
  28829. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogene','pseudogene');
  28830. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_duplication','nucleotide_duplication');
  28831. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('direct_repeat','direct_repeat');
  28832. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bacterial_terminator','bacterial_terminator');
  28833. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('diplotype','diplotype');
  28834. 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');
  28835. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_gene','dj_gene');
  28836. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methyladenosine','two_prime_o_methyladenosine');
  28837. 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');
  28838. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('restriction_enzyme_binding_site','restriction_enzyme_binding_site');
  28839. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bac','bac');
  28840. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_j_cluster','dj_j_cluster');
  28841. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_donor_site','trans_splice_donor_site');
  28842. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleic_acid','nucleic_acid');
  28843. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_chimeric_cdna','invalidated_by_chimeric_cdna');
  28844. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histidine','histidine');
  28845. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_component_region','gene_component_region');
  28846. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primer_match','primer_match');
  28847. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_primary_transcript','trna_primary_transcript');
  28848. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('loxp_site','loxp_site');
  28849. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine','serine');
  28850. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('propeptide','propeptide');
  28851. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_open_reading_frame','five_prime_open_reading_frame');
  28852. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('schellmann_loop_six','schellmann_loop_six');
  28853. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('shine_dalgarno_sequence','shine_dalgarno_sequence');
  28854. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sp6_rna_polymerase_promoter','sp6_rna_polymerase_promoter');
  28855. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_editing','sequence_variant_affecting_editing');
  28856. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_regulatory_region','sequence_variant_affecting_regulatory_region');
  28857. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysine_trna_primary_transcript','lysine_trna_primary_transcript');
  28858. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_c_cluster','j_c_cluster');
  28859. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_deficiency','assortment_derived_deficiency');
  28860. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_primary_transcript','mirna_primary_transcript');
  28861. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_5s','rrna_5s');
  28862. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucyl_trna','leucyl_trna');
  28863. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_intrachromosomal_transposition','invert_intra_transposition');
  28864. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enzymatic_rna','enzymatic_rna');
  28865. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('negatively_autoregulated','negatively_autoregulated');
  28866. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anchor_region','anchor_region');
  28867. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon','exon');
  28868. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_a','beta_turn_type_six_a');
  28869. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('random_sequence','random_sequence');
  28870. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('partially_characterised_chromosomal_mutation','partially_characterised_chromosomal_mutation');
  28871. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna','rna');
  28872. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_transcript_secondary_structure','sequence_variant_affecting_transcript_secondary_structure');
  28873. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ss_oligo','ss_oligo');
  28874. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_duplication_plus_aneuploid','inversion_derived_duplication_plus_aneuploid');
  28875. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_bound_by_nucleic_acid','transcript_bound_by_nucleic_acid');
  28876. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intein_containing','intein_containing');
  28877. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_aca_box_snorna_encoding','h_aca_box_snorna_encoding');
  28878. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_cleavage_rna','rrna_cleavage_rna');
  28879. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer_trap_construct','enhancer_trap_construct');
  28880. 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');
  28881. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gamma_turn_inverse','gamma_turn_inverse');
  28882. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_nonamer','three_prime_d_nonamer');
  28883. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('selenocysteinyl_trna','selenocysteinyl_trna');
  28884. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_histone_methylation','gene_silenced_by_histone_methylation');
  28885. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u11_snrna','u11_snrna');
  28886. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna','scrna');
  28887. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant_affecting_copy_number','sequence_variant_affecting_copy_number');
  28888. 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');
  28889. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silencer','silencer');
  28890. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sage_tag','sage_tag');
  28891. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_minus_1_frameshift','mrna_with_minus_1_frameshift');
  28892. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_gene','nuclear_gene');
  28893. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_supported_by_domain_match_data','cds_supported_by_domain_match_data');
  28894. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_shine_dalgarno_sequence','internal_shine_dalgarno_sequence');
  28895. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('prolyl_trna','prolyl_trna');
  28896. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysidine','lysidine');
  28897. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge','beta_bulge');
  28898. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated_by_protein_modification','post_translationally_regulated_by_protein_modification');
  28899. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ncrna','ncrna');
  28900. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('grna_gene','grna_gene');
  28901. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer','enhancer');
  28902. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polymorphic_sequence_variant','polymorphic_sequence_variant');
  28903. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_clip','three_prime_clip');
  28904. CREATE INDEX sequence_cv_lookup_table_idx ON sequence_cv_lookup_table (original_cvterm_name);
  28905. SET search_path=public,pg_catalog;
  28906. -- DEPENDENCY:
  28907. -- chado/modules/bridges/sofa-bridge.sql
  28908. -- The standard Chado pattern for protein coding genes
  28909. -- is a feature of type 'gene' with 'mRNA' features as parts
  28910. -- REQUIRES: 'mrna' view from so-bridge.sql
  28911. CREATE OR REPLACE VIEW protein_coding_gene AS
  28912. SELECT
  28913. DISTINCT gene.*
  28914. FROM
  28915. feature AS gene
  28916. INNER JOIN feature_relationship AS fr ON (gene.feature_id=fr.object_id)
  28917. INNER JOIN so.mrna ON (mrna.feature_id=fr.subject_id);
  28918. -- introns are implicit from surrounding exons
  28919. -- combines intron features with location and parent transcript
  28920. -- the same intron appearing in multiple transcripts will appear
  28921. -- multiple times
  28922. CREATE VIEW intron_combined_view AS
  28923. SELECT
  28924. x1.feature_id AS exon1_id,
  28925. x2.feature_id AS exon2_id,
  28926. CASE WHEN l1.strand=-1 THEN l2.fmax ELSE l1.fmax END AS fmin,
  28927. CASE WHEN l1.strand=-1 THEN l1.fmin ELSE l2.fmin END AS fmax,
  28928. l1.strand AS strand,
  28929. l1.srcfeature_id AS srcfeature_id,
  28930. r1.rank AS intron_rank,
  28931. r1.object_id AS transcript_id
  28932. FROM
  28933. cvterm
  28934. INNER JOIN
  28935. feature AS x1 ON (x1.type_id=cvterm.cvterm_id)
  28936. INNER JOIN
  28937. feature_relationship AS r1 ON (x1.feature_id=r1.subject_id)
  28938. INNER JOIN
  28939. featureloc AS l1 ON (x1.feature_id=l1.feature_id)
  28940. INNER JOIN
  28941. feature AS x2 ON (x2.type_id=cvterm.cvterm_id)
  28942. INNER JOIN
  28943. feature_relationship AS r2 ON (x2.feature_id=r2.subject_id)
  28944. INNER JOIN
  28945. featureloc AS l2 ON (x2.feature_id=l2.feature_id)
  28946. WHERE
  28947. cvterm.name='exon' AND
  28948. (r2.rank - r1.rank) = 1 AND
  28949. r1.object_id=r2.object_id AND
  28950. l1.strand = l2.strand AND
  28951. l1.srcfeature_id = l2.srcfeature_id AND
  28952. l1.locgroup=0 AND
  28953. l2.locgroup=0;
  28954. -- intron locations. intron IDs are the (exon1,exon2) ID pair
  28955. -- this means that introns may be counted twice if the start of
  28956. -- the 5' exon or the end of the 3' exon vary
  28957. -- introns shared by transcripts will not appear twice
  28958. CREATE VIEW intronloc_view AS
  28959. SELECT DISTINCT
  28960. exon1_id,
  28961. exon2_id,
  28962. fmin,
  28963. fmax,
  28964. strand,
  28965. srcfeature_id
  28966. FROM intron_combined_view;
  28967. CREATE OR REPLACE FUNCTION store_feature
  28968. (INT,INT,INT,INT,
  28969. INT,INT,VARCHAR,VARCHAR,INT,BOOLEAN)
  28970. RETURNS INT AS
  28971. 'DECLARE
  28972. v_srcfeature_id ALIAS FOR $1;
  28973. v_fmin ALIAS FOR $2;
  28974. v_fmax ALIAS FOR $3;
  28975. v_strand ALIAS FOR $4;
  28976. v_dbxref_id ALIAS FOR $5;
  28977. v_organism_id ALIAS FOR $6;
  28978. v_name ALIAS FOR $7;
  28979. v_uniquename ALIAS FOR $8;
  28980. v_type_id ALIAS FOR $9;
  28981. v_is_analysis ALIAS FOR $10;
  28982. v_feature_id INT;
  28983. v_featureloc_id INT;
  28984. BEGIN
  28985. IF v_dbxref_id IS NULL THEN
  28986. SELECT INTO v_feature_id feature_id
  28987. FROM feature
  28988. WHERE uniquename=v_uniquename AND
  28989. organism_id=v_organism_id AND
  28990. type_id=v_type_id;
  28991. ELSE
  28992. SELECT INTO v_feature_id feature_id
  28993. FROM feature
  28994. WHERE dbxref_id=v_dbxref_id;
  28995. END IF;
  28996. IF NOT FOUND THEN
  28997. INSERT INTO feature
  28998. ( dbxref_id ,
  28999. organism_id ,
  29000. name ,
  29001. uniquename ,
  29002. type_id ,
  29003. is_analysis )
  29004. VALUES
  29005. ( v_dbxref_id ,
  29006. v_organism_id ,
  29007. v_name ,
  29008. v_uniquename ,
  29009. v_type_id ,
  29010. v_is_analysis );
  29011. v_feature_id = currval(''feature_feature_id_seq'');
  29012. ELSE
  29013. UPDATE feature SET
  29014. dbxref_id = v_dbxref_id ,
  29015. organism_id = v_organism_id ,
  29016. name = v_name ,
  29017. uniquename = v_uniquename ,
  29018. type_id = v_type_id ,
  29019. is_analysis = v_is_analysis
  29020. WHERE
  29021. feature_id=v_feature_id;
  29022. END IF;
  29023. PERFORM store_featureloc(v_feature_id,
  29024. v_srcfeature_id,
  29025. v_fmin,
  29026. v_fmax,
  29027. v_strand,
  29028. 0,
  29029. 0);
  29030. RETURN v_feature_id;
  29031. END;
  29032. ' LANGUAGE 'plpgsql';
  29033. CREATE OR REPLACE FUNCTION store_featureloc
  29034. (INT,INT,INT,INT,INT,INT,INT)
  29035. RETURNS INT AS
  29036. 'DECLARE
  29037. v_feature_id ALIAS FOR $1;
  29038. v_srcfeature_id ALIAS FOR $2;
  29039. v_fmin ALIAS FOR $3;
  29040. v_fmax ALIAS FOR $4;
  29041. v_strand ALIAS FOR $5;
  29042. v_rank ALIAS FOR $6;
  29043. v_locgroup ALIAS FOR $7;
  29044. v_featureloc_id INT;
  29045. BEGIN
  29046. IF v_feature_id IS NULL THEN RAISE EXCEPTION ''feature_id cannot be null'';
  29047. END IF;
  29048. SELECT INTO v_featureloc_id featureloc_id
  29049. FROM featureloc
  29050. WHERE feature_id=v_feature_id AND
  29051. rank=v_rank AND
  29052. locgroup=v_locgroup;
  29053. IF NOT FOUND THEN
  29054. INSERT INTO featureloc
  29055. ( feature_id,
  29056. srcfeature_id,
  29057. fmin,
  29058. fmax,
  29059. strand,
  29060. rank,
  29061. locgroup)
  29062. VALUES
  29063. ( v_feature_id,
  29064. v_srcfeature_id,
  29065. v_fmin,
  29066. v_fmax,
  29067. v_strand,
  29068. v_rank,
  29069. v_locgroup);
  29070. v_featureloc_id = currval(''featureloc_featureloc_id_seq'');
  29071. ELSE
  29072. UPDATE featureloc SET
  29073. feature_id = v_feature_id,
  29074. srcfeature_id = v_srcfeature_id,
  29075. fmin = v_fmin,
  29076. fmax = v_fmax,
  29077. strand = v_strand,
  29078. rank = v_rank,
  29079. locgroup = v_locgroup
  29080. WHERE
  29081. featureloc_id=v_featureloc_id;
  29082. END IF;
  29083. RETURN v_featureloc_id;
  29084. END;
  29085. ' LANGUAGE 'plpgsql';
  29086. CREATE OR REPLACE FUNCTION store_feature_synonym
  29087. (INT,VARCHAR,INT,BOOLEAN,BOOLEAN,INT)
  29088. RETURNS INT AS
  29089. 'DECLARE
  29090. v_feature_id ALIAS FOR $1;
  29091. v_syn ALIAS FOR $2;
  29092. v_type_id ALIAS FOR $3;
  29093. v_is_current ALIAS FOR $4;
  29094. v_is_internal ALIAS FOR $5;
  29095. v_pub_id ALIAS FOR $6;
  29096. v_synonym_id INT;
  29097. v_feature_synonym_id INT;
  29098. BEGIN
  29099. IF v_feature_id IS NULL THEN RAISE EXCEPTION ''feature_id cannot be null'';
  29100. END IF;
  29101. SELECT INTO v_synonym_id synonym_id
  29102. FROM synonym
  29103. WHERE name=v_syn AND
  29104. type_id=v_type_id;
  29105. IF NOT FOUND THEN
  29106. INSERT INTO synonym
  29107. ( name,
  29108. synonym_sgml,
  29109. type_id)
  29110. VALUES
  29111. ( v_syn,
  29112. v_syn,
  29113. v_type_id);
  29114. v_synonym_id = currval(''synonym_synonym_id_seq'');
  29115. END IF;
  29116. SELECT INTO v_feature_synonym_id feature_synonym_id
  29117. FROM feature_synonym
  29118. WHERE feature_id=v_feature_id AND
  29119. synonym_id=v_synonym_id AND
  29120. pub_id=v_pub_id;
  29121. IF NOT FOUND THEN
  29122. INSERT INTO feature_synonym
  29123. ( feature_id,
  29124. synonym_id,
  29125. pub_id,
  29126. is_current,
  29127. is_internal)
  29128. VALUES
  29129. ( v_feature_id,
  29130. v_synonym_id,
  29131. v_pub_id,
  29132. v_is_current,
  29133. v_is_internal);
  29134. v_feature_synonym_id = currval(''feature_synonym_feature_synonym_id_seq'');
  29135. ELSE
  29136. UPDATE feature_synonym
  29137. SET is_current=v_is_current, is_internal=v_is_internal
  29138. WHERE feature_synonym_id=v_feature_synonym_id;
  29139. END IF;
  29140. RETURN v_feature_synonym_id;
  29141. END;
  29142. ' LANGUAGE 'plpgsql';
  29143. -- dependency_on: [sequtil,sequence-cv-helper]
  29144. CREATE OR REPLACE FUNCTION subsequence(INT,INT,INT,INT)
  29145. RETURNS TEXT AS
  29146. 'SELECT
  29147. CASE WHEN $4<0
  29148. THEN reverse_complement(substring(srcf.residues,$2+1,($3-$2)))
  29149. ELSE substring(residues,$2+1,($3-$2))
  29150. END AS residues
  29151. FROM feature AS srcf
  29152. WHERE
  29153. srcf.feature_id=$1'
  29154. LANGUAGE 'sql';
  29155. CREATE OR REPLACE FUNCTION subsequence_by_featureloc(INT)
  29156. RETURNS TEXT AS
  29157. 'SELECT
  29158. CASE WHEN strand<0
  29159. THEN reverse_complement(substring(srcf.residues,fmin+1,(fmax-fmin)))
  29160. ELSE substring(srcf.residues,fmin+1,(fmax-fmin))
  29161. END AS residues
  29162. FROM feature AS srcf
  29163. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  29164. WHERE
  29165. featureloc_id=$1'
  29166. LANGUAGE 'sql';
  29167. CREATE OR REPLACE FUNCTION subsequence_by_feature(INT,INT,INT)
  29168. RETURNS TEXT AS
  29169. 'SELECT
  29170. CASE WHEN strand<0
  29171. THEN reverse_complement(substring(srcf.residues,fmin+1,(fmax-fmin)))
  29172. ELSE substring(srcf.residues,fmin+1,(fmax-fmin))
  29173. END AS residues
  29174. FROM feature AS srcf
  29175. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  29176. WHERE
  29177. featureloc.feature_id=$1 AND
  29178. featureloc.rank=$2 AND
  29179. featureloc.locgroup=$3'
  29180. LANGUAGE 'sql';
  29181. CREATE OR REPLACE FUNCTION subsequence_by_feature(INT)
  29182. RETURNS TEXT AS 'SELECT subsequence_by_feature($1,0,0)'
  29183. LANGUAGE 'sql';
  29184. -- based on subfeature sets:
  29185. -- constrained by feature_relationship.type_id
  29186. -- (allows user to construct queries that only get subsequences of
  29187. -- part_of subfeatures)
  29188. CREATE OR REPLACE FUNCTION subsequence_by_subfeatures(INT,INT,INT,INT)
  29189. RETURNS TEXT AS '
  29190. DECLARE v_feature_id ALIAS FOR $1;
  29191. DECLARE v_rtype_id ALIAS FOR $2;
  29192. DECLARE v_rank ALIAS FOR $3;
  29193. DECLARE v_locgroup ALIAS FOR $4;
  29194. DECLARE subseq TEXT;
  29195. DECLARE seqrow RECORD;
  29196. BEGIN
  29197. subseq = '''';
  29198. FOR seqrow IN
  29199. SELECT
  29200. CASE WHEN strand<0
  29201. THEN reverse_complement(substring(srcf.residues,fmin+1,(fmax-fmin)))
  29202. ELSE substring(srcf.residues,fmin+1,(fmax-fmin))
  29203. END AS residues
  29204. FROM feature AS srcf
  29205. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  29206. INNER JOIN feature_relationship AS fr
  29207. ON (fr.subject_id=featureloc.feature_id)
  29208. WHERE
  29209. fr.object_id=v_feature_id AND
  29210. fr.type_id=v_rtype_id AND
  29211. featureloc.rank=v_rank AND
  29212. featureloc.locgroup=v_locgroup
  29213. ORDER BY fr.rank
  29214. LOOP
  29215. subseq = subseq || seqrow.residues;
  29216. END LOOP;
  29217. RETURN subseq;
  29218. END
  29219. '
  29220. LANGUAGE 'plpgsql';
  29221. CREATE OR REPLACE FUNCTION subsequence_by_subfeatures(INT,INT)
  29222. RETURNS TEXT AS
  29223. 'SELECT subsequence_by_subfeatures($1,$2,0,0)'
  29224. LANGUAGE 'sql';
  29225. CREATE OR REPLACE FUNCTION subsequence_by_subfeatures(INT)
  29226. RETURNS TEXT AS
  29227. '
  29228. SELECT subsequence_by_subfeatures($1,get_feature_relationship_type_id(''part_of''),0,0)
  29229. '
  29230. LANGUAGE 'sql';
  29231. -- constrained by subfeature.type_id (eg exons of a transcript)
  29232. CREATE OR REPLACE FUNCTION subsequence_by_typed_subfeatures(INT,INT,INT,INT)
  29233. RETURNS TEXT AS '
  29234. DECLARE v_feature_id ALIAS FOR $1;
  29235. DECLARE v_ftype_id ALIAS FOR $2;
  29236. DECLARE v_rank ALIAS FOR $3;
  29237. DECLARE v_locgroup ALIAS FOR $4;
  29238. DECLARE subseq TEXT;
  29239. DECLARE seqrow RECORD;
  29240. BEGIN
  29241. subseq = '''';
  29242. FOR seqrow IN
  29243. SELECT
  29244. CASE WHEN strand<0
  29245. THEN reverse_complement(substring(srcf.residues,fmin+1,(fmax-fmin)))
  29246. ELSE substring(srcf.residues,fmin+1,(fmax-fmin))
  29247. END AS residues
  29248. FROM feature AS srcf
  29249. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  29250. INNER JOIN feature AS subf ON (subf.feature_id=featureloc.feature_id)
  29251. INNER JOIN feature_relationship AS fr ON (fr.subject_id=subf.feature_id)
  29252. WHERE
  29253. fr.object_id=v_feature_id AND
  29254. subf.type_id=v_ftype_id AND
  29255. featureloc.rank=v_rank AND
  29256. featureloc.locgroup=v_locgroup
  29257. ORDER BY fr.rank
  29258. LOOP
  29259. subseq = subseq || seqrow.residues;
  29260. END LOOP;
  29261. RETURN subseq;
  29262. END
  29263. '
  29264. LANGUAGE 'plpgsql';
  29265. CREATE OR REPLACE FUNCTION subsequence_by_typed_subfeatures(INT,INT)
  29266. RETURNS TEXT AS
  29267. 'SELECT subsequence_by_typed_subfeatures($1,$2,0,0)'
  29268. LANGUAGE 'sql';
  29269. CREATE OR REPLACE FUNCTION feature_subalignments(integer) RETURNS SETOF featureloc AS '
  29270. DECLARE
  29271. return_data featureloc%ROWTYPE;
  29272. f_id ALIAS FOR $1;
  29273. feature_data feature%rowtype;
  29274. featureloc_data featureloc%rowtype;
  29275. s text;
  29276. fmin integer;
  29277. slen integer;
  29278. BEGIN
  29279. --RAISE NOTICE ''feature_id is %'', featureloc_data.feature_id;
  29280. SELECT INTO feature_data * FROM feature WHERE feature_id = f_id;
  29281. FOR featureloc_data IN SELECT * FROM featureloc WHERE feature_id = f_id LOOP
  29282. --RAISE NOTICE ''fmin is %'', featureloc_data.fmin;
  29283. return_data.feature_id = f_id;
  29284. return_data.srcfeature_id = featureloc_data.srcfeature_id;
  29285. return_data.is_fmin_partial = featureloc_data.is_fmin_partial;
  29286. return_data.is_fmax_partial = featureloc_data.is_fmax_partial;
  29287. return_data.strand = featureloc_data.strand;
  29288. return_data.phase = featureloc_data.phase;
  29289. return_data.residue_info = featureloc_data.residue_info;
  29290. return_data.locgroup = featureloc_data.locgroup;
  29291. return_data.rank = featureloc_data.rank;
  29292. s = feature_data.residues;
  29293. fmin = featureloc_data.fmin;
  29294. slen = char_length(s);
  29295. WHILE char_length(s) LOOP
  29296. --RAISE NOTICE ''residues is %'', s;
  29297. --trim off leading match
  29298. s = trim(leading ''|ATCGNatcgn'' from s);
  29299. --if leading match detected
  29300. IF slen > char_length(s) THEN
  29301. return_data.fmin = fmin;
  29302. return_data.fmax = featureloc_data.fmin + (slen - char_length(s));
  29303. --if the string started with a match, return it,
  29304. --otherwise, trim the gaps first (ie do not return this iteration)
  29305. RETURN NEXT return_data;
  29306. END IF;
  29307. --trim off leading gap
  29308. s = trim(leading ''-'' from s);
  29309. fmin = featureloc_data.fmin + (slen - char_length(s));
  29310. END LOOP;
  29311. END LOOP;
  29312. RETURN;
  29313. END;
  29314. ' LANGUAGE 'plpgsql';
  29315. CREATE SCHEMA frange;
  29316. SET search_path = frange,public,pg_catalog;
  29317. CREATE TABLE featuregroup (
  29318. featuregroup_id serial not null,
  29319. primary key (featuregroup_id),
  29320. subject_id int not null,
  29321. foreign key (subject_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  29322. object_id int not null,
  29323. foreign key (object_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  29324. group_id int not null,
  29325. foreign key (group_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  29326. srcfeature_id int null,
  29327. foreign key (srcfeature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  29328. fmin int null,
  29329. fmax int null,
  29330. strand int null,
  29331. is_root int not null default 0,
  29332. constraint featuregroup_c1 unique (subject_id,object_id,group_id,srcfeature_id,fmin,fmax,strand)
  29333. );
  29334. CREATE INDEX featuregroup_idx1 ON featuregroup (subject_id);
  29335. CREATE INDEX featuregroup_idx2 ON featuregroup (object_id);
  29336. CREATE INDEX featuregroup_idx3 ON featuregroup (group_id);
  29337. CREATE INDEX featuregroup_idx4 ON featuregroup (srcfeature_id);
  29338. CREATE INDEX featuregroup_idx5 ON featuregroup (strand);
  29339. CREATE INDEX featuregroup_idx6 ON featuregroup (is_root);
  29340. CREATE OR REPLACE FUNCTION groupoverlaps(int4, int4, varchar) RETURNS setof featuregroup AS '
  29341. SELECT g2.*
  29342. FROM featuregroup g1,
  29343. featuregroup g2
  29344. WHERE g1.is_root = 1
  29345. AND ( g1.srcfeature_id = g2.srcfeature_id OR g2.srcfeature_id IS NULL )
  29346. AND g1.group_id = g2.group_id
  29347. AND g1.srcfeature_id = (SELECT feature_id FROM feature WHERE uniquename = $3)
  29348. AND boxquery($1, $2) @ boxrange(g1.fmin,g2.fmax)
  29349. ' LANGUAGE 'sql';
  29350. CREATE OR REPLACE FUNCTION groupcontains(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 groupinside(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 groupidentical(int4, int4, varchar) RETURNS setof featuregroup AS '
  29361. SELECT *
  29362. FROM groupoverlaps($1,$2,$3)
  29363. WHERE fmin = $1 AND fmax = $2
  29364. ' LANGUAGE 'sql';
  29365. CREATE OR REPLACE FUNCTION groupoverlaps(int4, int4) RETURNS setof featuregroup AS '
  29366. SELECT *
  29367. FROM featuregroup
  29368. WHERE is_root = 1
  29369. AND boxquery($1, $2) @ boxrange(fmin,fmax)
  29370. ' LANGUAGE 'sql';
  29371. CREATE OR REPLACE FUNCTION groupoverlaps(_int4, _int4, _varchar) RETURNS setof featuregroup AS '
  29372. DECLARE
  29373. mins alias for $1;
  29374. maxs alias for $2;
  29375. srcs alias for $3;
  29376. f featuregroup%ROWTYPE;
  29377. i int;
  29378. s int;
  29379. BEGIN
  29380. i := 1;
  29381. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  29382. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  29383. FOR f IN
  29384. SELECT *
  29385. FROM featuregroup WHERE group_id IN (
  29386. SELECT group_id FROM featuregroup
  29387. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  29388. AND group_id IN (
  29389. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  29390. WHERE srcfeature_id = s
  29391. )
  29392. )
  29393. LOOP
  29394. RETURN NEXT f;
  29395. END LOOP;
  29396. END LOOP;
  29397. RETURN;
  29398. END;
  29399. ' LANGUAGE 'plpgsql';
  29400. CREATE OR REPLACE FUNCTION groupcontains(_int4, _int4, _varchar) RETURNS setof featuregroup AS '
  29401. DECLARE
  29402. mins alias for $1;
  29403. maxs alias for $2;
  29404. srcs alias for $3;
  29405. f featuregroup%ROWTYPE;
  29406. i int;
  29407. s int;
  29408. BEGIN
  29409. i := 1;
  29410. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  29411. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  29412. FOR f IN
  29413. SELECT *
  29414. FROM featuregroup WHERE group_id IN (
  29415. SELECT group_id FROM featuregroup
  29416. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  29417. AND fmin <= mins[i]
  29418. AND fmax >= maxs[i]
  29419. AND group_id IN (
  29420. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  29421. WHERE srcfeature_id = s
  29422. )
  29423. )
  29424. LOOP
  29425. RETURN NEXT f;
  29426. END LOOP;
  29427. END LOOP;
  29428. RETURN;
  29429. END;
  29430. ' LANGUAGE 'plpgsql';
  29431. CREATE OR REPLACE FUNCTION groupinside(_int4, _int4, _varchar) RETURNS setof featuregroup AS '
  29432. DECLARE
  29433. mins alias for $1;
  29434. maxs alias for $2;
  29435. srcs alias for $3;
  29436. f featuregroup%ROWTYPE;
  29437. i int;
  29438. s int;
  29439. BEGIN
  29440. i := 1;
  29441. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  29442. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  29443. FOR f IN
  29444. SELECT *
  29445. FROM featuregroup WHERE group_id IN (
  29446. SELECT group_id FROM featuregroup
  29447. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  29448. AND fmin >= mins[i]
  29449. AND fmax <= maxs[i]
  29450. AND group_id IN (
  29451. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  29452. WHERE srcfeature_id = s
  29453. )
  29454. )
  29455. LOOP
  29456. RETURN NEXT f;
  29457. END LOOP;
  29458. END LOOP;
  29459. RETURN;
  29460. END;
  29461. ' LANGUAGE 'plpgsql';
  29462. CREATE OR REPLACE FUNCTION groupidentical(_int4, _int4, _varchar) RETURNS setof featuregroup AS '
  29463. DECLARE
  29464. mins alias for $1;
  29465. maxs alias for $2;
  29466. srcs alias for $3;
  29467. f featuregroup%ROWTYPE;
  29468. i int;
  29469. s int;
  29470. BEGIN
  29471. i := 1;
  29472. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  29473. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  29474. FOR f IN
  29475. SELECT *
  29476. FROM featuregroup WHERE group_id IN (
  29477. SELECT group_id FROM featuregroup
  29478. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  29479. AND fmin = mins[i]
  29480. AND fmax = maxs[i]
  29481. AND group_id IN (
  29482. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  29483. WHERE srcfeature_id = s
  29484. )
  29485. )
  29486. LOOP
  29487. RETURN NEXT f;
  29488. END LOOP;
  29489. END LOOP;
  29490. RETURN;
  29491. END;
  29492. ' LANGUAGE 'plpgsql';
  29493. --functional index that depends on the above functions
  29494. CREATE INDEX bingroup_boxrange ON featuregroup USING RTREE (boxrange(fmin, fmax)) WHERE is_root = 1;
  29495. CREATE OR REPLACE FUNCTION _fill_featuregroup(INTEGER, INTEGER) RETURNS INTEGER AS '
  29496. DECLARE
  29497. groupid alias for $1;
  29498. parentid alias for $2;
  29499. g featuregroup%ROWTYPE;
  29500. BEGIN
  29501. FOR g IN
  29502. SELECT DISTINCT 0, fr.subject_id, fr.object_id, groupid, fl.srcfeature_id, fl.fmin, fl.fmax, fl.strand, 0
  29503. FROM feature_relationship AS fr,
  29504. featureloc AS fl
  29505. WHERE fr.object_id = parentid
  29506. AND fr.subject_id = fl.feature_id
  29507. LOOP
  29508. INSERT INTO featuregroup
  29509. (subject_id, object_id, group_id, srcfeature_id, fmin, fmax, strand, is_root)
  29510. VALUES
  29511. (g.subject_id, g.object_id, g.group_id, g.srcfeature_id, g.fmin, g.fmax, g.strand, 0);
  29512. PERFORM _fill_featuregroup(groupid,g.subject_id);
  29513. END LOOP;
  29514. RETURN 1;
  29515. END;
  29516. ' LANGUAGE 'plpgsql';
  29517. CREATE OR REPLACE FUNCTION fill_featuregroup() RETURNS INTEGER AS '
  29518. DECLARE
  29519. p featuregroup%ROWTYPE;
  29520. l featureloc%ROWTYPE;
  29521. isa int;
  29522. c int;
  29523. BEGIN
  29524. TRUNCATE featuregroup;
  29525. SELECT INTO isa cvterm_id FROM cvterm WHERE (name = ''isa'' OR name = ''is_a'');
  29526. -- Recursion is the biggest performance killer for this function.
  29527. -- We can dodge the first round of recursion using the "fr1 / GROUP BY" approach.
  29528. -- Luckily, most feature graphs are only 2 levels deep, so most recursion is
  29529. -- avoidable.
  29530. RAISE NOTICE ''Loading root and singleton features.'';
  29531. FOR p IN
  29532. SELECT DISTINCT 0, f.feature_id, f.feature_id, f.feature_id, srcfeature_id, fmin, fmax, strand, 1
  29533. FROM feature AS f
  29534. LEFT JOIN feature_relationship ON (f.feature_id = object_id)
  29535. LEFT JOIN featureloc ON (f.feature_id = featureloc.feature_id)
  29536. WHERE f.feature_id NOT IN ( SELECT subject_id FROM feature_relationship )
  29537. AND srcfeature_id IS NOT NULL
  29538. LOOP
  29539. INSERT INTO featuregroup
  29540. (subject_id, object_id, group_id, srcfeature_id, fmin, fmax, strand, is_root)
  29541. VALUES
  29542. (p.object_id, p.object_id, p.object_id, p.srcfeature_id, p.fmin, p.fmax, p.strand, 1);
  29543. END LOOP;
  29544. RAISE NOTICE ''Loading child features. If your database contains grandchild'';
  29545. RAISE NOTICE ''features, they will be loaded recursively and may take a long time.'';
  29546. FOR p IN
  29547. 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)
  29548. FROM feature_relationship AS fr0
  29549. LEFT JOIN feature_relationship AS fr1 ON ( fr0.subject_id = fr1.object_id),
  29550. featureloc AS fl
  29551. WHERE fr0.subject_id = fl.feature_id
  29552. AND fr0.object_id IN (
  29553. SELECT f.feature_id
  29554. FROM feature AS f
  29555. LEFT JOIN feature_relationship ON (f.feature_id = object_id)
  29556. LEFT JOIN featureloc ON (f.feature_id = featureloc.feature_id)
  29557. WHERE f.feature_id NOT IN ( SELECT subject_id FROM feature_relationship )
  29558. AND f.feature_id IN ( SELECT object_id FROM feature_relationship )
  29559. AND srcfeature_id IS NOT NULL
  29560. )
  29561. GROUP BY fr0.subject_id, fr0.object_id, fl.srcfeature_id, fl.fmin, fl.fmax, fl.strand
  29562. LOOP
  29563. INSERT INTO featuregroup
  29564. (subject_id, object_id, group_id, srcfeature_id, fmin, fmax, strand, is_root)
  29565. VALUES
  29566. (p.subject_id, p.object_id, p.object_id, p.srcfeature_id, p.fmin, p.fmax, p.strand, 0);
  29567. IF ( p.is_root > 0 ) THEN
  29568. PERFORM _fill_featuregroup(p.subject_id,p.subject_id);
  29569. END IF;
  29570. END LOOP;
  29571. RETURN 1;
  29572. END;
  29573. ' LANGUAGE 'plpgsql';
  29574. SET search_path = public,pg_catalog;
  29575. --- create ontology that has instantiated located_sequence_feature part of SO
  29576. --- way as it is written, the function can not be execute more than once in one connection
  29577. --- when you get error like ERROR: relation with OID NNNNN does not exist
  29578. --- as this is not meant to execute >1 times in one session so it should never happen
  29579. --- except at testing and test failed
  29580. --- disconnect and try again, in other words, it can NOT be executed >1 time in one connection
  29581. --- if using EXECUTE, we can avoid this problem but code is hard to write and read (lots of ', escape char)
  29582. --NOTE: private, don't call directly as relying on having temp table tmpcvtr
  29583. --DROP TYPE soi_type CASCADE;
  29584. CREATE TYPE soi_type AS (
  29585. type_id INT,
  29586. subject_id INT,
  29587. object_id INT
  29588. );
  29589. CREATE OR REPLACE FUNCTION _fill_cvtermpath4soinode(INTEGER, INTEGER, INTEGER, INTEGER, INTEGER) RETURNS INTEGER AS
  29590. '
  29591. DECLARE
  29592. origin alias for $1;
  29593. child_id alias for $2;
  29594. cvid alias for $3;
  29595. typeid alias for $4;
  29596. depth alias for $5;
  29597. cterm soi_type%ROWTYPE;
  29598. exist_c int;
  29599. BEGIN
  29600. --RAISE NOTICE ''depth=% o=%, root=%, cv=%, t=%'', depth,origin,child_id,cvid,typeid;
  29601. SELECT INTO exist_c count(*) FROM cvtermpath WHERE cv_id = cvid AND object_id = origin AND subject_id = child_id AND pathdistance = depth;
  29602. --- longest path
  29603. IF (exist_c > 0) THEN
  29604. UPDATE cvtermpath SET pathdistance = depth WHERE cv_id = cvid AND object_id = origin AND subject_id = child_id;
  29605. ELSE
  29606. INSERT INTO cvtermpath (object_id, subject_id, cv_id, type_id, pathdistance) VALUES(origin, child_id, cvid, typeid, depth);
  29607. END IF;
  29608. FOR cterm IN SELECT tmp_type AS type_id, subject_id FROM tmpcvtr WHERE object_id = child_id LOOP
  29609. PERFORM _fill_cvtermpath4soinode(origin, cterm.subject_id, cvid, cterm.type_id, depth+1);
  29610. END LOOP;
  29611. RETURN 1;
  29612. END;
  29613. '
  29614. LANGUAGE 'plpgsql';
  29615. CREATE OR REPLACE FUNCTION _fill_cvtermpath4soi(INTEGER, INTEGER) RETURNS INTEGER AS
  29616. '
  29617. DECLARE
  29618. rootid alias for $1;
  29619. cvid alias for $2;
  29620. ttype int;
  29621. cterm soi_type%ROWTYPE;
  29622. BEGIN
  29623. SELECT INTO ttype cvterm_id FROM cvterm WHERE name = ''isa'';
  29624. --RAISE NOTICE ''got ttype %'',ttype;
  29625. PERFORM _fill_cvtermpath4soinode(rootid, rootid, cvid, ttype, 0);
  29626. FOR cterm IN SELECT tmp_type AS type_id, subject_id FROM tmpcvtr WHERE object_id = rootid LOOP
  29627. PERFORM _fill_cvtermpath4soi(cterm.subject_id, cvid);
  29628. END LOOP;
  29629. RETURN 1;
  29630. END;
  29631. '
  29632. LANGUAGE 'plpgsql';
  29633. --- use tmpcvtr to temp store soi (virtural ontology)
  29634. --- using tmp tables is faster than using recursive function to create feature type relationship
  29635. --- since it gets feature type rel set by set instead of one by one
  29636. --- and getting feature type rel is very expensive
  29637. --- call _fillcvtermpath4soi to create path for the virtual ontology
  29638. CREATE OR REPLACE FUNCTION create_soi() RETURNS INTEGER AS
  29639. '
  29640. DECLARE
  29641. parent soi_type%ROWTYPE;
  29642. isa_id cvterm.cvterm_id%TYPE;
  29643. soi_term TEXT := ''soi'';
  29644. soi_def TEXT := ''ontology of SO feature instantiated in database'';
  29645. soi_cvid INTEGER;
  29646. soiterm_id INTEGER;
  29647. pcount INTEGER;
  29648. count INTEGER := 0;
  29649. cquery TEXT;
  29650. BEGIN
  29651. SELECT INTO isa_id cvterm_id FROM cvterm WHERE name = ''isa'';
  29652. SELECT INTO soi_cvid cv_id FROM cv WHERE name = soi_term;
  29653. IF (soi_cvid > 0) THEN
  29654. DELETE FROM cvtermpath WHERE cv_id = soi_cvid;
  29655. DELETE FROM cvterm WHERE cv_id = soi_cvid;
  29656. ELSE
  29657. INSERT INTO cv (name, definition) VALUES(soi_term, soi_def);
  29658. END IF;
  29659. SELECT INTO soi_cvid cv_id FROM cv WHERE name = soi_term;
  29660. INSERT INTO cvterm (name, cv_id) VALUES(soi_term, soi_cvid);
  29661. SELECT INTO soiterm_id cvterm_id FROM cvterm WHERE name = soi_term;
  29662. CREATE TEMP TABLE tmpcvtr (tmp_type INT, type_id INT, subject_id INT, object_id INT);
  29663. CREATE UNIQUE INDEX u_tmpcvtr ON tmpcvtr(subject_id, object_id);
  29664. INSERT INTO tmpcvtr (tmp_type, type_id, subject_id, object_id)
  29665. SELECT DISTINCT isa_id, soiterm_id, f.type_id, soiterm_id FROM feature f, cvterm t
  29666. WHERE f.type_id = t.cvterm_id AND f.type_id > 0;
  29667. EXECUTE ''select * from tmpcvtr where type_id = '' || soiterm_id || '';'';
  29668. get diagnostics pcount = row_count;
  29669. raise notice ''all types in feature %'',pcount;
  29670. --- do it hard way, delete any child feature type from above (NOT IN clause did not work)
  29671. FOR parent IN SELECT DISTINCT 0, t.cvterm_id, 0 FROM feature c, feature_relationship fr, cvterm t
  29672. WHERE t.cvterm_id = c.type_id AND c.feature_id = fr.subject_id LOOP
  29673. DELETE FROM tmpcvtr WHERE type_id = soiterm_id and object_id = soiterm_id
  29674. AND subject_id = parent.subject_id;
  29675. END LOOP;
  29676. EXECUTE ''select * from tmpcvtr where type_id = '' || soiterm_id || '';'';
  29677. get diagnostics pcount = row_count;
  29678. raise notice ''all types in feature after delete child %'',pcount;
  29679. --- create feature type relationship (store in tmpcvtr)
  29680. CREATE TEMP TABLE tmproot (cv_id INTEGER not null, cvterm_id INTEGER not null, status INTEGER DEFAULT 0);
  29681. cquery := ''SELECT * FROM tmproot tmp WHERE tmp.status = 0;'';
  29682. ---temp use tmpcvtr to hold instantiated SO relationship for speed
  29683. ---use soterm_id as type_id, will delete from tmpcvtr
  29684. ---us tmproot for this as well
  29685. INSERT INTO tmproot (cv_id, cvterm_id, status) SELECT DISTINCT soi_cvid, c.subject_id, 0 FROM tmpcvtr c
  29686. WHERE c.object_id = soiterm_id;
  29687. EXECUTE cquery;
  29688. GET DIAGNOSTICS pcount = ROW_COUNT;
  29689. WHILE (pcount > 0) LOOP
  29690. RAISE NOTICE ''num child temp (to be inserted) in tmpcvtr: %'',pcount;
  29691. INSERT INTO tmpcvtr (tmp_type, type_id, subject_id, object_id)
  29692. SELECT DISTINCT fr.type_id, soiterm_id, c.type_id, p.cvterm_id FROM feature c, feature_relationship fr,
  29693. tmproot p, feature pf, cvterm t WHERE c.feature_id = fr.subject_id AND fr.object_id = pf.feature_id
  29694. AND p.cvterm_id = pf.type_id AND t.cvterm_id = c.type_id AND p.status = 0;
  29695. UPDATE tmproot SET status = 1 WHERE status = 0;
  29696. INSERT INTO tmproot (cv_id, cvterm_id, status)
  29697. SELECT DISTINCT soi_cvid, c.type_id, 0 FROM feature c, feature_relationship fr,
  29698. tmproot tmp, feature p, cvterm t WHERE c.feature_id = fr.subject_id AND fr.object_id = p.feature_id
  29699. AND tmp.cvterm_id = p.type_id AND t.cvterm_id = c.type_id AND tmp.status = 1;
  29700. UPDATE tmproot SET status = 2 WHERE status = 1;
  29701. EXECUTE cquery;
  29702. GET DIAGNOSTICS pcount = ROW_COUNT;
  29703. END LOOP;
  29704. DELETE FROM tmproot;
  29705. ---get transitive closure for soi
  29706. PERFORM _fill_cvtermpath4soi(soiterm_id, soi_cvid);
  29707. DROP TABLE tmpcvtr;
  29708. DROP TABLE tmproot;
  29709. RETURN 1;
  29710. END;
  29711. '
  29712. LANGUAGE 'plpgsql';
  29713. ---bad precedence: change customed type name
  29714. ---drop here to remove old function
  29715. --DROP TYPE feature_by_cvt_type CASCADE;
  29716. --DROP TYPE fxgsfids_type CASCADE;
  29717. --DROP TYPE feature_by_fx_type CASCADE;
  29718. CREATE TYPE feature_by_fx_type AS (
  29719. feature_id INTEGER,
  29720. depth INT
  29721. );
  29722. CREATE OR REPLACE FUNCTION get_sub_feature_ids(text) RETURNS SETOF feature_by_fx_type AS
  29723. '
  29724. DECLARE
  29725. sql alias for $1;
  29726. myrc feature_by_fx_type%ROWTYPE;
  29727. myrc2 feature_by_fx_type%ROWTYPE;
  29728. BEGIN
  29729. FOR myrc IN EXECUTE sql LOOP
  29730. FOR myrc2 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id) LOOP
  29731. RETURN NEXT myrc2;
  29732. END LOOP;
  29733. END LOOP;
  29734. RETURN;
  29735. END;
  29736. '
  29737. LANGUAGE 'plpgsql';
  29738. CREATE OR REPLACE FUNCTION get_up_feature_ids(text) RETURNS SETOF feature_by_fx_type AS
  29739. '
  29740. DECLARE
  29741. sql alias for $1;
  29742. myrc feature_by_fx_type%ROWTYPE;
  29743. myrc2 feature_by_fx_type%ROWTYPE;
  29744. BEGIN
  29745. FOR myrc IN EXECUTE sql LOOP
  29746. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id) LOOP
  29747. RETURN NEXT myrc2;
  29748. END LOOP;
  29749. END LOOP;
  29750. RETURN;
  29751. END;
  29752. '
  29753. LANGUAGE 'plpgsql';
  29754. CREATE OR REPLACE FUNCTION get_feature_ids(text) RETURNS SETOF feature_by_fx_type AS
  29755. '
  29756. DECLARE
  29757. sql alias for $1;
  29758. myrc feature_by_fx_type%ROWTYPE;
  29759. myrc2 feature_by_fx_type%ROWTYPE;
  29760. myrc3 feature_by_fx_type%ROWTYPE;
  29761. BEGIN
  29762. FOR myrc IN EXECUTE sql LOOP
  29763. RETURN NEXT myrc;
  29764. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id) LOOP
  29765. RETURN NEXT myrc2;
  29766. END LOOP;
  29767. FOR myrc3 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id) LOOP
  29768. RETURN NEXT myrc3;
  29769. END LOOP;
  29770. END LOOP;
  29771. RETURN;
  29772. END;
  29773. '
  29774. LANGUAGE 'plpgsql';
  29775. CREATE OR REPLACE FUNCTION get_sub_feature_ids(integer) RETURNS SETOF feature_by_fx_type AS
  29776. '
  29777. DECLARE
  29778. root alias for $1;
  29779. myrc feature_by_fx_type%ROWTYPE;
  29780. myrc2 feature_by_fx_type%ROWTYPE;
  29781. BEGIN
  29782. FOR myrc IN SELECT DISTINCT subject_id AS feature_id FROM feature_relationship WHERE object_id = root LOOP
  29783. RETURN NEXT myrc;
  29784. FOR myrc2 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id) LOOP
  29785. RETURN NEXT myrc2;
  29786. END LOOP;
  29787. END LOOP;
  29788. RETURN;
  29789. END;
  29790. '
  29791. LANGUAGE 'plpgsql';
  29792. CREATE OR REPLACE FUNCTION get_up_feature_ids(integer) RETURNS SETOF feature_by_fx_type AS
  29793. '
  29794. DECLARE
  29795. leaf alias for $1;
  29796. myrc feature_by_fx_type%ROWTYPE;
  29797. myrc2 feature_by_fx_type%ROWTYPE;
  29798. BEGIN
  29799. FOR myrc IN SELECT DISTINCT object_id AS feature_id FROM feature_relationship WHERE subject_id = leaf LOOP
  29800. RETURN NEXT myrc;
  29801. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id) LOOP
  29802. RETURN NEXT myrc2;
  29803. END LOOP;
  29804. END LOOP;
  29805. RETURN;
  29806. END;
  29807. '
  29808. LANGUAGE 'plpgsql';
  29809. CREATE OR REPLACE FUNCTION get_sub_feature_ids(integer, integer) RETURNS SETOF feature_by_fx_type AS
  29810. '
  29811. DECLARE
  29812. root alias for $1;
  29813. depth alias for $2;
  29814. myrc feature_by_fx_type%ROWTYPE;
  29815. myrc2 feature_by_fx_type%ROWTYPE;
  29816. BEGIN
  29817. FOR myrc IN SELECT DISTINCT subject_id AS feature_id, depth FROM feature_relationship WHERE object_id = root LOOP
  29818. RETURN NEXT myrc;
  29819. FOR myrc2 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id,depth+1) LOOP
  29820. RETURN NEXT myrc2;
  29821. END LOOP;
  29822. END LOOP;
  29823. RETURN;
  29824. END;
  29825. '
  29826. LANGUAGE 'plpgsql';
  29827. --- depth is reversed and meanless when union with results from get_sub_feature_ids
  29828. CREATE OR REPLACE FUNCTION get_up_feature_ids(integer, integer) RETURNS SETOF feature_by_fx_type AS
  29829. '
  29830. DECLARE
  29831. leaf alias for $1;
  29832. depth alias for $2;
  29833. myrc feature_by_fx_type%ROWTYPE;
  29834. myrc2 feature_by_fx_type%ROWTYPE;
  29835. BEGIN
  29836. FOR myrc IN SELECT DISTINCT object_id AS feature_id, depth FROM feature_relationship WHERE subject_id = leaf LOOP
  29837. RETURN NEXT myrc;
  29838. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id,depth+1) LOOP
  29839. RETURN NEXT myrc2;
  29840. END LOOP;
  29841. END LOOP;
  29842. RETURN;
  29843. END;
  29844. '
  29845. LANGUAGE 'plpgsql';
  29846. --- children feature ids only (not include itself--parent) for SO type and range (src)
  29847. 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
  29848. '
  29849. DECLARE
  29850. gtype alias for $1;
  29851. src alias for $2;
  29852. is_an alias for $3;
  29853. query text;
  29854. myrc feature_by_fx_type%ROWTYPE;
  29855. myrc2 feature_by_fx_type%ROWTYPE;
  29856. BEGIN
  29857. query := ''SELECT DISTINCT f.feature_id FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id)
  29858. INNER join featureloc fl
  29859. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  29860. WHERE t.name = '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  29861. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  29862. IF (STRPOS(gtype, ''%'') > 0) THEN
  29863. query := ''SELECT DISTINCT f.feature_id FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id)
  29864. INNER join featureloc fl
  29865. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  29866. WHERE t.name like '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  29867. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  29868. END IF;
  29869. FOR myrc IN SELECT * FROM get_sub_feature_ids(query) LOOP
  29870. RETURN NEXT myrc;
  29871. END LOOP;
  29872. RETURN;
  29873. END;
  29874. '
  29875. LANGUAGE 'plpgsql';
  29876. --- by SO type, usefull for tRNA, ncRNA, etc
  29877. CREATE OR REPLACE FUNCTION get_feature_ids_by_type(cvterm.name%TYPE, char(1)) RETURNS SETOF feature_by_fx_type AS
  29878. '
  29879. DECLARE
  29880. gtype alias for $1;
  29881. is_an alias for $2;
  29882. query TEXT;
  29883. myrc feature_by_fx_type%ROWTYPE;
  29884. myrc2 feature_by_fx_type%ROWTYPE;
  29885. BEGIN
  29886. query := ''SELECT DISTINCT f.feature_id
  29887. FROM feature f, cvterm t WHERE t.cvterm_id = f.type_id AND t.name = '' || quote_literal(gtype) ||
  29888. '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  29889. IF (STRPOS(gtype, ''%'') > 0) THEN
  29890. query := ''SELECT DISTINCT f.feature_id
  29891. FROM feature f, cvterm t WHERE t.cvterm_id = f.type_id AND t.name like ''
  29892. || quote_literal(gtype) || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  29893. END IF;
  29894. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  29895. RETURN NEXT myrc;
  29896. END LOOP;
  29897. RETURN;
  29898. END;
  29899. '
  29900. LANGUAGE 'plpgsql';
  29901. 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
  29902. '
  29903. DECLARE
  29904. gtype alias for $1;
  29905. src alias for $2;
  29906. is_an alias for $3;
  29907. query TEXT;
  29908. myrc feature_by_fx_type%ROWTYPE;
  29909. myrc2 feature_by_fx_type%ROWTYPE;
  29910. BEGIN
  29911. query := ''SELECT DISTINCT f.feature_id
  29912. FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id) INNER join featureloc fl
  29913. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  29914. WHERE t.name = '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  29915. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  29916. IF (STRPOS(gtype, ''%'') > 0) THEN
  29917. query := ''SELECT DISTINCT f.feature_id
  29918. FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id) INNER join featureloc fl
  29919. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  29920. WHERE t.name like '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  29921. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  29922. END IF;
  29923. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  29924. RETURN NEXT myrc;
  29925. END LOOP;
  29926. RETURN;
  29927. END;
  29928. '
  29929. LANGUAGE 'plpgsql';
  29930. 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
  29931. '
  29932. DECLARE
  29933. gtype alias for $1;
  29934. name alias for $2;
  29935. is_an alias for $3;
  29936. query TEXT;
  29937. myrc feature_by_fx_type%ROWTYPE;
  29938. myrc2 feature_by_fx_type%ROWTYPE;
  29939. BEGIN
  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 = '' || quote_literal(name)
  29943. || '' OR f.name = '' || quote_literal(name) || '') AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  29944. IF (STRPOS(name, ''%'') > 0) THEN
  29945. query := ''SELECT DISTINCT f.feature_id
  29946. FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id)
  29947. WHERE t.name = '' || quote_literal(gtype) || '' AND (f.uniquename like '' || quote_literal(name)
  29948. || '' OR f.name like '' || quote_literal(name) || '') AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  29949. END IF;
  29950. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  29951. RETURN NEXT myrc;
  29952. END LOOP;
  29953. RETURN;
  29954. END;
  29955. '
  29956. LANGUAGE 'plpgsql';
  29957. --- get all feature ids (including children) for feature that has an ontology term (say GO function)
  29958. CREATE OR REPLACE FUNCTION get_feature_ids_by_ont(cv.name%TYPE,cvterm.name%TYPE) RETURNS SETOF feature_by_fx_type AS
  29959. '
  29960. DECLARE
  29961. aspect alias for $1;
  29962. term alias for $2;
  29963. query TEXT;
  29964. myrc feature_by_fx_type%ROWTYPE;
  29965. myrc2 feature_by_fx_type%ROWTYPE;
  29966. BEGIN
  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 = '' || quote_literal(term) || '';'';
  29971. IF (STRPOS(term, ''%'') > 0) THEN
  29972. query := ''SELECT DISTINCT fcvt.feature_id
  29973. FROM feature_cvterm fcvt, cv, cvterm t WHERE cv.cv_id = t.cv_id AND
  29974. t.cvterm_id = fcvt.cvterm_id AND cv.name = '' || quote_literal(aspect) ||
  29975. '' AND t.name like '' || quote_literal(term) || '';'';
  29976. END IF;
  29977. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  29978. RETURN NEXT myrc;
  29979. END LOOP;
  29980. RETURN;
  29981. END;
  29982. '
  29983. LANGUAGE 'plpgsql';
  29984. CREATE OR REPLACE FUNCTION get_feature_ids_by_ont_root(cv.name%TYPE,cvterm.name%TYPE) RETURNS SETOF feature_by_fx_type AS
  29985. '
  29986. DECLARE
  29987. aspect alias for $1;
  29988. term alias for $2;
  29989. query TEXT;
  29990. subquery TEXT;
  29991. myrc feature_by_fx_type%ROWTYPE;
  29992. myrc2 feature_by_fx_type%ROWTYPE;
  29993. BEGIN
  29994. subquery := ''SELECT t.cvterm_id FROM cv, cvterm t WHERE cv.cv_id = t.cv_id
  29995. AND cv.name = '' || quote_literal(aspect) || '' AND t.name = '' || quote_literal(term) || '';'';
  29996. IF (STRPOS(term, ''%'') > 0) THEN
  29997. subquery := ''SELECT t.cvterm_id FROM cv, cvterm t WHERE cv.cv_id = t.cv_id
  29998. AND cv.name = '' || quote_literal(aspect) || '' AND t.name like '' || quote_literal(term) || '';'';
  29999. END IF;
  30000. query := ''SELECT DISTINCT fcvt.feature_id
  30001. 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);'';
  30002. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  30003. RETURN NEXT myrc;
  30004. END LOOP;
  30005. RETURN;
  30006. END;
  30007. '
  30008. LANGUAGE 'plpgsql';
  30009. --- get all feature ids (including children) for feature with the property (type, val)
  30010. CREATE OR REPLACE FUNCTION get_feature_ids_by_property(cvterm.name%TYPE,varchar) RETURNS SETOF feature_by_fx_type AS
  30011. '
  30012. DECLARE
  30013. p_type alias for $1;
  30014. p_val alias for $2;
  30015. query TEXT;
  30016. myrc feature_by_fx_type%ROWTYPE;
  30017. myrc2 feature_by_fx_type%ROWTYPE;
  30018. BEGIN
  30019. query := ''SELECT DISTINCT fprop.feature_id
  30020. FROM featureprop fprop, cvterm t WHERE t.cvterm_id = fprop.type_id AND t.name = '' ||
  30021. quote_literal(p_type) || '' AND fprop.value = '' || quote_literal(p_val) || '';'';
  30022. IF (STRPOS(p_val, ''%'') > 0) THEN
  30023. query := ''SELECT DISTINCT fprop.feature_id
  30024. FROM featureprop fprop, cvterm t WHERE t.cvterm_id = fprop.type_id AND t.name = '' ||
  30025. quote_literal(p_type) || '' AND fprop.value like '' || quote_literal(p_val) || '';'';
  30026. END IF;
  30027. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  30028. RETURN NEXT myrc;
  30029. END LOOP;
  30030. RETURN;
  30031. END;
  30032. '
  30033. LANGUAGE 'plpgsql';
  30034. --- get all feature ids (including children) for feature with the property val
  30035. CREATE OR REPLACE FUNCTION get_feature_ids_by_propval(varchar) RETURNS SETOF feature_by_fx_type AS
  30036. '
  30037. DECLARE
  30038. p_val alias for $1;
  30039. query TEXT;
  30040. myrc feature_by_fx_type%ROWTYPE;
  30041. myrc2 feature_by_fx_type%ROWTYPE;
  30042. BEGIN
  30043. query := ''SELECT DISTINCT fprop.feature_id
  30044. FROM featureprop fprop WHERE fprop.value = '' || quote_literal(p_val) || '';'';
  30045. IF (STRPOS(p_val, ''%'') > 0) THEN
  30046. query := ''SELECT DISTINCT fprop.feature_id
  30047. FROM featureprop fprop WHERE fprop.value like '' || quote_literal(p_val) || '';'';
  30048. END IF;
  30049. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  30050. RETURN NEXT myrc;
  30051. END LOOP;
  30052. RETURN;
  30053. END;
  30054. '
  30055. LANGUAGE 'plpgsql';
  30056. ---4 args: ptype, ctype, count, operator (valid SQL number comparison operator), and is_analysis
  30057. ---get feature ids for any node with type = ptype whose child node type = ctype
  30058. ---and child node feature count comparing (using operator) to ccount
  30059. 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
  30060. '
  30061. DECLARE
  30062. ptype alias for $1;
  30063. ctype alias for $2;
  30064. ccount alias for $3;
  30065. operator alias for $4;
  30066. is_an alias for $5;
  30067. query TEXT;
  30068. myrc feature_by_fx_type%ROWTYPE;
  30069. myrc2 feature_by_fx_type %ROWTYPE;
  30070. BEGIN
  30071. query := ''SELECT DISTINCT f.feature_id
  30072. FROM feature f INNER join (select count(*) as c, p.feature_id FROM feature p
  30073. INNER join cvterm pt ON (p.type_id = pt.cvterm_id) INNER join feature_relationship fr
  30074. ON (p.feature_id = fr.object_id) INNER join feature c ON (c.feature_id = fr.subject_id)
  30075. INNER join cvterm ct ON (c.type_id = ct.cvterm_id)
  30076. WHERE pt.name = '' || quote_literal(ptype) || '' AND ct.name = '' || quote_literal(ctype)
  30077. || '' AND p.is_analysis = '' || quote_literal(is_an) || '' group by p.feature_id) as cq
  30078. ON (cq.feature_id = f.feature_id) WHERE cq.c '' || operator || ccount || '';'';
  30079. ---RAISE NOTICE ''%'', query;
  30080. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  30081. RETURN NEXT myrc;
  30082. END LOOP;
  30083. RETURN;
  30084. END;
  30085. '
  30086. LANGUAGE 'plpgsql';
  30087. -- $Id: companalysis.sql,v 1.37 2007-03-23 15:18:02 scottcain Exp $
  30088. -- ==========================================
  30089. -- Chado companalysis module
  30090. --
  30091. -- =================================================================
  30092. -- Dependencies:
  30093. --
  30094. -- :import feature from sequence
  30095. -- :import cvterm from cv
  30096. -- =================================================================
  30097. -- ================================================
  30098. -- TABLE: analysis
  30099. -- ================================================
  30100. create table analysis (
  30101. analysis_id serial not null,
  30102. primary key (analysis_id),
  30103. name varchar(255),
  30104. description text,
  30105. program varchar(255) not null,
  30106. programversion varchar(255) not null,
  30107. algorithm varchar(255),
  30108. sourcename varchar(255),
  30109. sourceversion varchar(255),
  30110. sourceuri text,
  30111. timeexecuted timestamp not null default current_timestamp,
  30112. constraint analysis_c1 unique (program,programversion,sourcename)
  30113. );
  30114. COMMENT ON TABLE analysis IS 'An analysis is a particular type of a
  30115. computational analysis; it may be a blast of one sequence against
  30116. another, or an all by all blast, or a different kind of analysis
  30117. altogether. It is a single unit of computation.';
  30118. COMMENT ON COLUMN analysis.name IS 'A way of grouping analyses. This
  30119. should be a handy short identifier that can help people find an
  30120. analysis they want. For instance "tRNAscan", "cDNA", "FlyPep",
  30121. "SwissProt", and it should not be assumed to be unique. For instance, there may be lots of separate analyses done against a cDNA database.';
  30122. COMMENT ON COLUMN analysis.program IS 'Program name, e.g. blastx, blastp, sim4, genscan.';
  30123. COMMENT ON COLUMN analysis.programversion IS 'Version description, e.g. TBLASTX 2.0MP-WashU [09-Nov-2000].';
  30124. COMMENT ON COLUMN analysis.algorithm IS 'Algorithm name, e.g. blast.';
  30125. COMMENT ON COLUMN analysis.sourcename IS 'Source name, e.g. cDNA, SwissProt.';
  30126. 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).';
  30127. -- ================================================
  30128. -- TABLE: analysisprop
  30129. -- ================================================
  30130. create table analysisprop (
  30131. analysisprop_id serial not null,
  30132. primary key (analysisprop_id),
  30133. analysis_id int not null,
  30134. foreign key (analysis_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  30135. type_id int not null,
  30136. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  30137. value text,
  30138. rank int not null default 0,
  30139. constraint analysisprop_c1 unique (analysis_id,type_id,rank)
  30140. );
  30141. create index analysisprop_idx1 on analysisprop (analysis_id);
  30142. create index analysisprop_idx2 on analysisprop (type_id);
  30143. -- ================================================
  30144. -- TABLE: analysisfeature
  30145. -- ================================================
  30146. create table analysisfeature (
  30147. analysisfeature_id serial not null,
  30148. primary key (analysisfeature_id),
  30149. feature_id int not null,
  30150. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  30151. analysis_id int not null,
  30152. foreign key (analysis_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  30153. rawscore double precision,
  30154. normscore double precision,
  30155. significance double precision,
  30156. identity double precision,
  30157. constraint analysisfeature_c1 unique (feature_id,analysis_id)
  30158. );
  30159. create index analysisfeature_idx1 on analysisfeature (feature_id);
  30160. create index analysisfeature_idx2 on analysisfeature (analysis_id);
  30161. 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,
  30162. with rank indicating query/subject';
  30163. 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.';
  30164. 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:
  30165. * 0 <= significance <= n, where n is a positive number, theoretically unbounded but unlikely to be more than 10
  30166. * low numbers are better than high numbers.';
  30167. COMMENT ON COLUMN analysisfeature.normscore IS 'This is the rawscore but
  30168. semi-normalized. Complete normalization to allow comparison of
  30169. features generated by different programs would be nice but too
  30170. difficult. Instead the normalization should strive to enforce the
  30171. following semantics: * normscores are floating point numbers >= 0,
  30172. * 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.';
  30173. 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.';
  30174. CREATE TABLE analysisfeatureprop (
  30175. analysisfeatureprop_id SERIAL PRIMARY KEY,
  30176. analysisfeature_id INTEGER NOT NULL REFERENCES analysisfeature(analysisfeature_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
  30177. type_id INTEGER NOT NULL REFERENCES cvterm(cvterm_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
  30178. value TEXT,
  30179. rank INTEGER NOT NULL,
  30180. CONSTRAINT analysisfeature_id_type_id_rank UNIQUE(analysisfeature_id, type_id, rank)
  30181. );
  30182. CREATE OR REPLACE FUNCTION store_analysis (VARCHAR,VARCHAR,VARCHAR)
  30183. RETURNS INT AS
  30184. 'DECLARE
  30185. v_program ALIAS FOR $1;
  30186. v_programversion ALIAS FOR $2;
  30187. v_sourcename ALIAS FOR $3;
  30188. pkval INTEGER;
  30189. BEGIN
  30190. SELECT INTO pkval analysis_id
  30191. FROM analysis
  30192. WHERE program=v_program AND
  30193. programversion=v_programversion AND
  30194. sourcename=v_sourcename;
  30195. IF NOT FOUND THEN
  30196. INSERT INTO analysis
  30197. (program,programversion,sourcename)
  30198. VALUES
  30199. (v_program,v_programversion,v_sourcename);
  30200. RETURN currval(''analysis_analysis_id_seq'');
  30201. END IF;
  30202. RETURN pkval;
  30203. END;
  30204. ' LANGUAGE 'plpgsql';
  30205. --CREATE OR REPLACE FUNCTION store_analysisfeature
  30206. --()
  30207. --RETURNS INT AS
  30208. --'DECLARE
  30209. -- v_srcfeature_id ALIAS FOR $1;
  30210. -- $Id: phenotype.sql,v 1.6 2007-04-27 16:09:46 emmert Exp $
  30211. -- ==========================================
  30212. -- Chado phenotype module
  30213. --
  30214. -- =================================================================
  30215. -- Dependencies:
  30216. --
  30217. -- :import cvterm from cv
  30218. -- :import feature from sequence
  30219. -- =================================================================
  30220. -- ================================================
  30221. -- TABLE: phenotype
  30222. -- ================================================
  30223. CREATE TABLE phenotype (
  30224. phenotype_id SERIAL NOT NULL,
  30225. primary key (phenotype_id),
  30226. uniquename TEXT NOT NULL,
  30227. observable_id INT,
  30228. FOREIGN KEY (observable_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  30229. attr_id INT,
  30230. FOREIGN KEY (attr_id) REFERENCES cvterm (cvterm_id) ON DELETE SET NULL,
  30231. value TEXT,
  30232. cvalue_id INT,
  30233. FOREIGN KEY (cvalue_id) REFERENCES cvterm (cvterm_id) ON DELETE SET NULL,
  30234. assay_id INT,
  30235. FOREIGN KEY (assay_id) REFERENCES cvterm (cvterm_id) ON DELETE SET NULL,
  30236. CONSTRAINT phenotype_c1 UNIQUE (uniquename)
  30237. );
  30238. CREATE INDEX phenotype_idx1 ON phenotype (cvalue_id);
  30239. CREATE INDEX phenotype_idx2 ON phenotype (observable_id);
  30240. CREATE INDEX phenotype_idx3 ON phenotype (attr_id);
  30241. COMMENT ON TABLE phenotype IS 'A phenotypic statement, or a single
  30242. atomic phenotypic observation, is a controlled sentence describing
  30243. observable effects of non-wild type function. E.g. Obs=eye, attribute=color, cvalue=red.';
  30244. COMMENT ON COLUMN phenotype.observable_id IS 'The entity: e.g. anatomy_part, biological_process.';
  30245. COMMENT ON COLUMN phenotype.attr_id IS 'Phenotypic attribute (quality, property, attribute, character) - drawn from PATO.';
  30246. COMMENT ON COLUMN phenotype.value IS 'Value of attribute - unconstrained free text. Used only if cvalue_id is not appropriate.';
  30247. COMMENT ON COLUMN phenotype.cvalue_id IS 'Phenotype attribute value (state).';
  30248. COMMENT ON COLUMN phenotype.assay_id IS 'Evidence type.';
  30249. -- ================================================
  30250. -- TABLE: phenotype_cvterm
  30251. -- ================================================
  30252. CREATE TABLE phenotype_cvterm (
  30253. phenotype_cvterm_id SERIAL NOT NULL,
  30254. primary key (phenotype_cvterm_id),
  30255. phenotype_id INT NOT NULL,
  30256. FOREIGN KEY (phenotype_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  30257. cvterm_id INT NOT NULL,
  30258. FOREIGN KEY (cvterm_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  30259. rank int not null default 0,
  30260. CONSTRAINT phenotype_cvterm_c1 UNIQUE (phenotype_id, cvterm_id, rank)
  30261. );
  30262. CREATE INDEX phenotype_cvterm_idx1 ON phenotype_cvterm (phenotype_id);
  30263. CREATE INDEX phenotype_cvterm_idx2 ON phenotype_cvterm (cvterm_id);
  30264. COMMENT ON TABLE phenotype_cvterm IS NULL;
  30265. -- ================================================
  30266. -- TABLE: feature_phenotype
  30267. -- ================================================
  30268. CREATE TABLE feature_phenotype (
  30269. feature_phenotype_id SERIAL NOT NULL,
  30270. primary key (feature_phenotype_id),
  30271. feature_id INT NOT NULL,
  30272. FOREIGN KEY (feature_id) REFERENCES feature (feature_id) ON DELETE CASCADE,
  30273. phenotype_id INT NOT NULL,
  30274. FOREIGN KEY (phenotype_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  30275. CONSTRAINT feature_phenotype_c1 UNIQUE (feature_id,phenotype_id)
  30276. );
  30277. CREATE INDEX feature_phenotype_idx1 ON feature_phenotype (feature_id);
  30278. CREATE INDEX feature_phenotype_idx2 ON feature_phenotype (phenotype_id);
  30279. COMMENT ON TABLE feature_phenotype IS NULL;
  30280. -- $Id: genetic.sql,v 1.31 2008-08-25 19:53:14 scottcain Exp $
  30281. -- ==========================================
  30282. -- Chado genetics module
  30283. --
  30284. -- 2006-04-11
  30285. -- split out phenotype tables into phenotype module
  30286. --
  30287. -- redesigned 2003-10-28
  30288. --
  30289. -- changes 2003-11-10:
  30290. -- incorporating suggestions to make everything a gcontext; use
  30291. -- gcontext_relationship to make some gcontexts derivable from others. we
  30292. -- would incorporate environment this way - just add the environment
  30293. -- descriptors as properties of the child gcontext
  30294. --
  30295. -- changes 2004-06 (Documented by DE: 10-MAR-2005):
  30296. -- Many, including rename of gcontext to genotype, split
  30297. -- phenstatement into phenstatement & phenotype, created environment
  30298. --
  30299. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  30300. -- ============
  30301. -- DEPENDENCIES
  30302. -- ============
  30303. -- :import feature from sequence
  30304. -- :import phenotype from phenotype
  30305. -- :import cvterm from cv
  30306. -- :import pub from pub
  30307. -- :import dbxref from general
  30308. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  30309. -- ================================================
  30310. -- TABLE: genotype
  30311. -- ================================================
  30312. create table genotype (
  30313. genotype_id serial not null,
  30314. primary key (genotype_id),
  30315. name text,
  30316. uniquename text not null,
  30317. description varchar(255),
  30318. constraint genotype_c1 unique (uniquename)
  30319. );
  30320. create index genotype_idx1 on genotype(uniquename);
  30321. create index genotype_idx2 on genotype(name);
  30322. COMMENT ON TABLE genotype IS 'Genetic context. A genotype is defined by a collection of features, mutations, balancers, deficiencies, haplotype blocks, or engineered constructs.';
  30323. COMMENT ON COLUMN genotype.uniquename IS 'The unique name for a genotype;
  30324. typically derived from the features making up the genotype.';
  30325. COMMENT ON COLUMN genotype.name IS 'Optional alternative name for a genotype,
  30326. for display purposes.';
  30327. -- ===============================================
  30328. -- TABLE: feature_genotype
  30329. -- ================================================
  30330. create table feature_genotype (
  30331. feature_genotype_id serial not null,
  30332. primary key (feature_genotype_id),
  30333. feature_id int not null,
  30334. foreign key (feature_id) references feature (feature_id) on delete cascade,
  30335. genotype_id int not null,
  30336. foreign key (genotype_id) references genotype (genotype_id) on delete cascade,
  30337. chromosome_id int,
  30338. foreign key (chromosome_id) references feature (feature_id) on delete set null,
  30339. rank int not null,
  30340. cgroup int not null,
  30341. cvterm_id int not null,
  30342. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  30343. constraint feature_genotype_c1 unique (feature_id, genotype_id, cvterm_id, chromosome_id, rank, cgroup)
  30344. );
  30345. create index feature_genotype_idx1 on feature_genotype (feature_id);
  30346. create index feature_genotype_idx2 on feature_genotype (genotype_id);
  30347. COMMENT ON TABLE feature_genotype IS NULL;
  30348. COMMENT ON COLUMN feature_genotype.rank IS 'rank can be used for
  30349. n-ploid organisms or to preserve order.';
  30350. COMMENT ON COLUMN feature_genotype.cgroup IS 'Spatially distinguishable
  30351. group. group can be used for distinguishing the chromosomal groups,
  30352. for example (RNAi products and so on can be treated as different
  30353. groups, as they do not fall on a particular chromosome).';
  30354. COMMENT ON COLUMN feature_genotype.chromosome_id IS 'A feature of SO type "chromosome".';
  30355. -- ================================================
  30356. -- TABLE: environment
  30357. -- ================================================
  30358. create table environment (
  30359. environment_id serial not NULL,
  30360. primary key (environment_id),
  30361. uniquename text not null,
  30362. description text,
  30363. constraint environment_c1 unique (uniquename)
  30364. );
  30365. create index environment_idx1 on environment(uniquename);
  30366. COMMENT ON TABLE environment IS 'The environmental component of a phenotype description.';
  30367. -- ================================================
  30368. -- TABLE: environment_cvterm
  30369. -- ================================================
  30370. create table environment_cvterm (
  30371. environment_cvterm_id serial not null,
  30372. primary key (environment_cvterm_id),
  30373. environment_id int not null,
  30374. foreign key (environment_id) references environment (environment_id) on delete cascade,
  30375. cvterm_id int not null,
  30376. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  30377. constraint environment_cvterm_c1 unique (environment_id, cvterm_id)
  30378. );
  30379. create index environment_cvterm_idx1 on environment_cvterm (environment_id);
  30380. create index environment_cvterm_idx2 on environment_cvterm (cvterm_id);
  30381. COMMENT ON TABLE environment_cvterm IS NULL;
  30382. -- ================================================
  30383. -- TABLE: phenstatement
  30384. -- ================================================
  30385. CREATE TABLE phenstatement (
  30386. phenstatement_id SERIAL NOT NULL,
  30387. primary key (phenstatement_id),
  30388. genotype_id INT NOT NULL,
  30389. FOREIGN KEY (genotype_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  30390. environment_id INT NOT NULL,
  30391. FOREIGN KEY (environment_id) REFERENCES environment (environment_id) ON DELETE CASCADE,
  30392. phenotype_id INT NOT NULL,
  30393. FOREIGN KEY (phenotype_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  30394. type_id INT NOT NULL,
  30395. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  30396. pub_id INT NOT NULL,
  30397. FOREIGN KEY (pub_id) REFERENCES pub (pub_id) ON DELETE CASCADE,
  30398. CONSTRAINT phenstatement_c1 UNIQUE (genotype_id,phenotype_id,environment_id,type_id,pub_id)
  30399. );
  30400. CREATE INDEX phenstatement_idx1 ON phenstatement (genotype_id);
  30401. CREATE INDEX phenstatement_idx2 ON phenstatement (phenotype_id);
  30402. 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.';
  30403. -- ================================================
  30404. -- TABLE: phendesc
  30405. -- ================================================
  30406. CREATE TABLE phendesc (
  30407. phendesc_id SERIAL NOT NULL,
  30408. primary key (phendesc_id),
  30409. genotype_id INT NOT NULL,
  30410. FOREIGN KEY (genotype_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  30411. environment_id INT NOT NULL,
  30412. FOREIGN KEY (environment_id) REFERENCES environment ( environment_id) ON DELETE CASCADE,
  30413. description TEXT NOT NULL,
  30414. type_id INT NOT NULL,
  30415. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  30416. pub_id INT NOT NULL,
  30417. FOREIGN KEY (pub_id) REFERENCES pub (pub_id) ON DELETE CASCADE,
  30418. CONSTRAINT phendesc_c1 UNIQUE (genotype_id,environment_id,type_id,pub_id)
  30419. );
  30420. CREATE INDEX phendesc_idx1 ON phendesc (genotype_id);
  30421. CREATE INDEX phendesc_idx2 ON phendesc (environment_id);
  30422. CREATE INDEX phendesc_idx3 ON phendesc (pub_id);
  30423. COMMENT ON TABLE phendesc IS 'A summary of a _set_ of phenotypic statements for any one gcontext made in any one publication.';
  30424. -- ================================================
  30425. -- TABLE: phenotype_comparison
  30426. -- ================================================
  30427. CREATE TABLE phenotype_comparison (
  30428. phenotype_comparison_id SERIAL NOT NULL,
  30429. primary key (phenotype_comparison_id),
  30430. genotype1_id INT NOT NULL,
  30431. FOREIGN KEY (genotype1_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  30432. environment1_id INT NOT NULL,
  30433. FOREIGN KEY (environment1_id) REFERENCES environment (environment_id) ON DELETE CASCADE,
  30434. genotype2_id INT NOT NULL,
  30435. FOREIGN KEY (genotype2_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  30436. environment2_id INT NOT NULL,
  30437. FOREIGN KEY (environment2_id) REFERENCES environment (environment_id) ON DELETE CASCADE,
  30438. phenotype1_id INT NOT NULL,
  30439. FOREIGN KEY (phenotype1_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  30440. phenotype2_id INT,
  30441. FOREIGN KEY (phenotype2_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  30442. pub_id INT NOT NULL,
  30443. FOREIGN KEY (pub_id) REFERENCES pub (pub_id) ON DELETE CASCADE,
  30444. organism_id INT NOT NULL,
  30445. FOREIGN KEY (organism_id) REFERENCES organism (organism_id) ON DELETE CASCADE,
  30446. CONSTRAINT phenotype_comparison_c1 UNIQUE (genotype1_id,environment1_id,genotype2_id,environment2_id,phenotype1_id,pub_id)
  30447. );
  30448. CREATE INDEX phenotype_comparison_idx1 on phenotype_comparison (genotype1_id);
  30449. CREATE INDEX phenotype_comparison_idx2 on phenotype_comparison (genotype2_id);
  30450. CREATE INDEX phenotype_comparison_idx4 on phenotype_comparison (pub_id);
  30451. COMMENT ON TABLE phenotype_comparison IS 'Comparison of phenotypes e.g., genotype1/environment1/phenotype1 "non-suppressible" with respect to genotype2/environment2/phenotype2.';
  30452. -- ================================================
  30453. -- TABLE: phenotype_comparison_cvterm
  30454. -- ================================================
  30455. CREATE TABLE phenotype_comparison_cvterm (
  30456. phenotype_comparison_cvterm_id serial not null,
  30457. primary key (phenotype_comparison_cvterm_id),
  30458. phenotype_comparison_id int not null,
  30459. FOREIGN KEY (phenotype_comparison_id) references phenotype_comparison (phenotype_comparison_id) on delete cascade,
  30460. cvterm_id int not null,
  30461. FOREIGN KEY (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  30462. pub_id INT not null,
  30463. FOREIGN KEY (pub_id) references pub (pub_id) on delete cascade,
  30464. rank int not null default 0,
  30465. CONSTRAINT phenotype_comparison_cvterm_c1 unique (phenotype_comparison_id, cvterm_id)
  30466. );
  30467. CREATE INDEX phenotype_comparison_cvterm_idx1 on phenotype_comparison_cvterm (phenotype_comparison_id);
  30468. CREATE INDEX phenotype_comparison_cvterm_idx2 on phenotype_comparison_cvterm (cvterm_id);
  30469. -- $Id: map.sql,v 1.14 2007-03-23 15:18:02 scottcain Exp $
  30470. -- ==========================================
  30471. -- Chado map module
  30472. --
  30473. -- =================================================================
  30474. -- Dependencies:
  30475. --
  30476. -- :import feature from sequence
  30477. -- :import cvterm from cv
  30478. -- :import pub from pub
  30479. -- =================================================================
  30480. -- ================================================
  30481. -- TABLE: featuremap
  30482. -- ================================================
  30483. create table featuremap (
  30484. featuremap_id serial not null,
  30485. primary key (featuremap_id),
  30486. name varchar(255),
  30487. description text,
  30488. unittype_id int null,
  30489. foreign key (unittype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  30490. constraint featuremap_c1 unique (name)
  30491. );
  30492. -- ================================================
  30493. -- TABLE: featurerange
  30494. -- ================================================
  30495. create table featurerange (
  30496. featurerange_id serial not null,
  30497. primary key (featurerange_id),
  30498. featuremap_id int not null,
  30499. foreign key (featuremap_id) references featuremap (featuremap_id) on delete cascade INITIALLY DEFERRED,
  30500. feature_id int not null,
  30501. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  30502. leftstartf_id int not null,
  30503. foreign key (leftstartf_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  30504. leftendf_id int,
  30505. foreign key (leftendf_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  30506. rightstartf_id int,
  30507. foreign key (rightstartf_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  30508. rightendf_id int not null,
  30509. foreign key (rightendf_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  30510. rangestr varchar(255)
  30511. );
  30512. create index featurerange_idx1 on featurerange (featuremap_id);
  30513. create index featurerange_idx2 on featurerange (feature_id);
  30514. create index featurerange_idx3 on featurerange (leftstartf_id);
  30515. create index featurerange_idx4 on featurerange (leftendf_id);
  30516. create index featurerange_idx5 on featurerange (rightstartf_id);
  30517. create index featurerange_idx6 on featurerange (rightendf_id);
  30518. 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.';
  30519. COMMENT ON COLUMN featurerange.featuremap_id IS 'featuremap_id is the id of the feature being mapped.';
  30520. -- ================================================
  30521. -- TABLE: featurepos
  30522. -- ================================================
  30523. create table featurepos (
  30524. featurepos_id serial not null,
  30525. primary key (featurepos_id),
  30526. featuremap_id serial not null,
  30527. foreign key (featuremap_id) references featuremap (featuremap_id) on delete cascade INITIALLY DEFERRED,
  30528. feature_id int not null,
  30529. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  30530. map_feature_id int not null,
  30531. foreign key (map_feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  30532. mappos float not null
  30533. );
  30534. create index featurepos_idx1 on featurepos (featuremap_id);
  30535. create index featurepos_idx2 on featurepos (feature_id);
  30536. create index featurepos_idx3 on featurepos (map_feature_id);
  30537. COMMENT ON COLUMN featurepos.map_feature_id IS 'map_feature_id
  30538. links to the feature (map) upon which the feature is being localized.';
  30539. -- ================================================
  30540. -- TABLE: featuremap_pub
  30541. -- ================================================
  30542. create table featuremap_pub (
  30543. featuremap_pub_id serial not null,
  30544. primary key (featuremap_pub_id),
  30545. featuremap_id int not null,
  30546. foreign key (featuremap_id) references featuremap (featuremap_id) on delete cascade INITIALLY DEFERRED,
  30547. pub_id int not null,
  30548. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED
  30549. );
  30550. create index featuremap_pub_idx1 on featuremap_pub (featuremap_id);
  30551. create index featuremap_pub_idx2 on featuremap_pub (pub_id);
  30552. -- $Id: phylogeny.sql,v 1.11 2007-04-12 17:00:30 briano Exp $
  30553. -- ==========================================
  30554. -- Chado phylogenetics module
  30555. --
  30556. -- Richard Bruskiewich
  30557. -- Chris Mungall
  30558. --
  30559. -- Initial design: 2004-05-27
  30560. --
  30561. -- ============
  30562. -- DEPENDENCIES
  30563. -- ============
  30564. -- :import feature from sequence
  30565. -- :import cvterm from cv
  30566. -- :import pub from pub
  30567. -- :import organism from organism
  30568. -- :import dbxref from general
  30569. -- :import analysis from companalysis
  30570. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  30571. -- ================================================
  30572. -- TABLE: phylotree
  30573. -- ================================================
  30574. create table phylotree (
  30575. phylotree_id serial not null,
  30576. primary key (phylotree_id),
  30577. dbxref_id int not null,
  30578. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade,
  30579. name varchar(255) null,
  30580. type_id int,
  30581. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  30582. analysis_id int null,
  30583. foreign key (analysis_id) references analysis (analysis_id) on delete cascade,
  30584. comment text null,
  30585. unique(phylotree_id)
  30586. );
  30587. create index phylotree_idx1 on phylotree (phylotree_id);
  30588. COMMENT ON TABLE phylotree IS 'Global anchor for phylogenetic tree.';
  30589. COMMENT ON COLUMN phylotree.type_id IS 'Type: protein, nucleotide, taxonomy, for example. The type should be any SO type, or "taxonomy".';
  30590. -- ================================================
  30591. -- TABLE: phylotree_pub
  30592. -- ================================================
  30593. create table phylotree_pub (
  30594. phylotree_pub_id serial not null,
  30595. primary key (phylotree_pub_id),
  30596. phylotree_id int not null,
  30597. foreign key (phylotree_id) references phylotree (phylotree_id) on delete cascade,
  30598. pub_id int not null,
  30599. foreign key (pub_id) references pub (pub_id) on delete cascade,
  30600. unique(phylotree_id, pub_id)
  30601. );
  30602. create index phylotree_pub_idx1 on phylotree_pub (phylotree_id);
  30603. create index phylotree_pub_idx2 on phylotree_pub (pub_id);
  30604. COMMENT ON TABLE phylotree_pub IS 'Tracks citations global to the tree e.g. multiple sequence alignment supporting tree construction.';
  30605. -- ================================================
  30606. -- TABLE: phylonode
  30607. -- ================================================
  30608. create table phylonode (
  30609. phylonode_id serial not null,
  30610. primary key (phylonode_id),
  30611. phylotree_id int not null,
  30612. foreign key (phylotree_id) references phylotree (phylotree_id) on delete cascade,
  30613. parent_phylonode_id int null,
  30614. foreign key (parent_phylonode_id) references phylonode (phylonode_id) on delete cascade,
  30615. left_idx int not null,
  30616. right_idx int not null,
  30617. type_id int,
  30618. foreign key(type_id) references cvterm (cvterm_id) on delete cascade,
  30619. feature_id int,
  30620. foreign key (feature_id) references feature (feature_id) on delete cascade,
  30621. label varchar(255) null,
  30622. distance float null,
  30623. -- Bootstrap float null.
  30624. unique(phylotree_id, left_idx),
  30625. unique(phylotree_id, right_idx)
  30626. );
  30627. COMMENT ON TABLE phylonode IS 'This is the most pervasive
  30628. element in the phylogeny module, cataloging the "phylonodes" of
  30629. tree graphs. Edges are implied by the parent_phylonode_id
  30630. reflexive closure. For all nodes in a nested set implementation the left and right index will be *between* the parents left and right indexes.';
  30631. 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.';
  30632. COMMENT ON COLUMN phylonode.type_id IS 'Type: e.g. root, interior, leaf.';
  30633. COMMENT ON COLUMN phylonode.parent_phylonode_id IS 'Root phylonode can have null parent_phylonode_id value.';
  30634. -- ================================================
  30635. -- TABLE: phylonode_dbxref
  30636. -- ================================================
  30637. create table phylonode_dbxref (
  30638. phylonode_dbxref_id serial not null,
  30639. primary key (phylonode_dbxref_id),
  30640. phylonode_id int not null,
  30641. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  30642. dbxref_id int not null,
  30643. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade,
  30644. unique(phylonode_id,dbxref_id)
  30645. );
  30646. create index phylonode_dbxref_idx1 on phylonode_dbxref (phylonode_id);
  30647. create index phylonode_dbxref_idx2 on phylonode_dbxref (dbxref_id);
  30648. 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.';
  30649. -- ================================================
  30650. -- TABLE: phylonode_pub
  30651. -- ================================================
  30652. create table phylonode_pub (
  30653. phylonode_pub_id serial not null,
  30654. primary key (phylonode_pub_id),
  30655. phylonode_id int not null,
  30656. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  30657. pub_id int not null,
  30658. foreign key (pub_id) references pub (pub_id) on delete cascade,
  30659. unique(phylonode_id, pub_id)
  30660. );
  30661. create index phylonode_pub_idx1 on phylonode_pub (phylonode_id);
  30662. create index phylonode_pub_idx2 on phylonode_pub (pub_id);
  30663. -- ================================================
  30664. -- TABLE: phylonode_organism
  30665. -- ================================================
  30666. create table phylonode_organism (
  30667. phylonode_organism_id serial not null,
  30668. primary key (phylonode_organism_id),
  30669. phylonode_id int not null,
  30670. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  30671. organism_id int not null,
  30672. foreign key (organism_id) references organism (organism_id) on delete cascade,
  30673. unique(phylonode_id)
  30674. );
  30675. create index phylonode_organism_idx1 on phylonode_organism (phylonode_id);
  30676. create index phylonode_organism_idx2 on phylonode_organism (organism_id);
  30677. 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).';
  30678. COMMENT ON COLUMN phylonode_organism.phylonode_id IS 'One phylonode cannot refer to >1 organism.';
  30679. -- ================================================
  30680. -- TABLE: phylonodeprop
  30681. -- ================================================
  30682. create table phylonodeprop (
  30683. phylonodeprop_id serial not null,
  30684. primary key (phylonodeprop_id),
  30685. phylonode_id int not null,
  30686. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  30687. type_id int not null,
  30688. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  30689. value text not null default '',
  30690. -- It is not clear how useful the rank concept is here, leave it in for now.
  30691. rank int not null default 0,
  30692. unique(phylonode_id, type_id, value, rank)
  30693. );
  30694. create index phylonodeprop_idx1 on phylonodeprop (phylonode_id);
  30695. create index phylonodeprop_idx2 on phylonodeprop (type_id);
  30696. 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.';
  30697. -- ================================================
  30698. -- TABLE: phylonode_relationship
  30699. -- ================================================
  30700. create table phylonode_relationship (
  30701. phylonode_relationship_id serial not null,
  30702. primary key (phylonode_relationship_id),
  30703. subject_id int not null,
  30704. foreign key (subject_id) references phylonode (phylonode_id) on delete cascade,
  30705. object_id int not null,
  30706. foreign key (object_id) references phylonode (phylonode_id) on delete cascade,
  30707. type_id int not null,
  30708. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  30709. rank int,
  30710. phylotree_id int not null,
  30711. foreign key (phylotree_id) references phylotree (phylotree_id) on delete cascade,
  30712. unique(subject_id, object_id, type_id)
  30713. );
  30714. create index phylonode_relationship_idx1 on phylonode_relationship (subject_id);
  30715. create index phylonode_relationship_idx2 on phylonode_relationship (object_id);
  30716. create index phylonode_relationship_idx3 on phylonode_relationship (type_id);
  30717. COMMENT ON TABLE phylonode_relationship IS 'This is for
  30718. relationships that are not strictly hierarchical; for example,
  30719. horizontal gene transfer. Most phylogenetic trees are strictly
  30720. hierarchical, nevertheless it is here for completeness.';
  30721. CREATE OR REPLACE FUNCTION phylonode_depth(INT)
  30722. RETURNS FLOAT AS
  30723. 'DECLARE id ALIAS FOR $1;
  30724. DECLARE depth FLOAT := 0;
  30725. DECLARE curr_node phylonode%ROWTYPE;
  30726. BEGIN
  30727. SELECT INTO curr_node *
  30728. FROM phylonode
  30729. WHERE phylonode_id=id;
  30730. depth = depth + curr_node.distance;
  30731. IF curr_node.parent_phylonode_id IS NULL
  30732. THEN RETURN depth;
  30733. ELSE RETURN depth + phylonode_depth(curr_node.parent_phylonode_id);
  30734. END IF;
  30735. END
  30736. '
  30737. LANGUAGE 'plpgsql';
  30738. CREATE OR REPLACE FUNCTION phylonode_height(INT)
  30739. RETURNS FLOAT AS
  30740. '
  30741. SELECT coalesce(max(phylonode_height(phylonode_id) + distance), 0.0)
  30742. FROM phylonode
  30743. WHERE parent_phylonode_id = $1
  30744. '
  30745. LANGUAGE 'sql';
  30746. -- $Id: contact.sql,v 1.5 2007-02-25 17:00:17 briano Exp $
  30747. -- ==========================================
  30748. -- Chado contact module
  30749. --
  30750. -- =================================================================
  30751. -- Dependencies:
  30752. --
  30753. -- :import cvterm from cv
  30754. -- =================================================================
  30755. -- ================================================
  30756. -- TABLE: contact
  30757. -- ================================================
  30758. create table contact (
  30759. contact_id serial not null,
  30760. primary key (contact_id),
  30761. type_id int null,
  30762. foreign key (type_id) references cvterm (cvterm_id),
  30763. name varchar(255) not null,
  30764. description varchar(255) null,
  30765. constraint contact_c1 unique (name)
  30766. );
  30767. COMMENT ON TABLE contact IS 'Model persons, institutes, groups, organizations, etc.';
  30768. COMMENT ON COLUMN contact.type_id IS 'What type of contact is this? E.g. "person", "lab".';
  30769. -- ================================================
  30770. -- TABLE: contact_relationship
  30771. -- ================================================
  30772. create table contact_relationship (
  30773. contact_relationship_id serial not null,
  30774. primary key (contact_relationship_id),
  30775. type_id int not null,
  30776. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  30777. subject_id int not null,
  30778. foreign key (subject_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  30779. object_id int not null,
  30780. foreign key (object_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  30781. constraint contact_relationship_c1 unique (subject_id,object_id,type_id)
  30782. );
  30783. create index contact_relationship_idx1 on contact_relationship (type_id);
  30784. create index contact_relationship_idx2 on contact_relationship (subject_id);
  30785. create index contact_relationship_idx3 on contact_relationship (object_id);
  30786. COMMENT ON TABLE contact_relationship IS 'Model relationships between contacts';
  30787. 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.';
  30788. 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.';
  30789. 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.';
  30790. -- $Id: expression.sql,v 1.14 2007-03-23 15:18:02 scottcain Exp $
  30791. -- ==========================================
  30792. -- Chado expression module
  30793. --
  30794. -- =================================================================
  30795. -- Dependencies:
  30796. --
  30797. -- :import feature from sequence
  30798. -- :import cvterm from cv
  30799. -- :import pub from pub
  30800. -- =================================================================
  30801. -- ================================================
  30802. -- TABLE: expression
  30803. -- ================================================
  30804. create table expression (
  30805. expression_id serial not null,
  30806. primary key (expression_id),
  30807. uniquename text not null,
  30808. md5checksum character(32),
  30809. description text,
  30810. constraint expression_c1 unique(uniquename)
  30811. );
  30812. COMMENT ON TABLE expression IS 'The expression table is essentially a bridge table.';
  30813. -- ================================================
  30814. -- TABLE: expression_cvterm
  30815. -- ================================================
  30816. create table expression_cvterm (
  30817. expression_cvterm_id serial not null,
  30818. primary key (expression_cvterm_id),
  30819. expression_id int not null,
  30820. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  30821. cvterm_id int not null,
  30822. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  30823. rank int not null default 0,
  30824. cvterm_type_id int not null,
  30825. foreign key (cvterm_type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  30826. constraint expression_cvterm_c1 unique(expression_id,cvterm_id,cvterm_type_id)
  30827. );
  30828. create index expression_cvterm_idx1 on expression_cvterm (expression_id);
  30829. create index expression_cvterm_idx2 on expression_cvterm (cvterm_id);
  30830. create index expression_cvterm_idx3 on expression_cvterm (cvterm_type_id);
  30831. --================================================
  30832. -- TABLE: expression_cvtermprop
  30833. -- ================================================
  30834. create table expression_cvtermprop (
  30835. expression_cvtermprop_id serial not null,
  30836. primary key (expression_cvtermprop_id),
  30837. expression_cvterm_id int not null,
  30838. foreign key (expression_cvterm_id) references expression_cvterm (expression_cvterm_id) on delete cascade INITIALLY DEFERRED,
  30839. type_id int not null,
  30840. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  30841. value text null,
  30842. rank int not null default 0,
  30843. constraint expression_cvtermprop_c1 unique (expression_cvterm_id,type_id,rank)
  30844. );
  30845. create index expression_cvtermprop_idx1 on expression_cvtermprop (expression_cvterm_id);
  30846. create index expression_cvtermprop_idx2 on expression_cvtermprop (type_id);
  30847. COMMENT ON TABLE expression_cvtermprop IS 'Extensible properties for
  30848. expression to cvterm associations. Examples: qualifiers.';
  30849. COMMENT ON COLUMN expression_cvtermprop.type_id IS 'The name of the
  30850. property/slot is a cvterm. The meaning of the property is defined in
  30851. that cvterm. For example, cvterms may come from the FlyBase miscellaneous cv.';
  30852. COMMENT ON COLUMN expression_cvtermprop.value IS 'The value of the
  30853. property, represented as text. Numeric values are converted to their
  30854. text representation. This is less efficient than using native database
  30855. types, but is easier to query.';
  30856. COMMENT ON COLUMN expression_cvtermprop.rank IS 'Property-Value
  30857. ordering. Any expression_cvterm can have multiple values for any particular
  30858. property type - these are ordered in a list using rank, counting from
  30859. zero. For properties that are single-valued rather than multi-valued,
  30860. the default 0 value should be used.';
  30861. -- ================================================
  30862. -- TABLE: expressionprop
  30863. -- ================================================
  30864. create table expressionprop (
  30865. expressionprop_id serial not null,
  30866. primary key (expressionprop_id),
  30867. expression_id int not null,
  30868. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  30869. type_id int not null,
  30870. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  30871. value text null,
  30872. rank int not null default 0,
  30873. constraint expressionprop_c1 unique (expression_id,type_id,rank)
  30874. );
  30875. create index expressionprop_idx1 on expressionprop (expression_id);
  30876. create index expressionprop_idx2 on expressionprop (type_id);
  30877. -- ================================================
  30878. -- TABLE: expression_pub
  30879. -- ================================================
  30880. create table expression_pub (
  30881. expression_pub_id serial not null,
  30882. primary key (expression_pub_id),
  30883. expression_id int not null,
  30884. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  30885. pub_id int not null,
  30886. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  30887. constraint expression_pub_c1 unique(expression_id,pub_id)
  30888. );
  30889. create index expression_pub_idx1 on expression_pub (expression_id);
  30890. create index expression_pub_idx2 on expression_pub (pub_id);
  30891. -- ================================================
  30892. -- TABLE: feature_expression
  30893. -- ================================================
  30894. create table feature_expression (
  30895. feature_expression_id serial not null,
  30896. primary key (feature_expression_id),
  30897. expression_id int not null,
  30898. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  30899. feature_id int not null,
  30900. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  30901. pub_id int not null,
  30902. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  30903. constraint feature_expression_c1 unique(expression_id,feature_id,pub_id)
  30904. );
  30905. create index feature_expression_idx1 on feature_expression (expression_id);
  30906. create index feature_expression_idx2 on feature_expression (feature_id);
  30907. create index feature_expression_idx3 on feature_expression (pub_id);
  30908. -- ================================================
  30909. -- TABLE: feature_expressionprop
  30910. -- ================================================
  30911. create table feature_expressionprop (
  30912. feature_expressionprop_id serial not null,
  30913. primary key (feature_expressionprop_id),
  30914. feature_expression_id int not null,
  30915. foreign key (feature_expression_id) references feature_expression (feature_expression_id) on delete cascade INITIALLY DEFERRED,
  30916. type_id int not null,
  30917. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  30918. value text null,
  30919. rank int not null default 0,
  30920. constraint feature_expressionprop_c1 unique (feature_expression_id,type_id,rank)
  30921. );
  30922. create index feature_expressionprop_idx1 on feature_expressionprop (feature_expression_id);
  30923. create index feature_expressionprop_idx2 on feature_expressionprop (type_id);
  30924. COMMENT ON TABLE feature_expressionprop IS 'Extensible properties for
  30925. feature_expression (comments, for example). Modeled on feature_cvtermprop.';
  30926. -- ================================================
  30927. -- TABLE: eimage
  30928. -- ================================================
  30929. create table eimage (
  30930. eimage_id serial not null,
  30931. primary key (eimage_id),
  30932. eimage_data text,
  30933. eimage_type varchar(255) not null,
  30934. image_uri varchar(255)
  30935. );
  30936. COMMENT ON COLUMN eimage.eimage_data IS 'We expect images in eimage_data (e.g. JPEGs) to be uuencoded.';
  30937. COMMENT ON COLUMN eimage.eimage_type IS 'Describes the type of data in eimage_data.';
  30938. -- ================================================
  30939. -- TABLE: expression_image
  30940. -- ================================================
  30941. create table expression_image (
  30942. expression_image_id serial not null,
  30943. primary key (expression_image_id),
  30944. expression_id int not null,
  30945. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  30946. eimage_id int not null,
  30947. foreign key (eimage_id) references eimage (eimage_id) on delete cascade INITIALLY DEFERRED,
  30948. constraint expression_image_c1 unique(expression_id,eimage_id)
  30949. );
  30950. create index expression_image_idx1 on expression_image (expression_id);
  30951. create index expression_image_idx2 on expression_image (eimage_id);
  30952. -- $Id: mage.sql,v 1.3 2008-03-19 18:32:51 scottcain Exp $
  30953. -- ==========================================
  30954. -- Chado mage module
  30955. --
  30956. -- =================================================================
  30957. -- Dependencies:
  30958. --
  30959. -- :import feature from sequence
  30960. -- :import cvterm from cv
  30961. -- :import pub from pub
  30962. -- :import organism from organism
  30963. -- :import contact from contact
  30964. -- :import dbxref from general
  30965. -- :import tableinfo from general
  30966. -- :import project from general
  30967. -- :import analysis from companalysis
  30968. -- =================================================================
  30969. -- ================================================
  30970. -- TABLE: mageml
  30971. -- ================================================
  30972. create table mageml (
  30973. mageml_id serial not null,
  30974. primary key (mageml_id),
  30975. mage_package text not null,
  30976. mage_ml text not null
  30977. );
  30978. 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.';
  30979. -- ================================================
  30980. -- TABLE: magedocumentation
  30981. -- ================================================
  30982. create table magedocumentation (
  30983. magedocumentation_id serial not null,
  30984. primary key (magedocumentation_id),
  30985. mageml_id int not null,
  30986. foreign key (mageml_id) references mageml (mageml_id) on delete cascade INITIALLY DEFERRED,
  30987. tableinfo_id int not null,
  30988. foreign key (tableinfo_id) references tableinfo (tableinfo_id) on delete cascade INITIALLY DEFERRED,
  30989. row_id int not null,
  30990. mageidentifier text not null
  30991. );
  30992. create index magedocumentation_idx1 on magedocumentation (mageml_id);
  30993. create index magedocumentation_idx2 on magedocumentation (tableinfo_id);
  30994. create index magedocumentation_idx3 on magedocumentation (row_id);
  30995. COMMENT ON TABLE magedocumentation IS NULL;
  30996. -- ================================================
  30997. -- TABLE: protocol
  30998. -- ================================================
  30999. create table protocol (
  31000. protocol_id serial not null,
  31001. primary key (protocol_id),
  31002. type_id int not null,
  31003. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31004. pub_id int null,
  31005. foreign key (pub_id) references pub (pub_id) on delete set null INITIALLY DEFERRED,
  31006. dbxref_id int null,
  31007. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  31008. name text not null,
  31009. uri text null,
  31010. protocoldescription text null,
  31011. hardwaredescription text null,
  31012. softwaredescription text null,
  31013. constraint protocol_c1 unique (name)
  31014. );
  31015. create index protocol_idx1 on protocol (type_id);
  31016. create index protocol_idx2 on protocol (pub_id);
  31017. create index protocol_idx3 on protocol (dbxref_id);
  31018. COMMENT ON TABLE protocol IS 'Procedural notes on how data was prepared and processed.';
  31019. -- ================================================
  31020. -- TABLE: protocolparam
  31021. -- ================================================
  31022. create table protocolparam (
  31023. protocolparam_id serial not null,
  31024. primary key (protocolparam_id),
  31025. protocol_id int not null,
  31026. foreign key (protocol_id) references protocol (protocol_id) on delete cascade INITIALLY DEFERRED,
  31027. name text not null,
  31028. datatype_id int null,
  31029. foreign key (datatype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  31030. unittype_id int null,
  31031. foreign key (unittype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  31032. value text null,
  31033. rank int not null default 0
  31034. );
  31035. create index protocolparam_idx1 on protocolparam (protocol_id);
  31036. create index protocolparam_idx2 on protocolparam (datatype_id);
  31037. create index protocolparam_idx3 on protocolparam (unittype_id);
  31038. COMMENT ON TABLE protocolparam IS 'Parameters related to a
  31039. protocol. For example, if the protocol is a soak, this might include attributes of bath temperature and duration.';
  31040. -- ================================================
  31041. -- TABLE: channel
  31042. -- ================================================
  31043. create table channel (
  31044. channel_id serial not null,
  31045. primary key (channel_id),
  31046. name text not null,
  31047. definition text not null,
  31048. constraint channel_c1 unique (name)
  31049. );
  31050. 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).';
  31051. -- ================================================
  31052. -- TABLE: arraydesign
  31053. -- ================================================
  31054. create table arraydesign (
  31055. arraydesign_id serial not null,
  31056. primary key (arraydesign_id),
  31057. manufacturer_id int not null,
  31058. foreign key (manufacturer_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  31059. platformtype_id int not null,
  31060. foreign key (platformtype_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31061. substratetype_id int null,
  31062. foreign key (substratetype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  31063. protocol_id int null,
  31064. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  31065. dbxref_id int null,
  31066. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  31067. name text not null,
  31068. version text null,
  31069. description text null,
  31070. array_dimensions text null,
  31071. element_dimensions text null,
  31072. num_of_elements int null,
  31073. num_array_columns int null,
  31074. num_array_rows int null,
  31075. num_grid_columns int null,
  31076. num_grid_rows int null,
  31077. num_sub_columns int null,
  31078. num_sub_rows int null,
  31079. constraint arraydesign_c1 unique (name)
  31080. );
  31081. create index arraydesign_idx1 on arraydesign (manufacturer_id);
  31082. create index arraydesign_idx2 on arraydesign (platformtype_id);
  31083. create index arraydesign_idx3 on arraydesign (substratetype_id);
  31084. create index arraydesign_idx4 on arraydesign (protocol_id);
  31085. create index arraydesign_idx5 on arraydesign (dbxref_id);
  31086. COMMENT ON TABLE arraydesign IS 'General properties about an array.
  31087. An array is a template used to generate physical slides, etc. It
  31088. contains layout information, as well as global array properties, such
  31089. as material (glass, nylon) and spot dimensions (in rows/columns).';
  31090. -- ================================================
  31091. -- TABLE: arraydesignprop
  31092. -- ================================================
  31093. create table arraydesignprop (
  31094. arraydesignprop_id serial not null,
  31095. primary key (arraydesignprop_id),
  31096. arraydesign_id int not null,
  31097. foreign key (arraydesign_id) references arraydesign (arraydesign_id) on delete cascade INITIALLY DEFERRED,
  31098. type_id int not null,
  31099. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31100. value text null,
  31101. rank int not null default 0,
  31102. constraint arraydesignprop_c1 unique (arraydesign_id,type_id,rank)
  31103. );
  31104. create index arraydesignprop_idx1 on arraydesignprop (arraydesign_id);
  31105. create index arraydesignprop_idx2 on arraydesignprop (type_id);
  31106. COMMENT ON TABLE arraydesignprop IS 'Extra array design properties that are not accounted for in arraydesign.';
  31107. -- ================================================
  31108. -- TABLE: assay
  31109. -- ================================================
  31110. create table assay (
  31111. assay_id serial not null,
  31112. primary key (assay_id),
  31113. arraydesign_id int not null,
  31114. foreign key (arraydesign_id) references arraydesign (arraydesign_id) on delete cascade INITIALLY DEFERRED,
  31115. protocol_id int null,
  31116. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  31117. assaydate timestamp null default current_timestamp,
  31118. arrayidentifier text null,
  31119. arraybatchidentifier text null,
  31120. operator_id int not null,
  31121. foreign key (operator_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  31122. dbxref_id int null,
  31123. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  31124. name text null,
  31125. description text null,
  31126. constraint assay_c1 unique (name)
  31127. );
  31128. create index assay_idx1 on assay (arraydesign_id);
  31129. create index assay_idx2 on assay (protocol_id);
  31130. create index assay_idx3 on assay (operator_id);
  31131. create index assay_idx4 on assay (dbxref_id);
  31132. COMMENT ON TABLE assay IS 'An assay consists of a physical instance of
  31133. an array, combined with the conditions used to create the array
  31134. (protocols, technician information). The assay can be thought of as a hybridization.';
  31135. -- ================================================
  31136. -- TABLE: assayprop
  31137. -- ================================================
  31138. create table assayprop (
  31139. assayprop_id serial not null,
  31140. primary key (assayprop_id),
  31141. assay_id int not null,
  31142. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  31143. type_id int not null,
  31144. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31145. value text null,
  31146. rank int not null default 0,
  31147. constraint assayprop_c1 unique (assay_id,type_id,rank)
  31148. );
  31149. create index assayprop_idx1 on assayprop (assay_id);
  31150. create index assayprop_idx2 on assayprop (type_id);
  31151. COMMENT ON TABLE assayprop IS 'Extra assay properties that are not accounted for in assay.';
  31152. -- ================================================
  31153. -- TABLE: assay_project
  31154. -- ================================================
  31155. create table assay_project (
  31156. assay_project_id serial not null,
  31157. primary key (assay_project_id),
  31158. assay_id int not null,
  31159. foreign key (assay_id) references assay (assay_id) INITIALLY DEFERRED,
  31160. project_id int not null,
  31161. foreign key (project_id) references project (project_id) INITIALLY DEFERRED,
  31162. constraint assay_project_c1 unique (assay_id,project_id)
  31163. );
  31164. create index assay_project_idx1 on assay_project (assay_id);
  31165. create index assay_project_idx2 on assay_project (project_id);
  31166. COMMENT ON TABLE assay_project IS 'Link assays to projects.';
  31167. -- ================================================
  31168. -- TABLE: biomaterial
  31169. -- ================================================
  31170. create table biomaterial (
  31171. biomaterial_id serial not null,
  31172. primary key (biomaterial_id),
  31173. taxon_id int null,
  31174. foreign key (taxon_id) references organism (organism_id) on delete set null INITIALLY DEFERRED,
  31175. biosourceprovider_id int null,
  31176. foreign key (biosourceprovider_id) references contact (contact_id) on delete set null INITIALLY DEFERRED,
  31177. dbxref_id int null,
  31178. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  31179. name text null,
  31180. description text null,
  31181. constraint biomaterial_c1 unique (name)
  31182. );
  31183. create index biomaterial_idx1 on biomaterial (taxon_id);
  31184. create index biomaterial_idx2 on biomaterial (biosourceprovider_id);
  31185. create index biomaterial_idx3 on biomaterial (dbxref_id);
  31186. 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.';
  31187. -- ================================================
  31188. -- TABLE: biomaterial_relationship
  31189. -- ================================================
  31190. create table biomaterial_relationship (
  31191. biomaterial_relationship_id serial not null,
  31192. primary key (biomaterial_relationship_id),
  31193. subject_id int not null,
  31194. foreign key (subject_id) references biomaterial (biomaterial_id) INITIALLY DEFERRED,
  31195. type_id int not null,
  31196. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  31197. object_id int not null,
  31198. foreign key (object_id) references biomaterial (biomaterial_id) INITIALLY DEFERRED,
  31199. constraint biomaterial_relationship_c1 unique (subject_id,object_id,type_id)
  31200. );
  31201. create index biomaterial_relationship_idx1 on biomaterial_relationship (subject_id);
  31202. create index biomaterial_relationship_idx2 on biomaterial_relationship (object_id);
  31203. create index biomaterial_relationship_idx3 on biomaterial_relationship (type_id);
  31204. 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.';
  31205. -- ================================================
  31206. -- TABLE: biomaterialprop
  31207. -- ================================================
  31208. create table biomaterialprop (
  31209. biomaterialprop_id serial not null,
  31210. primary key (biomaterialprop_id),
  31211. biomaterial_id int not null,
  31212. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  31213. type_id int not null,
  31214. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31215. value text null,
  31216. rank int not null default 0,
  31217. constraint biomaterialprop_c1 unique (biomaterial_id,type_id,rank)
  31218. );
  31219. create index biomaterialprop_idx1 on biomaterialprop (biomaterial_id);
  31220. create index biomaterialprop_idx2 on biomaterialprop (type_id);
  31221. COMMENT ON TABLE biomaterialprop IS 'Extra biomaterial properties that are not accounted for in biomaterial.';
  31222. -- ================================================
  31223. -- TABLE: biomaterial_dbxref
  31224. -- ================================================
  31225. create table biomaterial_dbxref (
  31226. biomaterial_dbxref_id serial not null,
  31227. primary key (biomaterial_dbxref_id),
  31228. biomaterial_id int not null,
  31229. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  31230. dbxref_id int not null,
  31231. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  31232. constraint biomaterial_dbxref_c1 unique (biomaterial_id,dbxref_id)
  31233. );
  31234. create index biomaterial_dbxref_idx1 on biomaterial_dbxref (biomaterial_id);
  31235. create index biomaterial_dbxref_idx2 on biomaterial_dbxref (dbxref_id);
  31236. -- ================================================
  31237. -- TABLE: treatment
  31238. -- ================================================
  31239. create table treatment (
  31240. treatment_id serial not null,
  31241. primary key (treatment_id),
  31242. rank int not null default 0,
  31243. biomaterial_id int not null,
  31244. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  31245. type_id int not null,
  31246. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31247. protocol_id int null,
  31248. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  31249. name text null
  31250. );
  31251. create index treatment_idx1 on treatment (biomaterial_id);
  31252. create index treatment_idx2 on treatment (type_id);
  31253. create index treatment_idx3 on treatment (protocol_id);
  31254. COMMENT ON TABLE treatment IS 'A biomaterial may undergo multiple
  31255. treatments. Examples of treatments: apoxia, fluorophore and biotin labeling.';
  31256. -- ================================================
  31257. -- TABLE: biomaterial_treatment
  31258. -- ================================================
  31259. create table biomaterial_treatment (
  31260. biomaterial_treatment_id serial not null,
  31261. primary key (biomaterial_treatment_id),
  31262. biomaterial_id int not null,
  31263. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  31264. treatment_id int not null,
  31265. foreign key (treatment_id) references treatment (treatment_id) on delete cascade INITIALLY DEFERRED,
  31266. unittype_id int null,
  31267. foreign key (unittype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  31268. value float(15) null,
  31269. rank int not null default 0,
  31270. constraint biomaterial_treatment_c1 unique (biomaterial_id,treatment_id)
  31271. );
  31272. create index biomaterial_treatment_idx1 on biomaterial_treatment (biomaterial_id);
  31273. create index biomaterial_treatment_idx2 on biomaterial_treatment (treatment_id);
  31274. create index biomaterial_treatment_idx3 on biomaterial_treatment (unittype_id);
  31275. COMMENT ON TABLE biomaterial_treatment IS 'Link biomaterials to treatments. Treatments have an order of operations (rank), and associated measurements (unittype_id, value).';
  31276. -- ================================================
  31277. -- TABLE: assay_biomaterial
  31278. -- ================================================
  31279. create table assay_biomaterial (
  31280. assay_biomaterial_id serial not null,
  31281. primary key (assay_biomaterial_id),
  31282. assay_id int not null,
  31283. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  31284. biomaterial_id int not null,
  31285. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  31286. channel_id int null,
  31287. foreign key (channel_id) references channel (channel_id) on delete set null INITIALLY DEFERRED,
  31288. rank int not null default 0,
  31289. constraint assay_biomaterial_c1 unique (assay_id,biomaterial_id,channel_id,rank)
  31290. );
  31291. create index assay_biomaterial_idx1 on assay_biomaterial (assay_id);
  31292. create index assay_biomaterial_idx2 on assay_biomaterial (biomaterial_id);
  31293. create index assay_biomaterial_idx3 on assay_biomaterial (channel_id);
  31294. 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).';
  31295. -- ================================================
  31296. -- TABLE: acquisition
  31297. -- ================================================
  31298. create table acquisition (
  31299. acquisition_id serial not null,
  31300. primary key (acquisition_id),
  31301. assay_id int not null,
  31302. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  31303. protocol_id int null,
  31304. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  31305. channel_id int null,
  31306. foreign key (channel_id) references channel (channel_id) on delete set null INITIALLY DEFERRED,
  31307. acquisitiondate timestamp null default current_timestamp,
  31308. name text null,
  31309. uri text null,
  31310. constraint acquisition_c1 unique (name)
  31311. );
  31312. create index acquisition_idx1 on acquisition (assay_id);
  31313. create index acquisition_idx2 on acquisition (protocol_id);
  31314. create index acquisition_idx3 on acquisition (channel_id);
  31315. 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.';
  31316. -- ================================================
  31317. -- TABLE: acquisitionprop
  31318. -- ================================================
  31319. create table acquisitionprop (
  31320. acquisitionprop_id serial not null,
  31321. primary key (acquisitionprop_id),
  31322. acquisition_id int not null,
  31323. foreign key (acquisition_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  31324. type_id int not null,
  31325. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31326. value text null,
  31327. rank int not null default 0,
  31328. constraint acquisitionprop_c1 unique (acquisition_id,type_id,rank)
  31329. );
  31330. create index acquisitionprop_idx1 on acquisitionprop (acquisition_id);
  31331. create index acquisitionprop_idx2 on acquisitionprop (type_id);
  31332. COMMENT ON TABLE acquisitionprop IS 'Parameters associated with image acquisition.';
  31333. -- ================================================
  31334. -- TABLE: acquisition_relationship
  31335. -- ================================================
  31336. create table acquisition_relationship (
  31337. acquisition_relationship_id serial not null,
  31338. primary key (acquisition_relationship_id),
  31339. subject_id int not null,
  31340. foreign key (subject_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  31341. type_id int not null,
  31342. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31343. object_id int not null,
  31344. foreign key (object_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  31345. value text null,
  31346. rank int not null default 0,
  31347. constraint acquisition_relationship_c1 unique (subject_id,object_id,type_id,rank)
  31348. );
  31349. create index acquisition_relationship_idx1 on acquisition_relationship (subject_id);
  31350. create index acquisition_relationship_idx2 on acquisition_relationship (type_id);
  31351. create index acquisition_relationship_idx3 on acquisition_relationship (object_id);
  31352. 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.';
  31353. -- ================================================
  31354. -- TABLE: quantification
  31355. -- ================================================
  31356. create table quantification (
  31357. quantification_id serial not null,
  31358. primary key (quantification_id),
  31359. acquisition_id int not null,
  31360. foreign key (acquisition_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  31361. operator_id int null,
  31362. foreign key (operator_id) references contact (contact_id) on delete set null INITIALLY DEFERRED,
  31363. protocol_id int null,
  31364. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  31365. analysis_id int not null,
  31366. foreign key (analysis_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  31367. quantificationdate timestamp null default current_timestamp,
  31368. name text null,
  31369. uri text null,
  31370. constraint quantification_c1 unique (name,analysis_id)
  31371. );
  31372. create index quantification_idx1 on quantification (acquisition_id);
  31373. create index quantification_idx2 on quantification (operator_id);
  31374. create index quantification_idx3 on quantification (protocol_id);
  31375. create index quantification_idx4 on quantification (analysis_id);
  31376. COMMENT ON TABLE quantification IS 'Quantification is the transformation of an image acquisition to numeric data. This typically involves statistical procedures.';
  31377. -- ================================================
  31378. -- TABLE: quantificationprop
  31379. -- ================================================
  31380. create table quantificationprop (
  31381. quantificationprop_id serial not null,
  31382. primary key (quantificationprop_id),
  31383. quantification_id int not null,
  31384. foreign key (quantification_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  31385. type_id int not null,
  31386. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31387. value text null,
  31388. rank int not null default 0,
  31389. constraint quantificationprop_c1 unique (quantification_id,type_id,rank)
  31390. );
  31391. create index quantificationprop_idx1 on quantificationprop (quantification_id);
  31392. create index quantificationprop_idx2 on quantificationprop (type_id);
  31393. COMMENT ON TABLE quantificationprop IS 'Extra quantification properties that are not accounted for in quantification.';
  31394. -- ================================================
  31395. -- TABLE: quantification_relationship
  31396. -- ================================================
  31397. create table quantification_relationship (
  31398. quantification_relationship_id serial not null,
  31399. primary key (quantification_relationship_id),
  31400. subject_id int not null,
  31401. foreign key (subject_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  31402. type_id int not null,
  31403. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31404. object_id int not null,
  31405. foreign key (object_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  31406. constraint quantification_relationship_c1 unique (subject_id,object_id,type_id)
  31407. );
  31408. create index quantification_relationship_idx1 on quantification_relationship (subject_id);
  31409. create index quantification_relationship_idx2 on quantification_relationship (type_id);
  31410. create index quantification_relationship_idx3 on quantification_relationship (object_id);
  31411. 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.';
  31412. -- ================================================
  31413. -- TABLE: control
  31414. -- ================================================
  31415. create table control (
  31416. control_id serial not null,
  31417. primary key (control_id),
  31418. type_id int not null,
  31419. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31420. assay_id int not null,
  31421. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  31422. tableinfo_id int not null,
  31423. foreign key (tableinfo_id) references tableinfo (tableinfo_id) on delete cascade INITIALLY DEFERRED,
  31424. row_id int not null,
  31425. name text null,
  31426. value text null,
  31427. rank int not null default 0
  31428. );
  31429. create index control_idx1 on control (type_id);
  31430. create index control_idx2 on control (assay_id);
  31431. create index control_idx3 on control (tableinfo_id);
  31432. create index control_idx4 on control (row_id);
  31433. COMMENT ON TABLE control IS NULL;
  31434. -- ================================================
  31435. -- TABLE: element
  31436. -- ================================================
  31437. create table element (
  31438. element_id serial not null,
  31439. primary key (element_id),
  31440. feature_id int null,
  31441. foreign key (feature_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  31442. arraydesign_id int not null,
  31443. foreign key (arraydesign_id) references arraydesign (arraydesign_id) on delete cascade INITIALLY DEFERRED,
  31444. type_id int null,
  31445. foreign key (type_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  31446. dbxref_id int null,
  31447. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  31448. constraint element_c1 unique (feature_id,arraydesign_id)
  31449. );
  31450. create index element_idx1 on element (feature_id);
  31451. create index element_idx2 on element (arraydesign_id);
  31452. create index element_idx3 on element (type_id);
  31453. create index element_idx4 on element (dbxref_id);
  31454. COMMENT ON TABLE element IS 'Represents a feature of the array. This is typically a region of the array coated or bound to DNA.';
  31455. -- ================================================
  31456. -- TABLE: element_result
  31457. -- ================================================
  31458. create table elementresult (
  31459. elementresult_id serial not null,
  31460. primary key (elementresult_id),
  31461. element_id int not null,
  31462. foreign key (element_id) references element (element_id) on delete cascade INITIALLY DEFERRED,
  31463. quantification_id int not null,
  31464. foreign key (quantification_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  31465. signal float not null,
  31466. constraint elementresult_c1 unique (element_id,quantification_id)
  31467. );
  31468. create index elementresult_idx1 on elementresult (element_id);
  31469. create index elementresult_idx2 on elementresult (quantification_id);
  31470. create index elementresult_idx3 on elementresult (signal);
  31471. 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.';
  31472. -- ================================================
  31473. -- TABLE: element_relationship
  31474. -- ================================================
  31475. create table element_relationship (
  31476. element_relationship_id serial not null,
  31477. primary key (element_relationship_id),
  31478. subject_id int not null,
  31479. foreign key (subject_id) references element (element_id) INITIALLY DEFERRED,
  31480. type_id int not null,
  31481. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  31482. object_id int not null,
  31483. foreign key (object_id) references element (element_id) INITIALLY DEFERRED,
  31484. value text null,
  31485. rank int not null default 0,
  31486. constraint element_relationship_c1 unique (subject_id,object_id,type_id,rank)
  31487. );
  31488. create index element_relationship_idx1 on element_relationship (subject_id);
  31489. create index element_relationship_idx2 on element_relationship (type_id);
  31490. create index element_relationship_idx3 on element_relationship (object_id);
  31491. create index element_relationship_idx4 on element_relationship (value);
  31492. 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.';
  31493. -- ================================================
  31494. -- TABLE: elementresult_relationship
  31495. -- ================================================
  31496. create table elementresult_relationship (
  31497. elementresult_relationship_id serial not null,
  31498. primary key (elementresult_relationship_id),
  31499. subject_id int not null,
  31500. foreign key (subject_id) references elementresult (elementresult_id) INITIALLY DEFERRED,
  31501. type_id int not null,
  31502. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  31503. object_id int not null,
  31504. foreign key (object_id) references elementresult (elementresult_id) INITIALLY DEFERRED,
  31505. value text null,
  31506. rank int not null default 0,
  31507. constraint elementresult_relationship_c1 unique (subject_id,object_id,type_id,rank)
  31508. );
  31509. create index elementresult_relationship_idx1 on elementresult_relationship (subject_id);
  31510. create index elementresult_relationship_idx2 on elementresult_relationship (type_id);
  31511. create index elementresult_relationship_idx3 on elementresult_relationship (object_id);
  31512. create index elementresult_relationship_idx4 on elementresult_relationship (value);
  31513. 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.';
  31514. -- ================================================
  31515. -- TABLE: study
  31516. -- ================================================
  31517. create table study (
  31518. study_id serial not null,
  31519. primary key (study_id),
  31520. contact_id int not null,
  31521. foreign key (contact_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  31522. pub_id int null,
  31523. foreign key (pub_id) references pub (pub_id) on delete set null INITIALLY DEFERRED,
  31524. dbxref_id int null,
  31525. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  31526. name text not null,
  31527. description text null,
  31528. constraint study_c1 unique (name)
  31529. );
  31530. create index study_idx1 on study (contact_id);
  31531. create index study_idx2 on study (pub_id);
  31532. create index study_idx3 on study (dbxref_id);
  31533. COMMENT ON TABLE study IS NULL;
  31534. -- ================================================
  31535. -- TABLE: study_assay
  31536. -- ================================================
  31537. create table study_assay (
  31538. study_assay_id serial not null,
  31539. primary key (study_assay_id),
  31540. study_id int not null,
  31541. foreign key (study_id) references study (study_id) on delete cascade INITIALLY DEFERRED,
  31542. assay_id int not null,
  31543. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  31544. constraint study_assay_c1 unique (study_id,assay_id)
  31545. );
  31546. create index study_assay_idx1 on study_assay (study_id);
  31547. create index study_assay_idx2 on study_assay (assay_id);
  31548. COMMENT ON TABLE study_assay IS NULL;
  31549. -- ================================================
  31550. -- TABLE: studydesign
  31551. -- ================================================
  31552. create table studydesign (
  31553. studydesign_id serial not null,
  31554. primary key (studydesign_id),
  31555. study_id int not null,
  31556. foreign key (study_id) references study (study_id) on delete cascade INITIALLY DEFERRED,
  31557. description text null
  31558. );
  31559. create index studydesign_idx1 on studydesign (study_id);
  31560. COMMENT ON TABLE studydesign IS NULL;
  31561. -- ================================================
  31562. -- TABLE: studydesignprop
  31563. -- ================================================
  31564. create table studydesignprop (
  31565. studydesignprop_id serial not null,
  31566. primary key (studydesignprop_id),
  31567. studydesign_id int not null,
  31568. foreign key (studydesign_id) references studydesign (studydesign_id) on delete cascade INITIALLY DEFERRED,
  31569. type_id int not null,
  31570. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31571. value text null,
  31572. rank int not null default 0,
  31573. constraint studydesignprop_c1 unique (studydesign_id,type_id,rank)
  31574. );
  31575. create index studydesignprop_idx1 on studydesignprop (studydesign_id);
  31576. create index studydesignprop_idx2 on studydesignprop (type_id);
  31577. COMMENT ON TABLE studydesignprop IS NULL;
  31578. -- ================================================
  31579. -- TABLE: studyfactor
  31580. -- ================================================
  31581. create table studyfactor (
  31582. studyfactor_id serial not null,
  31583. primary key (studyfactor_id),
  31584. studydesign_id int not null,
  31585. foreign key (studydesign_id) references studydesign (studydesign_id) on delete cascade INITIALLY DEFERRED,
  31586. type_id int null,
  31587. foreign key (type_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  31588. name text not null,
  31589. description text null
  31590. );
  31591. create index studyfactor_idx1 on studyfactor (studydesign_id);
  31592. create index studyfactor_idx2 on studyfactor (type_id);
  31593. COMMENT ON TABLE studyfactor IS NULL;
  31594. -- ================================================
  31595. -- TABLE: studyfactorvalue
  31596. -- ================================================
  31597. create table studyfactorvalue (
  31598. studyfactorvalue_id serial not null,
  31599. primary key (studyfactorvalue_id),
  31600. studyfactor_id int not null,
  31601. foreign key (studyfactor_id) references studyfactor (studyfactor_id) on delete cascade INITIALLY DEFERRED,
  31602. assay_id int not null,
  31603. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  31604. factorvalue text null,
  31605. name text null,
  31606. rank int not null default 0
  31607. );
  31608. create index studyfactorvalue_idx1 on studyfactorvalue (studyfactor_id);
  31609. create index studyfactorvalue_idx2 on studyfactorvalue (assay_id);
  31610. COMMENT ON TABLE studyfactorvalue IS NULL;
  31611. --
  31612. -- studyprop and studyprop_feature added for Kara Dolinski's group
  31613. --
  31614. -- Here is her description of it:
  31615. --Both of the tables are used for our YFGdb project
  31616. --(http://yfgdb.princeton.edu/), which uses chado.
  31617. --
  31618. --Here is how we use those tables, using the following example:
  31619. --
  31620. --http://yfgdb.princeton.edu/cgi-bin/display.cgi?db=pmid&amp;id=15575969
  31621. --
  31622. --The above data set is represented as a row in the STUDY table. We have
  31623. --lots of attributes that we want to store about each STUDY (status, etc)
  31624. --and in the official schema, the only prop table we could use was the
  31625. --STUDYDESIGN_PROP table. This forced us to go through the STUDYDESIGN
  31626. --table when we often have no real data to store in that table (small
  31627. --percent of our collection use MAGE-ML unfortunately, and even fewer
  31628. --provide all the data in the MAGE model, of which STUDYDESIGN is a vestige).
  31629. --So, we created a STUDYPROP table. I'd think this table would be
  31630. --generally useful to people storing various types of data sets via the
  31631. --STUDY table.
  31632. --
  31633. --The other new table is STUDYPROP_FEATURE. This basically allows us to
  31634. --group features together per study. For example, we can store microarray
  31635. --clustering results by saying that the STUDYPROP type is 'cluster' (via
  31636. --type_id -> CVTERM of course), the value is 'cluster id 123', and then
  31637. --that cluster would be associated with all the features that are in that
  31638. --cluster via STUDYPROP_FEATURE. Adding type_id to STUDYPROP_FEATURE is
  31639. -- fine by us!
  31640. --
  31641. --studyprop
  31642. create table studyprop (
  31643. studyprop_id serial not null,
  31644. primary key (studyprop_id),
  31645. study_id int not null,
  31646. foreign key (study_id) references study (study_id) on delete cascade,
  31647. type_id int not null,
  31648. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  31649. value text null,
  31650. rank int not null default 0,
  31651. unique (study_id,type_id,rank)
  31652. );
  31653. create index studyprop_idx1 on studyprop (study_id);
  31654. create index studyprop_idx2 on studyprop (type_id);
  31655. --studyprop_feature
  31656. CREATE TABLE studyprop_feature (
  31657. studyprop_feature_id serial NOT NULL,
  31658. primary key (studyprop_feature_id),
  31659. studyprop_id integer NOT NULL,
  31660. foreign key (studyprop_id) references studyprop(studyprop_id) on delete cascade,
  31661. feature_id integer NOT NULL,
  31662. foreign key (feature_id) references feature (feature_id) on delete cascade,
  31663. type_id integer,
  31664. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  31665. unique (studyprop_id, feature_id)
  31666. );
  31667. create index studyprop_feature_idx1 on studyprop_feature (studyprop_id);
  31668. create index studyprop_feature_idx2 on studyprop_feature (feature_id);
  31669. -- $Id: stock.sql,v 1.7 2007-03-23 15:18:03 scottcain Exp $
  31670. -- ==========================================
  31671. -- Chado stock module
  31672. --
  31673. -- DEPENDENCIES
  31674. -- ============
  31675. -- :import cvterm from cv
  31676. -- :import pub from pub
  31677. -- :import dbxref from general
  31678. -- :import organism from organism
  31679. -- :import genotype from genetic
  31680. -- ================================================
  31681. -- TABLE: stock
  31682. -- ================================================
  31683. create table stock (
  31684. stock_id serial not null,
  31685. primary key (stock_id),
  31686. dbxref_id int,
  31687. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  31688. organism_id int not null,
  31689. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  31690. name varchar(255),
  31691. uniquename text not null,
  31692. description text,
  31693. type_id int not null,
  31694. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31695. is_obsolete boolean not null default 'false',
  31696. constraint stock_c1 unique (organism_id,uniquename,type_id)
  31697. );
  31698. create index stock_name_ind1 on stock (name);
  31699. create index stock_idx1 on stock (dbxref_id);
  31700. create index stock_idx2 on stock (organism_id);
  31701. create index stock_idx3 on stock (type_id);
  31702. create index stock_idx4 on stock (uniquename);
  31703. COMMENT ON TABLE stock IS 'Any stock can be globally identified by the
  31704. 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.';
  31705. 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.';
  31706. COMMENT ON COLUMN stock.organism_id IS 'The organism_id is the organism to which the stock belongs. This column is mandatory.';
  31707. 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.';
  31708. COMMENT ON COLUMN stock.description IS 'The description is the genetic description provided in the stock list.';
  31709. COMMENT ON COLUMN stock.name IS 'The name is a human-readable local name for a stock.';
  31710. -- ================================================
  31711. -- TABLE: stock_pub
  31712. -- ================================================
  31713. create table stock_pub (
  31714. stock_pub_id serial not null,
  31715. primary key (stock_pub_id),
  31716. stock_id int not null,
  31717. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  31718. pub_id int not null,
  31719. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  31720. constraint stock_pub_c1 unique (stock_id,pub_id)
  31721. );
  31722. create index stock_pub_idx1 on stock_pub (stock_id);
  31723. create index stock_pub_idx2 on stock_pub (pub_id);
  31724. COMMENT ON TABLE stock_pub IS 'Provenance. Linking table between stocks and, for example, a stocklist computer file.';
  31725. -- ================================================
  31726. -- TABLE: stockprop
  31727. -- ================================================
  31728. create table stockprop (
  31729. stockprop_id serial not null,
  31730. primary key (stockprop_id),
  31731. stock_id int not null,
  31732. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  31733. type_id int not null,
  31734. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31735. value text null,
  31736. rank int not null default 0,
  31737. constraint stockprop_c1 unique (stock_id,type_id,rank)
  31738. );
  31739. create index stockprop_idx1 on stockprop (stock_id);
  31740. create index stockprop_idx2 on stockprop (type_id);
  31741. COMMENT ON TABLE stockprop IS 'A stock can have any number of
  31742. slot-value property tags attached to it. This is an alternative to
  31743. hardcoding a list of columns in the relational schema, and is
  31744. completely extensible. There is a unique constraint, stockprop_c1, for
  31745. the combination of stock_id, rank, and type_id. Multivalued property-value pairs must be differentiated by rank.';
  31746. -- ================================================
  31747. -- TABLE: stockprop_pub
  31748. -- ================================================
  31749. create table stockprop_pub (
  31750. stockprop_pub_id serial not null,
  31751. primary key (stockprop_pub_id),
  31752. stockprop_id int not null,
  31753. foreign key (stockprop_id) references stockprop (stockprop_id) on delete cascade INITIALLY DEFERRED,
  31754. pub_id int not null,
  31755. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  31756. constraint stockprop_pub_c1 unique (stockprop_id,pub_id)
  31757. );
  31758. create index stockprop_pub_idx1 on stockprop_pub (stockprop_id);
  31759. create index stockprop_pub_idx2 on stockprop_pub (pub_id);
  31760. COMMENT ON TABLE stockprop_pub IS 'Provenance. Any stockprop assignment can optionally be supported by a publication.';
  31761. -- ================================================
  31762. -- TABLE: stock_relationship
  31763. -- ================================================
  31764. create table stock_relationship (
  31765. stock_relationship_id serial not null,
  31766. primary key (stock_relationship_id),
  31767. subject_id int not null,
  31768. foreign key (subject_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  31769. object_id int not null,
  31770. foreign key (object_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  31771. type_id int not null,
  31772. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31773. value text null,
  31774. rank int not null default 0,
  31775. constraint stock_relationship_c1 unique (subject_id,object_id,type_id,rank)
  31776. );
  31777. create index stock_relationship_idx1 on stock_relationship (subject_id);
  31778. create index stock_relationship_idx2 on stock_relationship (object_id);
  31779. create index stock_relationship_idx3 on stock_relationship (type_id);
  31780. 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.';
  31781. 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.';
  31782. 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.';
  31783. 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.';
  31784. COMMENT ON COLUMN stock_relationship.value IS 'stock_relationship.value is for additional notes or comments.';
  31785. -- ================================================
  31786. -- TABLE: stock_relationship_pub
  31787. -- ================================================
  31788. create table stock_relationship_pub (
  31789. stock_relationship_pub_id serial not null,
  31790. primary key (stock_relationship_pub_id),
  31791. stock_relationship_id int not null,
  31792. foreign key (stock_relationship_id) references stock_relationship (stock_relationship_id) on delete cascade INITIALLY DEFERRED,
  31793. pub_id int not null,
  31794. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  31795. constraint stock_relationship_pub_c1 unique (stock_relationship_id,pub_id)
  31796. );
  31797. create index stock_relationship_pub_idx1 on stock_relationship_pub (stock_relationship_id);
  31798. create index stock_relationship_pub_idx2 on stock_relationship_pub (pub_id);
  31799. COMMENT ON TABLE stock_relationship_pub IS 'Provenance. Attach optional evidence to a stock_relationship in the form of a publication.';
  31800. -- ================================================
  31801. -- TABLE: stock_dbxref
  31802. -- ================================================
  31803. create table stock_dbxref (
  31804. stock_dbxref_id serial not null,
  31805. primary key (stock_dbxref_id),
  31806. stock_id int not null,
  31807. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  31808. dbxref_id int not null,
  31809. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  31810. is_current boolean not null default 'true',
  31811. constraint stock_dbxref_c1 unique (stock_id,dbxref_id)
  31812. );
  31813. create index stock_dbxref_idx1 on stock_dbxref (stock_id);
  31814. create index stock_dbxref_idx2 on stock_dbxref (dbxref_id);
  31815. 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.';
  31816. 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.';
  31817. -- ================================================
  31818. -- TABLE: stock_cvterm
  31819. -- ================================================
  31820. create table stock_cvterm (
  31821. stock_cvterm_id serial not null,
  31822. primary key (stock_cvterm_id),
  31823. stock_id int not null,
  31824. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  31825. cvterm_id int not null,
  31826. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  31827. pub_id int not null,
  31828. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  31829. constraint stock_cvterm_c1 unique (stock_id,cvterm_id,pub_id)
  31830. );
  31831. create index stock_cvterm_idx1 on stock_cvterm (stock_id);
  31832. create index stock_cvterm_idx2 on stock_cvterm (cvterm_id);
  31833. create index stock_cvterm_idx3 on stock_cvterm (pub_id);
  31834. 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.';
  31835. -- ================================================
  31836. -- TABLE: stock_genotype
  31837. -- ================================================
  31838. create table stock_genotype (
  31839. stock_genotype_id serial not null,
  31840. primary key (stock_genotype_id),
  31841. stock_id int not null,
  31842. foreign key (stock_id) references stock (stock_id) on delete cascade,
  31843. genotype_id int not null,
  31844. foreign key (genotype_id) references genotype (genotype_id) on delete cascade,
  31845. constraint stock_genotype_c1 unique (stock_id, genotype_id)
  31846. );
  31847. create index stock_genotype_idx1 on stock_genotype (stock_id);
  31848. create index stock_genotype_idx2 on stock_genotype (genotype_id);
  31849. COMMENT ON TABLE stock_genotype IS 'Simple table linking a stock to
  31850. a genotype. Features with genotypes can be linked to stocks thru feature_genotype -> genotype -> stock_genotype -> stock.';
  31851. -- ================================================
  31852. -- TABLE: stockcollection
  31853. -- ================================================
  31854. create table stockcollection (
  31855. stockcollection_id serial not null,
  31856. primary key (stockcollection_id),
  31857. type_id int not null,
  31858. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  31859. contact_id int null,
  31860. foreign key (contact_id) references contact (contact_id) on delete set null INITIALLY DEFERRED,
  31861. name varchar(255),
  31862. uniquename text not null,
  31863. constraint stockcollection_c1 unique (uniquename,type_id)
  31864. );
  31865. create index stockcollection_name_ind1 on stockcollection (name);
  31866. create index stockcollection_idx1 on stockcollection (contact_id);
  31867. create index stockcollection_idx2 on stockcollection (type_id);
  31868. create index stockcollection_idx3 on stockcollection (uniquename);
  31869. COMMENT ON TABLE stockcollection IS 'The lab or stock center distributing the stocks in their collection.';
  31870. COMMENT ON COLUMN stockcollection.uniquename IS 'uniqename is the value of the collection cv.';
  31871. COMMENT ON COLUMN stockcollection.type_id IS 'type_id is the collection type cv.';
  31872. COMMENT ON COLUMN stockcollection.name IS 'name is the collection.';
  31873. COMMENT ON COLUMN stockcollection.contact_id IS 'contact_id links to the contact information for the collection.';
  31874. -- ================================================
  31875. -- TABLE: stockcollectionprop
  31876. -- ================================================
  31877. create table stockcollectionprop (
  31878. stockcollectionprop_id serial not null,
  31879. primary key (stockcollectionprop_id),
  31880. stockcollection_id int not null,
  31881. foreign key (stockcollection_id) references stockcollection (stockcollection_id) on delete cascade INITIALLY DEFERRED,
  31882. type_id int not null,
  31883. foreign key (type_id) references cvterm (cvterm_id),
  31884. value text null,
  31885. rank int not null default 0,
  31886. constraint stockcollectionprop_c1 unique (stockcollection_id,type_id,rank)
  31887. );
  31888. create index stockcollectionprop_idx1 on stockcollectionprop (stockcollection_id);
  31889. create index stockcollectionprop_idx2 on stockcollectionprop (type_id);
  31890. COMMENT ON TABLE stockcollectionprop IS 'The table stockcollectionprop
  31891. contains the value of the stock collection such as website/email URLs;
  31892. the value of the stock collection order URLs.';
  31893. COMMENT ON COLUMN stockcollectionprop.type_id IS 'The cv for the type_id is "stockcollection property type".';
  31894. -- ================================================
  31895. -- TABLE: stockcollection_stock
  31896. -- ================================================
  31897. create table stockcollection_stock (
  31898. stockcollection_stock_id serial not null,
  31899. primary key (stockcollection_stock_id),
  31900. stockcollection_id int not null,
  31901. foreign key (stockcollection_id) references stockcollection (stockcollection_id) on delete cascade INITIALLY DEFERRED,
  31902. stock_id int not null,
  31903. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  31904. constraint stockcollection_stock_c1 unique (stockcollection_id,stock_id)
  31905. );
  31906. create index stockcollection_stock_idx1 on stockcollection_stock (stockcollection_id);
  31907. create index stockcollection_stock_idx2 on stockcollection_stock (stock_id);
  31908. COMMENT ON TABLE stockcollection_stock IS 'stockcollection_stock links
  31909. a stock collection to the stocks which are contained in the collection.';
  31910. -- $Id: library.sql,v 1.10 2008-03-25 16:00:43 emmert Exp $
  31911. -- =================================================================
  31912. -- Dependencies:
  31913. --
  31914. -- :import feature from sequence
  31915. -- :import synonym from sequence
  31916. -- :import cvterm from cv
  31917. -- :import pub from pub
  31918. -- :import organism from organism
  31919. -- =================================================================
  31920. -- ================================================
  31921. -- TABLE: library
  31922. -- ================================================
  31923. create table library (
  31924. library_id serial not null,
  31925. primary key (library_id),
  31926. organism_id int not null,
  31927. foreign key (organism_id) references organism (organism_id),
  31928. name varchar(255),
  31929. uniquename text not null,
  31930. type_id int not null,
  31931. foreign key (type_id) references cvterm (cvterm_id),
  31932. is_obsolete int not null default 0,
  31933. timeaccessioned timestamp not null default current_timestamp,
  31934. timelastmodified timestamp not null default current_timestamp,
  31935. constraint library_c1 unique (organism_id,uniquename,type_id)
  31936. );
  31937. create index library_name_ind1 on library(name);
  31938. create index library_idx1 on library (organism_id);
  31939. create index library_idx2 on library (type_id);
  31940. create index library_idx3 on library (uniquename);
  31941. COMMENT ON COLUMN library.type_id IS 'The type_id foreign key links
  31942. to a controlled vocabulary of library types. Examples of this would be: "cDNA_library" or "genomic_library"';
  31943. -- ================================================
  31944. -- TABLE: library_synonym
  31945. -- ================================================
  31946. create table library_synonym (
  31947. library_synonym_id serial not null,
  31948. primary key (library_synonym_id),
  31949. synonym_id int not null,
  31950. foreign key (synonym_id) references synonym (synonym_id) on delete cascade INITIALLY DEFERRED,
  31951. library_id int not null,
  31952. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  31953. pub_id int not null,
  31954. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  31955. is_current boolean not null default 'true',
  31956. is_internal boolean not null default 'false',
  31957. constraint library_synonym_c1 unique (synonym_id,library_id,pub_id)
  31958. );
  31959. create index library_synonym_idx1 on library_synonym (synonym_id);
  31960. create index library_synonym_idx2 on library_synonym (library_id);
  31961. create index library_synonym_idx3 on library_synonym (pub_id);
  31962. 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.';
  31963. COMMENT ON COLUMN library_synonym.pub_id IS 'The pub_id link is for
  31964. relating the usage of a given synonym to the publication in which it was used.';
  31965. COMMENT ON COLUMN library_synonym.is_internal IS 'Typically a synonym
  31966. exists so that somebody querying the database with an obsolete name
  31967. can find the object they are looking for under its current name. If
  31968. 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.';
  31969. -- ================================================
  31970. -- TABLE: library_pub
  31971. -- ================================================
  31972. create table library_pub (
  31973. library_pub_id serial not null,
  31974. primary key (library_pub_id),
  31975. library_id int not null,
  31976. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  31977. pub_id int not null,
  31978. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  31979. constraint library_pub_c1 unique (library_id,pub_id)
  31980. );
  31981. create index library_pub_idx1 on library_pub (library_id);
  31982. create index library_pub_idx2 on library_pub (pub_id);
  31983. -- ================================================
  31984. -- TABLE: libraryprop
  31985. -- ================================================
  31986. create table libraryprop (
  31987. libraryprop_id serial not null,
  31988. primary key (libraryprop_id),
  31989. library_id int not null,
  31990. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  31991. type_id int not null,
  31992. foreign key (type_id) references cvterm (cvterm_id),
  31993. value text null,
  31994. rank int not null default 0,
  31995. constraint libraryprop_c1 unique (library_id,type_id,rank)
  31996. );
  31997. create index libraryprop_idx1 on libraryprop (library_id);
  31998. create index libraryprop_idx2 on libraryprop (type_id);
  31999. -- ================================================
  32000. -- TABLE: libraryprop_pub
  32001. -- ================================================
  32002. create table libraryprop_pub (
  32003. libraryprop_pub_id serial not null,
  32004. primary key (libraryprop_pub_id),
  32005. libraryprop_id int not null,
  32006. foreign key (libraryprop_id) references libraryprop (libraryprop_id) on delete cascade INITIALLY DEFERRED,
  32007. pub_id int not null,
  32008. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  32009. constraint libraryprop_pub_c1 unique (libraryprop_id,pub_id)
  32010. );
  32011. create index libraryprop_pub_idx1 on libraryprop_pub (libraryprop_id);
  32012. create index libraryprop_pub_idx2 on libraryprop_pub (pub_id);
  32013. -- ================================================
  32014. -- TABLE: library_cvterm
  32015. -- ================================================
  32016. create table library_cvterm (
  32017. library_cvterm_id serial not null,
  32018. primary key (library_cvterm_id),
  32019. library_id int not null,
  32020. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  32021. cvterm_id int not null,
  32022. foreign key (cvterm_id) references cvterm (cvterm_id),
  32023. pub_id int not null,
  32024. foreign key (pub_id) references pub (pub_id),
  32025. constraint library_cvterm_c1 unique (library_id,cvterm_id,pub_id)
  32026. );
  32027. create index library_cvterm_idx1 on library_cvterm (library_id);
  32028. create index library_cvterm_idx2 on library_cvterm (cvterm_id);
  32029. create index library_cvterm_idx3 on library_cvterm (pub_id);
  32030. 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.';
  32031. -- ================================================
  32032. -- TABLE: library_feature
  32033. -- ================================================
  32034. create table library_feature (
  32035. library_feature_id serial not null,
  32036. primary key (library_feature_id),
  32037. library_id int not null,
  32038. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  32039. feature_id int not null,
  32040. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  32041. constraint library_feature_c1 unique (library_id,feature_id)
  32042. );
  32043. create index library_feature_idx1 on library_feature (library_id);
  32044. create index library_feature_idx2 on library_feature (feature_id);
  32045. 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".';
  32046. -- ================================================
  32047. -- TABLE: library_dbxref
  32048. -- ================================================
  32049. create table library_dbxref (
  32050. library_dbxref_id serial not null,
  32051. primary key (library_dbxref_id),
  32052. library_id int not null,
  32053. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  32054. dbxref_id int not null,
  32055. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  32056. is_current boolean not null default 'true',
  32057. constraint library_dbxref_c1 unique (library_id,dbxref_id)
  32058. );
  32059. create index library_dbxref_idx1 on library_dbxref (library_id);
  32060. create index library_dbxref_idx2 on library_dbxref (dbxref_id);
  32061. -- ==========================================
  32062. -- Chado cell line module
  32063. --
  32064. -- ============
  32065. -- DEPENDENCIES
  32066. -- ============
  32067. -- :import feature from sequence
  32068. -- :import synonym from sequence
  32069. -- :import library from library
  32070. -- :import cvterm from cv
  32071. -- :import dbxref from general
  32072. -- :import pub from pub
  32073. -- :import organism from organism
  32074. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  32075. -- ================================================
  32076. -- TABLE: cell_line
  32077. -- ================================================
  32078. create table cell_line (
  32079. cell_line_id serial not null,
  32080. primary key (cell_line_id),
  32081. name varchar(255) null,
  32082. uniquename varchar(255) not null,
  32083. organism_id int not null,
  32084. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  32085. timeaccessioned timestamp not null default current_timestamp,
  32086. timelastmodified timestamp not null default current_timestamp,
  32087. constraint cell_line_c1 unique (uniquename, organism_id)
  32088. );
  32089. grant all on cell_line to PUBLIC;
  32090. -- ================================================
  32091. -- TABLE: cell_line_relationship
  32092. -- ================================================
  32093. create table cell_line_relationship (
  32094. cell_line_relationship_id serial not null,
  32095. primary key (cell_line_relationship_id),
  32096. subject_id int not null,
  32097. foreign key (subject_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  32098. object_id int not null,
  32099. foreign key (object_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  32100. type_id int not null,
  32101. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  32102. constraint cell_line_relationship_c1 unique (subject_id, object_id, type_id)
  32103. );
  32104. grant all on cell_line_relationship to PUBLIC;
  32105. -- ================================================
  32106. -- TABLE: cell_line_synonym
  32107. -- ================================================
  32108. create table cell_line_synonym (
  32109. cell_line_synonym_id serial not null,
  32110. primary key (cell_line_synonym_id),
  32111. cell_line_id int not null,
  32112. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  32113. synonym_id int not null,
  32114. foreign key (synonym_id) references synonym (synonym_id) on delete cascade INITIALLY DEFERRED,
  32115. pub_id int not null,
  32116. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  32117. is_current boolean not null default 'false',
  32118. is_internal boolean not null default 'false',
  32119. constraint cell_line_synonym_c1 unique (synonym_id,cell_line_id,pub_id)
  32120. );
  32121. grant all on cell_line_synonym to PUBLIC;
  32122. -- ================================================
  32123. -- TABLE: cell_line_cvterm
  32124. -- ================================================
  32125. create table cell_line_cvterm (
  32126. cell_line_cvterm_id serial not null,
  32127. primary key (cell_line_cvterm_id),
  32128. cell_line_id int not null,
  32129. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  32130. cvterm_id int not null,
  32131. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  32132. pub_id int not null,
  32133. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  32134. rank int not null default 0,
  32135. constraint cell_line_cvterm_c1 unique (cell_line_id,cvterm_id,pub_id,rank)
  32136. );
  32137. grant all on cell_line_cvterm to PUBLIC;
  32138. -- ================================================
  32139. -- TABLE: cell_line_dbxref
  32140. -- ================================================
  32141. create table cell_line_dbxref (
  32142. cell_line_dbxref_id serial not null,
  32143. primary key (cell_line_dbxref_id),
  32144. cell_line_id int not null,
  32145. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  32146. dbxref_id int not null,
  32147. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  32148. is_current boolean not null default 'true',
  32149. constraint cell_line_dbxref_c1 unique (cell_line_id,dbxref_id)
  32150. );
  32151. grant all on cell_line_dbxref to PUBLIC;
  32152. -- ================================================
  32153. -- TABLE: cell_lineprop
  32154. -- ================================================
  32155. create table cell_lineprop (
  32156. cell_lineprop_id serial not null,
  32157. primary key (cell_lineprop_id),
  32158. cell_line_id int not null,
  32159. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  32160. type_id int not null,
  32161. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  32162. value text null,
  32163. rank int not null default 0,
  32164. constraint cell_lineprop_c1 unique (cell_line_id,type_id,rank)
  32165. );
  32166. grant all on cell_lineprop to PUBLIC;
  32167. -- ================================================
  32168. -- TABLE: cell_lineprop_pub
  32169. -- ================================================
  32170. create table cell_lineprop_pub (
  32171. cell_lineprop_pub_id serial not null,
  32172. primary key (cell_lineprop_pub_id),
  32173. cell_lineprop_id int not null,
  32174. foreign key (cell_lineprop_id) references cell_lineprop (cell_lineprop_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_lineprop_pub_c1 unique (cell_lineprop_id,pub_id)
  32178. );
  32179. grant all on cell_lineprop_pub to PUBLIC;
  32180. -- ================================================
  32181. -- TABLE: cell_line_feature
  32182. -- ================================================
  32183. create table cell_line_feature (
  32184. cell_line_feature_id serial not null,
  32185. primary key (cell_line_feature_id),
  32186. cell_line_id int not null,
  32187. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  32188. feature_id int not null,
  32189. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  32190. pub_id int not null,
  32191. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  32192. constraint cell_line_feature_c1 unique (cell_line_id, feature_id, pub_id)
  32193. );
  32194. grant all on cell_line_feature to PUBLIC;
  32195. -- ================================================
  32196. -- TABLE: cell_line_cvtermprop
  32197. -- ================================================
  32198. create table cell_line_cvtermprop (
  32199. cell_line_cvtermprop_id serial not null,
  32200. primary key (cell_line_cvtermprop_id),
  32201. cell_line_cvterm_id int not null,
  32202. foreign key (cell_line_cvterm_id) references cell_line_cvterm (cell_line_cvterm_id) on delete cascade INITIALLY DEFERRED,
  32203. type_id int not null,
  32204. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  32205. value text null,
  32206. rank int not null default 0,
  32207. constraint cell_line_cvtermprop_c1 unique (cell_line_cvterm_id, type_id, rank)
  32208. );
  32209. grant all on cell_line_cvtermprop to PUBLIC;
  32210. -- ================================================
  32211. -- TABLE: cell_line_pub
  32212. -- ================================================
  32213. create table cell_line_pub (
  32214. cell_line_pub_id serial not null,
  32215. primary key (cell_line_pub_id),
  32216. cell_line_id int not null,
  32217. foreign key (cell_line_id) references cell_line (cell_line_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_pub_c1 unique (cell_line_id, pub_id)
  32221. );
  32222. grant all on cell_line_pub to PUBLIC;
  32223. -- ================================================
  32224. -- TABLE: cell_line_library
  32225. -- ================================================
  32226. create table cell_line_library (
  32227. cell_line_library_id serial not null,
  32228. primary key (cell_line_library_id),
  32229. cell_line_id int not null,
  32230. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  32231. library_id int not null,
  32232. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  32233. pub_id int not null,
  32234. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  32235. constraint cell_line_library_c1 unique (cell_line_id, library_id, pub_id)
  32236. );
  32237. grant all on cell_line_library to PUBLIC;
  32238. -- VIEW gffatts: a view to get feature attributes in a format that
  32239. -- will make it easy to convert them to GFF attributes
  32240. CREATE OR REPLACE VIEW gffatts (
  32241. feature_id,
  32242. type,
  32243. attribute
  32244. ) AS
  32245. SELECT feature_id, 'cvterm' AS type, s.name AS attribute
  32246. FROM cvterm s, feature_cvterm fs
  32247. WHERE fs.cvterm_id = s.cvterm_id
  32248. UNION ALL
  32249. SELECT feature_id, 'dbxref' AS type, d.name || ':' || s.accession AS attribute
  32250. FROM dbxref s, feature_dbxref fs, db d
  32251. WHERE fs.dbxref_id = s.dbxref_id and s.db_id = d.db_id
  32252. --SELECT feature_id, 'expression' AS type, s.description AS attribute
  32253. --FROM expression s, feature_expression fs
  32254. --WHERE fs.expression_id = s.expression_id
  32255. --UNION ALL
  32256. --SELECT fg.feature_id, 'genotype' AS type, g.uniquename||': '||g.description AS attribute
  32257. --FROM gcontext g, feature_gcontext fg
  32258. --WHERE g.gcontext_id = fg.gcontext_id
  32259. --UNION ALL
  32260. --SELECT feature_id, 'genotype' AS type, s.description AS attribute
  32261. --FROM genotype s, feature_genotype fs
  32262. --WHERE fs.genotype_id = s.genotype_id
  32263. --UNION ALL
  32264. --SELECT feature_id, 'phenotype' AS type, s.description AS attribute
  32265. --FROM phenotype s, feature_phenotype fs
  32266. --WHERE fs.phenotype_id = s.phenotype_id
  32267. UNION ALL
  32268. SELECT feature_id, 'synonym' AS type, s.name AS attribute
  32269. FROM synonym s, feature_synonym fs
  32270. WHERE fs.synonym_id = s.synonym_id
  32271. UNION ALL
  32272. SELECT fp.feature_id,cv.name,fp.value
  32273. FROM featureprop fp, cvterm cv
  32274. WHERE fp.type_id = cv.cvterm_id
  32275. UNION ALL
  32276. SELECT feature_id, 'pub' AS type, s.series_name || ':' || s.title AS attribute
  32277. FROM pub s, feature_pub fs
  32278. WHERE fs.pub_id = s.pub_id;
  32279. --creates a view that can be used to assemble a GFF3 compliant attribute string
  32280. CREATE OR REPLACE VIEW gff3atts (
  32281. feature_id,
  32282. type,
  32283. attribute
  32284. ) AS
  32285. SELECT feature_id,
  32286. 'Ontology_term' AS type,
  32287. CASE WHEN db.name like '%Gene Ontology%' THEN 'GO:'|| dbx.accession
  32288. WHEN db.name like 'Sequence Ontology%' THEN 'SO:'|| dbx.accession
  32289. ELSE CAST(db.name||':'|| dbx.accession AS varchar)
  32290. END
  32291. FROM cvterm s, dbxref dbx, feature_cvterm fs, db
  32292. WHERE fs.cvterm_id = s.cvterm_id and s.dbxref_id=dbx.dbxref_id and
  32293. db.db_id = dbx.db_id
  32294. UNION ALL
  32295. SELECT feature_id, 'Dbxref' AS type, d.name || ':' || s.accession AS
  32296. attribute
  32297. FROM dbxref s, feature_dbxref fs, db d
  32298. WHERE fs.dbxref_id = s.dbxref_id and s.db_id = d.db_id and
  32299. d.name != 'GFF_source'
  32300. UNION ALL
  32301. SELECT f.feature_id, 'Alias' AS type, s.name AS attribute
  32302. FROM synonym s, feature_synonym fs, feature f
  32303. WHERE fs.synonym_id = s.synonym_id and f.feature_id = fs.feature_id and
  32304. f.name != s.name and f.uniquename != s.name
  32305. UNION ALL
  32306. SELECT fp.feature_id,cv.name,fp.value
  32307. FROM featureprop fp, cvterm cv
  32308. WHERE fp.type_id = cv.cvterm_id
  32309. UNION ALL
  32310. SELECT feature_id, 'pub' AS type, s.series_name || ':' || s.title AS
  32311. attribute
  32312. FROM pub s, feature_pub fs
  32313. WHERE fs.pub_id = s.pub_id
  32314. UNION ALL
  32315. SELECT fr.subject_id as feature_id, 'Parent' as type, parent.uniquename
  32316. as attribute
  32317. FROM feature_relationship fr, feature parent
  32318. WHERE fr.object_id=parent.feature_id AND fr.type_id = (SELECT cvterm_id
  32319. FROM cvterm WHERE name='part_of')
  32320. UNION ALL
  32321. SELECT fr.subject_id as feature_id, 'Derived_from' as type,
  32322. parent.uniquename as attribute
  32323. FROM feature_relationship fr, feature parent
  32324. WHERE fr.object_id=parent.feature_id AND fr.type_id = (SELECT cvterm_id
  32325. FROM cvterm WHERE name='derives_from')
  32326. UNION ALL
  32327. SELECT fl.feature_id, 'Target' as type, target.name || ' ' || fl.fmin+1
  32328. || ' ' || fl.fmax || ' ' || fl.strand as attribute
  32329. FROM featureloc fl, feature target
  32330. WHERE fl.srcfeature_id=target.feature_id
  32331. AND fl.rank != 0
  32332. UNION ALL
  32333. SELECT feature_id, 'ID' as type, uniquename as attribute
  32334. FROM feature
  32335. WHERE type_id NOT IN (SELECT cvterm_id FROM cvterm WHERE name='CDS')
  32336. UNION ALL
  32337. SELECT feature_id, 'chado_feature_id' as type, CAST(feature_id AS
  32338. varchar) as attribute
  32339. FROM feature
  32340. UNION ALL
  32341. SELECT feature_id, 'Name' as type, name as attribute
  32342. FROM feature;
  32343. --replaced with Rob B's improved view
  32344. CREATE OR REPLACE VIEW gff3view (
  32345. feature_id, ref, source, type, fstart, fend,
  32346. score, strand, phase, seqlen, name, organism_id
  32347. ) AS
  32348. SELECT
  32349. f.feature_id, sf.name, gffdbx.accession, cv.name,
  32350. fl.fmin+1, fl.fmax, af.significance, fl.strand,
  32351. fl.phase, f.seqlen, f.name, f.organism_id
  32352. FROM feature f
  32353. LEFT JOIN featureloc fl ON (f.feature_id = fl.feature_id)
  32354. LEFT JOIN feature sf ON (fl.srcfeature_id = sf.feature_id)
  32355. LEFT JOIN ( SELECT fd.feature_id, d.accession
  32356. FROM feature_dbxref fd
  32357. JOIN dbxref d using(dbxref_id)
  32358. JOIN db using(db_id)
  32359. WHERE db.name = 'GFF_source'
  32360. ) as gffdbx
  32361. ON (f.feature_id=gffdbx.feature_id)
  32362. LEFT JOIN cvterm cv ON (f.type_id = cv.cvterm_id)
  32363. LEFT JOIN analysisfeature af ON (f.feature_id = af.feature_id);
  32364. -- FUNCTION gfffeatureatts (integer) is a function to get
  32365. -- data in the same format as the gffatts view so that
  32366. -- it can be easily converted to GFF attributes.
  32367. CREATE FUNCTION gfffeatureatts (integer)
  32368. RETURNS SETOF gffatts
  32369. AS
  32370. '
  32371. SELECT feature_id, ''cvterm'' AS type, s.name AS attribute
  32372. FROM cvterm s, feature_cvterm fs
  32373. WHERE fs.feature_id= $1 AND fs.cvterm_id = s.cvterm_id
  32374. UNION
  32375. SELECT feature_id, ''dbxref'' AS type, d.name || '':'' || s.accession AS attribute
  32376. FROM dbxref s, feature_dbxref fs, db d
  32377. WHERE fs.feature_id= $1 AND fs.dbxref_id = s.dbxref_id AND s.db_id = d.db_id
  32378. --UNION
  32379. --SELECT feature_id, ''expression'' AS type, s.description AS attribute
  32380. --FROM expression s, feature_expression fs
  32381. --WHERE fs.feature_id= $1 AND fs.expression_id = s.expression_id
  32382. --UNION
  32383. --SELECT fg.feature_id, ''genotype'' AS type, g.uniquename||'': ''||g.description AS attribute
  32384. --FROM gcontext g, feature_gcontext fg
  32385. --WHERE fg.feature_id= $1 AND g.gcontext_id = fg.gcontext_id
  32386. --UNION
  32387. --SELECT feature_id, ''genotype'' AS type, s.description AS attribute
  32388. --FROM genotype s, feature_genotype fs
  32389. --WHERE fs.feature_id= $1 AND fs.genotype_id = s.genotype_id
  32390. --UNION
  32391. --SELECT feature_id, ''phenotype'' AS type, s.description AS attribute
  32392. --FROM phenotype s, feature_phenotype fs
  32393. --WHERE fs.feature_id= $1 AND fs.phenotype_id = s.phenotype_id
  32394. UNION
  32395. SELECT feature_id, ''synonym'' AS type, s.name AS attribute
  32396. FROM synonym s, feature_synonym fs
  32397. WHERE fs.feature_id= $1 AND fs.synonym_id = s.synonym_id
  32398. UNION
  32399. SELECT fp.feature_id,cv.name,fp.value
  32400. FROM featureprop fp, cvterm cv
  32401. WHERE fp.feature_id= $1 AND fp.type_id = cv.cvterm_id
  32402. UNION
  32403. SELECT feature_id, ''pub'' AS type, s.series_name || '':'' || s.title AS attribute
  32404. FROM pub s, feature_pub fs
  32405. WHERE fs.feature_id= $1 AND fs.pub_id = s.pub_id
  32406. '
  32407. LANGUAGE SQL;
  32408. --
  32409. -- functions for creating coordinate based functions
  32410. --
  32411. -- create a point
  32412. CREATE OR REPLACE FUNCTION featureslice(int, int) RETURNS setof featureloc AS
  32413. 'SELECT * from featureloc where boxquery($1, $2) @ boxrange(fmin,fmax)'
  32414. LANGUAGE 'sql';
  32415. --uses the gff3atts to create a GFF3 compliant attribute string
  32416. CREATE OR REPLACE FUNCTION gffattstring (integer) RETURNS varchar AS
  32417. 'DECLARE
  32418. return_string varchar;
  32419. f_id ALIAS FOR $1;
  32420. atts_view gffatts%ROWTYPE;
  32421. feature_row feature%ROWTYPE;
  32422. name varchar;
  32423. uniquename varchar;
  32424. parent varchar;
  32425. escape_loc int;
  32426. BEGIN
  32427. --Get name from feature.name
  32428. --Get ID from feature.uniquename
  32429. SELECT INTO feature_row * FROM feature WHERE feature_id = f_id;
  32430. name = feature_row.name;
  32431. return_string = ''ID='' || feature_row.uniquename;
  32432. IF name IS NOT NULL AND name != ''''
  32433. THEN
  32434. return_string = return_string ||'';'' || ''Name='' || name;
  32435. END IF;
  32436. --Get Parent from feature_relationship
  32437. SELECT INTO feature_row * FROM feature f, feature_relationship fr
  32438. WHERE fr.subject_id = f_id AND fr.object_id = f.feature_id;
  32439. IF FOUND
  32440. THEN
  32441. return_string = return_string||'';''||''Parent=''||feature_row.uniquename;
  32442. END IF;
  32443. FOR atts_view IN SELECT * FROM gff3atts WHERE feature_id = f_id LOOP
  32444. escape_loc = position('';'' in atts_view.attribute);
  32445. IF escape_loc > 0 THEN
  32446. atts_view.attribute = replace(atts_view.attribute, '';'', ''%3B'');
  32447. END IF;
  32448. return_string = return_string || '';''
  32449. || atts_view.type || ''=''
  32450. || atts_view.attribute;
  32451. END LOOP;
  32452. RETURN return_string;
  32453. END;
  32454. '
  32455. LANGUAGE plpgsql;
  32456. --creates a view that is suitable for creating a GFF3 string
  32457. --CREATE OR REPLACE VIEW gff3view (
  32458. --REMOVED and RECREATED in sequence-gff-views.sql to avoid
  32459. --using the function above
  32460. --------------------------------
  32461. ---- all_feature_names ---------
  32462. --------------------------------
  32463. -- This is a view to replace the denormaliziation of the synonym
  32464. -- table. It contains names and uniquenames from feature and
  32465. -- synonym.names from the synonym table, so that GBrowse has one
  32466. -- place to search for names.
  32467. --
  32468. -- To materialize this view, run gmod_materialized_view_tool.pl -c and
  32469. -- answer the questions with these responses:
  32470. --
  32471. -- all_feature_names
  32472. --
  32473. -- public.all_feature_names
  32474. --
  32475. -- y (yes, replace the existing view)
  32476. --
  32477. -- (some update frequency, I chose daily)
  32478. --
  32479. -- feature_id integer,name varchar(255),organism_id integer
  32480. --
  32481. -- (the select part of the view below, all on one line)
  32482. --
  32483. -- feature_id,name
  32484. --
  32485. -- create index all_feature_names_lower_name on all_feature_names (lower(name))
  32486. --
  32487. -- y
  32488. --
  32489. CREATE OR REPLACE VIEW all_feature_names (
  32490. feature_id,
  32491. name,
  32492. organism_id
  32493. ) AS
  32494. SELECT feature_id,CAST(substring(uniquename from 0 for 255) as varchar(255)) as name,organism_id FROM feature
  32495. UNION
  32496. SELECT feature_id, name, organism_id FROM feature where name is not null
  32497. UNION
  32498. SELECT fs.feature_id,s.name,f.organism_id FROM feature_synonym fs, synonym s, feature f
  32499. WHERE fs.synonym_id = s.synonym_id AND fs.feature_id = f.feature_id
  32500. UNION
  32501. 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
  32502. WHERE f.feature_id = fp.feature_id
  32503. UNION
  32504. SELECT fd.feature_id, d.accession, f.organism_id FROM feature_dbxref fd, dbxref d,feature f
  32505. WHERE fd.dbxref_id = d.dbxref_id AND fd.feature_id = f.feature_id;
  32506. --------------------------------
  32507. ---- dfeatureloc ---------------
  32508. --------------------------------
  32509. -- dfeatureloc is meant as an alternate representation of
  32510. -- the data in featureloc (see the descrption of featureloc
  32511. -- in sequence.sql). In dfeatureloc, fmin and fmax are
  32512. -- replaced with nbeg and nend. Whereas fmin and fmax
  32513. -- are absolute coordinates relative to the parent feature, nbeg
  32514. -- and nend are the beginning and ending coordinates
  32515. -- relative to the feature itself. For example, nbeg would
  32516. -- mark the 5' end of a gene and nend would mark the 3' end.
  32517. CREATE OR REPLACE VIEW dfeatureloc (
  32518. featureloc_id,
  32519. feature_id,
  32520. srcfeature_id,
  32521. nbeg,
  32522. is_nbeg_partial,
  32523. nend,
  32524. is_nend_partial,
  32525. strand,
  32526. phase,
  32527. residue_info,
  32528. locgroup,
  32529. rank
  32530. ) AS
  32531. SELECT featureloc_id, feature_id, srcfeature_id, fmin, is_fmin_partial,
  32532. fmax, is_fmax_partial, strand, phase, residue_info, locgroup, rank
  32533. FROM featureloc
  32534. WHERE (strand < 0 or phase < 0)
  32535. UNION
  32536. SELECT featureloc_id, feature_id, srcfeature_id, fmax, is_fmax_partial,
  32537. fmin, is_fmin_partial, strand, phase, residue_info, locgroup, rank
  32538. FROM featureloc
  32539. WHERE (strand is NULL or strand >= 0 or phase >= 0) ;
  32540. --------------------------------
  32541. ---- f_type --------------------
  32542. --------------------------------
  32543. CREATE OR REPLACE VIEW f_type
  32544. AS
  32545. SELECT f.feature_id,
  32546. f.name,
  32547. f.dbxref_id,
  32548. c.name AS type,
  32549. f.residues,
  32550. f.seqlen,
  32551. f.md5checksum,
  32552. f.type_id,
  32553. f.timeaccessioned,
  32554. f.timelastmodified
  32555. FROM feature f, cvterm c
  32556. WHERE f.type_id = c.cvterm_id;
  32557. --------------------------------
  32558. ---- fnr_type ------------------
  32559. --------------------------------
  32560. CREATE OR REPLACE VIEW fnr_type
  32561. AS
  32562. SELECT f.feature_id,
  32563. f.name,
  32564. f.dbxref_id,
  32565. c.name AS type,
  32566. f.residues,
  32567. f.seqlen,
  32568. f.md5checksum,
  32569. f.type_id,
  32570. f.timeaccessioned,
  32571. f.timelastmodified
  32572. FROM feature f left outer join analysisfeature af
  32573. on (f.feature_id = af.feature_id), cvterm c
  32574. WHERE f.type_id = c.cvterm_id
  32575. and af.feature_id is null;
  32576. --------------------------------
  32577. ---- f_loc ---------------------
  32578. --------------------------------
  32579. -- Note from Scott: I changed this view to depend on dfeatureloc,
  32580. -- since I don't know what it is used for. The change should
  32581. -- be transparent. I also changed dbxrefstr to dbxref_id since
  32582. -- dbxrefstr is no longer in feature
  32583. CREATE OR REPLACE VIEW f_loc
  32584. AS
  32585. SELECT f.feature_id,
  32586. f.name,
  32587. f.dbxref_id,
  32588. fl.nbeg,
  32589. fl.nend,
  32590. fl.strand
  32591. FROM dfeatureloc fl, f_type f
  32592. WHERE f.feature_id = fl.feature_id;
  32593. --------------------------------
  32594. ---- fp_key -------------------
  32595. --------------------------------
  32596. CREATE OR REPLACE VIEW fp_key
  32597. AS
  32598. SELECT fp.feature_id,
  32599. c.name AS pkey,
  32600. fp.value
  32601. FROM featureprop fp, cvterm c
  32602. WHERE fp.featureprop_id = c.cvterm_id;
  32603. -- [symmetric,reflexive]
  32604. -- intervals have at least one interbase point in common
  32605. -- (i.e. overlap OR abut)
  32606. -- EXAMPLE QUERY:
  32607. -- (features of same type that overlap)
  32608. -- SELECT r.*
  32609. -- FROM feature AS x
  32610. -- INNER JOIN feature_meets AS r ON (x.feature_id=r.subject_id)
  32611. -- INNER JOIN feature AS y ON (y.feature_id=r.object_id)
  32612. -- WHERE x.type_id=y.type_id
  32613. CREATE OR REPLACE VIEW feature_meets (
  32614. subject_id,
  32615. object_id
  32616. ) AS
  32617. SELECT
  32618. x.feature_id,
  32619. y.feature_id
  32620. FROM
  32621. featureloc AS x,
  32622. featureloc AS y
  32623. WHERE
  32624. x.srcfeature_id=y.srcfeature_id
  32625. AND
  32626. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  32627. COMMENT ON VIEW feature_meets IS 'intervals have at least one
  32628. interbase point in common (ie overlap OR abut). symmetric,reflexive';
  32629. -- [symmetric,reflexive]
  32630. -- as above, strands match
  32631. CREATE OR REPLACE VIEW feature_meets_on_same_strand (
  32632. subject_id,
  32633. object_id
  32634. ) AS
  32635. SELECT
  32636. x.feature_id,
  32637. y.feature_id
  32638. FROM
  32639. featureloc AS x,
  32640. featureloc AS y
  32641. WHERE
  32642. x.srcfeature_id=y.srcfeature_id
  32643. AND
  32644. x.strand = y.strand
  32645. AND
  32646. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  32647. COMMENT ON VIEW feature_meets_on_same_strand IS 'as feature_meets, but
  32648. featurelocs must be on the same strand. symmetric,reflexive';
  32649. -- [symmetric]
  32650. -- intervals have no interbase points in common and do not abut
  32651. CREATE OR REPLACE VIEW feature_disjoint (
  32652. subject_id,
  32653. object_id
  32654. ) AS
  32655. SELECT
  32656. x.feature_id,
  32657. y.feature_id
  32658. FROM
  32659. featureloc AS x,
  32660. featureloc AS y
  32661. WHERE
  32662. x.srcfeature_id=y.srcfeature_id
  32663. AND
  32664. ( x.fmax < y.fmin AND x.fmin > y.fmax );
  32665. COMMENT ON VIEW feature_disjoint IS 'featurelocs do not meet. symmetric';
  32666. -- 4-ary relation
  32667. CREATE OR REPLACE VIEW feature_union AS
  32668. SELECT
  32669. x.feature_id AS subject_id,
  32670. y.feature_id AS object_id,
  32671. x.srcfeature_id,
  32672. x.strand AS subject_strand,
  32673. y.strand AS object_strand,
  32674. CASE WHEN x.fmin<y.fmin THEN x.fmin ELSE y.fmin END AS fmin,
  32675. CASE WHEN x.fmax>y.fmax THEN x.fmax ELSE y.fmax END AS fmax
  32676. FROM
  32677. featureloc AS x,
  32678. featureloc AS y
  32679. WHERE
  32680. x.srcfeature_id=y.srcfeature_id
  32681. AND
  32682. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  32683. COMMENT ON VIEW feature_union IS 'set-union on interval defined by featureloc. featurelocs must meet';
  32684. -- 4-ary relation
  32685. CREATE OR REPLACE VIEW feature_intersection AS
  32686. SELECT
  32687. x.feature_id AS subject_id,
  32688. y.feature_id AS object_id,
  32689. x.srcfeature_id,
  32690. x.strand AS subject_strand,
  32691. y.strand AS object_strand,
  32692. CASE WHEN x.fmin<y.fmin THEN y.fmin ELSE x.fmin END AS fmin,
  32693. CASE WHEN x.fmax>y.fmax THEN y.fmax ELSE x.fmax END AS fmax
  32694. FROM
  32695. featureloc AS x,
  32696. featureloc AS y
  32697. WHERE
  32698. x.srcfeature_id=y.srcfeature_id
  32699. AND
  32700. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  32701. COMMENT ON VIEW feature_intersection IS 'set-intersection on interval defined by featureloc. featurelocs must meet';
  32702. -- 4-ary relation
  32703. -- subtract object interval from subject interval
  32704. -- (may leave zero, one or two intervals)
  32705. CREATE OR REPLACE VIEW feature_difference (
  32706. subject_id,
  32707. object_id,
  32708. srcfeature_id,
  32709. fmin,
  32710. fmax,
  32711. strand
  32712. ) AS
  32713. -- left interval
  32714. SELECT
  32715. x.feature_id,
  32716. y.feature_id,
  32717. x.strand,
  32718. x.srcfeature_id,
  32719. x.fmin,
  32720. y.fmin
  32721. FROM
  32722. featureloc AS x,
  32723. featureloc AS y
  32724. WHERE
  32725. x.srcfeature_id=y.srcfeature_id
  32726. AND
  32727. (x.fmin < y.fmin AND x.fmax >= y.fmax )
  32728. UNION
  32729. -- right interval
  32730. SELECT
  32731. x.feature_id,
  32732. y.feature_id,
  32733. x.strand,
  32734. x.srcfeature_id,
  32735. y.fmax,
  32736. x.fmax
  32737. FROM
  32738. featureloc AS x,
  32739. featureloc AS y
  32740. WHERE
  32741. x.srcfeature_id=y.srcfeature_id
  32742. AND
  32743. (x.fmax > y.fmax AND x.fmin <= y.fmin );
  32744. COMMENT ON VIEW feature_difference IS 'set-distance on interval defined by featureloc. featurelocs must meet';
  32745. -- 4-ary relation
  32746. CREATE OR REPLACE VIEW feature_distance AS
  32747. SELECT
  32748. x.feature_id AS subject_id,
  32749. y.feature_id AS object_id,
  32750. x.srcfeature_id,
  32751. x.strand AS subject_strand,
  32752. y.strand AS object_strand,
  32753. CASE WHEN x.fmax <= y.fmin THEN (x.fmax-y.fmin) ELSE (y.fmax-x.fmin) END AS distance
  32754. FROM
  32755. featureloc AS x,
  32756. featureloc AS y
  32757. WHERE
  32758. x.srcfeature_id=y.srcfeature_id
  32759. AND
  32760. ( x.fmax <= y.fmin OR x.fmin >= y.fmax );
  32761. COMMENT ON VIEW feature_difference IS 'size of gap between two features. must be abutting or disjoint';
  32762. -- [transitive,reflexive]
  32763. -- (should this be made non-reflexive?)
  32764. -- subject intervals contains (or is same as) object interval
  32765. CREATE OR REPLACE VIEW feature_contains (
  32766. subject_id,
  32767. object_id
  32768. ) AS
  32769. SELECT
  32770. x.feature_id,
  32771. y.feature_id
  32772. FROM
  32773. featureloc AS x,
  32774. featureloc AS y
  32775. WHERE
  32776. x.srcfeature_id=y.srcfeature_id
  32777. AND
  32778. ( y.fmin >= x.fmin AND y.fmin <= x.fmax );
  32779. COMMENT ON VIEW feature_contains IS 'subject intervals contains (or is
  32780. same as) object interval. transitive,reflexive';
  32781. -- featureset relations:
  32782. -- a featureset relation is true between any two features x and y
  32783. -- if the relation is true for any x' and y' where x' and y' are
  32784. -- subfeatures of x and y
  32785. -- see feature_meets
  32786. -- example: two transcripts meet if any of their exons or CDSs overlap
  32787. -- or abut
  32788. CREATE OR REPLACE VIEW featureset_meets (
  32789. subject_id,
  32790. object_id
  32791. ) AS
  32792. SELECT
  32793. x.object_id,
  32794. y.object_id
  32795. FROM
  32796. feature_meets AS r
  32797. INNER JOIN feature_relationship AS x ON (r.subject_id = x.subject_id)
  32798. INNER JOIN feature_relationship AS y ON (r.object_id = y.subject_id);