[Bioperl-l] how to find SeqFeature at specific sequence location
Smithies, Russell
Russell.Smithies at agresearch.co.nz
Tue Jul 12 23:12:20 UTC 2011
I've done it before by taking a segment of the sequence and looking for features in that.
my $db = Bio::DB::GFF->new( -adaptor => 'dbi::mysql',-dsn=> 'hapmap:gbrowsemysql')or die "Can't open database:",Bio::DB::GFF->error,"\n";
my $segment = $db->segment(-class=>'Chromosome',-name=> "Chr1", -start=>$start, -end=>$end);
my @repeats = $segment->features(-types=> ['match:UCSC_REPEATMASK']);
--Russell
> -----Original Message-----
> From: bioperl-l-bounces at lists.open-bio.org [mailto:bioperl-l-
> bounces at lists.open-bio.org] On Behalf Of Adam Witney
> Sent: Wednesday, 13 July 2011 6:04 a.m.
> To: bioperl-l at bioperl.org
> Subject: [Bioperl-l] how to find SeqFeature at specific sequence
> location
>
> Hi,
>
> Is there an easy way of finding the SeqFeatures at a specific base
> location on a Bio::Seq? I guess I can do it by calling
> get_all_SeqFeatures and testing start/stop coordinates, but just
> wondered if there was a better way.
>
> Thanks
>
> Adam
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l
=======================================================================
Attention: The information contained in this message and/or attachments
from AgResearch Limited is intended only for the persons or entities
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipients is prohibited by AgResearch
Limited. If you have received this message in error, please notify the
sender immediately.
=======================================================================
More information about the Bioperl-l
mailing list