Skip to content

Commit

Permalink
Stat (#489)
Browse files Browse the repository at this point in the history
* fix #307 by adding median and percentile

* add percentile parameter to change default value 90

* update doc to reflect add of percentile parameter

* add extra space between col1 and col2 to be sure to always separate these to column even if widht is set to low

* increase width of col1
  • Loading branch information
Juke34 authored Sep 12, 2024
1 parent f29a883 commit 0d9182e
Show file tree
Hide file tree
Showing 5 changed files with 591 additions and 310 deletions.
7 changes: 7 additions & 0 deletions bin/agat_sp_statistics.pl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
my $gff = undef;
my $opt_output = undef;
my $opt_yaml = undef;
my $opt_percentile = 90;
my $opt_genomeSize = undef;
my $opt_plot = undef;
my $opt_verbose = 0;
Expand All @@ -23,6 +24,7 @@
'c|config=s' => \$config,
"h|help" => \$opt_help,
'o|output=s' => \$opt_output,
'percentile=i' => \$opt_percentile,
'yaml!' => \$opt_yaml,
'd|p' => \$opt_plot,
'v|verbose' => \$opt_verbose,
Expand Down Expand Up @@ -102,6 +104,7 @@
print "Compute statistics\n";
print_omniscient_statistics ({ input => $hash_omniscient,
genome => $opt_genomeSize,
percentile => $opt_percentile,
output => $out,
yaml => $opt_yaml,
distri => $opt_plot,
Expand Down Expand Up @@ -157,6 +160,10 @@ =head1 OPTIONS
File where will be written the result. If no output file is specified, the output will be written to STDOUT.
=item B<--percentile>
Integer - Percentile to compute. Default is 90.
=item B<--yaml>
Bolean - When this option is activated , a second output will be printed either in STDOUT if no output provided or in <output.yaml> (a .yaml suffix is added to the --output value provided)
Expand Down
4 changes: 4 additions & 0 deletions docs/tools/agat_sp_statistics.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ agat_sp_statistics.pl --help

File where will be written the result. If no output file is specified, the output will be written to STDOUT.

- **--percentile**

Integer - Percentile to compute. Default is 90.

- **--yaml**

Bolean - When this option is activated , a second output will be printed either in STDOUT if no output provided or in <output.yaml> (a .yaml suffix is added to the --output value provided)
Expand Down
Loading

0 comments on commit 0d9182e

Please sign in to comment.