1BP_FAST_LOAD_GFF(1) User Contributed Perl Documentation BP_FAST_LOAD_GFF(1)
2
3
4
6 bp_fast_load_gff.pl - Fast-load a Bio::DB::GFF database from GFF files.
7
9 % bp_fast_load_gff.pl -d testdb dna1.fa dna2.fa features1.gff features2.gff ...
10
12 This script loads a Bio::DB::GFF database with the features contained
13 in a list of GFF files and/or FASTA sequence files. You must use the
14 exact variant of GFF described in Bio::DB::GFF. Various command-line
15 options allow you to control which database to load and whether to
16 allow an existing database to be overwritten.
17
18 This script is similar to load_gff.pl, but is much faster. However, it
19 is hard-coded to use MySQL and probably only works on Unix platforms
20 due to its reliance on pipes. See bp_load_gff.pl for an incremental
21 loader that works with all databases supported by Bio::DB::GFF, and
22 bp_bulk_load_gff.pl for a fast MySQL loader that supports all
23 platforms.
24
25 NOTES
26 If the filename is given as "-" then the input is taken from standard
27 input. Compressed files (.gz, .Z, .bz2) are automatically uncompressed.
28
29 FASTA format files are distinguished from GFF files by their filename
30 extensions. Files ending in .fa, .fasta, .fast, .seq, .dna and their
31 uppercase variants are treated as FASTA files. Everything else is
32 treated as a GFF file. If you wish to load -fasta files from STDIN,
33 then use the -f command-line swith with an argument of '-', as in
34
35 gunzip my_data.fa.gz | bp_fast_load_gff.pl -d test -f -
36
37 The nature of the load requires that the database be on the local
38 machine and that the indicated user have the "file" privilege to load
39 the tables and have enough room in /usr/tmp (or whatever is specified
40 by the \$TMPDIR environment variable), to hold the tables transiently.
41 If your MySQL is version 3.22.6 and was compiled using the "load local
42 file" option, then you may be able to load remote databases with local
43 data using the --local option.
44
45 About maxfeature: the default value is 100,000,000 bases. If you have
46 features that are close to or greater that 100Mb in length, then the
47 value of maxfeature should be increased to 1,000,000,000. This value
48 must be a power of 10.
49
50 If the list of GFF or fasta files exceeds the kernel limit for the
51 maximum number of command-line arguments, use the --long_list
52 /path/to/files option.
53
54 The adaptor used is dbi::mysqlopt. There is currently no way to change
55 this.
56
58 Command-line options can be abbreviated to single-letter options. e.g.
59 -d instead of --database.
60
61 --database <dsn> Mysql database name
62 --create Reinitialize/create data tables without asking
63 --local Try to load a remote database using local data.
64 --user Username to log in as
65 --fasta File or directory containing fasta files to load
66 --password Password to use for authentication
67 --long_list Directory containing a very large number of
68 GFF and/or FASTA files
69 --maxfeature Set the value of the maximum feature size (default 100Mb; must be a power of 10)
70 --group A list of one or more tag names (comma or space separated)
71 to be used for grouping in the 9th column.
72 --gff3_munge Activate GFF3 name munging (see Bio::DB::GFF)
73 --Temporary Location of a writable scratch directory
74
76 Bio::DB::GFF, bulk_load_gff.pl, load_gff.pl
77
79 Lincoln Stein, lstein@cshl.org
80
81 Copyright (c) 2002 Cold Spring Harbor Laboratory
82
83 This library is free software; you can redistribute it and/or modify it
84 under the same terms as Perl itself. See DISCLAIMER.txt for
85 disclaimers of warranty.
86
87
88
89perl v5.12.0 2010-04-29 BP_FAST_LOAD_GFF(1)