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
Speed upgrade - Refactor generate network #152
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fix issue with querier
deprecate distance
make generate network more verbose
Codecov Report
@@ Coverage Diff @@
## master #152 +/- ##
==========================================
+ Coverage 73.41% 79.03% +5.61%
==========================================
Files 22 44 +22
Lines 5748 7245 +1497
==========================================
+ Hits 4220 5726 +1506
+ Misses 1528 1519 -9
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
does this work?
formatting
formatting
fix typo
faster way to build the matrix
simplify the membership construction
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bug fixes and Improvements
generate_network
.distance
slot is removed and is now directly stored/converted from the.graph
slot.compute_layout: bool = True
. If dataset is too large,generate_layout
can be switched toFalse
in which case only thenetworkx
graph is returned. The data can still be visualised later withscirpy's
plotting method (see below).layout_method: Literal['sfdp', 'mod_fr'] = 'sfdp'
. New default uses the ultra-fast C++ implementedsfdp_layout
algorithm ingraph-tools
to generate final layout.sfdp
stands for Scalable Force Directed Placement.gamma
alone doesn't really seem to do much.layout_method = 'mod_fr'
. Requires a separate installation ofgraph-tool
via conda (not managed by pip) as it has several C++ dependencies.generate_network
to run last.min_size
was doing the opposite previously and this is now fixed. [BUG] min_size in generate_network #155transfer
scirpy
can use to generate the plots Using own distance matrix for clonotype_network scverse/scirpy#286productive
toproductive_status
.germline
#154filter_contigs
initialise_metadata
.Dandelion
should now initialise and read faster.load_data
will renameumi_count
toduplicate_count
Query
Dandelion
will be ordered based on productive first, then followed by umi count (largest to smallest).Breaking Changes
initialise_metadata/update_metadata/Dandelion
.metadata
which were probably bloated and not used.vdj_status
andvdj_status_summary
removed and replaced withrearrangement_VDJ_status
andrearrange_VJ_status
constant_status
andconstant_summary
removed and replaced withconstant_VDJ_status
andconstant_VJ_status
.productive
andproductive_summary
combined and replaced withproductive_status
.locus_status
andlocus_status_summary
combined and replaced withlocus_status
.isotype_summary
replaced withisotype_status
.unassigned
or''
has been changed to :str:None
in.metadata
.NoneType
as there's quite a bit of text processing internally that gets messed up if swapped.No_contig
will still be populated after transfer toAnnData
to reflect cells with no TCR/BCR info.Minor changes
read_h5/write_h5
. Use ofread_h5ddl/write_h5ddl
will be enforced in the next update.