Пример #1
0
def betas_plot_scatter(data,
                       annotations,
                       attributes,
                       cpg_list,
                       observables_list,
                       child_method=Method.linreg,
                       method_params=None):
    """
    Plotting methylation level from observables as scatter for provided subjects subsets and provided CpG list.

    Possible parameters of experiment:

     * ``'x_range'``: can be ``'auto'`` or list with two elements, which are borders of target axis.
     * ...

    :param data: pdm.Data instance, which specifies information about dataset.
    :param annotations: pdm.Annotations instance, which specifies subset of CpGs.
    :param attributes: pdm.Attributes instance, which specifies information about subjects.
    :param cpg_list: List of CpGs for plotting
    :param observables_list: list of subjects subsets. Each element in list is dict,
     where ``key`` is observable name and ``value`` is possible values for this observable.
    :param method_params: parameters of experiment.
    """

    plot_scatter(data_type=DataType.betas,
                 data=data,
                 annotations=annotations,
                 attributes=attributes,
                 cpg_list=cpg_list,
                 observables_list=observables_list,
                 child_method=child_method,
                 method_params=method_params)
Пример #2
0
def genes_plot_scatter(data,
                       annotations,
                       attributes,
                       observables_list,
                       child_method=Method.linreg,
                       data_params=None,
                       method_params=None):
    plot_scatter(DataType.genes, data, annotations, attributes,
                 observables_list, child_method, data_params, method_params)
Пример #3
0
def residuals_special_plot_scatter(data,
                                   annotations,
                                   attributes,
                                   cpg_list,
                                   observables_list,
                                   child_method=Method.linreg,
                                   params=None):
    plot_scatter(DataType.residuals_special, data, annotations, attributes,
                 cpg_list, observables_list, child_method, params)
Пример #4
0
def residuals_common_plot_scatter(data,
                                  annotations,
                                  attributes,
                                  cpg_list,
                                  observables_list,
                                  child_method=Method.linreg,
                                  data_params=None,
                                  method_params=None):
    plot_scatter(DataType.residuals_common, data, annotations, attributes,
                 cpg_list, observables_list, child_method, data_params,
                 method_params)
Пример #5
0
def cells_plot_scatter(data,
                       annotations,
                       attributes,
                       observables_list,
                       child_method=Method.linreg,
                       method_params=None):

    plot_scatter(data_type=DataType.cells,
                 data=data,
                 annotations=annotations,
                 attributes=attributes,
                 observables_list=observables_list,
                 child_method=child_method,
                 method_params=method_params)
Пример #6
0
def epimutations_plot_scatter(
    data,
    annotations,
    attributes,
    observables_list,
    method_params=None
):
    plot_scatter(
        DataType.epimutations,
        data,
        annotations,
        attributes,
        observables_list,
        child_method=Method.linreg,
        method_params=method_params
    )
Пример #7
0
def entropy_plot_scatter(
    data,
    annotations,
    attributes,
    observables_list,
    data_params=None,
    method_params=None
):
    plot_scatter(
        DataType.entropy,
        data,
        annotations,
        attributes,
        observables_list,
        child_method=Method.linreg,
        data_params=data_params,
        method_params=method_params
    )