2121from sashimi .file .ATAC import ATAC
2222from sashimi .plot import Plot
2323
24- __version__ = "0.0.7 "
24+ __version__ = "0.0.8 "
2525__author__ = "ygidtu & Ran Zhou"
2626__email__ = "ygidtu@gmail.com"
2727
@@ -556,8 +556,8 @@ def main(**kwargs):
556556 show_site_plot = kwargs ["show_site" ],
557557 strand_choice = kwargs ["site_strand" ],
558558 density_by_strand = kwargs ["density_by_strand" ],
559- only_customized_junction = kwargs ["only_customized_junction" ]
560- )
559+ only_customized_junction = kwargs ["only_customized_junction" ],
560+ log_trans = kwargs [ "log" ] )
561561 elif f .category != "atac" :
562562 p .add_density (f .path ,
563563 category = f .category ,
@@ -572,7 +572,8 @@ def main(**kwargs):
572572 show_y_label = not kwargs ["hide_y_label" ],
573573 show_site_plot = kwargs ["show_site" ],
574574 strand_choice = kwargs ["site_strand" ],
575- density_by_strand = kwargs ["density_by_strand" ],)
575+ density_by_strand = kwargs ["density_by_strand" ],
576+ log_trans = kwargs ["log" ])
576577 elif key == "heatmap" :
577578 for f in process_file_list (kwargs [key ], key ):
578579 if barcodes and f .name in barcodes .keys () and f .category in ["bam" , "atac" ]:
@@ -599,7 +600,8 @@ def main(**kwargs):
599600 font_size = kwargs ["font_size" ],
600601 do_scale = kwargs ["heatmap_scale" ],
601602 vmin = kwargs ["heatmap_vmin" ],
602- vmax = kwargs ["heatmap_vmax" ])
603+ vmax = kwargs ["heatmap_vmax" ],
604+ log_trans = kwargs ["log" ])
603605 elif f .category != "atac" :
604606 p .add_heatmap (f .path ,
605607 category = f .category ,
@@ -617,7 +619,8 @@ def main(**kwargs):
617619 show_row_names = kwargs ["show_row_names" ],
618620 do_scale = kwargs ["heatmap_scale" ],
619621 vmin = kwargs ["heatmap_vmin" ],
620- vmax = kwargs ["heatmap_vmax" ])
622+ vmax = kwargs ["heatmap_vmax" ],
623+ log_trans = kwargs ["log" ])
621624 elif key == "line" :
622625 for f in process_file_list (kwargs [key ], key ):
623626 if barcodes and f .name in barcodes .keys () and f .category == "bam" :
@@ -643,7 +646,8 @@ def main(**kwargs):
643646 n_y_ticks = kwargs ["n_y_ticks" ],
644647 show_legend = not kwargs ["hide_legend" ],
645648 legend_position = kwargs ["legend_position" ],
646- legend_ncol = kwargs ["legend_ncol" ])
649+ legend_ncol = kwargs ["legend_ncol" ],
650+ log_trans = kwargs ["log" ])
647651 else :
648652 p .add_line (f .path ,
649653 category = f .category ,
@@ -658,7 +662,8 @@ def main(**kwargs):
658662 n_y_ticks = kwargs ["n_y_ticks" ],
659663 show_legend = not kwargs ["hide_legend" ],
660664 legend_position = kwargs ["legend_position" ],
661- legend_ncol = kwargs ["legend_ncol" ])
665+ legend_ncol = kwargs ["legend_ncol" ],
666+ log_trans = kwargs ["log" ])
662667 elif key == "igv" :
663668 for f in process_file_list (kwargs [key ], "igv" ):
664669 igv_features = {}
@@ -742,6 +747,7 @@ def main(**kwargs):
742747 included_junctions = included_junctions ,
743748 n_jobs = kwargs .get ("process" , 1 )
744749 )
750+ logger .info ("DONE" )
745751
746752
747753if __name__ == '__main__' :
0 commit comments