Skip to contents

acquire row names of a Hail Table, assuming key has been set

Usage

# S4 method for class 'hail.table.Table'
rownames(x, do.NULL = TRUE, prefix = "row")

Arguments

x

instance of hail.table.Table

do.NULL

not used

prefix

not used

Value

character()

character vector

Note

To try example, run `example("rownames,hail.table.Table-method")`

Examples

hl <- hail_init()
annopath <- path_1kg_annotations()
tab <- hl$import_table(annopath, impute = TRUE)$key_by("Sample")
rt <- rownames(tab)
length(rt)
#> [1] 3500
head(rt)
#> [1] "HG00096" "HG00097" "HG00098" "HG00099" "HG00100" "HG00101"