-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement FlowSample on top of AxisArrays (#15)
* Rewriting of tests and addition of indexing interface tests The existing tests have been rewritten to take their test data from local files instead of attempting to download them --- the urls were broken. The large file test has been deleted. New tests have been added for: - the key-based indexing of channels, which is existing functionality - the key-based indexing of multiple channels, which is to be implemented - the integer indexing of individual samples, which is to be implemented - the collection of integer indexing of multiple samples, which is to be implemented * Implements different kinds of indexing for FlowSample Multiple channels can be indexed using a Vector of Strings Individual samples can be indexed using an Integer Multiple samples can be indexed using a Vector of Integers * Changing course to wrap AxisArray with FlowSample I realised I was just rewriting the implementation of AxisArray. This commit introduces the tests for a new FlowSample struct which is a simple wrapper for AxisArray with some params attached. AxisArray performance is supposed to be good, the interface doesn't have to change, and they can easily be converted to matrices as needed by GigaSOM. * Wrapped the AxisArray in FlowSample These changes add lots of indexing options for FlowSamples. I have tried to keep backwards compatibility with the old FlowSample, I think we have it, but cannot be absolutely certain. * Change range call in testsuite to be Julia 1.6 compatible * CompatHelper: add new compat entry for "AxisArrays" at version "0.4" * Requested changes The axes of the FlowSample data are now called :param and :event size calls refactored to include dimension version bumped Base.axes redefined to call out to AxisArrays versions Tests for large file added back in * Deletes mistakenly commited HTML file * Tests for iteration Iterate just forwards the method to AxisArrays * Quick fix of missing keyword in runtests.jl * Deprecates params and data A warning is emitted when the user tries to access params or data directly. Tests for these warnings are also added. * Adds dot syntax access to FCS keywords in params FCS TEXT segment keywords can now be accessed using the dot syntax. E.g. `flowrun.par` retrieves the "\$PAR" keyword value. Dot syntax access to `data` and `params` throws deprecation warnings. `Base.propertynames` produces a list of the keywords for the `FlowSample`. This commit adds tests for these features also. * Add AxisArrays.axisnames definition * Fix compatibility with julia 1.6 regex * Add @static to tests for testing getproperty in julia <v1.8 * Update README with indexing examples * Increment major version * Code formatting README * Fix version number mistake Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
3663d41
commit 5c28a71
Showing
6 changed files
with
405 additions
and
25 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
name = "FCSFiles" | ||
uuid = "d76558cf-badf-52d4-a17e-381ab0b0d937" | ||
version = "0.1.5" | ||
version = "0.2.0" | ||
|
||
[deps] | ||
AxisArrays = "39de3d68-74b9-583c-8d2d-e117c070f3a9" | ||
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549" | ||
|
||
[compat] | ||
AxisArrays = "0.4" | ||
FileIO = "1" | ||
julia = "1" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
module FCSFiles | ||
|
||
using FileIO | ||
using AxisArrays | ||
const axes = Base.axes | ||
|
||
include("type.jl") | ||
include("utils.jl") | ||
|
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
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
Oops, something went wrong.
5c28a71
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
5c28a71
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/71512
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: