-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Split out the config profiles (#43) * Split out the config profiles * Resolve the conflict using the upstream config * Refactor channel identifiers and process names (#45) **Main change** Processes, channels and workflow names have had its case names changed in order to meet nextflow's community standards. **Commits** * Refactor names * refactor names in the workflows * Update workflows/bacannot.nf * Update workflows/bacannot.nf * Apply suggestions from code review * Update workflows/bacannot.nf wrt iceberg * Accomodate code review and fix the channel name * fix MERGE_ANNOTATIONS process case in line 331 Co-authored-by: Felipe Marques de Almeida <felipemarques89@gmail.com> * added small dataset test profile * fixing name of quicktest profile * fixing urls of testing samplesheets * removing unnecessary files * added new action to test the pipeline from PR and updated docs about quicktest * fixed branch name in github action * fixing input typo in quicktest profile * adding more space to workflow env * fixed action as only 2 threads are available Co-authored-by: Abhinav Sharma <abhi18av@users.noreply.github.com>
- Loading branch information
Showing
47 changed files
with
364 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
process { | ||
executor = 'awsbatch' | ||
queue = 'my-batch-queue' | ||
// cpu allocation | ||
cpus = params.threads | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Container usage and permission | ||
|
||
docker { | ||
enabled = true | ||
runOptions = '--platform linux/amd64 -u $(id -u):root' | ||
fixOwnership = true | ||
} | ||
|
||
|
||
/* | ||
Configuration of Docker usage | ||
DO NOT change any of those | ||
*/ | ||
|
||
// specific images | ||
process { | ||
withLabel: 'main' { | ||
container = 'fmalmeida/bacannot:v3.0' | ||
} | ||
|
||
withLabel: 'renv' { | ||
container = 'fmalmeida/bacannot:v3.0_renv' | ||
} | ||
|
||
withLabel: 'jbrowse' { | ||
container = 'fmalmeida/bacannot:jbrowse' | ||
} | ||
|
||
withLabel: 'kofam' { | ||
container = 'fmalmeida/bacannot:kofamscan' | ||
} | ||
|
||
withLabel: 'smash' { | ||
container = 'fmalmeida/bacannot:antismash' | ||
} | ||
|
||
withLabel: 'unicycler' { | ||
container = 'quay.io/biocontainers/unicycler:0.4.8--py38h8162308_3' | ||
} | ||
|
||
withLabel: 'flye' { | ||
container = 'quay.io/biocontainers/flye:2.9--py39h39abbe0_0' | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
/* | ||
* Configuration File to run fmalmeida/bacannot pipeline. | ||
*/ | ||
|
||
/* | ||
|
||
Required Parameters. | ||
This parameters must always be set | ||
|
||
*/ | ||
params { | ||
|
||
/* | ||
|
||
INPUT SAMPLESHEET | ||
|
||
*/ | ||
|
||
// Input data mus be given inside a well-formated samplesheet. | ||
// We provide a well-formated example at: https://github.com/fmalmeida/test_datasets/raw/main/bacannot_testing_samplesheets/samplesheet.yaml | ||
// | ||
// Please read the example samplesheet so you can understand how to properly fill it. | ||
// | ||
// It is also documented in the main manual: https://bacannot.readthedocs.io/en/latest/samplesheet.html | ||
input = 'https://github.com/fmalmeida/test_datasets/raw/main/bacannot_testing_samplesheets/small_dataset_samplesheet.yml' | ||
|
||
/* | ||
|
||
GENERAL PARAMETERS | ||
|
||
*/ | ||
|
||
// Main output folder name. More than one bacannot annotation can be redirected | ||
// to the same output parameter. It is good to keep related annotations together. | ||
// A subdirectory with the filename will be created inside this directory. | ||
output = 'EXAMPLE_OUTPUT' | ||
|
||
// Number of threads to be used by each software | ||
threads = 5 | ||
|
||
/* | ||
* Resfinder species panel | ||
*/ | ||
|
||
// Species panel to be used when annotating with Resfinder. | ||
// It sets a default for all samples in the samplesheet. | ||
// If a sample has a different value inside the samplesheet it will overwrite the value for that sample | ||
// If blank it will not be executed. | ||
// It must be identical (without the *) as written in their webservice https://cge.cbs.dtu.dk/services/ResFinder/. | ||
// E.g. 'Escherichia coli'; 'Klebsiella' ... | ||
resfinder_species = 'Other' | ||
|
||
/* | ||
* Custom databases can be used to annotate additional genes in the genome. | ||
* It runs a BLASTn alignment against the genome, therefore, the custom database | ||
* MUST be a nucleotide fasta of genes. More than one custom database can be given | ||
* separated by commas. Gene headers must be properly formated as described in the | ||
* documentation: https://bacannot.readthedocs.io/en/latest/custom-db.html | ||
*/ | ||
// Custom nucleotide fastas | ||
custom_db = 'https://github.com/fmalmeida/test_datasets/raw/main/small_custom_db.fasta' | ||
|
||
} | ||
|
||
/* | ||
Configuration of Nextflow Scopes | ||
*/ | ||
|
||
//Trace Report | ||
trace { | ||
enabled = true | ||
file = "${params.output}" + "/annotation_pipeline_trace.txt" | ||
fields = 'task_id,name,status,exit,realtime,cpus,%cpu,memory,%mem,rss' | ||
} | ||
|
||
//Timeline Report | ||
timeline { | ||
enabled = true | ||
file = "${params.output}" + "/annotation_pipeline_timeline.html" | ||
} | ||
|
||
//Complete Report | ||
report { | ||
enabled = true | ||
file = "${params.output}" + "/annotation_pipeline_nextflow_report.html" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Executor | ||
process { | ||
executor = "local" | ||
} | ||
|
||
// QueueSize limit | ||
if (params.parallel_jobs || params.parallel_jobs != '') { | ||
qs = params.parallel_jobs | ||
} | ||
executor { | ||
name = "local" | ||
if (params.parallel_jobs || params.parallel_jobs != '') { | ||
queueSize = qs | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
process compute_gc { | ||
process COMPUTE_GC { | ||
tag "${prefix}" | ||
label 'main' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.