Skip to content

Commit e5e2fda

Browse files
committed
add freebayes
1 parent 0184eac commit e5e2fda

30 files changed

Lines changed: 276 additions & 2 deletions

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export(exec)
3030
export(fastp)
3131
export(fastq_pair)
3232
export(fastq_read_pair)
33+
export(freebayes)
3334
export(gistic2)
3435
export(install_appmamba)
3536
export(kraken2)

R/cmd-freebayes.R

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#' Run freebayes
2+
#'
3+
#'freebayes is a Bayesian genetic variant detector designed to find small polymorphisms,
4+
#'specifically SNPs (single-nucleotide polymorphisms), indels (insertions and deletions),
5+
#'MNPs (multi-nucleotide polymorphisms), and complex events (composite insertion and substitution events)
6+
#'smaller than the length of a short-read sequencing alignment.
7+
#' @param ref A string of reference file path.
8+
#' @param input A string of path to the input bam file.
9+
#' @param ofile A string of path to the output vcf file.
10+
#' @param ... `r rd_dots("freebayes")`.
11+
#' @param freebayes `r rd_cmd("freebayes")`.
12+
#' @family command
13+
#' @inherit exec return
14+
#' @seealso
15+
#' - <https://github.com/freebayes/freebayes>
16+
#'
17+
#' `r rd_seealso()`
18+
#' @export
19+
freebayes <- make_command(
20+
"freebayes",
21+
function(
22+
ref,
23+
input,
24+
ofile,
25+
...,
26+
freebayes = NULL
27+
){
28+
assert_string(freebayes, allow_empty = FALSE, allow_null = TRUE)
29+
Freebayes$new(
30+
cmd = freebayes,
31+
...,
32+
ref = ref,
33+
input = input,
34+
ofile = ofile,
35+
)
36+
}
37+
)
38+
39+
Freebayes <- R6Class(
40+
"Freebayes",
41+
inherit = Command,
42+
private = list(
43+
alias = function() "freebayes",
44+
setup_help_params = function() "--help",
45+
setup_command_params = function(ref, input, ofile){
46+
c(
47+
arg0("-f", ref),
48+
arg0("-b", input),
49+
arg0("-v", ofile)
50+
)
51+
}
52+
)
53+
)
File renamed without changes.

_pkgdown.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ reference:
5454
- gistic2
5555
- strelka
5656
- minimap2
57+
- freebayes
5758

5859
- title: "Transcriptomic tools"
5960
desc: "Wrappers for transcriptome sequencing data processing and analysis tools."

man/allele_counter.Rd

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/bcftools.Rd

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/bedtools.Rd

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/bowtie2.Rd

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/bwa.Rd

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/cellranger.Rd

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)