-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmapping_hashing_pipeline.nf
47 lines (37 loc) · 1.46 KB
/
mapping_hashing_pipeline.nf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
nextflow.enable.dsl=2
include { seqSpecParser } from './processes/seqSpecParser.nf'
include { downloadGenome } from './processes/downloadGenome.nf'
include { createHashingRef } from './processes/createHashingRef.nf'
include { mappingHashing } from './processes/mappingHashing.nf'
include { anndata_concat } from './processes/anndata_concat.nf'
workflow mapping_hashing_pipeline{
take:
parsed_covariate_file
genome
main:
SeqSpecResult = seqSpecParser(
file("${params.seqspecs_directory}/${params.Hash_seqspec_yaml}"),
file(params.seqspecs_directory),
'hashing')
HashingRef = createHashingRef(genome, file(params.hashing_metadata))
fastq_files_ch = Channel.fromPath(params.fastq_files_hashing)
batch_ch = Channel.fromList(params.batch)
batch_fastq_ch = batch_ch.merge(fastq_files_ch)
MappingOut = mappingHashing(
batch_fastq_ch,
HashingRef.hashing_index,
HashingRef.t2g_hashing,
SeqSpecResult.parsed_seqspec,
SeqSpecResult.barcode_file
)
ks_hashing_out_dir_collected = MappingOut.ks_hashing_out_dir.collect()
ks_hashing_out_dir_collected.view()
AnndataConcatenate = anndata_concat(
parsed_covariate_file,
ks_hashing_out_dir_collected
)
emit:
hashing_out_dir = MappingOut.ks_hashing_out_dir
ks_hashing_out_dir_collected = MappingOut.ks_hashing_out_dir.collect()
concat_anndata_hashing = AnndataConcatenate.concat_anndata
}