subset_variant_by_type {musicatk} | R Documentation

## Subsets a variant table based on Variant Type

### Description

Subsets a variant table based on Variant Type

### Usage

    subset_variant_by_type(tab, type)

### Arguments

`tab` | Input variant table
`type` | Variant type to return e.g. "SBS", "INS", "DEL", "DBS"

### Value

Returns the input variant table subsetted to only contain variants of the specified variant type

### Examples

    data(musica)
    annotate_variant_type(musica)
    subset_variant_by_type(variants(musica), "SBS")

[Package musicatk version 1.2.0 Index]