Skip to content

Commit

Permalink
sircel/Sircel_master.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay Tambe committed Sep 28, 2017
1 parent be10ef2 commit c11ec30
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions sircel/Split_reads.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,22 +519,23 @@ def assign_all_reads(params):
BUFFER_SIZE = BUFFER_SIZE)):
read_count += len(reads_chunk)

if not args['split_levenshtein']:
if args['split_levenshtein']:
assignments = pool.map(assign_read_levenshtein,
zip(
repeat(consensus_bcs),
reads_chunk,
barcodes_chunk))
else:
#this is a pipeline for reviwer expts only
#works quite poorly, see simulation results
assignments = pool.map(assign_read_kmers,
zip(
repeat(kmer_map),
repeat(MIN_KMER_SIZE),
repeat(MAX_KMER_SIZE),
reads_chunk,
barcodes_chunk))
else:
#this is a pipeline for reviwer expts only
#works quite poorly, see simulation results
assignments = pool.map(assign_read_levenshtein,
zip(
repeat(consensus_bcs),
reads_chunk,
barcodes_chunk))


for (assignment, offset1, offset2) in assignments:
if(assignment == 'unassigned'):
Expand Down

0 comments on commit c11ec30

Please sign in to comment.