[Bioperl-l] Merging overlapping Seq Features

0 views
Skip to first unread message

Dan

unread,
Feb 17, 2010, 5:04:05 PM2/17/10
to biop...@bioperl.org
Hi, I'm just trying to get to grips with Bioperl as was wondering if
anyone could help me accomplish this task: I want to merge together
any overlapping sequence features, or features within xbp of each
other, that are stored in a BED file.

I have got as far as reading the features in and iterating through
them, e.g.:

my $in = Bio::FeatureIO->new(-format => 'bed', -file => "$file");
while (my $feat = $in->next_feature) {
print "start: ".$feat->start." end: ".$feat->end."\n";
}

Does Bioperl provide anything that could accomplish this merging, or
would it be something I would have to write myself?

Any help much appreciated
_______________________________________________
Bioperl-l mailing list
Biop...@lists.open-bio.org
http://lists.open-bio.org/mailman/listinfo/bioperl-l

Chris Fields

unread,
Feb 18, 2010, 11:31:23 AM2/18/10
to Dan, biop...@bioperl.org
Dan,

There aren't direct means of doing this beyond asking whether one feature contains or overlaps another (not very efficient), or querying the a database to find specific overlapping features (much better but requires loading the db). This is something I'm interested in, though, both in context with FeatureIO refactors and as a means to clean up UCSC's 'every transcript is a gene' issues in GTF

chris

Cook, Malcolm

unread,
Feb 18, 2010, 11:45:06 AM2/18/10
to Chris Fields, Dan, biop...@bioperl.org
some pointers

http://code.google.com/p/bedtools/
http://genomewiki.ucsc.edu/index.php/Kent_source_utilities such as overlapSelect


Malcolm Cook
Stowers Institute for Medical Research - Bioinformatics
Kansas City, Missouri USA

Noll, Aaron

unread,
Feb 18, 2010, 12:04:57 PM2/18/10
to Cook, Malcolm, Chris Fields, Dan, biop...@bioperl.org
Also galaxy has some tools if you download their open source python code.

http://bitbucket.org/galaxy/galaxy-central/wiki/GetGalaxy

Dan

unread,
Feb 18, 2010, 11:53:17 AM2/18/10
to biop...@bioperl.org
Great, thanks for the hints. I've used some of Jim Kent's utilities
before which are very useful.

On Feb 18, 4:45 pm, "Cook, Malcolm" <M...@stowers.org> wrote:
> some pointers
>

> http://code.google.com/p/bedtools/http://genomewiki.ucsc.edu/index.php/Kent_source_utilitiessuch as overlapSelect

> > > Bioper...@lists.open-bio.org


> > >http://lists.open-bio.org/mailman/listinfo/bioperl-l
>
> > _______________________________________________
> > Bioperl-l mailing list

> > Bioper...@lists.open-bio.org


> >http://lists.open-bio.org/mailman/listinfo/bioperl-l
>
> _______________________________________________
> Bioperl-l mailing list

> Bioper...@lists.open-bio.orghttp://lists.open-bio.org/mailman/listinfo/bioperl-l

Reply all
Reply to author
Forward
0 new messages