Skip to content

Commit

Permalink
Merge pull request #604 from wxli0/enrichment-custbgCb
Browse files Browse the repository at this point in the history
remove custbgCb in enrichment service
  • Loading branch information
d2fong authored Apr 3, 2018
2 parents 250bd0b + 3e52875 commit 11622cc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/server/enrichment-map/enrichment/enrichment.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const defaultSetting = {
"threshold_algo": "fdr",
"domain_size_type": "annotated",
"custbg": [],
"custbg_cb": 0,
"sf_GO:BP": 1,
"sf_REAC": 1,
};
Expand All @@ -55,7 +54,6 @@ const enrichment = (query, userSetting) => {
const minSetSizeVal = Number(formData.min_set_size);
const maxSetSizeVal = Number(formData.max_set_size);
const thresholdAlgoVal = formData.threshold_algo;
const custbgCbVal = Number(formData.custbg_cb);
if (orderedQueryVal != 0 && orderedQueryVal != 1) {
reject(new Error('ERROR: orderedQuery should be 1 or 0'));
}
Expand All @@ -77,9 +75,6 @@ const enrichment = (query, userSetting) => {
if (thresholdAlgoVal != 'analytical' && thresholdAlgoVal != 'bonferroni' && thresholdAlgoVal != 'fdr') {
reject(new Error('ERROR: thresholdAlgoVal should be one of analytical, bonferroni, fdr'));
}
if (custbgCbVal != 0 && custbgCbVal != 1) {
reject(new Error('ERROR: custbgCb should be 1 or 0'));
}

request.post({ url: gProfilerURL, formData: formData }, (err, httpResponse, gProfilerResponse) => {
if (err) {
Expand Down

0 comments on commit 11622cc

Please sign in to comment.