diff smRtools.py @ 7:46405fd09d06 draft

planemo upload for repository https://bitbucket.org/drosofff/gedtools/
author mvdbeek
date Sun, 21 Jun 2015 16:04:56 -0400
parents d613dbee3ce4
children b1a15b5a3f1b
line wrap: on
line diff
--- a/smRtools.py	Thu May 21 10:37:00 2015 -0400
+++ b/smRtools.py	Sun Jun 21 16:04:56 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")