Bug: samples
parameter in feature_select
function reduces the rows in output
#494
Labels
bug
Something isn't working
Example code with output
Example code:
Output:
Issue description
When using the
samples
parameter in thefeature_select
function, with the help of @gwaybio, we noticed that the number of rows reduced significantly. This did not happen if thesamples
parameter is removed, meaning it is defaulted to "all".Through talking with @axiomcura, it was determined that the issue was related to this part of the code:
When using query in this way, it removes all the other samples/rows in the dataframe, which means the output will be incorrect.
NOTE: This parameter is also seen in the
normalize
function but it does not have this issue.Expected behavior
The expected behavior would be that the
feature_select
function will return a data frame with the same number of rows as the input when thesamples
parameter is used but will only determine which columns to keep based on only the samples specified.Additional information
The text was updated successfully, but these errors were encountered: