/
biodb-to-json.pl
executable file
·68 lines (40 loc) · 1.47 KB
/
biodb-to-json.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env perl
use strict;
use FindBin qw($RealBin);
use lib "$RealBin/../src/perl5";
use JBlibs;
use Bio::JBrowse::Cmd::BioDBToJson;
exit Bio::JBrowse::Cmd::BioDBToJson->new(@ARGV)->run;
__END__
=head1 NAME
biodb-to-json.pl - format JBrowse JSON as described in a configuration file
=head1 DESCRIPTION
Reads a configuration file, in a format currently documented in
docs/config.html, and formats JBrowse JSON from the data sources
defined in it.
=head1 USAGE
bin/biodb-to-json.pl \
--conf <conf file> \
[--ref <ref seq names> | --refid <ref seq ids>] \
[--track <track name>] \
[--out <output directory>] \
[--compress]
# format the example volvox track data
bin/biodb-to-json.pl --conf docs/tutorial/conf_files/volvox.json
=head2 OPTIONS
=over 4
=item --help | -? | -h
Display an extended help screen.
=item --quiet | -q
Quiet. Don't print progress messages.
=item --conf <conf file>
Required. Path to the configuration file to read. File must be in JSON format.
=item --ref <ref seq name> | --refid <ref seq id>
Optional. Single reference sequence name or id for which to process data.
By default, processes all data.
=item --out <output directory>
Directory where output should go. Default: data/
=item --compress
If passed, compress the output with gzip (requires some web server configuration to serve properly).
=back
=cut