Bio::G...tureDir(3pm)
π NAME π
Bio::Graphics::FeatureDir β it's literally a whole directory of feature files and conf files, bestie. Like a little folder that's got main character energy π
(also hi, this is the manual page for Bio::Graphics::FeatureDir(3pm), from the User Contributed Perl Documentation, and it's giving iconic)
β¨ SYNOPSIS β¨
my $fd = Bio::Graphics::FeatureDir->new('/path/to/dir');
$fd->add_file('tracks.conf');
$fd->add_file('foo.gff3');
$fd->add_file('foo.wig');
$fd->add_fh(\*STDIN);
my $option = $fd->setting('EST' => 'bgcolor');
my @features = $fd->get_features_by_name('M101');
π¦ DESCRIPTION π¦
Okay so this class? It implements most of the methods of Bio::Graphics::FeatureFile, but instead of just vibing with everything in one place, it stores the data files and features in a directory indexed by the Bio::DB::SeqFeature::Store::berkeleydb adaptor. And because of thatβ¦ it's fast. No cap. β‘
πΈ Methods πΈ
$fd = Bio::Graphics::FeatureDir->new('/path/to/dir');$fd = Bio::Graphics::FeatureDir->new(-dir => '/path/to/dir');
Create a new FeatureDir, based in the directory you pointed at. And bestie, it's not just the -dir directory argument β it also takes any of the options you could pass to Bio::Graphics::FeatureFile, except for the -file and -text arguments. Those two? Not invited. π
βοΈ
$db->_init_featuredbβ Internal method, iykyk. It initializes the underlying feature database. You don't call this one yourself, it's the behind-the-scenes bestie.$db->_init_confβ Another internal method β this one initializes the configuration file(s). β¨$created = $db->_maybe_create_dir($dir)β Creates$dirand all its parents if it doesn't already exist. Returns true if the directory got created. And heads up: it throws an exception on filesystem errors. π$dir = $db->dirβ Returns the base directory. Simple, iconic, we love her.$conf = $db->confβ Returns the underlyingBio::Graphics::FeatureFileobject.$db = $db->dbβ Returns the underlyingBio::DB::SeqFeature::Storeobject.$db->add_file($file)β Add the file to the directory. It can add files of type.fa,.gff,.gff3,.confand.ff. Periodt. π$db->add_fh(\*FILEHANDLE [,'name'])β Add the contents of the indicated filehandle to the repository. The name is optional; if you do provide it, it'll be used as the base for all files created. π«Ά
π SEE ALSO π
Bio::Graphics::Feature, Bio::Graphics::FeatureFile
π AUTHOR π
Lincoln Stein <lincoln.stein@gmail.com>.
Copyright (c) 2009 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.
π POD ERRORS π
Hey! The above document had some coding errors, which are explained below:
- Around line 160:
'=item' outside of any '=over'
- Around line 272:
=cut found outside a pod block. Skipping to next block.
- Around line 274:
You forgot a '=back' before '=head1'
ngl bestie, even the docs had a little stumble, and honestly? Relatable. π
and that's a wrap, angel π this page came to you from perl v5.30.0, dated 2019-11-25, stay slaying, go read some features β¨
π¦ where this page comes from
- debian bookworm: libbio-graphics-perl 2.40-6 Β· Perl
- debian trixie: libbio-graphics-perl 2.40-6 Β· Perl
- ubuntu jammy: libbio-graphics-perl 2.40-6 Β· Perl
- ubuntu noble: libbio-graphics-perl 2.40-6 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms