
Qc           @   s_  d  d l  Z d  d l m Z e d  Z e j e d d d d d e j Z	 e
 e	  Z e j d e e f  Z e d	 d
  Z x e d e  D]z Z d e e e <xc e e d e  D]N Z e e	 e e	 e  Z e e d d  e e e <e e e e e e <q Wq WxA e D]9 Z e j d j g  e D] Z e e  ^ q- d  qWe j   d S(   iN(   t   pearsonrs'   /home/scottn/sixmercountinantisense.txtt	   delimiters   	t   namest   dtypet   shapes"   /home/scottn/kinshipsixmercorr.txts   w+i    i   i   s   
(   t   numpyt   npt   scipy.stats.statsR    t   opent   ifilet
   genfromtxtt   Nonet   float64t   xmatt   lent   nt   zerost   outputt   ofilet   ranget   it   jt   ct   roundt   rowt   writet   joint   xt   strt   close(    (    (    s    kinshipmatrixwithnegativecorr.pyt   <module>   s   $7