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
cb6d2f56
Commit
cb6d2f56
authored
Aug 02, 2016
by
jgould
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
field check
parent
aa65a181
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/io/maf_file_reader.js
src/io/maf_file_reader.js
+6
-0
No files found.
src/io/maf_file_reader.js
View file @
cb6d2f56
...
@@ -135,6 +135,9 @@ morpheus.MafFileReader.prototype = {
...
@@ -135,6 +135,9 @@ morpheus.MafFileReader.prototype = {
lc
:
true
,
lc
:
true
,
remove
:
true
remove
:
true
});
});
if
(
sampleField
==
null
)
{
throw
new
Error
(
'
Sample id column not found.
'
);
}
var
sampleColumnName
=
sampleField
.
name
;
var
sampleColumnName
=
sampleField
.
name
;
var
sampleIdColumnIndex
=
sampleField
.
index
;
var
sampleIdColumnIndex
=
sampleField
.
index
;
var
tumorFractionField
=
morpheus
.
MafFileReader
.
getField
([
'
ccf_hat
'
,
var
tumorFractionField
=
morpheus
.
MafFileReader
.
getField
([
'
ccf_hat
'
,
...
@@ -157,6 +160,9 @@ morpheus.MafFileReader.prototype = {
...
@@ -157,6 +160,9 @@ morpheus.MafFileReader.prototype = {
var
proteinChangeColumn
=
fieldNameToIndex
[
'
Protein_Change
'
var
proteinChangeColumn
=
fieldNameToIndex
[
'
Protein_Change
'
.
toLowerCase
()];
.
toLowerCase
()];
var
geneSymbolColumn
=
fieldNameToIndex
[
'
Hugo_Symbol
'
.
toLowerCase
()];
var
geneSymbolColumn
=
fieldNameToIndex
[
'
Hugo_Symbol
'
.
toLowerCase
()];
if
(
geneSymbolColumn
==
null
)
{
throw
new
Error
(
'
Gene symbol column not found.
'
);
}
var
variantColumnIndex
=
headerToIndex
[
'
Variant_Classification
'
var
variantColumnIndex
=
headerToIndex
[
'
Variant_Classification
'
.
toLowerCase
()];
.
toLowerCase
()];
if
(
variantColumnIndex
===
undefined
)
{
if
(
variantColumnIndex
===
undefined
)
{
...
...
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