1 | """ |
---|
2 | Runs a more demaniding test |
---|
3 | """ |
---|
4 | import os |
---|
5 | from genetrack import util, conf, logger, scripts |
---|
6 | from genetrack.scripts import bed2genetrack |
---|
7 | |
---|
8 | logger.disable(None) |
---|
9 | |
---|
10 | def bedfile(inpfile): |
---|
11 | basename = os.path.basename(inpfile) |
---|
12 | outfile = conf.tempdata('%s.genetrack' % basename) |
---|
13 | bed2genetrack.transform(inpfile, outfile) |
---|
14 | |
---|
15 | if __name__ == '__main__': |
---|
16 | import optparse |
---|
17 | |
---|
18 | parser = optparse.OptionParser() |
---|
19 | |
---|
20 | # setting the input file name |
---|
21 | parser.add_option( |
---|
22 | '--bed2genetrack', |
---|
23 | dest="bed2genetrack", |
---|
24 | help="run the bed2genetrack transform on a file" |
---|
25 | ) |
---|
26 | |
---|
27 | options, args = parser.parse_args() |
---|
28 | |
---|
29 | if options.bed2genetrack: |
---|
30 | bedfile(options.bed2genetrack) |
---|
31 | |
---|
32 | |
---|