Skip to content

nf-core/nft-tiff

Repository files navigation

nft-tiff

An nf-test plugin to write assertions on TIFF files

Currently just a stub with the intention that more specific/accurate checks can be added over time.

It adds a .tiff function to the path calls in nf-test. For example:

def tiff = path('filename.tiff').tiff

This tiff validator object exposes two functions, allowing comparison to be based on either the tiff metadata or the raw bitmap data. For example:

def tiff = path(process.out.tiff[0]).tiff
def reference = path('reference.tiff').tiff

// compare the metadata of the two tiffs, ignoring the bitmap data
assert tiff.meta == reference.meta

// or, compare the bitmaps of the two tiffs, ignoring the metadata
assert tiff.bitmaps == reference.bitmaps

Additional granular comparison features for metadata and bitmaps are described in the usage documentation.

About

A plugin to make testing of tiff files much simpler

Topics

Resources

License

Stars

Watchers

Forks

Contributors 6