{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Settings" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "DRAFT" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "So far we have not looked at any settings. When using ANOVA or creating the report, you may tune the analysis or output" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "from gdsctools import *" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "WARNING: column named 'MEDIA_FACTOR' not found\n", "TISSUE FACTOR : included\n", "MEDIA FACTOR : NOT included\n", "MSI FACTOR : included\n", "FEATURE FACTOR : included\n" ] } ], "source": [ "gdsc = ANOVA(ic50_test)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Everything happens in the **settings** attribute:" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "{'FDR_threshold': 25,\n", " 'MSI_factor_threshold': 2,\n", " 'analysis_type': 'PANCAN',\n", " 'directory': 'html_gdsc_anova',\n", " 'effect_threshold': 0,\n", " 'equal_var_ttest': True,\n", " 'feature_factor_threshold': 3,\n", " 'fontsize': 25,\n", " 'include_MSI_factor': True,\n", " 'include_media_factor': False,\n", " 'low_memory': True,\n", " 'minimum_nonna_ic50': 6,\n", " 'pvalue_correction_level': 'global',\n", " 'pvalue_correction_method': 'fdr',\n", " 'pvalue_threshold': inf,\n", " 'regression_L1_wt': 0,\n", " 'regression_alpha': 0,\n", " 'regression_method': 'OLS',\n", " 'savefig': False,\n", " 'version': '0.10.1',\n", " 'volcano_FDR_interpolation': True,\n", " 'volcano_additional_FDR_lines': [0.01, 0.1, 10]}" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "gdsc.settings" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "collapsed": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "TISSUE FACTOR : included\n", "MEDIA FACTOR : NOT included\n", "MSI FACTOR : included\n", "FEATURE FACTOR : included\n" ] } ], "source": [ "gdsc.settings.analysis_type = 'breast'\n", "gdsc.init()\n", "\n", "\n", "#results = gdsc.anova_all()\n", "#report = ANOVAReport(gdsc, results)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "All information can be found in the online documentation but the most important ones are\n", "- directory: HTML and PNG will be created in this directory\n", "- includeMSI_factor: include the MSI factor in the anova analysis\n", "- analysis_type: PANCAN means all tissue are used. If you set this value to a specific tissue, all data will be filtered to kep only that feature" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "