sort_matrix: Sort metagene object regions

Description Usage Arguments Details Value Examples

Description

Sort metagene object regions as sum per line

Usage

1
sort_matrix(m, bed_file)

Arguments

m

metagene object

Details

Sorts the matrix and regions.

Value

The sorted metagene object

Examples

1
2
3
4
5
6
 matrix_name <- '/Users/schmidm/Documents/other_people_to_and_from/ClaudiaI/Effie_RNAseq_bws/RNAseq_deeptools_out/eRNA_tsspm5000_sorted_by_INT_binding_joined_sensitivity.gz'
 bed_name <- '/Users/schmidm/Documents/other_people_to_and_from/ClaudiaI/Shiekkatar_INT_ChIP/eRNAs_sorted_by_INTS_binding.bed'

 m_sorted <- sort_matrix(matrix_name, bed_name)

 write.table(m_sorted, file='/Users/schmidm/Documents/other_people_to_and_from/ClaudiaI/Effie_RNAseq_bws/RNAseq_deeptools_out/eRNA_tsspm5000_sorted_by_INT_binding_joined_sensitivity_sorted', row.names = FALSE, col.names = FALSE, quote = F, dec = '.')

manschmi/RMetaTools documentation built on Dec. 14, 2021, 4:33 a.m.