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

Nfcore and structuring modules for collaboration #157

Merged
merged 251 commits into from
Sep 28, 2021
Merged
Show file tree
Hide file tree
Changes from 241 commits
Commits
Show all changes
251 commits
Select commit Hold shift + click to select a range
5800488
:art: Add informational Autometa header to main nextflow script
chasemc Apr 19, 2021
c7ffaef
:art: Move and add comment about include statement
chasemc Apr 19, 2021
f076907
:art: change `params.interim` to `params.interim_dir`
chasemc Apr 19, 2021
1d41cd6
:art: change `params.processed` to `params.outdir`
chasemc Apr 19, 2021
b1d9625
:art: change `params.metagenome` to `params.input_fna`
chasemc Apr 19, 2021
82a295d
:art: Add help function. WIP, will need to be updated.
chasemc Apr 20, 2021
6907bfb
:art: Update documentation and function names in validation
chasemc Apr 20, 2021
602e49d
:art: Modify interim directory value meaning
chasemc Apr 20, 2021
b7e3da6
:art: WIP: organizing configs and help
chasemc Apr 20, 2021
968f76b
:art: Minimize Nextflow file presence in top git directory
chasemc Apr 20, 2021
3cad58b
Add nf-core boilerplate files and functions
chasemc Apr 21, 2021
0137389
Add nf-core boilerplate files and functions
chasemc Apr 21, 2021
a94ebe5
Merge remote-tracking branch 'KwanLab/format-like-nfcore' into format…
chasemc Apr 21, 2021
da781b6
:green_apple: Create ignore file for nf-core linter
chasemc Apr 21, 2021
6e24b8d
:green_apple: replaced autometa.nf with main.nf
chasemc Apr 21, 2021
819fae5
:green_apple: :art: Change `input_fna` to `input`
chasemc Apr 21, 2021
810554e
:green_apple: Add schema validation back to linting
chasemc Apr 21, 2021
4053b85
:green_apple: Add nf-core `schema.json`
chasemc Apr 21, 2021
17d059e
WIP- nextflow configuration
chasemc Apr 21, 2021
ec4c675
:green_apple: move def check_max() from base to hardware config
chasemc Apr 23, 2021
249ac60
:green_apple: Add config profile options
chasemc Apr 23, 2021
1e34af6
:green_apple: remove nf-core generated autometa logo
chasemc Apr 23, 2021
e517607
:green_apple: Update docker repo path
chasemc Apr 23, 2021
39aa764
:green_apple: :bug: Fix version check
chasemc Apr 23, 2021
7b34a10
:green_apple: Update nextflow schema
chasemc Apr 23, 2021
04bfd57
:green_apple: create nf-core output docuementation process
chasemc Apr 23, 2021
27a5e60
:green_apple: :art: Format comment block
chasemc Apr 23, 2021
85e0070
:green_apple: Add nf-core parameter validator to main.nf
chasemc Apr 23, 2021
83a83b3
:green_apple: nf-core templating
chasemc Apr 23, 2021
dbb594e
:green_apple: :art: Streamline required config
chasemc Apr 26, 2021
232b815
:green_apple: Add missing Autometa arguments to config
chasemc Apr 26, 2021
11bc822
:green_apple: separate environment and executor configs
chasemc Apr 26, 2021
62a5f9f
:green_apple: separate environment and executor configs
chasemc Apr 26, 2021
edb6280
:green_apple: remove old config
chasemc Apr 26, 2021
2b02ed3
:green_apple: remove redundant process configs
chasemc Apr 26, 2021
2ac86f6
:green_apple: remove 'container' option from individual processes
chasemc Apr 26, 2021
6faceec
:green_apple: Add module for downloading databases
chasemc Apr 26, 2021
b0196be
:green_apple: Add comment
chasemc Apr 26, 2021
bc8fff1
:green_apple: Edit module for downloading databases
chasemc Apr 26, 2021
2b8738e
:green_apple: separate environment and executor configs
chasemc Apr 26, 2021
3a58ae0
:bug: rsync fails without this
chasemc Apr 26, 2021
0f6986a
:bug: rsync fails without this
chasemc Apr 26, 2021
04b6316
Merge remote-tracking branch 'KwanLab/nfcore' into nfcore
chasemc Apr 26, 2021
1e1e197
:green_apple: :art: Update db param
chasemc Apr 26, 2021
27fa1b2
:green_apple: Update config with new sub-config filenames
chasemc Apr 26, 2021
ed814a1
:green_apple: :bug: Remove old glob pattern
chasemc Apr 26, 2021
db73161
:green_apple: Change channel names to reflect they're files not dirs
chasemc Apr 26, 2021
68dc2ca
Temporary Revert commit once 'jasonkwan/autometa' docker is updated
chasemc Apr 27, 2021
6ae6726
:green_apple: Add download module to main.nf
chasemc Apr 27, 2021
ae27c71
:green_apple: Add nextflow/nf-core conda environtment.yml
chasemc Apr 28, 2021
c570ad9
:green_apple: add `nf-params.json` to `.gitignore`
chasemc Apr 28, 2021
05a69c0
:green_apple: Update nf-core schema
chasemc Apr 28, 2021
2d96a71
:green_apple: Update documentation/doc-functions
chasemc Apr 28, 2021
c25e12e
:green_apple: change "params.ncbi_database" to "params.single_db_dir"
chasemc Apr 28, 2021
d19ef77
:green_apple: Change nr.gz download from rsync to aspera
chasemc Apr 28, 2021
89ee3d6
:green_apple: remove nf-core template /nextflow/CHANGELOG.md
chasemc Apr 28, 2021
d106a76
:green_apple: Change tracedir behavior
chasemc Apr 28, 2021
7a5726c
:green_apple: comment out database download
chasemc Apr 28, 2021
a5f1c6e
:green_apple: Remove template documentation
chasemc Apr 28, 2021
6a0786e
modify .gitignore to only ignore lib dir at top directory
chasemc Apr 28, 2021
a1f4ab1
:green_apple: Add nf-core /lib template files
chasemc Apr 28, 2021
61dfea3
:green_apple: Reorganize module directories
chasemc Apr 28, 2021
ddbb656
:green_apple: : :memo: Add short description of directory structure
chasemc Apr 28, 2021
61eaddd
Revert docker image back to jason-c-kwan/autometa:dev
chasemc Apr 29, 2021
ba71af6
:green_apple: move dependency install from /nextflow to top dir
chasemc May 5, 2021
af7850b
:green_apple: fix params
chasemc May 5, 2021
121e2f2
change to correct docker container
chasemc May 5, 2021
188791a
docker image set once in process
chasemc May 5, 2021
cccfeba
:green_apple: add help/launch documentation
chasemc May 5, 2021
49497ad
:green_apple: update help/launch documentation
chasemc May 5, 2021
ff46222
:green_apple: :art: Add code comments
chasemc May 6, 2021
eb2ab31
:green_apple: Add missing cpu/mem/time params
chasemc May 6, 2021
8a43554
:green_apple: Add process requirements WIP
chasemc May 6, 2021
05fec48
:green_apple: :racehorse: Parallel ORF calling
chasemc May 6, 2021
0fda098
:green_apple: Add missing param
chasemc May 6, 2021
74f0cc9
:green_apple: Add default interim
chasemc May 6, 2021
53370ff
:green_apple: WIP-moving optional workflows out of "core"
chasemc May 10, 2021
c381528
:green_apple: separate diamond out of taxonomy workflow
chasemc May 10, 2021
5a596a1
:green_apple: Remove common_autometa_tasks
chasemc May 10, 2021
89fe7c4
:green_apple: Moved "gene_coverage" process/workflow out of "common"
chasemc May 10, 2021
4381022
:green_apple: reorganize directory
chasemc May 10, 2021
f9e1239
:green_apple: Add new parameter "taxonomy_aware"
chasemc May 10, 2021
e7a6833
:green_apple: replace "cpus" with nf-core "process-high-low etc"
chasemc May 10, 2021
51f13f9
:green_apple: Moving files and updating names
chasemc May 10, 2021
2ae59db
:green_apple: change 'assembly' to 'metagenome' to be consistent
chasemc May 10, 2021
311dcaa
:green_apple: Update relative paths in main config
chasemc May 10, 2021
afe84a3
:green_apple: Fix relative paths in main script
chasemc May 10, 2021
ceb730d
:green_apple: Create "params.parallel_high_disk"
chasemc May 10, 2021
389e2f8
:green_apple: Update config/params
chasemc May 11, 2021
3a7944d
:green_apple: Add if/else for taxonomy-based partitioning
chasemc May 11, 2021
e1abea1
:green_apple: Remove params in workflow files
chasemc May 11, 2021
2636602
:green_apple: Fix main script with updated params
chasemc May 11, 2021
a6d139f
:green_apple: Add new default nextflow out dirs to gitignore
chasemc May 11, 2021
57eadce
:green_apple: Cleanup and documentation
chasemc May 11, 2021
1d1443b
:green_apple: Fix config
chasemc May 11, 2021
7e6e637
:green_apple: Switch order of parallelization params
chasemc May 11, 2021
4800998
:green_apple: :bug: Fixes java error when parallel during tests onserver
chasemc May 11, 2021
8cdd036
:green_apple: Reuse split for parallel
chasemc May 12, 2021
6b9c86d
:green_apple: :bug: Allow input to be named '~.filtered.fna'
chasemc May 12, 2021
a910465
:green_apple: Remove typo
chasemc May 20, 2021
6d59c83
:green_apple: Move nextflow_schema.json to top directory
chasemc May 20, 2021
41a0891
:green_apple: Fix main.nf pointing to old schema location
chasemc May 20, 2021
9691e69
:art: Add nf-core licenses
chasemc May 20, 2021
a66ccc9
:green_apple: Change input help text
chasemc May 21, 2021
6abc0b4
More specific gitignore rule for nextflow/lib
chasemc May 21, 2021
e970e11
Add trailing newline
chasemc May 21, 2021
3ead459
Direct to readthedocs
chasemc May 21, 2021
9ff9094
Point documantion to readthedocs not main repo
chasemc May 21, 2021
fa9ed2d
Fix typo
chasemc May 21, 2021
343d093
Add newline
chasemc May 21, 2021
7e24694
Fix typo
chasemc May 21, 2021
7464010
Update comment
chasemc May 21, 2021
e3d3fc2
Update test.config
chasemc May 21, 2021
354ac55
Update 03_environment_profiles.config
chasemc May 21, 2021
095d38c
Update example command in help
chasemc May 21, 2021
ac66345
Update equality logic
chasemc May 21, 2021
d9247f0
Update nextflow/.nf-core-lint.yml
chasemc May 21, 2021
08732df
add newline
chasemc May 21, 2021
57a448e
Update comment
chasemc May 21, 2021
8fa038a
Clarify comment
chasemc May 21, 2021
9dc0f7b
Fix indentation
chasemc May 21, 2021
d2c0535
add newline
chasemc May 24, 2021
84e2d4a
Add newline
chasemc May 24, 2021
604b49e
:green_apple: Clarify diamond workflow
chasemc May 24, 2021
4c1e47f
Remove not-yet-finished download.nf
chasemc May 24, 2021
075c7d6
add newline
chasemc May 24, 2021
797e2ed
Update nextflow/nextflow.config
chasemc May 24, 2021
9b83a05
Update nextflow_schema.json
chasemc May 24, 2021
7fc25a6
Apply suggestions from code review
chasemc May 24, 2021
ba12f87
:green_apple: add link to "writing an institutional profile"
chasemc May 24, 2021
97a19ee
fix typos
chasemc May 24, 2021
8d30132
:green_apple: :memo: Update documentation text
chasemc May 24, 2021
310887a
Merge remote-tracking branch 'origin/nfcore' into nfcore
chasemc May 24, 2021
23e73e5
add trailing newline
chasemc May 24, 2021
dfd4e46
:green_apple: change 'gene_coverage' to 'contig_coverage'
chasemc May 24, 2021
9b8f00e
:green_apple: :memo: Add documentation to basic profiles
chasemc May 24, 2021
64f4a22
WIP
chasemc Jun 2, 2021
2e14dcc
:bug: :snake: Fixes #168
chasemc Jun 2, 2021
dac9c16
:green_apple: Add isolate-genome test data creator
chasemc Jun 2, 2021
9691e28
:green_apple: remove multiqc html until multiqc is added
chasemc Jun 3, 2021
889d67c
:green_apple: update variable names
chasemc Jun 3, 2021
ad88deb
:bug: fixes #149
chasemc Jun 3, 2021
4152096
Update nextflow/modules/autometa_core/utilities/process/kmer_coverage.nf
chasemc Jun 3, 2021
cfa5670
:green_apple: change kmer_coverage name to spades_kmer_coverage
chasemc Jun 3, 2021
80b4d84
:green_apple: Update variable name to SPADES_KMER_COVERAGE
chasemc Jun 3, 2021
cb21f0e
:green_apple: Make archaea emit optional
chasemc Jun 3, 2021
5d4b1a1
:green_apple: add explicit default for 'taxonomy aware'
chasemc Jun 3, 2021
f6b0905
:green_apple: change profile 'basic_slurm' to 'slurm'
chasemc Jun 7, 2021
378789f
:green_apple: Switch directory and code structure
chasemc Jun 18, 2021
9917479
:green_apple: Update modules.conf and add help
chasemc Jun 18, 2021
d9ece4e
:green_apple: Update module publishdirs
chasemc Jun 18, 2021
21f0148
:art: :green_apple: Add nextflow version badge to README
chasemc Jun 18, 2021
2f3b173
:green_apple: conform to nf-core linter
chasemc Jun 18, 2021
ec97f1a
add 'defaults' conda channel
chasemc Jun 18, 2021
3a5c50f
:green_apple: Update diamond to nf-core like module
chasemc Jun 21, 2021
0025877
:green_apple: WIP update coverage to nf-core style modules
chasemc Jun 21, 2021
613a099
:green_apple: continuing to move to current nfcore dsl2 standard
chasemc Jun 25, 2021
0350def
:snake: faster binning/cluster evaluation
chasemc Jun 25, 2021
4eacfe8
Initial template commit
chasemc Jun 25, 2021
a352533
:green_apple: merge nf-core tmeplate
chasemc Jun 25, 2021
8eccb43
update semver
chasemc Jun 25, 2021
a107fef
remove nf-core github actions
chasemc Jun 25, 2021
f5e10a6
:green_apple: Multiple changes towards nf-core structure
chasemc Jun 29, 2021
957889d
:snake: Add hmmsearch domtblout file parser
chasemc Jun 29, 2021
23e7caa
:snake: remove old, unused 'metrics' list
chasemc Jun 29, 2021
f61d8ca
:snake: add hmmsearch parser entrypoint
chasemc Jun 29, 2021
ad55ec1
:snake: Constrain binning decimal places
chasemc Jun 29, 2021
d6a84cb
:green_apple: Change binning proccess to medium resources
chasemc Jun 29, 2021
a35cad9
:green_apple: Change merge process outputs to meta.id.extension
chasemc Jun 29, 2021
b591c39
:green_apple: Length cutoff default =3000
chasemc Jun 29, 2021
1b335d4
:green_apple: Add extensions to intermediate, merged files
chasemc Jun 29, 2021
d9df3e6
Delete extra space
chasemc Jun 30, 2021
7846e72
delete extra space
chasemc Jun 30, 2021
dce93d5
Template update for nf-core/tools version 2.0.1
chasemc Jul 13, 2021
c8e8bbb
:green_apple: Increase default RAM
chasemc Jul 13, 2021
8212962
Merge branch 'TEMPLATE' into nfcore
chasemc Jul 13, 2021
3b7d5ee
:green_apple: Update to to nf-core 2.0 format
chasemc Jul 20, 2021
c26a59c
:green_apple: :snake: Add modularity for marker database inputs
chasemc Jul 20, 2021
d7676af
:green_apple: Update test conf
chasemc Jul 20, 2021
eee27df
:green_apple: Update test conf
chasemc Jul 20, 2021
e96b42a
:green_apple: Update test conf
chasemc Jul 20, 2021
9eb10ad
:green_apple: Fix nextflow CI
chasemc Jul 20, 2021
40fdb52
:green_apple: Update Autometa docker image tag handling
chasemc Jul 20, 2021
d5774bc
:green_apple: remove CI run
chasemc Jul 20, 2021
5231ce8
:green_apple: Fix formatting
chasemc Jul 20, 2021
3101d11
Fix TODOs
chasemc Jul 21, 2021
2f16e67
WIP
chasemc Jul 22, 2021
3b7c6fb
:green_apple: FIx binning summary
chasemc Jul 22, 2021
322d3db
wip-transfer
chasemc Jul 25, 2021
644c9fa
environment as autometa-nf install
chasemc Jul 29, 2021
44b86b5
update requirements
chasemc Jul 29, 2021
7008dbc
:green_apple: Fix whitespace, continue moving to nf-core 2.0
chasemc Jul 29, 2021
9e22970
Explicit python3 calls in makefile
chasemc Jul 29, 2021
8dd3b55
:green_apple: fix lint and remove unused params
chasemc Jul 29, 2021
4959e7b
:green_apple: nf-core lint fix
chasemc Jul 29, 2021
a5b21e4
Add citations
chasemc Jul 30, 2021
77691eb
:green_apple: remove unused nf-core module
chasemc Jul 30, 2021
d47de98
:green_apple: Simplify parallelization args
chasemc Jul 30, 2021
eeb9eca
:green_apple: update database path logic
chasemc Jul 30, 2021
a18eac5
Update environment.yml
chasemc Jul 30, 2021
b0eb531
WIP
chasemc Aug 3, 2021
9eb96b6
wip
chasemc Aug 4, 2021
7524922
remove empty module
chasemc Aug 4, 2021
ca5c193
:green_apple: Account for gz or not gz input
chasemc Aug 4, 2021
be3d111
:green_apple: Fix db path variables/params
chasemc Aug 4, 2021
966727a
:green_apple: Set smaller default cpu/mem
chasemc Aug 4, 2021
8d66540
:green_apple: Update param documentation
chasemc Aug 4, 2021
915473b
:memo:
chasemc Aug 4, 2021
726934a
:green_apple: Make docker standard
chasemc Aug 12, 2021
03beae9
:green_apple: Update params
chasemc Aug 12, 2021
f22cb67
:green_apple: Change and document to "autometa_image_tag"
chasemc Aug 12, 2021
0e46c7a
Change dumb temp filename
chasemc Aug 12, 2021
9ededa9
:arrow_up: Add seqkit to requirements.txt
evanroyrees Aug 12, 2021
f893314
:fire: Remove seqkit from requirements.txt
evanroyrees Aug 12, 2021
e1cc0b4
:bug::whale::green_apple: Add slurm to profiles enabling docker in ne…
evanroyrees Aug 12, 2021
d7c9f4a
Remove newline
chasemc Aug 12, 2021
d592797
:art: align commas
chasemc Aug 12, 2021
109cb8a
:art::snake::fire: Rename hmmer.py to hmmscan.py
evanroyrees Aug 26, 2021
d6ef02c
:art: Apply black formatting
evanroyrees Aug 26, 2021
2eb897d
:green_apple: :art: Change analyze_kmers to analyze_kmers_options
chasemc Sep 1, 2021
573ddfa
:green_apple: FIx coverage output directory
chasemc Sep 1, 2021
f5a1024
:green_apple: :art: Add comment with reason file exists
chasemc Sep 1, 2021
32c5168
:green_apple: Fix lint errors for nonstandard nf-core structure
chasemc Sep 1, 2021
27f2287
:green_apple: remove .version.txt
chasemc Sep 1, 2021
dcd516c
Bump from v2.0.0-alpha.0 to 2.0
chasemc Sep 1, 2021
4e44856
Update CITATIONS.md
chasemc Sep 1, 2021
ba98a45
Merge remote-tracking branch 'origin/nfcore' into nfcore
chasemc Sep 1, 2021
43fe4a6
🍏 Fix lint errors for nonstandard nf-core structure
chasemc Sep 1, 2021
a0e86ae
:green_apple: remove irrelevant nf-core template doc images
chasemc Sep 1, 2021
8934bf5
:green_apple: comment that file isn't ready
chasemc Sep 1, 2021
c256d4c
:art: remove extra newlines
chasemc Sep 2, 2021
5bf3022
:green_apple: remove unused output
chasemc Sep 2, 2021
2a815b6
:green_apple: remove mkdir
chasemc Sep 2, 2021
284ca19
:green_apple: comment WIP files
chasemc Sep 2, 2021
7d014f4
:green_apple: Remove unnecessary intermediate fasta
chasemc Sep 2, 2021
455e38e
:green_apple: bump 2.0.0-alpha.0 to 2.0.0 in nf-manifest
chasemc Sep 2, 2021
e1d31b9
Update subworkflows/local/align_reads.nf
chasemc Sep 2, 2021
9b62d3e
:green_apple: :art: Update line continuation within nf script
chasemc Sep 2, 2021
0e8f4fc
Update subworkflows/local/prepare_ncbi_taxinfo.nf
chasemc Sep 2, 2021
3e72080
:green_apple: remove redundant collect
chasemc Sep 2, 2021
59b7308
:green_apple: fix lint
chasemc Sep 2, 2021
d547946
:green_apple: Split Binning/UR subworkflow
chasemc Sep 2, 2021
7de0dbe
Update nextflow_schema.json
evanroyrees Sep 28, 2021
e86a096
Update nextflow_schema.json
evanroyrees Sep 28, 2021
2dfbbb3
Update nextflow_schema.json
evanroyrees Sep 28, 2021
5f0b12d
Update nextflow.config
evanroyrees Sep 28, 2021
a9bbebe
Update modules/local/diamond_blastp.nf
evanroyrees Sep 28, 2021
4044a1f
:art: Restrict diamond blastp process to run only one task at a time
evanroyrees Sep 28, 2021
97cd1cd
:art::apple::arrow_up: resolve merge conflicts with dev
evanroyrees Sep 28, 2021
f50b573
:fire::green_apple: Fix linting by removing invalid benchmarking task…
evanroyrees Sep 28, 2021
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
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ Autometa.egg-info
# Ignore databases
autometa/databases
!autometa/databases/markers
/work
24 changes: 24 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_size = 4
indent_style = space

