Skip to content

Commit

Permalink
master: use VariantSampleIndexParams class, #TASK-6219
Browse files Browse the repository at this point in the history
  • Loading branch information
pfurio committed Feb 25, 2025
1 parent 77f6118 commit 25ed470
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.opencb.opencga.core.exceptions.ToolException;
import org.opencb.opencga.core.models.common.Enums;
import org.opencb.opencga.core.models.job.Job;
import org.opencb.opencga.core.models.operations.variant.VariantSecondarySampleIndexParams;
import org.opencb.opencga.core.models.organizations.Organization;
import org.opencb.opencga.core.models.project.Project;
import org.opencb.opencga.core.models.study.Study;
Expand Down Expand Up @@ -314,8 +315,10 @@ public OperationExecutionConfig getConfig() {

@Override
public void addSpecificParams(Map<String, Object> params) {
params.put("sample", ParamConstants.ALL);
params.put("familyIndex", true);
VariantSecondarySampleIndexParams variantSecondarySampleIndexParams = new VariantSecondarySampleIndexParams()
.setSample(Collections.singletonList(ParamConstants.ALL))
.setFamilyIndex(true);
params.putAll(variantSecondarySampleIndexParams.toParams());
}
}

Expand Down

0 comments on commit 25ed470

Please sign in to comment.