Skip to content

Commit

Permalink
storage: Fix compilation issue. #TASK-5448
Browse files Browse the repository at this point in the history
  • Loading branch information
j-coll committed Sep 2, 2024
1 parent 2c63795 commit fc2e0d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1174,14 +1174,14 @@ private RestResponse<VariantSetupResult> setupVariant() throws Exception {
.readValue(new java.io.File(commandOptions.jsonFile), VariantSetupParams.class);
} else {
ObjectMap beanParams = new ObjectMap();
putNestedIfNotNull(beanParams, "expectedSamples",commandOptions.expectedSamples, true);
putNestedIfNotNull(beanParams, "expectedFiles",commandOptions.expectedFiles, true);
putNestedIfNotNull(beanParams, "fileType",commandOptions.fileType, true);
putNestedIfNotEmpty(beanParams, "averageFileSize",commandOptions.averageFileSize, true);
putNestedIfNotNull(beanParams, "variantsPerSample",commandOptions.variantsPerSample, true);
putNestedIfNotNull(beanParams, "averageSamplesPerFile",commandOptions.averageSamplesPerFile, true);
putNestedIfNotNull(beanParams, "dataDistribution",commandOptions.dataDistribution, true);
putNestedIfNotNull(beanParams, "normalizeExtensions",commandOptions.normalizeExtensions, true);
putNestedIfNotNull(beanParams, "expectedSamples", commandOptions.expectedSamples, true);
putNestedIfNotNull(beanParams, "expectedFiles", commandOptions.expectedFiles, true);
putNestedIfNotNull(beanParams, "fileType", commandOptions.fileType, true);
putNestedIfNotEmpty(beanParams, "averageFileSize", commandOptions.averageFileSize, true);
putNestedIfNotNull(beanParams, "variantsPerSample", commandOptions.variantsPerSample, true);
putNestedIfNotNull(beanParams, "averageSamplesPerFile", commandOptions.averageSamplesPerFile, true);
putNestedIfNotNull(beanParams, "dataDistribution", commandOptions.dataDistribution, true);
putNestedIfNotNull(beanParams, "normalizeExtensions", commandOptions.normalizeExtensions, true);

variantSetupParams = JacksonUtils.getDefaultObjectMapper().copy()
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,6 @@ public String generateBlockIdFromSlice(int fileId, String chrom, long slice) {
return generateBlockIdFromSliceAndBatch(getFileBatch(fileId), chrom, slice);
}

public String generateBlockIdFromBatch(int fileBatch) {
StringBuilder sb = new StringBuilder(FILE_BATCH_PAD + 1);
sb.append(StringUtils.leftPad(String.valueOf(fileBatch), FILE_BATCH_PAD, '0'));
sb.append(getSeparator());
return sb.toString();
}

public String generateBlockIdFromSliceAndBatch(int fileBatch, String chrom, long slice) {
String chromosome = Region.normalizeChromosome(chrom);
StringBuilder sb = new StringBuilder(FILE_BATCH_PAD + 1 + chromosome.length() + 1 + POSITION_PAD);
Expand Down

0 comments on commit fc2e0d9

Please sign in to comment.