Off topic:How filter rows in data frame ore matrix with different value in their columns???
0
0
Entering edit mode
7.2 years ago
carcarre11 • 0

Hi everyone I have a data frame (and a matrix because I have made one using my data frame to try to filter easily) with clasification of tumors based on RNA expresion. Some samples are clasificate as a different type of tumor depending on the method that the package of R used (it use a random forest method and a single-sample predictor based on similarity-to-centroid approach, with the Pearson coefficient as a similarity measure) I would like filter this data frame to know what samples don´t have the same classification using both methods (filter by rows whose columns don´t have the same value)

Example

tumores Rfcms.RF.nearestCMS RFcms.pedictedCMS SScms.SSP.nearestCMS SScms.SSP.predictedCMS COLON1 CMS1 CMS1 CMS1 CMS1 COLON2 CMS3 CMS3 CMS3 CMS3 COLON3 CMS4 CMS4 CMS1 CMS1 COLON4 CMS2 NA CMS2 CMS2 COLON5 CMS2 CMS2 CMS2 CMS2 COLON6 CMS2 CMS2 CMS2 CMS2 COLON7 CMS4 CMS4 CMS4 CMS4 COLON8 CMS4 NA CMS2 NA COLON9 CMS2 CMS2 CMS2 CMS2 COLON10 CMS2 CMS2 CMS2 CMS2

In this data frame I would like filter and made one with COLON 3, COLON8 (COLON4) Sorry about my English and Thanks

R dataframe matrix filter RNA-Seq • 945 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1607 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6