# HG changeset patch # User jingchunzhu # Date 1438846025 25200 # Node ID 9806198df91fee5621f3d76456df5ebd4cd76989 # Parent 72dc9215623d4d8d93679fcec71edfcbe24b2196 fix diff -r 72dc9215623d -r 9806198df91f mergeGenomicFiles.xml --- a/mergeGenomicFiles.xml Fri Jul 31 21:29:17 2015 -0700 +++ b/mergeGenomicFiles.xml Thu Aug 06 00:27:05 2015 -0700 @@ -1,4 +1,4 @@ - + Given two genomic datasets, merge them to create a larger dataset with the row and column identifiers from both datasets. Output this larger dataset, along with a 2-column matrix indicating the source file of each sample @@ -6,20 +6,24 @@ mergeGenomicMatrixFiles.py $inputA $inputB $outputC $outputSourceMatrix #if $labelForDatasetA --aLabel "${labelForDatasetA}" + #else + --aLabel "${inputA.name}" #end if #if $labelForDatasetB --bLabel "${labelForDatasetB}" + #else + --bLabel "${inputB.name}" #end if - - - - + + + + - - + + ***Merge Genomic Datasets*** diff -r 72dc9215623d -r 9806198df91f mergeMutationDatasets.xml --- a/mergeMutationDatasets.xml Fri Jul 31 21:29:17 2015 -0700 +++ b/mergeMutationDatasets.xml Thu Aug 06 00:27:05 2015 -0700 @@ -1,26 +1,27 @@ - - - Given two mutation datasets, merge them to create a larger dataset with the mutations from both datasets. Output this larger dataset, along with a 2-column matrix indicating the source of each mutation - + mergeXenaMutation.py $outputC $outputSourceMatrix $errorLog $inputA $inputB #if $labelForDatasetA --aLabel "${labelForDatasetA}" + #else + --aLabel "${inputA.name}" #end if #if $labelForDatasetB --bLabel "${labelForDatasetB}" + #else + --bLabel "${inputB.name}" #end if - - - - + + + + - - + + ***Merge Xena Positional Mutation Datasets*** diff -r 72dc9215623d -r 9806198df91f mergeXenaMutation.py --- a/mergeXenaMutation.py Fri Jul 31 21:29:17 2015 -0700 +++ b/mergeXenaMutation.py Thu Aug 06 00:27:05 2015 -0700 @@ -117,7 +117,7 @@ sample = string.split(line,'\t')[0] if sample not in sampleDic: sampleDic[sample]=[] - if inFile not in sampleDic[sample]: + if label not in sampleDic[sample]: sampleDic[sample].append(label) fin.close() return