
ڄTKc           @   s  i d  d 6d d 6d d 6Z  i  Z i  Z i  Z i d d 6d d	 6d
 d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d  d! 6d" d# 6d$ d% 6d& d' 6d( d) 6d* d+ 6d, d- 6d. d/ 6d0 d1 6d2 d3 6d4 d5 6e d <i d6 d 6d7 d	 6d8 d 6d9 d 6d: d 6d; d 6d< d 6d= d 6d> d 6d? d 6d@ d 6dA d 6dB d 6dC d! 6dD d# 6dE d% 6dF d' 6dG d) 6dH d+ 6dI d- 6dJ d/ 6dK d1 6dL d3 6dM d5 6e d <dN e d <i dO d 6dP d	 6dQ d 6dR d 6dS d 6dT d 6dU d 6dV d 6dW d 6dX d 6dY d 6dZ d 6d[ d 6d\ d! 6d] d# 6d^ d% 6d_ d' 6d` d) 6da d+ 6db d- 6dc d/ 6dd d1 6de d3 6df d5 6dg dh 6e di <i dj dk 6dl dm 6dn do 6dp dq 6dr ds 6dt du 6dv d 6dw dx 6dy d3 6dz d{ 6d| d} 6d~ d 6d dh 6e d <i d d 6d d	 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d! 6d d# 6d d% 6d dh 6e d <i d d 6d d	 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d! 6d d# 6d d% 6d d' 6d d) 6d d+ 6d d3 6d d5 6d dh 6e d <i d d 6d d	 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d! 6d d# 6d d% 6d d' 6d d) 6d d+ 6d d3 6d d5 6d dh 6e d <d e f d     YZ e d k re d  Z e j   GHe j	   GHe j
   GHn  d S(   t   Humant   hg18t   Mouset   mm9t   Flyt   dm2i7t   chr1i#{t   chr2i(t   chr3igft   chr4i

t   chr5i/
t   chr6i0lw	t   chr7i
t   chr8idf\t   chr9it   chr10it   chr11i^~t   chr12it   chr13iIWt   chr14it   chr15iveKt   chr16it   chr17itt   chr18iCt   chr19i|t   chr20iCPt   chr21i(;t   chr22i;	t   chrXiqt   chrYi'9ii)+ii')in
if	ib<	iZi=)ioii8Di,!i5Ci-ii#i)si8Sieid	iiB 	inI     i=Ci~iiddi<
i;3
igC|	ivVijii4	ijiVZi$fi@iAbii@]i<ipiggivi=A	ii@  t   chrMt   hg19iUt   chr2LiA<t   chr2Ri t   chr2hijt   chr3Li̩t   chr3Ri- t   chr3hih i.X t   chr4hiSif| t   chrXhi` t   chrYhi! t   chrUi=L  i@ izh i i` ie iD i iӕ iM ia iV+
 is i i i٦ i^w iO t   sciiwA
iL	i(F	i	iri	W	i,i@ei'i0Ci:>:id+ipRvi>5+i.;i˾i?iii	i[ i?  ii
ipt	iŐ=	ia	iiijuidiiBi7.im0ivci++i6iJiňhi毧i0	iܖ t   mm8t
   GenomeInfoc           B   s/   e  Z d    Z d   Z d d  Z d   Z RS(   c         C   s/   | |  _  t j |  j   s+ d |  j   n  d  S(   Ns&   The genome version %s is not supported(   t   genomeversiont   genomet   has_key(   t   selfR-   (    (    sC   /woldlab/castor/data00/home/georgi/programs/NPS-1.3.2/GenomeInfo.pyt   __init__C   s    	c         C   s9   t  j |  j  r% t  |  j |  _ n d |  j  |  j S(   Ns&   The genome version %s is not supported(   R.   R/   R-   t   organismname(   R0   (    (    sC   /woldlab/castor/data00/home/georgi/programs/NPS-1.3.2/GenomeInfo.pyt   OrganismNameH   s    t   totalc         C   s   | d k r9 t  j |  j  r) t  |  j Sd |  j  nF | d k rr t j |  j  rb t |  j Sd |  j  n d |  j  d  S(   NR4   s&   The genome version %s is not supportedt   validsA   The type %s is invalide (only 'total' and 'valid' are valid type)(   t	   chrlengthR/   R-   t   validlength(   R0   t   type(    (    sC   /woldlab/castor/data00/home/georgi/programs/NPS-1.3.2/GenomeInfo.pyt   GetChrLengthP   s    c         C   s.   t  j |  j  r t  |  j Sd |  j  d  S(   Ns&   The genome version %s is not supported(   t   controlgenomeR/   R-   (   R0   (    (    sC   /woldlab/castor/data00/home/georgi/programs/NPS-1.3.2/GenomeInfo.pyt   GetBgLength^   s    (   t   __name__t
   __module__R1   R3   R9   R;   (    (    (    sC   /woldlab/castor/data00/home/georgi/programs/NPS-1.3.2/GenomeInfo.pyR,   B   s   		t   __main__N(   R.   R6   R7   R:   t   objectR,   R<   t   aR3   R9   R;   (    (    (    sC   /woldlab/castor/data00/home/georgi/programs/NPS-1.3.2/GenomeInfo.pyt   <module>   sh   
**"