Skip to content

Commit

Permalink
FIX : Cope with lowercase fasta files. Fixes #24.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adelme Bazin committed Nov 14, 2019
1 parent 42a1556 commit 043f96c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.4
4 changes: 2 additions & 2 deletions ppanggolin/annotate/synta.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@ def read_fasta(org, fnaFile):
for line in fnaFile:
if line.startswith('>'):
if contig_seq != "":
contigs[contig.name] = contig_seq
contigs[contig.name] = contig_seq.upper()
contig_seq = ""
contig = org.getOrAddContig(line.split()[0][1:])
else:
contig_seq += line.strip()
# processing the last contig
if contig_seq != "":
contigs[contig.name] = contig_seq
contigs[contig.name] = contig_seq.upper()
return contigs

def write_tmp_fasta(contigs, tmpdir ):
Expand Down

0 comments on commit 043f96c

Please sign in to comment.