Showing 376 of 791 total issues
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self,
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self,
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self,
Function is_equal
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def is_equal(self, other,
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self,
Function many_to_many
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def many_to_many(self, collection_str1='metabolites_meta',
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self,
Avoid deeply nested control flow statements. Open
Open
if locus_tag in list_locus_tags:
locus_tag = "{}_variation".format(locus_tag)
list_locus_tags.append(locus_tag)
Avoid deeply nested control flow statements. Open
Open
if form.seq[i_monomer - 1] == monomers[seq[i_monomer - 1]]:
set_monomer = True
form.seq[i_monomer - 1] = monomer2
break
if not set_monomer:
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, MongoDB=None,
Avoid deeply nested control flow statements. Open
Open
if numpy.isinf(start_position):
protein['modified_errors'].append('Sequence does not contain residues {} for modification {}'.format(
', '.join(origin), modification['monomer']))
else:
monomer2.start_position = start_position
Avoid deeply nested control flow statements. Open
Open
if i % 100 == 0 and self.verbose:
print(" Adding kinlaw_id {} into uniprot collection.".format(kinlaw_id))
self.collection.update_one({'uniprot_id': uniprot_id},
Function normalize_parameter_value
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def normalize_parameter_value(self, name, type, value, error, units, enzyme_molecular_weight):
Avoid deeply nested control flow statements. Open
Open
if monomer is None:
unsupported_codes.add(code)
monomer = bpforms.Monomer(id=code)
else:
monomer_codes[code] = monomer
Avoid deeply nested control flow statements. Open
Open
if characteristic.category.lower() in SYNONYMS_PRIORITY_LIST[i]:
try:
strain = "{}".format(characteristic.value)
except UnicodeEncodeError:
pass
Avoid deeply nested control flow statements. Open
Open
if max_num_proteins is not None and len(proteins) >= max_num_proteins:
break
protein = {}
Avoid deeply nested control flow statements. Open
Open
if not set_monomer:
protein['modified_errors'].append('Unable to set monomeric form')
# crosslinks
if protein['processing']:
Avoid deeply nested control flow statements. Open
Open
if org_name.startswith(format_org_name(try_org)):
kegg_org_symbol = thing.split(' ')[0]
url = get_ref_seq_url(kegg_org_symbol)
spec_name = org_name.replace("-","_").replace(" ", "_")
full_strain_specificity ==True
Avoid deeply nested control flow statements. Open
Open
if monomer is None:
unsupported_codes.add(code)
monomer = bpforms.Monomer(id=code)
else:
monomer_codes[code] = monomer
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self,