Skip to content

Commit ddef5bd

Browse files
committed
Get tests for all of proteinannotator to run
1 parent 2e684a8 commit ddef5bd

4 files changed

Lines changed: 14 additions & 12 deletions

File tree

subworkflows/local/functional_annotation/main.nf

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ workflow FUNCTIONAL_ANNOTATION {
1313

1414
// Create a multifasta, with one fasta per entry, add the sequence ID to the meta id
1515
ch_fasta
16-
.splitFasta(file: true)
17-
.view()
1816
.map {
1917
meta, fasta ->
20-
[
21-
[id: "${meta.id}_${fasta.splitFasta(record: [id: true]).id[0].replaceAll(/\|/, '-')}"],
22-
fasta
23-
]
18+
[
19+
[id:"${meta.id}_${fasta[0].splitFasta(record: [id: true]).id[0].replaceAll(/\|/, '-')}"] ,
20+
fasta[0].splitFasta(file:true)
21+
]
2422
}
23+
.transpose()
2524
.view()
2625
.set { ch_multifasta }
2726

tests/.nftignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
.DS_Store
22
multiqc/multiqc_plots/{svg,pdf,png}/*.{svg,pdf,png}
33
multiqc/multiqc_report.html
4+
multiqc/multiqc_data/multiqc.log
5+
multiqc/multiqc_data/multiqc_data.json
6+
multiqc/multiqc_data/multiqc_general_stats.txt
7+
multiqc/multiqc_data/multiqc_software_versions.txt
8+
multiqc/multiqc_data/multiqc_sources.txt
49
pipeline_info/*.{html,json,txt,yml}

tests/default.nf.test.snap

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@
2626
"seqkit/T1026.tsv"
2727
],
2828
[
29-
"multiqc.log:md5,f9afd4d93d7620d65ce5d6360339ff6e",
3029
"multiqc_citations.txt:md5,4c806e63a283ec1b7e78cdae3a923d4f",
31-
"multiqc_data.json:md5,eba015690f3d2ddf54967a237db11b0e",
32-
"multiqc_software_versions.txt:md5,c5b754560c24cc8da0c1e92febf6f37f",
33-
"multiqc_sources.txt:md5,d2a044df39ce3c6abe5cdc2d67473490",
3430
"T1024.tsv:md5,c8a3fd71b27b9455aa837e1d50026971",
3531
"T1026.tsv:md5,b028126e117cf0979b6f907cb20c6958"
3632
]
@@ -39,6 +35,6 @@
3935
"nf-test": "0.9.2",
4036
"nextflow": "25.04.1"
4137
},
42-
"timestamp": "2025-05-14T11:49:14.001221"
38+
"timestamp": "2025-05-14T16:07:27.013727"
4339
}
44-
}
40+
}

workflows/proteinannotator.nf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ workflow PROTEINANNOTATOR {
2626
ch_versions = Channel.empty()
2727
ch_multiqc_files = Channel.empty()
2828

29+
ch_samplesheet.view()
30+
2931
FUNCTIONAL_ANNOTATION (
3032
ch_samplesheet
3133
)

0 commit comments

Comments
 (0)