Skip to content

Commit

Permalink
Test assembly plan parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
veghp committed Apr 25, 2024
1 parent 71d288d commit ce94b67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/data/assembly_plan.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
construct,parts,,,
EGF24_1,backbone,seq1,seq2,terminator
EGF24_2,backbone,seq1,sequence3,terminator
EGF24_3,backbone,seq1,sequence3,terminator
4 changes: 4 additions & 0 deletions tests/test_SeqCollection.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

data_dir = os.path.join("tests", "data")
seq_fasta = os.path.join(data_dir, "test.fa")
assembly_plan = os.path.join(data_dir, "assembly_plan.csv")


def test_SeqCollection():
Expand All @@ -15,6 +16,7 @@ def test_SeqCollection():
min_length=20,
max_length=40,
name_length=10,
assembly_plan=assembly_plan,
)
assert seq_coll.n_seq == 6
assert seq_coll.n_bp == 175
Expand All @@ -26,6 +28,8 @@ def test_SeqCollection():
assert len(seq_coll.repeat_names) == 1
assert len(seq_coll.repeat_seq) == 1
assert len(seq_coll.reverse_complement_seq) == 2
assert len(seq_coll.not_in_plan) == 2
assert seq_coll.total_savings == 62


def test_read_fasta():
Expand Down

0 comments on commit ce94b67

Please sign in to comment.