Skip to content

Commit

Permalink
Merge pull request #4602 from solgenomics/topic/solgs/fix-slurm-jobs-…
Browse files Browse the repository at this point in the history
…check

Topic/solgs/fix slurm jobs check
  • Loading branch information
isaak authored Jul 30, 2023
2 parents 89aad62 + 318573f commit d35a4e3
Show file tree
Hide file tree
Showing 12 changed files with 399 additions and 408 deletions.
7 changes: 4 additions & 3 deletions R/solGS/gs.r
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ markerFile <- grep('marker_effects', outputFiles, value = TRUE)
modelPhenoFile <- grep('model_phenodata', outputFiles, value = TRUE)
message('model input trait pheno file ', modelPhenoFile)
modelGenoFile <- grep('model_genodata', outputFiles, value = TRUE)
message('model input trait geno file ', modelPhenoFile)
message('model input trait geno file ', modelGenoFile)
traitRawPhenoFile <- grep('trait_raw_phenodata', outputFiles, value = TRUE)
varianceComponentsFile <- grep("variance_components", outputFiles, value = TRUE)
analysisReportFile <- grep("_report_", outputFiles, value = TRUE)
Expand All @@ -105,7 +105,7 @@ if (is.null(genoFile)) {
}

if (file.info(genoFile)$size == 0) {
stop("genotype data file is empty.")
stop(paste0("genotype data file ", genoFile, " is empty."))
}

readfilteredTrainingGenoData <- c()
Expand Down Expand Up @@ -187,7 +187,8 @@ if (length(formattedPhenoFile) != 0 && file.info(formattedPhenoFile)$size != 0)
}

if (file.info(phenoFile)$size == 0) {
stop("phenotype data file is empty.")
stop(paste0("phenotype data file ", phenoFile, " is empty."))

}

phenoData <- data.frame(fread(phenoFile,
Expand Down
4 changes: 2 additions & 2 deletions js/source/legacy/solGS/cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -1176,8 +1176,8 @@ jQuery(document).ready(function () {
jQuery(jobSubmit).appendTo("body");

jQuery("#cluster_submit").dialog({
height: 200,
width: 400,
height: "auto",
width: "auto",
modal: true,
title: "cluster job submission",
buttons: {
Expand Down
5 changes: 2 additions & 3 deletions js/source/legacy/solGS/kinship.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ solGS.kinship = {
},

addDowloandLinks: function (res) {
console.log(`adddownloadlinks res: ${JSON.stringify(res)}`);
var popName = res.kinship_pop_name;
var kinFileId = res.kinship_file_id;
var kinshipFile = res.kinship_table_file;
Expand Down Expand Up @@ -366,8 +365,8 @@ jQuery(document).ready(function () {
jQuery(jobSubmit).appendTo("body");

jQuery("#kinship_submit").dialog({
height: 200,
width: 400,
height: "auto",
width: "auto",
modal: true,
title: "Kinship job submission",
buttons: {
Expand Down
4 changes: 2 additions & 2 deletions js/source/legacy/solGS/pca.js
Original file line number Diff line number Diff line change
Expand Up @@ -1008,8 +1008,8 @@ jQuery(document).ready(function () {
jQuery(jobSubmit).appendTo("body");

jQuery("#pca_submit").dialog({
height: 200,
width: 400,
height: "auto",
width: "auto",
modal: true,
title: "pca job submission",
buttons: {
Expand Down
3 changes: 3 additions & 0 deletions js/source/legacy/solGS/solGS.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,9 @@ solGS.submitJob = {
args["analysis_name"] = analysisName;
args["analysis_page"] = page;

var hostname = `${location.protocol}//${location.hostname}`;
args['hostname'] = hostname;

args = JSON.stringify(args);

var analysisProfile = {
Expand Down
Loading

0 comments on commit d35a4e3

Please sign in to comment.