Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK-5120 - Port Patch 2.8.5 -> 2.12.0 (XB 1.6.5 - > 1.10.0) #2353

Merged
merged 85 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
36027f2
app: use the full qualified names for study IDs when calculating pedi…
jtarraga Jul 18, 2023
d3d0328
storage: Fix aggregation on consecutive SNV and INS #TASK-4684
j-coll Jul 28, 2023
e360776
storage: Allow reloading an indexed variant file. #TASK-4684
j-coll Jul 28, 2023
7b0a294
CLI: Fix CustomFilesCommandExecutor upload problems #4843
juanfeSanahuja Aug 11, 2023
a3de4e1
Prepare next release 2.8.4-SNAPSHOT
juanfeSanahuja Aug 11, 2023
eb632fa
storage: Fix OOME on CatalogStorageMetadataSynchronizer for very larg…
j-coll Aug 14, 2023
4aeaa83
core: Fix cellbase validator to acknowledge tokens. #TASK-4913
j-coll Aug 30, 2023
368084d
core: Do not validate empty string tokens. #TASK-4913
j-coll Aug 30, 2023
8abd155
core: Improve exception message #TASK-4913
j-coll Aug 31, 2023
483d556
core: Fix validation test #TASK-4913
j-coll Aug 31, 2023
abd4e68
Merge pull request #2329 from opencb/TASK-4913
j-coll Sep 1, 2023
85644ed
Merge branch 'release-2.8.x' into TASK-4843
juanfeSanahuja Sep 6, 2023
a270dff
Merge branch 'TASK-4688' into TASK-4688-2.8.4
j-coll Sep 15, 2023
b596f37
Merge pull request #2335 from opencb/TASK-4688-2.8.4
j-coll Sep 19, 2023
465289a
storage: Do not modify the input query at VariantStorageEngine::count…
j-coll Sep 19, 2023
759d74d
server: Fix meta/status cache update. #TASK-4945
j-coll Sep 20, 2023
fedb939
server: Populate status with async check. #TASK-4945
j-coll Sep 20, 2023
60b74ab
storage: Fix NPE executing SampleIndexDuplicatedVariantsTest tests. #…
j-coll Sep 20, 2023
4a38bbd
Merge pull request #2340 from opencb/TASK-5027
j-coll Sep 22, 2023
ecdcd82
Merge branch 'release-2.8.x' into TASK-4938
j-coll Sep 22, 2023
df43507
Merge branch 'release-2.8.x' into TASK-4853
j-coll Sep 22, 2023
04c6213
Merge branch 'release-2.8.x' into TASK-4945
j-coll Sep 22, 2023
d282df8
Merge pull request #2338 from opencb/TASK-4938
j-coll Sep 22, 2023
d2cb09a
Merge pull request #2339 from opencb/TASK-4945
j-coll Sep 22, 2023
c2bc6c7
storage: Fix NPE at variant-secondary-sample-index with partial famil…
j-coll Sep 25, 2023
9ee46e9
Merge branch 'release-2.8.x' into TASK-4853
j-coll Sep 26, 2023
29104d2
Merge pull request #2324 from opencb/TASK-4853
j-coll Sep 26, 2023
db992c5
catalog: improve delete error messages, #TASK-4210
pfurio Sep 26, 2023
8c4e7a9
Merge branch 'release-2.8.x' into TASK-4843
juanfeSanahuja Sep 26, 2023
b11d9a8
storage: Fix NPE when updating cellbase configuration on empty varian…
j-coll Sep 26, 2023
3c931ca
Merge pull request #2323 from opencb/TASK-4843
juanfeSanahuja Sep 27, 2023
f583161
analysis: update signature.tools.lib to v2.4.2 and add paramter -comm…
jtarraga Sep 27, 2023
6d67420
Merge pull request #2343 from opencb/TASK-4210
pfurio Sep 27, 2023
460eb10
storage: Do not update the largestVariantSize for every sample for ev…
j-coll Sep 27, 2023
aacff15
app: update opencga-ext-tools dockerfile, #TASK-5038
jtarraga Sep 28, 2023
c220c23
Merge branch 'release-2.8.x' into TASK-5038
jtarraga Sep 29, 2023
80eeabe
Merge pull request #2346 from opencb/TASK-5038
jtarraga Sep 29, 2023
768b14f
Merge branch 'release-2.8.x' into TASK-4684
j-coll Sep 29, 2023
d420a45
catalog: fix junit test, #TASK-5083
pfurio Oct 2, 2023
2d6366b
catalog: change fail for MatcherAssert, #TASK-5083
pfurio Oct 2, 2023
554d79b
Merge pull request #2321 from opencb/TASK-4684
j-coll Oct 2, 2023
8ba86bb
Merge pull request #2347 from opencb/TASK-5083
pfurio Oct 2, 2023
1eb3fc4
Merge branch 'release-2.8.x' into TASK-4872
j-coll Oct 2, 2023
cb4d77b
migration: update pedigree graph migration, #TASK-4770
jtarraga Oct 2, 2023
53e5783
Merge branch 'release-2.8.x' into TASK-4873
j-coll Oct 3, 2023
654a052
Merge pull request #2342 from opencb/TASK-4872
j-coll Oct 3, 2023
50dd351
app: Fix CLI Generators to correctly call extended commands. #TASK-4889
j-coll Oct 3, 2023
d693a3b
app: Regenerate clients #TASK-4889
j-coll Oct 3, 2023
89912a6
Merge branch 'release-2.8.x' into TASK-4889
j-coll Oct 3, 2023
469c293
Merge pull request #2344 from opencb/TASK-4873
j-coll Oct 3, 2023
12cb891
storage: Add a counter of updated samples for each variant-index #TAS…
j-coll Oct 3, 2023
567304a
app: Fix migration version on MarkUnknownLargestVariantLength #TASK-4899
j-coll Oct 3, 2023
56b67e1
Merge branch 'release-2.8.x' into TASK-4770
jtarraga Oct 4, 2023
ed3533e
Merge pull request #2314 from opencb/TASK-4770
jtarraga Oct 4, 2023
93fa168
cicd: Add build to fix delete docker #TASK-5092
juanfeSanahuja Oct 4, 2023
a4eca0a
Merge pull request #2348 from opencb/TASK-4889
j-coll Oct 4, 2023
a3f5453
Merge branch 'release-2.8.x' into TASK-4899
j-coll Oct 4, 2023
dca018d
cicd: Add build to fix delete docker #TASK-5092
juanfeSanahuja Oct 4, 2023
28b20e8
Merge pull request #2349 from opencb/TASK-5092
juanfeSanahuja Oct 4, 2023
968381e
cicd: workflow_dispatch: #TASK-5092
juanfeSanahuja Oct 4, 2023
329cdcf
Merge pull request #2345 from opencb/TASK-4899
j-coll Oct 4, 2023
6a24ce5
cicd: Manueal ext-tools workflow
juanfeSanahuja Oct 4, 2023
3c386f5
Merge branch 'release-2.8.x' of github.com:opencb/opencga into releas…
juanfeSanahuja Oct 4, 2023
aa049e3
client: Regenerate autogenerated code for release 2.8.4 Xetabase 1.6.5
juanfeSanahuja Oct 4, 2023
0049ae6
client: Regenerate autogenerated code for release 2.8.4 Xetabase 1.6.5
juanfeSanahuja Oct 4, 2023
d42cd6a
client: Regenerate autogenerated code for release 2.8.4 Xetabase 1.6.5
juanfeSanahuja Oct 4, 2023
11a7c9d
cicd: undo step by step #TASK-5092
juanfeSanahuja Oct 4, 2023
7513399
cicd: undo step by step #TASK-5092
juanfeSanahuja Oct 4, 2023
146499f
cicd: github.ref_name #TASK-5092
juanfeSanahuja Oct 4, 2023
4220c82
cicd: simplify build #TASK-5092
juanfeSanahuja Oct 4, 2023
cb7bff1
cicd: simplify build #TASK-5092
juanfeSanahuja Oct 5, 2023
5003c43
cicd: simplify build #TASK-5092
juanfeSanahuja Oct 5, 2023
e01b7ff
cicd: added credentials to CLI #TASK-5092
juanfeSanahuja Oct 5, 2023
b282cd8
cicd: added credentials to CLI #TASK-5092
juanfeSanahuja Oct 5, 2023
a39f410
cicd: added credentials to CLI #TASK-5092
juanfeSanahuja Oct 5, 2023
67d4e3d
cicd: added credentials to CLI #TASK-5092
juanfeSanahuja Oct 5, 2023
47a4c49
cicd: remove parameter credentials to CLI #TASK-5092
juanfeSanahuja Oct 5, 2023
16e7656
cicd: add checkout and remove build #TASK-5092
juanfeSanahuja Oct 5, 2023
9d056c9
cicd: remove inherit
imedina Oct 5, 2023
27253e6
cicd: remove event
imedina Oct 5, 2023
0bc895f
Merge branch 'release-2.8.x' into TASK-5092
juanfeSanahuja Oct 5, 2023
daabee4
Merge pull request #2351 from opencb/TASK-5092
juanfeSanahuja Oct 5, 2023
7aaab0c
Prepare release 2.8.4
juanfeSanahuja Oct 10, 2023
9450f6a
portpatch: Updated version to merge develop #TASK-5120
juanfeSanahuja Oct 20, 2023
5939cf0
Merge branch 'develop' into TASK-5120
juanfeSanahuja Oct 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/manual-deploy-ext-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ jobs:
needs: build
with:
cli: python3 ./build/cloud/docker/docker-build.py push --images ext-tools --tag ${{ inputs.tag }}
secrets: inherit
secrets: inherit

