This is the new server for Please let us know if you notice anything weird while it's getting broken in.

Load RefSeq Into Chado

Jump to: navigation, search

This HOWTO describes a method for loading the sequence data in Genbank RefSeq files into the Chado database.

Download the Sequence Files

These steps have been used to load data from genomic RefSeq files. You can recognize these files by their NC_ and NT_ prefixes. First download the Genbank genome files of interest. A good source for RefSeq files is NCBI's FTP site. This website provides some files in GFF3 format (suffix .gff). Files in the Genbank format have the suffix .gbk.

Convert RefSeq to GFF3

Use the BioPerl script, found in scripts/Bio-DB-GFF/ within the BioPerl distribution. If you've actually installed BioPerl then the installed script will have been renamed Note that there's also an older script, don't use it.

 > <filename>

This will create a GFF3 file. It may give several warnings about unrecognized feature types. If the feature types are not part of SOFA, you will have to hand edit the resulting GFF3 file to change the feature type. Any skipped features will be printed at the end. If you want those to be part of the GFF3 file, you will have to add those manually as well, fixing any non-SOFA feature types.

Add an Entry for Your Organism

You will need to have an entry for your species in the Chado organism table. If you are unsure if this entry exists log into your database and execute this SQL command:

SELECT genus,species,common_name FROM organism;

If you do not see your organism listed, execute a command equivalent to this:

  INSERT INTO organism (abbreviation, genus, species, common_name)
                VALUES ('H.sapiens', 'Homo', 'sapiens', 'Human');

Substitute in the appropriate values for your own organism.

Load the GFF3

Run the load/bin/ script from the GMOD distribution:

  > --gfffile <your gfffile>

If you didn't specify this organism when installing Chado, (in response to the question "What is the default organism (common name, or "none")"), then you'll need to add at least the --organism <common_name> flag to the command. See perldoc for an explanation of the other options this script supports.

This will load your data into the Chado database. Note that if there are non-SOFA feature types remaining in the GFF3 file the load will fail when they are encountered. If that happens, edit the file to fix the incorrect term and load again. If that happens, the load will be stopped before the database is touched, so you won't have to worry about duplicate data.

More Information

Please send questions to the GMOD developers list: