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

Add rule before Laplace-Beltrami to jointly create AP/PD src/sink boundary label masks #372

Closed
akhanf opened this issue Feb 10, 2025 · 1 comment

Comments

@akhanf
Copy link
Member

akhanf commented Feb 10, 2025

Right now (in PR #371 ) the AP and PD boundary label masks are created independently so there is no check to ensure the same vertices are not used for both.

from the PR discussion:

JD: is there any mechanism to ensure that a vertex isn't assigned to a terminus in both AP and PD solutions? I think that ideally this would occur so that the two coords are closer to orthogonal, but maybe not strictly necessary since it would need to be done in serial rather than parallel

AK: Yes I was thinking about this too, but didn't tackle it here as the laplace beltrami rule now only as one set of src/sink. We could do this by adding a rule just upstream that takes in both AP sdt, PD sdt (and boundary mask), and outputs boundary AP/PD masks. Then laplace_beltrami could take just one pair of masks (instead of all the sdt and boundary inputs). In this script we could have also some logic to ensure the src/sink masks are also one connected component (which is not always guaranteed, especially when dist threshold very low or very high).. Could fix the labels based on some heuristic or raise an exception..

akhanf added a commit that referenced this issue Feb 13, 2025
…374)

- high-res ref space for hipp, dentate from shape inject (hipp default 0.3, dentate 0.1)
  - required adding a label wildcard to the dsegtissue and upsampled_ref
files
- fixes to get injected dentate/hipp working well (enough) 
- updated template upenn tissue dseg to include DG (only local
currently) 
- updates to greedy registration for shape inject
   - downsampling for greedy template shape reg 
   - enforce det=1 for template shape reg moments (was flipping)
- dilate dentate pd src/sink (not used yet)
- adjust decimation
- use workaround for transforming surfaces (need to look into this bug - perhaps provide an example to HCP devs)
- use two different, new,  sdt threshold approaches
  - percentile-based for AP, and firstminima for PD
  - NOTE: still not perfect and should really implement #372 to make more robust
@jordandekraker
Copy link
Collaborator

#377

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

No branches or pull requests

2 participants