added logic for forcing either input sequence file or input pdb directory