Learn R Programming

SeqArray (version 1.8.0)

seqDelete: Delete variables in a Sequencing GDS File

Description

Delete variables in a sequencing GDS file

Usage

seqDelete(gdsfile, info.varname=NULL, format.varname=NULL)

Arguments

gdsfile
info.varname
the variables in the INFO field, i.e., "annotation/info/VARIABLE_NAME"
format.varname
the variables in the FORMAT field, i.e., "annotation/format/VARIABLE_NAME"

Value

None.

See Also

seqOpen, seqClose

Examples

Run this code
# the file of VCF
vcf.fn <- seqExampleFileName("vcf")
# or vcf.fn <- "C:/YourFolder/Your_VCF_File.vcf"

# convert
seqVCF2GDS(vcf.fn, "tmp.gds")

# display
(f <- seqOpen("tmp.gds", FALSE))

seqDelete(f, info.varname=c("HM2", "AA"), format.varname="DP")

# close the GDS file
seqClose(f)

# clean up the fragments, reduce the file size
cleanup.gds("tmp.gds")

Run the code above in your browser using DataLab