Skip to content

Commit 7f2c987

Browse files
committed
Code review
1 parent 16b8c2f commit 7f2c987

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

ehr/resources/pipeline/kinship/populateKinship.r

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ for (species in unique(allPed$Species)){
4242
next
4343
}
4444

45-
pctMissingSex <- sum(allRecordsForSpecies$Gender > 2) / nrow(allRecordsForSpecies)
46-
if (pctMissingSex > 0.25) {
47-
paste0('More than 25% of this species group are missing sex and cannot be processed by fixParents(), skipping')
48-
next
49-
}
50-
5145
# Add missing parents for accurate kinship calculations
5246
fixedRecords <- with(allRecordsForSpecies, fixParents(id = Id, dadid = Sire, momid = Dam, sex = Gender))
5347

ehr/src/org/labkey/ehr/pipeline/GeneticCalculationsImportTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public RecordedActionSet run() throws PipelineJobException
153153
processInbreeding(job.getContainer(), job.getUser(), support.getAnalysisDirectoryPath().toFile(), job.getLogger());
154154
processKinship(job.getContainer(), job.getUser(), support.getAnalysisDirectoryPath().toFile(), job.getLogger());
155155

156-
if (Boolean.parseBoolean(getJob().getParameters().get("kinshipValidation")))
156+
if (GeneticCalculationsJob.isKinshipValidation())
157157
{
158158
validateKinship();
159159
}

0 commit comments

Comments
 (0)