Skip to content

Commit

Permalink
Fixed the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lucventurini committed Mar 26, 2021
1 parent 182ae18 commit ba86ddb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Mikado/_transcripts/transcript_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,8 +793,9 @@ def get_internal_orf_beds(self) -> List[BED12]:
row.block_sizes = [0]
row = BED12(row, seq,
coding=False, transcriptomic=True, max_regression=0, start_adjustment=False,
lenient=True,
table=self.codon_table)
if row.invalid is False:
if row.invalid is True:
raise AssertionError("\n".join([str(row), row.invalid_reason]))
yield row
else:
Expand Down
2 changes: 1 addition & 1 deletion Mikado/parsers/bed12.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ def __check_validity(self, transcriptomic, fasta_index, sequence):
self.chrom, self.has_start_codon, self.has_stop_codon, not self.invalid)

# Get only a proper multiple of three
if self.lenient is False:
if self.lenient is False and self.coding is True:
if self.strand != "-":
orf_sequence = sequence[
(self.thick_start - 1 if not self.phase
Expand Down

0 comments on commit ba86ddb

Please sign in to comment.