BP_LOAD_GFF(1p)
π BP_LOAD_GFF π
okay bestie, so this whole thing is about bp_load_gff.pl β and what it does is load a Bio::DB::GFF database from GFF files. that's it, that's the job. β¨
(the manual page calls it BP_LOAD_GFF(1p) and honestly she's giving very "Perl user-contributed docs" energy, which, slay.)
πΈ SYNOPSIS πΈ
% bp_load_gff.pl -d testdb -u user -p pw
--dsn 'dbi:mysql:database=dmel_r5_1;host=myhost;port=myport'
dna1.fa dna2.fa features1.gff features2.gff ...
π¦ DESCRIPTION π¦
okay so this script fills up a Bio::DB::GFF database with all the features sitting inside a list of GFF files and/or FASTA sequence files. and when I say GFF I mean you HAVE to use the exact variant of GFF that's described in Bio::DB::GFF β no improvising, no freestyling, she's specific like that. π
then there's a whole bunch of command-line options that let you pick which database to load and decide whether an existing database is allowed to be overwritten or not.
this script talks through the Bio::DB::GFF interface, so it works with every database adaptor that module currently supports (MySQL, Oracle, PostgreSQL soon π). but bestie... it's slow. like, lowkey tragic. if you want faster loading, go look at the MySQL-specific bp_bulk_load_gff.pl and bp_fast_load_gff.pl scripts instead. they're the main characters of loading speed fr fr. π₯
π NOTES π
if you hand it a filename of - then the input gets taken from standard input. and compressed files (.gz, .Z, .bz2) get uncompressed automatically for you β she does it herself, no extra steps. π«Ά
FASTA format files get told apart from GFF files by their filename extensions. so files ending in .fa, .fasta, .fast, .seq, .dna β plus all their uppercase variants β get treated as FASTA files. everything else gets treated as a GFF file. no exceptions, no vibes-based guessing.
and if you wanna load -fasta files from STDIN, use the -f command-line swith with an argument of '-', like this:
gunzip my_data.fa.gz | bp_fast_load_gff.pl -d test -f -
β οΈ heads up: on the first load of a database you're gonna see a bunch of "unknown table" errors. that is normal. do not panic, do not spiral, it's just how the first load goes. π
about maxfeature: the default value is 100,000,000 bases. so if you have features that are close to or greater that 100Mb in length, then the value of maxfeature should be increased to 1,000,000,000, or another power of 10. π
β¨ COMMAND-LINE OPTIONS β¨
command-line options can be abbreviated down to single-letter options. e.g. -d instead of --database. yes bestie, she's flexible like that. π
--dsn <dsn>β the data source (defaultdbi:mysql:test)--adaptor <adaptor>β the schema adaptor (defaultdbi::mysqlopt)--user <user>β username for mysql authentication--pass <password>β password for mysql authentication--fasta <path>β fasta file, or a directory containing fasta files, for the DNA--createβ force creation and initialization of the database--maxfeatureβ set the value of the maximum feature size (default100 Mb; must be a power of 10)--groupβ a list of one or more tag names (comma or space separated) to be used for grouping in the 9th column--upgradeβ upgrade an existing database to the current schema--gff3_mungeβ activate GFF3 name munging (see Bio::DB::GFF)--quietβ no progress reports--summaryβ generate summary statistics for drawing coverage histograms. this can be run on a previously loaded database or during the load.
π SEE ALSO π
Bio::DB::GFF, bulk_load_gff.pl, bp_load_gff.pl
π AUTHOR π
Lincoln Stein, lstein@cshl.org
Copyright (c) 2002 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.
okay that's the whole page bestie, you ate it, go load some GFF files πβ¨
perl v5.30.0 Β· 2020-01-13 Β· mwah, that's the tea ππ¦
π¦ 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