{
static final String HMMALIGN = "hmmalign";
- static final String ARG_TRIM = "--trim";
-
private final AlignmentI dataset;
/**
af.setProgressBar(MessageManager.getString("status.running_hmmalign"),
msgId);
+ // ensure alignments are the same length
+ alignment.padGaps();
+
AlignmentView msa = af.gatherSequencesForAlignment();
SequenceI[][] subAlignments = msa.getVisibleContigs(alignment.getGapCharacter());
}
}
args.add("-o");
- args.add(resultFile.getAbsolutePath());
- args.add(modelFile.getAbsolutePath());
- args.add(alignmentFile.getAbsolutePath());
+ args.add(getFilePath(resultFile, true));
+ args.add(getFilePath(modelFile, true));
+ args.add(getFilePath(alignmentFile, true));
return runCommand(args);
}
private SequenceI[] importData(File resultFile,
List<AlignmentOrder> allOrders) throws IOException
{
- StockholmFile file = new StockholmFile(resultFile.getAbsolutePath(),
+ StockholmFile file = new StockholmFile(getFilePath(resultFile, false),
DataSourceType.FILE);
SequenceI[] result = file.getSeqsAsArray();
AlignmentOrder msaorder = new AlignmentOrder(result);