diff --git a/screen2.0/src/app/search/ccredetails/inspecificbiosample.tsx b/screen2.0/src/app/search/ccredetails/inspecificbiosample.tsx index 2aeb5e5b..f1682195 100644 --- a/screen2.0/src/app/search/ccredetails/inspecificbiosample.tsx +++ b/screen2.0/src/app/search/ccredetails/inspecificbiosample.tsx @@ -13,6 +13,7 @@ type cCRERow = { h3k4me3: number h3k27ac: number ctcf: number + atac: number group: any } @@ -39,6 +40,11 @@ const tableCols = (globals, typeC = false) => { value: (row: cCRERow) => row.ctcf, render: (row: cCRERow) => z_score(row.ctcf), }, + { + header: "ATAC Z-score", + value: (row: cCRERow) => row.atac, + render: (row: cCRERow) => z_score(row.atac), + } ] : [ { header: "Cell Type", @@ -65,6 +71,11 @@ const tableCols = (globals, typeC = false) => { value: (row: cCRERow) => row.ctcf, render: (row: cCRERow) => z_score(row.ctcf), }, + { + header: "ATAC Z-score", + value: (row: cCRERow) => row.atac, + render: (row: cCRERow) => z_score(row.atac), + }, { header: "Group", value: (row: cCRERow) => row.group, @@ -96,6 +107,11 @@ const ctAgnosticColumns = () => [ value: (row: cCRERow) => row.ctcf, render: (row: cCRERow) => z_score(row.ctcf), }, + { + header: "ATAC max-Z", + value: (row: cCRERow) => row.atac, + render: (row: cCRERow) => z_score(row.atac), + }, { header: "Group", value: (row: cCRERow) => row.group, @@ -195,6 +211,9 @@ export const InSpecificBiosamples = ({ accession, globals, assembly }) => { h3k27ac: d.cCREZScores.find((cz) => cz.assay.toLowerCase() === "h3k27ac") ? d.cCREZScores.find((cz) => cz.assay.toLowerCase() === "h3k27ac").score : -11.0, + atac: d.cCREZScores.find((cz) => cz.assay.toLowerCase() === "atac") + ? d.cCREZScores.find((cz) => cz.assay.toLowerCase() === "atac").score + : -11.0, } }) @@ -229,7 +248,7 @@ export const InSpecificBiosamples = ({ accession, globals, assembly }) => { } else { type = "typec" } - if (t.dnase !== -11.0 && t.ctcf !== -11.0 && t.h3k27ac !== -11.0 && t.h3k4me3 !== -11.0) { + if (t.dnase !== -11.0 && t.ctcf !== -11.0 && t.h3k27ac !== -11.0 && t.h3k4me3 !== -11.0 && t.atac !== -11.0) { type = "typea" } return { ...t, type, group } @@ -274,7 +293,7 @@ export const InSpecificBiosamples = ({ accession, globals, assembly }) => { {typea && ( = gql` h3k4me3: maxZ(assay: "H3K4me3") h3k27ac: maxZ(assay: "H3K27ac") ctcf: maxZ(assay: "CTCF") + atac: maxZ(assay: "ATAC") } } `