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

graph conn #61

Merged
merged 4 commits into from
Dec 9, 2022
Merged

graph conn #61

merged 4 commits into from
Dec 9, 2022

Conversation

adamgayoso
Copy link
Member

Fixes #11

@codecov
Copy link

codecov bot commented Dec 9, 2022

Codecov Report

Merging #61 (29df7c0) into main (87439c0) will increase coverage by 0.25%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #61      +/-   ##
==========================================
+ Coverage   90.00%   90.25%   +0.25%     
==========================================
  Files          17       18       +1     
  Lines         570      585      +15     
==========================================
+ Hits          513      528      +15     
  Misses         57       57              
Flag Coverage Δ
unittests 90.25% <100.00%> (+0.25%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/scib_metrics/__init__.py 100.00% <100.00%> (ø)
src/scib_metrics/_graph_connectivity.py 100.00% <100.00%> (ø)

@adamgayoso adamgayoso requested a review from justjhong December 9, 2022 03:28
Parameters
----------
X
Array of shape (n_cells, n_cells) with non-zero values
Copy link
Contributor

Choose a reason for hiding this comment

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

do you want to assert the k nearest neighbors?

Copy link
Member Author

Choose a reason for hiding this comment

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

left as a todo as we have to make global utils for this

tab = pd.value_counts(comps)
clust_res.append(tab.max() / sum(tab))

return np.mean(clust_res)
Copy link
Contributor

Choose a reason for hiding this comment

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

the cell types are weighted equally regardless of the proportions?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah.... :(

@adamgayoso adamgayoso merged commit 6177ffe into main Dec 9, 2022
@adamgayoso adamgayoso deleted the graph_con branch December 9, 2022 20:52
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.

Implement graph connectivity
2 participants