[ensembl-dev] How to get AlignSlice objects

Javier Herrero jherrero at ebi.ac.uk
Tue Aug 30 09:00:33 BST 2011


Hi Marc

The AlignSliceAdaptor has a method to produce an AlignSlice from a 
GenomicAlignBlock:

my $align_slice_adaptor =
    $registry->get_adaptor("Multi", "compara", "AlignSlice");

my $align_slice =
    $align_slice_adaptor->fetch_by_GenomicAlignBlock($gab);

Javier

On Monday 29 Aug 2011 09:17:59 Marc P. Hoeppner wrote:
> Hi,
> 
> so I continue on my quest to wrap my head around the PERL Api...
> 
> My current problem concerns the AlignSlice class and how to get get such
> an object starting from a GenomicAlignBlock. All I was able to produce
> are single slices, but no align slices. I'd be glad if anyone could
> point out (conceptually, no detailed code required) how AlignSlices are
> obtained from blocks of individual genomic aligns.
> 
> Cheers,
> Marc
> 
> _______________________________________________
> 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/

-- 
Javier Herrero, PhD
Ensembl Compara Project Leader
European Bioinformatics Institute (EMBL-EBI)
Wellcome Trust Genome Campus, Hinxton
Cambridge - CB10 1SD - UK




More information about the Dev mailing list