Updating Ontology Collections

From TheGPMWiki
Jump to: navigation, search

The contents of the files viewable through http://gpmdb.thegpm.org/go/index.html can be both refreshed and updated on a standard installation of the GPM. Below is a set of directions on how to refresh the existing files, how to obtain new data and how to update ontologies with the new proteins.

The display information is stored in /thegpm/go/, and any refreshing of the information will result in new versions of the files available in that directory being created.

The source files for the lists of proteins in a given ontology are stored in /thegpm/scripts/ont_builder/ and three subfolders:

  • /thegpm/scripts/ont_builder/human_go/
  • /thegpm/scripts/ont_builder/mouse_go/
  • /thegpm/scripts/ont_builder/yeast_go/

Contents

Scripts

The scripts that update the various ontologies are available in /thegpm/scripts/ont_builder/. Some manual editing of the scripts must currently be done to either update or refresh the gene ontology pages.

The scripts that perform the refreshing and updating work are:

  • ont_builder.pl: performs the actual creation of display files.
  • ont_builder_batch.pl: creates a list of files and calls ont_builder.pl on each of them.
  • ont_builder_update_chromosome_proteins.pl: updates the chromosome-based ontology of proteins for both human and mouse.
  • ont_builder_update_go_proteins.pl: updates the gene-based ontology of proteins for human, mouse and yeast.
  • ont_builder_update_go_details.pl: updates the file containing the identified vs. total proteins counts for each species, in each gene ontology.

Getting data files

Data files for both chromosome and GO ontologies are downloaded from BioMart on the ENSEMBL website. Use the most recent Ensembl release, and then choose the appropriate species below.

Data files for the BTO ontologies are generated separately. The source protein lists are generated periodically through the Normal Clinical Tissue Alliance and updated at that time.

GO data files

Download a tab-delimited file for any of the species to be updated. The column order for the data files for updating the GO category displays is as follows:

  • Ensembl Protein ID
  • GO Term Accession (bp)
  • GO Term Accession (cc)
  • GO Term Accession (mf)

The GO Group fields can be in any order, but the protein identifier must be first. Any subsequent fields will be ignored.

Chromosome data files

Download a tab-delimited file for any of the species to be updated. The column order for the data files for updating the chromosome displays is as follows:

  • Chromosome Name
  • Gene start (bp)
  • Ensembl Protein ID

Any subsequent fields will be ignored.

Updating ontology content

Updating the list of proteins associated with an ontology will modify the source XML files from which the display files are built. This step must be done first if there is new information available from Ensembl (e.g., after a new data release). However, if refreshing the best expect and identification counts for each protein in an ontology is all that is required, this step can be skipped.

Chromosomes

Human

  1. Edit the script ont_builder_update_chromosome_proteins.pl. The value of the substitution found below the line marked "EDIT BELOW" must be ENSP.
  2. Run the script as perl ont_builder_update_chromosome_proteins.pl [source file] HS where [source file] is the path and name of the tab-delimited file from ENSEMBL.

Mouse

  1. Edit the script ont_builder_update_chromosome_proteins.pl. The value of the substitution found below the line marked "EDIT BELOW" must be ENSMUSP.
  2. Run the script as perl ont_builder_update_chromosome_proteins.pl [source file] MM where [source file] is the path and name of the tab-delimited file from ENSEMBL.

GO categories

Human

  1. Run the script ont_builder_update_go_proteins.pl [source file] HS where [source file] is the path and name of the tab-delimited file from ENSEMBL.

Mouse

  1. Run the script ont_builder_update_go_proteins.pl [source file] MM where [source file] is the path and name of the tab-delimited file from ENSEMBL.

Yeast

  1. Run the script ont_builder_update_go_proteins.pl [source file] SC where [source file] is the path and name of the tab-delimited file from ENSEMBL.

Refreshing ontology content

Refreshing the content of an ontology will recalculate the identification counts and best expect scores for each of the proteins defined as belonging to the ontology in the source XML files.

Chromosomes

Human

  1. ont_builder_batch.pl
    1. Ensure the value of the global scalar $CONFIG_FILE_LOCATION is drive://thegpm/scripts/ont_builder/.
  2. ont_builder.pl.
    1. Ensure the value of the global scalar $CONFIG_FILE_LOCATION is drive://thegpm/scripts/ont_builder/.
    2. Find the string "EDIT BELOW". Comment out the following if() statement; this will force all proteins to end up in the output files, not just proteins with identifications.
  3. Run the script ont_builder_batch.pl HS HTML. This will create new versions of all three file types (.html, .txt and .xls). Running with the second argument as either 'txt' or 'xls' will generate new versions of only the corresponding file type.

Mouse

  1. ont_builder_batch.pl
    1. Ensure the value of the global scalar $CONFIG_FILE_LOCATION is drive://thegpm/scripts/ont_builder/.
  2. ont_builder.pl.
    1. Ensure the value of the global scalar $CONFIG_FILE_LOCATION is drive://thegpm/scripts/ont_builder/.
    2. Find the string "EDIT BELOW". Comment out the following if() statement; this will force all proteins to end up in the output files, not just proteins with identifications.
  3. Run the script ont_builder_batch.pl MM HTML. This will create new versions of all three file types (.html, .txt and .xls). Running with the second argument as either 'txt' or 'xls' will generate new versions of only the corresponding file type.

GO categories

Human

  1. ont_builder_batch.pl
    1. Ensure the value of the global scalar $CONFIG_FILE_LOCATION is drive://thegpm/scripts/ont_builder/human_go/.
  2. ont_builder.pl.
    1. Ensure the value of the global scalar $CONFIG_FILE_LOCATION is drive://thegpm/scripts/ont_builder/human_go/.
    2. Find the string "EDIT BELOW". Restore ("de-comment") the following if() statement; this will result in only identified proteins being present in the display files.
  3. Run the script ont_builder_batch.pl GO HTML. This will create new versions of all three file types (.html, .txt and .xls). Running with the second argument as either 'txt' or 'xls' will generate new versions of only the corresponding file type.

Mouse

  1. ont_builder_batch.pl
    1. Ensure the value of the global scalar $CONFIG_FILE_LOCATION is drive://thegpm/scripts/ont_builder/mouse_go/.
  2. ont_builder.pl.
    1. Ensure the value of the global scalar $CONFIG_FILE_LOCATION is drive://thegpm/scripts/ont_builder/mouse_go/.
    2. Find the string "EDIT BELOW". Restore ("de-comment") the following if() statement; this will result in only identified proteins being present in the display files.
  3. Run the script ont_builder_batch.pl GO HTML. This will create new versions of all three file types (.html, .txt and .xls). Running with the second argument as either 'txt' or 'xls' will generate new versions of only the corresponding file type.

Yeast

  1. ont_builder_batch.pl
    1. Ensure the value of the global scalar $CONFIG_FILE_LOCATION is drive://thegpm/scripts/ont_builder/yeast_go/.
  2. ont_builder.pl.
    1. Ensure the value of the global scalar $CONFIG_FILE_LOCATION is drive://thegpm/scripts/ont_builder/yeast_go/.
    2. Find the string "EDIT BELOW". Restore ("de-comment") the following if() statement; this will result in only identified proteins being present in the display files.
  3. Run the script ont_builder_batch.pl GO HTML. This will create new versions of all three file types (.html, .txt and .xls). Running with the second argument as either 'txt' or 'xls' will generate new versions of only the corresponding file type.
Personal tools