<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:13pt;color:#000000;"><DIV>Hi Steve,</DIV>
<DIV> </DIV>
<DIV>Thanks for your reply. I still having problem when I tried to run my scritp, however, I have no idea what's going wrong since the script works some days ago.</DIV>
<DIV> </DIV>
<DIV>Belows is the details of my scritp:</DIV>
<DIV> </DIV>
<DIV>#!/usr/bin/perl -w</DIV>
<DIV>use lib "/src/ensembl/modules";<BR>use Bio::EnsEMBL::Registry;</DIV>
<DIV>my $registry = 'Bio::EnsEMBL::Registry';</DIV>
<DIV>$registry->load_registry_from_db(<BR> -host => 'ensembldb.ensembl.org',<BR> -user => 'anonymous'<BR>);</DIV>
<DIV>my $slice_adaptor = $registry->get_adaptor( 'Human', 'Core', 'Slice' );</DIV>
<DIV>#get gene MLH1<BR>my $slice = $slice_adaptor->fetch_by_gene_stable_id( 'ENSG00000076242', 150000);</DIV>
<DIV>my $unmasked_seq = $slice->seq();<BR>my $softmasked_seq = $slice->get_repeatmasked_seq( undef, 1 );</DIV>
<DIV>my $softmasked_length = $softmasked_seq ->length();</DIV>
<DIV>my $sst = $slice->start();<BR>my $sen = $slice->end();<BR>my $chr = $slice->seq_region_name();<BR>my $id = "MLH1";</DIV>
<DIV>print "\>$id||$chr\:$sst\-$sen||Seq_length\:$softmasked_length\n";<BR>print $softmasked_seq->seq(), "\n";</DIV>
<DIV> </DIV>
<DIV>And I keep getting the error msg:</DIV>
<DIV> DBD::mysql::db selectall_arrayref failed: fetch() without execute() at <BR>> /src/ensembl/modules/Bio/EnsEMBL/Registry.pm line 1362.<BR>> Can't call method "fetch_by_gene_stable_id" on an undefined value at <BR>> Seq_find_hardmask.pl line 17.</DIV>
<DIV> </DIV>
<DIV>Could you please give me some help? Many thanks!</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Grace<BR></DIV></div><br>
</body></html>