| 1 | #!/usr/bin/env perl | ||||||||||
| 2 | |||||||||||
| 3 | 29 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 29 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 29 | ▶ | use v5.10; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 29 | ▶ | use Getopt::Long qw( :config bundling permute no_getopt_compat ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 29 | ▶ | use Pod::Usage; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 29 | ▶ | use rlib '../lib'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 29 | ▶ | use Pod::Usage; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 29 | ▶ | use Bio::BPWrapper; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | 29 | ▶ | use Bio::BPWrapper::AlnManipulations; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | |||||||||||
| 15 | ################################################################################ | ||||||||||
| 16 | # Option parsing | ||||||||||
| 17 | ################################################################################ | ||||||||||
| 18 | 29 | my %opts; | |||||||||
| 19 | 29 | ▶ | GetOptions( | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | \%opts, | ||||||||||
| 21 | "help|h", | ||||||||||
| 22 | "man", | ||||||||||
| 23 | "avpid|a", | ||||||||||
| 24 | "bootstrap|b", | ||||||||||
| 25 | "codon-view|c:20", # Optional value, default 20 | ||||||||||
| 26 | "delete|d=s", | ||||||||||
| 27 | "nogaps|g", | ||||||||||
| 28 | "input|i=s", | ||||||||||
| 29 | "length|l", | ||||||||||
| 30 | "match|m", | ||||||||||
| 31 | "numseq|n", | ||||||||||
| 32 | "output|o=s", | ||||||||||
| 33 | "pick|p=s", | ||||||||||
| 34 | "refseq|r=s", | ||||||||||
| 35 | "slice|s=s", | ||||||||||
| 36 | "split-cdhit=s", | ||||||||||
| 37 | "uniq|u", | ||||||||||
| 38 | "varsites|v", | ||||||||||
| 39 | "window|w:30", | ||||||||||
| 40 | "concat|A", | ||||||||||
| 41 | "conblocks|B:6", | ||||||||||
| 42 | "consensus|C:50", | ||||||||||
| 43 | "dna2pep|D", | ||||||||||
| 44 | "erasecol|E=s", | ||||||||||
| 45 | "noflatname|F", | ||||||||||
| 46 | "aln-index|I=s", | ||||||||||
| 47 | "listids|L", | ||||||||||
| 48 | "permute-states|M", | ||||||||||
| 49 | "pep2dna|P=s", | ||||||||||
| 50 | "resample|R:i", # Optional value, default is floor of num_sequences/2 | ||||||||||
| 51 | "shuffle-sites|S", | ||||||||||
| 52 | "select-third", | ||||||||||
| 53 | "remove-third", | ||||||||||
| 54 | "uppercase", # make upper case (for DNAStatistics) | ||||||||||
| 55 | "gapstates", | ||||||||||
| 56 | "gapstates2", | ||||||||||
| 57 | "random-slice=i", | ||||||||||
| 58 | "trimends", | ||||||||||
| 59 | "bin-inform", # extract binary & informative sites (for clique): discard constant, 3/4-states, non-informative | ||||||||||
| 60 | "version|V", | ||||||||||
| 61 | "binary", # 0/1 for binary sites (for phylip lagacy programs) | ||||||||||
| 62 | "phy-nonint" # non-interleaved phylip (for e.g.,clique) | ||||||||||
| 63 | # "dnadist|D=s", # Needs fixing | ||||||||||
| 64 | # "inform|Z", | ||||||||||
| 65 | ) or pod2usage(2); | ||||||||||
| 66 | |||||||||||
| 67 | 29 | ▶ | use constant PROGRAM => File::Basename::basename(__FILE__); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 68 | 29 | ▶ | Bio::BPWrapper::print_version(PROGRAM) if $opts{"version"}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 69 | |||||||||||
| 70 | 29 | initialize(\%opts); | |||||||||
| 71 | 29 | write_out(\%opts); | |||||||||
| 72 | |||||||||||
| 73 | ################# POD Documentation ############ | ||||||||||
| 74 | |||||||||||
| 75 | __END__ | ||||||||||