@@ -17,6 +17,7 @@ const columnDefs: ColDef[] = [{
1717 hide : false ,
1818} , {
1919 headerName : 'Location' ,
20+ field : 'location' ,
2021 valueGetter : ( { data } ) => data . chromosome && `${ data . chromosome } :${ data . startPosition } ${ data . endPosition && data . startPosition !== data . endPosition
2122 ? `-${ data . endPosition } `
2223 : ''
@@ -28,6 +29,7 @@ const columnDefs: ColDef[] = [{
2829 hide : false ,
2930} , {
3031 headerName : 'Ref/Alt' ,
32+ field : 'refAlt' ,
3133 valueGetter : ( { data } ) => `${ data . refSeq } >${ data . altSeq } ` ,
3234 hide : false ,
3335} , {
@@ -41,6 +43,7 @@ const columnDefs: ColDef[] = [{
4143} ,
4244{
4345 headerName : 'Alt/Total count DNA' ,
46+ field : 'altTotalCountDna' ,
4447 valueGetter : ( { data } ) => (
4548 data . tumourDepth !== null && data . tumourAltCount !== null
4649 ? `${ data . tumourAltCount } / ${ data . tumourDepth } `
@@ -50,13 +53,33 @@ const columnDefs: ColDef[] = [{
5053} ,
5154{
5255 headerName : 'Alt/Total copies DNA' ,
56+ field : 'altTotalCopiesDna' ,
5357 valueGetter : ( { data } ) => (
5458 data . tumourAltCopies !== null && data . tumourRefCopies !== null
5559 ? `${ data . tumourAltCopies } / ${ data . tumourRefCopies + data . tumourAltCopies } `
5660 : ''
5761 ) ,
5862 hide : false ,
5963} ,
64+ {
65+ headerName : 'VAF %' ,
66+ colId : 'tumourAltCount/tumourDepth' ,
67+ field : 'tumourAltCount/tumourDepth' ,
68+ valueGetter : ( {
69+ data : {
70+ tumourAltCount, tumourDepth, rnaAltCount, rnaDepth,
71+ } ,
72+ } ) => {
73+ if ( ( tumourAltCount && tumourDepth ) || ( tumourAltCount === 0 || tumourDepth === 0 ) ) {
74+ return ( ( tumourAltCount / tumourDepth ) * 100 ) . toFixed ( 0 ) ;
75+ }
76+ if ( ( rnaAltCount && rnaDepth ) || ( rnaAltCount === 0 || rnaDepth === 0 ) ) {
77+ return 'N/A (RNA)' ;
78+ }
79+ return '' ;
80+ } ,
81+ hide : false ,
82+ } ,
6083{
6184 headerName : 'HGVSp' ,
6285 field : 'hgvsProtein' ,
0 commit comments