Skip to content

Commit

Permalink
compute contig lengths. closes #511.
Browse files Browse the repository at this point in the history
  • Loading branch information
meren committed May 4, 2017
1 parent 3470a4e commit e3cda23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anvio/summarizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
import anvio.dbops as dbops
import anvio.utils as utils
import anvio.terminal as terminal
import anvio.sequence as sequence
import anvio.constants as constants
import anvio.clustering as clustering
import anvio.filesnpaths as filesnpaths
Expand Down Expand Up @@ -952,6 +951,7 @@ def process_contigs(self, quick=False):
sequence += self.summary.split_sequences[contigs_represented[contig_id][split_order]]

fasta_id = contig_id + appendix
self.contig_lengths.append(len(sequence))

self.progress.update('Creating the FASTA file :: Writing contig sequence into file ...')
fasta_file.write('>%s\n' % fasta_id)
Expand Down

0 comments on commit e3cda23

Please sign in to comment.