[ensembl-dev] Genomic Sequence

Bert Overduin bert at ebi.ac.uk
Tue Feb 21 12:55:35 GMT 2012

Hello Nick,

$gene->slice gets you the slice with which the gene is associated,
i.e. the whole chromosome.

Just use $gene->seq instead.


On Tue, Feb 21, 2012 at 12:44 PM, Nick Fankhauser <lists at nyk.ch> wrote:
> Hi!
> I want to fetch the gnomic sequence of genes as reference for aligning
> sequencing reads. I'm using the following method:
> my $gene_adaptor = $registry->get_adaptor( 'Human', 'Core', 'Gene' );
> my $gene=$gene_adaptor->fetch_by_display_label($gene_symbol);
> my $seq = $gene->slice->seq();
> Now this retrieved a sequence of length 81195211 bp for TP53 as
> gene_symbol, but the genomic size of that gene should be 19143 bp.
> Is there anything wrong with this method and how could it be improved?
> Nick
> ---
> http://www.ccspmd.ethz.ch/people/fniklaus
> _______________________________________________
> Dev mailing list    Dev at ensembl.org
> List admin (including subscribe/unsubscribe): http://lists.ensembl.org/mailman/listinfo/dev
> Ensembl Blog: http://www.ensembl.info/

Bert Overduin, Ph.D.
Vertebrate Genomics Team

EMBL - European Bioinformatics Institute
Wellcome Trust Genome Campus
Hinxton, Cambridge CB10 1SD
United Kingdom


Ensembl browser: http://www.ensembl.org

Mailing lists: http://www.ensembl.org/info/about/contact/mailing.html

Blog: http://www.ensembl.info

YouTube: http://www.youtube.com/user/EnsemblHelpdesk
Facebook: http://www.facebook.com/Ensembl.org
Twitter: http://twitter.com/Ensembl

More information about the Dev mailing list