kevinhu / cancer_data

A unified downloader+preprocessor for cancer genomics datasets
https://cancer_data.kevinhu.io
MIT License
14 stars 7 forks source link

Add DepMap combined RNAi dataset (Sourcery refactored) #35

Closed sourcery-ai[bot] closed 3 years ago

sourcery-ai[bot] commented 3 years ago

Pull Request #34 refactored by Sourcery.

Since the original Pull Request was opened as a fork in a contributor's repository, we are unable to create a Pull Request branching from it.

To incorporate these changes, you can either:

  1. Merge this Pull Request instead of the original, or

  2. Ask your contributor to locally incorporate these commits and push them to the original Pull Request

    Incorporate changes via command line
    git fetch https://github.com/kevinhu/cancer_data pull/34/head
    git merge --ff-only FETCH_HEAD
    git push

NOTE: As code is pushed to the original Pull Request, Sourcery will re-run and update (force-push) this Pull Request with new refactorings as necessary. If Sourcery finds no refactorings at any point, this Pull Request will be closed automatically.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

sourcery-ai[bot] commented 3 years ago

Sourcery Code Quality Report

✅  Merging this PR will increase code quality in the affected files by 1.26%.

Quality metrics Before After Change
Complexity 1.96 ⭐ 1.15 ⭐ -0.81 👍
Method Length 57.48 ⭐ 58.60 ⭐ 1.12 👎
Working memory 8.39 🙂 8.34 🙂 -0.05 👍
Quality 74.20% 🙂 75.46% 1.26% 👍
Other metrics Before After Change
Lines 787 817 30
Changed files Quality Before Quality After Quality Change
cancer_data/processors/depmap.py 80.42% ⭐ 79.72% ⭐ -0.70% 👎
cancer_data/processors/tcga.py 68.10% 🙂 70.31% 🙂 2.21% 👍

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
cancer_data/processors/tcga.py tcga_splicing 7 ⭐ 260 ⛔ 13 😞 42.69% 😞 Try splitting into smaller methods. Extract out complex expressions

Legend and Explanation

The emojis denote the absolute quality of the code:

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Let us know what you think of it by mentioning @sourcery-ai in a comment.