Skip to content

Commit

Permalink
Merge pull request #300 from fidelram/nfs_empty_file_fix
Browse files Browse the repository at this point in the history
NFS empty file fix
  • Loading branch information
dpryan79 committed Feb 23, 2016
2 parents 6b76810 + 5b3fdb0 commit 10814af
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions deeptools/plotCoverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ def main(args=None):
axs[1].set_ylabel('fraction of bases sampled >= coverage')
axs[1].legend(fancybox=True, framealpha=0.5)
plt.savefig(args.plotFile.name, format=args.plotFileFormat)
plt.close()

if __name__ == "__main__":
main()
1 change: 1 addition & 0 deletions deeptools/plotFingerprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ def main(args=None):
args.plotFileFormat = None

plt.savefig(args.plotFile.name, bbox_inches=0, format=args.plotFileFormat)
plt.close()

if args.outRawCounts:
args.outRawCounts.write("'" + "'\t'".join(args.labels) + "'\n")
Expand Down
1 change: 1 addition & 0 deletions deeptools/plotHeatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ def plotMatrix(hm, outFileName,

plt.savefig(outFileName, bbox_inches='tight', pdd_inches=0, dpi=200,
format=image_format)
plt.close()


def mergeSmallGroups(matrixDict):
Expand Down
3 changes: 3 additions & 0 deletions deeptools/plotProfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ def plot_hexbin(self):
plt.subplots_adjust(wspace=0.05, hspace=0.3)
plt.tight_layout()
plt.savefig(self.out_file_name, dpi=200, format=self.image_format)
plt.close()

def plot_heatmap(self):
matrix_flatten = None
Expand Down Expand Up @@ -350,6 +351,7 @@ def plot_heatmap(self):
plt.subplots_adjust(wspace=0.05, hspace=0.3)
plt.tight_layout()
plt.savefig(self.out_file_name, dpi=200, format=self.image_format)
plt.close()

def plot_profile(self):

Expand Down Expand Up @@ -464,6 +466,7 @@ def plot_profile(self):
plt.subplots_adjust(wspace=0.05, hspace=0.3)
plt.tight_layout()
plt.savefig(self.out_file_name, dpi=200, format=self.image_format)
plt.close()


def main(args=None):
Expand Down

0 comments on commit 10814af

Please sign in to comment.