-
Notifications
You must be signed in to change notification settings - Fork 68
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
[WIP] BaristaSeq Notebook #1096
Closed
ambrosejcarr
wants to merge
69
commits into
ajc-local-search-blob-detector
from
ajc-baristaseq-notebook
Closed
[WIP] BaristaSeq Notebook #1096
ambrosejcarr
wants to merge
69
commits into
ajc-local-search-blob-detector
from
ajc-baristaseq-notebook
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
* adding todo's and comment about looping * reverting experiement.py" * example looping on allen test * adding travis wait * upping travis wait time * trying to free up mem in allen test * reverting mem thing * moving ecample to 3dsmFish * reverting tavis wait * regenerated notebooks
This gets rid of wonky recursive import problems like https://github.com/spacetx/starfish/pull/1043/files#r262371442.
Fix how we use starfish.display. remove assay_comparison.py
This should have been done in #1077.
1. Where tile shape is being used, we use a dict between axis and the size of the tile along that axis. 2. Where there is a contract for tile data, we indicate that the data should be row-major. Test plan: make -j fast
* make release targets and pbr-based versions * Revert pbr * versioneer-based versions * Use a str for __is_release_tag__ * Add Makefile help * Remove coverage files on clean * Parameterize DOCKER_IMAGE * Migrate metadata to setup.cfg * Add twine to ci requirements * Build release in a virtualenv * Add docs and a dirty check * Split release-docker * Fix release-upload formatting * Create changelog * Remove quotes from classifiers * Add newline to MANIFEST.in * make docs & helper targets * make release-tag and fix changelog * Re-order release sections * Add missing EDITOR and use '&&' * Add public methods to help * Clarify release-check wording
* enabled appending stack and/or spots to existing napari viewer in starfish.display() Co-Authored-By: kevinyamauchi <kevin.yamauchi@gmail.com>
* Add decoded spot class and related docs to hold gene, x, y, and z coordinate information for each spot. New object is generated from a Decoded IntensityTable.
Codecov Report
@@ Coverage Diff @@
## ajc-local-search-blob-detector #1096 +/- ##
==================================================================
- Coverage 76.45% 68.38% -8.07%
==================================================================
Files 221 128 -93
Lines 9890 4865 -5025
==================================================================
- Hits 7561 3327 -4234
+ Misses 2329 1538 -791
Continue to review full report at Codecov.
|
…1069) * adding ability to pass aligned group to Imagestack.from_path_or_url * fixing lint errors
For running pipeline recipes, we will need to refer to pipeline components by name. To facilitate that, we will adds a map between the pipeline component name and its implementing class. We mandate each PipelineComponent provide a name, and we source that from the same variable that defines the CLI command name. Test plan: see new test.
…ase (#1095) Rather than each specific PipelineComponent have a link to the AlgorithmBase that describes the contract that the algorithm must implement, each AlgorithmBase implementation points to the PipelineComponent that it serves. The current arrangement forces all the algorithms to be defined and evaluated in the interpreter before the pipeline component is defined and evaluated. If we want to create an algorithm that's only used in tests, this is not possible. The new arrangement ensures that any implementation of a specific AlgorithmBase is registered with its corresponding PipelineComponent. This adds explicit abstract classes to the AlgorithmBase class hierarchy to make it easier to detect what's an actual algorithm implementation. Depends on #1094 Test plan: `make -j fast`
* adding make clean docs to travis build
versioneer depends on the git tag being somewhere in the lineage of master. This updated procedure tries to get the tag into the lineage of master.
Test plan: `make docker`
1. Ensure that the algorithm base classes's `run()` method is consistent with the implementations. 2. Fix missing documentation. 3. Add `*args` to all the run methods such that the implementations' run methods can take additional parameters. Test plan: `make -j fast lint mypy`
This doesn't change often enough to justify running on every branch.
For example, starfish/test/experiment/builder/* is getting moved to starfish/experiment/builder/test. This simplifies navigation in the IDE, and also ensures we put the tests in the right place (c.f., all the filter tests in starfish/test/pipeline). Test plan: `make -j fast lint mypy`
Exclude the test files from the calculations of what code is covered. Also exclude the file that's autogenerated by versioneer.
This silences a harmless warning from pytest. pytest scrapes all files for methods and classes that start with test to try to run them as tests. This is not an actual test; instead, it's a class used in a test. Test plan: `pytest starfish/multiprocessing/test/test_multiprocessing.py`
Shapes are mappings from axes to axis size.
* remove code from IntensityTable.to_expression_matrix that references regions object produced by deleted code
Remove Registration pipeline component in favor or Learn and ApplyTransform
I'm going to build other click-related code, and want to keep them together. Remove the hack to suppress warnings because we don't check for F401 on `__init__.py` files. Test plan: `make -j lint mypy`
… arrays. (#1143) 1. blobs_image is, at the user's interaction level, an ImageStack. Internally, `starfish.spots._detector.detect.detect_spots` will convert it to a numpy array. This is to allow the code path where we don't have a reference image to continue taking advantage of ImageStack's apply/transform logic. 2. Because the way we generate the blobs_image (max projection) happens on different axes, it must be explicitly provided to `detect_spots`. 3. Other small and insignificant changes. Test plan: `make -j test run_notebooks`
Test plan: `make -j4 fast slow run-notebooks`
1. Normalize the run(..) method with the contract specified in SpotFinderAlgorithmBase. 2. Flag an error if someone tries to specify a blobs_image with LocalSearchBlobDetector. 3. Temporarily provide a `image_to_spots` method which the SpotFinderAlgorithmBase requires.
1. Improve documentation. 2. Properly type the `convert` method. Test plan: `make -j lint mypy`
Rather than download the dataset, we can now directly refer to the URL in the command line. The allen_smFISH and merfish cli tests still reference `get_cli_test_data.py`, but both tests are disabled. Test plan: `pytest -v -n4 starfish/test/full_pipelines/cli`
starfish/test/full_pipelines/cli/test_iss.py changed in #1083, but docs/source/usage/iss/iss_cli.sh was never updated.
1. Fix for starfish.display.stack being renamed to starfish.display. 2. substack should be stack. 3. Remove unneeded imports. 4. Use public API in notebooks `starfish.spots.SpotFinder.LocalSearchBlobDetector` instead of `starfish.spots._detector.local_search_blob_detector.LocalSearchBlobDetector`
I forgot to do this in #1150
This is needed as the memory requirements are too high.
1. `set_slice` will catch mismatched tile sizes, so we don't need that. 2. aggregate all the dtypes, and verify that len(data type kinds) == 1 and len(data type sizes) == 1. Test plan: `pytest -v -n4 starfish/imagestack`
* uses 3d smfish notebook as test case * no changes to logic of testing (the new script is untested!)
* adds gitignore keys for the output of sphinx-gallery, which are incorporated into the documentation in the source directory * adds additional galleries to docs/conf.py to render each of the data formatting examples and what were previously the notebooks * Does NOT remove the notebooks, but they can be removed once they are properly tested in their new .py form/home. * Makes minimal changes to the .py files to add docstrings to each data formatting and data processing example. These docstrings are needed by sphinx-gallery to add references to each file's header such that they can be linked to by the documentation. * Adds several WIP vignettes about how to use starfish to create an image processing pipeline * New makefile targets: run-examples, run__$(shell_script_name), and run__$(python_script_name) Examples: ``` % make run-examples % make run__iss_cli.sh % make run__iss_pipeline.py ```
ambrosejcarr
force-pushed
the
ajc-baristaseq-notebook
branch
from
April 10, 2019 19:10
8c7f7f5
to
0d4a479
Compare
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.
Next steps: