File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 45
45
help = 'cluster Id for which to plot' )
46
46
47
47
parser .add_argument ('-out' , '--out_file' ,
48
- help = 'output filename. default is variant number + " .pdf"' )
48
+ help = 'output filename. default is "cluster_X.binding_curve .pdf"' )
49
49
50
50
51
51
52
52
if __name__ == '__main__' :
53
53
args = parser .parse_args ()
54
54
55
- variantFilename = args .variant_file
56
55
annotatedClusterFile = args .annotated_clusters
57
56
bindingCurveFilename = args .binding_curves
58
57
singleClusterFilename = args .single_cluster_fits
63
62
bindingSeries = pd .read_pickle (bindingCurveFilename )
64
63
fittedSingles = pd .read_pickle (singleClusterFilename )
65
64
66
-
67
65
# plot
68
66
fig = plt .figure (figsize = (4 ,3 ))
69
67
ax = fig .add_subplot (111 )
73
71
fittedSingles .loc [cluster ],
74
72
fitParameters , ax = ax )
75
73
76
-
74
+ if args .out_file is None :
75
+ args .out_file = 'cluster_%s.binding_curve.pdf' % cluster
77
76
plt .savefig ( args .out_file )
You can’t perform that action at this time.
0 commit comments