-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
It looks like the filtering code uses >
when it should use >=
:
Lines 154 to 158 in 2727c04
def sample_filter(val, id_, md): | |
return id_ in metadata.index and np.sum(val) > min_sample_count | |
def read_filter(val, id_, md): | |
return np.sum(val > 0) > min_feature_count |
Because of this, features present in exactly 10 samples (or whatever min-feature-count
is) will get filtered out and samples with exactly 1000 counts (or whatever min-sample-count
is) will get filtered out, even though these are described as the minimum acceptable values:
songbird/songbird/parameter_info.py
Lines 30 to 37 in 2727c04
'min-sample-count': ( | |
"The minimum number of counts a sample needs for it to be included in " | |
"the analysis." | |
), | |
'min-feature-count': ( | |
"The minimum number of samples a feature needs to be observed in " | |
"for it to be included in the analysis." | |
), |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working