Copyright [2015-2017] EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Bio::DB::Big::AutoSQL
my $raw_autosql = $bb->get_autosql(); my $as = Bio::DB::Big::AutoSQL->new($raw_autosql); foreach my $field (@{$as->fields()}) { printf("%d: %s (%s)\n", $field->position(), $field->name(), $field->type()); }
Provides access to an AutoSQL definition by parsing a raw AutoSQL file into this object (representing the overall definition) and a series of Bio::DB::Big::AutoSQLField objects. Fields can be looped over in the order they appear or can be retrieved by name.
Create a new object. Must give it an AutoSQL definition otherwise the library will throw an exception. The given string is also chomped.
Give a hash where keys are alternative names and values are the target conversion name. The idea is you use the target conversion names at all times and the library will attempt to use this to translate between the two.
Getter for the raw AutoSQL definition
Getter for the name found in this AutoSQL definition
Getter for the type found in this AutoSQL definition
Getter for the comment found in this AutoSQL definition
Access an array of Bio::DB::Big::AutoSQLField objects parsed from the given AutoSQL definition
Returns a Bio::DB::Big::AutoSQLField object for the given name. Returns undef if the field is unavailable.
Return a boolean response if the given field is found in the parsed AutoSQL definition.
Returns a boolean if this AutoSQL object represents a table i.e. the type is set to table
To install Bio::DB::Big, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::DB::Big
CPAN shell
perl -MCPAN -e shell install Bio::DB::Big
For more information on module installation, please visit the detailed CPAN module installation guide.