sample_names: Display sample names

Description Usage Arguments Value Examples

Description

This function display the first N variant names.

Usage

1
sample_names(vcf_source, n_samples = NULL)

Arguments

vcf_source

An object with VCFFeatureSource class, usually the output of the vs_read_vcf().

n_samples

The number os samples to display.

Value

spark_jobj, shell_jobj

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
library(sparklyr)

sc <- spark_connect(master = "local")
vsc <- vs_connect(sc)

hipster_vcf <- vs_read_vcf(vsc, 
                           system.file("extdata/hipster.vcf.bz2",
                                       package =  "variantspark"))

sample_names(hipster_vcf, 3)

## End(Not run)

variantspark documentation built on June 13, 2019, 5:03 p.m.