Skip to content

Commit b2343b2

Browse files
authored
Merge pull request #536 from opentargets/cc-rename-phenodigm
[Evidence]: Rename Phenodigm
2 parents 7541fd1 + 0142dd2 commit b2343b2

File tree

9 files changed

+28
-30
lines changed

9 files changed

+28
-30
lines changed

src/dataSources.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ const dataSources = [
9494
isPrivate: isPrivateDataSource('expression_atlas'),
9595
},
9696
{
97-
id: 'phenodigm',
98-
label: 'PhenoDigm',
99-
isPrivate: isPrivateDataSource('phenodigm'),
97+
id: 'impc',
98+
label: 'IMPC',
99+
isPrivate: isPrivateDataSource('impc'),
100100
},
101101
{
102102
id: 'uniprot_variants',

src/pages/EvidencePage/sections.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import * as Gene2Phenotype from '../../sections/evidence/Gene2Phenotype';
1111
import * as GenomicsEngland from '../../sections/evidence/GenomicsEngland';
1212
import * as IntOgen from '../../sections/evidence/IntOgen';
1313
import * as OTGenetics from '../../sections/evidence/OTGenetics';
14-
import * as Phenodigm from '../../sections/evidence/Phenodigm';
14+
import * as Impc from '../../sections/evidence/Impc';
1515
import * as PheWASCatalog from '../../sections/evidence/PheWASCatalog';
1616
import * as Progeny from '../../sections/evidence/Progeny';
1717
import * as Reactome from '../../sections/evidence/Reactome';
@@ -49,7 +49,7 @@ const sections = [
4949
SysBio,
5050
EuropePmc,
5151
ExpressionAtlas,
52-
Phenodigm,
52+
Impc,
5353
OTCRISPR,
5454
OTEncore,
5555
OTValidation,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const columns = [
118118
function Body({ definition, id: { ensgId, efoId }, label: { symbol, name } }) {
119119
const {
120120
data: {
121-
phenodigm: { count: size },
121+
impc: { count: size },
122122
},
123123
} = usePlatformApi(Summary.fragments.PhenodigmSummaryFragment);
124124

src/sections/evidence/Phenodigm/Description.js renamed to src/sections/evidence/Impc/Description.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ function Description({ symbol, name }) {
66
<>
77
Mapping of phenotypes in <strong>{symbol}</strong> animal model mutants
88
similar to <strong>{name}</strong>. Source:{' '}
9-
<Link to="https://www.sanger.ac.uk/tool/phenodigm/" external>
10-
Phenodigm
9+
<Link to="https://www.mousephenotype.org" external>
10+
IMPC
1111
</Link>
1212
</>
1313
);
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
fragment IMCPSummaryFragment on Disease {
2+
impc: evidences(
3+
ensemblIds: [$ensgId]
4+
enableIndirect: true
5+
datasourceIds: ["impc"]
6+
size: 0
7+
) {
8+
count
9+
}
10+
}

src/sections/evidence/Phenodigm/Summary.js renamed to src/sections/evidence/Impc/Summary.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,25 @@ import SummaryItem from '../../../components/Summary/SummaryItem';
44
import usePlatformApi from '../../../hooks/usePlatformApi';
55
import { dataTypesMap } from '../../../dataTypes';
66

7-
const PHENODIGM_SUMMARY_FRAGMENT = loader('./PhenodigmSummaryFragment.gql');
7+
const IMCP_SUMMARY_FRAGMENT = loader('./IMCPSummaryFragment.gql');
88

99
function Summary({ definition }) {
10-
const request = usePlatformApi(PHENODIGM_SUMMARY_FRAGMENT);
10+
const request = usePlatformApi(IMCP_SUMMARY_FRAGMENT);
1111

1212
return (
1313
<SummaryItem
1414
definition={definition}
1515
request={request}
1616
renderSummary={data =>
17-
`${data.phenodigm.count} entr${
18-
data.phenodigm.count === 1 ? 'y' : 'ies'
19-
}`
17+
`${data.imcp.count} entr${data.imcp.count === 1 ? 'y' : 'ies'}`
2018
}
2119
subText={dataTypesMap.animal_model}
2220
/>
2321
);
2422
}
2523

2624
Summary.fragments = {
27-
PhenodigmSummaryFragment: PHENODIGM_SUMMARY_FRAGMENT,
25+
IMCPSummaryFragment: IMCP_SUMMARY_FRAGMENT,
2826
};
2927

3028
export default Summary;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export const definition = {
2-
id: 'phenodigm',
3-
name: 'PhenoDigm',
4-
shortName: 'PH',
5-
hasData: data => data.phenodigm.count > 0,
2+
id: 'impc',
3+
name: 'IMPC',
4+
shortName: 'IM',
5+
hasData: data => data.impc.count > 0,
66
};
77

88
export { default as Summary } from './Summary';

src/sections/evidence/Phenodigm/sectionQuery.gql renamed to src/sections/evidence/Impc/sectionQuery.gql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
query IntOgenQuery($ensemblId: String!, $efoId: String!, $size: Int!) {
1+
query impcQuery($ensemblId: String!, $efoId: String!, $size: Int!) {
22
disease(efoId: $efoId) {
33
id
44
evidences(
55
ensemblIds: [$ensemblId]
66
enableIndirect: true
77
size: $size
8-
datasourceIds: ["phenodigm"]
8+
datasourceIds: ["impc"]
99
) {
1010
rows {
1111
disease {

src/sections/evidence/Phenodigm/PhenodigmSummaryFragment.gql

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)