nf-core / nf-core/nft-utils

Function to get MD5sums of all files in directory that is an emitted element from a channel

Open
#30 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
13
Forks
11
Avg merge
1d 16h
Merged PRs (30d)
6

Description

Example:

        then {
            def stablefiles = []
            file(process.out.db.get(0).get(1)).eachFileRecurse{ file -> if (!["database-build.log", "database.report.tsv", "timestamp", "taxonomy"].find {file.toString().endsWith(it)}) {stablefiles.add(file)} }
            assertAll(
                { assert process.success },
                { assert snapshot(
                        stablefiles
                    ).match()
                }
            )
        }

Where the process.out.db contains a directory and subdirectories with multiple files, and I want to exclude database-build.log, database.report.tsv, and timestamp because they are variable files

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue provides no implementation file or test entry point. Start from the shown nf-test then block and the process.out.db channel value, and inspect how nf-test utility functions handle emitted directories and snapshots. Done means a utility can calculate MD5sums for the directory contents while excluding database-build.log, database.report.tsv, timestamp, and taxonomy.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.