aa37b776679006c611ac73f01ab340e29429b71f mmaddren Tue Jun 14 17:53:53 2011 -0700 Working soft file. mkGeoPkg is 1 step above pseudocode diff --git python/ucscgenomics/softfile/mkGeoPkg python/ucscgenomics/softfile/mkGeoPkg new file mode 100644 index 0000000..0109aa8 --- /dev/null +++ python/ucscgenomics/softfile/mkGeoPkg @@ -0,0 +1,23 @@ +from RaFile import * + +rafile = RaFile(metafile) +filedict = dict() #expId : filelist +geomapping = dict() #expId : geoSampleAccession + +for stanza in rafile: + + #if the stanza is a series + #process it separately and then continue + + if 'expId' not in stanza: + raise KeyError('no expId for ' + stanza.name) + + if stanza['expId'] not in filedict: + filedict[stanza['expId']] = list() + + filedict[stanza['expId']].append(filename) + + if 'geoSampleAccession' in stanza: + geomapping[stanza['expId']] = stanza['geoSampleAccession'] + +#process the filedict and make the soft file \ No newline at end of file