comparison cwpair2.py @ 6:001551406848 draft

Uploaded
author greg
date Tue, 24 Nov 2015 08:15:48 -0500
parents 430a5bdc55a3
children 6469dda597d6
comparison
equal deleted inserted replaced
5:2e0ddcc726f9 6:001551406848
25 parser.add_argument('--binsize', dest='binsize', type=int, default=1, help='Width of bins for plots and mode.') 25 parser.add_argument('--binsize', dest='binsize', type=int, default=1, help='Width of bins for plots and mode.')
26 parser.add_argument('--threshold_format', dest='threshold_format', help='Percentage to filter the 95th percentile.') 26 parser.add_argument('--threshold_format', dest='threshold_format', help='Percentage to filter the 95th percentile.')
27 parser.add_argument('--relative_threshold', dest='relative_threshold', type=float, default=0.0, help='Percentage to filter the 95th percentile.') 27 parser.add_argument('--relative_threshold', dest='relative_threshold', type=float, default=0.0, help='Percentage to filter the 95th percentile.')
28 parser.add_argument('--absolute_threshold', dest='absolute_threshold', type=float, default=0.0, help='Absolute value to filter.') 28 parser.add_argument('--absolute_threshold', dest='absolute_threshold', type=float, default=0.0, help='Absolute value to filter.')
29 parser.add_argument('--output_files', dest='output_files', default='simple', help='Restrict output dataset collections.') 29 parser.add_argument('--output_files', dest='output_files', default='simple', help='Restrict output dataset collections.')
30 parser.add_argument('--sort_chromosome', dest='sort_chromosome', default='asc', help='Sort output by chromosome.')
31 parser.add_argument('--sort_score', dest='sort_score', default='no', help='Sort output by score.') 30 parser.add_argument('--sort_score', dest='sort_score', default='no', help='Sort output by score.')
32 parser.add_argument('--statistics_output', dest='statistics_output', help='Statistics output file.') 31 parser.add_argument('--statistics_output', dest='statistics_output', help='Statistics output file.')
33 args = parser.parse_args() 32 args = parser.parse_args()
34 33
35 cwpair2_util.create_directories(args.method) 34 cwpair2_util.create_directories(args.method)
48 threshold, 47 threshold,
49 args.up_distance, 48 args.up_distance,
50 args.down_distance, 49 args.down_distance,
51 args.binsize, 50 args.binsize,
52 args.output_files, 51 args.output_files,
53 args.sort_chromosome,
54 args.sort_score) 52 args.sort_score)
55 statistics.extend(stats) 53 statistics.extend(stats)
56 # Accumulate statistics. 54 # Accumulate statistics.
57 by_file = {} 55 by_file = {}
58 for stats in statistics: 56 for stats in statistics: