-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from lrgr/events-and-sig-types
Events and sig types
- Loading branch information
Showing
50 changed files
with
3,903 additions
and
2,758 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { MUT_TYPES } from './../constants.js'; | ||
|
||
export default class CancerType { | ||
|
||
constructor(id, name, signatures) { | ||
this.name = name; // string | ||
this.id = id; // string | ||
this.signatures = {}; | ||
for(let mutType of MUT_TYPES) { | ||
if(signatures.hasOwnProperty(mutType)) { | ||
this.signatures[mutType] = signatures[mutType]; | ||
} else { | ||
this.signatures[mutType] = []; | ||
} | ||
} | ||
} | ||
|
||
get signaturesFlat() { | ||
let result = []; | ||
for(let mutType of MUT_TYPES) { | ||
for(let sig of this.signatures[mutType]) { | ||
result.push(sig); | ||
} | ||
} | ||
return result; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export default class Project { | ||
|
||
constructor(id, name, numDonors, source, hasClinical, hasExtended, hasCounts) { | ||
this.id = id; | ||
this.name = name; | ||
this.numDonors = numDonors; | ||
this.source = source; | ||
this.hasClinical = hasClinical; | ||
this.hasExtended = hasExtended; | ||
this.hasCounts = hasCounts; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
export default class Signature { | ||
|
||
constructor(name, description, index, publication, mutType) { | ||
this.name = name; | ||
this.description = description; | ||
this.index = index; | ||
this.publication = publication; | ||
this.mutType = mutType; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export default class SignatureGroup { | ||
|
||
constructor(id, name) { | ||
this.id = id; | ||
this.name = name; | ||
this.cancerTypes = []; | ||
} | ||
|
||
addCancerType(cancerType) { | ||
this.cancerTypes.push(cancerType); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
export const KARYOTYPE_COLORS = { | ||
'gneg': '#E3E3E3', | ||
'gpos25': '#8E8E8E', | ||
'gpos50': '#555555', | ||
'gpos75': '#393939', | ||
'gpos100': '#000000', | ||
'acen': '#963232', | ||
'stalk': '#7F7F7F', | ||
'gvar': '#000000' | ||
}; | ||
|
||
export const MUTATION_COLORS = { | ||
'C>A': '#21BDEC', | ||
'C>G': '#000000', | ||
'C>T': '#E02C2E', | ||
'T>A': '#999999', | ||
'T>C': '#A2CD69', | ||
'T>G': '#EAC6C5', | ||
|
||
'AC>NN': '#A7CEE2', | ||
'AT>NN': '#2679B2', | ||
'CC>NN': '#B3DE8E', | ||
'CG>NN': '#399F34', | ||
'CT>NN': '#F99B9B', | ||
'GC>NN': '#E01F27', | ||
'TA>NN': '#FCBE75', | ||
'TC>NN': '#FD7F23', | ||
'TG>NN': '#CAB3D5', | ||
'TT>NN': '#694098', | ||
|
||
'D1C': '#FCBD75', | ||
'D1T': '#FD8024', | ||
'I1C': '#B1DC8F', | ||
'I1T': '#3BA036', | ||
'DR2': '#FCCAB7', | ||
'DR3': '#FA8A6E', | ||
'DR4': '#EE463A', | ||
'DR5+': '#BA1822', | ||
'IR2': '#D1E1F1', | ||
'IR3': '#96C4DE', | ||
'IR4': '#4E99C7', | ||
'IR5+': '#1D66A9', | ||
'DM2': '#E2E2EF', | ||
'DM3': '#B6B7D7', | ||
'DM4': '#8684BB', | ||
'DM5+': '#614399' | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.