anndict.utils.read_transcript_coords#
- anndict.utils.read_transcript_coords(file_path, platform=None)[source]#
Reads the transcript locations from a CSV file and ensures it contains the necessary columns.
- Parameters:
- file_path
str
The path to the CSV file.
- platform
Literal
['Merscope'
,'Xenium'
] (default:None
) The platform type.
- file_path
- Return type:
DataFrame
- Returns:
A pandas DataFrame containing the transcript locations.
- Raises:
ValueError – If the required columns are not present in the file or if the file format is unsupported.