Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
bfdee09
Reset changes to nf-core 2.3.2 merge
DSchreyer Mar 24, 2022
3a3a23e
Template update for nf-core/tools version 2.4
nf-core-bot May 16, 2022
3090938
Added channel version mix for each software
DSchreyer Jun 28, 2022
1b75adf
Removed amplified intervals copy
DSchreyer Jul 13, 2022
4e15c63
added container image
DSchreyer Jul 13, 2022
44805c3
Minor line fixes
DSchreyer Jul 13, 2022
296b597
Updated AC and AS
DSchreyer Jul 14, 2022
d8c33a0
added ignoreUnmated for samblaster; changed markduplicates bai file l…
DSchreyer Jul 21, 2022
660ed52
Added save parameters
DSchreyer Jul 22, 2022
9d63458
Added new parameters to save intermediate files
DSchreyer Jul 22, 2022
121796d
Changed formatting; Added new parameters for intermediate file saving
DSchreyer Jul 22, 2022
16ba748
Changed formatting
DSchreyer Jul 22, 2022
a9c8fc2
Removed prefix
DSchreyer Jul 22, 2022
d168bf0
nf-core lint fix
DSchreyer Jul 22, 2022
f297574
Added Zenodo ID
DSchreyer Jul 22, 2022
c27c6b0
Linting
DSchreyer Jul 22, 2022
16978e7
Prettier
DSchreyer Jul 22, 2022
04194f2
Added if statement to remove module warning
DSchreyer Jul 22, 2022
60762e0
Template update for nf-core/tools version 2.5
nf-core-bot Aug 30, 2022
52e8bad
Updated modules
DSchreyer Aug 31, 2022
a27e20e
Update to nf-core template 2.5
DSchreyer Aug 31, 2022
93380a9
Black
DSchreyer Aug 31, 2022
c74061b
Template update for nf-core/tools version 2.5.1
nf-core-bot Sep 1, 2022
2372b13
Template update for nf-core/tools version 2.6
nf-core-bot Oct 4, 2022
d749acc
Added if clause to check wether ampliconclassifier files exist; Then …
DSchreyer Oct 5, 2022
16bc26a
Added cnvkit cnn file to essential inputs
DSchreyer Oct 5, 2022
fcb799f
update
DSchreyer Oct 16, 2022
5bcaa63
Template update for nf-core/tools version 2.7.1
nf-core-bot Dec 8, 2022
d4eaa0f
Template update for nf-core/tools version 2.7.2
nf-core-bot Dec 19, 2022
795fd12
Updated
DSchreyer Dec 19, 2022
f164f6e
Added cnn stub
DSchreyer Dec 19, 2022
bbd8472
Added mm10 option
DSchreyer Dec 19, 2022
cd06cc5
Updated cnn reference
DSchreyer Dec 22, 2022
b904749
Fixed zero division error identified here: https://github.com/iprada/…
DSchreyer Jan 18, 2023
7965f9d
Added keep_duplicates and modified script so it skips duplicate filte…
DSchreyer Mar 1, 2023
b18b20c
Added cnvkit_cnn schema and modified default for save_markduplicates_bam
DSchreyer Mar 1, 2023
3c9f18d
Updated nf-core modules and subworkflows
DSchreyer Mar 1, 2023
1e322f7
Updated nf-core modules and subworkflows v2
DSchreyer Mar 1, 2023
6a127fa
Black and prettier run
DSchreyer Mar 1, 2023
499048c
Update from template
DSchreyer Mar 6, 2023
e35dbed
Added new tests for markduplciates and samtools filtering
DSchreyer Mar 6, 2023
e797ae4
Small fixes
DSchreyer Mar 6, 2023
9ec816b
Updated modules; Changed markduplicates; Removed args.when from modul…
DSchreyer Mar 6, 2023
f127890
Added makeinput for ampliconclassifier
DSchreyer Mar 6, 2023
da53a26
Updated ampliconclassifier; Added new modules for input and makeresults
DSchreyer Mar 7, 2023
45e3d0b
Updated ampliconclassifier; Added new modules for input and makeresults
DSchreyer Mar 7, 2023
40ca9bc
Integrated ampliconclassifier modules
DSchreyer Mar 7, 2023
7bb6471
Removed ampliconclassifier modules from ampliconarchitect directory
DSchreyer Mar 7, 2023
3dbc30c
Removed
DSchreyer Mar 7, 2023
b68e4c9
Added version output
DSchreyer Mar 7, 2023
978d186
added stub
DSchreyer Mar 7, 2023
eaa7d21
conda.enabled
DSchreyer Mar 7, 2023
52bc3bd
Merge branch 'nf-core-template-merge-2.7.2' into dev-template-merge
DSchreyer Mar 7, 2023
a5628ce
Small fixes
DSchreyer Mar 7, 2023
46a0524
Removed nf-core lint errors; Todo; added default values in nextflow.c…
DSchreyer Mar 7, 2023
f8d3cf5
Black and Prettier
DSchreyer Mar 7, 2023
3b29734
Updated changelog; New version 1.0.2
DSchreyer Mar 7, 2023
5a1fc5f
modified samtools local modules
DSchreyer Mar 7, 2023
4439432
Prettier
DSchreyer Mar 7, 2023
ffe2bbb
black
DSchreyer Mar 7, 2023
49a3f18
Added input_format parameter check, mentioned in the issue: https://g…
DSchreyer Mar 7, 2023
bbf5778
BWA Index pattern
DSchreyer Mar 7, 2023
fd351cf
Updated nextflow version
DSchreyer Mar 8, 2023
8f61b31
Added stub to BWA-MEM -> Moved it to local module; Updated ampliconcl…
DSchreyer Mar 8, 2023
c58bcca
Updated bwa-mem module path to local
DSchreyer Mar 8, 2023
de56ea3
Samtools filter only printed header -> now includes the full file
DSchreyer Mar 8, 2023
eec00c3
Update CHANGELOG.md
DSchreyer Mar 8, 2023
c567694
Update docs/usage.md
DSchreyer Mar 8, 2023
2f09b7d
Update docs/usage.md
DSchreyer Mar 8, 2023
f169004
Update modules/local/getcircularreads.nf
DSchreyer Mar 8, 2023
a80b5bf
Update docs/usage.md
DSchreyer Mar 8, 2023
ec11484
Added bam output and fai input information
DSchreyer Mar 8, 2023
fcdfc2a
Prettier
DSchreyer Mar 8, 2023
4afab78
Added metrics output meta
DSchreyer Mar 8, 2023
1bb5c21
Added cnvkit and AmpliconClassifier citation
DSchreyer Mar 9, 2023
0fefc80
Ampliconclassifier functions are more clear now!
DSchreyer Mar 9, 2023
238312e
Syntax
DSchreyer Mar 9, 2023
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
27 changes: 27 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "nfcore",
"image": "nfcore/gitpod:latest",
"remoteUser": "gitpod",

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"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"
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": ["ms-python.python", "ms-python.vscode-pylance", "nf-core.nf-core-extensionpack"]
}
}
}
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ trim_trailing_whitespace = true
indent_size = 4
indent_style = space

