Skip to content

Commit

Permalink
remove gz argument in assign_read
Browse files Browse the repository at this point in the history
  • Loading branch information
youyupei committed Jul 1, 2024
1 parent 6565e56 commit 543184f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions blaze/read_assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def _assign_read_batches(r_batch, whitelist, max_ed, gz, minQ=0):
# logger.info(helper.green_msg(f"Successfully demultiplexed reads / Total reads: {sum(df.BC_corrected!='')} / {len(df.BC_corrected)}. ", printit = False))

def assign_read(fastq_fns=None, fastq_out=None, putative_bc_csv=None,
whitelsit_csv=None, max_ed=None, n_process=None, gz=None,
whitelsit_csv=None, max_ed=None, n_process=None,
batchsize=None, minQ=0, args=None):
"""Main function: Demultiplex fastq files using putative barcode csv and whitelist csv
Input:
Expand All @@ -269,9 +269,10 @@ def assign_read(fastq_fns=None, fastq_out=None, putative_bc_csv=None,
whitelsit_csv = args.out_whitelist_fn
max_ed = args.max_edit_distance
n_process = args.threads
gz = args.output_fastq.endswith('.gz')
batchsize = args.batch_size

gz = fastq_out.endswith('.gz')

# greating generator for read and putative barcode batches
r_batches = \
_read_and_bc_batch_generator_with_idx(fastq_fns, putative_bc_csv, batchsize)
Expand Down

0 comments on commit 543184f

Please sign in to comment.