# HG changeset patch # User fubar # Date 1370319132 14400 # Node ID 71899f689406f06b8a6e9fbb6e0e66c82fa58214 # Parent 9995fd1f8daacb8c20a0ba7af1f7fea8e57c81a8 Uploaded diff -r 9995fd1f8daa -r 71899f689406 FastQC/rgFastQC.py --- a/FastQC/rgFastQC.py Tue Jun 04 00:08:58 2013 -0400 +++ b/FastQC/rgFastQC.py Tue Jun 04 00:12:12 2013 -0400 @@ -37,13 +37,13 @@ self.opts = opts def getFileString(fpath, outpath): - """ - format a nice file size string - """ - size = '' - fp = os.path.join(outpath, fpath) - s = fpath - if os.path.isfile(fp): + """ + format a nice file size string + """ + size = '' + fp = os.path.join(outpath, fpath) + s = fpath + if os.path.isfile(fp): n = float(os.path.getsize(fp)) if n > 2**20: size = ' (%1.1f MB)' % (n/2**20) @@ -160,7 +160,7 @@ for i,f in enumerate(flist): if not(os.path.isdir(f)): fn = os.path.split(f)[-1] - res.append('%s\n' % (fn,getFileString(fn, self.opts.outputdir))) + res.append('%s\n' % (fn,self.getFileString(fn, self.opts.outputdir))) res.append('\n') res.append('FastQC documentation and full attribution is here

\n') res.append('FastQC was run by Galaxy using the rgenetics rgFastQC wrapper - see http://rgenetics.org for details and licensing\n')