example_gt <- load_example_gt("gen_tbl")
pairwise_ibs(example_gt, type = "proportion")
# Alternatively, return a matrix
pairwise_ibs(example_gt, type = "proportion", as_matrix = TRUE)
# Adjust block_size
pairwise_ibs(example_gt, block_size = 2)
# Change type
pairwise_ibs(example_gt, type = "adjusted_counts")
pairwise_ibs(example_gt, type = "raw_counts")
Run the code above in your browser using DataLab