Diff of /man/shaPRS_LDGen.Rd [000000] .. [6b94fb]

Switch to unified view

a b/man/shaPRS_LDGen.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/shaPRS.R
3
\name{shaPRS_LDGen}
4
\alias{shaPRS_LDGen}
5
\title{Convenience function to generate a shaPRS specific LD reference panel for cross-ancestry analyses}
6
\usage{
7
shaPRS_LDGen(
8
  Pop1LDRefLoc,
9
  Pop2LDRefLoc,
10
  blendFactorLoc,
11
  adjustinputLoc,
12
  outputLoc,
13
  discardAmbiguousSNPs = F,
14
  memoryEfficiency = 5
15
)
16
}
17
\arguments{
18
\item{Pop1LDRefLoc}{Location of the folder of the LDpred2 formatted LD-reference matrices for the 22 autosomes together with a map.rds file for the proximal study}
19
20
\item{Pop2LDRefLoc}{Location of the folder of the LDpred2 formatted LD-reference matrices for the 22 autosomes together with a map.rds file for the adjunct study}
21
22
\item{blendFactorLoc}{Location for the lFDR data file produced by shaPRS(), postfix: "_SNP_lFDR"}
23
24
\item{adjustinputLoc}{Location for the file produced by the shaPRS(), postfix: "_adjustinput"}
25
26
\item{outputLoc}{Output location}
27
28
\item{discardAmbiguousSNPs}{(optional) if ambiguous SNPs (G/C and A/T) should be discarded (default TRUE)}
29
30
\item{memoryEfficiency}{(optional) larger numbers result in longer runs but lower memory usage (default 5)}
31
}
32
\description{
33
Wrapper function that loads and processes the LD data for two populations, aligns it with summary data for shaPRS and then generate a full new LD-ref panel for 22 autosomes (this should be used instead of LDRefBlend)
34
}
35
\examples{
36
Pop1LDRefLoc <- paste0(system.file("extdata", "", package = "shaPRS"), "/")
37
Pop2LDRefLoc <- paste0(system.file("extdata", "", package = "shaPRS"), "/")
38
blendFactorLoc <- system.file("extdata", "pop_SNP_lFDR", package = "shaPRS")
39
adjustinputLoc <- system.file("extdata", "pop_adjustinput", package = "shaPRS")
40
outputLoc <- "<YOUR LOCATION>"
41
# shaPRS_LDGen(Pop1LDRefLoc, Pop2LDRefLoc, blendFactorLoc, adjustinputLoc, outputLoc)
42
43
}