Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmymathews committed Aug 14, 2023
1 parent 859753e commit 0eed734
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions spatialprofilingtoolbox/db/squidpy_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _spatial_autocorr(data: AnnData) -> DataFrame:

def create_and_transcribe_squidpy_features(
database_connection_maker: DatabaseConnectionMaker,
study: str
study: str,
) -> None:
"""Transcribe "off-demand" Squidpy feature(s) in features system."""
connection = database_connection_maker.get_connection()
Expand All @@ -54,12 +54,15 @@ def create_and_transcribe_squidpy_features(
for i_cluster, row in autocorr_stats.iterrows():
for metric_name, metric in zip(row.index, row.to_numpy()):
feature_uploader.stage_feature_value(
(metric_name, str(i_cluster)), sample, metric)
(metric_name, str(i_cluster)),
sample,
metric,
)


def _fetch_cells_and_phenotypes(
cursor: Psycopg2Cursor,
study: str
study: str,
) -> dict[str, DataFrame]:
extractor = FeatureMatrixExtractor(cursor)
bundle = cast(Bundle, extractor.extract(study=study))
Expand Down

0 comments on commit 0eed734

Please sign in to comment.