Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

pyAffy: Processing raw data from Affymetrix expression microarrays in Python.

Project Description

pyAffy is a Python/Cython implementation of the RMA algorithm for processing raw data from Affymetrix expression microarrays. For a detailed discussion of this implementation, see the pyAffy PeerJ preprint. For a list of changes, see the changelog.


Option 1: Using pip

$ pip install pyaffy

Option 2: Cloning the GitHub repository

$ git clone
$ cd pyaffy
$ pip install -e .


The rma function expects two parameters: A custom CDF file (from the Brainarray web site) and an ordered dictionary (collections.OrderedDict) with sample names as keys and corresponding CEL files as values.

The rma function returns a list of genes, a list of samples, and an expression matrix (of type numpy.ndarray), in that order.

from pyaffy import rma
# for documentation of the rma function, try:
# help(rma)
genes, samples, X = rma(cdf_file, sample_cel_files)

A small example with real code is available in the pyaffy-demos repository.

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(26.2 kB) Copy SHA256 Hash SHA256
Source Dec 6, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting