-
Notifications
You must be signed in to change notification settings - Fork 1
/
mda_to_bin.sh
33 lines (25 loc) · 1.16 KB
/
mda_to_bin.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
#SBATCH --nodes=1 # node count
#SBATCH -o /jukebox/scratch/jbreda/ephys/W122/mdatobin.out # where to save the output files of the job
#SBATCH -e /jukebox/scratch/jbreda/ephys/W122/mdatobin.err # where to save the error files of the job
#SBATCH -t 840 # 14 hour time limit
#SBATCH --mem=128000 # 128 GB of RAM
#SBATCH --mail-type=ALL
#SBATCH [email protected]
#SBATCH --cpus-per-task=11 # 11 cores requested
#SBATCH --partition=Brody # run on brodylab parition
# pick up from where you left of in previous script & move into repo to call mda to bin function now
# now files are in mda format. Note repo needs to be located in input_path
input_path="/jukebox/scratch/jbreda/ephys/Tyler_FOF"
cd $input_path
repo="Brody_Lab_Ephys"
cd $repo
pwd
# grab the current jobid and print it
jobid=$SLURM_JOB_ID
echo $jobid
# open matlab etc
module load matlab/R2019b5
# call kilosortpipelineforcluster
matlab -nosplash -nodisplay -nodesktop -r "kilosortpipelineforcluster('${input_path}','${repo}','${jobid}');exit"
# echo "Done"