[ensembl-dev] Problem with core script (Oliver, Gavin)

Steve Moss gawbul at gmail.com
Wed Nov 24 17:48:21 GMT 2010


Hi Gavin,

Also, did you update to the version 60 Perl API?

Cheers,

Steve

On 24 November 2010 14:39, <dev-request at ensembl.org> wrote:

> Send Dev mailing list submissions to
>        dev at ensembl.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.ensembl.org/mailman/listinfo/dev
> or, via email, send a message with subject or body 'help' to
>        dev-request at ensembl.org
>
> You can reach the person managing the list at
>        dev-owner at ensembl.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Dev digest..."
>
>
> Today's Topics:
>
>   1. Problem with core script (Oliver, Gavin)
>   2. Re: Problem with core script (Oliver, Gavin)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 24 Nov 2010 14:25:24 -0000
> From: "Oliver, Gavin" <gavin.oliver at almacgroup.com>
> Subject: [ensembl-dev] Problem with core script
> To: "dev" <dev at ensembl.org>
> Message-ID:
>        <
> EBEA7CF8A45DD84797EADA312092799303880E10 at NI-CR-SVC-EX1.pharms-services.com
> >
>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,
>
>
>
> I have a relatively straightforward script I use for pulling gene
> annotation from the core database.
>
>
>
> The problem is it seems to have stopped working suddenly and I can't
> figure out why.
>
>
>
> The problem is occurring in the final line of this code.
>
>
>
> # Set up gene, transcript and go adaptors
>
> my $goadaptor = $registry->get_adaptor('Multi', 'Ontology', 'GOTerm');
>
> my $gene_adaptor = $registry->get_adaptor( 'Human', 'Core', 'Gene' );
>
> my $transcript_adaptor = $registry->get_adaptor('Human', 'Core',
> 'Transcript');
>
>
>
> # Get list of all genes
>
> my @genearray = @{$gene_adaptor->list_stable_ids()};
>
>
>
> # Set up hash for storage of annotation
>
> my %hash=();
>
>
>
> # Foreach gene pull annotation
>
>
>
> foreach my $geneid (@genearray) {
>
> print "Pulling gene level annotation for $geneid...\n\n";
>
>        my $gene = $gene_adaptor->fetch_by_stable_id($geneid);
>
>
>
>        my $slicekaryo = $gene->slice->get_all_KaryotypeBands->[0];
>
>
>
> The output looks like this:
>
>
>
> Pulling gene level annotation for ENSG00000000003... (executes ok)
>
>
>
> Pulling gene level annotation for TSPAN6-002...
>
>
>
> TSPAN6-002
>
> Can't call method "slice" on an undefined value at
> ./GeneTransProtRework.pl line 113.
>
>
>
>
>
> I can't understand why it suddenly stopped working.  I recently updated
> my databases to v60.  Is it possible this had something to do with it?
>
>
>
>
>
> Gavin Oliver, MSc
>
> Team Leader Genomic Research
>
> Almac
>
> Diagnostics
>
> Tel: +44 (0)28 38395792
>
> Fax: +44 (0)28 38398676
>
> Visit our website at: http://www.almacgroup.com
> <http://www.almacgroup.com/>
>
>
>
>
> The contents of this message and any attachments to it are confidential and
> may be legally privileged. If you have received this message in error, you
> should delete it from your system immediately and advise the sender.
>
> Almac Group (UK) Limited, registered no. NI061368.  Almac Sciences Limited,
> registered no. NI041550.  Almac Discovery Limited, registered no. NI046249.
>  Almac Pharma Services Limited, registered no. NI045055.  Almac Clinical
> Services Limited, registered no. NI041905.  Almac Clinical Technologies
> Limited, registered no. NI061202.  Almac Diagnostics Limited, registered no.
> NI043067.  All preceding companies are registered in Northern Ireland with a
> registered office address of Almac House, 20 Seagoe Industrial Estate,
> Craigavon, BT63 5QD, UK.
>
> Almac Sciences (Scotland) Limited, registered in Scotland no. SC154034.
>
> Almac Clinical Services LLC, Almac Clinical Technologies LLC, Almac
> Diagnostics LLC, Almac Pharma Services LLC and Almac Sciences LLC are
> Delaware limited liability companies and Almac Group Incorporated is a
> Delaware Corporation.  More information on the Almac Group can be found on
> the Almac website: www.almacgroup.com
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.ensembl.org/pipermail/dev/attachments/20101124/1452c1bd/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 2
> Date: Wed, 24 Nov 2010 14:38:59 -0000
> From: "Oliver, Gavin" <gavin.oliver at almacgroup.com>
> Subject: Re: [ensembl-dev] Problem with core script
> To: "Oliver, Gavin" <gavin.oliver at almacgroup.com>,      "dev"
>        <dev at ensembl.org>
> Message-ID:
>        <
> EBEA7CF8A45DD84797EADA312092799303880E11 at NI-CR-SVC-EX1.pharms-services.com
> >
>
> Content-Type: text/plain; charset="us-ascii"
>
> I should point out that if I print the array of gene IDs, the second
> gene is ENSG00000000005 so I don't know where the TSPAN id is coming
> from!
>
>
>
> ________________________________
>
> From: dev-bounces at ensembl.org [mailto:dev-bounces at ensembl.org] On Behalf
> Of Oliver, Gavin
> Sent: 24 November 2010 14:25
> To: dev
> Subject: [ensembl-dev] Problem with core script
>
>
>
> Hi,
>
>
>
> I have a relatively straightforward script I use for pulling gene
> annotation from the core database.
>
>
>
> The problem is it seems to have stopped working suddenly and I can't
> figure out why.
>
>
>
> The problem is occurring in the final line of this code.
>
>
>
> # Set up gene, transcript and go adaptors
>
> my $goadaptor = $registry->get_adaptor('Multi', 'Ontology', 'GOTerm');
>
> my $gene_adaptor = $registry->get_adaptor( 'Human', 'Core', 'Gene' );
>
> my $transcript_adaptor = $registry->get_adaptor('Human', 'Core',
> 'Transcript');
>
>
>
> # Get list of all genes
>
> my @genearray = @{$gene_adaptor->list_stable_ids()};
>
>
>
> # Set up hash for storage of annotation
>
> my %hash=();
>
>
>
> # Foreach gene pull annotation
>
>
>
> foreach my $geneid (@genearray) {
>
> print "Pulling gene level annotation for $geneid...\n\n";
>
>        my $gene = $gene_adaptor->fetch_by_stable_id($geneid);
>
>
>
>        my $slicekaryo = $gene->slice->get_all_KaryotypeBands->[0];
>
>
>
> The output looks like this:
>
>
>
> Pulling gene level annotation for ENSG00000000003... (executes ok)
>
>
>
> Pulling gene level annotation for TSPAN6-002...
>
>
>
> TSPAN6-002
>
> Can't call method "slice" on an undefined value at
> ./GeneTransProtRework.pl line 113.
>
>
>
>
>
> I can't understand why it suddenly stopped working.  I recently updated
> my databases to v60.  Is it possible this had something to do with it?
>
>
>
>
>
> Gavin Oliver, MSc
>
> Team Leader Genomic Research
>
> Almac
>
> Diagnostics
>
> Tel: +44 (0)28 38395792
>
> Fax: +44 (0)28 38398676
>
> Visit our website at: http://www.almacgroup.com
> <http://www.almacgroup.com/>
>
>
>
>
>
> The contents of this message and any attachments to it are confidential
> and may be legally privileged. If you have received this message in
> error, you should delete it from your system immediately and advise the
> sender.
>
>
>
> Almac Group (UK) Limited, registered no. NI061368.  Almac Sciences
> Limited, registered no. NI041550.  Almac Discovery Limited, registered
> no. NI046249.  Almac Pharma Services Limited, registered no. NI045055.
> Almac Clinical Services Limited, registered no. NI041905.  Almac
> Clinical Technologies Limited, registered no. NI061202.  Almac
> Diagnostics Limited, registered no. NI043067.  All preceding companies
> are registered in Northern Ireland with a registered office address of
> Almac House, 20 Seagoe Industrial Estate, Craigavon, BT63 5QD, UK.
>
>
>
> Almac Sciences (Scotland) Limited, registered in Scotland no. SC154034.
>
>
>
> Almac Clinical Services LLC, Almac Clinical Technologies LLC, Almac
> Diagnostics LLC, Almac Pharma Services LLC and Almac Sciences LLC are
> Delaware limited liability companies and Almac Group Incorporated is a
> Delaware Corporation.  More information on the Almac Group can be found
> on the Almac website: www.almacgroup.com
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.ensembl.org/pipermail/dev/attachments/20101124/f63e42de/attachment.htm
> >
>
> ------------------------------
>
> _______________________________________________
> Dev mailing list
> Dev at ensembl.org
> http://lists.ensembl.org/mailman/listinfo/dev
>
>
> End of Dev Digest, Vol 5, Issue 35
> **********************************
>



-- 
Kindest regards,

Steve Moss
http://stevemoss.ath.cx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ensembl.org/pipermail/dev_ensembl.org/attachments/20101124/8cd25065/attachment.html>


More information about the Dev mailing list