Skip to content

Commit

Permalink
fixed a bug in generateSJARACNeInput: sig.file is not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
QingfeiPan committed Aug 27, 2024
1 parent f0604b5 commit 2ff10aa
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions R/network_analysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -316,15 +316,25 @@ generateSJARACNeInput <- function(input_eset,

# command line
if (do.supercell) {
sjaracne_cmd.lsf_tf <- sprintf('sjaracne lsf -e %s -g %s -o %s -n 100 -pc 1e-3 -j %s/config_cwlexec.json', gex.file, tf.file, grp_dir.tf, grp_dir)
sjaracne_cmd.lsf_sig <- sprintf('sjaracne lsf -e %s -g %s -o %s -n 100 -pc 1e-3 -j %s/config_cwlexec.json', gex.file, sig.file, grp_dir.sig, grp_dir)
sjaracne_cmd.local_tf <- sprintf('sjaracne local -e %s -g %s -o %s -n 100 -pc 1e-3', gex.file, tf.file, grp_dir.tf)
sjaracne_cmd.local_sig <- sprintf('sjaracne local -e %s -g %s -o %s -n 100 -pc 1e-3', gex.file, sig.file, grp_dir.sig)
if (driver_type %in% c("TF_SIG", "TF")) {
sjaracne_cmd.lsf_tf <- sprintf('sjaracne lsf -e %s -g %s -o %s -n 100 -pc 1e-3 -j %s/config_cwlexec.json', gex.file, tf.file, grp_dir.tf, grp_dir)
sjaracne_cmd.local_tf <- sprintf('sjaracne local -e %s -g %s -o %s -n 100 -pc 1e-3', gex.file, tf.file, grp_dir.tf)
}

if (driver_type %in% c("TF_SIG", "SIG")) {
sjaracne_cmd.lsf_sig <- sprintf('sjaracne lsf -e %s -g %s -o %s -n 100 -pc 1e-3 -j %s/config_cwlexec.json', gex.file, sig.file, grp_dir.sig, grp_dir)
sjaracne_cmd.local_sig <- sprintf('sjaracne local -e %s -g %s -o %s -n 100 -pc 1e-3', gex.file, sig.file, grp_dir.sig)
}
} else {
sjaracne_cmd.lsf_tf <- sprintf('sjaracne lsf -e %s -g %s -o %s -n 100 -pc 1e-2 -j %s/config_cwlexec.json', gex.file, tf.file, grp_dir.tf, grp_dir)
sjaracne_cmd.lsf_sig <- sprintf('sjaracne lsf -e %s -g %s -o %s -n 100 -pc 1e-2 -j %s/config_cwlexec.json', gex.file, sig.file, grp_dir.sig, grp_dir)
sjaracne_cmd.local_tf <- sprintf('sjaracne local -e %s -g %s -o %s -n 100 -pc 1e-2', gex.file, tf.file, grp_dir.tf)
sjaracne_cmd.local_sig <- sprintf('sjaracne local -e %s -g %s -o %s -n 100 -pc 1e-2', gex.file, sig.file, grp_dir.sig)
if (driver_type %in% c("TF_SIG", "TF")) {
sjaracne_cmd.lsf_tf <- sprintf('sjaracne lsf -e %s -g %s -o %s -n 100 -pc 1e-2 -j %s/config_cwlexec.json', gex.file, tf.file, grp_dir.tf, grp_dir)
sjaracne_cmd.local_tf <- sprintf('sjaracne local -e %s -g %s -o %s -n 100 -pc 1e-2', gex.file, tf.file, grp_dir.tf)
}

if (driver_type %in% c("TF_SIG", "SIG")) {
sjaracne_cmd.lsf_sig <- sprintf('sjaracne lsf -e %s -g %s -o %s -n 100 -pc 1e-2 -j %s/config_cwlexec.json', gex.file, sig.file, grp_dir.sig, grp_dir)
sjaracne_cmd.local_sig <- sprintf('sjaracne local -e %s -g %s -o %s -n 100 -pc 1e-2', gex.file, sig.file, grp_dir.sig)
}
}
# command line parameters
cmd_paras <- sprintf('-e: input expression file;
Expand Down

0 comments on commit 2ff10aa

Please sign in to comment.