aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations/biweight.R
diff options
context:
space:
mode:
authorAlexander Kabui2021-06-20 09:04:55 +0300
committerAlexander Kabui2021-06-20 09:04:55 +0300
commit864f231bbdbe2c3b3c96b0158a15811ac7790c3f (patch)
treed0d0eee217c984bd72ecfacc0b131848fcb5b89d /gn3/computations/biweight.R
parentb566a8950864a373f95ae2914b862e9846297b2d (diff)
downloadgenenetwork3-864f231bbdbe2c3b3c96b0158a15811ac7790c3f.tar.gz
make requested changes to biweight
Diffstat (limited to 'gn3/computations/biweight.R')
-rw-r--r--gn3/computations/biweight.R23
1 files changed, 0 insertions, 23 deletions
diff --git a/gn3/computations/biweight.R b/gn3/computations/biweight.R
deleted file mode 100644
index e424360..0000000
--- a/gn3/computations/biweight.R
+++ /dev/null
@@ -1,23 +0,0 @@
-
-library(WGCNA)
-
-arg_values <- commandArgs(trailingOnly = TRUE)
-ParseArgs <- function(args){
-
- trait_vals <- as.numeric(unlist(strsplit(args[1], split=" ")))
- target_vals <- as.numeric(unlist(strsplit(args[2], split=" ")))
-
- return(list(trait_vals= c(trait_vals),target_vals = c(target_vals)))
-
-}
-BiweightMidCorrelation <- function(trait_val,target_val){
-
- results <- bicorAndPvalue(c(trait_val),c(target_val))
- return ((c(c(results$bicor)[1],c(results$p)[1])))
-
-}
-
-
-parsed_values <- ParseArgs(arg_values)
-
-cat((BiweightMidCorrelation(parsed_values[1],parsed_values[2]))) \ No newline at end of file