[*.{yml,yaml}]
indent_size = 2

# 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

[/assets/email*]
indent_size = unset
1 change: 1 addition & 0 deletions .gitattribute
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.config linguist-language=nextflow
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.config linguist-language=nextflow
6 changes: 6 additions & 0 deletions .github/.dockstore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Dockstore config version, not pipeline version
version: 1.2
workflows:
- subclass: nfl
primaryDescriptorPath: /nextflow.config
publish: True
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Join nf-core
url: https://nf-co.re/join
about: Please join the nf-core community here
- name: "Slack #autometa channel"
url: https://nfcore.slack.com/channels/autometa
about: Discussion about the nf-core/autometa pipeline
26 changes: 26 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!--
# nf-core/autometa pull request

Many thanks for contributing to nf-core/autometa!

Please fill in the appropriate checklist below (delete whatever is not relevant).
These are the most common things requested on pull requests (PRs).

Remember that PRs should be made against the dev branch, unless you're preparing a pipeline release.

Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/autometa/tree/master/.github/CONTRIBUTING.md)
-->
<!-- markdownlint-disable ul-indent -->

## PR checklist

- [ ] 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/autometa/tree/master/.github/CONTRIBUTING.md)
- [ ] If necessary, also make a PR on the nf-core/autometa _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`).
- [ ] Usage Documentation in `docs/usage.md` is updated.
- [ ] Output Documentation in `docs/output.md` is updated.
- [ ] `CHANGELOG.md` is updated.
- [ ] `README.md` is updated (including new tool citations and authors/contributors).
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: nf-core CI
# This workflow runs the pipeline with the minimal test dataset to check that it completes without any syntax errors
on:
push:
branches:
- dev
pull_request:
release:
types: [published]

# Uncomment if we need an edge release of Nextflow again
# env: NXF_EDGE: 1

jobs:
test:
name: Run workflow tests
# Only run on push if this is the nf-core dev branch (merged PRs)
if: ${{ github.event_name == 'push_TODO' }}
runs-on: ubuntu-latest
env:
NXF_VER: ${{ matrix.nxf_ver }}
NXF_ANSI_LOG: false
strategy:
matrix:
# Nextflow versions: check pipeline minimum and current latest
nxf_ver: ["21.04.0", ""]
steps:
- name: Check out pipeline code
uses: actions/checkout@v2

- name: Install Nextflow
env:
CAPSULE_LOG: none
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/

- name: Run pipeline with test data
run: |
docker build . -t jason-c-kwan/autometa:test
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --autometa_image_tag 'latest'
52 changes: 52 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: nf-core linting
# This workflow is triggered on pushes and PRs to the repository.
# It runs the `nf-core lint` and markdown lint tests to ensure that the code meets the nf-core guidelines
on:
pull_request:
release:
types: [published]

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

- name: Install Nextflow
env:
CAPSULE_LOG: none
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/

- uses: actions/setup-python@v1
with:
python-version: "3.6"
architecture: "x64"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nf-core

- name: Run nf-core lint
env:
GITHUB_COMMENTS_URL: ${{ github.event.pull_request.comments_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PR_COMMIT: ${{ github.event.pull_request.head.sha }}
run: nf-core -l lint_log.txt lint --dir ${GITHUB_WORKSPACE} --markdown lint_results.md

- name: Save PR number
if: ${{ always() }}
run: echo ${{ github.event.pull_request.number }} > PR_number.txt

- name: Upload linting log file artifact
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: linting-logs
path: |
lint_log.txt
lint_results.md
PR_number.txt
27 changes: 27 additions & 0 deletions .github/workflows/linting_comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: nf-core linting comment
# This workflow is triggered after the linting action is complete
# It posts an automated comment to the PR, even if the PR is coming from a fork

on:
workflow_run:
workflows: ["nf-core linting"]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Download lint results
uses: dawidd6/action-download-artifact@v2
with:
workflow: linting.yml

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

- name: Post PR comment
uses: marocchino/sticky-pull-request-comment@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
number: ${{ steps.pr_number.outputs.pr_number }}
path: linting-logs/lint_results.md
13 changes: 9 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dist/
downloads/
eggs/
.eggs/
lib/
!nextflow/lib/
lib64/
parts/
sdist/
Expand Down Expand Up @@ -156,7 +156,12 @@ tests/data/*
.DS_Store

# nextflow
.nextflow
.nextflow.log*
.nextflow*
pipeline_info
work
work/
large_db/
nf-params.json
autometa_interim_dir/
autometa_outdir/
autometa_tracedir/

14 changes: 14 additions & 0 deletions .markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Markdownlint configuration file
default: true
line-length: false
ul-indent:
indent: 4
no-duplicate-header:
siblings_only: true
no-inline-html:
allowed_elements:
- img
- p
- kbd
- details
- summary
26 changes: 26 additions & 0 deletions .nf-core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
lint:
files_exist:
- .github/workflows/branch.yml
- .github/workflows/awstest.yml
- .github/workflows/awsfulltest.yml
- .travis.yml
- docs/usage.md
- docs/output.md

files_unchanged:
- manifest
- .github/CONTRIBUTING.md
- .github/ISSUE_TEMPLATE/bug_report.md
- .github/ISSUE_TEMPLATE/feature_request.md
- .github/workflows/linting_comment.yml
- .github/workflows/linting.yml
- assets/email_template.html
- assets/email_template.txt
- bin/scrape_software_versions.py
- docs/README.md
- .gitignore
- LICENSE
- .github/PULL_REQUEST_TEMPLATE.md
- lib/NfcoreTemplate.groovy
template_strings: false
nextflow_config: false
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# nf-core/autometa: 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).

## v2.0.0 - [date]

Second release of nf-core/autometa, created with the [nf-core](https://nf-co.re/) template.

### `Added`

### `Fixed`

### `Dependencies`

### `Deprecated`
48 changes: 48 additions & 0 deletions CITATIONS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Autometa:

## [Autometa](https://github.com/KwanLab/Autometa)
> Miller, I. J.; Rees, E. R.; Ross, J.; Miller, I.; Baxa, J.; Lopera, J.; Kerby, R. L.; Rey, F. E.; Kwan, J. C. Autometa: Automated extraction of microbial genomes from individual shotgun metagenomes. Nucleic Acids Research, 2019. DOI: https://doi.org/10.1093/nar/gkz148

## [python](https://www.python.org)
> Van Rossum, G., & Drake, F. L. (2009). Python 3 Reference Manual. Scotts Valley, CA: CreateSpace.

## [nf-core](https://pubmed.ncbi.nlm.nih.gov/32055031/)

> Ewels PA, Peltzer A, Fillinger S, Patel H, Alneberg J, Wilm A, Garcia MU, Di Tommaso P, Nahnsen S. The nf-core framework for community-curated bioinformatics pipelines. Nat Biotechnol. 2020 Mar;38(3):276-278. doi: 10.1038/s41587-020-0439-x. PubMed PMID: 32055031.

## [Nextflow](https://pubmed.ncbi.nlm.nih.gov/28398311/)

> Di Tommaso P, Chatzou M, Floden EW, Barja PP, Palumbo E, Notredame C. Nextflow enables reproducible computational workflows. Nat Biotechnol. 2017 Apr 11;35(4):316-319. doi: 10.1038/nbt.3820. PubMed PMID: 28398311.

## Pipeline tools

* [Diamond](https://github.com/bbuchfink/diamond)
> Buchfink B, Reuter K, Drost HG, "Sensitive protein alignments at tree-of-life scale using DIAMOND", Nature Methods 18, 366–368 (2021). doi:10.1038/s41592-021-01101-x

* [HMMER](http://hmmer.org)
> HMMER Web Server: Interactive Sequence Similarity Searching. R. D. Finn, J. Clements, S. R. Eddy. Nucleic Acids Research, 39:W29-37, 2011.

* [Prodigal](https://github.com/hyattpd/Prodigal)
> Hyatt, D., Chen, GL., LoCascio, P.F. et al. Prodigal: prokaryotic gene recognition and translation initiation site identification. BMC Bioinformatics 11, 119 (2010). https://doi.org/10.1186/1471-2105-11-119

* [Samtools](http://www.htslib.org)
> Danecek P, Bonfield JK, Liddle J, Marshall J, Ohan V, Pollard MO, Whitwham A, Keane T, McCarthy SA, Davies RM, Li H, Twelve years of SAMtools and BCFtools, GigaScience (2021) 10(2) giab008 [https://pubmed.ncbi.nlm.nih.gov/33590861]

* [SeqKit](https://github.com/shenwei356/seqkit)
> W Shen, S Le, Y Li*, F Hu*. SeqKit: a cross-platform and ultrafast toolkit for FASTA/Q file manipulation. PLOS ONE. doi:10.1371/journal.pone.0163962.

## Software packaging/containerisation tools

* [Anaconda](https://anaconda.com)
> Anaconda Software Distribution. Computer software. Vers. 2-2.4.0. Anaconda, Nov. 2016. Web.

* [Bioconda](https://pubmed.ncbi.nlm.nih.gov/29967506/)
> Grüning B, Dale R, Sjödin A, Chapman BA, Rowe J, Tomkins-Tinch CH, Valieris R, Köster J; Bioconda Team. Bioconda: sustainable and comprehensive software distribution for the life sciences. Nat Methods. 2018 Jul;15(7):475-476. doi: 10.1038/s41592-018-0046-7. PubMed PMID: 29967506.

* [BioContainers](https://pubmed.ncbi.nlm.nih.gov/28379341/)
> da Veiga Leprevost F, Grüning B, Aflitos SA, Röst HL, Uszkoreit J, Barsnes H, Vaudel M, Moreno P, Gatto L, Weber J, Bai M, Jimenez RC, Sachsenberg T, Pfeuffer J, Alvarez RV, Griss J, Nesvizhskii AI, Perez-Riverol Y. BioContainers: an open-source and community-driven framework for software standardization. Bioinformatics. 2017 Aug 15;33(16):2580-2582. doi: 10.1093/bioinformatics/btx192. PubMed PMID: 28379341; PubMed Central PMCID: PMC5870671.

* [Docker](https://dl.acm.org/doi/10.5555/2600239.2600241)

* [Singularity](https://pubmed.ncbi.nlm.nih.gov/28494014/)
> Kurtzer GM, Sochat V, Bauer MW. Singularity: Scientific containers for mobility of compute. PLoS One. 2017 May 11;12(5):e0177459. doi: 10.1371/journal.pone.0177459. eCollection 2017. PubMed PMID: 28494014; PubMed Central PMCID: PMC5426675.
Loading