bedtools_shift | R Documentation |
Compute shifting regions.
bedtools_shift(cmd = "--help")
R_bedtools_shift(i, s = 0, m = 0, p = 0, pct = FALSE, g = NULL, header = FALSE)
do_bedtools_shift(i, s = 0, m = 0, p = 0, pct = FALSE, g = NULL, header = FALSE)
cmd |
String of bedtools command line arguments, as they would be entered at the shell. There are a few incompatibilities between the docopt parser and the bedtools style. See argument parsing. |
i |
Path to a BAM/BED/GFF/VCF/etc file, a BED stream, a file object, or
a ranged data structure, such as a GRanges. Use |
s |
Amount to shift all features. |
m |
Amount to shift negative strand features. |
p |
Amount to shift positive strand features. |
pct |
Define |
g |
Genome file, identifier or Seqinfo object that defines the order and size of the sequences. |
header |
Ignored. |
As with all commands, there are three interfaces to the
shift
command:
bedtools_shift
Parses the bedtools command line and compiles it to the equivalent R code.
R_bedtools_shift
Accepts R arguments corresponding to the command line arguments and compiles the equivalent R code.
do_bedtools_shift
Evaluates the result of
R_bedtools_shift
. Recommended only for
demonstration and testing. It is best to integrate the compiled
code into an R script, after studying it.
This is a fairly straight-forward application of
shift
.
A language object containing the compiled R code, evaluating to a GRanges, or similar, object. In principle, this is an endomorphism.
Michael Lawrence
http://bedtools.readthedocs.io/en/latest/content/tools/shift.html
intra-range-methods for shift
.
## Not run:
setwd(system.file("unitTests", "data", "shift", package="HelloRanges"))
## End(Not run)
## shift all ranges by 5
bedtools_shift("-i a.bed -s 5 -g tiny.genome")
## shift only the negative strand features by 5
bedtools_shift("-i a.bed -p 0 -m 5 -g tiny.genome")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.