groups-methods: Get group codes of a class 'Zvariant' instance.

Description Usage Arguments Value Author(s) See Also

Description

If the particular variant doesn't use groups or doesn't have them assigned, return NA. Note that here 'groups' means the first column in Zonation groups file ('output group').

Usage

1
2
3
4
5
6
7
8
9
groups(x)

groups(x) <- value

## S4 method for signature 'Zvariant'
groups(x)

## S4 replacement method for signature 'Zvariant,numeric'
groups(x) <- value

Arguments

x

Zvariant object.

value

numeric vector of group ids. Vector length must match to the number of features, no recycling is done.

Value

A numeric vector containing the group ids. If there are no groups, return NA.

Author(s)

Joona Lehtomaki joona.lehtomaki@gmail.com

See Also

Zvariant-class


cbig/zonator documentation built on May 23, 2020, 7:02 a.m.