diff --git a/.github/assets/adaptivecard.json b/.github/assets/adaptivecard.json deleted file mode 100644 index c0e60fe..0000000 --- a/.github/assets/adaptivecard.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "type": "message", - "attachments": [ - { - "contentType": "application/vnd.microsoft.card.adaptive", - "contentUrl": null, - "content": { - "\$schema": "http://adaptivecards.io/schemas/adaptive-card.json", - "msteams": { - "width": "Full" - }, - "type": "AdaptiveCard", - "version": "1.2", - "body": [ - { - "type": "TextBlock", - "size": "Large", - "weight": "Bolder", - "color": "<% if (success) { %>Good<% } else { %>Attention<%} %>", - "text": "sanger-tol/ascc v${version} - ${runName}", - "wrap": true - }, - { - "type": "TextBlock", - "spacing": "None", - "text": "Completed at ${dateComplete} (duration: ${duration})", - "isSubtle": true, - "wrap": true - }, - { - "type": "TextBlock", - "text": "<% if (success) { %>Pipeline completed successfully!<% } else { %>Pipeline completed with errors. The full error message was: ${errorReport}.<% } %>", - "wrap": true - }, - { - "type": "TextBlock", - "text": "The command used to launch the workflow was as follows:", - "wrap": true - }, - { - "type": "TextBlock", - "text": "${commandLine}", - "isSubtle": true, - "wrap": true - } - ], - "actions": [ - { - "type": "Action.ShowCard", - "title": "Pipeline Configuration", - "card": { - "type": "AdaptiveCard", - "\$schema": "http://adaptivecards.io/schemas/adaptive-card.json", - "body": [ - { - "type": "FactSet", - "facts": [<% out << summary.collect{ k,v -> "{\"title\": \"$k\", \"value\" : \"$v\"}"}.join(",\n") %> - ] - } - ] - } - } - ] - } - } - ] -} diff --git a/.github/assets/email_template.html b/.github/assets/email_template.html deleted file mode 100644 index 1492d1e..0000000 --- a/.github/assets/email_template.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - sanger-tol/ascc Pipeline Report - - -
- - - -

sanger-tol/ascc v${version}

-

Run Name: $runName

- -<% if (!success){ - out << """ -
-

sanger-tol/ascc execution completed unsuccessfully!

-

The exit status of the task that caused the workflow execution to fail was: $exitStatus.

-

The full error message was:

-
${errorReport}
-
- """ -} else { - out << """ -
- sanger-tol/ascc execution completed successfully! -
- """ -} -%> - -

The workflow was completed at $dateComplete (duration: $duration)

-

The command used to launch the workflow was as follows:

-
$commandLine
- -

Pipeline Configuration:

- - - <% out << summary.collect{ k,v -> "" }.join("\n") %> - -
$k
$v
- -

sanger-tol/ascc

-

https://github.com/sanger-tol/ascc

- -
- - - diff --git a/.github/assets/email_template.txt b/.github/assets/email_template.txt deleted file mode 100644 index 3c918bf..0000000 --- a/.github/assets/email_template.txt +++ /dev/null @@ -1,31 +0,0 @@ -Run Name: $runName - -<% if (success){ - out << "## sanger-tol/ascc execution completed successfully! ##" -} else { - out << """#################################################### -## sanger-tol/ascc execution completed unsuccessfully! ## -#################################################### -The exit status of the task that caused the workflow execution to fail was: $exitStatus. -The full error message was: - -${errorReport} -""" -} %> - - -The workflow was completed at $dateComplete (duration: $duration) - -The command used to launch the workflow was as follows: - - $commandLine - - - -Pipeline Configuration: ------------------------ -<% out << summary.collect{ k,v -> " - $k: $v" }.join("\n") %> - --- -sanger-tol/ascc -https://github.com/sanger-tol/ascc diff --git a/.github/assets/methods_description_template.yml b/.github/assets/methods_description_template.yml deleted file mode 100644 index bcd295e..0000000 --- a/.github/assets/methods_description_template.yml +++ /dev/null @@ -1,29 +0,0 @@ -id: "sanger-tol-ascc-methods-description" -description: "Suggested text and references to use when describing pipeline usage within the methods section of a publication." -section_name: "sanger-tol/ascc Methods Description" -section_href: "https://github.com/sanger-tol/ascc" -plot_type: "html" -## TODO nf-core: Update the HTML below to your preferred methods description, e.g. add publication citation for this pipeline -## You inject any metadata in the Nextflow '${workflow}' object -data: | -

Methods

-

Data was processed using sanger-tol/ascc v${workflow.manifest.version} ${doi_text} of the nf-core collection of workflows (Ewels et al., 2020), utilising reproducible software environments from the Bioconda (Grüning et al., 2018) and Biocontainers (da Veiga Leprevost et al., 2017) projects.

-

The pipeline was executed with Nextflow v${workflow.nextflow.version} (Di Tommaso et al., 2017) with the following command:

-
${workflow.commandLine}
-

${tool_citations}

-

References

