-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplot_dataset_overlap.Rd
46 lines (41 loc) · 1.15 KB
/
plot_dataset_overlap.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_dataset_overlap.R
\name{plot_dataset_overlap}
\alias{plot_dataset_overlap}
\title{Plot inter-study SNP overlap}
\usage{
plot_dataset_overlap(
merged_DT,
snp_filter = "!is.na(SNP)",
filename = NA,
formula_str = "~ SNP + Dataset",
triangle = FALSE
)
}
\arguments{
\item{merged_DT}{Merged fine-mapping results data from
\link[echolocatoR]{finemap_loci}.}
\item{snp_filter}{Filter to use apply to SNPs before plotting.}
\item{filename}{Path to save file to as PNG.}
\item{formula_str}{Formula passed to \link[stats]{xtabs}.}
\item{triangle}{Plot correlation matrix as a square or a triangle.}
}
\description{
Cross-tabulate SNP overlap (after applying filter)
between each pair of studies.
}
\examples{
\dontrun{
merged_DT <- echodata::get_Nalls2019_merged()
merged_DT$Dataset <- rep(c("Dataset1","Dataset2"),nrow(merged_DT)/2)
snp_xprod <- plot_dataset_overlap(merged_DT = merged_DT)
}
}
\seealso{
Other summarise:
\code{\link{CS_bin_plot}()},
\code{\link{CS_counts_plot}()},
\code{\link{peak_overlap_plot}()},
\code{\link{super_summary_plot}()}
}
\concept{summarise}