Skip to content

Commit

Permalink
adding spot ids to pixel results
Browse files Browse the repository at this point in the history
  • Loading branch information
Shannon Axelrod committed Dec 6, 2019
1 parent 339eaa9 commit 8a8095b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ def _create_spot_attributes(
passes_filter = np.array(passes_area_filter, dtype=np.bool)

spot_attributes = SpotAttributes(pd.DataFrame.from_records(spot_attrs))
spot_attributes.data[Features.SPOT_ID] = np.arange(0, len(spot_attributes.data))
return spot_attributes, passes_filter

def run(
Expand Down
3 changes: 3 additions & 0 deletions starfish/test/full_pipelines/api/test_merfish.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ def test_merfish_pipeline_cropped_data():

spot_intensities = merfish.initial_spot_intensities

# check that intensities were giving spot ids using PixelSpotDecoding
assert "spot_id" in spot_intensities.coords

# verify that the number of spots are correct
spots_passing_filters = spot_intensities[Features.PASSES_THRESHOLDS].sum()
assert spots_passing_filters == 1410
Expand Down

0 comments on commit 8a8095b

Please sign in to comment.