umx_file_load_pseudo | R Documentation |
Read in PRS scored files from pseudocons.
Read the file
Break it into pseudo and real rows
Clean-up by deleting the pseudo suffix
Rename NT vars with a suffix
Merge files on ID and return
ID | FID | BMIS1 | BMIS2 | BMIS3 | BMIS4 | ... | |
1 | 1234501 | 12345 | -0.032 | -0.77 | -0.40 | -3.87 | ... |
2 | 1234501-pseudo-1 | 12345 | 0.117 | -0.66 | -0.33 | -4.08 | ... |
umx_file_load_pseudo(fn, bp, suffix = "_NT", chosenp = "S5")
fn |
The filename |
bp |
The path to the folder containing the file |
suffix |
to add to the NT columns (Default = "_NT") |
chosenp |
The suffix (pvalue) we desire to use (Default = "S5") |
dataframe of real and pseudo PRS columns
Other File Functions:
dl_from_dropbox()
,
umx_make_sql_from_excel()
,
umx_move_file()
,
umx_open()
,
umx_rename_file()
,
umx_write_to_clipboard()
,
umx
## Not run:
basepath = "~/Dropbox/2016 (1). project EA/2018/EA3/"
tmp = umx_file_load_pseudo("PRS_EA3_R9_autosomes_HRC1.1_pseudo.txt", bp = bp)
str(tmp)
head(tmp[, c("BMIS4", "BMIS4_NT")]
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.