Skip to content
GitLab
探索
登录
主导航
搜索或转到…
项目
P
pilon
管理
动态
成员
标记
计划
议题
0
议题看板
里程碑
迭代
Wiki
代码
合并请求
0
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
锁定的文件
构建
流水线
作业
流水线计划
产物
部署
发布
软件包库
运维
环境
Terraform 模块
监控
事件
服务台
分析
价值流分析
Contributor analytics
CI/CD 分析
仓库分析
代码评审分析
议题分析
模型实验
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
快捷键
?
支持
扫描加入微信群:
1. 获取企业级DevOps解决方案支持
2. 免费或折扣极狐GitLab 官方培训认证
代码片段
群组
项目
HPCSource
pilon
提交
bb595fd3
提交
bb595fd3
编辑于
8年前
作者:
Bruce Walker
浏览文件
操作
下载
补丁
差异文件
Clean up.
Version 1.22
上级
8159bbb2
无相关合并请求
变更
1
隐藏空白变更内容
行内
左右并排
显示
1 个更改的文件
src/main/scala/org/broadinstitute/pilon/GenomeFile.scala
+3
-6
3 个添加, 6 个删除
src/main/scala/org/broadinstitute/pilon/GenomeFile.scala
有
3 个添加
和
6 个删除
src/main/scala/org/broadinstitute/pilon/GenomeFile.scala
+
3
−
6
浏览文件 @
bb595fd3
...
...
@@ -222,20 +222,17 @@ class GenomeFile(val referenceFile: File, val targets : String = "") {
val
targetHelp
=
"Target string must be of the form \"element:start-stop\""
val
targets
=
for
(
target
<-
targetString
.
split
(
","
))
yield
{
// look for trailing coordinate spec
val
pattern
=
"^\\s*(.+):([0-9]+)-([0-9]+)\\s*$"
.
r
val
(
contig_name
,
start
,
stop
)
=
try
{
// look for trailing coordinate spec
val
pattern
=
"^\\s*(.+):([0-9]+)-([0-9]+)\\s*$"
.
r
val
pattern
(
contig_name
,
start
,
stop
)
=
target
(
contig_name
,
start
.
toInt
,
stop
.
toInt
)
}
catch
{
//use entire contig to define a region if start and stop are not specified
case
e
:
MatchError
=>
(
target
,
1
,
contigMap
(
target
).
length
)
}
val
contig
=
contigMap
(
contig_name
)
// start and length must both be specified, or neither specified
//use entire contig to define a region if start and stop are not specified
val
region
=
new
GenomeRegion
(
contig
,
start
,
stop
)
println
(
"Target: "
+
region
)
...
...
This diff is collapsed.
Click to expand it.
预览
0%
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录