Skip to content

Commit dab67aa

Browse files
committed
Merge branch 'feat_nftemplate' of https://github.com/CCBR/LOGAN into docker
2 parents 07aa992 + db723ef commit dab67aa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1982
-1403
lines changed

.github/CONTRIBUTING.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Contributing to LOGAN
2+
3+
TODO -- describe gitflow, require PRs...
4+
5+
## Use pre-commit hooks
6+
7+
Pre-commit can automatically format your code, check for spelling errors, etc. every time you commit.
8+
9+
Install [pre-commit](https://pre-commit.com/#installation) if you haven't already,
10+
then run `pre-commit install` to install the hooks specified in `.pre-commit-config.yaml`.
11+
Pre-commit will run the hooks every time you commit.
12+
13+
If you re-clone the repo, you will likely need to re-run `pre-commit install`
14+
as the hooks are installed to the local repo's `.git/hooks` directory.
15+
16+
## Versions
17+
18+
Increment the version number following semantic versioning[^1] in the `VERSION` file.
19+
20+
[^1]: semantic versioning guidelines https://semver.org/
21+
22+
## Changelog
23+
24+
Keep the changelog up to date with all notable changes in `CHANGELOG.md`[^2].
25+
26+
[^2]: changelog guidelines: https://keepachangelog.com/en/1.1.0/
27+
28+
## VS code extensions
29+
30+
If you use VS code, installing [nf-core extension pack](https://marketplace.visualstudio.com/items?itemName=nf-core.nf-core-extensionpack) is recommended.

.github/ISSUE_TEMPLATE/bug_report.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Bug report
2+
description: Report something that is broken or incorrect
3+
labels: bug
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Before you post this issue, please check the documentation:
9+
10+
- [pipeline documentation: troubleshooting](https://ccbr.github.io/LOGAN/user-guide/troubleshooting/)
11+
12+
- type: textarea
13+
id: description
14+
attributes:
15+
label: Description of the bug
16+
description: A clear and concise description of what the bug is.
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
id: command_used
22+
attributes:
23+
label: Command used and terminal output
24+
description: Steps to reproduce the behaviour. Please paste the command you used to launch the pipeline and the output from your terminal.
25+
render: console
26+
placeholder: |
27+
$ nextflow run ...
28+
29+
Some output where something broke
30+
31+
- type: textarea
32+
id: files
33+
attributes:
34+
label: Relevant files
35+
description: |
36+
Please drag and drop any relevant files here. Create a `.zip` archive if the extension is not allowed.
37+
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.
38+
If the bug is related to a GUI, add screenshots to help explain your problem.
39+
40+
- type: textarea
41+
id: system
42+
attributes:
43+
label: System information
44+
description: |
45+
* Nextflow version _(eg. 21.10.3)_
46+
* Hardware _(eg. HPC, Desktop)_
47+
* Executor _(eg. slurm, local, awsbatch)_
48+
* Container engine: _(e.g. Docker, Singularity)_
49+
* OS _(eg. Ubuntu Linux, macOS)_
50+
* Version of CCBR/TOOL_NAME _(eg. 1.0, 1.8.2)_

.github/ISSUE_TEMPLATE/config.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
contact_links:
2+
- name: Discussions
3+
url: https://github.com/CCBR/LOGAN/discussions
4+
about: Please ask and answer questions here.
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Feature request
2+
description: Suggest an idea for the pipeline
3+
labels: enhancement
4+
body:
5+
- type: textarea
6+
id: description
7+
attributes:
8+
label: Description of feature
9+
description: Please describe your suggestion for a new feature. It might help to describe a problem or use case, plus any alternatives that you have considered.
10+
validations:
11+
required: true

.github/PULL_REQUEST_TEMPLATE.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Changes
2+
3+
<!--
4+
Provide a summary of what is included in this Pull Request (PR).
5+
-->
6+
7+
## Issues
8+
9+
<!--
10+
Reference any issues related to this PR.
11+
If this PR fixes any issues, [use a keyword](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword)
12+
when referring to the issue.
13+
-->
14+
15+
<!--
16+
**Reviewers**: Use the @ feature to mention anyone responsible for reviewing/completing this request.
17+
-->
18+
19+
## PR Checklist
20+
21+
(~Strikethrough~ any points that are not applicable.)
22+
23+
- [ ] This comment contains a description of changes with justifications, with any relevant issues linked.
24+
- ~[ ] Write unit tests for any new features, bug fixes, or other code changes.~ _testing framework not yet implemented_
25+
- [ ] Update docs if there are any API changes.
26+
- [ ] If a new nextflow process is implemented, define the process `container` and `stub`.
27+
- [ ] Update `CHANGELOG.md` with a short description of any user-facing changes and reference the PR number. Guidelines: https://keepachangelog.com/en/1.1.0/

.github/workflows/build.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
pull_request:
9+
branches:
10+
- main
11+
- develop
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
python-version: ["3.9"]
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
cache: "pip"
27+
- name: Install nextflow
28+
uses: nf-core/setup-nextflow@v1
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip setuptools
32+
pip install .[dev,test]
33+
python -c 'from logan.src.util import chmod_bins_exec; chmod_bins_exec()'
34+
- name: Test stub run
35+
run: |
36+
mkdir tmp && cd tmp
37+
which logan
38+
logan init
39+
logan run -profile ci_stub,docker -stub

.github/workflows/docs.yaml

-30
This file was deleted.

.github/workflows/docs.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: mkdocs_build
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "docs/**"
9+
10+
env:
11+
actor: "41898282+github-actions[bot]"
12+
13+
jobs:
14+
deploy:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: actions/setup-python@v2
19+
with:
20+
python-version: 3.9
21+
- name: git config
22+
run: |
23+
git config --local user.email "${actor}@users.noreply.github.com"
24+
git config --local user.name "$actor"
25+
- run: pip install --upgrade pip
26+
- run: pip install -r docs/requirements.txt
27+
- run: mkdocs gh-deploy --force

.github/workflows/projects.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Add issues/PRs to user projects
2+
3+
on:
4+
issues:
5+
types:
6+
- assigned
7+
pull_request:
8+
types:
9+
- assigned
10+
11+
jobs:
12+
add-to-project:
13+
uses: CCBR/.github/.github/workflows/[email protected]
14+
secrets: inherit

.gitignore

+54
Original file line numberDiff line numberDiff line change
@@ -1 +1,55 @@
11
docs/user-guide/site/
2+
3+
# Compiled class file
4+
*.class
5+
6+
# Log file
7+
*.log
8+
9+
# BlueJ files
10+
*.ctxt
11+
12+
# Mobile Tools for Java (J2ME)
13+
.mtj.tmp/
14+
15+
# Package Files #
16+
*.jar
17+
*.war
18+
*.nar
19+
*.ear
20+
*.zip
21+
*.tar.gz
22+
*.rar
23+
24+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
25+
hs_err_pid*
26+
replay_pid*
27+
28+
# nextflow
29+
.nextflow*
30+
/work*/
31+
/data/
32+
/results/
33+
/output/
34+
/params.yaml
35+
36+
# python packaging
37+
*.pyc
38+
*.egg-info
39+
/build
40+
41+
# macOS
42+
.DS_Store
43+
44+
# code editors
45+
.vscode/
46+
*.code-workspace
47+
48+
# user-specific dev files
49+
*KLS*
50+
*.Rproj
51+
.Rproj.user
52+
.Rhistory
53+
54+
/submit_slurm.sh
55+
/tmp/

.pre-commit-config.yaml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
default_install_hook_types: [pre-commit, commit-msg]
2+
default_stages: [pre-commit]
3+
exclude: |
4+
(?x)(
5+
^assets/|
6+
^docs/.*.html
7+
)
8+
repos:
9+
- repo: https://github.com/pre-commit/pre-commit-hooks
10+
rev: v1.2.3
11+
hooks:
12+
- id: check-added-large-files
13+
- id: end-of-file-fixer
14+
- id: trailing-whitespace
15+
# spell check
16+
- repo: https://github.com/codespell-project/codespell
17+
rev: v2.2.4
18+
hooks:
19+
- id: codespell
20+
# https://github.com/codespell-project/codespell/issues/1498
21+
# Python formatting
22+
- repo: https://github.com/psf/black
23+
rev: 23.7.0
24+
hooks:
25+
- id: black
26+
# R formatting
27+
- repo: https://github.com/lorenzwalthert/precommit
28+
rev: v0.1.2
29+
hooks:
30+
- id: style-files
31+
# general linting
32+
- repo: https://github.com/pre-commit/mirrors-prettier
33+
rev: v2.7.1
34+
hooks:
35+
- id: prettier
36+
# enforce commit format
37+
- repo: https://github.com/compilerla/conventional-pre-commit
38+
rev: v2.3.0
39+
hooks:
40+
- id: conventional-pre-commit
41+
stages: [commit-msg]
42+
args: []
43+
- repo: https://github.com/citation-file-format/cffconvert
44+
rev: 054bda51dbe278b3e86f27c890e3f3ac877d616c
45+
hooks:
46+
- id: validate-cff

.prettierignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# gitignore
2+
.nextflow*
3+
work/
4+
data/
5+
results/
6+
.DS_Store
7+
*.code-workspace
8+
assets/*.html

.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
overrides:
2+
- files: "*.md"
3+
options:
4+
tabWidth: 2

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# LOGAN development version
2+
3+
- Python-based CLI

CITATION.cff

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
cff-version: 1.2.0
2+
message: "Please cite LOGAN as below." # TODO set up Zenodo to archive your tool and assign a DOI. Or if TOOL_NAME gets published in a journal, include the citation here.
3+
authors: # TODO: author names should match those in pyproject.toml
4+
- family-names: Nousome
5+
given-names: Darryl
6+
- family-names: Sovacool
7+
given-names: Kelly
8+
orcid: https://orcid.org/0000-0003-3283-829X
9+
- family-names: Koparde
10+
given-names: Vishal
11+
orcid: https://orcid.org/0000-0001-8978-8495
12+
title: "LOGAN: whoLe genOme-sequencinG Analysis pipeliNe" # TODO: citation title should match pyproject.toml
13+
url: https://ccbr.github.io/LOGAN/
14+
repository-code: https://github.com/CCBR/LOGAN
15+
license: MIT

VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.1.0-dev

assets/slurm_header_biowulf.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
#SBATCH --cpus-per-task=1
3+
#SBATCH --mem=1g
4+
#SBATCH --time=1-00:00:00
5+
#SBATCH --parsable
6+
#SBATCH -J "LOGAN"
7+
#SBATCH --mail-type=BEGIN,END,FAIL
8+
#SBATCH --output "log/slurm_%j.log"
9+
#SBATCH --output "log/slurm_%j.log"
10+
11+
module load ccbrpipeliner
12+
module load nextflow
13+
NXF_SINGULARITY_CACHEDIR=/data/CCBR_Pipeliner/SIFS

0 commit comments

Comments
 (0)