Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sourcery refactored master branch #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

sourcery-ai[bot]
Copy link

@sourcery-ai sourcery-ai bot commented May 14, 2020

Branch master refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

See our documentation here.

Run Sourcery locally

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

Review changes via command line

To manually merge these changes, make sure you're on the master branch, then run:

git fetch origin sourcery/master
git merge --ff-only FETCH_HEAD
git reset HEAD^

dispersion_measure = np.std(vector, ddof=1) * np.sqrt(n)
return dispersion_measure
return np.std(vector, ddof=1) * np.sqrt(n)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function dpm refactored with the following changes:

  • Inline variable that is only used once

Comment on lines -79 to +78
tbi = np.sum(w * vector) / np.sum(w)
return tbi
return np.sum(w * vector) / np.sum(w)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function tukey_biweight refactored with the following changes:

  • Inline variable that is only used once

Comment on lines -109 to +107
h = -1 * np.dot(p, np.log2(p))
return h
return -1 * np.dot(p, np.log2(p))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function entropy refactored with the following changes:

  • Inline variable that is only used once

Comment on lines -139 to +136
h = entropy(vector_p)
return h
return entropy(vector_p)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function roku refactored with the following changes:

  • Inline variable that is only used once

Comment on lines -171 to +167
jsd = np.sqrt(js)
return jsd
return np.sqrt(js)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function js_distance refactored with the following changes:

  • Inline variable that is only used once

Comment on lines -274 to +269
rs_transformed = rs / np.log2(n)
return rs_transformed
return rs / np.log2(n)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function roku_specificity refactored with the following changes:

  • Inline variable that is only used once

Comment on lines -306 to +300
tissue_specificity_index = vector / np.sum(vector)
return tissue_specificity_index
return vector / np.sum(vector)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function tsi refactored with the following changes:

  • Inline variable that is only used once

Comment on lines -345 to +338
zs_transformed = (zs + max_zs) / (2 * max_zs)
return zs_transformed
return (zs + max_zs) / (2 * max_zs)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function zscore refactored with the following changes:

  • Inline variable that is only used once

Comment on lines -410 to +402
spm_dispersion = dpm(spm_vector)
return spm_dispersion
return dpm(spm_vector)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function spm_dpm refactored with the following changes:

  • Inline variable that is only used once

Comment on lines -478 to +469
js_specificity_dispersion = dpm(js_vector)
return js_specificity_dispersion
return dpm(js_vector)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function js_specificity_dpm refactored with the following changes:

  • Inline variable that is only used once

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant