You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some applications, it could be useful to have plot with diamonds in the middle of the tree.
For example, I want to represent any grand mother - grand mother relationship, irrespective of whether the gdma is a maternal or paternal gdma:
To do that I had to hack a couple of checks within the pedigree function:
if(any(!sex[findex] %in% c("male", "unknown"))) {
who<- unique((id[findex])[!sex[findex] %in% c("male", "unknown")])
msg.n<-1:min(5, length(who)) #Don't list a zillion
stop(paste("Id not male (or unknown), but is a father:",
paste(who[msg.n], collapse="")))
}
I understand that it should not be the default behavior, but if an option could allow for this to happen, that would be great since the plotting function seems to have no difficulty with this (although I did not test extensively).
The text was updated successfully, but these errors were encountered:
You are certainly welcome to take the code and make your own edits for these use cases. However, the diamond is a reserved symbol for a missing sex in the pedigree (sex code of 3).
Dear @sinnweja , I don't think you understand me.
I did not change the meaning of the diamond, it is still used to display a missing sex.
The point was to allow for individuals of missing sex to be parents.
My apologies. Now I see your point, and indeed we have had a few requests to lift this check when plotting asexual generations. We will try to incorporate this as an option.
For some applications, it could be useful to have plot with diamonds in the middle of the tree.
For example, I want to represent any grand mother - grand mother relationship, irrespective of whether the gdma is a maternal or paternal gdma:
To do that I had to hack a couple of checks within the pedigree function:
instead of:
kinship2/R/pedigree.R
Lines 121 to 126 in ba65a5f
and
instead of:
kinship2/R/pedigree.R
Lines 136 to 141 in ba65a5f
I understand that it should not be the default behavior, but if an option could allow for this to happen, that would be great since the plotting function seems to have no difficulty with this (although I did not test extensively).
The text was updated successfully, but these errors were encountered: