Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
morpheus.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Daria Zenkova
morpheus.js
Commits
a54e89ff
Commit
a54e89ff
authored
Apr 01, 2016
by
joshua-gould
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip unknown genes
parent
bdf80561
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/io/maf_file_reader.js
src/io/maf_file_reader.js
+8
-5
No files found.
src/io/maf_file_reader.js
View file @
a54e89ff
...
...
@@ -119,7 +119,7 @@ morpheus.MafFileReader.prototype = {
}
}
var
sampleField
=
morpheus
.
MafFileReader
.
getField
([
'
Tumor_Sample_Barcode
'
,
'
tumor_name
'
,
'
Tumor_Sample_UUID
'
],
'
Tumor_Sample_Barcode
'
,
'
tumor_name
'
,
'
Tumor_Sample_UUID
'
],
fieldNameToIndex
,
{
lc
:
true
,
remove
:
true
...
...
@@ -128,9 +128,9 @@ morpheus.MafFileReader.prototype = {
var
sampleIdColumnIndex
=
sampleField
.
index
;
var
tumorFractionField
=
morpheus
.
MafFileReader
.
getField
([
'
ccf_hat
'
,
'
tumor_f
'
,
'
i_tumor_f
'
],
fieldNameToIndex
,
{
lc
:
true
,
remove
:
true
});
lc
:
true
,
remove
:
true
});
var
ccfColumnName
;
var
ccfColumnIndex
;
if
(
tumorFractionField
!==
undefined
)
{
...
...
@@ -178,6 +178,9 @@ morpheus.MafFileReader.prototype = {
sampleIdToIndex
.
set
(
sample
,
columnIndex
);
}
var
gene
=
String
(
tokens
[
geneSymbolColumn
]);
if
(
gene
===
'
Unknown
'
)
{
continue
;
}
if
(
this
.
geneFilter
==
null
||
this
.
geneFilter
.
has
(
tokens
[
geneSymbolColumn
]))
{
var
rowIndex
=
geneSymbolToIndex
.
get
(
gene
);
...
...
@@ -257,7 +260,7 @@ morpheus.MafFileReader.prototype = {
if
(
ccfColumnIndex
!==
undefined
)
{
dataset
.
addSeries
({
dataType
:
'
object
'
,
name
:
'
ccf
'
,
name
:
'
allelic_fraction
'
,
array
:
ccfMatrix
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment