% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DANDELION.R
\name{gen_fig}
\alias{gen_fig}
\title{Generate DANDELION Network Figure}
\usage{
gen_fig(gene.pair, p.wes, eta.wgs = 1e-05, pic_dir)
}
\arguments{
\item{gene.pair}{Data frame of identified gene pairs, returned by
\code{calc_pair.gene()} or \code{calc_pair.snp()}. Must contain columns \code{region} and
\code{gene2}.}

\item{p.wes}{Named numeric vector of gene-level trait association p-values.}

\item{eta.wgs}{Significance threshold for WES genes. Default is 1e-5.}

\item{pic_dir}{Directory to save the figure.}
}
\value{
Invisibly returns the path to the saved PDF file.
}
\description{
Generates a network plot from DANDELION gene-pair results.
}
