Skip to content

Commit

Permalink
scientific all
Browse files Browse the repository at this point in the history
  • Loading branch information
Huffyphenix committed May 27, 2021
1 parent d181efa commit a3b3185
Show file tree
Hide file tree
Showing 28 changed files with 407 additions and 146 deletions.
10 changes: 9 additions & 1 deletion gsca-angular/src/app/modules/drug/ctrp/ctrp.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,15 @@
{{ element[column] }}
</ng-template>
<ng-template #plain>
{{ column === 'drug' ? element[column] : (element[column] | number: '1.2-2') }}
{{
column === 'drug'
? element[column]
: column !== 'fdr'
? (element[column] | number: '1.2-2')
: element[column] < 0.01
? element[column].toExponential(2)
: (element[column] | number: '1.2-2')
}}
</ng-template>
</td>
</ng-container>
Expand Down
10 changes: 9 additions & 1 deletion gsca-angular/src/app/modules/drug/gdsc/gdsc.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@
{{ element[column] }}
</ng-template>
<ng-template #plain>
{{ column === 'drug' ? element[column] : (element[column] | number: '1.2-2') }}
{{
column === 'drug'
? element[column]
: column !== 'fdr'
? (element[column] | number: '1.2-2')
: element[column] < 0.01
? element[column].toExponential(2)
: (element[column] | number: '1.2-2')
}}
</ng-template>
</td>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@
{{ element[column] }}
</ng-template>
<ng-template #plain>
{{ element[column] | number: '1.2-2' }}
{{
column !== 'pval'
? (element[column] | number: '1.2-2')
: element[column] < 0.01
? element[column].toExponential(2)
: (element[column] | number: '1.2-2')
}}
</ng-template>
</td>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@
</button>
</ng-template>
<ng-template #plain>
{{ element[column] | number: '1.2-2' }}
{{
column !== 'pval' && column !== 'padj'
? (element[column] | number: '1.2-2')
: element[column] < 0.01
? element[column].toExponential(2)
: (element[column] | number: '1.2-2')
}}
</ng-template>
</td>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<mat-card fxFlex appMaterialElevation defaultElevation="4" raisedElevation="4">
<mat-card-header>
<mat-card-title
>Table: detailed information of the difference of pathway activity between high and low GSVA score groups in the selected cancers</mat-card-title
>Table: detailed information of the difference of pathway activity between high and low GSVA score groups in the selected
cancers</mat-card-title
>
</mat-card-header>
<ng-container *ngIf="!dataSourceGSVARPPALoading; else loading"></ng-container>
Expand All @@ -28,7 +29,15 @@
</button>
</ng-template>
<ng-template #plain>
{{ column === 'cancertype' ? element[column] : (element[column] | number: '1.2-2') }}
{{
column === 'cancertype'
? element[column]
: column !== 'pval' && column !== 'fdr'
? (element[column] | number: '1.2-2')
: element[column] < 0.01
? element[column].toExponential(2)
: (element[column] | number: '1.2-2')
}}
</ng-template>
</td>
</ng-container>
Expand Down Expand Up @@ -70,7 +79,9 @@
<ng-container *ngIf="showGSVARPPAImage">
<mat-card fxFlex appMaterialElevation defaultElevation="4" raisedElevation="4">
<mat-card-header>
<mat-card-title>Summary figure: association between GSVA score and activity of cancer related pathways in selected cancers</mat-card-title>
<mat-card-title
>Summary figure: association between GSVA score and activity of cancer related pathways in selected cancers</mat-card-title
>
</mat-card-header>
<mat-card-content>
<ng-container *ngIf="!GSVARPPAImageLoading; else loading">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@
<!-- </button> -->
</ng-template>
<ng-template #plain>
{{ element[column] | number: '1.2-2' }}
{{
column !== 'diff_p' && column !== 'trend_p'
? (element[column] | number: '1.2-2')
: element[column] < 0.01
? element[column].toExponential(2)
: (element[column] | number: '1.2-2')
}}
</ng-template>
</td>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<!-- </button> -->
</ng-template>
<ng-template #plain>
{{ element[column] | number: '1.2-2' }}
{{ element[column] < 0.01 ? element[column].toExponential(2) : (element[column] | number: '1.2-2') }}
</ng-template>
</td>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@
</button>
</ng-template>
<ng-template #plain>
{{ column === 'sur_type' || column === 'higher_risk_of_death' ? element[column] : (element[column] | number: '1.2-2') }}
{{
column === 'sur_type' || column === 'higher_risk_of_death'
? element[column]
: column !== 'logrankp'
? (element[column] | number: '1.2-2')
: element[column] < 0.01
? element[column].toExponential(2)
: (element[column] | number: '1.2-2')
}}
</ng-template>
</td>
</ng-container>
Expand Down
13 changes: 11 additions & 2 deletions gsca-angular/src/app/modules/expression/ppar/ppar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@
</button>
</ng-template>
<ng-template #plain>
{{ column === 'fdr' || column === 'diff' ? (element[column] | number: '1.2-2') : element[column] }}
{{
column !== 'fdr'
? element[column]
: element[column] < 0.01
? element[column].toExponential(2)
: (element[column] | number: '1.2-2')
}}
</ng-template>
</td>
</ng-container>
Expand Down Expand Up @@ -69,7 +75,10 @@
<ng-container *ngIf="showRPPAImage">
<mat-card fxFlex appMaterialElevation defaultElevation="4" raisedElevation="4">
<mat-card-header>
<mat-card-title>Summary figure: percentage of cancers in which specific gene's mRNA expression has pertential effect on pathway activity</mat-card-title>
<mat-card-title
>Summary figure: percentage of cancers in which specific gene's mRNA expression has pertential effect on pathway
activity</mat-card-title
>
</mat-card-header>
<mat-card-content>
<ng-container *ngIf="!RPPAImageLoading; else loading">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@
</button>
</ng-template>
<ng-template #plain>
{{ column === 'fdr' || column === 'pval' ? (element[column] | number: '1.2-2') : element[column] }}
{{
column !== 'fdr' && column !== 'pval'
? element[column]
: element[column] < 0.01
? element[column].toExponential(2)
: (element[column] | number: '1.2-2')
}}
</ng-template>
</td>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@
</button>
</ng-template>
<ng-template #plain>
{{ column === 'cancertype' ? element[column] : (element[column] | number: '1.2-2') }}
{{
column === 'cancertype'
? element[column]
: element[column] < 0.01
? element[column].toExponential(2)
: (element[column] | number: '1.2-2')
}}
</ng-template>
</td>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
{{
column === 'higher_risk_of_death' || column === 'cancertype' || column === 'sur_type'
? element[column]
: column !== 'logrankp' && column !== 'coxp_categorical'
? (element[column] | number: '1.2-2')
: element[column] < 0.01
? element[column].toExponential(2)
: (element[column] | number: '1.2-2')
}}
</ng-template>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
<div fxLayout="column" fxLayoutGap="10px" fxFill>
<app-doc-immune-cnv-gsva fxLayout="row" fxLayout.lt-lg="column" fxLayoutGap="10px" fxLayoutWrap fxLayoutAlign="center"></app-doc-immune-cnv-gsva>
<app-doc-immune-cnv-gsva
fxLayout="row"
fxLayout.lt-lg="column"
fxLayoutGap="10px"
fxLayoutWrap
fxLayoutAlign="center"
></app-doc-immune-cnv-gsva>
<div fxLayout="row" fxLayout.lt-lg="column" fxLayoutGap="10px" fxLayoutWrap fxLayoutAlign="center">
<ng-container *ngIf="showImmGenesetCnvCorTable">
<mat-card fxFlex appMaterialElevation defaultElevation="4" raisedElevation="4">
<mat-card-header>
<mat-card-title>Table: difference of immune infiltrates between gene set CNV groups in the specific cancers</mat-card-title>
</mat-card-header>

