|
1 | 1 | rule map_reads_bwa: |
2 | 2 | input: |
3 | 3 | reads=get_map_reads_input, |
4 | | - idx=rules.bwa_index.output, |
| 4 | + idx=access.random(rules.bwa_index.output), |
5 | 5 | output: |
6 | 6 | temp("results/mapped/bwa/{sample}.bam"), |
7 | 7 | log: |
@@ -50,10 +50,10 @@ rule create_reference_paths: |
50 | 50 | rule map_reads_vg: |
51 | 51 | input: |
52 | 52 | reads=get_map_reads_input, |
53 | | - graph=f"{pangenome_prefix}.gbz", |
54 | | - kmers="results/kmers/{sample}.kff", |
55 | | - hapl=f"{pangenome_prefix}.hapl", |
56 | | - paths="resources/reference_paths.txt", |
| 53 | + graph=access.random(f"{pangenome_prefix}.gbz"), |
| 54 | + kmers=access.random("results/kmers/{sample}.kff"), |
| 55 | + hapl=access.random(f"{pangenome_prefix}.hapl"), |
| 56 | + paths=access.random("resources/reference_paths.txt"), |
57 | 57 | output: |
58 | 58 | bam=temp("results/mapped/vg/{sample}.preprocessed.bam"), |
59 | 59 | indexes=temp( |
@@ -226,7 +226,7 @@ rule calc_consensus_reads: |
226 | 226 | rule map_consensus_reads: |
227 | 227 | input: |
228 | 228 | reads=get_processed_consensus_input, |
229 | | - idx=rules.bwa_index.output, |
| 229 | + idx=access.random(rules.bwa_index.output), |
230 | 230 | output: |
231 | 231 | temp("results/consensus/{sample}.consensus.{read_type}.mapped.bam"), |
232 | 232 | params: |
|
0 commit comments