comparison qualimap_bamqc.py @ 6:a2438e0f1bbf draft default tip

planemo upload for repository https://github.com/refinery-platform/qualimap2 commit 40f39b0f1c81cae4606d15d1c0bd318b1e4c572d
author refinery-platform
date Mon, 30 Jul 2018 12:18:55 -0400
parents a6d048668f7f
children
comparison
equal deleted inserted replaced
5:f18b4224ff36 6:a2438e0f1bbf
32 parser.add_argument('--out_results') 32 parser.add_argument('--out_results')
33 parser.add_argument('--out_zip') 33 parser.add_argument('--out_zip')
34 parser.add_argument('--java_mem_size') 34 parser.add_argument('--java_mem_size')
35 35
36 args = parser.parse_args() 36 args = parser.parse_args()
37 37
38 # Run qualimap
38 qualimap_bamqc(args.input_file, args.java_mem_size) 39 qualimap_bamqc(args.input_file, args.java_mem_size)
39 40
41 # Create .zip archive containing the raw_data_qualimapReport files
40 shutil.make_archive( 42 shutil.make_archive(
41 'raw_data_qualimapReport', 43 'raw_data_qualimapReport',
42 'zip', 44 'zip',
43 os.path.join(QUALIMAP_OUPUT_DIR, 'raw_data_qualimapReport') 45 os.path.join(QUALIMAP_OUPUT_DIR, 'raw_data_qualimapReport')
44 ) 46 )
45 47
48 # Move newly created .zip to it's proper Galaxy output file
46 shutil.move("raw_data_qualimapReport.zip", args.out_zip) 49 shutil.move("raw_data_qualimapReport.zip", args.out_zip)
50
51 # Move genome_results.txt to it's proper Galaxy output file
47 shutil.move( 52 shutil.move(
48 os.path.join(QUALIMAP_OUPUT_DIR, "genome_results.txt"), 53 os.path.join(QUALIMAP_OUPUT_DIR, "genome_results.txt"),
49 args.out_results 54 args.out_results
50 ) 55 )
51 56