[Bioperl-l] how to find SeqFeature at specific sequence location
Adam Witney
awitney at sgul.ac.uk
Wed Jul 13 22:03:28 UTC 2011
Thanks for your replies guys.
I was trying to do it from the BioSQL schema and Bio::DB::BioDB but after some further investigation it looks like Bio::DB::GFF or Bio::DB::SeqFeature::Store are the only ways to do it
Thanks
adam
On 13 Jul 2011, at 01:06, Chris UI wrote:
> One should be able to do this via Bio::DB::SeqFeature::Store. However, going from a Bio::Seq to that is the tricky part.
>
> chris
>
> Sent from my iPad
>
> On Jul 12, 2011, at 6:12 PM, "Smithies, Russell" <Russell.Smithies at agresearch.co.nz> wrote:
>
>> 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.
>> =======================================================================
>>
>> _______________________________________________
>> Bioperl-l mailing list
>> Bioperl-l at lists.open-bio.org
>> http://lists.open-bio.org/mailman/listinfo/bioperl-l
More information about the Bioperl-l
mailing list