From 18bb2ca4873200ea99cfadc4603531ec79fe80ac Mon Sep 17 00:00:00 2001 From: ziejd2 Date: Fri, 8 Oct 2021 13:36:35 -0500 Subject: Add files via upload --- sourcecodes/bn_genenet.php | 239 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 239 insertions(+) create mode 100644 sourcecodes/bn_genenet.php diff --git a/sourcecodes/bn_genenet.php b/sourcecodes/bn_genenet.php new file mode 100644 index 00000000..de33e952 --- /dev/null +++ b/sourcecodes/bn_genenet.php @@ -0,0 +1,239 @@ + + + + + + + + + + + +include("header_new.inc"); +include("header_batchsearch.inc"); +include("runtime_check.php"); +include("input_validate.php"); +$searchID=""; +$UploadValue="NO"; +$TextFile=$_FILES["MyFile"]["name"]; + + +/////////////Generate a random key///////////////////// +$alphas=array(); +$alphas = array_merge(range('A', 'Z'), range('a', 'z')); + +$al1=rand(0,51); +$al2=rand(0,51); +$al3=rand(0,51); + +$alpha="$alphas[$al1]"."$alphas[$al2]"."$alphas[$al3]"; +$keyval=$alpha; + + +if($_POST["My_key"]!="") + $keyval=$_POST["My_key"]; + $keyval=valid_keyval($keyval); + +$sid=$keyval."continuous_input"; +//$dir="./data/"; +//$dir="/tmp/bnw/"; +$dir="/var/lib/genenet/bnw/"; +//$input_table_file="./data/".$keyval."input_table.txt"; +$input_table_file=$dir.$keyval."input_table.txt"; + +$TextinFile=$dir.$sid."_orig.txt"; + + +if(isset($_POST["searchkey"])) +{ + $searchID=$_POST["searchkey"]; + $searchID = str_replace(',', "\t", $searchID); + $searchID = str_replace(';', "\n", $searchID); +} + +if($searchID=="") +{ +?> + + + + window.alert ('Sorry, error uploading $TextFile.')"; + flush(); + exit(); + } + else + { + $searchID=file_get_contents("$TextinFile"); + //unlink($TextinFile); + + } + + } + + else + { + echo ""; + } + } +} + +?> +
+
+
+ + + + > + + + + + + > + + +
+
+ + + + + + + + + + + + +
+
+ Perform Bayesian network modeling using default settings. Estimated runtime: seconds +
+Go to structure learning settings and the BNW structural constraint interface +
+Remove variables from data set +
+
+

The uploaded data file has the following properties: +

+ +
+ +
+


+

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + -- cgit 1.4.1