EcoliWiki:Gene Association File: Difference between revisions
DanielRenfro (talk | contribs) |
DanielRenfro (talk | contribs) No edit summary |
||
| Line 10: | Line 10: | ||
==Detailed Description== | ==Detailed Description== | ||
There are actually two files that get submitted each month. The <tt>gene association</tt> file and the <tt>gp2protein</tt> file. A detailed description of each can be found in the | There are actually two files that get submitted each month. The <tt>gene association</tt> file and the <tt>gp2protein</tt> file. A detailed description of each can be found in the [http://www.geneontology.org/GO.contents.doc.shtml GO Consortium's documentation]. | ||
===header information=== | ===header information=== | ||
Occasionally the header information in the gene_association file needs to be updated. This information can be found in the <tt>gene_assocation.ecocyc.conf</tt> file in the <tt>go/gene-associations/submission/</tt> directory of the | Occasionally the header information in the gene_association file needs to be updated. This information can be found in the <tt>gene_assocation.ecocyc.conf</tt> file in the <tt>go/gene-associations/submission/</tt> directory of the [http://www.geneontology.org/GO.downloads.ftp.cvs.shtml GO CVS]. | ||
To change this information, just edit the file from the CVS checkout and resubmit it. It will get prepended to the gene_assocation file automatically. | To change this information, just edit the file from the CVS checkout and resubmit it. It will get prepended to the gene_assocation file automatically. | ||
| Line 19: | Line 19: | ||
===gene_association.ecocyc=== | ===gene_association.ecocyc=== | ||
The following is the process by which the annotation file is prepared, broken into managable steps. | The following is the process by which the annotation file is prepared, broken into managable steps. | ||
====Setup the environment==== | |||
<source lang="bash">#!/bin/bash | |||
# ------------------------------------------------------------------------------- | |||
# | |||
# gaf_gp2protein.ecoliwiki.sh Daniel Renfro 01/2010 | |||
# | |||
# This script sets up a working directory for the montly creation of the | |||
# gene-associations file and the gp2protein file for EcoliWiki. | |||
# | |||
# ------------------------------------------------------------------------------- | |||
working_dir=$(date "+%Y-%m-%d") | |||
#prefix="/usr/local/phpwikibots/trunk/PDB_Table" # absolute path bad. | |||
prefix=`dirname "$0"` # relative path good. | |||
# make the working directory | |||
mkdir $working_dir | |||
cd $working_dir | |||
# make some necessary directory | |||
echo "Creating directories..." | |||
mkdir ontology | |||
mkdir doc | |||
# download the stuff from GO | |||
echo "Downloading files from the Gene Ontology..." | |||
ncftp ftp://ftp.geneontology.org/pub/go/software/utilities/ <<END_SCRIPT | |||
get filter-gene-association.pl | |||
get check-abbr-ga-file.pl | |||
quit | |||
END_SCRIPT | |||
ncftp ftp://ftp.geneontology.org/pub/go/ontology <<END_SCRIPT | |||
get gene_ontology_edit.obo | |||
quit | |||
END_SCRIPT | |||
ncftp ftp://ftp.geneontology.org/pub/go/doc/ <<END_SCRIPT | |||
get GO.xrf_abbs | |||
quit | |||
END_SCRIPT | |||
# put the files in the right places | |||
mv gene_ontology_edit.obo ontology | |||
mv GO.xrf_abbs doc | |||
# set the permissions on the executable files. | |||
chmod +x check-abbr-ga-file.pl filter-gene-association.pl | |||
echo "setup complete." | |||
</source> | |||
====Obtain annotations from EcoCyc==== | ====Obtain annotations from EcoCyc==== | ||
Revision as of 21:22, 8 March 2010

Overview
EcoliWiki and EcoCyc contribute to the Gene Ontology (GO) by monthly submitting our annotations.
The two sites' annotations are prepared by the EcoliWiki team (mostly [[User:DanielRenfro|Daniel,) and submitted via CVS to the GO Consortium. The figure at right shows the four basic steps to this process:
- Obtain annotations from EcoCyc (quarterly)
- Obtain annotations from EcoliWiki (monthly)
- Merge them and resolve name-conflicts
- Submit to the GO
Detailed Description
There are actually two files that get submitted each month. The gene association file and the gp2protein file. A detailed description of each can be found in the GO Consortium's documentation.
header information
Occasionally the header information in the gene_association file needs to be updated. This information can be found in the gene_assocation.ecocyc.conf file in the go/gene-associations/submission/ directory of the GO CVS.
To change this information, just edit the file from the CVS checkout and resubmit it. It will get prepended to the gene_assocation file automatically.
gene_association.ecocyc
The following is the process by which the annotation file is prepared, broken into managable steps.
Setup the environment
<source lang="bash">#!/bin/bash
- -------------------------------------------------------------------------------
- gaf_gp2protein.ecoliwiki.sh Daniel Renfro 01/2010
- This script sets up a working directory for the montly creation of the
- gene-associations file and the gp2protein file for EcoliWiki.
- -------------------------------------------------------------------------------
working_dir=$(date "+%Y-%m-%d")
- prefix="/usr/local/phpwikibots/trunk/PDB_Table" # absolute path bad.
prefix=`dirname "$0"` # relative path good.
- make the working directory
mkdir $working_dir cd $working_dir
- make some necessary directory
echo "Creating directories..." mkdir ontology mkdir doc
- download the stuff from GO
echo "Downloading files from the Gene Ontology..." ncftp ftp://ftp.geneontology.org/pub/go/software/utilities/ <<END_SCRIPT get filter-gene-association.pl get check-abbr-ga-file.pl quit END_SCRIPT ncftp ftp://ftp.geneontology.org/pub/go/ontology <<END_SCRIPT get gene_ontology_edit.obo quit END_SCRIPT ncftp ftp://ftp.geneontology.org/pub/go/doc/ <<END_SCRIPT get GO.xrf_abbs quit END_SCRIPT
- put the files in the right places
mv gene_ontology_edit.obo ontology mv GO.xrf_abbs doc
- set the permissions on the executable files.
chmod +x check-abbr-ga-file.pl filter-gene-association.pl
echo "setup complete."
</source>
Obtain annotations from EcoCyc
gp2protein.ecocyc
See Also
- GO Consortium's specification for the GAF - http://www.geneontology.org/GO.format.annotation.shtml
- gp2protein file notes - http://wiki.geneontology.org/index.php/Gp2protein