extract_corecmotifs: Extract corecmotif objects from z-score matrix

Description Usage Arguments Value Examples

Description

Extracts a corecmotif object from the input z-score matrix for every possible combination of the given seed names and PBM conditions.

Usage

1
2
3
zscore_matrix_to_motifs(zscore_matrix, seed_names, pbm_conditions)

make_zscore_motif(zscore_matrix, seed_name, pbm_condition)

Arguments

zscore_matrix

A data frame of PBM condition-wise fluorescence value z-scores, such as output by fluorescence_to_zscore_matrix().

seed_names, seed_names

A character vector of the names of the seeds for which to extract corecmotif objects.

seed_name

The name of the seed for which to extract a corecmotif object.

pbm_condition, pbm_conditions

A character vector of the column names of the PBM conditions for which to extract corecmotif objects.

pbm_condition

The column name of the PBM condition for which to extract a corecmotif object.

Value

A list of corecmotif objects, one for each possible combination of the seed names and PBM conditions provided to seed_names and pbm_conditions respectively.

A data frame representing the z-score motif for the seed name and PBM condition provided to seed_name and pbm_condition respectively, where the rows are nucleotides and the columns are positions in the motif.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
corec_motifs <-
    zscore_matrix_to_motifs(
        zscore_matrix,
        seed_names,
        pbm_conditions_br
    )
zscore_motif <-
    make_zscore_motif(
        zscore_matrix,
        "MA0079.3_SP1",
        "v1_a11_run1_br_UT_SUDHL4_SMARCA4MIX"
    )

pamelaglopez/hTF_array documentation built on Feb. 23, 2022, 12:05 a.m.