Skip to content

Instantly share code, notes, and snippets.

@bellerbrock
Last active December 4, 2019 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bellerbrock/e936e6f1595c5552c60e715c9576dfc2 to your computer and use it in GitHub Desktop.
Save bellerbrock/e936e6f1595c5552c60e715c9576dfc2 to your computer and use it in GitHub Desktop.
Trait component ontology update
# starting in the cxgn directory clone or pull the latest updates in the sgn and Chado repos
git clone https://github.com/solgenomics/sgn.git
git clone https://github.com/GMOD/Chado.git
# Load the ontology terms
# If you get a message about missing packages it may be necessary to add to Chado modules to perl5lib: export PERL5LIB=/home/production/cxgn/Chado/chado/lib:$PERL5LIB
perl Chado/chado/bin/gmod_load_cvterms.pl -H db4.sgn.cornell.edu -D sandbox_batatabase -s TIME -d Pg -r postgres -p <PASSWORD> -n cxgn_time_ontology -u -v sgn/ontology/cxgn_time.obo
# Update config file as necessary, for example
composable_cvs trait,toy,evt
composable_cvs_allowed_combinations Time Series|trait+toy+evt
If being loaded for the first time it is also important to add the correct cvprops.
perl chado_tools/chado/bin/gmod_load_cvterms.pl -H breedbase_db -D hfg -s TIME -d Pg -r postgres -p postgres -n cxgn_time_ontology -u -v sgn/ontology/cxgn_time.obo
./load_composed_cvprops.pl -H breedbase_db -D hfg -T HFG_Trait -c composed_trait -t cxgn_time_ontology
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment