harpy.io.read_merscope_transcripts#
- harpy.io.read_merscope_transcripts(sdata, path_count_matrix, transform_matrix, output_points_name='transcripts', to_coordinate_system='global', to_micron_coordinate_system='micron', overwrite=False)#
Reads and adds merscope 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 Vizgen. Expected to contain x, y coordinates and a gene name.output_points_name (str, default='transcripts'.) – Name of the points element of the SpatialData object to which the transcripts will be added.
to_coordinate_system (
str(default:'global')) – Pixel coordinate system to whichoutput_points_namewill be added.to_micron_coordinate_system (
str(default:'micron')) – Micron coordinate system to whichoutput_points_namewill be added.transform_matrix (
str|Path) – Path to the transformation matrix for the affine transformation.overwrite (bool, default=False) – If True overwrites the
output_points_name(a points element) if it already exists.
- Return type:
- Returns:
: The updated SpatialData object containing the transcripts.