sparrow.io.read_resolve_transcripts#
- sparrow.io.read_resolve_transcripts(sdata, path_count_matrix, output_layer='transcripts', to_coordinate_system='global', overwrite=False)#
Reads and adds Resolve transcript information to a SpatialData object.
- Parameters:
sdata (
SpatialData) – The SpatialData object to which the transcripts will be added.path_count_matrix (
str|Path) – Path to the file containing the transcripts information specific to Resolve. Expected to contain x, y coordinates and a gene name.output_layer (str, default='transcripts'.) – Name of the points layer of the SpatialData object to which the transcripts will be added.
to_coordinate_system (
str(default:'global')) – Coordinate system to whichoutput_layerwill be added.overwrite (
bool(default:False)) – If True overwrites theoutput_layer(a points layer) if it already exists.
- Return type:
SpatialData- Returns:
: The updated SpatialData object containing the transcripts.