Releases: lcpilling/ukbrapR
Releases · lcpilling/ukbrapR
ukbrapR v0.3.14
ukbrapR v0.3.13
Bug fixes
- Fixed issue #39 for
create_pgs()to correctly load the new PGS from plink2 (thanks to @aepacker for highlighting)
Changes
get_df()default censoring date updated to 31-03-2023 (i.e., the current date for HES for England https://biobank.ndph.ox.ac.uk/ukb/exinfo.cgi?src=Data_providers_and_dates).get_df()if a participant has died then use the date of death as the censoring date instead.- Add message at first use of package in session to ask users for stars and feedback.
ukbrapR v0.3.11
- Use
plink2when creating polygenic scores. This handles effect/other allele differences more robustly- Returns the "scoreavgs" which is the total sum of the effect weights divided by the number of alleles
- Export "GP registrations" table when submitting table-exporter commands
ukbrapR v0.3.10
New features
- For genetic functions using the imputed bgens it is now possible to extract based on position (build 37) not RSID. For example:
- In
extract_variants()orcreate_pgs()whensource="imputed"new optionuse_imp_poscan be set to TRUE (default is false) - This correspondingly sets
use_posto TRUE when callingmake_imputed_bgen()internally (to extract based on position not RSID)
- In
- New function
get_imputed_variant_info(): for a given set of genomic coordinates (position in build 37) get the UK Biobank imputed genotype variant IDs from the MFI files (also returns alleles, MAF and INFO).
Thanks to Harry Green @hdg204 for the idea and bug testing.
ukbrapR v0.3.9
Changes
- Fix issue with
dxpaths when downloading exported data in/ukbrapr_data. Previous method worked fine in RStudio but not Cloud Workstation, and highlighted a dependency on relative paths for$ dx downloadinternal commands. - Add {tidyr} package to requirements. Has always been a requirement, but now it is explicit!
ukbrapR v0.3.8
ukbrapR v0.3.7
Changes
make_XXX_bed()functions now give a more accurate ETA. Previously only considered the number of CHRs to search. Now considers the number of variants also. -- updated to be more accurate (sometimes overestimated substantially)
Bug fixes
- Fix issue #31 where
fields_to_phenos()incorrectly arrayed some "multiple choice" questions. Thanks to Jana Sönksen for highlighting
ukbrapR v0.3.6
make_dragen_bed()returns a more informative error if DRAGEN BGENs not found (suggests user is in a Project not updated since April 2025).make_XXX_bed()functions now give a more accurate ETA. Previously only considered the number of CHRs to search. Now considers the number of variants also.- Removed indy/snow paths (i.e., my local servers) because we are now fully RAP working.
- Removed Windows functionality. The RAP is always UNIX.
ukbrapR v0.3.5
New features
create_pgs()can now use a local BED file of already-extracted variants. Before, it assumed the user wanted to extract the variants prior to creating the PGS.
ukbrapR v0.3.4
New features
make_dragen_bed()now uses the BGEN files released in April 2025 (in prior versions used the pVCFs).- Means when
extract_variants()orcreate_pgs()are called with optionsource="dragen"this is the default. - If your project does not have the new BGEN files available you can use
ukbrapR:::make_dragen_bed_from_pvcfs()to extract from the pVCFs (slow).
- Means when
Changes
- Updated internal schema to include new/updated fields.
- Added "filename" option to
fields_to_phenos()so that phenotype names can be written straight to a file ready for table-exporter.