<ng-container *ngIf="!dataSourceImmGenesetCnvCorLoading; else loading"></ng-container>

<mat-form-field>
<input matInput placeholder="Search gene symbol" (keyup)="applyFilter($event)" #inputImmGenesetCnvCor />
<button mat-icon-button color="warn" matPrefix>
Expand All @@ -27,11 +33,17 @@
</button>
</ng-template>
<ng-template #plain>
{{ column === 'cancertype' || column === 'celltype' || column === 'method_short'? element[column] : (element[column] | number: '1.2-2') }}
{{
column !== 'p_value' && column !== 'fdr'
? element[column]
: element[column] < 0.01
? element[column].toExponential(2)
: (element[column] | number: '1.2-2')
}}
</ng-template>
</td>
</ng-container>

<ng-container matColumnDef="expandedDetail">
<td mat-cell *matCellDef="let element" [attr.colSpan]="displayedColumnsImmGenesetCnvCor.length">
<div class="example-element-detail" [@detailExpand]="triggerDetail(element)">
Expand Down Expand Up @@ -72,7 +84,15 @@
</mat-card-header>
<mat-card-content>
<ng-container *ngIf="!immGenesetCnvCorImageLoading; else loading">
<a mat-button mat-mini-fab color="warn" arial-label="download" class="download-button" [href]="immGenesetCnvCorPdfURL" target="_blank">
<a
mat-button
mat-mini-fab
color="warn"
arial-label="download"
class="download-button"
[href]="immGenesetCnvCorPdfURL"
target="_blank"
>
<mat-icon>cloud_download</mat-icon></a
>
<img [src]="immGenesetCnvCorImage" alt="immGenesetCnvCorImage" loading="lazy" />
Expand All @@ -85,4 +105,4 @@
<mat-progress-bar mode="query" color="warn"></mat-progress-bar>
</ng-template>
<ng-template #empty></ng-template>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@
</button>
</ng-template>
<ng-template #plain>
{{ column === 'cell_type' ? element[column] : (element[column] | number: '1.2-2') }}
{{
column === 'cell_type'
? element[column]
: column !== 'p_value' && column !== 'fdr'
? (element[column] | number: '1.2-2')
: element[column] < 0.01
? element[column].toExponential(2)
: (element[column] | number: '1.2-2')
}}
</ng-template>
</td>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@
</button>
</ng-template>
<ng-template #plain>
{{ column === 'cell_type' ? element[column] : (element[column] | number: '1.2-2') }}
{{
column === 'cell_type'
? element[column]
: column !== 'p_value' && column !== 'fdr'
? (element[column] | number: '1.2-2')
: element[column] < 0.01
? element[column].toExponential(2)
: (element[column] | number: '1.2-2')
}}
</ng-template>
</td>
</ng-container>
Expand Down
Loading

0 comments on commit a3b3185

Please sign in to comment.