example_gt <- load_example_gt("gen_tbl")
X <- attr(example_gt$genotypes, "fbm")
snp_ibs(X)
# Compute for individuals 1 to 5
snp_ibs(X, ind.row = 1:5, ind.col = 1:5)
# Adjust block.size
snp_ibs(X, block.size = 2)
# Change type
snp_ibs(X, type = "proportion")
snp_ibs(X, type = "adjusted_counts")
snp_ibs(X, type = "raw_counts")
Run the code above in your browser using DataLab