Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spatial transcriptomics #52

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Spatial transcriptomics #52

wants to merge 8 commits into from

Conversation

aunoyp
Copy link
Collaborator

@aunoyp aunoyp commented May 28, 2022

Added the series of changes discussed with AR and AP 5/20/2022. Changes include new libraries imported and allowing the user to input an ROI dilation in order to analyze spatial transcriptomic data. The program iterates through the nuclear segmentations generated by the user earlier in the script, expands by the given expansion factor, and removes the overlaps. Missed an off by one error and added to this merge.

Copy link
Collaborator

@aarezai aarezai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead, ask the user how much they want to dilate each nuclear segmentation in the units of the image (e.g. um, can get from nucImgCalibration). Then, convert this dilation factor from physical units (e.g. um) to pixel units. See example under https://github.com/VPNL/FijiUpdateSite/blob/master/FijiPyPlugins/src/main/resources/scripts/Plugins/Organize_Fields_of_View/Separate_Image_Into_Fields_.py lines 113-147.

psgROIs = nucROIs
nucROIs = [roienlarger.enlarge(nucROI,unitIncrease) for nucROI in psgROIs]

# Remove resulting overlap between newly expanded ROI
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For lines 365+, needs to be under if statement at 361

# Merge the others
other = ROITools.combineROIs(others)
# Get the intersection of ROIs using the intersecting function
AND = ROITools.getIntersectingROI([nucROI, other])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename AND to intersection


OUTPUT Fiji ROI storing the cropped region of interest

AR Jan 2022
AP Jun 2022
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add description of change

@aunoyp
Copy link
Collaborator Author

aunoyp commented Jun 13, 2022

Updated changes requested from AR pull request review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants