How to output top features

So I’ve conducted my tuned my PLS-DA and this has resulted in a certain number of top RNA/metabolites.
But I would like a list that shows only the top features.

Using$ will output all the 20000+ RNAs with non-top RNAs with 0. This is quite inconvenient when the when the top RNAs for the 1st/2nd/3rd components are 60/7/90.

I would rather not have to manually write the RNAs down from plotLoadings because it’s difficult to see 90 RNAs.

So how could I only the top RNAs for the corresponding components?

hi @strkiky,
have a look at the selectVar() function, it should output the data set you want on a specified component.


1 Like