Skip to content

Commit

Permalink
workaround for biopython issue #616
Browse files Browse the repository at this point in the history
due to issue
biopython/biopython#616
the genbak file in output is not alaways recognize as genebank by
squizz.
thus integronfinger take care that SeqREcord description property
ends with a period.
  • Loading branch information
bneron committed Sep 21, 2015
1 parent de04ac8 commit 837d71c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions integron_finder
Expand Up @@ -1618,6 +1618,8 @@ Please install prodigal package or setup 'prodigal' binary path with --prodigal
integrons_describe.to_csv(os.path.join(out_dir_ok, outfile), sep="\t", index=0, fillna="NA")

to_gbk(integrons_describe, SEQUENCE)
if not SEQUENCE.description.endswith('.'):
SEQUENCE.description += '.'
SeqIO.write(SEQUENCE, os.path.join(out_dir_ok, replicon_name + ".gbk"), "genbank")
else:
out_f = open(os.path.join(out_dir_ok, outfile), "w")
Expand Down

0 comments on commit 837d71c

Please sign in to comment.