-
Notifications
You must be signed in to change notification settings - Fork 21
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
cf_append_cols does not work for empty cytoframes #342
Comments
Hey @DillonHammill, sorry for the delay. Thanks for catching this. The problem is arising from the armadillo matrix coercion, which won't handle a zero-extent dimension resulting in an empty matrix. I forgot about this edge case of an empty/flat dimension when I was hooking in |
Turns out it was even easier than that. The empty matrix is not a problem on its own. The error was actually arising from the usage of As a side note, we still need to add support for construction of
but rather should just be able to do this:
It's not yet implemented but it should be an easy addition. |
Thank @jacobpwagner, I appreciate your help. I was also wondering if a cytoset to cytoframe coercion method is in the pipeline? Please correct me if I am wrong but currently I have to coerce to a flowFrame. |
By a Just out of curiosity and to guide development, what is your use case? |
Yes that is correct. I often perform these coercion operations within CytoExploreR so it would be great if it was supported. For example, when performing dimension reduction, I coerce the flowSet/cytoset to a single flowFrame/cytoframe before extracting the matrix and passing it to the dimension reduction algorithm. The nice thing about coercing in this way is that it is easy to keep track of which events came from which cytoframe so that the data can be split afterwards. In fact I actually barcode each of the cytoframes using I also have support for merging flowSets/cytosets into a list of flowFrames/cytoframes based on experimental variables in I prefer to have the data stored within a cytoframe container instead of dealing with matrices separately, its make the code harder to follow and more difficult to debug. Not mention the duplication of the raw data as I would need to keep the cytoframes as well to extract additional information from them. I guess in the meantime, I could do the following?
I am just trying to make sure that I am always dealing with cytoframes/cytosets now and I think this is only place where flowFrames are still popping up. I am not removing support for flowFrames/flowSets but instead favouring cytosets/cytoframes. |
Thanks. That helps a bunch and is along the lines of what I expected. It just helps to have some end use cases in the back of my mind as I work on it. I will probably add support for arbitrarily appending rows to For now, yeah, you'll probably have to do as you described: |
@DillonHammill , I've made #348 to track feature additions for |
Thanks @jacobpwagner! |
@mikejiang & @jacobpwagner, I am able to add parameters to empty flowFrames through
fr_append_cols
as described below:cf_append_cols
doesn't do the same for cytoframes:I see that some changes were made recently to
cf_append_cols
. Please disregard this issue if it has already been fixed, I am using the latest version offlowWorkspace
- 4.1.8 so I don't think that this has been addressed yet.Thanks for your help!
Dillon
The text was updated successfully, but these errors were encountered: