Skip to content

Commit

Permalink
Merge branch 'main' of ssh://github.com/nadeemlab/SPT
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmymathews committed Aug 23, 2024
2 parents f420826 + 3c63b19 commit 7e02e92
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions spatialprofilingtoolbox/db/accessors/study.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ def get_study_summary(self, study: str) -> StudySummary:
publication = self._get_publication(study)
assay = self._get_assay(components.measurement)
sample_cohorts = get_sample_cohorts(self.cursor, study)
findings = self.get_study_findings()
return StudySummary(
context=Context(institution=institution, assay=assay, contact=contact),
products=Products(data_release=data_release, publication=publication),
counts=counts_summary,
cohorts=sample_cohorts,
findings=findings,
)

def get_study_components(self, study: str) -> StudyComponents:
Expand Down
1 change: 1 addition & 0 deletions spatialprofilingtoolbox/db/exchange_data_formats/study.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,4 @@ class StudySummary(BaseModel):
products: Products
counts: CountsSummary
cohorts: SampleCohorts
findings: list[str]
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,10 @@
"result": "Extreme responder"
}
]
}
},
"findings": [
"Finding 1.",
"Finding 2.",
"Finding 3."
]
}
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.28.0
0.29.0

0 comments on commit 7e02e92

Please sign in to comment.