Mercurial > repos > devteam > cuffcompare
comparison cuffcompare_wrapper.py @ 9:e66b9b5b8580 draft
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/cufflinks/cuffcompare commit 82ee6fc860c52c531b7a57bbb346ab1a67a434a5
author | devteam |
---|---|
date | Sun, 19 Feb 2017 12:12:05 -0500 |
parents | 1322b73ffe44 |
children |
comparison
equal
deleted
inserted
replaced
8:1322b73ffe44 | 9:e66b9b5b8580 |
---|---|
35 | 35 |
36 # Outputs. | 36 # Outputs. |
37 parser.add_option('', '--combined-transcripts', dest='combined_transcripts') | 37 parser.add_option('', '--combined-transcripts', dest='combined_transcripts') |
38 | 38 |
39 (options, args) = parser.parse_args() | 39 (options, args) = parser.parse_args() |
40 | |
41 # output version # of tool | |
42 try: | |
43 with tempfile.NamedTemporaryFile() as tmp_stdout: | |
44 returncode = subprocess.call(args='cuffcompare 2>&1', stdout=tmp_stdout, shell=True) | |
45 stdout = None | |
46 with open(tmp_stdout.name) as tmp_stdout2: | |
47 for line in tmp_stdout2: | |
48 if line.lower().find('cuffcompare v') >= 0: | |
49 stdout = line.strip() | |
50 break | |
51 if stdout: | |
52 sys.stdout.write('%s\n' % stdout) | |
53 else: | |
54 raise Exception | |
55 except: | |
56 sys.stdout.write('Could not determine Cuffcompare version\n') | |
57 | 40 |
58 # Set/link to sequence file. | 41 # Set/link to sequence file. |
59 if options.use_seq_data: | 42 if options.use_seq_data: |
60 if options.ref_file: | 43 if options.ref_file: |
61 # Sequence data from history. | 44 # Sequence data from history. |