a b/man/shaPRS_blend_overlap.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/shaPRS.R
3
\name{shaPRS_blend_overlap}
4
\alias{shaPRS_blend_overlap}
5
\title{Blended shaPRS (with overlapping datasets): produce summary statistics according to a continuous weighting scheme}
6
\usage{
7
shaPRS_blend_overlap(
8
  proximal,
9
  adjunct,
10
  blendingFactors,
11
  rho = 0,
12
  discardAmbiguousSNPs = T
13
)
14
}
15
\arguments{
16
\item{proximal}{Proximal LDPred formatted GWAS summary statistics table  that has header with the following columns: chr    pos    SNP    A1    A2    Freq1.Hapmap    b    se    p    N}
17
18
\item{adjunct}{dataframe for adjunct dataset of the same signature}
19
20
\item{blendingFactors}{a 3 column table of: SNP lFDR Qval, (produced by shaPRS_adjust)}
21
22
\item{rho}{(optional) sample overlap between studies}
23
24
\item{discardAmbiguousSNPs}{(optional) if ambiguous SNPs (G/C and A/T) should be discarded (default TRUE)}
25
}
26
\value{
27
returns an LDPred formatted summary statistics table
28
}
29
\description{
30
This function continuously blends the two sub-phenotype statistics
31
and generates an LDPred formatted table.
32
}
33
\examples{
34
proximalLoc <- system.file("extdata", "phenoA_sumstats", package = "shaPRS")
35
adjunctLoc <- system.file("extdata", "phenoB_sumstats", package = "shaPRS")
36
blendFactorLoc <- system.file("extdata", "myOutput_SNP_lFDR", package = "shaPRS")
37
proximal= read.table(proximalLoc, header = TRUE)
38
adjunct= read.table(adjunctLoc, header = TRUE)
39
blendingFactors= read.table(blendFactorLoc, header = TRUE)
40
blendedSumstats = shaPRS_blend_overlap(proximal, adjunct, blendingFactors)
41
42
}