standardize_genotype: Standardize genotypes

View source: R/utils.R

standardize_genotypeR Documentation

Standardize genotypes

Description

This function rewrite genotype like: * 0|1 to 0/1; * 0/2, 0/3, ..., to 0/1; * 2/2, 3/3, ..., to 1/1; * 1/3, 2/3, ..., to 1/2

Usage

standardize_genotype(gt)

Arguments

gt

A vector of strings. The input genotypes.

Value

A vector of strings.


vladimirsouza/lrRNAseqBenchmark documentation built on March 23, 2023, 7:32 a.m.