ap.alignFrame.addHistoryItem(cut);
PaintRefresher.Refresh(this, ap.av.getSequenceSetId(), true, true);
- // ap.av.firePropertyChange("alignment", null, ap.av.getAlignment()
- // .getSequences());
+ ap.av.firePropertyChange("alignment", null, ap.av.getAlignment().getSequences());
}
}
import java.util.ArrayList;
import java.util.List;
-import java.util.function.Consumer;
import org.junit.Test;
"Mismatch in number of input and result sequences - assume alignment service wasn't interacted with correctly",
msaservice.getResult(jobid).getSequences().size(),
iseqs.size());
- msaservice.getResult(jobid).getSequences()
- .forEach(new Consumer<FastaSequence>() {
- @Override
- public void accept(FastaSequence t) {
- System.out.println(">"+t.getId());
- System.out.println(t.getFormattedFasta());
- }
- });
+ List<FastaSequence> seqList = msaservice.getResult(jobid).getSequences();
+ for(FastaSequence fSeq : seqList){
+ System.out.println(">"+fSeq.getId());
+ System.out.println(fSeq.getFormattedFasta());
+ }
}
}