<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Microsoft Sans Serif";
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
-->
</style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-CA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I am attempting to load 3 gff3 files into a postgres Bio::DB::SeqFeature::Store database using the bp_seqfeature_load.pl script that comes with bioperl.<o:p></o:p></p>
<p class="MsoNormal">My files are: chromosomes.gff3, ideogram.gff3 and study_2.gff3, being loaded in that order. The chromosomes.gff3 file loads without error. However, when I attempt to load either of the other 2 files, I receive the following error:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">------------- EXCEPTION: Bio::Root::Exception -------------<o:p></o:p></p>
<p class="MsoNormal">MSG: chr1 doesn't have a primary id<o:p></o:p></p>
<p class="MsoNormal">STACK: Error::throw<o:p></o:p></p>
<p class="MsoNormal">STACK: Bio::Root::Root::throw /usr/lib/perl5/site_perl/5.8.8/Bio/Root/Root.pm:472<o:p></o:p></p>
<p class="MsoNormal">STACK: Bio::DB::SeqFeature::Store::GFF3Loader::build_object_tree_in_tables /usr/lib/perl5/site_perl/5.8.8/Bio/DB/SeqFeature/Store/GFF3Loader.pm:720<o:p></o:p></p>
<p class="MsoNormal">STACK: Bio::DB::SeqFeature::Store::GFF3Loader::build_object_tree /usr/lib/perl5/site_perl/5.8.8/Bio/DB/SeqFeature/Store/GFF3Loader.pm:699<o:p></o:p></p>
<p class="MsoNormal">STACK: Bio::DB::SeqFeature::Store::GFF3Loader::finish_load /usr/lib/perl5/site_perl/5.8.8/Bio/DB/SeqFeature/Store/GFF3Loader.pm:343<o:p></o:p></p>
<p class="MsoNormal">STACK: Bio::DB::SeqFeature::Store::Loader::load_fh /usr/lib/perl5/site_perl/5.8.8/Bio/DB/SeqFeature/Store/Loader.pm:354<o:p></o:p></p>
<p class="MsoNormal">STACK: Bio::DB::SeqFeature::Store::Loader::load /usr/lib/perl5/site_perl/5.8.8/Bio/DB/SeqFeature/Store/Loader.pm:243<o:p></o:p></p>
<p class="MsoNormal">STACK: /usr/bin/bp_seqfeature_load.pl:135<o:p></o:p></p>
<p class="MsoNormal">-----------------------------------------------------------<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I loaded the chromosomes.gff3 file with the following command:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">bp_seqfeature_load.pl -d dbname=gbtest -a DBI::Pg -u xxx -p xxx -c -v chromosomes.gff3<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">And for the ideogram.gff3 and study_2.gff3 files, I use the commad:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">bp_seqfeature_load.pl -d dbname=gbtest -a DBI::Pg -u xxx -p xxx &#8211;v &lt;filename.gff3&gt;<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I have tried to correct this error by defining the regions using the ##sequence-region pragma, however that results in a duplication of the chromosome region in my database. Is there a way to allow loading of multiple gff3 files, whose
 parent IDs are already loaded into the database?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">(P.S. program versions, example files are located past the signature)<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span style="font-size:13.5pt;font-family:&quot;Microsoft Sans Serif&quot;,&quot;sans-serif&quot;">Nigel Wilson</span>
<br>
<span style="font-size:10.0pt;font-family:&quot;Microsoft Sans Serif&quot;,&quot;sans-serif&quot;">_________________________________________________</span>
<br>
<span style="font-size:10.0pt;font-family:&quot;Microsoft Sans Serif&quot;,&quot;sans-serif&quot;">Research Student</span>
<br>
<span style="font-size:10.0pt;font-family:&quot;Microsoft Sans Serif&quot;,&quot;sans-serif&quot;">The Centre for Applied Genomics</span><o:p></o:p></p>
<p class="MsoNormal">The Hospital for Sick Children, MaRS Building - East Tower<br>
<span style="font-size:10.0pt">&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;</span><span style="font-size:10.0pt;font-family:Wingdings">(</span><span style="font-size:
10.0pt">: 416.813.7032</span><br>
<b><span style="font-size:10.0pt;font-family:Wingdings">*</span></b><span style="font-size:10.0pt">: 101 College St., Rm 14-701, Toronto, Ontario&nbsp; M5G 1L7</span><o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Info<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">BioPerl Version -&gt; latest bioperl-live<o:p></o:p></p>
<div style="mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;
padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal" style="border:none;padding:0cm">Gbrowse version: 2.10<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">File Examples:<o:p></o:p></p>
<p class="MsoNormal">Chromosomes.gff3<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">##gff-version 3<o:p></o:p></p>
<p class="MsoNormal">##Index-subfeatures 1<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">chr1&nbsp;&nbsp;&nbsp; hg18&nbsp;&nbsp;&nbsp; chromosome&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 247249719&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID=chr1;Name=Chr1<o:p></o:p></p>
<p class="MsoNormal">chr10&nbsp;&nbsp; hg18&nbsp;&nbsp;&nbsp; chromosome&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 135374737&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID=chr10;Name=Chr10<o:p></o:p></p>
<p class="MsoNormal">chr11&nbsp;&nbsp; hg18&nbsp;&nbsp;&nbsp; chromosome&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 134452384&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; . &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID=chr11;Name=Chr11<o:p></o:p></p>
<div style="mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;
padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal" style="border:none;padding:0cm">chr12&nbsp;&nbsp; hg18&nbsp;&nbsp;&nbsp; chromosome&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 132349534&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID=chr12;Name=Chr12<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">ideogram.gff3<o:p></o:p></p>
<p class="MsoNormal">##gff-version 3<o:p></o:p></p>
<p class="MsoNormal">##Index-subfeatures 1<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">chr1&nbsp;&nbsp;&nbsp; UCSC&nbsp;&nbsp;&nbsp; cytoband&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; 2300000 .&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp; Parent=chr1;Name=Cytoband:1p36.33;Alias=p36.33;stain=gneg;<o:p></o:p></p>
<p class="MsoNormal">chr1&nbsp;&nbsp;&nbsp; UCSC&nbsp;&nbsp;&nbsp; cytoband&nbsp;&nbsp;&nbsp; 2300001 5300000 .&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp; Parent=chr1;Name=Cytoband:1p36.32;Alias=p36.32;stain=gpos25;<o:p></o:p></p>
<p class="MsoNormal">chr1&nbsp;&nbsp;&nbsp; UCSC&nbsp;&nbsp;&nbsp; cytoband&nbsp;&nbsp;&nbsp; 5300001 7100000 .&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp; Parent=chr1;Name=Cytoband:1p36.31;Alias=p36.31;stain=gneg;<o:p></o:p></p>
<p class="MsoNormal">chr1&nbsp;&nbsp;&nbsp; UCSC&nbsp;&nbsp;&nbsp; cytoband&nbsp;&nbsp;&nbsp; 7100001 9200000 .&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp; Parent=chr1;Name=Cytoband:1p36.23;Alias=p36.23;stain=gpos25;<o:p></o:p></p>
<div style="mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;
padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal" style="border:none;padding:0cm">chr1&nbsp;&nbsp;&nbsp; UCSC&nbsp;&nbsp;&nbsp; cytoband&nbsp;&nbsp;&nbsp; 9200001 12600000&nbsp;&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp; .&nbsp;&nbsp; Parent=chr1;Name=Cytoband:1p36.22;Alias=p36.22;stain=gneg;<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">study_2.gff3<o:p></o:p></p>
<p class="MsoNormal">##gff-version 3<o:p></o:p></p>
<p class="MsoNormal">##Index-subfeatures 1<o:p></o:p></p>
<p class="MsoNormal">chrX&nbsp;&nbsp;&nbsp; DGV2&nbsp;&nbsp;&nbsp; sample_level_variant&nbsp;&nbsp;&nbsp; 136348080&nbsp;&nbsp; 136348238&nbsp;&nbsp; .&nbsp;&nbsp; &#43;&nbsp;&nbsp; .&nbsp;&nbsp; ID=abc_41;Parent=chrX;Name=abc_41;variant_type=CNV;gender=M;study=test 2009;<o:p></o:p></p>
<p class="MsoNormal">chr7&nbsp;&nbsp;&nbsp; DGV2&nbsp;&nbsp;&nbsp; sample_level_variant&nbsp;&nbsp;&nbsp; 7074153 7074960 .&nbsp;&nbsp; &#43;&nbsp;&nbsp; .&nbsp;&nbsp; ID=abc_4025;Parent=chr7;Name=abc_4025;variant_type=CNV;gender=M;study=test 2009;<o:p></o:p></p>
<p class="MsoNormal">chr2&nbsp;&nbsp;&nbsp; DGV2&nbsp;&nbsp;&nbsp; sample_level_variant&nbsp;&nbsp;&nbsp; 41069334&nbsp;&nbsp;&nbsp; 41070418&nbsp;&nbsp;&nbsp; .&nbsp;&nbsp; &#43;&nbsp;&nbsp; .&nbsp;&nbsp; ID=abc_4023;Parent=chr2;Name=abc_4023;variant_type=CNV;gender=M;study=test 2009;<o:p></o:p></p>
<p class="MsoNormal">chr1&nbsp;&nbsp;&nbsp; DGV2&nbsp;&nbsp;&nbsp; sample_level_variant&nbsp;&nbsp;&nbsp; 71513720&nbsp;&nbsp;&nbsp; 71514441&nbsp;&nbsp;&nbsp; .&nbsp;&nbsp; &#43;&nbsp;&nbsp; .&nbsp;&nbsp; ID=abc_3923;Parent=chr1;Name=abc_3923;variant_type=CNV;gender=M;study=test 2009;<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">This e-mail may contain confidential, personal and/or health information(information which may be subject to legal restrictions on use, retention and/or disclosure) for the sole use of the intended recipient. Any review
 or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.<br>
</font>
</body>
</html>