set rat-specific defaults for FD calculations #1005
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, rotational FD components are calculated as the displacement on the surface of a sphere with a radius of 50 mm, because it:
This is obviously not appropriate for rodents, so we would expect rat data to exaggerate the contribution of rotational movement in FD calculations.
The only adjustment (so far) is to adjust the default radius if the species is non-human. This is less trivial for rats than humans, since brains of the former are not spherical. In my experience, roll rotations are more likely to occur if the animal is fixed in place with ear and bite bars, so I set the radius to be half of the average lateral width for 90-day-old rats in Gefen et al. (2004; https://doi.org/10.1089/089771503770802853). This can still be adjusted by changing the defaults on the command line, but it would provide a better default with the
--species rat
flag for minimal user intervention.I'll try re-running this on some data to see if the default 0.2mm FD is still reasonable in rats given these changes.
@oesteban do you have any insight on why this threshold was chosen? Are there any other parameters you can think of that I should check?