Skip to content

Commit 16b8c2f

Browse files
committed
Minor script cleanup
1 parent 2cbf599 commit 16b8c2f

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

ehr/resources/pipeline/kinship/populateKinship.r

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,12 @@ for (species in unique(allPed$Species)){
3939
print(paste0('Processing species: ', species, ', with ', nrow(allRecordsForSpecies), ' IDs'))
4040
if (nrow(allRecordsForSpecies) == 1) {
4141
print('single record, skipping')
42-
newRecords <- dplyr::bind_rows(newRecords,data.frame(Id = allRecordsForSpecies$Id, Id2 = allRecordsForSpecies$Id, coefficient = 0.5, Species = allRecordsForSpecies$Species))
4342
next
4443
}
4544

4645
pctMissingSex <- sum(allRecordsForSpecies$Gender > 2) / nrow(allRecordsForSpecies)
4746
if (pctMissingSex > 0.25) {
4847
paste0('More than 25% of this species group are missing sex and cannot be processed by fixParents(), skipping')
49-
newRecords <- dplyr::bind_rows(newRecords,data.frame(Id = allRecordsForSpecies$Id, Id2 = allRecordsForSpecies$Id, coefficient = 0.5, Species = allRecordsForSpecies$Species))
5048
next
5149
}
5250

0 commit comments

Comments
 (0)