BP_GENBANK2GFF(1p)
π BP_GENBANK2GFF(1p) π
okay bestie, welcome to bp_genbank2gff.pl β yes that's the whole name, and yes it slaps. it's a Perl script, it lives in the user-contributed Perl docs section of your manual, and it's about to load a whole GenBank file into a database like it's nothing. no cap. π§¬β¨
πΈ NAME πΈ
bp_genbank2gff.pl β literally just here to load a Bio::DB::GFF database from GENBANK files. that's the job. that's the whole vibe. π
β¨ SYNOPSIS β¨
the three ways you can pull up, fr fr:
% bp_genbank2gff.pl -d genbank -f localfile.gb
% bp_genbank2gff.pl -d genbank --accession AP003256
% bp_genbank2gff.pl --accession AP003256 --stdout
π¦ DESCRIPTION π¦
so what this script does is load a Bio::DB::GFF database with all the features that are chillin' inside either a local genbank file or an accession that it goes and fetches from genbank. and there's a whole menu of command-line options letting you pick which database gets loaded and whether you're allowed to just bulldoze an existing database that's already sitting there. choices, bestie. we love options. π
heads up though β the database has to already exist, and the current user needs to actually have the appropriateINSERTandUPDATEprivileges. like, you can't just waltz in. π
and the --create option? that one will initialize a brand new database with the appropriate schema β and it deletes any tables that were already there. so if there was stuff in there, it's gone gone. dramatic but true. π
π COMMAND-LINE OPTIONS π
little pro tip: command-line options can be abbreviated to single-letter options. e.g. -d instead of --database. short queen energy.
--createβ force creation and initialization of database. fresh start, no notes.--dsn<dsn>β data source. default isdbi:mysql:test.--user<user>β username for mysql authentication.--pass<password>β password for mysql authentication.--proxy<proxy>β proxy server to use for remote access.--stdoutβ direct output toSTDOUT.--adaptor<adaptor>β adaptor to use (egdbi::mysql,dbi::pg,dbi::oracle).--viralβ the genome you are loading is viral (changes tag choices).--source<source>β source field for features ['genbank'].
then, bestie, you pick EITHER one of these:
--fileβ arguments that follow are Genbank/EMBL file names.--gb_folderβ what follows is a folder full of gb files to process.--accessionβ arguments that follow are genbank accession numbers (not gi!).--acc_fileβ accession numbers (not gi!) in a file (one per line, no punc.).--acc_pipeβ accession numbers (not gi!) from aSTDINpipe (one per line).
ok the not gi! thing is in there three whole times, so we're saying it three whole times. it's not gi. remember it. π
π SEE ALSO π
go check out Bio::DB::GFF, bulk_load_gff.pl, and load_gff.pl. the whole friend group. π«Ά
π AUTHOR π
Scott Cain, cain@cshl.org
Copyright (c) 2003 Cold Spring Harbor Laboratory
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See DISCLAIMER.txt for disclaimers of warranty.
and that's the page, bestie π this was perl v5.30.0, dated 2020-01-13, filed under BP_GENBANK2GFF(1p) β mwah, iconic, go load some genomes. ππΈπ¦
π¦ where this page comes from
- debian bookworm: libbio-db-gff-perl 1.7.4-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libbio-db-gff-perl 1.7.4-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libbio-db-gff-perl 1.7.4-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libbio-db-gff-perl 1.7.4-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms