Skip to content

Commit 2d9a21c

Browse files
Update markPotentialChildren.Rd
1 parent 153449e commit 2d9a21c

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

R/simulatePedigree.R

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -577,14 +577,7 @@ simulatePedigree <- function(kpc = 3,
577577

578578
# connect the detached members
579579
df_Fam[is.na(df_Fam[[momID]]) & is.na(df_Fam[[dadID]]) & df_Fam$gen > 1, ]
580-
# if the sex rate is .5, make there is a 50% chance to change male to female and female to male
581-
# doesn't seem to produce the expected results, sometimes leads to moms being classified as dads
582-
# if (sexR == .5 & runif(1) > .5) {
583-
# df_Fam$sex[df_Fam$sex == "M"] <- "F1"
584-
# df_Fam$sex[df_Fam$sex == "F"] <- "M"
585-
# df_Fam$sex[df_Fam$sex == "F1"] <- "F"
586-
# }
587-
# message(df_Fam)
580+
588581
return(df_Fam)
589582
}
590583

man/markPotentialChildren.Rd

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)