single_cell_parser
❭ writer
❭ write_landmark_file
write_landmark_file¶
-
single_cell_parser.writer.write_landmark_file(fname=
None
, landmarkList=None
)¶ Write an AMIRA landmark file from 3D coordinates
- Parameters:¶
fname (str) – string, name of the output file
landmarkList (list) – list of tuples, each of which holds 3 float coordinates
- Returns:¶
None. Writes out the landmark file to
fname
- Raises:¶
RuntimeError – if no file name is given or if the landmark list is empty
RuntimeError – if the landmarks have the wrong format (not 3 coordinates)
Example
>>> landmarkList = [(0.0, 0.0, 0.0), (1.0, 1.0, 1.0)] >>> write\_landmark\_file('landmarks.landmarkAscii', landmarkList)