Skip to content

Commit c3a0a47

Browse files
authored
Fix: unify hpscreg field name (#425)
* update field name in current cell line data * update converter to read new field name * update config to use all lower case name
1 parent 7f42fd2 commit c3a0a47

66 files changed

Lines changed: 70 additions & 70 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/component-queries/convert-data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const convertFrontmatterToDiseaseCellLine = (
6565
return {
6666
cellLineId: cellLineNode.frontmatter.cell_line_id,
6767
certificateOfAnalysis: cellLineNode.frontmatter.certificate_of_analysis,
68-
healthCertificate: cellLineNode.frontmatter.hPSCreg_certificate_link,
68+
healthCertificate: cellLineNode.frontmatter.hpscreg_certificate_link,
6969
snp: cellLineNode.frontmatter.snp,
7070
status: cellLineNode.frontmatter.status,
7171
clones: cellLineNode.frontmatter.clones,
@@ -121,7 +121,7 @@ export const convertFrontmatterToNormalCellLines = ({
121121
structures: structures,
122122
status: cellLineNode.frontmatter.status,
123123
certificateOfAnalysis: cellLineNode.frontmatter.certificate_of_analysis,
124-
healthCertificate: cellLineNode.frontmatter.eu_hpsc_reg,
124+
healthCertificate: cellLineNode.frontmatter.hpscreg_certificate_link,
125125
orderLink: cellLineNode.frontmatter.order_link,
126126
orderPlasmid: cellLineNode.frontmatter.donor_plasmid,
127127
thumbnailImage: getThumbnail(

src/component-queries/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export interface NormalCellLineFrontmatter {
134134
};
135135
};
136136
certificate_of_analysis: string;
137-
eu_hpsc_reg: string;
137+
hpscreg_certificate_link: string;
138138
editing_design: {
139139
ncbi_isoforms: string;
140140
cr_rna: string;
@@ -217,7 +217,7 @@ export interface DiseaseCellLineFrontmatter {
217217
certificate_of_analysis: string;
218218
order_link: string;
219219
status: CellLineStatus;
220-
hPSCreg_certificate_link: string;
220+
hpscreg_certificate_link: string;
221221
images_and_videos?: MediaFrontmatter;
222222
editing_design?: {
223223
cr_rna_target_site: string;

src/components/SubPage/convert-data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ export const unpackNormalFrontmatterForSubpage = (
333333
structures: structures,
334334
status: cellLineNode.frontmatter.status,
335335
certificateOfAnalysis: cellLineNode.frontmatter.certificate_of_analysis,
336-
healthCertificate: cellLineNode.frontmatter.eu_hpsc_reg,
336+
healthCertificate: cellLineNode.frontmatter.hpscreg_certificate_link,
337337
orderLink: cellLineNode.frontmatter.order_link,
338338
orderPlasmid: cellLineNode.frontmatter.donor_plasmid,
339339
thumbnailImage: getThumbnail(
@@ -371,7 +371,7 @@ export const unpackDiseaseFrontmatterForSubpage = (
371371
cellLineId: cellLineNode.frontmatter.cell_line_id,
372372
status: cellLineNode.frontmatter.status,
373373
certificateOfAnalysis: cellLineNode.frontmatter.certificate_of_analysis,
374-
healthCertificate: cellLineNode.frontmatter.hPSCreg_certificate_link,
374+
healthCertificate: cellLineNode.frontmatter.hpscreg_certificate_link,
375375
orderLink: cellLineNode.frontmatter.order_link,
376376
geneName: geneName,
377377
geneSymbol: geneSymbol,

src/pages/cell-line/AICS-10-55/index.md

Lines changed: 1 addition & 1 deletion

src/pages/cell-line/AICS-11-27/index.md

Lines changed: 1 addition & 1 deletion

src/pages/cell-line/AICS-114-32/index.md

Lines changed: 1 addition & 1 deletion

src/pages/cell-line/AICS-114-35/index.md

Lines changed: 1 addition & 1 deletion

src/pages/cell-line/AICS-12-105/index.md

Lines changed: 1 addition & 1 deletion

src/pages/cell-line/AICS-120-204/index.md

Lines changed: 1 addition & 1 deletion

src/pages/cell-line/AICS-122-77/index.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)