Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 103 additions & 0 deletions nextflow/bootstrap/classifier_source.config

Copy link
Copy Markdown
Contributor

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 configs folder?

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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.
}
Loading