shorten_refalt: Shorten REF/ALT column from variant file

Description Usage Arguments Value See Also Examples

Description

shorten_refalt shortens the REF/ALT column from the variant file in order to print results in a more efficient manner.

Usage

1
shorten_refalt(x, max_len = 5)

Arguments

x

The character vector containing REF/ALT values.

max_len

The maximum number of characters used to print out the values.

Value

A character vector with shortened REF/ALT values. A star '*' is appended as a flag.

See Also

strtrim

Examples

1
2
3
4
5
## Not run: 
shorten_refalt(vars$REF)
shorten_refalt(vars$ALT)

## End(Not run)

bahlolab/varpr documentation built on May 11, 2019, 5:26 p.m.