Skip to contents

convert the splicing sites vector to a binary vector

Usage

sites2vec(start, in_site, out_site, end, polyA, sites_index, strand)

Arguments

start

A number recording the start position for a read

in_site

A string vector recording the start position for each exon for a read

out_site

A string vector recording the end position for each exon for a read

end

A number recording the end position for a read

polyA

A bool variable to indicate if the read has a polyA

sites_index

A string vector recording all sites across all reads in this gene

strand

The strand of this gene

Value

A binary vector indicating the splicing sites existence for a read

Details

convert the splicing sites vector to a binary vector, the spliced-in sites will be set as 1, the spliced-out sites will be set as 0, the depleted sites which may be due to technical truncations are set as NA.