From 069f5edceb65e1acf5162edf2b475f72159c08a2 Mon Sep 17 00:00:00 2001
From: nf-core-bot <core@nf-co.re>
Date: Fri, 31 Jul 2020 13:22:11 +0200
Subject: [PATCH] Template update for nf-core/tools version 1.10.2

---
 .github/CONTRIBUTING.md              |  2 +-
 .github/workflows/awsfulltest.yml    |  2 +-
 .github/workflows/branch.yml         |  1 +
 .github/workflows/linting.yml        |  9 ++++-
 .github/workflows/push_dockerhub.yml | 53 ++++++++++++++--------------
 Dockerfile                           |  2 +-
 conf/test_full.config                |  2 +-
 docs/usage.md                        |  2 +-
 main.nf                              |  2 +-
 9 files changed, 42 insertions(+), 33 deletions(-)

diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 9e36cfd..078248e 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -46,7 +46,7 @@ These tests are run both with the latest available version of `Nextflow` and als
 
 ## Patch
 
-: warning: Only in the unlikely and regretful event of a release happening with a bug.
+:warning: Only in the unlikely and regretful event of a release happening with a bug.
 
 * On your own fork, make a new branch `patch` based on `upstream/master`.
 * Fix the bug, and bump version (X.Y.Z+1).
diff --git a/.github/workflows/awsfulltest.yml b/.github/workflows/awsfulltest.yml
index 902758a..26d2e7e 100644
--- a/.github/workflows/awsfulltest.yml
+++ b/.github/workflows/awsfulltest.yml
@@ -21,7 +21,7 @@ jobs:
         run: conda install -c conda-forge awscli
       - name: Start AWS batch job
         # TODO nf-core: You can customise AWS full pipeline tests as required
-        # Add full size test data (but still relatively small datasets for few samples) 
+        # Add full size test data (but still relatively small datasets for few samples)
         # on the `test_full.config` test runs with only one set of parameters
         # Then specify `-profile test_full` instead of `-profile test` on the AWS batch command
         env:
diff --git a/.github/workflows/branch.yml b/.github/workflows/branch.yml
index 17fa32f..04dbb3d 100644
--- a/.github/workflows/branch.yml
+++ b/.github/workflows/branch.yml
@@ -17,6 +17,7 @@ jobs:
 
 
       # If the above check failed, post a comment on the PR explaining the failure
+      # NOTE - this doesn't currently work if the PR is coming from a fork, due to limitations in GitHub actions secrets
       - name: Post PR comment
         if: failure()
         uses: mshick/add-pr-comment@v1
diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml
index eb66c14..8e8d5bb 100644
--- a/.github/workflows/linting.yml
+++ b/.github/workflows/linting.yml
@@ -57,5 +57,12 @@ jobs:
           GITHUB_COMMENTS_URL: ${{ github.event.pull_request.comments_url }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           GITHUB_PR_COMMIT: ${{ github.event.pull_request.head.sha }}
-        run: nf-core lint ${GITHUB_WORKSPACE}
+        run: nf-core -l lint_log.txt lint ${GITHUB_WORKSPACE}
+
+      - name: Upload linting log file artifact
+        if: ${{ always() }}
+        uses: actions/upload-artifact@v2
+        with:
+          name: linting-log-file
+          path: lint_log.txt
 
diff --git a/.github/workflows/push_dockerhub.yml b/.github/workflows/push_dockerhub.yml
index 31cf786..280f8ba 100644
--- a/.github/workflows/push_dockerhub.yml
+++ b/.github/workflows/push_dockerhub.yml
@@ -8,32 +8,33 @@ on:
   release:
     types: [published]
 
-push_dockerhub:
-  name: Push new Docker image to Docker Hub
-  runs-on: ubuntu-latest
-  # Only run for the nf-core repo, for releases and merged PRs
-  if: ${{ github.repository == 'nf-core/hic' }}
-  env:
-    DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
-    DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
-  steps:
-    - name: Check out pipeline code
-      uses: actions/checkout@v2
+jobs:
+  push_dockerhub:
+    name: Push new Docker image to Docker Hub
+    runs-on: ubuntu-latest
+    # Only run for the nf-core repo, for releases and merged PRs
+    if: ${{ github.repository == 'nf-core/hic' }}
+    env:
+      DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
+      DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
+    steps:
+      - name: Check out pipeline code
+        uses: actions/checkout@v2
 
-    - name: Build new docker image
-      run: docker build --no-cache . -t nfcore/hic:latest
+      - name: Build new docker image
+        run: docker build --no-cache . -t nfcore/hic:latest
 
-    - name: Push Docker image to DockerHub (dev)
-      if: ${{ github.event_name == 'push' }}
-      run: |
-        echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
-        docker tag nfcore/hic:latest nfcore/hic:dev
-        docker push nfcore/hic:dev
+      - name: Push Docker image to DockerHub (dev)
+        if: ${{ github.event_name == 'push' }}
+        run: |
+          echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
+          docker tag nfcore/hic:latest nfcore/hic:dev
+          docker push nfcore/hic:dev
 
-    - name: Push Docker image to DockerHub (release)
-      if: ${{ github.event_name == 'release' }}
-      run: |
-        echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
-        docker push nfcore/hic:latest
-        docker tag nfcore/hic:latest nfcore/hic:${{ github.event.release.tag_name }}
-        docker push nfcore/hic:${{ github.event.release.tag_name }}
+      - name: Push Docker image to DockerHub (release)
+        if: ${{ github.event_name == 'release' }}
+        run: |
+          echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
+          docker push nfcore/hic:latest
+          docker tag nfcore/hic:latest nfcore/hic:${{ github.event.release.tag_name }}
+          docker push nfcore/hic:${{ github.event.release.tag_name }}
diff --git a/Dockerfile b/Dockerfile
index ae1294d..f7e704c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM nfcore/base:1.10.1
+FROM nfcore/base:1.10.2
 LABEL authors="Nicolas Servant" \
       description="Docker image containing all software requirements for the nf-core/hic pipeline"
 
diff --git a/conf/test_full.config b/conf/test_full.config
index 31742b3..921372e 100644
--- a/conf/test_full.config
+++ b/conf/test_full.config
@@ -15,7 +15,7 @@ params {
   // TODO nf-core: Specify the paths to your full test data ( on nf-core/test-datasets or directly in repositories, e.g. SRA)
   // TODO nf-core: Give any required params for the test so that command line flags are not needed
   single_end = false
-  readPaths = [
+  input_paths = [
     ['Testdata', ['https://github.com/nf-core/test-datasets/raw/exoseq/testdata/Testdata_R1.tiny.fastq.gz', 'https://github.com/nf-core/test-datasets/raw/exoseq/testdata/Testdata_R2.tiny.fastq.gz']],
     ['SRR389222', ['https://github.com/nf-core/test-datasets/raw/methylseq/testdata/SRR389222_sub1.fastq.gz', 'https://github.com/nf-core/test-datasets/raw/methylseq/testdata/SRR389222_sub2.fastq.gz']]
   ]
diff --git a/docs/usage.md b/docs/usage.md
index 636d70c..2141915 100644
--- a/docs/usage.md
+++ b/docs/usage.md
@@ -80,7 +80,7 @@ You can also supply a run name to resume a specific run: `-resume [run-name]`. U
 
 ### `-c`
 
-Specify the path to a specific config file (this is a core NextFlow command). See the [nf-core website documentation](https://nf-co.re/usage/configuration) for more information.
+Specify the path to a specific config file (this is a core Nextflow command). See the [nf-core website documentation](https://nf-co.re/usage/configuration) for more information.
 
 #### Custom resource requests
 
diff --git a/main.nf b/main.nf
index 5059f70..7a83f8e 100644
--- a/main.nf
+++ b/main.nf
@@ -127,7 +127,7 @@ def summary = [:]
 if (workflow.revision) summary['Pipeline Release'] = workflow.revision
 summary['Run Name']         = custom_runName ?: workflow.runName
 // TODO nf-core: Report custom parameters here
-summary['Reads']            = params.input
+summary['Input']            = params.input
 summary['Fasta Ref']        = params.fasta
 summary['Data Type']        = params.single_end ? 'Single-End' : 'Paired-End'
 summary['Max Resources']    = "$params.max_memory memory, $params.max_cpus cpus, $params.max_time time per job"
-- 
GitLab