cap_reads: cap_reads

View source: R/cap_reads.R

cap_readsR Documentation

cap_reads

Description

create a subsampled version of bam_file that is approximately the number specified by max_reads

Usage

cap_reads(bam_file, max_reads, ncores = 1, out_dir = dirname(bam_file))

Arguments

bam_file

an indexed bam file

max_reads

target number of reads

ncores

number of cores to use for samtools view operation

Value

path to subsampled file

Examples

cap_reads

FrietzeLabUVM/peaksat documentation built on Oct. 2, 2024, 7:07 p.m.