# HG changeset patch
# User jingchunzhu
# Date 1439187838 25200
# Node ID 8da6920a39ac6e35db2c6bf6190deab3101956fa
# Parent d717d0c4c8f1e2d718f3d1eddc997b17e9337696
add hg19 assembly in xena_import
diff -r d717d0c4c8f1 -r 8da6920a39ac xena_import.py
--- a/xena_import.py Sun Aug 09 22:39:09 2015 -0700
+++ b/xena_import.py Sun Aug 09 23:23:58 2015 -0700
@@ -54,6 +54,7 @@
parser.add_argument("--label", type=str, default=None)
parser.add_argument("--colNormalization", type=bool, default=False)
parser.add_argument("--probeMap", type=str, default=None)
+ parser.add_argument("--assembly", type=str, default=None)
args = parser.parse_args()
fp2 = open(args.outfile, "w")
@@ -90,7 +91,8 @@
updateColNormalization(metadata)
if args.probeMap is not None:
metadata[':probeMap'] = probeMapDataFile
-
+ if args.assembly:
+ metadata['assembly'] = args.assembly
jsonMetadata = json.dumps(metadata, indent=2)
fp = open(jsonMetadataTargetPathname, "w")
fp.write("%s\n" % (jsonMetadata))
diff -r d717d0c4c8f1 -r 8da6920a39ac xena_import.xml
--- a/xena_import.xml Sun Aug 09 22:39:09 2015 -0700
+++ b/xena_import.xml Sun Aug 09 23:23:58 2015 -0700
@@ -26,9 +26,14 @@
--probeMap "${format.withProbeMap.probeMapFile}"
#end if
- #if $colNormalization:
+ #if $format.metadataType == "genomicMatrix" and $format.colNormalization:
--colNormalization 1
#end if
+
+ #if $format.metadataType == "mutationVector" and $format.assembly:
+ --assembly "${format.assembly}"
+ #end if
+
@@ -81,8 +86,10 @@
-
+
+
+
@@ -95,10 +102,14 @@
-
+
+
+
+
+
+
-