calc_genetic_similarity: Calculate the genetic similarity between two individuals...

Description Usage Arguments

View source: R/script - gene-match-o-matic 2000.R

Description

takes two vectors of SNPs, Each element in the vector should be the genotypes of one SNP, written as bases, e.g "CT" "CC" "AT" etc. Order, e.g. "CT" or "TC" is not taken into account. It's important that the order of SNPs in the two vectors are the same. Returns an integer between 1 and 0 (0 = 0

Usage

1
calc_genetic_similarity(sample1, sample2, cutoff_NA_collective = 50)

Arguments

SNPs1

the first vector of SNPs

SNPs2

the second vector of SNPs


Eiriksen/fishytools documentation built on April 4, 2020, 5:08 a.m.