plotting_scripts/plot_read_length_distributions.py
def density_plot_with_mapping(data, outdir):
    """ Plot read length distribution for each dataset"""

    fname = outdir + "/read_lengths.png"

    g = sns.FacetGrid(data, row = 'name', hue = 'celltype')
    g.map(sns.distplot, "read_length")

    g.savefig(fname, dpi = 600)
 Plot read length distribution for each dataset
Plot read length distribution for each dataset
Plot read length distribution for each dataset
def density_plot_with_mapping(data, outdir):
    fname = outdir + "/read_lengths.png"
    g = sns.FacetGrid(data, row = 'name', hue = 'celltype')
    g.map(sns.distplot, "read_length")
    g.savefig(fname, dpi = 600)
def density_plot_with_mapping ( data , outdir ) : fname = outdir + "/read_lengths.png" g = sns . FacetGrid ( data , row = 'name' , hue = 'celltype' ) g . map ( sns . distplot , "read_length" ) g . savefig ( fname , dpi = 600 )
Plot read length distribution for each dataset
Plot read length distribution for each dataset
""" Plot read length distribution for each dataset"""
data
outdir