~ubuntu-branches/ubuntu/trusty/qiime/trusty

« back to all changes in this revision

Viewing changes to scripts/identify_missing_files.py

  • Committer: Package Import Robot
  • Author(s): Andreas Tille
  • Date: 2013-06-17 18:28:26 UTC
  • mfrom: (9.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20130617182826-376az5ad080a0sfe
Tags: 1.7.0+dfsg-1
Upload preparations done for BioLinux to Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
__author__ = "Greg Caporaso"
6
6
__copyright__ = "Copyright 2011, The QIIME project"
7
 
__credits__ = ["Greg Caporaso"]
 
7
__credits__ = ["Greg Caporaso", "Jai Ram Rideout"]
8
8
__license__ = "GPL"
9
 
__version__ = "1.5.0"
 
9
__version__ = "1.7.0"
10
10
__maintainer__ = "Greg Caporaso"
11
11
__email__ = "gregcaporaso@gmail.com"
12
12
__status__ = "Release"
13
13
 
14
 
 
15
 
 
16
14
from qiime.util import parse_command_line_parameters, make_option
17
15
from os.path import exists
18
16
 
19
17
script_info = {}
20
 
script_info['brief_description'] = "This script checks for the existence expected file in parallel runs."
21
 
script_info['script_description'] = "This script checks for the existence expected file in parallel runs, and is useful for checking the status of a parallel run or for finding out what poller.py is waiting on in a possibly failed run."
22
 
script_info['script_usage'] = [("","Check for the existence of files listed in the expected_out_files.txt from a PyNAST alignment run, and print a warning for any that are missing.","identify_missing_files.py -e ALIGN_BQ7_/expected_out_files.txt")]
23
 
script_info['output_description']= ""
 
18
script_info['brief_description'] = "This script checks for the existence of expected files in parallel runs."
 
19
script_info['script_description'] = "This script checks for the existence of expected files in parallel runs, and is useful for checking the status of a parallel run or for finding out what poller.py is waiting on in a possibly failed run."
 
20
script_info['script_usage'] = [("Example",
 
21
"Check for the existence of files listed in expected_out_files.txt from a "
 
22
"PyNAST alignment run, and print a warning for any that are missing.",
 
23
"%prog -e ALIGN_BQ7_/expected_out_files.txt")]
 
24
script_info['output_description']= """
 
25
This script does not create any output files.
 
26
"""
24
27
script_info['required_options'] = [
25
28
 make_option('-e','--expected_out_fp',
26
29
             type="existing_filepath",
27
 
             help='the list of expected output files'),
 
30
             help='the list of expected output files')
28
31
]
29
32
script_info['optional_options'] = []
30
33
script_info['version'] = __version__
31
34
 
32
 
 
33
35
def main():
34
 
    option_parser, opts, args =\
35
 
       parse_command_line_parameters(**script_info)
 
36
    option_parser, opts, args = parse_command_line_parameters(**script_info)
36
37
 
37
38
    filepaths = [l.strip() for l in open(opts.expected_out_fp,'U')]
38
39
    all_exist = True
43
44
    if all_exist:
44
45
        print "All filepaths exist."
45
46
 
 
47
 
46
48
if __name__ == "__main__":
47
 
    main()
 
 
b'\\ No newline at end of file'
 
49
    main()