I have a table like this example:
breeds <- "tag Chr Position Breed
chr1-2157 1 2157 BRL
chr1-2157 1 2157 GOT
chr1-2157 1 2157 HED
chr1-2157 1 2157 KIN
chr2-2185 2 2185 BRL
chr2-2185 2 2185 GOT
chr2-2185 2 2185 HED
chr3-2189 3 2185 BRL"
breeds <-read.table(text=breeds,header=T)
And I would like to construct a logical table like this:
final <- "tag BRL GOT HED KIN
chr1-2157 TRUE TRUE TRUE TRUE
chr2-2185 TRUE TRUE TRUE FALSE
chr3-2189 TRUE FALSE FALSE FALSE"
final <-read.table(text=final,header=T)
to finally classify the groups:
The idea is to be able to count the number of unique tags of the possible "true" and "false" groups to finally have the number of each group to be included in a Venn Diagram using venneuler
package (Venn diagram proportional and color shading with semi-transparency)