Repository 'sartools'
hg clone https://toolshed.g2.bx.psu.edu/repos/lgueguen/sartools

Changeset 1:fe0ee346b17d (2017-04-26)
Previous changeset 0:581d217c7337 (2016-07-22) Next changeset 2:d86ccac2a660 (2017-05-17)
Commit message:
RSEM process files corrected in pre_sartools.py
modified:
pre_sartools.py
b
diff -r 581d217c7337 -r fe0ee346b17d pre_sartools.py
--- a/pre_sartools.py Fri Jul 22 05:39:13 2016 -0400
+++ b/pre_sartools.py Wed Apr 26 05:04:18 2017 -0400
[
@@ -40,7 +40,7 @@
                     reader = csv.DictReader(csvfile, delimiter='\t', skipinitialspace=True)
                     if len(reader.fieldnames) > 2:
                         for row in reader:
-                            spamwriter.writerow((row['gene_id'], int(float(row['effective_length']))))
+                            spamwriter.writerow((row['gene_id'], int(float(row['expected_count']))))
                         zip_cmd += ' %s ' % (join(tmpdir, basename(filename)))
                     else :
                         zip_cmd += ' %s ' % (filename)
@@ -57,7 +57,7 @@
                     reader = csv.DictReader(csvfile, delimiter='\t', skipinitialspace=True)
                     if len(reader.fieldnames) > 2:
                         for row in reader:
-                            spamwriter.writerow((row['gene_id'], int(float(row['effective_length']))))
+                            spamwriter.writerow((row['gene_id'], int(float(row['expected_count']))))
                         zip_cmd += ' %s ' % (join(tmpdir, basename(filename)))
                     else:
                         zip_cmd += ' %s ' % (filename)