sample_pair_distance: Sample Pair Distance

Description Usage Arguments Value Author(s) Examples

View source: R/calculateSimilarity.R

Description

Computes the Hamming Distance for a pair of samples and then aggregates the sum over the genes keeping information of which allele was used for the distance

Usage

1
sample_pair_distance(sample_pair_data)

Arguments

sample_pair_data

a tibble with columns GeneName (genes), Allele (alleles), Digit1 (digit 1) and sample (see example data)

Value

a tibble object with one row and column HammingDistance & column data corresponding to the same_allele information

Author(s)

Santiago Medina, Nissim Ranade

Examples

1
2
3
4
5
## Load example dataset
data("example_sample_pair_data")

## Computes the Hamming distance for one pair of samples
HLAClustRView:::sample_pair_distance(example_sample_pair_data)

NCBI-Hackathons/HLAClustRView documentation built on Nov. 22, 2019, 6:11 a.m.