-
-
Save ulikoehler/5026317 to your computer and use it in GitHub Desktop.
Option parsing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Parse CLI arguments | |
use Getopt::Std; | |
my %options=(); | |
getopts("f:d:t:l:o:",\%options); | |
my $pdbId = %options{f}; | |
my $contactDistance = %options{d}; | |
my $atomType = %options{t}; | |
my $localContactSequenceDist = %options{l}; | |
my $outputFile = %options{o} || "sscc.jpg"; | |
die "No pdb id\n" unless $pdbId; | |
die "No contact distance\n" unless $contactDistance; | |
die "No atom type\n" unless $atomType; | |
die "No local contact dist\n" unless $localContactSequenceDist; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment