get_fragments_length: Extract fragment length from a BAM file.

View source: R/plot_fragments.R

get_fragments_lengthR Documentation

Extract fragment length from a BAM file.

Description

This function takes a BAM file as input and outputs the fragment length of all reads in a TXT file.

Usage

get_fragments_length(
  bin_path = "tools/samtools/samtools",
  bam = "",
  remove_unmapped = TRUE,
  verbose = FALSE,
  threads = 1
)

Arguments

bin_path

Path to samtools executable. Default path tools/samtools/samtools.

bam

Path to BAM file.

remove_unmapped

Removes unmapped reads and/or mates. Only in BAM files. Default TRUE

verbose

Enables progress messages. Default False.

threads

Number of threads to use.


TearsWillFall/DNAfrags documentation built on March 26, 2022, 6:02 a.m.