- -
-
Notes:
- -
diff --git a/.github/assets/samplesheet.csv b/.github/assets/samplesheet.csv deleted file mode 100644 index 5f653ab..0000000 --- a/.github/assets/samplesheet.csv +++ /dev/null @@ -1,3 +0,0 @@ -sample,fastq_1,fastq_2 -SAMPLE_PAIRED_END,/path/to/fastq/files/AEG588A1_S1_L002_R1_001.fastq.gz,/path/to/fastq/files/AEG588A1_S1_L002_R2_001.fastq.gz -SAMPLE_SINGLE_END,/path/to/fastq/files/AEG588A4_S4_L003_R1_001.fastq.gz, diff --git a/.github/assets/schema_input.json b/.github/assets/schema_input.json deleted file mode 100644 index 24e1b1c..0000000 --- a/.github/assets/schema_input.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "$id": "https://raw.githubusercontent.com/sanger-tol/ascc/master/assets/schema_input.json", - "title": "sanger-tol/ascc pipeline - params.input schema", - "description": "Schema for the file provided with params.input", - "type": "array", - "items": { - "type": "object", - "properties": { - "sample": { - "type": "string", - "pattern": "^\\S+$", - "errorMessage": "Sample name must be provided and cannot contain spaces" - }, - "fastq_1": { - "type": "string", - "pattern": "^\\S+\\.f(ast)?q\\.gz$", - "errorMessage": "FastQ file for reads 1 must be provided, cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'" - }, - "fastq_2": { - "errorMessage": "FastQ file for reads 2 cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'", - "anyOf": [ - { - "type": "string", - "pattern": "^\\S+\\.f(ast)?q\\.gz$" - }, - { - "type": "string", - "maxLength": 0 - } - ] - } - }, - "required": ["sample", "fastq_1"] - } -} diff --git a/.github/assets/sendmail_template.txt b/.github/assets/sendmail_template.txt deleted file mode 100644 index 70ff389..0000000 --- a/.github/assets/sendmail_template.txt +++ /dev/null @@ -1,53 +0,0 @@ -To: $email -Subject: $subject -Mime-Version: 1.0 -Content-Type: multipart/related;boundary="nfcoremimeboundary" - ---nfcoremimeboundary -Content-Type: text/html; charset=utf-8 - -$email_html - ---nfcoremimeboundary -Content-Type: image/png;name="sanger-tol-ascc_logo.png" -Content-Transfer-Encoding: base64 -Content-ID: -Content-Disposition: inline; filename="sanger-tol-ascc_logo_light.png" - -<% out << new File("$projectDir/assets/sanger-tol-ascc_logo_light.png"). - bytes. - encodeBase64(). - toString(). - tokenize( '\n' )*. - toList()*. - collate( 76 )*. - collect { it.join() }. - flatten(). - join( '\n' ) %> - -<% -if (mqcFile){ -def mqcFileObj = new File("$mqcFile") -if (mqcFileObj.length() < mqcMaxSize){ -out << """ ---nfcoremimeboundary -Content-Type: text/html; name=\"multiqc_report\" -Content-Transfer-Encoding: base64 -Content-ID: -Content-Disposition: attachment; filename=\"${mqcFileObj.getName()}\" - -${mqcFileObj. - bytes. - encodeBase64(). - toString(). - tokenize( '\n' )*. - toList()*. - collate( 76 )*. - collect { it.join() }. - flatten(). - join( '\n' )} -""" -}} -%> - ---nfcoremimeboundary-- diff --git a/.github/assets/slackreport.json b/.github/assets/slackreport.json deleted file mode 100644 index 6e9c1b7..0000000 --- a/.github/assets/slackreport.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "attachments": [ - { - "fallback": "Plain-text summary of the attachment.", - "color": "<% if (success) { %>good<% } else { %>danger<%} %>", - "author_name": "sanger-tol/ascc v${version} - ${runName}", - "author_icon": "https://www.nextflow.io/docs/latest/_static/favicon.ico", - "text": "<% if (success) { %>Pipeline completed successfully!<% } else { %>Pipeline completed with errors<% } %>", - "fields": [ - { - "title": "Command used to launch the workflow", - "value": "```${commandLine}```", - "short": false - } - <% - if (!success) { %> - , - { - "title": "Full error message", - "value": "```${errorReport}```", - "short": false - }, - { - "title": "Pipeline configuration", - "value": "<% out << summary.collect{ k,v -> k == "hook_url" ? "_${k}_: (_hidden_)" : ( ( v.class.toString().contains('Path') || ( v.class.toString().contains('String') && v.contains('/') ) ) ? "_${k}_: `${v}`" : (v.class.toString().contains('DateTime') ? ("_${k}_: " + v.format(java.time.format.DateTimeFormatter.ofLocalizedDateTime(java.time.format.FormatStyle.MEDIUM))) : "_${k}_: ${v}") ) }.join(",\n") %>", - "short": false - } - <% } - %> - ], - "footer": "Completed at <% out << dateComplete.format(java.time.format.DateTimeFormatter.ofLocalizedDateTime(java.time.format.FormatStyle.MEDIUM)) %> (duration: ${duration})" - } - ] -} diff --git a/.github/assets/test-truth.yaml b/.github/assets/test-truth.yaml deleted file mode 100755 index 33cc722..0000000 --- a/.github/assets/test-truth.yaml +++ /dev/null @@ -1,17 +0,0 @@ -assembly_path: /lustre/scratch123/tol/teams/tola/users/ea10/pipeline_testing/20220128_ascc_poyelii/Pyoeliiyoelii17XNL_assembly.fa -assembly_title: pyoelii -pacbio_multiplexing_barcode_names: something -pacbio_reads_path: /lustre/scratch123/tol/teams/tola/users/ea10/pipeline_testing/20220128_ascc_poyelii/ -sci_name: "Plasmodium yoelii yoelii 17XNL" -taxid: 352914 -mito_fasta_path: "NA" -plastid_fasta_path: "NA" -kmer_len: 7 -nt_database: /data/blastdb/Supported/NT/current/ -nt_kraken_db_path: /lustre/scratch123/tol/teams/tola/users/ea10/ascc_databases/nt/nt -ncbi_taxonomy_path: /lustre/scratch123/tol/teams/tola/users/ea10/ascc_databases/ncbi_taxonomy/20230509_accession2taxid/ -ncbi_rankedlineage_path: /lustre/scratch123/tol/teams/tola/users/ea10/databases/taxdump/rankedlineage.dmp -busco_lineages_folder: /lustre/scratch123/tol/resources/busco/data/v5/2021-03-14/lineages -seqkit: - sliding: 10000 - window: 6000 diff --git a/.github/assets/test.yaml b/.github/assets/test.yaml deleted file mode 100755 index 3ef5a58..0000000 --- a/.github/assets/test.yaml +++ /dev/null @@ -1,17 +0,0 @@ -assembly_path: /lustre/scratch123/tol/teams/tola/treeval_runs/DTOL/nxCaeImpe1_1/raw/ref.fa -assembly_title: nxCaeImpe1 -pacbio_multiplexing_barcode_names: something -pacbio_reads_path: /lustre/scratch123/tol/projects/tol-nematodes/data/Caenorhabditis/Caenorhabditis_imperialis/genomic_data/nxCaeImpe1/pacbio/fasta/ -sci_name: "Caenorhabditis imperialis" -taxid: 6239 -mito_fasta_path: "NA" -plastid_fasta_path: "NA" -kmer_len: 7 -nt_database: /data/blastdb/Supported/NT/current/ -nt_kraken_db_path: /lustre/scratch123/tol/teams/tola/users/ea10/ascc_databases/nt/nt -ncbi_taxonomy_path: /lustre/scratch123/tol/teams/tola/users/ea10/databases/taxdump/ -ncbi_rankedlineage_path: /lustre/scratch123/tol/teams/tola/users/ea10/databases/taxdump/rankedlineage.dmp -busco_lineages_folder: /lustre/scratch123/tol/resources/busco/data/v5/2021-03-14/lineages -seqkit: - sliding: 6000 - window: 100000 diff --git a/workflows/ascc.nf b/workflows/ascc.nf index e183f6a..ca3bea1 100644 --- a/workflows/ascc.nf +++ b/workflows/ascc.nf @@ -77,10 +77,10 @@ workflow ASCC { // // SUBWORKFLOW: EXTRACT RESULTS HITS FROM TIARA // - EXTRACT_TIARA_HITS ( +/* EXTRACT_TIARA_HITS ( GENERATE_GENOME.out.reference_tuple ) - ch_versions = ch_versions.mix(EXTRACT_TIARA_HITS.out.versions) + ch_versions = ch_versions.mix(EXTRACT_TIARA_HITS.out.versions) */ // // LOGIC: INJECT SLIDING WINDOW VALUES INTO REFERENCE @@ -100,23 +100,23 @@ workflow ASCC { // // SUBWORKFLOW: EXTRACT RESULTS HITS FROM NT-BLAST // - EXTRACT_NT_BLAST ( +/* EXTRACT_NT_BLAST ( modified_input, YAML_INPUT.out.nt_database, YAML_INPUT.out.ncbi_taxonomy_path, YAML_INPUT.out.ncbi_rankedlineage_path ) - ch_versions = ch_versions.mix(EXTRACT_NT_BLAST.out.versions) + ch_versions = ch_versions.mix(EXTRACT_NT_BLAST.out.versions) */ // // SUBWORKFLOW: // - RUN_NT_KRAKEN ( +/* RUN_NT_KRAKEN ( GENERATE_GENOME.out.reference_tuple, YAML_INPUT.out.nt_kraken_db_path, YAML_INPUT.out.ncbi_rankedlineage_path ) - ch_versions = ch_versions.mix(RUN_NT_KRAKEN.out.versions) + ch_versions = ch_versions.mix(RUN_NT_KRAKEN.out.versions) */ // // SUBWORKFLOW: COLLECT SOFTWARE VERSIONS