diff smRtools.py @ 2:9f75d887904d draft

planemo upload for repository https://bitbucket.org/drosofff/gedtools/
author mvdbeek
date Sun, 21 Jun 2015 15:59:48 -0400
parents 63ff807752d7
children
line wrap: on
line diff
--- a/smRtools.py	Sun Mar 29 12:54:10 2015 -0400
+++ b/smRtools.py	Sun Jun 21 15:59:48 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")