def fasta_records(files):
<EOL>file_records = dict()<EOL>for file_name, fasta in files.items():<EOL><INDENT>record_dict = SeqIO.to_dict(SeqIO.parse(fasta, "<STR_LIT>"))<EOL>file_records[file_name] = record_dict<EOL><DEDENT>return file_records<EOL>
Use SeqIO to create dictionaries of all records for each FASTA file
:param files: dictionary of stain name: /sequencepath/strain_name.extension
:return: file_records: dictionary of all contig records for all strains