Skip to content

Commit b6084d1

Browse files
committed
Resolve comments
1 parent 1151b85 commit b6084d1

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

workflows/vcftomaf/main.nf

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,7 @@ workflow VCFTOMAF {
4545
//
4646

4747
if (params.vep_cache) {
48-
ch_vep_cache = vep_cache.map { it ->
49-
def new_id = ""
50-
if (it) {
51-
new_id = it[0].simpleName.toString()
52-
}
53-
[[id: new_id], it]
54-
}
48+
ch_vep_cache = vep_cache.map { it -> [[id: it[0].simpleName.toString()], it] }
5549
// UNTAR if available
5650
vep_cache_unpacked = UNTAR(ch_vep_cache).untar.map { unpacked -> unpacked[1] }
5751
ch_versions = ch_versions.mix(UNTAR.out.versions)

0 commit comments

Comments
 (0)