Conversation
|
@Yunuuuu Please take a look |
Yunuuuu
left a comment
There was a problem hiding this comment.
Another suggestion: it would be helpful to include some tests, as they would give me a clearer understanding of whether the command is working correctly.
R/cmd-bedtools.R
Outdated
| inherit = Command, | ||
| private = list( | ||
| alias = function() "bedtools", | ||
| setup_help_params = function() "help", |
There was a problem hiding this comment.
我试了下,bedtools命令的帮助文档参数应该是"--help"
blit::appmamba("create", "--yes", "--name bedtools", "bioconda::bedtools")
exec("bedtools", "--help") |>
cmd_condaenv("bedtools") |>
cmd_run()
exec("bedtools", "intersect", "--help") |>
cmd_condaenv("bedtools") |>
cmd_run()
R/cmd-bedtools_1.R
Outdated
| #' @family command | ||
| #' @export | ||
| # bedtools_intersect ---- | ||
| bedtools_intersect <- make_command( |
There was a problem hiding this comment.
你已经创建了bedtools命令后,这个函数直接调用前面创建的函数就行
bedtools_intersect <- function(...) {
bedtools(sucmd ="intersect", ...) # do your work
}There was a problem hiding this comment.
此文件所有的函数都可以改成此形式,当然,实际上由subcmd参数,实际上这些函数不要也可
There was a problem hiding this comment.
是的,我当时上课跟他说过。只是让他提交记录下。
@Gates369 可以考虑只保留一个 clean 的简单版本,其他可以删除 commit 下。
There was a problem hiding this comment.
一般尽量不导致大数量的改变,这样有利于review,这个文件跟此PR功能无关,需保持原状
|
@Yunuuuu @ShixiangWang |
|
从这个测试看,应该是这个bedtools没有在PATH里面 |
|
@Gates369 env_path 设置到 |
|
@Yunuuuu |
|
基本没有问题了,麻烦老师合并一下,我这边貌似还是没有权限合并 @ShixiangWang @Yunuuuu |


@Yunuuuu @ShixiangWang @SunPast please take a look
_1版提供了一个子命令的形式,是否合适?有没有更好的办法?