Skip to content

Commit

Permalink
Merge branch 'TASK-6345' into TASK-6345-3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pfurio committed Jul 9, 2024
2 parents 7d04fbd + 0b95dab commit 5bc4e8a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ private void validateProjectForCreation(String organizationId, Project project)
}
try {
CellBaseConfiguration cellBaseConfiguration = ParamUtils.defaultObject(project.getCellbase(),
new CellBaseConfiguration(ParamConstants.CELLBASE_URL, ParamConstants.CELLBASE_VERSION));
new CellBaseConfiguration(ParamConstants.CELLBASE_URL, ParamConstants.CELLBASE_VERSION,
ParamConstants.CELLBASE_DATA_RELEASE, ParamConstants.CELLBASE_APIKEY));
cellBaseConfiguration = CellBaseValidator.validate(cellBaseConfiguration, project.getOrganism().getScientificName(),
project.getOrganism().getAssembly(), true);
project.setCellbase(cellBaseConfiguration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public class ParamConstants {
private static final String UP_TO_100 = " up to a maximum of 100";

public static final String CELLBASE_URL = "https://ws.zettagenomics.com/cellbase";
public static final String CELLBASE_VERSION = "v5.2";
public static final String CELLBASE_DATA_RELEASE = "3";
public static final String CELLBASE_VERSION = "v5.8";
public static final String CELLBASE_DATA_RELEASE = "7";
public static final String CELLBASE_APIKEY = "";

public static final String POP_FREQ_1000G_CB_V4 = "1kG_phase3";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public class CellBaseConfiguration {
private String apiKey;

public CellBaseConfiguration() {
this(ParamConstants.CELLBASE_URL, ParamConstants.CELLBASE_VERSION);
this(ParamConstants.CELLBASE_URL, ParamConstants.CELLBASE_VERSION, ParamConstants.CELLBASE_DATA_RELEASE,
ParamConstants.CELLBASE_APIKEY);
}

public CellBaseConfiguration(String url, String version) {
Expand Down

0 comments on commit 5bc4e8a

Please sign in to comment.