| 
									
										
										
										
											2022-06-15 10:24:10 +02:00
										 |  |  | % Generated by roxygen2: do not edit by hand | 
					
						
							|  |  |  | % Please edit documentation in R/ranking.R | 
					
						
							|  |  |  | \name{rank_genes} | 
					
						
							|  |  |  | \alias{rank_genes} | 
					
						
							|  |  |  | \title{Rank genes based on how ubiquitous they are.} | 
					
						
							|  |  |  | \usage{ | 
					
						
							|  |  |  | rank_genes( | 
					
						
							| 
									
										
										
										
											2022-12-01 21:23:46 +01:00
										 |  |  |   data = ubigen::gtex_all, | 
					
						
							| 
									
										
										
										
											2022-06-15 10:24:10 +02:00
										 |  |  |   cross_sample_metric = "above_95", | 
					
						
							|  |  |  |   cross_sample_weight = 0.5, | 
					
						
							| 
									
										
										
										
											2022-09-25 20:01:42 +02:00
										 |  |  |   level_metric = "median_expression_normalized", | 
					
						
							|  |  |  |   level_weight = 0.25, | 
					
						
							|  |  |  |   variation_metric = "qcv_expression_normalized", | 
					
						
							|  |  |  |   variation_weight = -0.25 | 
					
						
							| 
									
										
										
										
											2022-06-15 10:24:10 +02:00
										 |  |  | ) | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2022-11-30 14:49:42 +01:00
										 |  |  | \arguments{ | 
					
						
							|  |  |  | \item{data}{The input data to use. This should either be the result of a | 
					
						
							|  |  |  | previous call to this function or the return value of \code{\link[=analyze]{analyze()}}.} | 
					
						
							| 
									
										
										
										
											2024-04-26 19:35:05 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | \item{cross_sample_metric}{Name of the column that should be used as the | 
					
						
							|  |  |  | metric measuring the expression across samples.} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \item{cross_sample_weight}{Relative weight that should be assigned to the | 
					
						
							|  |  |  | cross sample metric.} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \item{level_metric}{Name of the column that should be used to represent | 
					
						
							|  |  |  | overall expression levels.} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \item{level_weight}{Relative weight that should be assigned to the level | 
					
						
							|  |  |  | metric.} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \item{variation_metric}{Name of the column that should be used as the metric | 
					
						
							|  |  |  | representing variation in expression.} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \item{variation_weight}{Relative weight that should be assigned to the | 
					
						
							|  |  |  | variation metric.} | 
					
						
							| 
									
										
										
										
											2022-11-30 14:49:42 +01:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2022-06-15 10:24:10 +02:00
										 |  |  | \value{ | 
					
						
							|  |  |  | A \code{data.table} with gene data as well as the scores, ranks and | 
					
						
							|  |  |  | percentiles for each gene. | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | \description{ | 
					
						
							|  |  |  | This function will compute a weighted average across multiple metrics that | 
					
						
							|  |  |  | define how ubiquitous a gene is based on its expression across samples. | 
					
						
							|  |  |  | } |