GMOD_LOAD_CVTERMS(1p)
π GMOD_LOAD_CVTERMS π
okay bestie, gather round, because we're talking about load_cvterms.pl, a lil Perl script from the User Contributed Perl Documentation corner of the internet, and honestly? it's giving ontology-wrangling main character energy. π§
β¨ NAME β¨
load_cvterms.pl β bestie, this script literally compares which terms are new in the file compared to the database, and then inserts them. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
Usage: perl load_cvterms.pl -H dbhost -D dbname [-vdntuFo] file
π parameters π
-gβ the GMOD database profile name. it can hand over the host, DB name, password, username, and driver all at once, iconic behavior honestly. Default:'default'-sβ database name for linking (it must be in thedbtable, e.g.GO). no cap.-nβ controlled vocabulary name (e.g.'biological_process'). optional! if you don't give it, terms of all namespaces related with the database name will be handled. she's flexible like that π-Fβ File format. can beoboorgo_flatand others supported by Bio::OntologyIO. Default:obo-uβ update all the terms. without-u, the terms in the database won't be updated to the contents of the file, in terms of definitions, etc. but new terms will still be added. so like, half the job, bestie π«Ά-vβ verbose output. she will talk.-oβ outfile for writing errors and verbose messages (optional)-tβ trial mode. don't perform any store operations at all.
β οΈ heads up: trial mode cannot test inserting associated data for new terms. so it's a vibe check, not a full dress rehearsal. π
π₯ the following options are required if not using GMOD profile π₯
-Hβ hostname for database [required if-pisn't used]-Dβ database name [required if-pisn't used]-pβ password (if you need to provide a password to connect to your db)-rβ username (if you need to provide a username to connect to your database)-dβ driver name (e.g.'Pg'for postgres). Driver name can be provided ingmod_config
π DESCRIPTION π
okay so here's what she actually does:
The script parses the ontology in the file and the corresponding ontology in the database, if present. she compares which terms are new in the file compared to the database and inserts them, and compares all the relationships that are new and inserts them. she removes the relationships that were not specified in the file from the database. and listen β it never removes a term entry from the database. ever. she's not like that. π
This script works with Chado schema (see gmod.org) and accesses the following tables:
db
dbxref
cv
cvterm
cvterm_relationship
cvtermsynonym
cvterm_dbxref
cvtermprop
Terms that are in the database but not in the file are set to is_obsolete=1. All the terms that are present in the database are updated (if using the -u option) to reflect the term definitions that are in the file. New terms that are in the file but not in the database are stored. The following data are associated with each term insert/update:
- Term name
- Term definition
- Relationships with other terms
- Synonyms
- Secondary ids
- Definition dbxrefs
- Comments
like, she keeps receipts on every single one of those. periodt. π
π AUTHOR π
- Lukas Mueller
<lam87@cornell.edu> - Naama Menda
<nm249@cornell.edu>
β VERSION AND DATE β
Version 0.15, September 2010.
and that's the whole page, bestie!! π this was documented by perl v5.30.0, dated 2019-12-05, under the manual name GMOD_LOAD_CVTERMS(1p) β go forth and load those cvterms, you absolute icon πβ¨
π¦ where this page comes from
- debian bookworm: chado-utils 1.31-6 Β· Artistic-2.0
- debian trixie: chado-utils 1.31-6 Β· Artistic-2.0
- ubuntu jammy: chado-utils 1.31-6 Β· Artistic-2.0
- ubuntu noble: chado-utils 1.31-6 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms