R/gscramble2plink.R
gscramble2plink.Rd
Writes genetic and individual information in 'gscramble's
I_meta, M_meta, and Geno like objects into a uncompressed plink
.ped
and .map
files.
gscramble2plink(I_meta, M_meta, Geno, prefix = tempfile())
a tibble of individual meta data
with at least the columns of group
and indiv
.
a tibble of marker meta data with at least the columns
of chrom
, pos
, and variant_id
.
a character matrix of genotypes. Num-indivs rows and num-markers * 2 columns, with missing denoted denoted by NA.
the file path and prefix into which to write out the files
Returns TRUE if successful.
gscramble2plink(I_meta, M_meta, Geno)
#> pedfile written to /tmp/Rtmp2pzuif/file190b131f10c7.ped
#> mapfile written to /tmp/Rtmp2pzuif/file190b131f10c7.map
#> [1] TRUE