Mercurial > repos > eschen42 > w4mcorcov
comparison w4mcorcov_input.R @ 7:066b1f409e9f draft
planemo upload for repository https://github.com/HegemanLab/w4mcorcov_galaxy_wrapper/tree/master commit e73fabe1b3c871abbcb2e89914c181149c8e2066
author | eschen42 |
---|---|
date | Thu, 26 Jul 2018 10:23:34 -0400 |
parents | 50f60f94c034 |
children | 9a52306991b3 |
comparison
equal
deleted
inserted
replaced
6:7bd523ca1f9a | 7:066b1f409e9f |
---|---|
163 | 163 |
164 # convert data_matrix to matrix from data.frame | 164 # convert data_matrix to matrix from data.frame |
165 data_matrix <- as.matrix(data_matrix) | 165 data_matrix <- as.matrix(data_matrix) |
166 } | 166 } |
167 | 167 |
168 # Omit any feature not found in variableMetadata and any sample not found in sampleMetadata | |
169 # For something more elaborate, see https://github.com/HegemanLab/w4mclassfilter | |
170 data_matrix <- data_matrix[rownames(data_matrix) %in% rownames(vrbl_metadata),colnames(data_matrix) %in% rownames(smpl_metadata)] | |
171 | |
168 input_env$data_matrix <- data_matrix | 172 input_env$data_matrix <- data_matrix |
169 # ... | 173 # ... |
170 } else { | 174 } else { |
171 failure_action("read_inputs: fatal error - 'dataMatrix_in' is missing from 'input_env'") | 175 failure_action("read_inputs: fatal error - 'dataMatrix_in' is missing from 'input_env'") |
172 return ( FALSE ) | 176 return ( FALSE ) |