Closed drmani closed 4 years ago
Test Script now exists in the PANOPLY/tests/latest
folder that compares a gold-standard output tarball with a test tarball.
png
, jpeg
, and pdf
files in addition to other "data" filesGCT
s and CSV
s unless specified with other regular expression rules to narrow down the list of files to comparetolerance
argument` that can be set while calling the scriptgold.tar
: gold standard tarballtest.tar
: test tarballtolerance
: threhsold for comparing numerical matrices; by default set to 1.490116e-08
or .Machine$double.eps ^ 0.5
file.list
: a YAML file listing patternsharmonized-data
use key make.names( "harmonized-data" )
as the key, which in this case would be harmonized.data
list.files()
"!<pattern>"
(ex. "!sample-info.csv"
or "!*.tsv"
)@mat
attributes test-report.txt
NOTE that, this script does one test for all the sub-directories. If you want to test for just one module, this should still work as long as you give it correct inputs. Other directories will simply be listed as missing.
Add tests using data subsets, synthetic data, or full datasets. Each task and workflow should have a test method.