databaseFile = FileUtils.createTempFile("database", ".sto");
AlignmentI al = af.getViewport().getAlignment();
AlignmentI copy = new Alignment(al);
- List<SequenceI> hmms = copy.getHmmSequences();
- for (SequenceI hmmSeq : hmms)
- {
- copy.deleteSequence(hmmSeq);
- }
+ deleteHmmSequences(copy);
exportStockholm(copy.getSequencesArray(), databaseFile, null);
}
*/
databaseFile = FileUtils.createTempFile("database", ".fa");
AlignmentI al = af.getViewport().getAlignment();
- deleteHmmSequences(al);
- exportFasta(al, databaseFile);
+ AlignmentI copy = new Alignment(al);
+ deleteHmmSequences(copy);
+ exportFasta(copy, databaseFile);
}
args.add(getFilePath(seqFile, true));