Convert Local-Ancestry Tracts Format from GDS to Text
convert_gds_to_txt.RdConverts ancestry-specific dosage and hapcount matrices stored in a tracts GDS file into tab-delimited text files (plain or gzipped).
Usage
convert_gds_to_txt(
gds_path,
output_prefix = NULL,
output_format = "txt.gz",
chunk_size = 1024L
)Arguments
- gds_path
Character; input tracts GDS path.
- output_prefix
Character or
NULL; output file prefix. IfNULL(default), uses the input filename prefix in the same directory asgds_path.- output_format
Character; output format, one of
"txt"or"txt.gz"(default).- chunk_size
Integer; number of variants processed per chunk. Default is 1024; higher values can improve speed but increase memory usage.