JAL-2629 revert to showing Profile parameter even if only 1 choice
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 10 May 2018 14:30:43 +0000 (15:30 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 10 May 2018 14:30:43 +0000 (15:30 +0100)
src/jalview/hmmer/HMMERParamStore.java

index 37ad435..fbab7a9 100644 (file)
@@ -199,14 +199,14 @@ public final class HMMERParamStore implements ParamDatastoreI
 
   /**
    * Adds an argument representing the choice of HMM sequences (profiles)
-   * against which to perform align or search, provided more than one is found
+   * against which to perform align or search, provided at least one is found
    * 
    * @param args
    */
   protected void addChoiceOfHmm(List<ArgumentI> args)
   {
     List<SequenceI> hmms = viewport.getAlignment().getHmmSequences();
-    if (hmms.size() > 1)
+    if (!hmms.isEmpty())
     {
       List<String> options = new ArrayList<>();
       for (SequenceI hmmSeq : hmms)