request support

14 views
Skip to first unread message

Kndalem Yaregal

unread,
Sep 18, 2025, 1:41:27 AM (7 days ago) Sep 18
to da...@googlegroups.com
Hi,
In have have genotyped one sample two to three times and I want to know within sample difference by what means I run this?

--
Thank you!
Kind regards,
Kndalem Yaregal 
MSc. Student in Plant Breeding and Genetics |Wollo University 
Plant Breeder |Sekota Dryland Agricultural Research Center  in Amhara Agricultural Research Institute 
Email (Alt): 21ethi...@gmail.com 
skype: Kndalem. Yaregal
 Mobile: +251916899864Ethiopia

"Improving the Dryland for Mind Glad."
 "Make a positive impact in our community!"

Bernd.Gruber

unread,
Sep 19, 2025, 1:31:32 AM (6 days ago) Sep 19
to da...@googlegroups.com

Hi,

 

A quick way to do it is creating a table between pairs of genotypes.

 

i <- which(indNames(gl)==”ind1”)

j <- which(indNames(gl)=”ind2”)

 

tt <- table(as.matrix(gl[i,]), as.matrix(gl[j,], useNA=”always”)

tt

 

sum(diag(tt))/sum(tt)

 

This creates a confusion table between the individual i and j. on the diagonal you find the numbers genotypes 0,1,2 are matching, off the diagonal the not matching genotypes.

 

We should create a function that does all pairs provided. (as I use it quite a lot). I have also a function that calculates the error rate for repeated genotypes if you are interested.

 

Cheers, Bernd

 

Ps. If you copy the code above make sure you replace the quotes but straight ones.

 

 

From: da...@googlegroups.com <da...@googlegroups.com> On Behalf Of Kndalem Yaregal
Sent: Thursday, 18 September 2025 3:41 PM
To: da...@googlegroups.com
Subject: [dartR] request support

 

You don't often get email from knda...@gmail.com. Learn why this is important

--
You received this message because you are subscribed to the Google Groups "dartR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dartr+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dartr/CAHoS5_SeMvBBRs8-JvhsJQEmi0N5Ws53XoWCKkYgKBCstm%3DsJQ%40mail.gmail.com.

Kndalem Yaregal

unread,
Sep 19, 2025, 1:39:27 AM (6 days ago) Sep 19
to da...@googlegroups.com
thank you so much for your assistance 
Yes, I am interesting onwhat you say (repeating. could you send me?

Reply all
Reply to author
Forward
0 new messages