Given a tibble
of sample information (sample_info
) with
columns capture_area
, group
, and imagej_xml_path
,
expected to have one unique path to ImageJ XML output per group, read in
the pixel coordinates from each capture area's tissue_positions.csv
file from Spaceranger, and transform using the rotation matrix specified
by ImageJ. Write one new tissue_positions.csv
file per group
a copy of sample_info
with additional columns transform_x
,
transform_y
, and transform_theta
representing the rigid affine
transforms needed to be applied to capture areas within each group to
produce the proper relative arrangements.
prep_imagej_coords(sample_info, out_dir)