|
9 | 9 | - [DOWNSTREAM_ARCHR](#downstream_archr)
|
10 | 10 |
|
11 | 11 | [Quick Start](#quick-start)
|
| 12 | +[Example: plots in paper](#Example:-plots-in-paper) |
12 | 13 | [Documentation](#documentation)
|
13 | 14 | [Credits](#credits)
|
14 | 15 | [Bug report/Support](#bug-reportsupport)
|
@@ -143,6 +144,75 @@ nextflow run main.nf --help
|
143 | 144 |
|
144 | 145 | See documentation [usage](https://github.com/hukai916/scATACpipe/blob/main/docs/usage.md) for all of the available options.
|
145 | 146 |
|
| 147 | +## Example: plots in paper |
| 148 | + |
| 149 | +This section describes how the plots in the manuscript (to be added) were generated using scATACpipe. For comparison, the manuscript conducted 3 separate analyses, each using a different preprocessing strategy (`default`, `10xgenomics`, `chromap`). Since the commands and preprocessed results are quite similar across the three methods, only the `chromap` option will be demonstrated here. |
| 150 | + |
| 151 | +1. The initial execution: |
| 152 | + |
| 153 | +``` |
| 154 | +nextflow run main.nf -profile singularity,lsf -c conf/test_chromap.config --preprocess chromap --outdir ./chromap_results_haibo --input_fastq /home/hl84w/lucio_castilla/scATAC-seq/docs/10X_human_scatac_fastq_new_style.csv --ref_fasta_ensembl homo_sapiens --species_latin_name 'homo sapiens' --archr_blacklist /home/hl84w/lucio_castilla/scATAC-seq/docs/hg38-blacklist.v2.bed.gz --doublet_removal_algorithm archr --archr_thread 8 -resume e209b4a2-1ada-4893-af13-132d1e3f5a55 |
| 155 | +``` |
| 156 | + |
| 157 | +``` |
| 158 | +nextflow run main.nf -profile singularity,lsf --preprocess chromap --outdir ./results_chromap --input_fastq ./assets/10X_human_scatac_fastq.csv --ref_fasta_ensembl homo_sapiens --species_latin_name 'homo sapiens' --archr_scrnaseq '/path/scRNA-Hematopoiesis-Granja-2019.rds' --archr_blacklist /home/hl84w/lucio_castilla/scATAC-seq/docs/hg38-blacklist.v2.bed.gz |
| 159 | +``` |
| 160 | + |
| 161 | +Break down: |
| 162 | + |
| 163 | + * `-profile singularity,lsf`: |
| 164 | + |
| 165 | + This option instructs scATACpipe to use Singularity containers and LSF as the executor. Multiple parameters are separated by commas. Since `profile` is pipeline-level flag, it is prefixed with a single dash (`-`). Module-level flags are prefixed with double dash (`--`). |
| 166 | + |
| 167 | + * `--preprocess chromap`: |
| 168 | + |
| 169 | + This instructs scATACpipe to use Chromap preprocessing strategy. |
| 170 | + |
| 171 | + * `--outdir ./results_chromap`: |
| 172 | + |
| 173 | + Output will be saved into `./results_chromap` folder. |
| 174 | + |
| 175 | + * `--input_fastq ./assets/10X_human_scatac_fastq.csv`: |
| 176 | + |
| 177 | + Please replace the `/path/` in the `10X_human_scatac_fastq.csv` with absolute paths. Details regarding the 6 samples can be found in the supplementary section of the paper. If you detect any outlier samples, you can remove them from the downstream analyses using the `--filter_sample = 'PBMC_10K_C, PBMC_10K_X'` flag. |
| 178 | + |
| 179 | + * `--ref_fasta_ensembl homo_sapiens`: |
| 180 | + |
| 181 | + This specifies that the genome _Homo Sapiens_ from ENSEMBLE will be used as reference. To view all supported genomes, check out `nextflow run main.nf --support_genome`. |
| 182 | + |
| 183 | + * `--species_latin_name 'homo sapiens'`: |
| 184 | + |
| 185 | + Simply the Latin name of the reference genome. |
| 186 | + |
| 187 | + * `--archr_scrnaseq '/path/scRNA-Hematopoiesis-Granja-2019.rds'` |
| 188 | + |
| 189 | + Matching scRNA-seq data. Can ignore if not available. The example file can be downloaded [here](https://jeffgranja.s3.amazonaws.com/ArchR/TestData/scRNA-Hematopoiesis-Granja-2019.rds). |
| 190 | + |
| 191 | + * `--archr_blacklist ./assets/hg38-blacklist.v2.bed.gz`: |
| 192 | + |
| 193 | + Blacklist to exclude for downstream analysis. Click [here](https://github.com/Boyle-Lab/Blacklist/tree/master/lists) for other species. |
| 194 | + |
| 195 | +Instead of passing each flag option via the command line, you can include them all in a configuration file and supply it with the `-c` option. Below is equivalent to above: |
| 196 | +``` |
| 197 | +nextflow run main.nf -profile singularity,lsf -c ./conf/test_chromap_initial.config |
| 198 | +``` |
| 199 | + |
| 200 | +2. The final execution: |
| 201 | +After examining the results from the initial execution, we decided to remove the |
| 202 | + |
| 203 | + |
| 204 | + --archr_thread 8 |
| 205 | + |
| 206 | + |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | +To replicate the plots showed in the manuscript (to be added), |
| 214 | + |
| 215 | + |
146 | 216 | ## Documentation
|
147 | 217 |
|
148 | 218 | The scATACpipe workflow comes with documentation about the pipeline: [usage](https://github.com/hukai916/scATACpipe/blob/main/docs/usage.md) and [output](https://github.com/hukai916/scATACpipe/blob/main/docs/output.md).
|
|
0 commit comments