File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ rule atac_split_samples:
280
280
output :
281
281
fragments = temp ('ATAC/sublibraries/{sublibrary}/{sample}.tsv.zst' ),
282
282
params :
283
- barcode_pattern = lambda w : f"\t { config ['samples' ][w .sample ]} \\ +" ,
283
+ barcode_pattern = lambda w : f"\t ( { config ['samples' ][w .sample ]} ) \\ +" ,
284
284
sublibrary_id = lambda w : w .sublibrary
285
285
threads : 4
286
286
shell : "zstd -dc {input.fragments} | "
@@ -540,7 +540,7 @@ rule rna_unique_cells_sample:
540
540
output :
541
541
cells = 'RNA/samples/{sample}.barcodes.tsv.gz'
542
542
params :
543
- barcode_pattern = lambda w : f"_{ config ['samples' ][w .sample ]} \\ +"
543
+ barcode_pattern = lambda w : f"_( { config ['samples' ][w .sample ]} ) \\ +"
544
544
shell : "gzip -dc {input.cells} | "
545
545
"grep -E '{params.barcode_pattern}' | "
546
546
"sort --unique | gzip > {output.cells}"
@@ -573,7 +573,7 @@ rule rna_mtx_chunk_sample:
573
573
script = srcdir ("scripts/shareseq/mtx_from_counts.py" ),
574
574
memory = "4G" ,
575
575
sublibrary_id = lambda w : w .sublibrary ,
576
- barcode_pattern = lambda w : f"\t { config ['samples' ][w .sample ]} \\ +"
576
+ barcode_pattern = lambda w : f"\t ( { config ['samples' ][w .sample ]} ) \\ +"
577
577
threads : 4
578
578
shell : "zstd -dc {input.counts} | "
579
579
"grep -E '{params.barcode_pattern}' | " # Filter to sample
You can’t perform that action at this time.
0 commit comments