Commit a54e89ff authored by joshua-gould's avatar joshua-gould

skip unknown genes

parent bdf80561
...@@ -178,6 +178,9 @@ morpheus.MafFileReader.prototype = { ...@@ -178,6 +178,9 @@ morpheus.MafFileReader.prototype = {
sampleIdToIndex.set(sample, columnIndex); sampleIdToIndex.set(sample, columnIndex);
} }
var gene = String(tokens[geneSymbolColumn]); var gene = String(tokens[geneSymbolColumn]);
if (gene === 'Unknown') {
continue;
}
if (this.geneFilter == null if (this.geneFilter == null
|| this.geneFilter.has(tokens[geneSymbolColumn])) { || this.geneFilter.has(tokens[geneSymbolColumn])) {
var rowIndex = geneSymbolToIndex.get(gene); var rowIndex = geneSymbolToIndex.get(gene);
...@@ -257,7 +260,7 @@ morpheus.MafFileReader.prototype = { ...@@ -257,7 +260,7 @@ morpheus.MafFileReader.prototype = {
if (ccfColumnIndex !== undefined) { if (ccfColumnIndex !== undefined) {
dataset.addSeries({ dataset.addSeries({
dataType : 'object', dataType : 'object',
name : 'ccf', name : 'allelic_fraction',
array : ccfMatrix array : ccfMatrix
}); });
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment