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

Merging Feat/selection #23

Merged
merged 40 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
85b3e2d
Updated project infra, see changelog
GallVp Mar 19, 2024
8d9ee7a
Updated modules and subworkflows
GallVp Mar 20, 2024
0cea739
Now tracking liftoff from nf-core/modules
GallVp Mar 20, 2024
f1384ab
Added before
GallVp Mar 21, 2024
7ab82cb
Lightweight stub test and removed file.simpleName bug
GallVp Mar 21, 2024
458dedf
Now using 1 round for augustus training for test data
GallVp Mar 24, 2024
5dd99c6
Now braker can be skipped by providing braker files
GallVp Mar 25, 2024
4f6feae
Added gffcompare to merge liftoff annotations
GallVp Mar 25, 2024
fb15149
Renamed samplesheet param to fastq
GallVp Mar 25, 2024
9765060
Now using assemblysheet for inputs
GallVp Mar 26, 2024
12a66ea
Now using nf-validation to validate fastqsheet provided by params.fastq
GallVp Mar 27, 2024
df008f4
Moved manifest.config and reporting_defaults.config content to nextfl…
GallVp Mar 27, 2024
92b3d2f
Now using a txt file for params.external_protein_fastas
GallVp Mar 27, 2024
8ffcc32
Now using nf-validation for params.liftoff_annotations
GallVp Mar 27, 2024
f028dcd
Now using nf-validation for all the parameters
GallVp Mar 28, 2024
e931725
Added MERGE_ANNOTATIONS sub-workflow
GallVp Apr 2, 2024
40f5cc5
Now merging with agat/spmergeannotations
GallVp Apr 2, 2024
47bb3ed
Added GFF_EGGNOGMAPPER sub-workflow
GallVp Apr 9, 2024
662c4b1
Now using TSEBRA to purge models which do not have full intron suppor…
GallVp Apr 12, 2024
22e609c
Updated modules and subworkflows
GallVp Apr 12, 2024
f2d333c
Updated eggnogmapper
GallVp Apr 12, 2024
3acaaac
Patched eggnogmapper and gffread
GallVp Apr 12, 2024
9915ee8
Added params eggnogmapper_evalue and eggnogmapper_pident
GallVp Apr 12, 2024
0e5a43d
Added PURGE_NOHIT_BRAKER_MODELS sub-workflow
GallVp Apr 17, 2024
f133453
Removed liftoff models with valid_ORF=False
GallVp Apr 18, 2024
999236d
Now merging BRAKER and liftoff models before running eggnogmapper
GallVp Apr 18, 2024
70898ca
Added GFF_MERGE_CLEANUP sub-workflow
GallVp Apr 18, 2024
8fc0958
Now using description field to store notes and textual annotations in…
GallVp Apr 22, 2024
57138fd
Added GFF_STORE sub workflow
GallVp Apr 23, 2024
fe6578f
Now using local tests/stub files for GitHub CI
GallVp Apr 24, 2024
cc6f391
Updated flowchart
GallVp Apr 24, 2024
92e7aff
Updated flowchart
GallVp Apr 24, 2024
b553453
Updated flowchart
GallVp Apr 24, 2024
20e6874
Updated flowchart
GallVp Apr 24, 2024
3b04340
Updated README
GallVp Apr 28, 2024
bffdb63
Now removing iso-forms left by TSEBRA using AGAT_SPFILTERFEATUREFROMK…
GallVp Apr 28, 2024
099b76d
Added pyproject.toml
GallVp Apr 28, 2024
7e338d6
Version bumped to 0.3.0
GallVp Apr 29, 2024
53088d7
Updated PFR params
GallVp Apr 29, 2024
d11f831
Now using PFAMs from eggnog if description is '-'
GallVp Apr 30, 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
60 changes: 57 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,62 @@ trim_trailing_whitespace = true
indent_size = 4
indent_style = space

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

