|
8 | 8 | [](https://sylabs.io/docs/) |
9 | 9 | [](https://tower.nf/launch?pipeline=https://github.com/nf-core/hic) |
10 | 10 |
|
11 | | -[](https://nfcore.slack.com/channels/hic)[](https://twitter.com/nf_core)[](https://www.youtube.com/c/nf-core) |
| 11 | +[](https://nfcore.slack.com/channels/hic)[](https://twitter.com/nf_core)[](https://mstdn.science/@nf_core)[](https://www.youtube.com/c/nf-core) |
12 | 12 |
|
13 | 13 | ## Introduction |
14 | 14 |
|
@@ -36,34 +36,45 @@ On release, automated continuous integration tests run the pipeline on a full-si |
36 | 36 | 8. TADs calling ([`HiCExplorer`](https://github.com/deeptools/HiCExplorer), [`cooltools`](https://cooltools.readthedocs.io/en/latest/)) |
37 | 37 | 9. Quality control report ([`MultiQC`](https://multiqc.info/)) |
38 | 38 |
|
39 | | -## Quick Start |
| 39 | +## Usage |
40 | 40 |
|
41 | | -1. Install [`Nextflow`](https://www.nextflow.io/docs/latest/getstarted.html#installation) (`>=22.10.1`) |
| 41 | +> **Note** |
| 42 | +> If you are new to Nextflow and nf-core, please refer to [this page](https://nf-co.re/docs/usage/installation) on how |
| 43 | +> to set-up Nextflow. Make sure to [test your setup](https://nf-co.re/docs/usage/introduction#how-to-run-a-pipeline) |
| 44 | +> with `-profile test` before running the workflow on actual data. |
42 | 45 |
|
43 | | -2. Install any of [`Docker`](https://docs.docker.com/engine/installation/), [`Singularity`](https://www.sylabs.io/guides/3.0/user-guide/) (you can follow [this tutorial](https://singularity-tutorial.github.io/01-installation/)), [`Podman`](https://podman.io/), [`Shifter`](https://nersc.gitlab.io/development/shifter/how-to-use/) or [`Charliecloud`](https://hpc.github.io/charliecloud/) for full pipeline reproducibility _(you can use [`Conda`](https://conda.io/miniconda.html) both to install Nextflow itself and also to manage software within pipelines. Please only use it within pipelines as a last resort; see [docs](https://nf-co.re/usage/configuration#basic-configuration-profiles))_. |
| 46 | +First, prepare a samplesheet with your input data that looks as follows: |
44 | 47 |
|
45 | | -3. Download the pipeline and test it on a minimal dataset with a single command: |
| 48 | +`samplesheet.csv`: |
46 | 49 |
|
47 | | - ```bash |
48 | | - nextflow run nf-core/hic -profile test,YOURPROFILE --outdir <OUTDIR> |
49 | | - ``` |
| 50 | +```csv |
| 51 | +sample,fastq_1,fastq_2 |
| 52 | +HIC_ES_4,SRR5339783_1.fastq.gz,SRR5339783_2.fastq.gz |
| 53 | +``` |
50 | 54 |
|
51 | | - Note that some form of configuration will be needed so that Nextflow knows how to fetch the required software. This is usually done in the form of a config profile (`YOURPROFILE` in the example command above). You can chain multiple config profiles in a comma-separated string. |
| 55 | +Each row represents a pair of fastq files (paired end). |
| 56 | +Now, you can run the pipeline using: |
52 | 57 |
|
53 | | - > - The pipeline comes with config profiles called `docker`, `singularity`, `podman`, `shifter`, `charliecloud` and `conda` which instruct the pipeline to use the named tool for software management. For example, `-profile test,docker`. |
54 | | - > - Please check [nf-core/configs](https://github.com/nf-core/configs#documentation) to see if a custom config file to run nf-core pipelines already exists for your Institute. If so, you can simply use `-profile <institute>` in your command. This will enable either `docker` or `singularity` and set the appropriate execution settings for your local compute environment. |
55 | | - > - If you are using `singularity`, please use the [`nf-core download`](https://nf-co.re/tools/#downloading-pipelines-for-offline-use) command to download images first, before running the pipeline. Setting the [`NXF_SINGULARITY_CACHEDIR` or `singularity.cacheDir`](https://www.nextflow.io/docs/latest/singularity.html?#singularity-docker-hub) Nextflow options enables you to store and re-use the images from a central location for future pipeline runs. |
56 | | - > - If you are using `conda`, it is highly recommended to use the [`NXF_CONDA_CACHEDIR` or `conda.cacheDir`](https://www.nextflow.io/docs/latest/conda.html) settings to store the environments in a central location for future pipeline runs. |
| 58 | +```bash |
| 59 | +nextflow run nf-core/hic \ |
| 60 | + -profile <docker/singularity/.../institute> \ |
| 61 | + --input samplesheet.csv \ |
| 62 | + --genome GRCh37 \ |
| 63 | + --outdir <OUTDIR> |
| 64 | +``` |
57 | 65 |
|
58 | | -4. Start running your own analysis! |
| 66 | +> **Warning:** |
| 67 | +> Please provide pipeline parameters via the CLI or Nextflow `-params-file` option. Custom config files including those |
| 68 | +> provided by the `-c` Nextflow option can be used to provide any configuration _**except for parameters**_; |
| 69 | +> see [docs](https://nf-co.re/usage/configuration#custom-configuration-files). |
59 | 70 |
|
60 | | - ```bash |
61 | | - nextflow run nf-core/hic --input samplesheet.csv --outdir <OUTDIR> --genome GRCh37 -profile <docker/singularity/podman/shifter/charliecloud/conda/institute> |
62 | | - ``` |
| 71 | +For more details, please refer to the [usage documentation](https://nf-co.re/hic/usage) and the [parameter documentation](https://nf-co.re/hic/parameters). |
63 | 72 |
|
64 | | -## Documentation |
| 73 | +## Pipeline output |
65 | 74 |
|
66 | | -The nf-core/hic pipeline comes with documentation about the pipeline [usage](https://nf-co.re/hic/usage), [parameters](https://nf-co.re/hic/parameters) and [output](https://nf-co.re/hic/output). |
| 75 | +To see the the results of a test run with a full size dataset refer to the [results](https://nf-co.re/hic/results) tab on the nf-core website pipeline page. |
| 76 | +For more details about the output files and reports, please refer to the |
| 77 | +[output documentation](https://nf-co.re/hic/output). |
67 | 78 |
|
68 | 79 | ## Credits |
69 | 80 |
|
|
0 commit comments