<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>RE: [Gmod-help] gff database</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hi Scott,<BR>
<BR>
Thanks a lot for your reply<BR>
<BR>
Inma<BR>
<BR>
-----Original Message-----<BR>
From: Scott Cain [<A HREF="mailto:cain.cshl@gmail.com">mailto:cain.cshl@gmail.com</A>]<BR>
Sent: Fri 8/8/2008 1:26 PM<BR>
To: Barrasa, Inmaculada<BR>
Cc: help@gmod.org<BR>
Subject: Re: [Gmod-help] gff database<BR>
<BR>
Hi Inma,<BR>
<BR>
The type=MyISAM tells MySQL what kind of table to create.&nbsp; I'm not a<BR>
MySQL person, but I believe MyISAM is the simple, no transaction, no<BR>
foreign key table that makes MySQL fast.&nbsp; Another option would be<BR>
INNODB (I think) which makes MySQL respect foreign keys and<BR>
transactions.<BR>
<BR>
That said, given what you want to do, I don't think you really want to<BR>
be mucking around with the schema by hand anyway.&nbsp; You might want to<BR>
think about using it via the BioPerl API and writing (fairly simple)<BR>
perl scripts to do the data manipulation if that is what you need to<BR>
do.&nbsp; Also, if you are working with reasonably recent WormBase GFF3,<BR>
you might want to look into using Bio::DB::SeqFeature::Store, which is<BR>
a newer database for GBrowse that works better with GFF3.&nbsp; It is<BR>
harder to manipulate in the database with direct SELECT statements,<BR>
but is much faster running GBrowse.<BR>
<BR>
(I just checked at WormBase still provides GFF2, so you can use that<BR>
with Bio::DB::GFF.)<BR>
<BR>
If you have more questions about implementation, you might want to<BR>
look at asking on the bioperl or GBrowse mailing lists:<BR>
<BR>
&nbsp; <A HREF="http://www.gmod.org/wiki/index.php/GBrowse">http://www.gmod.org/wiki/index.php/GBrowse</A><BR>
<BR>
&nbsp; <A HREF="http://bioperl.org/mailman/listinfo/bioperl-l">http://bioperl.org/mailman/listinfo/bioperl-l</A><BR>
<BR>
Scott<BR>
<BR>
<BR>
<BR>
On Fri, Aug 8, 2008 at 1:15 PM, Barrasa, Inmaculada<BR>
&lt;Inmaculada.Barrasa@umassmed.edu&gt; wrote:<BR>
&gt; Great Thanks a lot, that' what I was looking for.<BR>
&gt;<BR>
&gt; One more question, in the sub schema for mysql.pm at the end of the create<BR>
&gt; table code there is code like: &quot;type=MyISAM&quot;. What is that for?<BR>
&gt;<BR>
&gt; For example:<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fgroup =&gt;{<BR>
&gt; table=&gt; q{<BR>
&gt; create table fgroup (<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; gid&nbsp;&nbsp;&nbsp;&nbsp; int not null&nbsp; auto_increment,<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; gclass&nbsp; varchar(100),<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; gname&nbsp;&nbsp; varchar(100),<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; primary key(gid),<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; unique(gclass,gname)<BR>
&gt; ) type=MyISAM<BR>
&gt; }<BR>
&gt; },<BR>
&gt;<BR>
&gt; What is the code type=MyISAM for?<BR>
&gt;<BR>
&gt; I am creating a database which will include the GFF tables so I can relate<BR>
&gt; my data to the WormBase annotations and may be at some point have Gbrowser<BR>
&gt; running locally too.<BR>
&gt; I will only use the create code, not the type=MyISAM.<BR>
&gt;<BR>
&gt;<BR>
&gt; Thanks again<BR>
&gt;<BR>
&gt; Inma<BR>
&gt;<BR>
&gt;<BR>
&gt; -----Original Message-----<BR>
&gt; From: Scott Cain [<A HREF="mailto:cain.cshl@gmail.com">mailto:cain.cshl@gmail.com</A>]<BR>
&gt; Sent: Fri 8/8/2008 12:39 PM<BR>
&gt; To: Barrasa, Inmaculada<BR>
&gt; Cc: help@gmod.org<BR>
&gt; Subject: Re: [Gmod-help] gff database<BR>
&gt;<BR>
&gt; Hello Inma,<BR>
&gt;<BR>
&gt; I don't think the Bio::DB::GFF schema has changed much since 2002, so<BR>
&gt; the current incarnation should be just fine.&nbsp; The schema itself is<BR>
&gt; contained within the database adaptors for Bio::DB::GFF.&nbsp; For example,<BR>
&gt; if you wanted the MySQL schema, you would have to look at the schema<BR>
&gt; method of the Bio::DB::GFF::Adaptors::dbi::mysql.&nbsp; That module is<BR>
&gt; contained in the BioPerl distribution, and the current version of that<BR>
&gt; file can be browsed here:<BR>
&gt;<BR>
&gt; <A HREF="http://code.open-bio.org/svnweb/index.cgi/bioperl/view/bioperl-live/trunk/Bio/DB/GFF/Adaptor/dbi/mysql.pm">http://code.open-bio.org/svnweb/index.cgi/bioperl/view/bioperl-live/trunk/Bio/DB/GFF/Adaptor/dbi/mysql.pm</A><BR>
&gt;<BR>
&gt; Look for the line that starts &quot;sub schema.&quot;<BR>
&gt;<BR>
&gt; Scott<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; On Fri, Aug 8, 2008 at 11:39 AM, Barrasa, Inmaculada<BR>
&gt; &lt;Inmaculada.Barrasa@umassmed.edu&gt; wrote:<BR>
&gt;&gt;<BR>
&gt;&gt; Hi,<BR>
&gt;&gt;<BR>
&gt;&gt; Could you please tell me where I can find the sql statements to create the<BR>
&gt;&gt; gff tables?<BR>
&gt;&gt; I would like just to have the basic tables defined in 2002.<BR>
&gt;&gt;<BR>
&gt;&gt; The Generic Genome Browser: A Building Block<BR>
&gt;&gt; for a Model Organism System Database<BR>
&gt;&gt; Lincoln D. Stein,1,5 Christopher Mungall,2 ShengQiang Shu,2 Michael<BR>
&gt;&gt; Caudy,3<BR>
&gt;&gt; Marco Mangone,1 Allen Day,1 Elizabeth Nickerson,1 Jason E. Stajich,4<BR>
&gt;&gt; Todd W. Harris,1 Adrian Arva,1 and Suzanna Lewis2<BR>
&gt;&gt;<BR>
&gt;&gt;<BR>
&gt;&gt;<BR>
&gt;&gt; Thanks a lot your your help<BR>
&gt;&gt;<BR>
&gt;&gt;<BR>
&gt;&gt; Inma Barrasa<BR>
&gt;&gt;<BR>
&gt;&gt;<BR>
&gt;&gt; Walhout laboratory<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; --<BR>
&gt; ------------------------------------------------------------------------<BR>
&gt; Scott Cain, Ph. D. cain.cshl@gmail.com<BR>
&gt; GMOD Coordinator (<A HREF="http://www.gmod.org/">http://www.gmod.org/</A>) 216-392-3087<BR>
&gt; Cold Spring Harbor Laboratory<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
<BR>
<BR>
<BR>
--<BR>
------------------------------------------------------------------------<BR>
Scott Cain, Ph. D. cain.cshl@gmail.com<BR>
GMOD Coordinator (<A HREF="http://www.gmod.org/">http://www.gmod.org/</A>) 216-392-3087<BR>
Cold Spring Harbor Laboratory<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>