From e16d5b1a5f6b11acb461afddd1eb82042e634d67 Mon Sep 17 00:00:00 2001 From: ziejd2 Date: Fri, 8 Oct 2021 13:48:41 -0500 Subject: Add files via upload --- sourcecodes/bn_genenet.php | 239 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 239 insertions(+) create mode 100644 sourcecodes/bn_genenet.php (limited to '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 From 31e40ec2d154eeee9ee3d85b1cb58905740e12de Mon Sep 17 00:00:00 2001 From: ziejd2 Date: Fri, 8 Oct 2021 13:53:10 -0500 Subject: Update bn_genenet.php --- sourcecodes/bn_genenet.php | 5 ----- 1 file changed, 5 deletions(-) (limited to 'sourcecodes/bn_genenet.php') diff --git a/sourcecodes/bn_genenet.php b/sourcecodes/bn_genenet.php index de33e952..8fd5aea7 100644 --- a/sourcecodes/bn_genenet.php +++ b/sourcecodes/bn_genenet.php @@ -8,14 +8,9 @@ function genenetwork_data() { with(window.document.key_search) { - //searchkey.value=""; genenet_str = ""; - //genenet_str = genenet_str.slice(0,-1); - //console.log(genenet_str); genenet_str = genenet_str.replace(/,/g, '\t'); genenet_str = genenet_str.replace(/;/g,'\n'); - //console.log(genenet_str); - //genenet_str = genenet_str + "\n\n"; searchkey.value=genenet_str; } } -- cgit 1.4.1