7eac1be70c19da4a41c076410c83af59821570fd mmaddren Tue Mar 1 10:15:19 2011 -0800 removed junk files from ucscgenomics/rafile/ diff --git python/ucscgenomics/rafile/write.py python/ucscgenomics/rafile/write.py deleted file mode 100644 index e30cf27..0000000 --- python/ucscgenomics/rafile/write.py +++ /dev/null @@ -1,27 +0,0 @@ -# -# rafile/write.py -# -# Handles the writing of the raDict object. Mostly just wrapper functions for -# the class's tostring method. -# - -import sys -import radict - -def writeRaFile(raDict, *args): - - if not isinstance(raDict, radict.RaDict): - print 'ERROR: writeRaFile() - invalid raDict argument' - sys.exit(1) - - keys = map(str, args) - - # if specific keys supplied, print out the stanzas associated with them - if len(keys) > 0: - for key in keys: - print raDict.getValue(key) - - #otherwise just print the whole raDict - else: - print raDict -