Conversation
Writes a transcript-assignment CSV with the headers xeniumranger expects (transcript_id/cell_id/overlaps_nucleus/feature_name/x_location/y_location/ z_location/qv), joining transcript_id/qv/overlaps_nucleus back from the raw Xenium transcripts via -i since segger's own output drops them. Cell boundaries are written as GeoJSON instead of parquet. Prints the exact xeniumranger import-segmentation command to run afterward. Fixes #88
Fix .not() -> .not_() (not is a reserved keyword, invalid as an attribute name).
assigned drops the filtered column, so building is_noise off it crashed with ColumnNotFoundError. tx already carries filtered, and already went through load_transcripts' legacy join if the segmentation predates it, so reuse that instead of joining again.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
xeniumrangerelement tosegger export:-i/--source-path(just for suggesting the path thoughxenium_transcript_assignment.csv: the transcript-assignment CSVxeniumranger import-segmentationexpects, with headerstranscript_id,cell,is_noise.cell_idis reassigned to segger's calls; unassigned transcripts are dropped.xenium_cell_boundaries.geojson: the same boundary computation assegger export boundaries, written as GeoJSON instead of parquet.xeniumranger import-segmentationcommand to run against these two files.Example
Closes #88