Skip to content

Commit

Permalink
Slight change to umap preprocessing query (#361)
Browse files Browse the repository at this point in the history
* slight adjustment

* Remove unused
  • Loading branch information
jimmymathews authored Sep 30, 2024
1 parent 5e13551 commit 64ce150
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spatialprofilingtoolbox/workflow/common/umap_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ def retrieve_feature_matrix_sparse(self, cell_limit=None):
JOIN specimen_collection_process scp ON scp.specimen=sdmp.specimen
JOIN study_component sc ON scp.study=sc.component_study
WHERE sc.primary_study=%s AND eq.histological_structure IN (
SELECT temp0.random_id FROM (
SELECT temp.random_id FROM (
SELECT generate_series (1, {UMAP_POINT_LIMIT}), (random() * {total})::int::VARCHAR(512) AS random_id
FROM (SELECT 1 AS n) AS temp
) AS temp0
FROM (SELECT 1 AS n) AS temp1
) AS temp
)
;
''', (self.study,))
Expand Down

0 comments on commit 64ce150

Please sign in to comment.