Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/SNPRelate_Main.r
To merge GDS files of SNP genotypes into a single GDS file
1 2 3 |
gds.fn |
a list of SNP GDS files to be merged |
out.fn |
the name of output GDS file |
sample.id |
NULL, or a list. If it is a list, specify sample ids for each SNP GDS file |
snpobj |
specify a |
name.prefix |
NULL, a character vector (added to sample ids for each GDS file) |
snpfirstdim |
if TRUE, genotypes are stored in the individual-major mode, (i.e, list all SNPs for the first individual, and then list all SNPs for the second individual, etc) |
compress.annotation |
the compression method for the variables except |
compress.geno |
the compression method for the variable |
other.vars |
a list object storing other variables |
verbose |
if TRUE, show information |
The typical variables specified in other.vars
are “sample.annot” and “snp.annot”,
which are data.frame objects.
None.
Xiuwen Zheng
snpgdsCreateGeno
, snpgdsCreateGenoSet
1 2 3 4 5 6 7 | # get the file name of a gds file
fn <- snpgdsExampleFileName()
# combine
snpgdsCombineGeno(c(fn, fn), "test.gds")
snpgdsSummary("test.gds")
|
Loading required package: gdsfmt
SNPRelate -- supported by Streaming SIMD Extensions 2 (SSE2)
Create test.gds with 558 samples and 9087 SNPs
Open the gds file /usr/local/lib/R/site-library/SNPRelate/extdata/hapmap_geno.gds.
0 strands of SNP loci need to be switched.
Open the gds file /usr/local/lib/R/site-library/SNPRelate/extdata/hapmap_geno.gds.
0 strands of SNP loci need to be switched.
Warning messages:
1: In snpgdsCombineGeno(gds.fn = gds.fn, out.fn = out.fn, sample.id = sample.id, :
1 SNPs allele mis-matched and removed.
2: In snpgdsCombineGeno(gds.fn = gds.fn, out.fn = out.fn, sample.id = sample.id, :
1 SNPs allele mis-matched and removed.
3: In snpgdsCombineGeno(c(fn, fn), "test.gds") :
Has specified the value of `name.prefix' to make sample id unique.
The file name: /work/tmp/test.gds
The total number of samples: 558
The total number of SNPs: 9087
SNP genotypes are stored in individual-major mode (SNP X Sample).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.