depth

package
v0.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 16 Imported by: 1

README

depth

depth parallelizes calls to samtools in user-defined windows. It outputs a bed file of callable regions (determined by mincov) and of depth (only windows with <= maxmeandepth are reported.

usage: goleft depth [--windowsize WINDOWSIZE] [--maxmeandepth MAXMEANDEPTH] [--q Q] [--chrom CHROM] [--mincov MINCOV] [--stats] --reference REFERENCE [--processes PROCESSES] [--bed BED] [--prefix PREFIX] BAM

positional arguments:
  bam                    bam for which to calculate depth

options:
  --windowsize WINDOWSIZE, -w WINDOWSIZE
                         window size in which to calculate high-depth regions [default: 250]
  --maxmeandepth MAXMEANDEPTH, -m MAXMEANDEPTH
                         windows with depth > than this are high-depth. The default reports the depth of all regions.
  --q Q, -Q Q            mapping quality cutoff [default: 1]
  --chrom CHROM, -c CHROM
                         optional chromosome to limit analysis
  --mincov MINCOV        minimum depth considered callable [default: 4]
  --stats, -s            report sequence stats [GC CpG masked] for each window
  --reference REFERENCE, -r REFERENCE
                         path to reference fasta
  --processes PROCESSES, -p PROCESSES
                         number of processors to parallelize.
  --bed BED, -b BED      file of positions or regions. (parallelization will be by region).
  --prefix PREFIX
  --help, -h             display this help and exit

Documentation

Overview

Package depth parallelizes calls to samtools depths and outputs: 1) $prefix.callable.bed that contains collapsed per-base regions of NO/LOW/or CALLABLE coverage. where low is < MinCov. 2) $prefix.depth.bed that contains the average depth for each window interval specified by WindowSize. TODO: output gc-content in depth windows.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

Main is run from the dispatcher

func Overlaps added in v0.1.15

func Overlaps(tree *interval.IntTree, start, end int) bool

Overlaps checks for overlaps without pulling intervals from the tree.

func ReadTree added in v0.1.15

func ReadTree(ps ...string) map[string]*interval.IntTree

ReadTree takes a bed file and returns map of trees.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL