Mercurial > repos > drosofff > msp_sr_readmap_and_size_histograms
diff smRtools.py @ 2:4895f7c6ae4d draft
planemo upload for repository https://bitbucket.org/drosofff/gedtools/
author | mvdbeek |
---|---|
date | Sun, 21 Jun 2015 16:48:36 -0400 |
parents | 9af9983dcd02 |
children | bf7388df53cf |
line wrap: on
line diff
--- a/smRtools.py Sun Mar 29 13:07:57 2015 -0400 +++ b/smRtools.py Sun Jun 21 16:48:36 2015 -0400 @@ -4,7 +4,8 @@ import sys, subprocess from collections import defaultdict from numpy import mean, median, std -from scipy import stats +##Disable scipy import temporarily, as no working scipy on toolshed. +##from scipy import stats def get_fasta (index="/home/galaxy/galaxy-dist/bowtie/5.37_Dmel/5.37_Dmel"): '''This function will return a dictionary containing fasta identifiers as keys and the @@ -273,6 +274,8 @@ def correlation_mapper (self, reference, window_size): '''to map correlation with a sliding window 26-2-2013''' + from scipy import stats + if window_size > self.size: return [] F=open(reference, "r")