Skip to content

Commit

Permalink
Merge branch 'main' into Bug-Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfisher72 authored Oct 30, 2023
2 parents 62f6d8d + 35548cc commit a98eb9a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
23 changes: 21 additions & 2 deletions screen2.0/src/app/search/ccredetails/inspecificbiosample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type cCRERow = {
h3k4me3: number
h3k27ac: number
ctcf: number
atac: number
group: any
}

Expand All @@ -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",
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
}
})

Expand Down Expand Up @@ -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 }
Expand Down Expand Up @@ -274,7 +293,7 @@ export const InSpecificBiosamples = ({ accession, globals, assembly }) => {
{typea && (
<DataTable
columns={tableCols(globals)}
tableTitle="Classification in Type A biosamples (all four marks available)"
tableTitle="Classification in Type A biosamples (all five marks available)"
rows={typea}
sortColumn={1}
itemsPerPage={5}
Expand Down
1 change: 1 addition & 0 deletions screen2.0/src/app/search/ccredetails/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const TOP_TISSUES: TypedDocumentNode<Data, Variables> = gql`
h3k4me3: maxZ(assay: "H3K4me3")
h3k27ac: maxZ(assay: "H3K27ac")
ctcf: maxZ(assay: "CTCF")
atac: maxZ(assay: "ATAC")
}
}
`
Expand Down

0 comments on commit a98eb9a

Please sign in to comment.