Skip to content

Commit

Permalink
Allow the FASTA file to have extension .faa
Browse files Browse the repository at this point in the history
  • Loading branch information
alchemistmatt committed Apr 10, 2018
1 parent c1122ff commit fe80a06
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,10 @@ private CompactFastaSequence(String filepath, String alphabet) {
String basepath = filepath.substring(0, filepath.length() - extension.length() - 1);

this.baseFilepath = basepath;
if (!extension.equalsIgnoreCase("fasta") && !extension.equalsIgnoreCase("fa")) {
System.err.println("Input error: not a fasta file");
if (!extension.equalsIgnoreCase("fasta") &&
!extension.equalsIgnoreCase("fa") &&
!extension.equalsIgnoreCase("faa")) {
System.err.println("Input error: not a fasta file (extension must be .fasta or .fa or .faa)");
System.exit(-1);
}

Expand Down

0 comments on commit fe80a06

Please sign in to comment.