1
0
Fork 0
mirror of https://github.com/MillironX/taxprofiler.git synced 2024-11-21 21:56:05 +00:00

Prempt centrifuge database untar crash

This commit is contained in:
James A. Fellows Yates 2022-03-26 20:22:35 +00:00
parent 120382f51d
commit 622fafedc8

View file

@ -12,6 +12,9 @@ workflow DB_CHECK {
main:
// TODO: make database sheet check
// Checks:
// 1) no duplicates,
// 2) dbs with no special arguments does not have quotes, e.g. just `,,` and NOT `,"",`
parsed_samplesheet = DATABASE_CHECK ( dbsheet )
.csv
.splitCsv ( header:true, sep:',' )
@ -21,7 +24,7 @@ workflow DB_CHECK {
ch_dbs_for_untar = parsed_samplesheet
.branch {
untar: it[1].toString().endsWith(".tar.gz")
untar: it[1].toString().endsWith(".tar.gz") && it[0]['tool'] != 'centrifuge'
skip: true
}