Skip to content

Commit d88482d

Browse files
committed
fix phase/data
when geno=TRUE in seqBGEN2GDS()
1 parent e68af91 commit d88482d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

R/gds2bgen.r

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -375,11 +375,10 @@ seqBGEN2GDS <- function(bgen.fn, out.fn, storage.option="LZMA_RA", float.type=
375375
}
376376
if (geno) {
377377
varnm <- c(varnm, c(
378-
"genotype/data",
379-
"genotype/@data",
380-
"genotype/extra.index",
381-
"genotype/extra"
382-
))
378+
"genotype/data", "genotype/@data",
379+
"genotype/extra.index", "genotype/extra",
380+
"phase/data",
381+
"phase/extra.index", "phase/extra" ))
383382
}
384383

385384
if (verbose) cat("Merging:\n")

src/R_gds2bgen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// R_SeqArray.c: Link to the gdsfmt package
2+
// R_gds2bgen.c: Link to the gdsfmt package
33
//
44

55
#include <R_GDS.h>

0 commit comments

Comments
 (0)