Description
Filter observations or features from an .h5mu file based on quantile thresholds of numeric values.
This component removes observations or features that fall outside specified quantile ranges in .obs or .var. columns.
For example, you can filter out observations with total UMI counts in the bottom 5% (quantile < 0.05) or
top 5% (quantile > 0.95), or retain an intermediate range (0.1 < quantile < 0.9).
Run the following command to execute this component with Nextflow:
cat > params.yaml <<'EOM'
modality: [ "rna" ]
obs_log1p_transform: [ true ]
var_log1p_transform: [ true ]
min_values_for_quantile: [ 10 ]
output: "$id.$key.output.h5mu"
obs_name_filter: [ "filter_with_quantile" ]
var_name_filter: [ "filter_with_quantile" ]
id: "run"
publish_dir: "output/"
EOM
nextflow run https://packages.viash-hub.com/vsh/openpipeline.git \
-revision v4.1.0 \
-main-script target/nextflow/filter/filter_with_quantile/main.nf \
-params-file params.yaml Name | Type & Properties |
|---|---|
--input | file required |
--modality | string |
--obs_column | string |
--var_column | string |
Name | Type & Properties |
|---|---|
--do_subset | boolean_true |
--obs_log1p_transform | boolean |
--obs_min_quantile | double |
--obs_max_quantile | double |
--var_log1p_transform | boolean |
--var_min_quantile | double |
--var_max_quantile | double |
--min_values_for_quantile | integer |
Name | Type & Properties |
|---|---|
--output | file output |
--obs_name_filter | string |
--obs_log1p_column | string |
--var_log1p_column | string |
--var_name_filter | string |
--output_compression | string |