示例#1
0
 public String getEmbeddingResultsFilePath(String extension) {
   if (clusteringData.getThreeDEmbedder() == null) throw new IllegalStateException();
   return Settings.destinationFile(
       dataset,
       getEncodedSettingsIncludingFeatures(clusteringData.getThreeDEmbedder())
           + ".embed."
           + extension);
 }
示例#2
0
 public String getAlignSDFilePath() {
   if (clusteringData.getDatasetClusterer() == null || clusteringData.getThreeDAligner() == null)
     throw new IllegalStateException();
   return Settings.destinationFile(
       dataset,
       getEncodedSettingsIncludingFeatures(
               clusteringData.getDatasetClusterer(), clusteringData.getThreeDAligner())
           + ".align.sdf");
 }
示例#3
0
 public String get3DBuilderSDFilePath(ThreeDBuilder builder) {
   if (clusteringData != null
       && clusteringData.getThreeDBuilder() != null
       && clusteringData.getThreeDBuilder() != builder)
     throw new IllegalStateException(
         "set appropriate builder, already set "
             + clusteringData.getThreeDBuilder()
             + " != "
             + builder);
   return Settings.destinationFile(dataset, getEncodedSettings(builder) + ".3d.sdf");
 }
示例#4
0
 private String getEncodedSettingsIncludingFeatures(Algorithm... algs) {
   if (algs == null) algs = new Algorithm[0];
   if (ArrayUtil.indexOf(algs, clusteringData.getThreeDBuilder()) == -1)
     for (CompoundProperty p : clusteringData.getFeatures())
       if (p.getCompoundPropertySet().isSensitiveTo3D()) {
         algs =
             ArrayUtil.concat(
                 Algorithm.class, algs, new Algorithm[] {clusteringData.getThreeDBuilder()});
         break;
       }
   String skipped = "";
   if (clusteringData.isSkippingRedundantFeatures()) skipped += "skippedRedundantFeatures";
   return CompoundPropertyUtil.getSetMD5(
       clusteringData.getFeatures(), skipped + getEncodedSettings(algs));
 }
示例#5
0
 public String getFeatureValuesFilePath(CompoundPropertySet cps) {
   String enc =
       (clusteringData != null && cps.isSensitiveTo3D())
           ? (getEncodedSettings(clusteringData.getThreeDBuilder()) + ".")
           : "";
   return Settings.destinationFile(dataset, enc + cps.getNameIncludingParams());
 }
示例#6
0
 public String getAlignResultsPerClusterFilePath(int clusterIndex, String params) {
   return Settings.destinationFile(
       dataset,
       getEncodedSettingsIncludingFeatures(clusteringData.getDatasetClusterer())
           + "."
           + StringUtil.getMD5(clusterIndex + params)
           + ".cluster");
 }
示例#7
0
 public String getClusterAssignmentFilePath() {
   if (clusteringData.getDatasetClusterer() == null) throw new IllegalStateException();
   return Settings.destinationFile(
       dataset,
       getEncodedSettingsIncludingFeatures(clusteringData.getDatasetClusterer()) + ".cluster");
 }