seqDigest {SeqArray} | R Documentation

## Hash function digests

### Description

Create hash function digests for all or a subset of data

### Usage

    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

    # 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)

[Package SeqArray version 1.30.0 Index]