We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents df20d32 + fb79280 commit a2b2112Copy full SHA for a2b2112
1 file changed
subworkflows/local/functional_annotation/main.nf
@@ -1,3 +1,5 @@
1
+// Import Annotator Subworfklows
2
+
3
workflow FUNCTIONAL_ANNOTATION {
4
5
take:
@@ -9,9 +11,25 @@ workflow FUNCTIONAL_ANNOTATION {
9
11
10
12
// TODO nf-core: substitute modules here for the modules of your subworkflow
13
14
+ // Create a multifasta, with one fasta per entry, add the sequence ID to the meta id
15
+ ch_fasta
16
+ .map {
17
+ meta, fasta ->
18
+ [
19
+ [id:"${meta.id}_${fasta[0].splitFasta(record: [id: true]).id[0].replaceAll(/\|/, '-')}"] ,
20
+ fasta[0].splitFasta(file:true)
21
+ ]
22
+ }
23
+ .transpose()
24
+ .view()
25
+ .set { ch_multifasta }
26
27
+ //
28
+ // SUBWORKFLOW: Annotator Name
29
30
31
emit:
32
// TODO nf-core: edit emitted channels
33
34
versions = ch_versions // channel: [ versions.yml ]
35
}
-
0 commit comments