Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nucleovar Pre-Release Notes #14

Merged
merged 235 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
235 commits
Select commit Hold shift + click to select a range
09676dc
Redownloaded nf-core vardictjava and wrote code to match inputs witho…
rnaidu Dec 20, 2023
820c639
Pushing progress on vardictjava.nf
rnaidu Dec 29, 2023
530e62a
Cleaned up unused code chunks, add fasta, bed, and fai CLI args, and …
rnaidu Jan 5, 2024
68f343c
added CLI arguments to nextflow_schema.json to pass linting checks.
rnaidu Jan 5, 2024
89251a1
adding linting.yml file (unchanged) to pass linting checks.
rnaidu Jan 5, 2024
b7f3118
adding updated nf-core modules to pass linting checks.
rnaidu Jan 5, 2024
67dc6e6
keeping workingd directory up to date to pass lint checks.
rnaidu Jan 5, 2024
712ba3d
modified inputs to match input cardinality for vardictjava
rnaidu Jan 5, 2024
0e734f5
Merge branch 'feature/call_variants' of https://github.com/mskcc-omic…
rnaidu Jan 5, 2024
03b570d
keeping working branch up to date
rnaidu Jan 5, 2024
060f8fb
added CLI options for vardictjava, module is successfully working in …
rnaidu Jan 5, 2024
2e5185a
Added mutect1 task.ext args in modules.config
rnaidu Jan 9, 2024
fa0452b
added code to prepare inputs for mutect1 module and added call to mut…
rnaidu Jan 11, 2024
e9def4e
created local module for vardict_filtering (utilizing post-processing…
rnaidu Jan 11, 2024
0788d06
added vardict_filter module and changed acceptance criteria of input …
rnaidu Jan 17, 2024
000cc68
updated vardict_filter.nf (successfully tested locally on single samp…
rnaidu Jan 22, 2024
3d53ba5
pushing code changes to vardict_filter.nf-- updated module and now su…
rnaidu Jan 25, 2024
8d6ea31
pushing current work
rnaidu Feb 5, 2024
a386830
creating two separate subworkflows for single sample and case control…
rnaidu Feb 8, 2024
1bbd048
pushing work I have so far
rnaidu Feb 21, 2024
fe26fbe
pushing vardictjava
rnaidu Apr 10, 2024
d8b7576
cleaning up null directory
rnaidu Apr 16, 2024
967eae9
pushing latest commits
rnaidu Apr 16, 2024
a569901
removing subworkflows not being used in nucleovar
rnaidu Apr 16, 2024
5e60d0e
pushing updated work to begin testing on terra
rnaidu Apr 24, 2024
2de2d3d
pushing updated work for cluster testing
rnaidu Apr 24, 2024
2f87623
Template update for nf-core/tools version 2.13.1
Apr 25, 2024
677b945
Merge branch 'TEMPLATE' into feature/call_variants_lsf
Apr 25, 2024
c9eb622
running on cluster
Apr 25, 2024
5b3ab08
pushing work so far with using the updated samplesheet
rnaidu Apr 26, 2024
092484a
commenting out what hasn't been tested yet with the updated samplesheet
rnaidu Apr 26, 2024
13723bb
pushing saved work so far before merge
rnaidu Apr 26, 2024
1542231
merging feature/call_variants_lsf branch into new_samplesheet
rnaidu Apr 26, 2024
b928a01
made necessary code changes listed on clickup to fully transition to …
rnaidu May 2, 2024
d3c2fff
pushing updated work that runs traceback successfully on a simplex an…
rnaidu May 7, 2024
f46b36c
pushed recent commits, only testing traceback subworkflow
rnaidu May 10, 2024
0943261
fasta file passed as channel for proper iteration
May 13, 2024
5f46129
added curated bams samplesheet into nucleovar and used channel manipu…
rnaidu May 24, 2024
cb1ee14
curated bams are being read in through input file and passed directly…
rnaidu May 28, 2024
8044973
updating work on nucleovar
rnaidu Jun 27, 2024
b7bb63b
fixing merge conflicts
rnaidu Jun 28, 2024
b94c346
replaced docker image in traceback subworkflow with updated version t…
rnaidu Jul 1, 2024
8bdeef8
pushing updated work on nucleovar -- configuring traceback/pv maf tag…
rnaidu Jul 8, 2024
1a44f23
adding basic tumor fillout support, need to fix sync-ing with msk
Jul 8, 2024
73fd141
adding filloutype for traceback
Jul 9, 2024
cff0019
Merge pull request #7 from mskcc-omics-workflows/feature/call_variant…
rnaidu Jul 11, 2024
2cd55dc
pushing updated work
rnaidu Jul 24, 2024
ac29f5d
pushing updated work so faqr
rnaidu Jul 25, 2024
6ff6d4a
Merge branch 'feature/call_variants' of https://github.com/mskcc-omic…
rnaidu Jul 25, 2024
d965c01
making sure all of traceback is up to date via nf core update command
rnaidu Jul 25, 2024
ba69ce4
pushing updated work on nucleovar
rnaidu Jul 30, 2024
8291dd7
pushing working version of traceback (updated by nf core command)
rnaidu Jul 30, 2024
572fd11
pushing updated wok
rnaidu Aug 13, 2024
251d648
pushing updated modules
rnaidu Aug 13, 2024
59ac1f7
pushing schema json files for the core and aux bams input CSV. renami…
rnaidu Aug 15, 2024
3fda738
changed file extension pattern in schema_input.json
rnaidu Aug 15, 2024
d8b34ab
pushing updated work
rnaidu Aug 16, 2024
3530f06
adding bcftools reheader module
rnaidu Aug 16, 2024
c3135fc
end to end test
rnaidu Aug 19, 2024
e5d6f05
Merge branch 'dev' into feature/call_variants
rnaidu Aug 19, 2024
86a41f1
fixed trailing whitespace
rnaidu Aug 20, 2024
c64c936
passing prettier lint checks
rnaidu Aug 20, 2024
916f036
passing a test file for lint check
rnaidu Aug 20, 2024
d88f1e5
passing lint check
rnaidu Aug 20, 2024
1d790b8
trying to invoke nf-core lint check
rnaidu Aug 20, 2024
3dcfcf7
Merge branch 'feature/call_variants' of https://github.com/mskcc-omic…
rnaidu Aug 20, 2024
0cc9229
testing a portion of nucleovar to kick off github actions
rnaidu Aug 20, 2024
b84d64a
pass linting check
rnaidu Aug 20, 2024
b603b6c
trying to pass nf-core lint check
rnaidu Aug 20, 2024
b09300a
passed nf stub test
rnaidu Aug 20, 2024
5d08cde
passing test
rnaidu Aug 20, 2024
2ba96b8
fixing file permissions to test runs
rnaidu Aug 20, 2024
a7e02ac
Merge branch 'feature/call_variants' of https://github.com/mskcc-omic…
rnaidu Aug 20, 2024
8aa113b
trying to pass test profile
rnaidu Aug 20, 2024
2c365d2
reorganizing modules so that local modules and nf-core modules are no…
rnaidu Aug 20, 2024
d3e31c6
Merge branch 'feature/call_variants' of https://github.com/mskcc-omic…
rnaidu Aug 20, 2024
6f90f85
removing tabix and bgzip nf core modules as they are not used
rnaidu Aug 20, 2024
add647e
passing prettier lint check
rnaidu Aug 20, 2024
2c1dd39
added stub test with dummy data
rnaidu Aug 20, 2024
cde8262
adding stub profile
rnaidu Aug 20, 2024
fa37f62
getting stub test to run
rnaidu Aug 20, 2024
415426a
adding relative path for inputs
rnaidu Aug 20, 2024
dfd2ae2
add dummy relative path data for all inputs
rnaidu Aug 20, 2024
0c75d96
dummy data upload
rnaidu Aug 20, 2024
362a825
upload dummy samplesheet
rnaidu Aug 20, 2024
8611aa7
final links to dummy data
rnaidu Aug 20, 2024
6e99e68
uploading saplesheet
rnaidu Aug 20, 2024
1efebc1
updated configs
rnaidu Aug 20, 2024
0b24695
removing schema json
rnaidu Aug 20, 2024
611e691
replacing ci.yml command with nf-test
rnaidu Aug 22, 2024
a04a2d6
updating ci.yml with direct path to nucleovar.nf instead for stub test
rnaidu Aug 23, 2024
8ab4aa5
changing relative path in ci.yml
rnaidu Aug 23, 2024
150a5d7
test
rnaidu Aug 23, 2024
96d9eaa
test
rnaidu Aug 23, 2024
6107d85
adding in nf-test command
rnaidu Aug 23, 2024
ea81b6f
testing nf-test command
rnaidu Aug 23, 2024
281d530
updating nf-test paths
rnaidu Aug 23, 2024
bc16f06
isolating stub test only
rnaidu Aug 23, 2024
c586c7c
replacing all filepaths in aux bams csv to null
rnaidu Aug 26, 2024
4e839e3
removed projectDir from paths in stub pipeline input CSV file and rem…
rnaidu Sep 2, 2024
c9880ae
changed filepaths on stub csv file
rnaidu Sep 2, 2024
195e36a
working nf test
rnaidu Sep 2, 2024
62a7e01
working stub test in nextflow run command to
rnaidu Sep 2, 2024
8a98388
updated ci.yml
rnaidu Sep 2, 2024
10c2352
seeing if singularity profile works
rnaidu Sep 2, 2024
9477ea5
updating ci.yml
rnaidu Sep 2, 2024
6677809
testing up until mutect2
rnaidu Sep 2, 2024
0b4dfef
stub test working all the way until mutect2
rnaidu Sep 2, 2024
93eb569
updated stub config
rnaidu Sep 2, 2024
88104db
stub test working up until vardict filter
rnaidu Sep 3, 2024
dd07246
stub test working until mutect2 and changed up paths in casecontrol c…
rnaidu Sep 3, 2024
62b1494
stub test working up until bcftools mutect
rnaidu Sep 3, 2024
31812d7
both regular and stub test working up until end of genome nexus
rnaidu Sep 3, 2024
fc8cf99
adding in the header and sample order files
rnaidu Sep 4, 2024
80ba3ba
regular and stub test working up until end of traceback
rnaidu Sep 4, 2024
b9e002a
stub test working end to end pipeline
rnaidu Sep 4, 2024
847f26f
stub test working end to end and fixing lint check
rnaidu Sep 4, 2024
347601a
removing fasta files from stub folder since nf-core data paths are gi…
rnaidu Sep 4, 2024
67591b2
ran prettier on modules.json
rnaidu Sep 4, 2024
9fe8874
trying to pass nf-core lint check with automatic fixes
rnaidu Sep 4, 2024
933c538
updated linting.yml to properly show which modules are failing
rnaidu Sep 5, 2024
f867b82
changing python version
rnaidu Sep 5, 2024
a9a08ad
change python version in linting.yml back to 3.12
rnaidu Sep 5, 2024
d6cfd51
reformatting modules.json to pass prettier lint check
rnaidu Sep 5, 2024
edda31e
added stub annotated maf for vcf2maf genome nexus module
rnaidu Sep 6, 2024
be9d690
changed stub file extension
rnaidu Sep 6, 2024
a4a0930
Create input.template.json
Sep 9, 2024
4545c91
updated genome nexus subworkflow to pass lint check, added https pref…
rnaidu Sep 10, 2024
51cb1eb
changed branch of install in modules.json
rnaidu Sep 10, 2024
3d81a23
formatted file
rnaidu Sep 10, 2024
a1e1845
updated mutect1 module with local changes to pass nf-core lint check
rnaidu Sep 10, 2024
28b694a
fixed other lint fails aside from traceback subworkflow update
rnaidu Sep 10, 2024
d29d986
passing prettier lint
rnaidu Sep 10, 2024
7c9221e
removing files accidentally committed
rnaidu Sep 10, 2024
8f043ae
adding newline in sample vcf to pass prettier
rnaidu Sep 10, 2024
c0be774
passing more prettier checks
rnaidu Sep 10, 2024
38cd349
adding additional input parameters
Sep 11, 2024
c031f2e
publishing stub files so all input parameters are up to date
rnaidu Sep 11, 2024
c37f480
Merge branch 'feature/call_variants' of https://github.com/mskcc-omic…
rnaidu Sep 11, 2024
0a90356
added stub canonical target tx ref file
rnaidu Sep 11, 2024
3738f2e
completing all github action checks and addition of canonical tx ref …
rnaidu Sep 11, 2024
c2e405e
passing prettier checks
rnaidu Sep 11, 2024
a9d7a74
modules.json prettier lint fix
rnaidu Sep 11, 2024
35083ce
Update input.template.json
Sep 12, 2024
91caa99
moved sample_order_file creation to before nucleovar.nf and made it s…
rnaidu Sep 12, 2024
8331b72
Merge branch 'feature/call_variants' of https://github.com/mskcc-omic…
rnaidu Sep 12, 2024
f18d62a
adding test push
rnaidu Sep 12, 2024
64241ae
removal of test.txt file
rnaidu Sep 12, 2024
88b5193
Merge pull request #1 from mskcc-omics-workflows/feature/call_variants
rnaidu Sep 12, 2024
5c37c7d
Update input.template.json
Sep 12, 2024
ec07372
incorrect name
Sep 13, 2024
00274f2
Update nextflow.config
buehlere Sep 16, 2024
f6472db
Update inputs.template.json
Sep 16, 2024
f6b84c5
Update inputs.template.json
Sep 16, 2024
2c7e9a2
Update inputs.template.json
Sep 16, 2024
80d4790
Update nextflow_schema.json
Sep 16, 2024
55d7ed8
updating conf
Sep 17, 2024
2b84b16
Update inputs.template.json
Sep 17, 2024
33cb01f
Update nextflow_schema.json
Sep 17, 2024
83968d3
Update nucleovar.nf
Sep 17, 2024
ed2700e
Update nucleovar.nf
Sep 17, 2024
5cb6362
Update nucleovar.nf
Sep 17, 2024
c334d87
Update inputs.template.json
Sep 17, 2024
4fc11a4
Update main.nf
Sep 17, 2024
4757fef
Update nextflow.config
buehlere Sep 18, 2024
49dbb92
pushing test file to start PR
rnaidu Sep 25, 2024
e87ed72
pulling dev branch so everything is up to date
rnaidu Sep 25, 2024
9ac6299
changed pre-nucleovar.nf code so that input samplesheets take in only…
rnaidu Sep 26, 2024
2cd1f24
added hotspots as a mandatory CLI parameter and updated nucleovar.nf …
rnaidu Sep 26, 2024
7e545fe
testing voyager inputs
Sep 26, 2024
fc8e34c
putting new stub files on github repo for stub config
rnaidu Sep 26, 2024
067becc
updated stub files for stub config
rnaidu Sep 26, 2024
ff2f43e
maf processing update
Sep 26, 2024
abacbd0
keeping all edits made in dev up to date to prepare for PR
rnaidu Sep 26, 2024
f062fa5
moved work I did on dev branch to nucleovar_v2_fixes. this is running…
rnaidu Sep 26, 2024
b6aaad9
changed line of code in utils_nfcore_nucleovar_pipeline to extract co…
rnaidu Sep 27, 2024
571a07d
replaced all postprocessing docker image with the latest release and …
rnaidu Sep 27, 2024
c07aa27
working end to end stub test
rnaidu Sep 30, 2024
f0450f1
passing lint and prettier checks
rnaidu Oct 1, 2024
1a13573
test push
rnaidu Oct 1, 2024
bfcb910
lint checks cont
rnaidu Oct 1, 2024
befc4aa
passing remaining checks
rnaidu Oct 1, 2024
d2b4037
added the meta.yml for genotypevariants in prettierignore file until …
rnaidu Oct 1, 2024
0c97022
running stub test
rnaidu Oct 1, 2024
742f5b5
Merge pull request #11 from mskcc-omics-workflows/nucleovar_v2_fixes
buehlere Oct 2, 2024
1fc9c83
Update nextflow_schema.json
Oct 2, 2024
7c2e964
Update nucleovar.nf
Oct 2, 2024
6293262
edits for running on lsf
Oct 4, 2024
0afdbaf
Merge branch 'dev' into lsf-fix
Oct 4, 2024
612cf60
config update
Oct 4, 2024
93557d0
Merge pull request #16 from mskcc-omics-workflows/lsf-fix
buehlere Oct 4, 2024
fb9d9d9
config update
Oct 4, 2024
d42cee1
test push to start enhancements v2 PR
rnaidu Oct 8, 2024
bbddc84
organized each variant caller in its own subworkflow,removed any subw…
rnaidu Oct 9, 2024
05677d3
removed norm/sorting for complexvar VarDict VCFs
rnaidu Oct 9, 2024
34acd77
condensed target_bed_file prep into a subworkflow to clean up nucleov…
rnaidu Oct 9, 2024
9a91d2c
passing prettier lint checks
rnaidu Oct 9, 2024
e3719c1
accidentally pushed sample_order file, its not needed
rnaidu Oct 9, 2024
9537667
fixed indentation for juno.config to pass prettier check
rnaidu Oct 9, 2024
1ea9e55
trying to pass prettier check
rnaidu Oct 9, 2024
7be915c
Update nucleovar.nf
Oct 10, 2024
953e927
changing tab spacing for config file to pass linting
rnaidu Oct 10, 2024
9fedf3a
Merge branch 'dev' into feature/enhancements_v2
rnaidu Oct 10, 2024
190fa3d
removed header files as mandatory CLI input and instead used global v…
rnaidu Oct 10, 2024
c43290d
Merge branch 'feature/enhancements_v2' of https://github.com/mskcc-om…
rnaidu Oct 10, 2024
7c12ca9
removing txt file not needed
rnaidu Oct 10, 2024
0955bdd
emit samplesheets as output in case they are needed downstream
rnaidu Oct 10, 2024
707f370
remove text file
rnaidu Oct 10, 2024
861d68c
fixed linting
rnaidu Oct 10, 2024
9b218b0
Update nucleovar.nf
Oct 10, 2024
cf0c972
added README for stub and v1.0 asset files
rnaidu Oct 10, 2024
673e374
Merge branch 'dev' into feature/enhancements_v2
rnaidu Oct 10, 2024
7366cf2
commenting out
rnaidu Oct 10, 2024
1dcdc46
Merge branch 'feature/enhancements_v2' of https://github.com/mskcc-om…
rnaidu Oct 10, 2024
601e37f
pushing updates
rnaidu Oct 10, 2024
00a5a0a
removed creation of sample order text file in nextflow and put within…
rnaidu Oct 11, 2024
2a5d6aa
Update nucleovar.nf
Oct 16, 2024
f75a929
adding nfprov for output info
Oct 17, 2024
31c7447
specifying directory for manifest
Oct 18, 2024
b99e0be
Revert "specifying directory for manifest"
Oct 18, 2024
91d18e2
update config
Oct 18, 2024
d6cbc8a
update config
Oct 18, 2024
113d15e
adding nf-prov
Oct 18, 2024
8119f1b
nfprov config
Oct 21, 2024
638631b
Update nextflow.config
Nov 13, 2024
7a59157
linting
Nov 13, 2024
954cffc
Update ci.yml
Nov 13, 2024
b624691
lint
Nov 13, 2024
64c65b2
Update nextflow.config
Nov 13, 2024
f438ae0
syncing the README and associated files with the voyager tested nucle…
rnaidu Nov 20, 2024
7e39826
Merge branch 'dev' into feature/enhancements_v2
buehlere Nov 20, 2024
8912635
Update nextflow.config
Nov 20, 2024
135fe22
Update nextflow.config
Nov 20, 2024
599e761
Update nextflow.config
Nov 20, 2024
29df9db
Merge pull request #17 from mskcc-omics-workflows/feature/enhancement…
buehlere Nov 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,7 @@
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "/opt/conda/bin/python",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.formatting.autopep8Path": "/opt/conda/bin/autopep8",
"python.formatting.yapfPath": "/opt/conda/bin/yapf",
"python.linting.flake8Path": "/opt/conda/bin/flake8",
"python.linting.pycodestylePath": "/opt/conda/bin/pycodestyle",
"python.linting.pydocstylePath": "/opt/conda/bin/pydocstyle",
"python.linting.pylintPath": "/opt/conda/bin/pylint"
"python.defaultInterpreterPath": "/opt/conda/bin/python"
},

// Add the IDs of extensions you want installed when the container is created.
Expand Down
15 changes: 14 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,20 @@ end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset
[/subworkflows/nf-core/**]
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset

[/assets/email*]
indent_size = unset

# ignore Readme
[README.md]
indent_style = unset

# ignore python
[*.{py,md}]
indent_style = unset
9 changes: 6 additions & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ If you're not used to this workflow with git, you can start with some [docs from

## Tests

You can optionally test your changes by running the pipeline locally. Then it is recommended to use the `debug` profile to
receive warnings about process selectors and other debug info. Example: `nextflow run . -profile debug,test,docker --outdir <OUTDIR>`.
You have the option to test your changes locally by running the pipeline. For receiving warnings about process selectors and other `debug` information, it is recommended to use the debug profile. Execute all the tests with the following command:

```bash
nf-test test --profile debug,test,docker --verbose
```

When you create a pull request with changes, [GitHub Actions](https://github.com/features/actions) will run automatic tests.
Typically, pull-requests are only fully reviewed when these tests are passing, though of course we can help out before then.
Expand Down Expand Up @@ -82,7 +85,7 @@ Once there, use `nf-core schema build` to add to `nextflow_schema.json`.

Sensible defaults for process resource requirements (CPUs / memory / time) for a process should be defined in `conf/base.config`. These should generally be specified generic with `withLabel:` selectors so they can be shared across multiple processes/steps of the pipeline. A nf-core standard set of labels that should be followed where possible can be seen in the [nf-core pipeline template](https://github.com/nf-core/tools/blob/master/nf_core/pipeline-template/conf/base.config), which has the default process as a single core-process, and then different levels of multi-core configurations for increasingly large memory requirements defined with standardised labels.

The process resources can be passed on to the tool dynamically within the process with the `${task.cpu}` and `${task.memory}` variables in the `script:` block.
The process resources can be passed on to the tool dynamically within the process with the `${task.cpus}` and `${task.memory}` variables in the `script:` block.

### Naming schemes

Expand Down
100 changes: 50 additions & 50 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,53 +2,53 @@ name: Bug report
description: Report something that is broken or incorrect
labels: bug
body:
- type: textarea
id: description
attributes:
label: Description of the bug
description: A clear and concise description of what the bug is.
validations:
required: true
- type: textarea
id: command_used
attributes:
label: Command used and terminal output
description: Steps to reproduce the behaviour. Please paste the command you used
to launch the pipeline and the output from your terminal.
render: console
placeholder: '$ nextflow run ...


Some output where something broke

'
- type: textarea
id: files
attributes:
label: Relevant files
description: 'Please drag and drop the relevant files here. Create a `.zip` archive
if the extension is not allowed.

Your verbose log file `.nextflow.log` is often useful _(this is a hidden file
in the directory where you launched the pipeline)_ as well as custom Nextflow
configuration files.

'
- type: textarea
id: system
attributes:
label: System information
description: '* Nextflow version _(eg. 23.04.0)_

* Hardware _(eg. HPC, Desktop, Cloud)_

* Executor _(eg. slurm, local, awsbatch)_

* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter, Charliecloud,
or Apptainer)_

* OS _(eg. CentOS Linux, macOS, Linux Mint)_

* Version of msk/nucleovar _(eg. 1.1, 1.5, 1.8.2)_

'
- type: textarea
id: description
attributes:
label: Description of the bug
description: A clear and concise description of what the bug is.
validations:
required: true
- type: textarea
id: command_used
attributes:
label: Command used and terminal output
description: Steps to reproduce the behaviour. Please paste the command you used
to launch the pipeline and the output from your terminal.
render: console
placeholder: "$ nextflow run ...


Some output where something broke

"
- type: textarea
id: files
attributes:
label: Relevant files
description: "Please drag and drop the relevant files here. Create a `.zip` archive
if the extension is not allowed.

Your verbose log file `.nextflow.log` is often useful _(this is a hidden file
in the directory where you launched the pipeline)_ as well as custom Nextflow
configuration files.

"
- type: textarea
id: system
attributes:
label: System information
description: "* Nextflow version _(eg. 23.04.0)_

* Hardware _(eg. HPC, Desktop, Cloud)_

* Executor _(eg. slurm, local, awsbatch)_

* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter, Charliecloud,
or Apptainer)_

* OS _(eg. CentOS Linux, macOS, Linux Mint)_

* Version of msk/nucleovar _(eg. 1.1, 1.5, 1.8.2)_

"
2 changes: 1 addition & 1 deletion .github/workflows/branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
# 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
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2
with:
message: |
## This PR is against the `master` branch :x:
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:

jobs:
test:
name: Run pipeline with test data
name: Run pipeline with stub test
# Only run on push if this is the nf-core dev branch (merged PRs)
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'msk/nucleovar') }}"
runs-on: ubuntu-latest
Expand All @@ -28,16 +28,19 @@ jobs:
- "latest-everything"
steps:
- name: Check out pipeline code
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- name: Install Nextflow
uses: nf-core/setup-nextflow@v1
with:
version: "${{ matrix.NXF_VER }}"

- name: Run pipeline with test data
- name: Disk space cleanup
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1

- name: Run pipeline with stub test
# TODO nf-core: You can customise CI pipeline run tests as required
# For example: adding multiple test runs with different parameters
# For example: addingig multiple test runs with different parameters
# Remember that you can parallelise this by using strategy.matrix
run: |
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results
nextflow run ${GITHUB_WORKSPACE} -profile stub -stub --outdir ./results
2 changes: 1 addition & 1 deletion .github/workflows/clean-up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v7
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9
with:
stale-issue-message: "This issue has been tagged as awaiting-changes or awaiting-feedback by an nf-core contributor. Remove stale label or add a comment otherwise this issue will be closed in 20 days."
stale-pr-message: "This PR has been tagged as awaiting-changes or awaiting-feedback by an nf-core contributor. Remove stale label or add a comment if it is still useful."
Expand Down
72 changes: 72 additions & 0 deletions .github/workflows/download_pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Test successful pipeline download with 'nf-core download'

# Run the workflow when:
# - dispatched manually
# - when a PR is opened or reopened to master branch
# - the head branch of the pull request is updated, i.e. if fixes for a release are pushed last minute to dev.
on:
workflow_dispatch:
inputs:
testbranch:
description: "The specific branch you wish to utilize for the test execution of nf-core download."
required: true
default: "dev"
pull_request:
types:
- opened
branches:
- master
pull_request_target:
branches:
- master

env:
NXF_ANSI_LOG: false

jobs:
download:
runs-on: ubuntu-latest
steps:
- name: Install Nextflow
uses: nf-core/setup-nextflow@v1

- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
with:
python-version: "3.11"
architecture: "x64"
- uses: eWaterCycle/setup-singularity@931d4e31109e875b13309ae1d07c70ca8fbc8537 # v7
with:
singularity-version: 3.8.3

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/nf-core/tools.git@dev

- name: Get the repository name and current branch set as environment variable
run: |
echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> ${GITHUB_ENV}
echo "REPOTITLE_LOWERCASE=$(basename ${GITHUB_REPOSITORY,,})" >> ${GITHUB_ENV}
echo "REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> ${GITHUB_ENV}

- name: Download the pipeline
env:
NXF_SINGULARITY_CACHEDIR: ./
run: |
nf-core download ${{ env.REPO_LOWERCASE }} \
--revision ${{ env.REPO_BRANCH }} \
--outdir ./${{ env.REPOTITLE_LOWERCASE }} \
--compress "none" \
--container-system 'singularity' \
--container-library "quay.io" -l "docker.io" -l "ghcr.io" \
--container-cache-utilisation 'amend' \
--download-configuration

- name: Inspect download
run: tree ./${{ env.REPOTITLE_LOWERCASE }}

- name: Run the downloaded pipeline
env:
NXF_SINGULARITY_CACHEDIR: ./
NXF_SINGULARITY_HOME_MOUNT: true
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -stub -profile test,singularity --outdir ./results
72 changes: 53 additions & 19 deletions .github/workflows/fix-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
types: [created]

jobs:
deploy:
fix-linting:
# Only run if comment is on a PR with the main repo, and if it contains the magic keywords
if: >
contains(github.event.comment.html_url, '/pull/') &&
Expand All @@ -13,43 +13,77 @@ jobs:
runs-on: ubuntu-latest
steps:
# Use the @nf-core-bot token to check out so we can push later
- uses: actions/checkout@v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
token: ${{ secrets.nf_core_bot_auth_token }}

# indication that the linting is being fixed
- name: React on comment
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4
with:
comment-id: ${{ github.event.comment.id }}
reactions: eyes

# Action runs on the issue comment, so we don't get the PR by default
# Use the gh cli to check out the PR
- name: Checkout Pull Request
run: gh pr checkout ${{ github.event.issue.number }}
env:
GITHUB_TOKEN: ${{ secrets.nf_core_bot_auth_token }}

- uses: actions/setup-node@v4
# Install and run pre-commit
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
with:
python-version: 3.11

- name: Install Prettier
run: npm install -g prettier @prettier/plugin-php
- name: Install pre-commit
run: pip install pre-commit

# Check that we actually need to fix something
- name: Run 'prettier --check'
id: prettier_status
run: |
if prettier --check ${GITHUB_WORKSPACE}; then
echo "result=pass" >> $GITHUB_OUTPUT
else
echo "result=fail" >> $GITHUB_OUTPUT
fi
- name: Run pre-commit
id: pre-commit
run: pre-commit run --all-files
continue-on-error: true

- name: Run 'prettier --write'
if: steps.prettier_status.outputs.result == 'fail'
run: prettier --write ${GITHUB_WORKSPACE}
# indication that the linting has finished
- name: react if linting finished succesfully
if: steps.pre-commit.outcome == 'success'
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4
with:
comment-id: ${{ github.event.comment.id }}
reactions: "+1"

- name: Commit & push changes
if: steps.prettier_status.outputs.result == 'fail'
id: commit-and-push
if: steps.pre-commit.outcome == 'failure'
run: |
git config user.email "[email protected]"
git config user.name "nf-core-bot"
git config push.default upstream
git add .
git status
git commit -m "[automated] Fix linting with Prettier"
git commit -m "[automated] Fix code linting"
git push

- name: react if linting errors were fixed
id: react-if-fixed
if: steps.commit-and-push.outcome == 'success'
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4
with:
comment-id: ${{ github.event.comment.id }}
reactions: hooray

- name: react if linting errors were not fixed
if: steps.commit-and-push.outcome == 'failure'
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4
with:
comment-id: ${{ github.event.comment.id }}
reactions: confused

- name: react if linting errors were not fixed
if: steps.commit-and-push.outcome == 'failure'
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4
with:
issue-number: ${{ github.event.issue.number }}
body: |
@${{ github.actor }} I tried to fix the linting errors, but it didn't work. Please fix them manually.
See [CI log](https://github.com/msk/nucleovar/actions/runs/${{ github.run_id }}) for more details.
Loading
Loading