Skip to content

Commit

Permalink
Update barcode_design.py
Browse files Browse the repository at this point in the history
  • Loading branch information
feldman4 committed Mar 21, 2023
1 parent af4db18 commit 2b34335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion barcode_design.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def create_barcode_set(n, k, homopolymer, gc_min, gc_max, exclude=None,
logger.info(f'Generated {len(df_bcs)} barcodes of length {n}')

barcodes = (df_bcs
.query('@gc_min < gc < @gc_max')
.query('@gc_min <= gc <= @gc_max')
.loc[lambda x: ~(x['barcode'].apply(lambda y:
has_homopolymer(y, homopolymer)))]
['barcode'].pipe(list))
Expand Down

0 comments on commit 2b34335

Please sign in to comment.