associate_with_tsr.Rd
Associate TSSs with TSRs.
associate_with_tsr(experiment, sample_list = NULL)
experiment | TSRexploreR object. |
---|---|
sample_list | List with TSRs as names and TSSs as vector. If NULL, will associate TSSs with TSRs from the sample of the same name. |
TSRexploreR provides many options for the import and merging of TSSs and TSRs. Because of this, TSS samples must be associated with TSR samples after TSR import, TSR merging, or TSS clustering using this function. Each TSS with genomic coordinates overlapping those of a TSR in the specified sample will be linked to that TSR. TSSs not overlapping a TSR in the specified sample will not be associated with any TSR.
TSS samples can be associated with TSR samples using a list or sample sheet. 'sample_list' should be a named list of character vectors, with the names being the TSR sample names and the character vectors as the TSS samples(s) that should be associated with each TSR sample. If no sample list is provided, the function will automatically associate TSSs with the TSRs from the sample of the same name.
data(TSSs_reduced) exp <- TSSs_reduced %>% tsr_explorer %>% format_counts(data_type="tss") %>% tss_clustering(threshold=3) %>% associate_with_tsr#> Warning: Arguments in '...' ignored#> Warning: Arguments in '...' ignored