-
Notifications
You must be signed in to change notification settings - Fork 11
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 merging error #91
Conversation
There's a very ugly chunk of code (https://github.com/danilexn/spacemake/blob/0a10d9c15c8b83ee47c983c31817822c17a5caad/spacemake/snakemake/main.smk#L590-L627), which I had to add such that the puck collection can be generated for meshed and non-meshed data. I'm sure there are more elegant alternatives, but I think this would require changing some of the variables/wildcards. Please feel free to commit some code if you find an alternative, thanks! 😄 |
Tested locally with real openst data, works like a charm, also for meshed. (Just pump the version if you haven't :) ) |
@nukappa I have noticed that when using two run modes (e.g., one that meshes and other that doesn't) within the same sample, the QC reports fail. I am debugging this (the fix will also apply to #95), then I will let you know. This only happens for the I would ask you to run a test for such use-case when I commit the fix, thanks in advance! After this, we can merge this PR. |
Dear Daniel, the code looks very nice to me. Thanks for fixing these issues. Regarding the test-data, I am somewhat hesitant to pull 10MB of genome and annotation, when we already have small test genomes and annotation. Can we perhaps re-use that? Also, I would highly appreciate if we could have a unit test in sth like |
Re-tested this with a fresh env/install and the QC sheets didn't compile. It's not that the jobs failed, but there were no rules to begin with. Will investigate and report back. |
Update: issue might be due to different |
Hi Marvin! Good point, I am updating to use the small genome+annotation, and writing some additional tests. I will keep the tests for the fast-cmdline branch, because this is just a bugfix against the current master. |
I've updated the test data (so it uses the tiny genome now), it runs fine (except for some sporadic issues in QC sheets, because there's only 1 spatial cell and there are problems with the x/y limits -> maybe open a separate issue?). Also, works Open-ST mouse data (one tile, multiple tiles, multiple tiles + non-matching tiles, without tiles to simulate sc data). I added some additional validations for the |
Testing locally with a small set of 10mln + 10mln reads in a
|
Nikos and I re-tested this, and the comments on test data were addressed. Unit testing will be added into the fast-cmdline branch, so I merge this PR that implements the bugfix, as merging does not work as advertised in current spacemake. |
This PR fixes #69.
There were several bugs contributing to the
MissingInputException
when trying to run sample merging:Additionally, these features/fixes were implemented:
adata.X.sum() == 0
).I tested this branch with the tiny test data, with and without meshing, with and without puck collection - using all defaults. Also, with in-house (Open-ST) mouse data.