-
Notifications
You must be signed in to change notification settings - Fork 0
First draft of classifier generation pipeline #89
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
Merged
bergsalex
merged 11 commits into
main
from
KLAUS-24-automate-jabs-classifier-artifact-generation
Oct 7, 2025
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a19bd8e
First draft of classifier generation pipeline
bergsalex dc8c8fb
Classifier generation cleanup
bergsalex 74d3e52
Add init-jabs project step
bergsalex 7fa3d8e
Update classifier generation based on development usage
bergsalex 4e82422
Merge remote-tracking branch 'origin/main' into KLAUS-24-automate-jab…
bergsalex f6433ba
Merge remote-tracking branch 'origin/main' into KLAUS-24-automate-jab…
bergsalex 1044c63
Update main workflow with changes to single_mouse_classifier objects
bergsalex 02ac4fa
Removing includeConfig from sumner2 profile
bergsalex 7c5b491
Adding additional docstrings to classifier generation workflow
bergsalex 737ea18
Fix jabs-postprocess incorrect arguments
bergsalex b5f3eb1
Fix another jabs-postprocess command argument
bergsalex File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,103 @@ | ||
| // Example configuration for the classifier bootstrap pipeline. | ||
| // Update the paths and classifiers to match your environment before running. | ||
|
|
||
| params { | ||
| // Root directory where classifier artifacts will be written. | ||
| classifier_base_path = "/projects/kumar-lab/data/jabs/classifiers" | ||
|
|
||
| // Directory containing source JABS project folders referenced below. | ||
| classifier_project_folders = "/projects/kumar-lab/data/jabs/projects" | ||
|
|
||
| // Version label for this bootstrap build. | ||
| jabs_version = "v0.37.0" | ||
|
|
||
| // Map of behaviors to their source projects and metadata. | ||
| single_mouse_classifiers = [ | ||
| // "grooming": [ | ||
| // "project_folder_name": "grooming", | ||
| // "stitch_value": 10*30, | ||
| // "filter_value": 3*30, | ||
| // ], | ||
| "scratch": [ | ||
| "project_folder_name": "jabs-paper", | ||
| "stitch_value": 5, | ||
| "filter_value": 5, | ||
| ], | ||
| // "Leg_splaying": [ // Currently can't be exported successfully | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. JABS v0.34 + should have this fixed. I was able to build that artifact for #75. This classifier should be okay to uncomment and include. |
||
| // "project_folder_name": "ptz", | ||
| // "stitch_value": 5, | ||
| // "filter_value": 5, | ||
| // ], | ||
| "Side seizure": [ | ||
| "project_folder_name": "ptz", | ||
| "stitch_value": 5, | ||
| "filter_value": 5, | ||
| ], | ||
| "Tail jerk": [ | ||
| "project_folder_name": "ptz", | ||
| "stitch_value": 5, | ||
| "filter_value": 5, | ||
| ], | ||
| "Wild jumping": [ | ||
| "project_folder_name": "ptz", | ||
| "stitch_value": 5, | ||
| "filter_value": 5, | ||
| ], | ||
| "Escape": [ | ||
| "project_folder_name": "jabs-vivek", | ||
| "stitch_value": 5, | ||
| "filter_value": 5, | ||
| ], | ||
| "Rearing (supported)": [ | ||
| "project_folder_name": "jabs-vivek", | ||
| "stitch_value": 5, | ||
| "filter_value": 5, | ||
| ], | ||
| "Rearing (unsupported)": [ | ||
| "project_folder_name": "jabs-vivek", | ||
| "stitch_value": 5, | ||
| "filter_value": 5, | ||
| ], | ||
| "Turn left": [ | ||
| "project_folder_name": "jabs-vivek", | ||
| "stitch_value": 5, | ||
| "filter_value": 5, | ||
| ], | ||
| "Turn right": [ | ||
| "project_folder_name": "jabs-vivek", | ||
| "stitch_value": 5, | ||
| "filter_value": 5, | ||
| ], | ||
| ] | ||
| } | ||
|
|
||
| apptainer { | ||
| enabled = true | ||
| autoMounts = true | ||
| } | ||
|
|
||
| process { | ||
| withLabel: "jabs_classify" { | ||
| container = "/projects/kumar-lab/meta/images/JABS-behavior-classifier/headless/v0.37.0/latest.sif" | ||
| } | ||
| withLabel: "cpu" { | ||
| queue = "compute" | ||
| cpus = 1 | ||
| memory = 24.GB | ||
| time = 24.h | ||
| } | ||
| withLabel: "highcpu" { | ||
| queue = "compute" | ||
| cpus = 16 | ||
| memory = 64.GB | ||
| time = 24.h | ||
| } | ||
| } | ||
|
|
||
| executor { | ||
| name = 'slurm' | ||
| // The number of tasks the executor will handle in a parallel manner | ||
| queueSize = 24 | ||
| submitRateLimit = '1 s' | ||
| // Determines the max rate of job submission per time unit, for example '10sec' eg. max 10 jobs per second or '1/2 s' i.e. 1 job submissions every 2 seconds. | ||
| } | ||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want configs outside the
configsfolder?