Fastx, Bowtie2 and MACS2 for ChipSeq
Start an interactive job, with a walltime of 2 hours, 2000MB of memory.Â
srun --pty -p interactive -t 0-02:0:0 --mem 2000MB -n 1 /bin/bash
Create a working directory on scratch and change into the newly-created directory. For example, for user abc123, the working directory will be
mkdir /n/scratch/users/a/abc123/chipSeq
cd /n/scratch/users/a/abc123/chipSeq
Build a barcode file for demultiplexing library:Â
The first column give sample name. 1Tr for sample 1 treatment, 1Co for sample 1 control.
nano barcode.txt
1Tr ATCACG
2Tr CGATGT
3Tr TTAGGC
4Tr TGACCA
5Tr ACAGTG
1Co TAGCTT
2Co GGCTAC
3Co CTTGTA
4Co ATATAGGA
5Co AACCGTGT
Load rcbio module and copy the example bowtie2 and macs2 bash script:
Now you can modify the command options as needed. To edit the script:
To test the pipeline run the following command. Jobs will not be submitted to the scheduler.
To run the fastxBowtie2 pipeline:
After fastxBowtie2 workflow finishes, dry run macs2 to make sure it is fine:Â
To run the macs2 pipeline:
To understand how 'runAsPipeline' works, how to check output, how to re-run the pipeline, please visit:Â Run Bash Script As Slurm Pipeline
Now you are ready to run an rcbio workflow
To instead run the workflow on your own data, transfer the sample sheet to your local machine following this wiki page and modify the sample sheet. Then you can transfer it back to O2 under your account, then go to the build folder structure step.