Skip to content

Commit

Permalink
fix: move assertion on chrMT transcripts
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Mar 6, 2024
1 parent 31f48cb commit 0a4d353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/create/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ fn load_and_extract(
"only one genome build expected at this point"
);
let gb = tx_out.genome_builds.iter_mut().next().unwrap().1;
assert_eq!(gb.exons.len(), 1, "only single-exon genes assumed on chrMT");
if MITOCHONDRIAL_ACCESSIONS.contains(&gb.contig.as_ref()) {
assert_eq!(gb.exons.len(), 1, "only single-exon genes assumed on chrMT");
let delta = 3 - cds_len % 3;
tx_out.stop_codon = Some(cds_end + delta);
let exon = gb.exons.iter_mut().next().unwrap();
Expand Down

0 comments on commit 0a4d353

Please sign in to comment.