You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What exactly is the format of the cells argument in the function FeatureMatrix? I am passing the barcode names from CountFragments, and FeatureMatrix returns NULL.
In the example below, all barcodes that I am interested in filtering (target_cells) are present in the large matrix out_all. But whenever I pass cells = target_cells in FeatureMatrix, I get NULL as the output.
The issue here is that you provide a Fragment object with 0 cells in it, since you don't set the cells parameter in CreateFragmentObject(). Since you supply a Fragment object to FeatureMatrix, it checks if any of the requested cells are in the object before running. If you set the cells information in the Fragment object, it will solve this issue (see https://satijalab.org/signac/articles/data_structures.html#getting-and-setting-fragment-data)
I'll update the documentation to be more clear here. We could also update the function to assume that if the cells information in the Fragment object is NULL, we can assume it hasn't been set and still check that fragment file.
Hi there,
What exactly is the format of the
cells
argument in the function FeatureMatrix? I am passing the barcode names from CountFragments, and FeatureMatrix returns NULL.In the example below, all barcodes that I am interested in filtering (
target_cells
) are present in the large matrix out_all. But whenever I passcells = target_cells
in FeatureMatrix, I get NULL as the output.export.zip
The text was updated successfully, but these errors were encountered: