Skip to content

Commit 0ff78c5

Browse files
authored
Merge pull request #2 from nf-core/dev
Dev
2 parents 7971d89 + aa83851 commit 0ff78c5

32 files changed

Lines changed: 2209 additions & 379 deletions

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ These tests are run both with the latest available version of `Nextflow` and als
5555

5656
## Getting help
5757

58-
For further information/help, please consult the [nf-core/eager documentation](https://nf-co.re/eager/latest/usage) and don't hesitate to get in touch on the nf-core Slack [#eager](https://nfcore.slack.com/channels/eager) channel ([join our Slack here](https://nf-co.re/join/slack)).
58+
For further information/help, please consult the [nf-core/eager documentation](https://nf-co.re/eager/usage) and don't hesitate to get in touch on the nf-core Slack [#eager](https://nfcore.slack.com/channels/eager) channel ([join our Slack here](https://nf-co.re/join/slack)).
5959

6060
# Code Contribution Guidelines
6161

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
# nf-core/eager bug report
1+
---
2+
name: Bug report
3+
about: Report something that is broken or incorrect
4+
labels: bug
5+
---
26

37
<!--
8+
# nf-core/eager bug report
9+
410
Hi there!
511
612
Thanks for telling us about a problem with the pipeline.
7-
813
Please delete this text and anything that's not relevant from the template below:
914
-->
1015

@@ -17,12 +22,9 @@ Have you checked in the following places for your error?:
1722
- [ ] [Troubleshooting](https://nf-co.re/usage/troubleshooting)
1823
(for nf-core specific information)
1924

20-
Please also check the the corresponding version's documentation on github, if not
21-
testing the latest release.
22-
23-
## Describe the bug
25+
## Description of the bug
2426

25-
A clear and concise description of what the bug is.
27+
<!-- A clear and concise description of what the bug is. -->
2628

2729
## Steps to reproduce
2830

@@ -33,13 +35,13 @@ Steps to reproduce the behaviour:
3335

3436
## Expected behaviour
3537

36-
A clear and concise description of what you expected to happen.
38+
<!-- A clear and concise description of what you expected to happen. -->
3739

3840
## Log files
3941

40-
1. The command used to run the pipeline
41-
2. The `.nextflow.log` file (which is a hidden file in whichever place you _ran_
42-
the pipeline from - not necessarily in the output directory!)
42+
1. Command line: <!-- [e.g. `nextflow run ...`] -->
43+
2. The `.nextflow.log` file (which is a hidden file in whichever place you _ran_ the pipeline from - not necessarily in the output directory!)
44+
3. See error: <!-- [Please provide your error message] -->
4345

4446
## System
4547

@@ -54,10 +56,10 @@ A clear and concise description of what you expected to happen.
5456

5557
## Container engine
5658

57-
- Engine: <!-- [e.g. Conda, Docker or Singularity] -->
58-
- version: <!-- [e.g. 2.1.0] -->
59-
- Image tag: <!-- [e.g. nfcore/eager:2.1.0] -->
59+
- Engine: <!-- [e.g. Conda, Docker, Singularity or Podman] -->
60+
- version: <!-- [e.g. 1.0.0] -->
61+
- Image tag: <!-- [e.g. nfcore/eager:1.0.0] -->
6062

6163
## Additional context
6264

63-
Add any other context about the problem here.
65+
<!-- Add any other context about the problem here. -->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Join nf-core
4+
url: https://nf-co.re/join
5+
about: Please join the nf-core community here
6+
- name: "Slack #eager channel"
7+
url: https://nfcore.slack.com/channels/eager
8+
about: Discussion about the nf-core/eager pipeline

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
# nf-core/eager feature request
1+
---
2+
name: Feature request
3+
about: Suggest an idea for the nf-core website
4+
labels: enhancement
5+
---
6+
27
<!--
8+
# nf-core/eager feature request
39
410
Hi there!
511

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
# nf-core/eager pull request
21
<!--
2+
# nf-core/eager pull request
33
44
Many thanks for contributing to nf-core/eager!
55
66
Please fill in the appropriate checklist below (delete whatever is not relevant).
77
These are the most common things requested on pull requests (PRs).
8+
9+
Remember that PRs should be made against the dev branch, unless you're preparing a pipeline release.
10+
11+
Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/eager/tree/master/.github/CONTRIBUTING.md)
812
-->
913

1014
## PR checklist

.github/workflows/awsfulltest.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ name: nf-core AWS full size tests
44
# It runs the -profile 'test_full' on AWS batch
55

66
on:
7-
release:
8-
types: [published]
7+
workflow_run:
8+
workflows: ["nf-core Docker push (release)"]
9+
types: [completed]
910
workflow_dispatch:
1011

1112
jobs:
@@ -15,13 +16,14 @@ jobs:
1516
runs-on: ubuntu-latest
1617
steps:
1718
- name: Setup Miniconda
18-
uses: goanpeca/setup-miniconda@v1.0.2
19+
uses: conda-incubator/setup-miniconda@v2
1920
with:
2021
auto-update-conda: true
2122
python-version: 3.7
2223
- name: Install awscli
2324
run: conda install -c conda-forge awscli
2425
- name: Start AWS batch job
26+
# TODO nf-core: You can customise AWS full pipeline tests as required
2527
# Add full size test data (but still relatively small datasets for few samples)
2628
# on the `test_full.config` test runs with only one set of parameters
2729
# Then specify `-profile test_full` instead of `-profile test` on the AWS batch command
@@ -38,4 +40,4 @@ jobs:
3840
--job-name nf-core-eager \
3941
--job-queue $AWS_JOB_QUEUE \
4042
--job-definition $AWS_JOB_DEFINITION \
41-
--container-overrides '{"command": ["nf-core/eager", "-r '"${GITHUB_SHA}"' -profile awsfulltest --outdir s3://'"${AWS_S3_BUCKET}"'/eager/results-'"${GITHUB_SHA}"' -w s3://'"${AWS_S3_BUCKET}"'/eager/work-'"${GITHUB_SHA}"' -with-tower"], "environment": [{"name": "TOWER_ACCESS_TOKEN", "value": "'"$TOWER_ACCESS_TOKEN"'"}]}'
43+
--container-overrides '{"command": ["nf-core/eager", "-r '"${GITHUB_SHA}"' -profile test_full --outdir s3://'"${AWS_S3_BUCKET}"'/eager/results-'"${GITHUB_SHA}"' -w s3://'"${AWS_S3_BUCKET}"'/eager/work-'"${GITHUB_SHA}"' -with-tower"], "environment": [{"name": "TOWER_ACCESS_TOKEN", "value": "'"$TOWER_ACCESS_TOKEN"'"}]}'

.github/workflows/awstest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Setup Miniconda
16-
uses: goanpeca/setup-miniconda@v1.0.2
16+
uses: conda-incubator/setup-miniconda@v2
1717
with:
1818
auto-update-conda: true
1919
python-version: 3.7

.github/workflows/branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: nf-core branch protection
22
# This workflow is triggered on PRs to master branch on the repository
33
# It fails when someone tries to make a PR against the nf-core `master` branch instead of `dev`
44
on:
5-
pull_request:
5+
pull_request_target:
66
branches: [master]
77

88
jobs:

.github/workflows/ci.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,25 @@ jobs:
2626
uses: actions/checkout@v2
2727

2828
- name: Check if Dockerfile or Conda environment changed
29-
uses: technote-space/get-diff-action@v1
29+
uses: technote-space/get-diff-action@v4
3030
with:
31-
PREFIX_FILTER: |
31+
FILES: |
3232
Dockerfile
3333
environment.yml
3434
3535
- name: Build new docker image
36-
if: env.GIT_DIFF
37-
run: docker build --no-cache . -t nfcore/eager:2.2.1
36+
if: env.MATCHED_FILES
37+
run: docker build --no-cache . -t nfcore/eager:dev
3838

3939
- name: Pull docker image
40-
if: ${{ !env.GIT_DIFF }}
40+
if: ${{ !env.MATCHED_FILES }}
4141
run: |
4242
docker pull nfcore/eager:dev
43-
docker tag nfcore/eager:dev nfcore/eager:2.2.1
43+
docker tag nfcore/eager:dev nfcore/eager:dev
4444
4545
- name: Install Nextflow
46+
env:
47+
CAPSULE_LOG: none
4648
run: |
4749
wget -qO- get.nextflow.io | bash
4850
sudo mv nextflow /usr/local/bin/
@@ -142,22 +144,15 @@ jobs:
142144
- name: PMDTOOLS Test PMDtools works alone
143145
run: |
144146
nextflow run ${GITHUB_WORKSPACE} -profile test_tsv,docker --run_pmdtools
145-
- name: GATK 3.5 Download resource files
146-
run: |
147-
mkdir -p jars/gatk_3_5
148-
wget https://storage.googleapis.com/gatk-software/package-archive/gatk/GenomeAnalysisTK-3.5-0-g36282e4.tar.bz2 -P jars/gatk_3_5
149-
tar xvf jars/gatk_3_5/GenomeAnalysisTK-3.5-0-g36282e4.tar.bz2 -C jars/gatk_3_5/
150-
chmod +x jars/gatk_3_5/GenomeAnalysisTK.jar
151-
GATK_JAR=$(readlink -f jars/gatk_3_5/GenomeAnalysisTK.jar)
152147
- name: GENOTYPING_UG AND MULTIVCFANALYZER Test running GATK UnifiedGenotyper and MultiVCFAnalyzer, additional VCFS
153148
run: |
154-
nextflow run ${GITHUB_WORKSPACE} -profile test_tsv,docker --run_genotyping --gatk_ug_jar '/home/runner/work/eager/eager/jars/gatk_3_5/GenomeAnalysisTK.jar' --genotyping_tool 'ug' --gatk_out_mode 'EMIT_ALL_SITES' --gatk_ug_genotype_model 'SNP' --run_multivcfanalyzer --additional_vcf_files 'https://raw.githubusercontent.com/nf-core/test-datasets/eager/testdata/Mammoth/vcf/JK2772_CATCAGTGAGTAGA_L008_R1_001.fastq.gz.tengrand.fq.combined.fq.mapped_rmdup.bam.unifiedgenotyper.vcf.gz' --write_allele_frequencies
149+
nextflow run ${GITHUB_WORKSPACE} -profile test_tsv,docker --run_genotyping --genotyping_tool 'ug' --gatk_out_mode 'EMIT_ALL_SITES' --gatk_ug_genotype_model 'SNP' --run_multivcfanalyzer --additional_vcf_files 'https://raw.githubusercontent.com/nf-core/test-datasets/eager/testdata/Mammoth/vcf/JK2772_CATCAGTGAGTAGA_L008_R1_001.fastq.gz.tengrand.fq.combined.fq.mapped_rmdup.bam.unifiedgenotyper.vcf.gz' --write_allele_frequencies
155150
- name: COMPLEX LANE/LIBRARY MERGING Test running lane and library merging prior to GATK UnifiedGenotyper and running MultiVCFAnalyzer
156151
run: |
157-
nextflow run ${GITHUB_WORKSPACE} -profile test_tsv_complex,docker --run_genotyping --gatk_ug_jar '/home/runner/work/eager/eager/jars/gatk_3_5/GenomeAnalysisTK.jar' --genotyping_tool 'ug' --gatk_out_mode 'EMIT_ALL_SITES' --gatk_ug_genotype_model 'SNP' --run_multivcfanalyzer
152+
nextflow run ${GITHUB_WORKSPACE} -profile test_tsv_complex,docker --run_genotyping --genotyping_tool 'ug' --gatk_out_mode 'EMIT_ALL_SITES' --gatk_ug_genotype_model 'SNP' --run_multivcfanalyzer
158153
- name: GENOTYPING_UG ON TRIMMED BAM Test
159154
run: |
160-
nextflow run ${GITHUB_WORKSPACE} -profile test_tsv,docker --run_genotyping --run_trim_bam --genotyping_source 'trimmed' --gatk_ug_jar '/home/runner/work/eager/eager/jars/gatk_3_5/GenomeAnalysisTK.jar' --genotyping_tool 'ug' --gatk_out_mode 'EMIT_ALL_SITES' --gatk_ug_genotype_model 'SNP'
155+
nextflow run ${GITHUB_WORKSPACE} -profile test_tsv,docker --run_genotyping --run_trim_bam --genotyping_source 'trimmed' --genotyping_tool 'ug' --gatk_out_mode 'EMIT_ALL_SITES' --gatk_ug_genotype_model 'SNP'
161156
- name: BAM_INPUT Run the basic pipeline with the bam input profile, skip AdapterRemoval as no convertBam
162157
run: |
163158
nextflow run ${GITHUB_WORKSPACE} -profile test_tsv_bam,docker --skip_adapterremoval

.github/workflows/linting.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ jobs:
3838
uses: actions/checkout@v2
3939

4040
- name: Install Nextflow
41+
env:
42+
CAPSULE_LOG: none
4143
run: |
4244
wget -qO- get.nextflow.io | bash
4345
sudo mv nextflow /usr/local/bin/
46+
4447
- uses: actions/setup-python@v1
4548
with:
4649
python-version: '3.6'
@@ -55,12 +58,19 @@ jobs:
5558
GITHUB_COMMENTS_URL: ${{ github.event.pull_request.comments_url }}
5659
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5760
GITHUB_PR_COMMIT: ${{ github.event.pull_request.head.sha }}
58-
run: nf-core -l lint_log.txt lint ${GITHUB_WORKSPACE}
61+
run: nf-core -l lint_log.txt lint ${GITHUB_WORKSPACE} --markdown lint_results.md
62+
63+
- name: Save PR number
64+
if: ${{ always() }}
65+
run: echo ${{ github.event.pull_request.number }} > PR_number.txt
5966

6067
- name: Upload linting log file artifact
6168
if: ${{ always() }}
6269
uses: actions/upload-artifact@v2
6370
with:
6471
name: linting-log-file
65-
path: lint_log.txt
72+
path: |
73+
lint_log.txt
74+
lint_results.md
75+
PR_number.txt
6676

0 commit comments

Comments
 (0)