Skip to content

Commit

Permalink
Merge branch 'master' of github.com:gtonkinhill/panaurus
Browse files Browse the repository at this point in the history
  • Loading branch information
gtonkinhill committed Jan 28, 2020
2 parents a40a128 + 3860364 commit a046de8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions panaroo/generate_alignments.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ def output_sequence(node, isolate_list, temp_directory, outdir):
output_sequences = (x for x in output_sequences)
#set filename to gene name
outname = temp_directory + node["name"] + ".fasta"
#check to see if filename is too long
if len(outname) >= 248:
outname = outname[:248] + ".fasta"
#Write them to disk
SeqIO.write(output_sequences, outname, 'fasta')
return outname
Expand Down

0 comments on commit a046de8

Please sign in to comment.