Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ramari16 committed Oct 9, 2024
1 parent 60f34de commit 0fb5346
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class VariantStore implements Serializable {
private String[] patientIds;

private transient String[] variantSpecIndex;

private Map<String, FileBackedJsonIndexStorage<Integer, ConcurrentHashMap<String, VariableVariantMasks>>> variantMaskStorage = new TreeMap<>();

public Map<String, FileBackedJsonIndexStorage<Integer, ConcurrentHashMap<String, VariableVariantMasks>>> getVariantMaskStorage() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,11 @@ public VariantMask getPatientIdsForIntersectionOfVariantSets(Set<Integer> patien
VariantMask homozygousMask = masks.homozygousMask;
if (heterozygousMask != null) {
synchronized(matchingPatients) {
log.debug("Patients with variant " + variantSpec + ": " + (heterozygousMask.bitCount()));
matchingPatients[0] = matchingPatients[0].union(heterozygousMask);
}
}
if (homozygousMask != null) {
synchronized(matchingPatients) {
log.debug("Patients with variant " + variantSpec + ": " + (homozygousMask.bitCount()));
matchingPatients[0] = matchingPatients[0].union(homozygousMask);
}
}
Expand Down

0 comments on commit 0fb5346

Please sign in to comment.