[*.{md,yml,yaml,html,css,scss,js}]
[*.{md,yml,yaml,html,css,scss,js,cff}]
indent_size = 2

# These files are edited and tested upstream in nf-core/modules
Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.config linguist-language=nextflow
*.nf.test linguist-language=nextflow
modules/nf-core/** linguist-generated
subworkflows/nf-core/** linguist-generated
16 changes: 16 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,19 @@ If you are using a new feature from core Nextflow, you may bump the minimum requ
### Images and figures

For overview images and other documents we follow the nf-core [style guidelines and examples](https://nf-co.re/developers/design_guidelines).

## GitHub Codespaces

This repo includes a devcontainer configuration which will create a GitHub Codespaces for Nextflow development! This is an online developer environment that runs in your browser, complete with VSCode and a terminal.

To get started:

- Open the repo in [Codespaces](https://github.com/nf-core/circdna/codespaces)
- Tools installed
- nf-core
- Nextflow

Devcontainer specs:

- [DevContainer config](.devcontainer/devcontainer.json)
- [Dockerfile](.devcontainer/Dockerfile)
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ body:
attributes:
label: System information
description: |
* Nextflow version _(eg. 21.10.3)_
* Nextflow version _(eg. 22.10.1)_
* Hardware _(eg. HPC, Desktop, Cloud)_
* Executor _(eg. slurm, local, awsbatch)_
* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter or Charliecloud)_
Expand Down
3 changes: 1 addition & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/circ

- [ ] This comment contains a description of changes (with reason).
- [ ] If you've fixed a bug or added code that should be tested, add tests!
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/circdna/tree/master/.github/CONTRIBUTING.md)
- [ ] If necessary, also make a PR on the nf-core/circdna _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/circdna/tree/master/.github/CONTRIBUTING.md)- [ ] If necessary, also make a PR on the nf-core/circdna _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
- [ ] Make sure your code lints (`nf-core lint`).
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker --outdir <OUTDIR>`).
- [ ] Usage Documentation in `docs/usage.md` is updated.
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/awsfulltest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ jobs:
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/circdna/results-${{ github.sha }}"
}
profiles: test_full,aws_tower
- uses: actions/upload-artifact@v3
with:
name: Tower debug log file
path: tower_action_*.log
4 changes: 4 additions & 0 deletions .github/workflows/awstest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ jobs:
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/circdna/results-test-${{ github.sha }}"
}
profiles: test,aws_tower
- uses: actions/upload-artifact@v3
with:
name: Tower debug log file
path: tower_action_*.log
77 changes: 59 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ on:

env:
NXF_ANSI_LOG: false
CAPSULE_LOG: none

concurrency:
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
cancel-in-progress: true

jobs:
test:
Expand All @@ -20,34 +23,72 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
# Nextflow versions
include:
# Test pipeline minimum Nextflow version
- NXF_VER: "21.10.3"
NXF_EDGE: ""
# Test latest edge release of Nextflow
- NXF_VER: ""
NXF_EDGE: "1"
NXF_VER:
- "22.10.1"
- "latest-everything"
steps:
- name: Check out pipeline code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Nextflow
env:
NXF_VER: ${{ matrix.NXF_VER }}
# Uncomment only if the edge release is more recent than the latest stable release
# See https://github.com/nextflow-io/nextflow/issues/2467
# NXF_EDGE: ${{ matrix.NXF_EDGE }}
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
uses: nf-core/setup-nextflow@v1
with:
version: "${{ matrix.NXF_VER }}"

- name: Run pipeline with test data
# For example: adding 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

test_keep_duplicates:
name: Run pipeline with test data, but remove marked duplicates
# 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 == 'nf-core/circdna') }}"
runs-on: ubuntu-latest
strategy:
matrix:
NXF_VER:
- "22.10.1"
- "latest-everything"
steps:
- name: Check out pipeline code
uses: actions/checkout@v2

- name: Install Nextflow
uses: nf-core/setup-nextflow@v1
with:
version: "${{ matrix.NXF_VER }}"
- name: Run pipeline with test data, but remove marked duplicates
# For example: adding 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 --keep_duplicates false

test_skip_markduplicates:
name: Run pipeline with test data, but remove marked duplicates
# 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 == 'nf-core/circdna') }}"
runs-on: ubuntu-latest
strategy:
matrix:
NXF_VER:
- "22.10.1"
- "latest-everything"
steps:
- name: Check out pipeline code
uses: actions/checkout@v2

- name: Install Nextflow
uses: nf-core/setup-nextflow@v1
with:
version: "${{ matrix.NXF_VER }}"
- name: Run pipeline with test data, but remove marked duplicates
# For example: adding 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 --skip_markduplicates

ampliconarchitect:
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/circdna') }}"
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/fix-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.nf_core_bot_auth_token }}

- uses: actions/setup-node@v2
- uses: actions/setup-node@v3

- name: Install Prettier
run: npm install -g prettier @prettier/plugin-php
Expand All @@ -34,9 +34,9 @@ jobs:
id: prettier_status
run: |
if prettier --check ${GITHUB_WORKSPACE}; then
echo "::set-output name=result::pass"
echo "result=pass" >> $GITHUB_OUTPUT
else
echo "::set-output name=result::fail"
echo "result=fail" >> $GITHUB_OUTPUT
fi

- name: Run 'prettier --write'
Expand Down
54 changes: 41 additions & 13 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ name: nf-core linting
# that the code meets the nf-core guidelines.
on:
push:
branches:
- dev
pull_request:
release:
types: [published]
Expand All @@ -12,9 +14,9 @@ jobs:
EditorConfig:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/setup-node@v2
- uses: actions/setup-node@v3

- name: Install editorconfig-checker
run: npm install -g editorconfig-checker
Expand All @@ -25,32 +27,58 @@ jobs:
Prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/setup-node@v2
- uses: actions/setup-node@v3

- name: Install Prettier
run: npm install -g prettier

- name: Run Prettier --check
run: prettier --check ${GITHUB_WORKSPACE}

PythonBlack:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Check code lints with Black
uses: psf/black@stable

# If the above check failed, post a comment on the PR explaining the failure
- name: Post PR comment
if: failure()
uses: mshick/add-pr-comment@v1
with:
message: |
## Python linting (`black`) is failing

To keep the code consistent with lots of contributors, we run automated code consistency checks.
To fix this CI test, please run:

* Install [`black`](https://black.readthedocs.io/en/stable/): `pip install black`
* Fix formatting errors in your pipeline: `black .`

Once you push these changes the test should pass, and you can hide this comment :+1:

We highly recommend setting up Black in your code editor so that this formatting is done automatically on save. Ask about it on Slack for help!

Thanks again for your contribution!
repo-token: ${{ secrets.GITHUB_TOKEN }}
allow-repeats: false

nf-core:
runs-on: ubuntu-latest
steps:
- name: Check out pipeline code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Nextflow
env:
CAPSULE_LOG: none
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
uses: nf-core/setup-nextflow@v1

- uses: actions/setup-python@v3
- uses: actions/setup-python@v4
with:
python-version: "3.6"
python-version: "3.7"
architecture: "x64"

- name: Install dependencies
Expand All @@ -71,7 +99,7 @@ jobs:

- name: Upload linting log file artifact
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: linting-logs
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linting_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- name: Get PR number
id: pr_number
run: echo "::set-output name=pr_number::$(cat linting-logs/PR_number.txt)"
run: echo "pr_number=$(cat linting-logs/PR_number.txt)" >> $GITHUB_OUTPUT

- name: Post PR comment
uses: marocchino/sticky-pull-request-comment@v2
Expand Down
2 changes: 1 addition & 1 deletion .nf-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ lint:
- assets/email_template.html

update:
nf-core/modules:
nf-core:
samtools/sort: "1ad73f1b2abdea9398680d6d20014838135c9a35"
samtools/index: "1ad73f1b2abdea9398680d6d20014838135c9a35"
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
email_template.html
adaptivecard.json
slackreport.json
.nextflow*
work/
data/
Expand All @@ -7,3 +9,4 @@ results/
testing/
testing*
*.pyc
bin/
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,29 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v1.0.2 - [2023-03-07]

### `Added`

- ampliconclassifier/makeinput module added -> Generates the input file used for ampliconclassifier functions
- ampliconclassifier/makeresultstable added -> Generates results table from AmpliconArchitect and AmpliconClassifier
- CNN Reference File For AmpliconArchitect
- mm10 option for AmpliconArchitect
- stub runs for AmpliconArchitect processes
- New module versions
- nf-core template 2.7.2

### `Fixed`

- Fixed ZeroDivisionError by Circle-Map
- Fixed keep_duplicates and skip_markduplicates parameter bug

### `Dependencies`

### `Deprecated`

- AmpliconArchitect Summary Process was deprecated

## v1.0.1 - [2022-06-22]

### `Added`
Expand Down
Loading