GMODTools TestCase

Revision as of 17:03, 20 June 2008 by Dongilbert (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is an example test case for GMOD, loading a GenBank format genome (chromosome) to Chado database, then dumping it out, including GenBank submission format with GenBank output to test round-trip agreement.

This is an abbreviated example, current as of May 2008. It uses a Chado-db template in Postgres, and assumes you have installed/tested GMOD components available.

 # get AnoGam chrX and load to chado db
 curl -OR
 or curl -OR
 set dbname=anogam_x
 $pg/bin/createdb -T chado_01_template $dbname
 # fix Genbank FT to SO type map if needed
 vi  lib/Bio/SeqFeature/Tools/ : add pseudogenic tRNA
 # load chromosome X to chado
 gunzip -c NC_004818.gbk.gz |\
  perl bin/ -noCDS -in stdin -out stdout |\
  perl bin/ -dbname $dbname -organism fromdata
 # create GMOD Bulkfiles conf/bulkfiles/anogam.xml from template.xml : dbname, etc. edits
 # see samples to create a new organism/project configuration
 # create standard Bulkfiles outputs for anogam_x
 perl -Ilib bin/ -config=anogam  -make >& log.anogam1 &
 # new in progress output, includes regurgitation of GenBank record to compare with original
 # you should check and edit conf/bulkfiles/genbanksubmit.xml before running this part
 perl -Ilib bin/ -config=anogam -format=genbanktbl -make

Outputs should include genbanksubmit/ folder with outputs of GMOD Bulkfiles:

anogam-all-anogam1.tbl    : feature table  ** new part
anogam-all-anogam1.fsa    : genome dna     == fasta/chromosome
anogam-all-anogam1.pep    : protein aa     == fasta/translation

and outputs of NCBI tbl2asn:

anogam-all-anogam1.sqn : ASN.1 record to submit to NCBI
anogam-all-anogam1.val : errors & warnings
anogam-all-anogam1.gbf : Genbank format for review

You will find these sample outputs here

There remain caveats on reproducing the original GenBank record this way. At this writing, the GenbankSubmit function is still in development, and the Genbank to GFF to Chado loading has some losses.