Repository navigation
Seurat v3 hvg implementation - #1204
Conversation
|
@ivirshup -- I still can't tell why Travis is failing. For some reason on Travis, loess is outputting a zero for the gene mentioned in the error message, but this doesn't happen locally for me. |
|
I think the inconsistency I'm seeing is that the loess function gives different results on my Mac than it does on linux. |
|
@ivirshup I'm not sure why this change makes it work, but looks like it works. Anyway, let me know how you would like to handle the repeated code for storing the outputs! Thanks. |
ivirshup
left a comment
There was a problem hiding this comment.
Just a quick review for the moment:
Could the repeated code just get put into a separate function?
I'm not sure I love the name. Could it be more descriptive of what it does?
I might leave a more in depth review to people more familiar with this code. @LuckyMD or @gokceneraslan do you think you could take a look at this?
Sorry, I don't think I will have time for this in the next 2 weeks. I'm finishing up a 2 larger projects atm. |
|
@ivirshup this should be good to go now. I don't thin Codacy failing has anything to do with my code. @gokceneraslan would you be able to review? |
gokceneraslan
left a comment
There was a problem hiding this comment.
It's an amazing contribution, thanks so much @adamgayoso. I added some comments.
|
@gokceneraslan why are the defaults for the main function all None (e.g., dispersion cutoffs)? It seems like if scanpydoc is picking up the defaults then we can make them not None and reduce some code? |
Honestly, I don't know. But @ivirshup also brought it up here #1180 (comment) and here #1180 (comment), I just didn't have time to address it. I am fine with making them not None. |
|
But I think scanpydoc is very confused now for some reason. Documentation build is broken, it's visible in |
|
There's a strange issue I'm having where the gene sets when combining from different batches are not equal between this code and Seurat v3. The problem appears to be due to the fact that many genes have the same normalized variance in a given batch and the merging method uses ranks. So I believe the difference is due to genes being sorted differently with the same normalized variance. Perhaps this merging scheme is not ideal. Otherwise, this PR is good to go. |
|
The docs should now be fixed on master. Updating the branch should fix that. I've added a commit to fix that formatting test. @adamgayoso could you compress the data files you're using for testing, and remove to uncompressed files from the git history? This is to keep the repo size as small as possible. Otherwise, @gokceneraslan were you happy with the state this PR is in? |
65368d2 to
6a9d731
Compare
|
I think I messed something up when trying to rewrite the history @ivirshup :( |
6a9d731 to
81f0217
Compare
|
There's one more little issue with nan warnings that I need to handle. |
|
Any ideas why doc build still fails? |
|
I believe the latest plotting PR broke it (#1210 (comment)) |
|
@ivirshup @gokceneraslan Do you have access to the error details for readthedocs? I get 'page does not exists' error |
|
@gokceneraslan @ivirshup just checking in on this. Will this be part of the next release? Do you need anything else from me? It might be nice to note somewhere that when
|
|
Looks good to me. I wish the batch_key option also worked well but we can improve it later on, I guess. Sorry for the delay. |
Minor update, just checking if the type is already an integer, and doing a faster check for positive values.
20ea3c4 to
c2f4692
Compare
|
Awesome, thanks for this! I've added something to the release notes, let me know if you'd like to say more. |
Fixes #993.