1 change: 1 addition & 0 deletions .github/workflows/pull-request-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ jobs:
with:
cli: python3 ./build/cloud/docker/docker-build.py delete --images base --tag ${{ github.head_ref }}
secrets: inherit

1 change: 1 addition & 0 deletions .github/workflows/test-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,4 @@ jobs:
commit: '${{ github.sha }}'
fail_on_test_failures: true


Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ protected void run() throws Exception {
if (family == null || StringUtils.isEmpty(family.getId())) {
continue;
}
List<List<String>> trios = variantStorageManager.getTriosFromFamily(getStudy(), family, true, getToken());
for (List<String> trio : trios) {
String child = trio.get(2);
List<Trio> trios = variantStorageManager.getTriosFromFamily(getStudy(), family, true, getToken());
for (Trio trio : trios) {
String child = trio.getChild();
if (analysisParams.getSample().contains(child)) {
String father = trio.get(0);
String mother = trio.get(1);
String father = trio.getFather();
String mother = trio.getMother();
triosMap.put(child, new Trio(family.getId(),
"-".equals(father) ? null : father,
"-".equals(mother) ? null : mother,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1299,10 +1299,10 @@ public Integer getReleaseFilter(Query query, String sessionId) throws CatalogExc
return release;
}

public List<List<String>> getTriosFromFamily(
public List<Trio> getTriosFromFamily(
String studyFqn, Family family, VariantStorageMetadataManager metadataManager, boolean skipIncompleteFamily, String sessionId)
throws StorageEngineException, CatalogException {
List<List<String>> trios = getTrios(studyFqn, metadataManager, family.getMembers(), sessionId);
List<Trio> trios = getTrios(studyFqn, metadataManager, family.getMembers(), sessionId);
if (trios.size() == 0) {
if (skipIncompleteFamily) {
logger.debug("Skip family '" + family.getId() + "'. ");
Expand All @@ -1313,7 +1313,7 @@ public List<List<String>> getTriosFromFamily(
return trios;
}

public List<List<String>> getTriosFromSamples(
public List<Trio> getTriosFromSamples(
String studyFqn, VariantStorageMetadataManager metadataManager, Collection<String> sampleIds, String token)
throws CatalogException {
OpenCGAResult<Individual> individualResult = catalogManager.getIndividualManager()
Expand All @@ -1330,12 +1330,12 @@ public List<List<String>> getTriosFromSamples(
return getTrios(studyFqn, metadataManager, individualResult.getResults(), token);
}

public List<List<String>> getTrios(
public List<Trio> getTrios(
String studyFqn, VariantStorageMetadataManager metadataManager, List<Individual> membersList, String sessionId)
throws CatalogException {
int studyId = metadataManager.getStudyId(studyFqn);
Map<Long, Individual> membersMap = membersList.stream().collect(Collectors.toMap(Individual::getUid, i -> i));
List<List<String>> trios = new LinkedList<>();
List<Trio> trios = new LinkedList<>();
for (Individual individual : membersList) {
String fatherSample = null;
String motherSample = null;
Expand Down Expand Up @@ -1402,10 +1402,7 @@ public List<List<String>> getTrios(

// Allow one missing parent
if (childSample != null && (fatherSample != null || motherSample != null)) {
trios.add(Arrays.asList(
fatherSample == null ? "-" : fatherSample,
motherSample == null ? "-" : motherSample,
childSample));
trios.add(new Trio(fatherSample, motherSample, childSample));
}
}
return trios;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
import org.opencb.opencga.core.models.operations.variant.*;
import org.opencb.opencga.core.models.project.DataStore;
import org.opencb.opencga.core.models.project.Project;
import org.opencb.opencga.core.models.project.ProjectOrganism;
import org.opencb.opencga.core.models.sample.Sample;
import org.opencb.opencga.core.models.sample.SamplePermissions;
import org.opencb.opencga.core.models.study.Study;
Expand All @@ -76,10 +77,7 @@
import org.opencb.opencga.storage.core.exceptions.StorageEngineException;
import org.opencb.opencga.storage.core.metadata.VariantMetadataFactory;
import org.opencb.opencga.storage.core.metadata.VariantStorageMetadataManager;
import org.opencb.opencga.storage.core.metadata.models.ProjectMetadata;
import org.opencb.opencga.storage.core.metadata.models.SampleMetadata;
import org.opencb.opencga.storage.core.metadata.models.StudyMetadata;
import org.opencb.opencga.storage.core.metadata.models.VariantScoreMetadata;
import org.opencb.opencga.storage.core.metadata.models.*;
import org.opencb.opencga.storage.core.utils.CellBaseUtils;
import org.opencb.opencga.storage.core.variant.BeaconResponse;
import org.opencb.opencga.storage.core.variant.VariantStorageEngine;
Expand Down Expand Up @@ -397,19 +395,19 @@ public void sampleIndexAnnotate(String study, List<String> samples, ObjectMap pa
});
}

public DataResult<List<String>> familyIndexUpdate(String study,
public DataResult<Trio> familyIndexUpdate(String study,
ObjectMap params, String token)
throws CatalogException, StorageEngineException {
return secureOperation(VariantFamilyIndexOperationTool.ID, study, params, token, engine -> {
return engine.familyIndexUpdate(study, params);
});
}

public DataResult<List<String>> familyIndex(String study, List<String> familiesStr, boolean skipIncompleteFamilies,
public DataResult<Trio> familyIndex(String study, List<String> familiesStr, boolean skipIncompleteFamilies,
ObjectMap params, String token)
throws CatalogException, StorageEngineException {
return secureOperation(VariantFamilyIndexOperationTool.ID, study, params, token, engine -> {
List<List<String>> trios = new LinkedList<>();
List<Trio> trios = new LinkedList<>();
List<Event> events = new LinkedList<>();
VariantStorageMetadataManager metadataManager = engine.getMetadataManager();
VariantCatalogQueryUtils catalogUtils = new VariantCatalogQueryUtils(catalogManager);
Expand All @@ -425,9 +423,9 @@ public DataResult<List<String>> familyIndex(String study, List<String> familiesS
trios.addAll(catalogUtils.getTriosFromFamily(study, family, metadataManager, skipIncompleteFamilies, token));
}
}
DataResult<List<String>> dataResult = engine.familyIndex(study, trios, params);
DataResult<Trio> dataResult = engine.familyIndex(study, trios, params);
getSynchronizer(engine).synchronizeCatalogSamplesFromStorage(study, trios.stream()
.flatMap(Collection::stream)
.flatMap(t->t.toList().stream())
.collect(Collectors.toList()), token);
return dataResult;
});
Expand All @@ -439,25 +437,24 @@ private CatalogStorageMetadataSynchronizer getSynchronizer(VariantStorageEngine
return synchronizer;
}

public DataResult<List<String>> familyIndexBySamples(String study, Collection<String> samples, ObjectMap params, String token)
public DataResult<Trio> familyIndexBySamples(String study, Collection<String> samples, ObjectMap params, String token)
throws CatalogException, StorageEngineException {
return secureOperation(VariantFamilyIndexOperationTool.ID, study, params, token, engine -> {
Collection<String> thisSamples = samples;
if (CollectionUtils.size(thisSamples) == 1 && thisSamples.iterator().next().equals(ParamConstants.ALL)) {
thisSamples = getIndexedSamples(study, token);
}

List<List<String>> trios = catalogUtils.getTriosFromSamples(study, engine.getMetadataManager(), thisSamples, token);

DataResult<List<String>> dataResult = engine.familyIndex(study, trios, params);
List<Trio> trios = catalogUtils.getTriosFromSamples(study, engine.getMetadataManager(), thisSamples, token);
DataResult<Trio> dataResult = engine.familyIndex(study, trios, params);
getSynchronizer(engine).synchronizeCatalogSamplesFromStorage(study, trios.stream()
.flatMap(Collection::stream)
.flatMap(t -> t.toList().stream())
.collect(Collectors.toList()), token);
return dataResult;
});
}

public List<List<String>> getTriosFromFamily(String study, Family family, boolean skipIncompleteFamilies, String token)
public List<Trio> getTriosFromFamily(String study, Family family, boolean skipIncompleteFamilies, String token)
throws CatalogException, StorageEngineException {
VariantStorageEngine variantStorageEngine = getVariantStorageEngine(study, token);
return catalogUtils.getTriosFromFamily(study, family, variantStorageEngine.getMetadataManager(), skipIncompleteFamilies, token);
Expand Down Expand Up @@ -1015,11 +1012,21 @@ protected VariantStorageEngine getVariantStorageEngineByProject(String project,
return variantStorageEngine;
}

private void setCellbaseConfiguration(VariantStorageEngine engine, String project, String token)
private void setCellbaseConfiguration(VariantStorageEngine engine, String projectId, String token)
throws CatalogException {
CellBaseConfiguration cellbase = catalogManager.getProjectManager()
.get(project, new QueryOptions(INCLUDE, ProjectDBAdaptor.QueryParams.CELLBASE.key()), token)
.first().getCellbase();
Project project = catalogManager.getProjectManager()
.get(projectId, new QueryOptions(INCLUDE, Arrays.asList(
ProjectDBAdaptor.QueryParams.CELLBASE.key(),
ProjectDBAdaptor.QueryParams.ORGANISM.key())), token)
.first();
CellBaseConfiguration cellbase = project.getCellbase();
ProjectOrganism organism = project.getOrganism();
if (organism == null) {
throw new CatalogException("Missing organism in project '" + project.getFqn()+ "'");
} else {
engine.getOptions().put(VariantStorageOptions.SPECIES.key(), organism.getScientificName());
engine.getOptions().put(VariantStorageOptions.ASSEMBLY.key(), organism.getAssembly());
}
if (cellbase != null) {
// To ensure that we use the project API key before using the storage API key
if (StringUtils.isEmpty(cellbase.getApiKey()) && storageConfiguration.getCellbase() != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public class VariantFileIndexerOperationManager extends OperationManager {
private List<File> filesToIndex;
private CatalogStorageMetadataSynchronizer synchronizer;
private boolean fullSynchronize = false;
private boolean force;

public VariantFileIndexerOperationManager(VariantStorageManager variantStorageManager, VariantStorageEngine engine) {
super(variantStorageManager, engine);
Expand Down Expand Up @@ -138,6 +139,7 @@ private void check(String study, ObjectMap params, String token) throws Exceptio
}
resume = params.getBoolean(VariantStorageOptions.RESUME.key());
skipIndexedFiles = params.getBoolean(SKIP_INDEXED_FILES);
force = params.getBoolean(VariantStorageOptions.FORCE.key());

// Obtain the type of analysis (transform, load or index)
step = getType(load, transform);
Expand Down Expand Up @@ -589,6 +591,7 @@ private List<File> filterTransformFiles(List<File> fileList, boolean resume) thr
break;
case VariantIndexStatus.INDEXING:
case VariantIndexStatus.TRANSFORMING:
case VariantIndexStatus.LOADING:
if (resume) {
filteredFiles.add(file);
} else {
Expand All @@ -603,14 +606,17 @@ private List<File> filterTransformFiles(List<File> fileList, boolean resume) thr
}
break;
case VariantIndexStatus.TRANSFORMED:
case VariantIndexStatus.LOADING:
case VariantIndexStatus.READY:
default:
String msg = "We can only " + step + " VCF files not transformed, the status is " + indexStatus;
if (skipIndexedFiles) {
logger.warn(msg);
if (force) {
filteredFiles.add(file);
} else {
throw new StorageEngineException(msg);
if (skipIndexedFiles) {
logger.warn(msg);
} else {
throw new StorageEngineException(msg);
}
}
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,16 @@ protected boolean synchronizeFiles(StudyMetadata study, List<File> files, String
}
fileSamplesMap.put(fileMetadata.getName(), samples);
allSamples.addAll(fileMetadata.getSamples());
if (samples.size() > 100) {
// Try to reuse value.
// If the file holds more than 100 samples, it's most likely this same set of samples is already present
for (Set<String> value : fileSamplesMap.values()) {
if (value.equals(samples)) {
fileSamplesMap.put(fileMetadata.getName(), value);
break;
}
}
}
}

if (!indexedFilesFromStorage.isEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@ private void computeSignatureFitting() throws IOException, ToolException, Catalo
StringBuilder scriptParams = new StringBuilder("R CMD Rscript --vanilla ")
.append("/opt/opencga/signature.tools.lib/scripts/signatureFit")
.append(" --catalogues=/data/input/").append(cataloguesFile.getName())
.append(" --outdir=/data/output");
.append(" --outdir=/data/output")
.append(" --commonsigtier=T2");

if (StringUtils.isNotEmpty(getFitMethod())) {
scriptParams.append(" --fitmethod=").append(getFitMethod());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.opencb.opencga.core.models.operations.variant.VariantFamilyIndexParams;
import org.opencb.opencga.core.tools.annotations.Tool;
import org.opencb.opencga.core.tools.annotations.ToolParams;
import org.opencb.opencga.storage.core.metadata.models.Trio;

import java.util.Collections;
import java.util.List;
Expand Down Expand Up @@ -67,7 +68,7 @@ protected void check() throws Exception {
@Override
protected void run() throws Exception {
step(() -> {
DataResult<List<String>> trios;
DataResult<Trio> trios;
if (variantFamilyIndexParams.isUpdateIndex()) {
trios = variantStorageManager.familyIndexUpdate(study, params, token);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ protected void check() throws Exception {
params.put(VariantStorageOptions.ANNOTATE.key(), indexParams.isAnnotate());
params.putIfNotEmpty(VariantStorageOptions.ANNOTATOR.key(), indexParams.getAnnotator());
params.put(VariantStorageOptions.ANNOTATION_OVERWEITE.key(), indexParams.isOverwriteAnnotations());
params.put(VariantStorageOptions.FORCE.key(), indexParams.isForceReload());
params.put(VariantStorageOptions.RESUME.key(), indexParams.isResume());
params.put(VariantStorageOptions.NORMALIZATION_SKIP.key(), indexParams.getNormalizationSkip());
params.putIfNotEmpty(VariantStorageOptions.NORMALIZATION_REFERENCE_GENOME.key(), indexParams.getReferenceGenome());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.opencb.opencga.core.models.operations.variant.VariantSecondarySampleIndexParams;
import org.opencb.opencga.core.tools.annotations.Tool;
import org.opencb.opencga.core.tools.annotations.ToolParams;
import org.opencb.opencga.storage.core.metadata.models.Trio;

import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -80,7 +81,7 @@ protected void run() throws Exception {
}
if (sampleIndexParams.isFamilyIndex()) {
step("familyIndex", () -> {
DataResult<List<String>> result = variantStorageManager.familyIndexBySamples(study, sampleIndexParams.getSample(), params,
DataResult<Trio> result = variantStorageManager.familyIndexBySamples(study, sampleIndexParams.getSample(), params,
getToken());
if (result.getEvents() != null) {
for (Event event : result.getEvents()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import org.junit.AfterClass;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
Expand Down Expand Up @@ -95,6 +96,7 @@ public AlignmentAnalysisTest(String storageEngine) {
private CatalogManager catalogManager;
private VariantStorageManager variantStorageManager;

@ClassRule
public static OpenCGATestExternalResource opencga = new OpenCGATestExternalResource();
public static HadoopVariantStorageTest.HadoopExternalResource hadoopExternalResource = new HadoopVariantStorageTest.HadoopExternalResource();

Expand Down
Loading
Loading