bt.sort: Sorts a feature file in various and useful ways.

View source: R/bt.sort.R

bt.sortR Documentation

Sorts a feature file in various and useful ways.

Description

Sorts a feature file in various and useful ways.

Usage

bt.sort(
  i,
  sizeA = NULL,
  sizeD = NULL,
  chrThenSizeA = NULL,
  chrThenSizeD = NULL,
  chrThenScoreA = NULL,
  chrThenScoreD = NULL,
  g = NULL,
  faidx = NULL,
  header = NULL,
  output = NULL
)

Arguments

i

<bed/gff/vcf>

sizeA

Sort by feature size in ascending order.

sizeD

Sort by feature size in descending order.

chrThenSizeA

Sort by chrom (asc), then feature size (asc).

chrThenSizeD

Sort by chrom (asc), then feature size (desc).

chrThenScoreA

Sort by chrom (asc), then score (asc).

chrThenScoreD

Sort by chrom (asc), then score (desc).

g

Sort according to the chromosomes declared in "genome.txt"

faidx

Sort according to the chromosomes declared in "names.txt"

header

Print the header from the A file prior to results.

output

Output filepath instead of returning output in R.


PhanstielLab/bedtoolsr documentation built on Aug. 29, 2024, 5:37 p.m.