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

[ENH] topoDotprops modified #502

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

dokato
Copy link
Contributor

@dokato dokato commented Jul 31, 2022

Modifies topological dotprops by directing the orientation of all vectors so they always point towards soma direction.

@jefferis
Copy link
Collaborator

Thanks so much @dokato. Can you remind me during the week to get the test data back up on flybrain? I didn't check yet if this is the only issue in the failures above.

@codecov
Copy link

codecov bot commented Jan 12, 2023

Codecov Report

Merging #502 (d4362df) into master (bf22fbd) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #502      +/-   ##
==========================================
+ Coverage   76.90%   76.96%   +0.05%     
==========================================
  Files          48       48              
  Lines        5923     5938      +15     
==========================================
+ Hits         4555     4570      +15     
  Misses       1368     1368              
Impacted Files Coverage Δ
R/dotprops.R 85.77% <100.00%> (+1.05%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

par_id = topo_features$Parent[[i]]
if (par_id == -1) next
pnt_idx = which(topo_features$PointNo == par_id)
vect_orientations[[i]] <- is_pointing_towards(x[pnt_idx,], x[i,], vect[i])
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is direction in Euclidean sense not geodesic (across the graph). Can you help me understand why that is @dokato?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just figured that it's faster to compute with respect to an arbitrary point (soma in this case). Otherwise, I'd need to iterate point by point to change the orientation. I guess, as long as it's consisted it shouldn't matter too much, unless you can think of some counterexample?

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