Learn R Programming

CSSP (version 1.10.0)

tag2bin.chr: Convert the genome coordinates of aligned reads to bin-level counting data for a single chromosome.

Description

Convert the genome coordinates of aligned reads to bin-level counting data for a single chromosome.

Usage

tag2bin.chr(tagdat, fragL = 200, binS = 200)

Arguments

tagdat
A numeric vector of genome coordinates for the starting positions of the aligned reads, with positive numbers representing the 5' strand and negative numbers representing the 3' strand.
fragL
A numeric value of the fragment length for the reads. Default: 200.
binS
A numeric value of the bin-size for the bin-level data to be constructed. Default: 200.

Value

A numeric vector of the counts for each bin.

Examples

Run this code
data( tagdat_chip )
tag2bin.chr( tagdat_chip[[1]], fragL = 100, binS = 100 )

Run the code above in your browser using DataLab