Skip to contents

convert the splicing sites vector for all reads to a binary matrix

Usage

sites2matrix(data, in_sites_index, out_sites_index, strand)

Arguments

data

A dataframe recording the splicing sites for a read, including start, middle splicing sites, end and polyA

in_sites_index

A string vector recording unique start position for all middle exons

out_sites_index

A string vector recording unique end position for all middle exons

strand

The strand of this gene

Value

A binary matrix indicating the splicing sites existence for all reads from a gene

Details

This function applies sites2vec to all reads and concat all vector results to a matrix