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

Update nightly #136

Open
wants to merge 213 commits into
base: nightly
Choose a base branch
from
Open

Update nightly #136

wants to merge 213 commits into from

Conversation

anthonyprinaldi
Copy link
Member

  • Merge all recent changes from dev (ACE related) into nightly release
  • This is in preparation for testing the new Python version in the nightly branch

This fix makes sure that the right atlas is selected by the registration script, instead of the workflow. This is needed for when using half brain registration.
Add registration overwrite ability to single workflow.
Clear reg_final/ and clar_allen_reg/ when user choses to rerun registration
Add parser flag to skip segmentation when the segmentation has already been run.
Seg skipping was only added to comparison workflow and not single workflow.
In Tiff to Nifti allow the user to specify a value of percentile to correct extreme artifacts in the image. Default no correction.
Let ACE use the percentil correction in Tiff to Nifti conversion to crop extreme intensities.
This was the problem with the registration function. We also no longer need to perform the percentile correction.
If labels are specified, use the user specified argument. Otherwise, come up with the labels based on other arguments.
sw_batch_size is hard coded to 4. batch_size is now taken from user input.
This allows us to specify the number of MC iterations instead of hard coding the value.
Need to move results to CPU before doing numpy stackin. Otherwise results in an error
New parser argument to select number of GPU to be used.
Deal with outputs when batch size is greater than 1.
Ensure that the variable of the outside loop doesn't conflict with the list comprehension
Need to keep original values of val_outputs for future loop iterations.
Statements originally included for debugging no longer needed.
Add flag for forcing rerun conversion. By default conversion will be skipped if it already completed and the right downsample arg is used.
The stacked patches are only beign zero padded in the height and width dimension right now. We need to pad the depth dimension so that all patches loaded to the model are the same size.
The warp script does not have ability to specify custom allen labels (in the case of half-brain registratin). Add the flag that overwrite the default allen atlas labels.
The output of MC ace models were being saved with additional uncertaintiy information. To handle this, we need to filter the output seg folder for specific files. These files re named different for regular vs MC ace models.
Sometimes a None string is passed through the CLI that we must check for, otherwise the script will try and load the path None. We check if the label path is not empty and not None
Ace heatmap used to be for whole brain only. This commit adds logic to load in half brain atlas labels if half brain is passed to the ACE workflow. This also adds a flag for heatmap that masks out voxels that our outside of the brain, as determined by the atlas.
The model output by default will determine if a voxel is a neuron with 0.5 threshold. We now add an argument so we can change this threshold to be whatever we want.
Previously, creating output storage arrays based on the assumed patch size of 512^3. We now take the patch size from the input so that it can work with any patch size.
Function will plot the p-values from ACE clusterwise analysis and overlay it onto a brain template from the atlas.
ACE flow will now plot a p-value overlaid on an atalas after clusterwise analysis is complete.
anthonyprinaldi and others added 30 commits August 15, 2024 12:23
Add validate clusters and instance segmentation output to ace workflow
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.

3 participants