seqDigest: Hash function digests

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/Summary.R

Description

Create hash function digests for all or a subset of data

Usage

1
seqDigest(gdsfile, varname, algo=c("md5"), verbose=FALSE)

Arguments

gdsfile

a SeqVarGDSClass object

varname

the variable name(s), see details

algo

the digest hash algorithm: "md5"

verbose

if TRUE, show progress information

Details

The variable name should be "sample.id", "variant.id", "position", "chromosome", "allele", "annotation/id", "annotation/qual", "annotation/filter", "annotation/info/VARIABLE_NAME", or "annotation/format/VARIABLE_NAME".

Users can define a subset of data via seqSetFilter and create a hash digest for the subset only.

Value

A hash character.

Author(s)

Xiuwen Zheng

See Also

seqSetFilter, seqApply

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# the GDS file
(gds.fn <- seqExampleFileName("gds"))

# display
f <- seqOpen(gds.fn)

seqDigest(f, "genotype")
seqDigest(f, "annotation/filter")
seqDigest(f, "annotation/format/DP")

# close the GDS file
seqClose(f)

SeqArray documentation built on Nov. 8, 2020, 5:08 p.m.