Skip to content

Warnings Glossary

Kam Dahlquist edited this page May 21, 2018 · 4 revisions

Table of Contents

Warnings in Test Files
Warning List in Code

Note: All warnings and errors thrown in GRNsight should follow a three-part framework:

  1. Explain what the problem is.
  2. Explain why the problem exists.
  3. How the user can approach solving the problem.

Warnings in Test Files

Warning List in Code

missingSourceGeneWarning: function (type, column) {
    return {
        warningCode: "MISSING_SOURCE",
        errorDescription: "A source gene was detected as " + type + " in column " + column + "."  
    } 
},

missingTargetGeneWarning: function (type, row) {
    return {
        warningCode: "MISSING_TARGET",
        errorDescription: "A target gene was detected as " + type + " in row " + row + "."
    }
},

invalidMatrixDataWarning: function (row, column) {
    return {
        warningCode: "INVALID_DATA",
        errorDescription: "The value in row " + row + ", column " + column + ", was detected as being undefined."
    }
},

randomDataWarning: function (type, row, column) {
    return {
        warning: "RANDOM_DATA",
        errorDescription: "The value in row " + row + ", column " + column + ", has a corresponding source and/or target gene that is detected as " + type + "." 
    }
},

emptyRowWarning: function (row) {
    return {
        warningCode: "EMPTY_ROW",
        errorDescription: "Row " + row + " was found to contain no data."
    }
},


networkSizeWarning: function (genesList) {
    return {
        warningCode: "INVALID_NETWORK_SIZE",
        errorDescription: "Networks are recommended to have less than 50 genes and 100 edges."
    }
}
Clone this wiki locally