OMA icon indicating copy to clipboard operation
OMA copied to clipboard

Hardcoded row selection in Multi-omics Integration chapter

Open artur-sannikov opened this issue 8 months ago • 1 comments

Currently, the selection of rows for Intermediate Fusion algorithm is hardcoded. A better solution would be to select indices based on FeatureType.

pathways_ind <- which(feature_metadata$featureType == "Pathways")
species_ind <- which(feature_metadata$featureType == "Species")

dataList[[1]] <- t(feature_table[pathways_ind, ])
dataList[[2]] <- t(feature_table[species_ind, ])

It's more robust to changes in the number of rows.

artur-sannikov avatar May 28 '24 14:05 artur-sannikov