BP_GENBANK2GFF(1p)

πŸ“¦
version 1.7.4 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– 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 appropriate INSERT and UPDATE privileges. 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 is dbi: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 to STDOUT.
  • --adaptor <adaptor> β€” adaptor to use (eg dbi::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 a STDIN pipe (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