<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<title>{{html_title}}</title>
<link rel="icon" type="image/png" href="https://s3-us-west-2.amazonaws.com/webgestalt/favicon.png">
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?flags=gated&features=es2015%2Ces2016%2Cfetch"></script>
<script src="{{hostName}}/assets/{{version}}/build/vendor.min.js"></script>
	{{#hasCytoscape}}
	<script src="{{hostName}}/assets/{{version}}/build/cytoscape.min.js"></script>
	{{/hasCytoscape}}
	{{^hasCytoscape}}
	<script>window.cytoscape = null;</script>
	{{/hasCytoscape}}
	<link rel="stylesheet" href="{{hostName}}/assets/{{version}}/build/vendor.css">
	<link rel="stylesheet" href="{{hostName}}/assets/{{version}}/build/wg.css">
<link rel="stylesheet" href="https://cdn.materialdesignicons.com/2.5.94/css/materialdesignicons.min.css">
</head>
<body>
	<script type="text/javascript" src="https://www.termsfeed.com/public/cookie-consent/4.1.0/cookie-consent.js" charset="UTF-8"></script>
<script type="text/javascript" charset="UTF-8">
document.addEventListener('DOMContentLoaded', function () {
cookieconsent.run({"notice_banner_type":"simple","consent_type":"express","palette":"light","language":"en","page_load_consent_levels":["strictly-necessary"],"notice_banner_reject_button_hide":false,"preferences_center_close_button_hide":false,"page_refresh_confirmation_buttons":false});
});
</script>

<!-- Google Analytics -->
<script type="text/plain" data-cookie-consent="tracking" async src="https://www.googletagmanager.com/gtag/js?id=G-THG9Q3WPEJ"></script>
<script type="text/plain" data-cookie-consent="tracking">
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-THG9Q3WPEJ');
</script>
<!-- end of Google Analytics-->
<main>
<div id="app">
<div class="loading-preinit" v-cloak><div class="loading-icon"></div></div>
<div class="wrapper" v-cloak>
{{{bodyContent}}}
</div>
</div>
</main>
	<script type="text/javascript" src="{{hostName}}/assets/{{version}}/build/wg.min.js"></script>
<script type="text/javascript">
var enrichment = {{{sigJson}}};
var background = {{{insigJson}}};
var geneTables = {{{geneTableJson}}};
var clusters = {{{clusterJson}}};

{{#hasGeneSetDag}}
var dag = {{{dagJson}}};
{{/hasGeneSetDag}}
wgLib({
	enrichDatabase: {{{enrichDatabaseJson}}},
	organism: "{{organism}}",
	hostName: "{{hostName}}",
	enrichment: enrichment,
	background: background,
	geneTables: geneTables,
	clusters: clusters,
	{{#methodIsGsea}}
	enrichMethod: "gsea",
	{{/methodIsGsea}}
	{{^methodIsGsea}}
	enrichMethod: "ora",
	mappedInputSize: {{numAnnoRefUserId}},
	{{/methodIsGsea}}
	standardId: "{{standardId}}",
	{{#hasGeneSetDag}}
	dag: dag,
	{{/hasGeneSetDag}}
	volcano: {
		{{#hasGeneSetDes}}
		labelTypes: ["geneSet", "description"],
		{{/hasGeneSetDes}}
		{{^hasGeneSetDes}}
		labelTypes: "geneSet",
		{{/hasGeneSetDes}}
		dimensions: { width: 960, height: 500 },
		autoPlaceLabels: true,
		y: "FDR",

		{{#methodIsGsea}}
		x: "normalizedEnrichmentScore",
		xLabel: "normalizedEnrichmentScore",
		xTransform: null,
		radius: "leadingEdgeNum",
		color: "leadingEdgeNum",
			{{#hasGeneSetDes}}
			tooltipContent: ["geneSet", "description", "normalizedEnrichmentScore", "FDR", "pValue", "leadingEdgeNum"]
			{{/hasGeneSetDes}}
			{{^hasGeneSetDes}}
			tooltipContent: ["geneSet", "normalizedEnrichmentScore", "FDR", "pValue", "leadingEdgeNum"]
			{{/hasGeneSetDes}}
		{{/methodIsGsea}}
		{{^methodIsGsea}}
		x: "enrichmentRatio",
		xLabel: "log2 of enrichment ratio",
		radius: "overlap",
		color: "overlap",
			{{#hasGeneSetDes}}
			tooltipContent: ["geneSet", "description", "enrichmentRatio", "FDR", "pValue", "overlap"]
			{{/hasGeneSetDes}}
			{{^hasGeneSetDes}}
			tooltipContent: ["geneSet", "enrichmentRatio", "FDR", "pValue", "overlap"]
			{{/hasGeneSetDes}}
		{{/methodIsGsea}}
	},
	bar: {
		dimensions: { width: 960, height: 300 },
		labelWidth: 200,
		tooltipContent: ["geneSet", "description", "enrichmentRatio", "FDR", "pValue", "overlap"],
		valueKey: "logp",
		xLabel: "Signed -log10(p-value)",
	}
})
</script>
</body>
</html>