[*.nf.test]
insert_final_newline = false
# These files are edited and tested upstream in nf-core/modules
[/modules/nf-core/**]
charset = unset
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
indent_size = unset

# These files are edited and tested upstream in pfr/modules
[/modules/pfr/**]
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset

[/subworkflows/pfr/**]
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset

[/assets/email*]
indent_size = unset

# ignore Readme
[README.md]
indent_style = unset

# ignore python
[*.{py}]
indent_style = unset

# ignore perl
[*.{pl,pm}]
indent_size = unset

# ignore drawio
[*.drawio]
indent_size = unset

# ignore LICENSE
[LICENSE]
indent_size = unset
54 changes: 15 additions & 39 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,22 @@ concurrency:
cancel-in-progress: true

jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: "20"

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

- name: Run Prettier --check
run: prettier --check .

editorconfig:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
node-version: "20"
python-version: 3.11
cache: "pip"

- name: Install editorconfig-checker
run: npm install -g editorconfig-checker
- name: Install pre-commit
run: pip install pre-commit

- name: Run ECLint check
run: editorconfig-checker -exclude README.md $(git ls-files | grep -v test | grep -v LICENSE)
- name: Run pre-commit
run: pre-commit run --all-files

stub-test:
runs-on: ubuntu-latest
Expand All @@ -54,31 +39,22 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/checkout@v4
with:
repository: PlantandFoodResearch/pangene-test
ssh-key: ${{ secrets.PANGENE_TEST_DEPLOY_KEY }}
path: pangene-test

- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
- name: Setup Nextflow
- name: Install Nextflow
uses: nf-core/setup-nextflow@v1
with:
version: "23.04.4"

- name: Run stub-test
run: |
nextflow \
nextflow run \
main.nf \
-profile local,docker \
-resume \
-stub \
-params-file conf/test_params.json
-params-file tests/stub/params.json

confirm-pass:
runs-on: ubuntu-latest
needs: [prettier, editorconfig, stub-test]
needs: [pre-commit, stub-test]
if: always()
steps:
- name: All tests ok
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ __pycache__
*.stdout
*.stderr

.literature
pangene-test/
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,18 @@ repos:
rev: "v3.1.0"
hooks:
- id: prettier
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: "2.7.3"
hooks:
- id: editorconfig-checker
alias: ec
- repo: local
hooks:
- id: version_checks
name: Version checks
language: system
entry: >
./version_check.sh
always_run: true
fail_fast: true
pass_filenames: false
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ __pycache__
*.stdout
*.stderr

.literature
pangene-test/
63 changes: 63 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# PlantandFoodResearch/pangene: Changelog

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).

## 0.3.0 - [30-April-2024]

### `Added`

1. Added changelog and semantic versioning
2. Changed license to MIT
3. Updated `.editorconfig`
4. Moved .literature to test/ branch
5. Renamed `pangene_local` to `local_pangene`
6. Renamed `pangene_pfr` to `pfr_pangene`
7. Added versioning checking
8. Updated github workflow to use pre-commit instead of prettier and editorconfig check
9. Added central singularity cache dir for pfr config
10. Added `SORTMERNA_INDEX` before `SORTMERNA`
11. Fixed sample contamination bug introduced by `file.simpleName`
12. Now using empty files for stub testing in CI
13. Now BRAKER can be skipped by including BRAKER outputs from previous runs in the `target_assemblies` param
14. Added `gffcompare` to merge liftoff annotations
15. Renamed `samplesheet` param to `fastq`
16. Now using assemblysheet in combination with nf-validation for assembly input
17. Added nextflow_schema.json
18. Now using nf-validation to validate fastqsheet provided by params.fastq
19. Moved `manifest.config` and `reporting_defaults.config` content to `nextflow.config`
20. Now using a txt file for `params.external_protein_fastas`
21. Now using nf-validation for `params.liftoff_annotations`
22. Now using nf-validation for all the parameters
23. Added `PURGE_BREAKER_MODELS` sub-workflow
24. Added `GFF_EGGNOGMAPPER` sub-workflow
25. Now using a custom version of `GFFREAD` which supports `meta` and `fasta`
26. Now using TSEBRA to purge models which do not have full intron support from BRAKER hints
27. Added params `eggnogmapper_evalue` and `eggnogmapper_pident`
28. Added `PURGE_NOHIT_BRAKER_MODELS` sub-workflow
29. Now merging BRAKER and liftoff models before running eggnogmapper
30. Added `GFF_MERGE_CLEANUP` sub-workflow
31. Now using `description` field to store notes and textual annotations in the gff files
32. Now using `mRNA` in place of `transcript` in gff files
33. Now `eggnogmapper_purge_nohits` is set to `false` by default
34. Added `GFF_STORE` sub workflow
35. `external_protein_fastas` and `eggnogmapper_db_dir` are not mandatory parameters
36. Added contributors
37. Add a document for the pipeline parameters
38. Updated `pfr_pangene` and `pfr/profile.config`
39. Now using local tests/stub files for GitHub CI
40. Now removing iso-forms left by TSEBRA using `AGAT_SPFILTERFEATUREFROMKILLLIST`
41. Added `pyproject.toml`
42. Now using PFAMs from eggnog if description is '-'

### `Fixed`

1. Removed liftoff models with `valid_ORF=False`
2. Updated license text to include 'Copyright (c) 2024 The New Zealand Institute for Plant and Food Research Limited'

### `Dependencies`

1. NextFlow!>=23.04.4
2. nf-validation=1.1.3

### `Deprecated`
Loading
Loading