diff options
Diffstat (limited to 'sourcecodes/examples')
| -rw-r--r-- | sourcecodes/examples/cardiagnosis.php | 83 | ||||
| -rw-r--r-- | sourcecodes/examples/chl_example.php | 32 | ||||
| -rw-r--r-- | sourcecodes/examples/my_new_style.css | 155 | ||||
| -rw-r--r-- | sourcecodes/examples/spleen_immune_example.php | 33 | ||||
| -rw-r--r-- | sourcecodes/examples/synthetic_example2.php | 32 | ||||
| -rw-r--r-- | sourcecodes/examples/synthetic_example3.php | 34 |
6 files changed, 369 insertions, 0 deletions
diff --git a/sourcecodes/examples/cardiagnosis.php b/sourcecodes/examples/cardiagnosis.php new file mode 100644 index 00000000..1c2b14e4 --- /dev/null +++ b/sourcecodes/examples/cardiagnosis.php @@ -0,0 +1,83 @@ +<?php + +$key=$_POST["My_key"]; +if($key=="") + $key="ab";//uniqid(""); + +include("../header_new.inc"); +?> +<!-- Site navigation menu --> +<ul class="navbar"> + <li><a href="../bn_file_load_gom.php">Learn a network model from data</a> + <li><a href="../home_upload.php">Make predictions using a known structure</a> + <li><a href="../help.php">Help</a> + <li><a href="../faq.php">FAQ</a> + <li><a href="../home.php">Home</a> + + +</ul> + +<div id="outer"> +<!-- Main content --> +<br> + +<h2>Car Diagnosis [<a href="../example.php?My_key=examplecar15node|eIA">View network</a>]</h2> +</br> +<p> +Car Diagnosis is an example of Bayesian Network structure originally designed by Norsys Software Corp. The example structure shows the relationships between different parts of a car. This network includes 15 discrete variables. Label values of the variables are annotated in the following table. </br> +</br><table border="1"> +<tr> +<th>Variables</th><th>Label 1</th><th>Label 2</th><th>Label 3</th> +</tr> +<tr> +<td>Voltage_at_plug</td><td>1=none</td><td>2=weak</td><td>3=strong</td> +</tr> +<tr> +<td>Car_cranks</td><td>1=False</td><td>2=True</td> +</tr> +<tr> +<td>Spark_plugs</td><td>1=fouled</td><td>2=too wide</td><td>3=okay</td> +</tr> +<tr> +<td>Spark_quality</td><td>1=very bad</td><td>2=bad</td><td>3=good</td> +</tr> +<tr> +<td>Distributer</td><td>1=faulty</td><td>2=okay</td> +</tr> +<tr> +<td>Spark_timing</td><td>1=very bad</td><td>2=bad</td><td>3=good</td> +</tr> +<tr> +<td>Car_starts</td><td>1=False</td><td>2=True</td> +</tr> +<tr> +<td>Headlights</td><td>1=off</td><td>2=dim</td><td>3=bright</td> +</tr> +<tr> +<td>Alternator</td><td>1=faulty</td><td>2=okay</td> +</tr> +<tr> +<td>Charging_system</td><td>1=faulty</td><td>2=okay</td> +</tr> +<tr> +<td>Battery_voltage</td><td>1=dead</td><td>2=weak</td><td>3=strong</td> +</tr> +<tr> +<td>Battery_age</td><td>1=very old</td><td>2=old</td><td>3=new</td> +</tr> +<tr> +<td>Main_fuse</td><td>1=blown</td><td>2=okay</td> +</tr> +<tr> +<td>Starter_system</td><td>1=faulty</td><td>2=okay</td> +</tr> +<tr> +<td>Starter_motor</td><td>1=faulty</td><td>2=okay</td> +</tr> +</table> +</br> +</p> + +</div> +</body> +</html> diff --git a/sourcecodes/examples/chl_example.php b/sourcecodes/examples/chl_example.php new file mode 100644 index 00000000..f695ad5c --- /dev/null +++ b/sourcecodes/examples/chl_example.php @@ -0,0 +1,32 @@ +<?php + +$key=$_POST["My_key"]; +if($key=="") + $key="ab";//uniqid(""); + +include("../header_new.inc"); +?> +<!-- Site navigation menu --> +<ul class="navbar"> + <li><a href="../bn_file_load_gom.php">Learn a network model from data</a> + <li><a href="../home_upload.php">Make predictions using a known structure</a> + <li><a href="../help.php">Help</a> + <li><a href="../faq.php">FAQ</a> + <li><a href="../home.php">Home</a> + + +</ul> + +<div id="outer"> +<!-- Main content --> +<br> + +<h2>Genetic network of immure response to infection with Chlamydia psittaci [<a href="../example.php?My_key=example_chl|bWR" target="_blank">View network</a>]</h2> +</br> +<p> + This network models the differential susceptibility to infection with <i>Chlamydia psittaci</i> observed in B6 and D2 mice, as well as in the BXD recombinant inbred strains that have been developed from these parental strains. The model predicts that disease status, as quantified by the weight loss after infection (Weight), is directly influenced by the level of neutrophils and the genotype at the Ctrq3 locus on Chr 11. Macrophage activation status (MAS) is also predicted to influence the level of neutrophils and the pathogen load. This network has been fully described in a previous paper [<a href="http:\\www.ncbi.nlm.nih.gov/pubmed/22438999" target="_blank">PubMed link</a>], in which several predictions made by the model were experimentally validated.</br> +</br> +</p> +</div> +</body> +</html> diff --git a/sourcecodes/examples/my_new_style.css b/sourcecodes/examples/my_new_style.css new file mode 100644 index 00000000..20db184f --- /dev/null +++ b/sourcecodes/examples/my_new_style.css @@ -0,0 +1,155 @@ +* { +padding: 0; +margin: 0; +} +html, body { +height: 100%; +} + +body { + margin:0px; + font-family: Georgia, "Times New Roman", + Times, serif; + color: #33339F; + background-color: white; + padding-bottom:0px; + +} + + + +.td_title +{ + padding: 0; + margin: 0; + font-family:Arial; + font-size:24pt; + HRIZONTAL-ALIGN: center; + color:#FFFFFF; + font-weight:bold; + //FONT-STYLE: italic; + background-color: #33339F; + text-align:center + +} + + + +#outer { + padding: 0; + margin: 0; + position: absolute; + top: 9em; + left: 12em; + text-align:left; + background:white; + min-width:50%; + min-hieght:50%; + max-width:70%; + +} + +#outernew { + padding: 0; + margin: 0; + position: absolute; + top: 9em; + left: 12em; + text-align:left; + background:white; + min-width:50%; + min-hieght:50%; + max-width:60%; + +} + +#outernewnew { + padding: 0; + margin: 0; + position: absolute; + top: 12em; + left: 25em; + text-align:left; + background:white; + min-width:50%; + min-hieght:50%; + max-width:60%; + +} + + + +ul.navbar { + list-style-type: none; + padding: 0; + margin: 0; + /*position: relative;*/ + float: top; + /*margin-top: 20px;*/ + top: 9em; + left: 1em; + width: 9em } + +ul.navbar2 { + list-style-type: none; + padding: 0; + margin: 0; + /*position: absolute;*/ + float:top; + top: 9em; + left: 1em; + width: 9em } + +ul.listbar { + list-style-type: none; + padding: 0; + margin: 0; + position: relative; + } + + + +h1 { + font-family: Helvetica, Geneva, Arial, + SunSans-Regular, sans-serif } +ul.navbar li { +/* background: #D0A9F5; */ + background: #33339F; + margin: 0.5em 0; + padding: 0.3em; + border-right: 1em solid black } +ul.navbar a { + text-decoration: none +} +ul.navbar a:link { + color: white; } +ul.navbar a:visited { + color: white; } + +ul.navbar2 li { +/* background: #D0A9F5; */ + background: black; + margin: 0.5em 0; + padding: 0.3em; + border-right: 1em solid #33339F; + color: white } +ul.navbar2 a { + text-decoration: none +} +ul.navbar2 a:link { + color: white; } +ul.navbar2 a:visited { + color: white; } + +a:link { + color: black; } +a:hover { + color: black; + } +a:visited { + color: black; } +address { + margin-top: 1em; + padding-top: 1em; + border-top: thin dotted } + diff --git a/sourcecodes/examples/spleen_immune_example.php b/sourcecodes/examples/spleen_immune_example.php new file mode 100644 index 00000000..89df2c7b --- /dev/null +++ b/sourcecodes/examples/spleen_immune_example.php @@ -0,0 +1,33 @@ +<?php + +$key=$_POST["My_key"]; +if($key=="") + $key="ab";//uniqid(""); + +include("../header_new.inc"); +?> +<!-- Site navigation menu --> +<ul class="navbar"> + <li><a href="../bn_file_load_gom.php">Learn a network model from data</a> + <li><a href="../home_upload.php">Make predictions using a known structure</a> + <li><a href="../help.php">Help</a> + <li><a href="../faq.php">FAQ</a> + <li><a href="../home.php">Home</a> + + +</ul> + +<div id="outer"> +<!-- Main content --> +<br> + +<h2>Genetic network of immune-related genes in the spleens of BXD mice [<a href="../example.php?My_key=example_chr2_spleen|cuL" target="_blank">View network</a>]</h2> +</br> +<p> + This network models how a SNP on Chr 2 impacts the expression of several immune-related genes in BXD mice. To create the network, we selected expression values for genes with an immune-related GO annotation from a microarray dataset that is available in the <a href="http://genenetwork.org" target="_blank">GeneNetwork</a>. The dataset contains gene expression in the spleens of 81 BXD strains and is further described <a href="http://genenetwork.org/webqtl/main.py?FormID=sharinginfo&GN_AccessionId=283" target="_blank">here</a>. Next, we performed QTL mapping of these immune-related gene expression traits and found that many genes mapped near rs3664317, a SNP at 63.69 Mb on Chr 2.<br><br> + To make a Bayesian network model of the interactions among the locus and the genes, we created an input file, following the BNW file format, containing the genotype at rs3664317 and the expression of the genes with QTLs at this locus. In the file, which can be downloaded <a href="../example_datasets/spleen_chr2_example_data.txt">here</a>, each row is a BXD strain and each column is a variable (a gene expression trait or the genotype). We coded the genotype to fit the BNW input file format, giving strains with a D genotype a value of 1 for the rs3664317 variable and strains with a B genotype a value of a 2.<br><br> When performing structure learning for this example, we adjusted settings and added constraints using the BNW structural constraint interface. First, we performed model averaging over the 100 highest scoring network structures and set the model averaging selection threshold to 0.9, so that only edges that were in a large majority of high scoring network structures were included. Next, we separated the network variables into 3 tiers: Tier1 contained the genotype at rs3664317, Tier2 contained cis-regulated genes, and Tier3 contained trans-regulated genes. Using the default settings for within and between tier interactions, this method of tier construction prevents trans-regulated genes from being the parents of cis-regulated genes. In this case, only one gene, Ifih1, was cis-regulated by this locus.</br> +</br> +</p> +</div> +</body> +</html> diff --git a/sourcecodes/examples/synthetic_example2.php b/sourcecodes/examples/synthetic_example2.php new file mode 100644 index 00000000..aed9d357 --- /dev/null +++ b/sourcecodes/examples/synthetic_example2.php @@ -0,0 +1,32 @@ +<?php + +$key=$_POST["My_key"]; +if($key=="") + $key="ab";//uniqid(""); + +include("../header_new.inc"); +?> +<!-- Site navigation menu --> +<ul class="navbar"> + <li><a href="../bn_file_load_gom.php">Learn a network model from data</a> + <li><a href="../home_upload.php">Make predictions using a known structure</a> + <li><a href="../help.php">Help</a> + <li><a href="../faq.php">FAQ</a> + <li><a href="../home.php">Home</a> + + +</ul> + +<div id="outer"> +<!-- Main content --> +<br> + +<h2>Synthetic genetic network [<a href="../example.php?My_key=example2|hQG" target="_blank">View network</a>]</h2> +</br> +<p> + This network was created using simulated genetic data. The input data file, which is available <a href="../example_datasets/example_data_8nodes.txt">here</a>, contains 2 genotypes and 6 traits. However, one of the traits (Trait5), is not connected in the network, indicating that it is not influenced by other variables in the dataset and that it does not influence other variables in the network. A complete workflow describing the use of BNW to learn the network structure and make predictions of the resulting model with this dataset is provided in <a href="../BNW_workflow_net1.htm" target="_blank">this tutorial</a>.</br> +</br> +</p> +</div> +</body> +</html> diff --git a/sourcecodes/examples/synthetic_example3.php b/sourcecodes/examples/synthetic_example3.php new file mode 100644 index 00000000..167132e2 --- /dev/null +++ b/sourcecodes/examples/synthetic_example3.php @@ -0,0 +1,34 @@ +<?php + +$key=$_POST["My_key"]; +if($key=="") + $key="ab";//uniqid(""); + +include("../header_new.inc"); +?> +<!-- Site navigation menu --> +<ul class="navbar"> + <li><a href="../bn_file_load_gom.php">Learn a network model from data</a> + <li><a href="../home_upload.php">Make predictions using a known structure</a> + <li><a href="../help.php">Help</a> + <li><a href="../faq.php">FAQ</a> + <li><a href="../home.php">Home</a> + + +</ul> + +<div id="outer"> +<!-- Main content --> +<br> + +<h2>Synthetic genetic network with time-series data [<a href="../example.php?My_key=example_time_series|TEb" target="_blank">View network</a>]</h2> +</br> +<p> +This network was created using a simulated time-series genetic dataset that is available <a href="../example_datasets/time_series_example.txt">here</a>. The dataset contains a genotype and the three quantitative traits (TraitA, TraitB, and TraitC) that were each measured at 3 time points (T1, T2, and T3). In this example, T1 might represent the baseline measurement the traits at the time of or shortly before an experimental intervention, while T2 and T3 could represent measurements of the traits in response to the experiment. <br><br> +When performing structure learning of this dataset, we used the BNW structural constraint interface to provide constraints on the structure to incorporate the prior knowledge provided by the time the data was collected. Specifically, we separated the data into 4 tiers: Tier 1 contained the genotype, Tier2 containted the three traits at time T1, Tier3 containted the traits at time T2, and Tier4 contained the traits at time T3. We maintined the default options for allowing interactions within or between tiers, preventing any traits from being the parent of the genotype and any trait at a later time point from being the parent of an earlier time point. The network shown was learned using a model average of the 100 highest scoring structures.<br><br> +The network model shows that the genotype consistently influenced TraitA at each of the time points, but that other interactions in the network were dependent on time. The variation in TraitB caused by the genotype could only be observed at time T2, after the experimental intervention, and this influence on TraitB decreased by time T3. There were also time-dependent interactions between the quantitative traits, as TraitB at T2 could be predicted by TraitA at T1 and TraitC at T3 could be predicted by TraitA at T1 and TraitB at T2.</br> +</br> +</p> +</div> +</body> +</html> |
