Skip to content

Commit

Permalink
Added missing sys import.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm-targa committed Apr 11, 2024
1 parent 9eb0106 commit 6fdcee5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHEWBBACA/utils/blast_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"""


import sys
import subprocess

try:
Expand Down
2 changes: 2 additions & 0 deletions CHEWBBACA/utils/gene_prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ def predict_genome_genes(input_file, output_directory, gene_finder,
# Extract data from Gene objects
protid = 1
gene_info = []
# Store data about first and last CDS in each sequence to speedup PLOT classification
close_to_tip = {genome_basename: {}}
for recid, genes in contig_genes.items():
data = get_gene_info(recid, genome_basename, protid, genes)
Expand All @@ -237,6 +238,7 @@ def predict_genome_genes(input_file, output_directory, gene_finder,
if first_cds != data[0][-1]:
last_cds = data[0][-1]
close_to_tip[genome_basename].setdefault(last_cds[0], []).append((contig_sizes[last_cds[3]], int(last_cds[4]), int(last_cds[5]), last_cds[-1]))
# Reset protid based on the number of CDSs predicted for the sequence
protid = data[1]

total_genome = len(gene_info)
Expand Down

0 comments on commit 6fdcee5

Please sign in to comment.