Skip to content

Commit

Permalink
[Platform]: feat add project id to study and credible set metadata wh…
Browse files Browse the repository at this point in the history
…en QTL studies (#599)
  • Loading branch information
d0choa authored Dec 9, 2024
1 parent 17db5ee commit 5aeaa02
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/platform/src/pages/CredibleSetPage/ProfileHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,11 @@ function ProfileHeader() {
)}
{study?.studyType !== "gwas" && (
<>
{study?.projectId && (
<Field loading={loading} title="Project">
{study?.projectId?.replace(/_/gi, " ")}
</Field>
)}
{target?.id && (
<Field loading={loading} title="Affected gene">
<Link to={`../target/${target.id}`}>{target.approvedSymbol}</Link>
Expand Down
1 change: 1 addition & 0 deletions apps/platform/src/pages/StudyPage/StudyProfileHeader.gql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ fragment StudyProfileHeaderFragment on Gwas {
publicationJournal
pubmedId
traitFromSource
projectId
backgroundTraits {
id
name
Expand Down
6 changes: 6 additions & 0 deletions apps/platform/src/pages/StudyPage/StudyProfileHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function ProfileHeader() {
traitFromSource,
backgroundTraits,
diseases,
projectId,
target,
nCases,
nControls,
Expand Down Expand Up @@ -80,6 +81,11 @@ function ProfileHeader() {
)}
{studyType !== "gwas" && ( // QTL
<>
{projectId && (
<Field loading={loading} title="Project">
{projectId?.replace(/_/gi, " ")}
</Field>
)}
{target?.id && (
<Field loading={loading} title="Affected gene">
<Link to={`../target/${target.id}`}>{target.approvedSymbol}</Link>
Expand Down

0 comments on commit 5aeaa02

Please sign in to comment.