KarrLab/datanator

View on GitHub

Showing 791 of 791 total issues

Similar blocks of code found in 11 locations. Consider refactoring.
Open

                if taxon_doc!=None:
                    for j in range(len(taxon_doc["canon_anc_names"])):
                        d = {}
                        d["ncbi_taxonomy_id"] = taxon_doc["canon_anc_ids"][j]
                        d["name"] = taxon_doc["canon_anc_names"][j]
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 121..126
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 195..200
datanator/data_source/protein_half_lives/victoria_parse_mouse_global_quantification.py on lines 225..230
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 126..131
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 257..262
datanator/data_source/protein_half_lives/victoria_parse_quantification_budding_yeast_proteome.py on lines 98..103
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 139..144
datanator/data_source/protein_localization/victoria_insert_experimental_protein.py on lines 101..106
datanator/data_source/protein_localization/victoria_insert_protein_atlas.py on lines 198..203
datanator/data_source/rna_localization/victoria_parse_LncAtlas.py on lines 130..135

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 102.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

        if doc!=None:
            for j in range(len(doc["canon_anc_names"])):
                d={}
                d["ncbi_taxonomy_id"]=doc["canon_anc_ids"][j]
                d["name"]=doc["canon_anc_names"][j]
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 121..126
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 195..200
datanator/data_source/protein_half_lives/victoria_parse_mouse_global_quantification.py on lines 225..230
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 126..131
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 257..262
datanator/data_source/protein_half_lives/victoria_parse_quantification_budding_yeast_proteome.py on lines 98..103
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 139..144
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 223..228
datanator/data_source/protein_localization/victoria_insert_experimental_protein.py on lines 101..106
datanator/data_source/rna_localization/victoria_parse_LncAtlas.py on lines 130..135

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 102.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

        if doc!=None:
            for j in range(len(doc["canon_anc_names"])):
                d = {}
                d["ncbi_taxonomy_id"] = doc["canon_anc_ids"][j]
                d["name"] = doc["canon_anc_names"][j]
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 121..126
datanator/data_source/protein_half_lives/victoria_parse_mouse_global_quantification.py on lines 225..230
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 126..131
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 257..262
datanator/data_source/protein_half_lives/victoria_parse_quantification_budding_yeast_proteome.py on lines 98..103
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 139..144
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 223..228
datanator/data_source/protein_localization/victoria_insert_experimental_protein.py on lines 101..106
datanator/data_source/protein_localization/victoria_insert_protein_atlas.py on lines 198..203
datanator/data_source/rna_localization/victoria_parse_LncAtlas.py on lines 130..135

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 102.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

        if doc!=None:
            for j in range(len(doc["canon_anc_names"])):
                d = {}
                d["ncbi_taxonomy_id"] = doc["canon_anc_ids"][j]
                d["name"] = doc["canon_anc_names"][j]
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 121..126
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 195..200
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 126..131
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 257..262
datanator/data_source/protein_half_lives/victoria_parse_quantification_budding_yeast_proteome.py on lines 98..103
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 139..144
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 223..228
datanator/data_source/protein_localization/victoria_insert_experimental_protein.py on lines 101..106
datanator/data_source/protein_localization/victoria_insert_protein_atlas.py on lines 198..203
datanator/data_source/rna_localization/victoria_parse_LncAtlas.py on lines 130..135

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 102.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

        if doc!=None:
            for j in range(len(doc["canon_anc_names"])):
                d = {}
                d["ncbi_taxonomy_id"] = doc["canon_anc_ids"][j]
                d["name"] = doc["canon_anc_names"][j]
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 121..126
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 195..200
datanator/data_source/protein_half_lives/victoria_parse_mouse_global_quantification.py on lines 225..230
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 126..131
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 257..262
datanator/data_source/protein_half_lives/victoria_parse_quantification_budding_yeast_proteome.py on lines 98..103
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 139..144
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 223..228
datanator/data_source/protein_localization/victoria_insert_experimental_protein.py on lines 101..106
datanator/data_source/protein_localization/victoria_insert_protein_atlas.py on lines 198..203

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 102.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

        if doc!=None:
            for j in range(len(doc["canon_anc_names"])):
                d={}
                d["ncbi_taxonomy_id"]=doc["canon_anc_ids"][j]
                d["name"]=doc["canon_anc_names"][j]
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 121..126
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 195..200
datanator/data_source/protein_half_lives/victoria_parse_mouse_global_quantification.py on lines 225..230
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 126..131
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 257..262
datanator/data_source/protein_half_lives/victoria_parse_quantification_budding_yeast_proteome.py on lines 98..103
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 139..144
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 223..228
datanator/data_source/protein_localization/victoria_insert_protein_atlas.py on lines 198..203
datanator/data_source/rna_localization/victoria_parse_LncAtlas.py on lines 130..135

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 102.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

        if doc!=None:
            for j in range(len(doc["canon_anc_names"])):
                d = {}
                d["ncbi_taxonomy_id"] = doc["canon_anc_ids"][j]
                d["name"] = doc["canon_anc_names"][j]
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 121..126
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 195..200
datanator/data_source/protein_half_lives/victoria_parse_mouse_global_quantification.py on lines 225..230
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 126..131
datanator/data_source/protein_half_lives/victoria_parse_quantification_budding_yeast_proteome.py on lines 98..103
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 139..144
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 223..228
datanator/data_source/protein_localization/victoria_insert_experimental_protein.py on lines 101..106
datanator/data_source/protein_localization/victoria_insert_protein_atlas.py on lines 198..203
datanator/data_source/rna_localization/victoria_parse_LncAtlas.py on lines 130..135

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 102.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

        if doc!=None:
            for j in range(len(doc["canon_anc_names"])):
                d = {}
                d["ncbi_taxonomy_id"] = doc["canon_anc_ids"][j]
                d["name"] = doc["canon_anc_names"][j]
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 195..200
datanator/data_source/protein_half_lives/victoria_parse_mouse_global_quantification.py on lines 225..230
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 126..131
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 257..262
datanator/data_source/protein_half_lives/victoria_parse_quantification_budding_yeast_proteome.py on lines 98..103
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 139..144
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 223..228
datanator/data_source/protein_localization/victoria_insert_experimental_protein.py on lines 101..106
datanator/data_source/protein_localization/victoria_insert_protein_atlas.py on lines 198..203
datanator/data_source/rna_localization/victoria_parse_LncAtlas.py on lines 130..135

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 102.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

        if doc!=None:
            for j in range(len(doc["canon_anc_names"])):
                d = {}
                d["ncbi_taxonomy_id"] = doc["canon_anc_ids"][j]
                d["name"] = doc["canon_anc_names"][j]
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 121..126
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 195..200
datanator/data_source/protein_half_lives/victoria_parse_mouse_global_quantification.py on lines 225..230
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 257..262
datanator/data_source/protein_half_lives/victoria_parse_quantification_budding_yeast_proteome.py on lines 98..103
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 139..144
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 223..228
datanator/data_source/protein_localization/victoria_insert_experimental_protein.py on lines 101..106
datanator/data_source/protein_localization/victoria_insert_protein_atlas.py on lines 198..203
datanator/data_source/rna_localization/victoria_parse_LncAtlas.py on lines 130..135

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 102.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

        if doc!=None:
            for j in range(len(doc["canon_anc_names"])):
                d = {}
                d["ncbi_taxonomy_id"] = doc["canon_anc_ids"][j]
                d["name"] = doc["canon_anc_names"][j]
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 121..126
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 195..200
datanator/data_source/protein_half_lives/victoria_parse_mouse_global_quantification.py on lines 225..230
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 126..131
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 257..262
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 139..144
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 223..228
datanator/data_source/protein_localization/victoria_insert_experimental_protein.py on lines 101..106
datanator/data_source/protein_localization/victoria_insert_protein_atlas.py on lines 198..203
datanator/data_source/rna_localization/victoria_parse_LncAtlas.py on lines 130..135

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 102.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

        if doc!=None:
            for j in range(len(doc["canon_anc_names"])):
                d = {}
                d["ncbi_taxonomy_id"] = doc["canon_anc_ids"][j]
                d["name"] = doc["canon_anc_names"][j]
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 121..126
datanator/data_source/protein_half_lives/victoria_parse_column_k0_mouse_brain.py on lines 195..200
datanator/data_source/protein_half_lives/victoria_parse_mouse_global_quantification.py on lines 225..230
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 126..131
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 257..262
datanator/data_source/protein_half_lives/victoria_parse_quantification_budding_yeast_proteome.py on lines 98..103
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 223..228
datanator/data_source/protein_localization/victoria_insert_experimental_protein.py on lines 101..106
datanator/data_source/protein_localization/victoria_insert_protein_atlas.py on lines 198..203
datanator/data_source/rna_localization/victoria_parse_LncAtlas.py on lines 130..135

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 102.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

                    self.obs_col.update_one(query,
                                        {"$set": {"entity": obs["entity"],
                                                  "genotype": obs["genotype"],
                                                  "environment": obs["environment"],
                                                  "schema_version": "2.0",
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 316..323
datanator/data_source/protein_half_lives/victoria_parse_quantification_budding_yeast_proteome.py on lines 148..155

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 102.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

                self.obs_col.update_one(query,
                                    {"$set": {"entity": obs["entity"],
                                              "genotype": obs["genotype"],
                                              "environment": obs["environment"],
                                              "schema_version": "2.0",
datanator/data_source/protein_half_lives/victoria_parse_proteome_half_lives.py on lines 316..323
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 307..314

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 102.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

                self.obs_col.update_one(query,
                                        {"$set": {"entity": obs_s4["entity"],
                                                  "genotype": obs_s4["genotype"],
                                                  "environment":obs_s4["environment"],
                                                  "schema_version": "2.0",
datanator/data_source/protein_half_lives/victoria_parse_quantification_budding_yeast_proteome.py on lines 148..155
datanator/data_source/protein_half_lives/victoria_parse_yeast_global_proteome_turnover.py on lines 307..314

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 102.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Function inchi_to_inchikey has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring.
Open

    def inchi_to_inchikey(self, szINCHISource):
        '''
            fork from git@github.com:mnowotka/chembl_ikey.git
        '''
        flagstd = 'S'
Severity: Minor
Found in datanator/util/chem_util.py - About 6 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    def __init__(self,
                 MongoDB=None,
                 db=None,
                 collection=None,
                 username=None,
datanator/data_source/rna_localization/victoria_parse_LncAtlas.py on lines 8..22

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 99.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    def __init__(self,
                 MongoDB=None,
                 db=None,
                 collection=None,
                 username=None,
datanator/data_source/protein_half_lives/victoria_parse_quantification_budding_yeast_proteome.py on lines 7..21

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 99.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    def data_from_mongo_kegg_orthology(self, server, db, username, password, verbose=False,
                                readPreference='nearest', authSource='admin',
                                query={}, collection_str='kegg_orthology'):
        ''' Acquire documents from protein collection in datanator

Severity: Major
Found in datanator/elasticsearch_kl/batch_load.py and 1 other location - About 5 hrs to fix
datanator/elasticsearch_kl/batch_load.py on lines 193..220

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    def data_from_mongo(self, server, db, username, password, verbose=False,
                                readPreference='nearest', authSource='admin',
                                query={}, collection_str='rna_halflife_new'):
        ''' Acquire documents from protein collection in datanator

Severity: Major
Found in datanator/elasticsearch_kl/batch_load.py and 1 other location - About 5 hrs to fix
datanator/elasticsearch_kl/batch_load.py on lines 222..250

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    def data_from_mongo_sabiork(self, server, db, username, password, verbose=False,
                                readPreference='nearest', authSource='admin', projection={'_id': 0},
                                query={}):
        ''' Acquire documents from protein collection in datanator

Severity: Major
Found in datanator/elasticsearch_kl/batch_load.py and 1 other location - About 5 hrs to fix
datanator/elasticsearch_kl/batch_load.py on lines 31..58

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 96.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language