Reference
Cohort
Source code in app\minds\__init__.py
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 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
|
stats()
Prints the statistics of the cohort in terms of file count and total size
Returns: |
|
---|
Source code in app\minds\__init__.py
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 130 131 132 133 134 |
|
build_cohort(output_dir, query=None, gdc_cohort=None, manifest=None)
Builds a cohort based on a query or a GDC cohort file and returns a Cohort object.
Source code in app\minds\__init__.py
149 150 151 152 153 154 155 156 157 158 159 160 161 |
|
get_columns(table)
Get the list of columns in a table
Parameters
table : str The name of the table
Returns
list A list of columns in the table
Source code in app\minds\__init__.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
get_tables()
Get the list of tables in the database
Returns
list A list of tables in the database
Source code in app\minds\__init__.py
18 19 20 21 22 23 24 25 26 |
|
query(query)
Query the database and return the result as a pandas dataframe
Parameters
query_string : str The query string to be executed on the database
Returns
pandas.DataFrame The result of the query
Source code in app\minds\__init__.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
|