Add-On Script

Chi-Squared Contingency Table

Author: Greta Peterson, Golden Helix, Inc.

This script computes the Pearson’s Chi-Squared Statistic for a contingency table with m groups and n observations (m rows and n columns). For 2x2 tables the p-value, –log10 p-value, Bonferroni p-value and –log10 Bonferroni p-value are also computed.


Chi-Squared Contingency Table.py

Download Documentation Documentation

Recommended Directory Location

Save the script to the following directory:
*..\Application Data\Golden Helix SVS\UserScripts\Spreadsheet\Numeric

Note: The Application Data folder is a hidden folder on many operating systems and its location varies between operating systems. The easiest way to locate this directory on your computer is to open SVS and go to Tools > Open Folder > UserScripts Folder. If saved to the proper folder, this script will be accessible from the Spreadsheet Numeric menu.


Need a Custom Script?

Scripts

Need a script and don't feel you have the bioinformatics expertise to write it yourself? Click the link below to request a custom script and we'll see what we can do to help.
Request Custom Script »

What is Python?

Python is a clear and powerful object-oriented programming language, comparable to Perl, Ruby, Scheme, or Java. Integrating Python into SVS provides full programmatic access to many of the software's features enabling the augmentation of existing tools, creating entirely new ones, automation of work flows, integration with other programs and more.

Python Learning Resources