Difference between revisions of "Load RefSeq Into Chado"

From GMOD
Jump to: navigation, search
m (Moved authors and revision history to end. Dropped copyright statement.)
m (Authors)
Line 46: Line 46:
  
 
==Authors==
 
==Authors==
 
* [[Scott Cain]]
 
* [[bp:Brian_Osborne|Brian Osborne]]
 
  
 +
* [[User:Scott|Scott Cain]]
 +
* [[bp:Brian_Osborne|Brian Osborne]]
  
 
==Revision History==
 
==Revision History==

Revision as of 22:13, 27 June 2008

Abstract

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 recognized these files by their NC_ and NT_ prefixes. First download the Genbank genome records of interest. A good source for RefSeq files is NCBI's FTP site (ftp://ftp.ncbi.nih.gov/genomes/), they will probably be compressed and have .gbk.gz suffixes.

Convert RefSeq to GFF

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

 >bp_genbank2gff3.pl <filename>

This will create a GFF version 3 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 GFF file to change the feature type. Any skipped features will be printed at the end. If you want those to be part of the GFF 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: <sql> select common_name from organism; </sql> If you do not see your organism listed, execute a command equivalent to this: <sql>

 insert into organism (abbreviation, genus, species, common_name, organism_id)
               values ('H.sapiens', 'Homo', 'sapiens', 'Human', 9606);

</sql> Substitute in the appropriate values for your own organism.

Load the GFF

Run the load/bin/gmod_load_gff3.pl script from the GMOD distribution:

  >gmod_load_gff3.pl --organism <your org common name>  --srcdb DB:genbank --gfffile <your gfffile>

This will load your data into the Chado database. Note that if there are non-SOFA feature types remaining in the GFF file the load will fail when they are encountered. If that happens, edit the file to fix the incorrect term and load again. Only the previously unloaded data will load (i.e. you won't have duplicate rows).

More Information

Please send questions to the GMOD developers list:

gmod-devel@lists.sourceforge.net


Authors

Revision History

Revision 1.0 2007-02-07 BIO First version