Skip to content

Commit 7e36915

Browse files
committed
fixed bug
1 parent 0f4b292 commit 7e36915

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bin/plotSingleClusterBindingCurve.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,13 @@
4545
help='cluster Id for which to plot')
4646

4747
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"')
4949

5050

5151

5252
if __name__ == '__main__':
5353
args = parser.parse_args()
5454

55-
variantFilename = args.variant_file
5655
annotatedClusterFile = args.annotated_clusters
5756
bindingCurveFilename = args.binding_curves
5857
singleClusterFilename = args.single_cluster_fits
@@ -63,7 +62,6 @@
6362
bindingSeries = pd.read_pickle(bindingCurveFilename)
6463
fittedSingles = pd.read_pickle(singleClusterFilename)
6564

66-
6765
# plot
6866
fig = plt.figure(figsize=(4,3))
6967
ax = fig.add_subplot(111)
@@ -73,5 +71,6 @@
7371
fittedSingles.loc[cluster],
7472
fitParameters, ax=ax)
7573

76-
74+
if args.out_file is None:
75+
args.out_file = 'cluster_%s.binding_curve.pdf'%cluster
7776
plt.savefig( args.out_file)

0 commit comments

Comments
 (0)