Skip to content

Commit

Permalink
Create bcl2fastq.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
calhoujd committed Oct 5, 2024
1 parent 578cf44 commit 569d823
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/bcl2fastq.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
#SBATCH -A b1042
#SBATCH -p genomics
#SBATCH -N 1
#SBATCH -n 8
#SBATCH -t 4:00:00
#SBATCH --mem=24gb

module purge all

module load bcl2fastq

##### IMPORTANT: update all paths as they will be specific to your computer or HPC
##### USAGE: nano bcl2fastq.sh, copy and paste this file, then either run sh bcl2fastq.sh or sbatch bcl2fastq.sh depending of if you are running on your computer or directly on HPC login node or submitting to scheduler

INdirectory=/path/to/input_folder # this will be the parent folder of the run, like /path/to/231026_MN00494_0066_A000H5TWGJ ## you can check it is the right folder by running the ls -lah command in Unix, you should see folders like 'Data', 'Images', and 'Logs' among other folders and files
OUTdirectory=/path/to/output_folder

mkdir ${OUTdirectory}
cd ${OUTdirectory}

# in this case the sample sheet contains all of the necessary information for demultiplexing ## while for running on an Illumina platform, both the library kit tsv and the sample sheet csv are necessary
bcl2fastq -r 8 -p 8 -w 8 --runfolder-dir ${INdirectory} --sample-sheet /path/to/SampleSheet_v1_example.csv --output-dir ${directory}/output

## see the bcl2fastq github for more information or run bcl2fastq --help

exit

# end of file

0 comments on commit 569d823

Please sign in to comment.