Skip to content

Commit

Permalink
proper template orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewprzh committed Feb 26, 2024
1 parent 3870ec8 commit 26fb448
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions barcode_detection/simulate_barcoded.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def get_random_seq(length, non_t_tail=0):
def create_template_spatial(sequence, barcode, umi):
assert len(barcode) == BC_LENGTH
barcoded_part = PCR_PRIMER + barcode[:LEFT_BC_LENGTH] + LINKER + barcode[LEFT_BC_LENGTH:] + umi
return barcoded_part + "T" * POLYA_LEN + reverese_complement(sequence) + UPS_PRIMER_REV
template_seq = barcoded_part + "T" * POLYA_LEN + reverese_complement(sequence) + UPS_PRIMER_REV
return reverese_complement(template_seq)


#AATGATACGGCGACCACCGAGATCTACACNNNNNNNNNNACACTCTTTCCCTACACGACGCTCTTCCGATCTNNNNNNNNNNNNNNNNNNNNNNNNNNNNTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT—--DNA------CCCATGTACTCTGCGTTGATACCACTGCTT
Expand All @@ -61,7 +62,8 @@ def create_template_spatial(sequence, barcode, umi):
def create_template_10x(sequence, barcode, umi):
assert len(barcode) == BARCODE_LEN_10X
barcoded_part = R1 + barcode + umi
return barcoded_part + "T" * POLYA_LEN + reverese_complement(sequence) + TSO
template_seq = barcoded_part + "T" * POLYA_LEN + reverese_complement(sequence) + TSO
return reverese_complement(template_seq)


def load_counts(inf, total_count):
Expand Down

0 comments on commit 26fb448

Please sign in to comment.