I am trying to set a filter and then to LD pruning (1KG dataset).
f <- seqOpen("1KG_autosomes_phase3_shapeit2_mvncall_integrated_v5_20130502_lzma.seq.gds")
seqSetFilterChrom(f, 22, from.bp=1, to.bp=16219561)
# Number of selected variants: 2,005
snpset <- snpgdsLDpruning(f, ld.threshold=0.2, maf=0.01)
However, it seems like the pruning is performed on the whole 1KG dataset, not taking the filtering into account. I tried exporting to a new .gds file, then opening and filtering that one, and then the pruning works as intended.
I am trying to set a filter and then to LD pruning (1KG dataset).
However, it seems like the pruning is performed on the whole 1KG dataset, not taking the filtering into account. I tried exporting to a new .gds file, then opening and filtering that one, and then the pruning works as intended.
Versions: