Skip to content

Commit

Permalink
Remove redundant but deliberate string concatenation
Browse files Browse the repository at this point in the history
The original version represented the exons,
but it not really needed for clarity.
  • Loading branch information
peterjc committed Nov 29, 2019
1 parent caf9d06 commit ade342f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tests/test_SeqIO_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def test_simple_dna_join_strand_minus(self):
f1 = SeqFeature(FeatureLocation(5, 10), strand=-1)
f2 = SeqFeature(FeatureLocation(12, 15), strand=-1)
f = make_join_feature([f1, f2])
self.check(s, f, reverse_complement("CCCCC" + "TTT"),
self.check(s, f, reverse_complement("CCCCCTTT"),
"complement(join(6..10,13..15))")

def test_simple_dna_join_before(self):
Expand All @@ -410,7 +410,7 @@ def test_simple_dna_join_before(self):
f1 = SeqFeature(FeatureLocation(BeforePosition(5), 10), strand=-1)
f2 = SeqFeature(FeatureLocation(12, 15), strand=-1)
f = make_join_feature([f1, f2])
self.check(s, f, reverse_complement("CCCCC" + "TTT"),
self.check(s, f, reverse_complement("CCCCCTTT"),
"complement(join(<6..10,13..15))")

def test_simple_dna_join_after(self):
Expand All @@ -419,7 +419,7 @@ def test_simple_dna_join_after(self):
f1 = SeqFeature(FeatureLocation(5, 10), strand=-1)
f2 = SeqFeature(FeatureLocation(12, AfterPosition(15)), strand=-1)
f = make_join_feature([f1, f2])
self.check(s, f, reverse_complement("CCCCC" + "TTT"),
self.check(s, f, reverse_complement("CCCCCTTT"),
"complement(join(6..10,13..>15))")

def test_mixed_strand_dna_join(self):
Expand Down Expand Up @@ -453,7 +453,7 @@ def test_protein_join(self):
f1 = SeqFeature(FeatureLocation(5, 10))
f2 = SeqFeature(FeatureLocation(15, 20))
f = make_join_feature([f1, f2])
self.check(s, f, "FGHIJ" + "PQRST", "join(6..10,16..20)")
self.check(s, f, "FGHIJPQRST", "join(6..10,16..20)")

def test_protein_join_fuzzy(self):
"""Feature on protein (fuzzy join)."""
Expand All @@ -463,7 +463,7 @@ def test_protein_join_fuzzy(self):
ExactPosition(16))),
AfterPosition(20)))
f = make_join_feature([f1, f2])
self.check(s, f, "FGHIJ" + "PQRST", "join(<6..10,one-of(16,17)..>20)")
self.check(s, f, "FGHIJPQRST", "join(<6..10,one-of(16,17)..>20)")

def test_protein_multi_join(self):
"""Feature on protein (multi-join)."""
Expand Down

0 comments on commit ade342f

Please sign in to comment.