Mercurial > repos > fubar > fastqc_dev
changeset 3:71899f689406 draft
Uploaded
author | fubar |
---|---|
date | Tue, 04 Jun 2013 00:12:12 -0400 |
parents | 9995fd1f8daa |
children | 4d6d32306a4a |
files | FastQC/rgFastQC.py |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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('<tr><td><a href="%s">%s</a></td></tr>\n' % (fn,getFileString(fn, self.opts.outputdir))) + res.append('<tr><td><a href="%s">%s</a></td></tr>\n' % (fn,self.getFileString(fn, self.opts.outputdir))) res.append('</table>\n') res.append('<a href="http://www.bioinformatics.bbsrc.ac.uk/projects/fastqc/">FastQC documentation and full attribution is here</a><br/><hr/>\n') res.append('FastQC was run by Galaxy using the rgenetics rgFastQC wrapper - see http://rgenetics.org for details and licensing\n</div>')