nextflow-io/nextflow

Add an option to the file method to check for md5sum

Open

#2,491 建立於 2021年12月14日

在 GitHub 查看
 (9 留言) (0 反應) (1 負責人)Groovy (784 fork)batch import
good first issue

倉庫指標

Star
 (3,382 star)
PR 合併指標
 (平均合併 16天 9小時) (30 天內合併 54 個 PR)

描述

After discussion on the nf-core slack, we (@ewels, @mahesh-panchal) think that it would be useful to add a native option to the file method to check the integrity of the files that are staged. Using the example shown in the documentation here, an option that might be named checksum should allow providing the hash in a similar manner to the code below:

pdb = file('http://files.rcsb.org/header/5FID.pdb', checksum: 'ba45addcc599af2ac71492f0f55da866')

The idea will be that the hash of the file is calculated either if the file is staged or if it is already present in the cage by a previous execution and that if the hash does not match the provided by the user an exception is raised, similarly to what happens when checkIfExists option is set to true and the file is not found in the system.

貢獻者指南