You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on an R package that reads PGEN files and performs statistical analysis in C++ via Rcpp (#283). pgenlibr provides almost everything a user needs.
The R function pgenlibr::NewPvar() to load a .pvar file calls LoadMinimalPvar() in C++:
Do you have code to include chromosome and position information, so a user can intersect the variants with a BED file of genome intervals?
I'd do this myself, but that function is very hard to follow, and I'd write a new version but I'm concerned that there are some .pvar values it wouldn't parse correctly.
Best,
Gabriel
The text was updated successfully, but these errors were encountered:
This wasn't present in the first released version of pgenlibr since --set-all-var-ids provided a simple way to work around the limitation, but okay, now it's embarrassing. I will add this sometime in the next two weeks.
I'm working on an R package that reads PGEN files and performs statistical analysis in C++ via Rcpp (#283).
pgenlibr
provides almost everything a user needs.The R function
pgenlibr::NewPvar()
to load a.pvar
file callsLoadMinimalPvar()
in C++:plink-ng/2.0/pvar_ffi_support.cc
Line 64 in 6287f6a
It loads
ID
,REF
andALT
, but notCHR
orPOS
.Do you have code to include chromosome and position information, so a user can intersect the variants with a BED file of genome intervals?
I'd do this myself, but that function is very hard to follow, and I'd write a new version but I'm concerned that there are some
.pvar
values it wouldn't parse correctly.Best,
Gabriel
The text was updated successfully, but these errors were encountered: