Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiangs18 committed Aug 13, 2024
1 parent 1fc6ed1 commit acad730
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/GenomeFileUtil/core/GenbankToGenome.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@ def _save_assemblies(self, workspace_id, genome_objs):
continue

# contigs is an iterator
# Based on experiments, writing is significantly more time-consuming than reading.
# Therefore, reading twice is not going to slow things down much compared to the write.
contigs = Bio.SeqIO.parse(genome_obj.consolidated_file, "genbank")
genome_obj.assembly_id = f"{genome_obj.genome_name}_assembly"
genome_obj.assembly_path = f"{self.cfg.sharedFolder}/{genome_obj.assembly_id}.fasta"
Expand Down

0 comments on commit acad730

Please sign in to comment.