Skip to content

Commit

Permalink
wip: fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyama341 committed Sep 20, 2024
1 parent 351a8e0 commit 8aff53e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 39 deletions.
41 changes: 4 additions & 37 deletions tests/test_cas3_plasmid_cloning.py
Original file line number Diff line number Diff line change
@@ -1,36 +1,3 @@
# from Bio import SeqIO
# from pydna.dseqrecord import Dseqrecord
# from src.utils import list_of_objects_in_a_dir
# import pydna

# # Local module imports
# from src.teemi_functions.cloning.cas3_plasmid_cloning import (
# generate_cas3_protospacer_primers,
# cas3_plasmid_pcrs,
# assemble_cas3_plasmids,
# )

# from teemi.design.fetch_sequences import read_genbank_files


# pCRISPR_cas3 = read_genbank_files('tests/test_files/pCRISPR_cas3.gb')[0]
# vector = Dseqrecord(pCRISPR_cas3, circular = True)
# vector.name = 'pCRISPR-Cas3'


# def test_generate_cas3_primers():
# # generate_cas3_protospacer_primers()
# pass


# def test_cas3_plasmid_pcrs():
# # cas3_plasmid_pcrs()
# pass

# def test_assemble_cas3_plasmids():
# # assemble_cas3_plasmids()
# pass

import pytest
import pandas as pd
from pydna.dseqrecord import Dseqrecord
Expand Down Expand Up @@ -91,10 +58,10 @@ def test_generate_cas3_primers(sample_spacer_table):

# Check the content of the generated primers
expected_fwd_primers = [
'AATCCGAACAGCTCCTTCGATGCGTTCGTCCGGTGTCGCcCggCaaAaccGg',
'GGATTGAAGCGCAGAGTCGTCATCACGGGCGTCGGTCGCcCggCaaAaccGg',
'CGGATCTGGGCGCGCGTGGGCGGCCGGGTGAAGAGTCGCcCggCaaAaccGg',
'ACGTTCGAGGACACGCTCCGGGTGCCGTCCGGGGGTCGCcCggCaaAaccGg'
'AATCCGAACAGCTCCTTCGATGCGTTCGTCCGGTGTCGCCCGGCAAAACCGG',
'GGATTGAAGCGCAGAGTCGTCATCACGGGCGTCGGTCGCCCGGCAAAACCGG',
'CGGATCTGGGCGCGCGTGGGCGGCCGGGTGAAGAGTCGCCCGGCAAAACCGG',
'ACGTTCGAGGACACGCTCCGGGTGCCGTCCGGGGGTCGCCCGGCAAAACCGG'
]
expected_rev_primers = [
str(Seq('AATCCGAACAGCTCCTTCGATGCGTTCGTCCGGT').reverse_complement()) + "GTTTCAATCCACGCGCCCGT",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_files/pOEX-PkasO.gb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LOCUS pOEX-PkasO 5230 bp DNA circular SYN 06-DEC-2023
LOCUS pOEX-PkasO 5230 bp DNA circular SYN 06-DEC-2023
DEFINITION synthetic circular DNA.
ACCESSION pOEX-PkasO
VERSION pOEX-PkasO
Expand Down
2 changes: 1 addition & 1 deletion web_app/assets/pOEX-PkasO.gb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LOCUS pOEX-PkasO 5230 bp DNA circular SYN 06-DEC-2023
LOCUS pOEX-PkasO 5230 bp DNA circular SYN 06-DEC-2023
DEFINITION synthetic circular DNA.
ACCESSION pOEX-PkasO
VERSION pOEX-PkasO
Expand Down

0 comments on commit 8aff53e

Please sign in to comment.