ó
ËQc           @   s$  d  d l  Z e d ƒ Z e j e d d d d d d ƒZ e d ƒ Z e j e d d d d d d ƒZ e d d	 ƒ Z	 g  Z
 d
 „  Z e e d ƒ Z x< e D]4 Z x+ e D]# Z e e k r§ e
 j e ƒ Pq§ q§ Wqš WxA e
 D]9 Z e	 j d j g  e D] Z e e ƒ ^ qò ƒ d ƒ qÙ We	 j ƒ  d S(   iÿÿÿÿNs!   /home/scottn/refseqandensembl.csvt	   delimitert   ,t   dtypet   namess4   /home/scottn/mouse/microarray/cd4_microarray.ensembls   /home/scottn/mouse.phenos   w+c         C   s   g  |  D] } | | ^ q S(   N(    (   t   arrayt   it   row(    (    s   phenocreate.pyt   column   s    i   s   
(   t   numpyt   npt   opent   ifilet
   genfromtxtt   Nonet   datat   phenot	   phenotypet   ofilet   outputR   t   reft   itemR   t   appendt   writet   joint   xt   strt   close(    (    (    s   phenocreate.pyt   <module>   s    !!	7