find_min_responsive
Finds the minimum number of responsive genes in a list of DataFrames.
This function takes a list of DataFrames and finds the minimum number of responsive genes in any of the DataFrames. This is used to normalize the rank response across expression data sets.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_path_list |
list
|
A list of paths to expression dataframes |
required |
identifier_col_list |
list
|
A list of column names for the feature identifier in each DataFrame |
required |
effect_col_list |
list
|
A list of column names for the effect in each
DataFrame. If there is no effect column in the dataframe at the
same index, enter |
required |
effect_thres_list |
list
|
A list of effect thresholds in each DataFrame |
required |
pval_col_list |
list
|
A list of column names for the p-value in each
DataFrame. If no threshold is to be applied to the dataframe at
the same index, enter |
required |
pval_thres_list |
list
|
A list of p-value thresholds in each DataFrame.
If no threshold is to be applied to the dataframe at the same
index, enter |
required |
Returns:
Name | Type | Description |
---|---|---|
int |
int
|
The minimum number of responsive genes in any of the DataFrames. |
Raises:
Type | Description |
---|---|
TypeError
|
if data_path_list, identifier_col_list, effect_col_list, or
pval_col_list is not a list. Also raised if there is an error
in the |
ValueError
|
if the length of data_path_list, identifier_col_list, effect_col_list, or pval_col_list is not equal. |
Source code in callingcardstools/Analysis/yeast/find_min_responsive.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
|