Skip to content

Commit 65a8c1f

Browse files
committed
minor change to code layout
1 parent e4ecc4a commit 65a8c1f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

panaroo/generate_alignments.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,11 @@ def output_dna_and_protein(node, isolate_list, temp_directory, outdir,
143143
#only output genes with more than one isolate in them
144144
if isolate_no > 1:
145145
#set filename to gene name
146-
prot_outname = temp_directory + node["name"] + ".fasta"
147146
if len(prot_outname) >= 237:
148147
fastafilename = node["name"][:236]
149-
prot_outname = temp_directory + fastafilename + ".fasta"
150148
else:
151149
fastafilename = node["name"]
150+
prot_outname = temp_directory + fastafilename + ".fasta"
152151
dna_outname = outdir + "unaligned_dna_sequences/" + fastafilename + ".fasta"
153152
#Write them to disk time
154153
SeqIO.write(output_protein, prot_outname, 'fasta')

0 commit comments

Comments
 (0)