comparison xena_import.py @ 16:7f03b062f330 default tip

Cleaned up the user interface a bit
author melissacline
date Tue, 23 Sep 2014 21:18:54 -0700
parents a2a7096897a8
children
comparison
equal deleted inserted replaced
15:ff0cdac9636e 16:7f03b062f330
41 fp = open(jsonMetadataPathname, "w") 41 fp = open(jsonMetadataPathname, "w")
42 fp.write("%s\n" % (jsonMetadata)) 42 fp.write("%s\n" % (jsonMetadata))
43 fp.close() 43 fp.close()
44 44
45 # Finally, copy the genomic data into the Xena directory 45 # Finally, copy the genomic data into the Xena directory
46 shutil.copy(args.genomicDataPathname, xenaFileDir) 46 try:
47 shutil.copy(args.genomicDataPathname, xenaFileDir)
48 except:
49 print "Unexpected error", sys.exc_info()[0]
50 else:
51 print "Data copied successfully to Xena"
47 52
48 if __name__ == "__main__": 53 if __name__ == "__main__":
49 main() 54 main()