Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
leepc12 committed Oct 24, 2022
1 parent dd6b4be commit 7b1a71a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ This ChIP-Seq pipeline is based off the ENCODE (phase-3) transcription factor an

2) **IMPORTANT**: Read Caper's [README](https://github.com/ENCODE-DCC/caper/blob/master/README.md) carefully to choose a backend for your system. Follow the instruction in the configuration file.
```bash
$ caper init [YOUR_BACKEND] # local by default
# backend: local or your HPC type (e.g. slurm, sge, pbs, lsf). read Caper's README carefully.
$ caper init [YOUR_BACKEND]

# IMPORTANT: edit the conf file and follow commented instructions in there
$ vi ~/.caper/default.conf
Expand All @@ -34,16 +35,17 @@ This ChIP-Seq pipeline is based off the ENCODE (phase-3) transcription factor an
$ git clone https://github.com/ENCODE-DCC/chip-seq-pipeline2
```

4) Define input JSON.
4) Define test input JSON.
```bash
INPUT_JSON="https://storage.googleapis.com/encode-pipeline-test-samples/encode-chip-seq-pipeline/ENCSR000DYI_subsampled_chr19_only.json"
```

5) If you have Docker and want to run pipelines locally on your laptop. `--max-concurrent-tasks 1` is to limit number of concurrent tasks to test-run the pipeline on a laptop. Uncomment it if run it on a workstation/HPC.
```bash
# check if Docker works on your machine
$ docker exec ubuntu:latest echo hello
$ docker run ubuntu:latest echo hello

# --max-concurrent-tasks 1 is for computers with limited resources
$ caper run chip.wdl -i "${INPUT_JSON}" --docker --max-concurrent-tasks 1
```

Expand All @@ -52,12 +54,11 @@ This ChIP-Seq pipeline is based off the ENCODE (phase-3) transcription factor an
# check if Singularity works on your machine
$ singularity exec docker://ubuntu:latest echo hello

# on your local machine
# on your local machine (--max-concurrent-tasks 1 is for computers with limited resources)
$ caper run chip.wdl -i "${INPUT_JSON}" --singularity --max-concurrent-tasks 1

# on HPC, submit it as a leader job to SLURM with Singularity

# make sure that you already configure Caper's conf ~/.caper/default.conf correctly to work with your HPC
# on HPC, make sure that Caper's conf ~/.caper/default.conf is correctly configured to work with your HPC
# the following command will submit Caper as a leader job to SLURM with Singularity
$ caper hpc submit chip.wdl -i "${INPUT_JSON}" --singularity --leader-job-name ANY_GOOD_LEADER_JOB_NAME

# check job ID and status of your leader jobs
Expand All @@ -84,12 +85,11 @@ This ChIP-Seq pipeline is based off the ENCODE (phase-3) transcription factor an

# if installation fails please use Singularity method instead.

# on your local machine
# on your local machine (--max-concurrent-tasks 1 is for computers with limited resources)
$ caper run chip.wdl -i "${INPUT_JSON}" --conda --max-concurrent-tasks 1

# on HPC, submit it as a leader job to SLURM with Singularity

# make sure that you already configure Caper's conf ~/.caper/default.conf correctly to work with your HPC
# on HPC, make sure that Caper's conf ~/.caper/default.conf is correctly configured to work with your HPC
# the following command will submit Caper as a leader job to SLURM with Conda
$ caper hpc submit chip.wdl -i "${INPUT_JSON}" --conda --leader-job-name ANY_GOOD_LEADER_JOB_NAME

# check job ID and status of your leader jobs
Expand Down

0 comments on commit 7b1a71a

Please sign in to comment.