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

Fix travis #189

Merged
merged 20 commits into from Jul 1, 2020
Merged

Fix travis #189

merged 20 commits into from Jul 1, 2020

Conversation

amnona
Copy link
Collaborator

@amnona amnona commented Jun 30, 2020

Fix more travis warnings and pep8 stuff

  • in dsfdr nonzero correlation, fix warning when the feature is 0 on all samples or has 0 std (for example when present in 1 sample)
  • pep8 gives warning when variable name is "l"
  • added real testing to test_gui_interface instead of print :)

Copy link
Collaborator

@RNAer RNAer left a comment

Choose a reason for hiding this comment

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

looks good except one comment

if method == 'nonzerospearman':
sample_nonzero = sp.stats.rankdata(sample_nonzero)
label_nonzero = sp.stats.rankdata(label_nonzero)
sample_nonzero = sample_nonzero - np.mean(sample_nonzero)
label_nonzero = label_nonzero - np.mean(label_nonzero)
tstat[i] = np.dot(sample_nonzero, label_nonzero)
t[i] = np.abs(tstat[i])
if np.std(sample_nonzero) == 0:
continue
Copy link
Collaborator

Choose a reason for hiding this comment

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

can u combine it with the if on 275 line?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

less convenient since sample_nonzero is modified after the first if and before this if... and i think also will be less clear to understand if joined.

@RNAer RNAer merged commit 5309e32 into biocore:master Jul 1, 2020
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

2 participants