diff xena_import.py @ 2:6eeb3ca663fb

Fixed dataset delete bugs (the full pathname was needed) plus changed xena_import to give a checkbox for turning on column normalization
author melissacline
date Wed, 14 Jan 2015 15:21:09 -0800
parents 8bb037f88ed2
children d8dc482ef970
line wrap: on
line diff
--- a/xena_import.py	Wed Jan 14 12:47:23 2015 -0800
+++ b/xena_import.py	Wed Jan 14 15:21:09 2015 -0800
@@ -52,6 +52,7 @@
     parser.add_argument("--type", type=str)
     parser.add_argument("--dataSubType", type=str, default=None)
     parser.add_argument("--label", type=str, default=None)
+    parser.add_argument("--colNormalization", type=bool, default=False)
     args = parser.parse_args()
 
     fp2 = open(args.outfile, "w")
@@ -78,6 +79,10 @@
             metadata['dataSubType'] = args.dataSubType
         if args.label is not None:
             metadata['label'] = args.label
+        if args.colNormalization:
+            metadata['colNormalization'] = "true"
+        else:
+            updateColNormalization(metadata)
         jsonMetadata = json.dumps(metadata, indent=2) 
         fp = open(jsonMetadataTargetPathname, "w")
         fp.write("%s\n" % (jsonMetadata))