We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8cd2a0 commit 8518391Copy full SHA for 8518391
1 file changed
ehr/resources/pipeline/kinship/populateKinship.r
@@ -84,6 +84,10 @@ generateSpeciesToProcess <- function(allPed, mergeSpeciesWithHybrids) {
84
}
85
86
validateExpectedKinshipSubset <- function(dataToTest, expectedValues, errorRows, testReciprocal = TRUE) {
87
+ if (nrow(dataToTest) == 0 || nrow(expectedValues) == 0) {
88
+ return(errorRows)
89
+ }
90
+
91
# Generate the reciprocal of relationships as well:
92
if (testReciprocal) {
93
ret2 <- data.frame(Id = expectedValues$Id2, Id2 = expectedValues$Id, Relationship = expectedValues$Relationship, ExpectedCoefficient = expectedValues$ExpectedCoefficient)
0 commit comments