Bio::G...nSearch(3pm)
π Bio::Graphics::Browser2::RegionSearch β bestie edition π
okay so this is Bio::Graphics::Browser2::RegionSearch, straight outta the User Contributed Perl Documentation. It's a Perl module, it lives in Bio::G...nSearch(3pm), and it's literally here to search through multiple databases for feature matches. slay. π¦
β¨ NAME β¨
Bio::Graphics::Browser2::RegionSearch β Search through multiple databases for feature matches. π
πΈ SYNOPSIS πΈ
my $dbs = Bio::Graphics::Browser2::RegionSearch->new(
{ source => $data_source,
state => $session_state
});
$dbs->init_databases();
my $features = $dbs->search_features({-search_term=>'sma-3'});
that's the whole vibe right there. make the object, init the dbs, search the features. no cap. β¨
π DESCRIPTION π
so this implements a feature search based on the heuristics in Bio::Graphics::Browser2::Region. and the search? it's distributed across all local and remote databases as specified in the data source. she's everywhere. main character energy fr fr. π
π METHODS π
the remainder of this document describes the methods available to the programmer. iykyk. π
π«Ά $db = Bio::Graphics::Browser2::RegionSearch->new({opts})
Create a new RegionSearch object. the required parameters are:
sourceβ theBio::Graphics::Browser2::DataSourceobject describing the local and remote databases for this source.stateβ the page_settings document describing the current state of the user session (for looking upsearch_optionsand the like in the future).
π§ $db->init_databases(\@labels)
This method will initialize all the databases in preparation for a search. Pass it a list of track labels to search only in the databases defined by those tracks. Otherwise it will sort all tracks into local and remote ones. lowkey the multitasker of the module. π
β $source = source()
Return the data source.
π state()
π remote_dbs()
π local_dbs()
(yes bestie, those three are just listed like that, they're methods, go off π)
π« @features = $db->features(@args)
Pass @args to the underlying db adaptors' features() methods and return all matching features. Example:
@features = $db->features(-type=>'CDS')
π¦ $meta_segment = $db->segment($segment)
Given an existing segment, return a Bio::Graphics::Browser2::MetaSegment object, which behaves more or less like a regular Bio::Das::SegmentI object, but searches multiple databases. Both iterative and non-iterative feature fetching is supported.
(the class definitions for Bio::Graphics::Browser2::MetaSegment are located in the Bio/Graphics/Browser/RegionSearch.pm file.) π
πΈ $segment = $db->feature2segment($feature)
Converts a feature into a segment in the database that the feature corresponds to.
π @segments = $db->features2segments($feature)
As above, but takes an arrayref of features and returns an array of segments.
π₯ $found = $db->search_features($args)
This method will search all the databases for features matching the search term and will return the results as an array ref of Bio::SeqFeatureI objects. The arguments are a hash ref containing the various options passed to the db adaptors' features() method (e.g. "-type"), or a hashref with the key "-search_term", in which case the search term is parsed as any of gbrowse's heuristic keyword searches.
If no args are provided, then the search term is taken from the "name" field of the settings object.
π $found = $db->search_features_locally($args)
Search only the local databases for the term.
$Args is a hashref:
-search_termβ term to search for-shortcircuitβ stop searching if term is found in default db
If -shortcircuit is not provided, it defaults to true.
π $found = $db->search_features_remotely($args)
Search only the remote databases for the term.
π $db->add_dbid_to_features($db,$features)
Add a gbrowse_dbid() method to each of the features in the list.
β¨ $mapper = $search->coordinate_mapper($segment,$optimize)
Create a Bio::Graphics coordinator mapper on the current segment. If optimize set to true, then features that map outside the current segment's seqid and region are nulled.
π SEE ALSO π
Bio::Graphics::Browser2::RegionBio::Graphics::BrowserBio::Graphics::Feature
go read those too bestie, they're the friend group π
π«Ά AUTHOR π«Ά
Lincoln Stein <lincoln.stein@gmail.com>.
Copyright (c) 2008 Cold Spring Harbor Laboratory & Ontario Institute for Cancer Research
This package and its accompanying libraries is free software; you can redistribute it and/or modify it under the terms of the GPL (either version 1, or at your option, any later version) or the Artistic License 2.0. Refer to LICENSE for the full license text. In addition, please see DISCLAIMER.txt for disclaimers of warranty.
fr fr, readLICENSEandDISCLAIMER.txtbefore you go doing anything wild with this. legal girlies stay winning π
and that's the whole page, bestie!! this one came from perl v5.40.0, dated 2024-10-20, and it's the Bio::G...nSearch(3pm) manpage. mwah. πβ¨ππ¦πΈ
π¦ where this page comes from
- ubuntu questing: gbrowse 2.56+dfsg-12build4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms