Skip to content

Commit

Permalink
Merge pull request #61 from onursumer/hotfix
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
onursumer authored Nov 1, 2016
2 parents 157ce91 + c790d11 commit 2b4ce6b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
7 changes: 4 additions & 3 deletions build/mutationMapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -4554,9 +4554,10 @@ function MutationInputParser ()
var index = indexMap[column];
var value = undefined;

if (index != null)
if (index != null &&
values[index] != null)
{
value = values[index] || undefined;
value = values[index].trim();
}

return value;
Expand All @@ -4575,7 +4576,7 @@ function MutationInputParser ()
var map = {};

_.each(columns, function(column, index) {
map[column.toLowerCase()] = index;
map[column.trim().toLowerCase()] = index;
});

return map;
Expand Down
2 changes: 1 addition & 1 deletion build/mutationMapper.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion debug/debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
<td><input class="url-pdb-service"
size="70"
type="text"
value="http://www.cbioportal.org/get3dPdb.json"></td>
value="https://cbioportal.mskcc.org/pdb-annotation/pdb_annotation"></td>
</tr>
<tr>
<td>PFAM Service URL:</td>
Expand Down
2 changes: 1 addition & 1 deletion debug/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ $(document).ready(function() {
pdbProxy: {
options: {
servletName: $(".url-pdb-service").val() ||
"http://www.cbioportal.org/get3dPdb.json",
"https://cbioportal.mskcc.org/pdb-annotation/pdb_annotation",
initMode: "lazy"
}
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mutation-mapper",
"version": "1.1.3",
"version": "1.1.4",
"dependencies": {},
"devDependencies": {
"gulp": "^3.9.0",
Expand Down
7 changes: 4 additions & 3 deletions src/js/util/MutationInputParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,10 @@ function MutationInputParser ()
var index = indexMap[column];
var value = undefined;

if (index != null)
if (index != null &&
values[index] != null)
{
value = values[index] || undefined;
value = values[index].trim();
}

return value;
Expand All @@ -256,7 +257,7 @@ function MutationInputParser ()
var map = {};

_.each(columns, function(column, index) {
map[column.toLowerCase()] = index;
map[column.trim().toLowerCase()] = index;
});

return map;
Expand Down

0 comments on commit 2b4ce6b

Please sign in to comment.