mirror of
https://github.com/biopython/biopython.git
synced 2025-10-21 06:16:31 +08:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
committed by
Peter Cock
parent
8aaa7ffc41
commit
ed51b11450
@ -93,7 +93,7 @@ class ProteinAnalysis:
|
||||
It is not recalculated upon subsequent calls.
|
||||
"""
|
||||
if self.amino_acids_content is None:
|
||||
prot_dic = {k: 0 for k in IUPACData.protein_letters}
|
||||
prot_dic = dict.fromkeys(IUPACData.protein_letters, 0)
|
||||
for aa in prot_dic:
|
||||
prot_dic[aa] = self.sequence.count(aa)
|
||||
|
||||
|
@ -696,7 +696,7 @@ np.array([['C', 'T', 'G', 'G', 'C', 'G', 'T', 'C', 'C', 'G', 'G',
|
||||
filenames = set(filenames)
|
||||
n = len(filenames)
|
||||
self.assertEqual(n, 3)
|
||||
lengths = {filename: 0 for filename in filenames}
|
||||
lengths = dict.fromkeys(filenames, 0)
|
||||
for alignment in saved_alignments:
|
||||
for record in alignment.sequences:
|
||||
filename = record.id
|
||||
|
Reference in New Issue
Block a user