<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><font face="Monaco" size="1">I normally use a local copy of the mySQL database to process large datasets. Some of my plugins make calls to the Ensembl database via the Perl API.</font><div><font face="Monaco" size="1"><br></font><font face="Monaco" size="1">VEP runs normally without the cache.<br></font><div><font face="Monaco" size="1"><br></font></div><div>I want to take advantage of some of the options available only through the cache, such as <span style="font-family: Monaco; font-size: 10px;">maf_esp, and possibly improve throughput, but still get everything not in the cache from the local database.</span><div><font face="Monaco" size="1"><br></font></div><div><div><font face="Monaco" size="1">I have downloaded and installed the homo_sapiens_73 cache, and use these parameters:</font></div><div><div style="margin: 0px; font-size: 10px; font-family: Monaco;"><span class="Apple-tab-span" style="white-space:pre"> </span>cache=1</div><div style="margin: 0px;"><div style="font-family: Monaco; font-size: 10px; margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">       </span>dir_cache=/scratch1/tmp/myourshaw/ensembl/.vep/</div><div style="font-family: Monaco; font-size: 10px; margin: 0px;">-—offline is not on</div><div style="font-family: Monaco; font-size: 10px; margin: 0px;"><br></div><div style="font-family: Monaco; font-size: 10px; margin: 0px;">There are two problems when I turn on the cache.</div><div style="font-family: Monaco; font-size: 10px; margin: 0px;"><br></div><div style="font-family: Monaco; font-size: 10px; margin: 0px;">First, some of my plugins get an error in Bio::EnsEMBL::DBSQL::GeneAdaptor in the fetch_nearest_Gene_by_Feature sub at the line</div><div style="font-family: Monaco; font-size: 10px; margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">   </span>my $seq_region_id = $feat->slice->adaptor->get_seq_region_id($feat->slice);</div><div style="font-family: Monaco; font-size: 10px; margin: 0px;"><br></div><div style="font-family: Monaco; font-size: 10px; margin: 0px;">The error is</div><div style="font-family: Monaco; font-size: 10px; margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">   </span>Can't call method "get_seq_region_id" on an undefined value at /share/apps/myourshaw/ensembl/ensembl/modules/Bio/EnsEMBL/DBSQL/GeneAdaptor.pm line 1978.</div><div style="font-family: Monaco; font-size: 10px; margin: 0px;"><br></div><div style="font-family: Monaco; font-size: 10px; margin: 0px;">Specifically, $feat->slice->adapter is undef</div><div style="font-family: Monaco; font-size: 10px; margin: 0px;"><br></div><div style="font-family: Monaco; font-size: 10px; margin: 0px;">The call in my code that triggers this is:</div><div style="font-family: Monaco; font-size: 10px; margin: 0px;">sub run {</div><div style="margin: 0px;"><div style="margin: 0px;"><font face="Monaco" size="1">    my ($self, $bvfoa, $line_hash) = @_;</font></div><div><div><font face="Monaco" size="1">    if($bvfoa->isa('Bio::EnsEMBL::Variation::RegulatoryFeatureVariationAllele')){</font></div><div><span style="font-family: Monaco; font-size: x-small;">        my $feature = $bvfoa->regulatory_feature;</span></div><div><span style="font-family: Monaco; font-size: x-small;"><span class="Apple-tab-span" style="white-space:pre">  </span># </span><span style="font-family: Monaco; font-size: 10px;">At this point, $feature->slice->adapter is undef and the next line fails</span></div><div><font face="Monaco" size="1">        my $nearest_genes = $config->{ga}->fetch_nearest_Gene_by_Feature($feature);</font></div><div><font face="Monaco" size="1">        my $gene = @{$nearest_genes}[0];</font></div><div><font face="Monaco" size="1">    }</font></div><div><br></div></div></div></div><div><div><font face="Monaco" size="1">Second, I get the following warning when VEP initializes. Is this related to the first problem? Should I be concerned?</font></div><div><div style="margin: 0px; font-size: 10px; font-family: Monaco;"><span class="Apple-tab-span" style="white-space:pre">        </span>MSG: You are using the API without caching most recent features. Performance might be affected.</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;"><span class="Apple-tab-span" style="white-space:pre"> </span>FILE: EnsEMBL/DBSQL/BaseFeatureAdaptor.pm LINE: 76</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;"><span class="Apple-tab-span" style="white-space:pre">      </span>CALLED BY: Bio/EnsEMBL/Registry.pm  LINE: 1043</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;"><span class="Apple-tab-span" style="white-space:pre">     </span>Date (localtime)    = Thu Nov 14 11:52:27 2013</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;"><span class="Apple-tab-span" style="white-space:pre">        </span>Ensembl API version = 73</div></div><div><br></div><div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; font-size: 12px; border-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 10px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><p class="MsoNormal"><font class="Apple-style-span" face="'Devanagari MT'" size="7"><span class="Apple-style-span" style="font-size: 27px; "><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 12px; "><br class="Apple-interchange-newline"></span></font><font class="Apple-style-span" size="5"><span class="Apple-style-span" style="font-size: 18px; ">ॐ</span></font></span></font></p></span><p></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 6px; margin-left: 0px; line-height: 19px; font: normal normal normal 16px/normal Helvetica; "><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 10px; ">Michael Yourshaw</span></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal 'Lucida Grande'; "><span style="letter-spacing: 0px; ">UCLA Geffen School of Medicine</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal 'Lucida Grande'; "><span style="letter-spacing: 0px; ">Department of Human Genetics, Nelson Lab</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal 'Lucida Grande'; "><span style="letter-spacing: 0px; ">695 Charles E Young Drive S</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal 'Lucida Grande'; "><span style="letter-spacing: 0px; ">Gonda 5554</span></div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; font: normal normal normal 10px/normal 'Lucida Grande'; "><span style="letter-spacing: 0px; ">Los Angeles CA 90095-8348 USA</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; font: normal normal normal 10px/normal 'Lucida Grande'; color: rgb(0, 0, 153); "><span style="text-decoration: underline; letter-spacing: 0px; "><a href="mailto:myourshaw@ucla.edu">myourshaw@ucla.edu</a></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 6px; margin-left: 0px; font: normal normal normal 10px/normal 'Lucida Grande'; "><span style="letter-spacing: 0px; ">970.691.8299</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 6px; margin-left: 0px; font: normal normal normal 9px/normal 'Lucida Grande'; "><span style="letter-spacing: 0px; ">This message is intended only for the use of the addressee and may contain information that is PRIVILEGED and CONFIDENTIAL, and/or may contain ATTORNEY WORK PRODUCT. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately. Thank you.</span></p><div><font class="Apple-style-span" size="1"><span class="Apple-style-span" style="font-size: 9px; "><br></span></font></div></span><br class="Apple-interchange-newline"><br class="Apple-interchange-newline"></span></span>
</div>
<br></div></div></div></div></div></div></body></html>