2 Provide some quick and dirty access and reporting for the fctracker database.
4 The advantage to this code is that it doesn't depend on django being
5 installed, so it can run on machines other than the webserver.
7 from optparse import OptionParser
10 from htsworkflow.util import fctracker
16 parser = OptionParser()
17 parser.add_option("-d", "--database", dest="database",
18 help="path to the fctracker.db",
20 parser.add_option("-w", "--where", dest="where",
21 help="add a where clause",
28 parser = make_parser()
30 opt, args = parser.parse_args(argv)
32 fc = fctracker.fctracker(opt.database)
33 cells = fc._get_flowcells(opt.where)
35 print fctracker.recoverable_drive_report(cells)
38 if __name__ == "__main__":
39 sys.exit(main(sys.argv[1:]))