Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Using AnnotationHub with job schedular causes an error

未关闭
#16 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
r
领域
databases

调研方向

从 ah.R 和 AnnotationHub() 的初始化开始,然后使用提供的 Snakefile 在 OpenGridEngine 或 Slurm 下重现故障。跟踪与已报告的 cache_size、synchronous 和下载警告相关的缓存数据库设置;当并行作业能够获取并保存资源而不会出现只读数据库错误时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

When using AnnotationHub in parallel with job schedular (OpenGridEngine and Slurm), whether a job can be calculated was stochastical and some jobs were failed with the error attempt to write a readonly database.

I don't know why but since some jobs can be calculated,
by performing the job queue, again and again, I could finally get the output.

As an alternative approach, by not using the job schedular,
I could perform the calculation without any error,
but it takes an enormous amount of time, so I want to know the reason for the error.

I wrote an Snakefile as follows:

rule all:
	input:
		expand('{id}.RData', id=list(range(24)))

rule ah:
	output:
		'{id}.RData'
	log:
		'logs/{id}.log'
	shell:
		'Rscript ah.R {id} >& {log}'

wrote the R-script (ah.R) as follows:

outfile = commandArgs(trailingOnly=TRUE)[1]
library("AnnotationHub")
ah = AnnotationHub()
id = names(ah)[sample(length(ah), 1)]
out = ah[[id]]
save(out, file=outfile)

and finally performed the snakemake workflow as follows:

# OpenGridEngine
snakemake -j 24 --cluster "qsub -S /bin/bash"

or

# Slurm
snakemake -j 24 --cluster sbatch

The error message was as follows:

Loading required package: BiocFileCache
Loading required package: dbplyr
snapshotDate(): 2019-10-29
downloading 1 resources
retrieving 1 resource
Error: failed to load resource
  name: AH39322
  title: E031-H3K23me2.imputed.pval.signal.bigwig
  reason: 1 resources failed to download
In addition: Warning messages:
1: Couldn't set cache size: attempt to write a readonly database
Use `cache_size` = NULL to turn off this warning.
2: Couldn't set synchronous mode: attempt to write a readonly database
Use `synchronous` = NULL to turn off this warning.
3: download failed
  hub path: ‘https://annotationhub.bioconductor.org/fetch/44762’
  cache resource: ‘AH39322 : 44762’
  reason: attempt to write a readonly database
Execution halted
主要语言
R
星标
20
派生
16
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Bioconductor/AnnotationHub 的其他 Issue

查看 Bioconductor/AnnotationHub 的全部 Issue

相似的 Issue

更多 R Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。