Skip to content
Snippets Groups Projects
Commit f056357a authored by rlapar's avatar rlapar
Browse files

filepath escape

parent a4ded428
No related branches found
No related tags found
1 merge request!8Generator
......@@ -43,6 +43,7 @@ def main(input_fasta, sketch_only, generate_from_fasta, baselength, number_of_it
if input_fasta:
sequences = list(SeqIO.parse(open(input_fasta), 'fasta'))
for sequence in sequences:
sequence.id = sequence.id.replace('/', '--')
seq_start_time = datetime.now()
print('Processing {}...'.format(sequence.id), end='\r')
try:
......@@ -80,4 +81,4 @@ def main(input_fasta, sketch_only, generate_from_fasta, baselength, number_of_it
print('Number of errors: {}'.format(number_of_errors))
if __name__ == '__main__':
main()
\ No newline at end of file
main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment