Skip to content

Commit

Permalink
fix: Expression Atlas section size
Browse files Browse the repository at this point in the history
  • Loading branch information
carcruz committed Nov 6, 2023
1 parent 5074f55 commit a1808d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 4 additions & 6 deletions packages/sections/src/evidence/ExpressionAtlas/Body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { sentenceCase } from "../../utils/global";

import EXPRESSION_ATLAS_QUERY from "./ExpressionAtlasQuery.gql";
import { definition } from ".";
import { sectionsBaseSizeQuery } from "../../constants";

const columns = [
{
Expand Down Expand Up @@ -93,9 +94,7 @@ const columns = [
<i>p</i>-value
</>
),
renderCell: ({ resourceScore }) => (
<ScientificNotation number={resourceScore} />
),
renderCell: ({ resourceScore }) => <ScientificNotation number={resourceScore} />,
numeric: true,
sortable: true,
},
Expand All @@ -106,6 +105,7 @@ function Body({ id, label, entity }) {
const variables = {
ensemblId: ensgId,
efoId,
size: sectionsBaseSizeQuery,
};

const request = useQuery(EXPRESSION_ATLAS_QUERY, {
Expand All @@ -118,9 +118,7 @@ function Body({ id, label, entity }) {
chipText={dataTypesMap.rna_expression}
request={request}
entity={entity}
renderDescription={() => (
<Description symbol={label.symbol} name={label.name} />
)}
renderDescription={() => <Description symbol={label.symbol} name={label.name} />}
renderBody={({ disease }) => {
const { rows } = disease.expressionAtlasSummary;
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
query ExpressionAtlasQuery($ensemblId: String!, $efoId: String!) {
query ExpressionAtlasQuery($ensemblId: String!, $efoId: String!, $size: Int!) {
disease(efoId: $efoId) {
id
expressionAtlasSummary: evidences(
ensemblIds: [$ensemblId]
enableIndirect: true
datasourceIds: ["expression_atlas"]
size: $size
) {
count
rows {
Expand Down

0 comments on commit a1808d2

Please sign in to comment.