1.3.0 #272
whitews
announced in
Announcements
1.3.0
#272
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
FlowKit 1.3.0 is finally released! Major updates include support for NumPy 2+, OLS spectral compensation, and continuing to make the API more consistent. Please update your code if you rely on the
Sample.get_events()method to ensure you are retrieving the correct channel events. This method was changed to take channel label (or number) and not the channel index, consistent with otherSamplemethods.Thanks to everyone who contributed to this release!
New features:
SpectralMatrixclass for OLS spectral compensation.Workspaceclass now supports OLS spectral compensation matrices for FlowJo 10 .wsp files.Workspacemethodarchive_results()for exporting analyzed datato Feather files (see method docstring for more details).
Workspaceconstructor keyword argumentfilename_as_idfor using FCS filesystem names for the sample id instead of the FCS $FIL metadata keyword (the default).col_orderadded toSample.get_events()method for specifying the column order and/or the subset of columns of channel data returned.Sampleconstructor keyword argumentuse_flowjo_labelsto convert PnN labels to FlowJo compatible labels (FlowJo substitutes any '/' characters for '_').use_flowjo_labelsto utility functionload_samples()as a pass-through to theSampleclass (see above description).compensationto utility functionload_samples()as a pass-through to theSampleclass for specifying a compensation matrix to be applied to all loaded FCS files.null_channel_listto utility functionload_samples()as a pass-through to theSampleclass for specifying a list of null channels to be applied to all loaded FCS files.load_samples().widthandheightfor controlling figure size.hist_binsoption toplot_gate()method in bothSession&Workspaceclasses to control histogram bins (thanks to @takashi-yamanashi for the suggestion, see Feature Request: Custom Bin Settings for plot_gate Function #249).extract_fcs_metadatafor retrieving FCS metadata without parsing event data, significantly speeds up loading files for this use case (thanks to @salmansamson for the suggestion, see "only_text" import of FCS metadata in FlowKit? #270).API changes:
Sampleclass constructor keyword argumentcache_original_eventswas replaced by thepreprocessargument. Thepreprocessargument controls whether preprocessing is applied to the 'raw' data (retrievable via theSample.get_events()method withsource='raw'). See theSampleclass docstring for more information.origfor retrieving events in variousSamplemethods via thesourceargument is no longer valid. To retrieve unprocessed events set theSamplekeyword argumentpreprocessto False and use thesource='raw'option for event retrieval methods.Sampleattributeis_preprocessedfor determining whether a Sample instance was loaded with or without preprocessing.Samplemethodget_channel_events()to take channel label (or number) and not the channel index, consistent with otherSamplemethods. Please update your code if you rely on this method to ensure you are retrieving the correct channel events.read_multi_dataset_fcs()optioncache_original_eventswas replaced withpreprocess. This reflects the same change in theSampleclass described above.Workspacekeyword argumentignore_missing_filestoload_missing_file_data(thanks to @ksebby for the suggestion, see Rename Workspace kwargignore_missing_filestoload_missing_file_data#230).GatingResultsDataFrames from 'sample' to 'sample_id' (avoids confusion with the Pandas DataFrame.sample() method)GatingResultsreport 'level', now indexed at 1, not 0 (base level of 1 is not root, but an actual gate).Bug fixes:
QuadrantGate. This previously failed to update the Quadrant 'id' andQuadrantGate'quadrant' key (see Error when Renaming Quadrant in FlowKit #243)Sampleclass ifchannel_labelskeyword argument is not specified when creating aSampleinstance from a NumPy array (thanks to @chillerb for PR add channel_labels check for creating Sample from ndarray #263)Documentation:
generate_transforms()is now included in the ReadTheDocs documentation.Dependencies:
Workspaceresults to Feather files.This discussion was created from the release 1.3.0.
Beta Was this translation helpful? Give feedback.
All reactions