- public static SequenceI[] getNonEmptySequenceSet(SequenceI[] sequences) {
- // Identify first row of alignment with residues for prediction
- boolean ungapped[] = new boolean[sequences.length];
- int msflen=0;
- for (int i=0,j=sequences.length; i<j;i++) {
- String tempseq = jalview.analysis.AlignSeq.extractGaps(jalview.util.Comparison.GapChars, sequences[i].getSequence());
- if (tempseq.length()==0)
- ungapped[i]=false;
- else {
- ungapped[i]=true;
- msflen++;
- }
+ public static SequenceI[] getNonEmptySequenceSet(SequenceI[] sequences)
+ {
+ // Identify first row of alignment with residues for prediction
+ boolean ungapped[] = new boolean[sequences.length];
+ int msflen = 0;
+ for (int i = 0, j = sequences.length; i < j; i++)
+ {
+ String tempseq = jalview.analysis.AlignSeq.extractGaps(
+ jalview.util.Comparison.GapChars,
+ sequences[i].getSequenceAsString());
+
+ if (tempseq.length() == 0)
+ {
+ ungapped[i] = false;