J-Express forum
August 08, 2020, 04:33:55 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: J-Express 2011 released. Download from jexpress.bioinfo.no
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Correlation calculations in JE?  (Read 6579 times)
Kjell Petersen
Developer
Newbie
****
Posts: 24


View Profile
« on: September 29, 2005, 10:58:32 AM »

Hi,

Are there any way I can calculate correlations between the intensitities in the 2 channels of a 2 channel system, and between 2 arrays in a 1 channel system, within JE?

Either at the Spotpix level or higher up (if intensities are not transformed into ratio/logratios) ?

Kjell
« Last Edit: September 29, 2005, 11:04:00 AM by Kjell Petersen » Logged
Bjarte Dysvik
Administrator
Full Member
*****
Posts: 117


View Profile Email
« Reply #1 on: September 29, 2005, 11:50:17 AM »

In the Genepix-suite: Add process -> Other -> new jython Script-> paste the following script:



#description: Calculate the correlation between two channels or two single-channel arrays

from expresscomponents.MissingValues import Stat

ch1 = array.getValues(0)
ch2 = array.getValues(1)

print Stat.corr(ch1,ch2)
Logged
Kjell Petersen
Developer
Newbie
****
Posts: 24


View Profile
« Reply #2 on: October 04, 2005, 11:02:42 AM »

In the Genepix-suite: Add process -> Other -> new jython Script-> paste the following script:



#description: Calculate the correlation between two channels or two single-channel arrays

from expresscomponents.MissingValues import Stat

ch1 = array.getValues(0)
ch2 = array.getValues(1)

print Stat.corr(ch1,ch2)

The script works for 2-channel data, but fails for 2 1-channel arrays (Exception at ch2 = getValues(1)). I've tried with the two arrays side-by-side as replicates and as seperate arrays one-below-the-other in the experiment design.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.14 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!