diff --git a/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/PatientVariantJoinHandler.java b/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/PatientVariantJoinHandler.java index a15f90b2..2538d6ba 100644 --- a/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/PatientVariantJoinHandler.java +++ b/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/PatientVariantJoinHandler.java @@ -33,7 +33,7 @@ public BigInteger getPatientIdsForIntersectionOfVariantSets(Set patient Set patientIds = Arrays.asList( variantService.getPatientIds()).stream().map((String id)->{ return Integer.parseInt(id);}).collect(Collectors.toSet()); - if(patientSubset == null) { + if(patientSubset != null) { // for now, null means there were no phenotypic filters and all patients are eligible patientsInScope = Sets.intersection(patientIds, patientSubset); } else {