- Package shall be downloadable and installable from Bioconductor.
- Package shall be downloadable and installable from GitHub.
- The package vignette shall knit into an html file.
- The knitted vignette shall have no errors in the R code blocks.
- Names including target names within the readDccFile returned list elements match the corresponding DCC section labels.
test: - The number of targets in the returned list matches the number of targets listed in the DCC file.
test: - The count for each target within the returned list matches the DCC file counts.
test:
- Column names of PKC files are in correct format.
test:GeomxTools/tests/testthat/test_readPKC.R
Line 15 in 062b3d9
- Names of metadata of PKC files are in correct format.
test:GeomxTools/tests/testthat/test_readPKC.R
Line 21 in 062b3d9
- The number of probes matches the number of probes found in the PKC file.
test:GeomxTools/tests/testthat/test_readPKC.R
Line 26 in 062b3d9
- Warning if default PKC provided when no multiple versions.
test:GeomxTools/tests/testthat/test_readPKC.R
Line 39 in 8c3c602
- Error if default PKCs is not a valid pkc file.
test:GeomxTools/tests/testthat/test_readPKC.R
Line 45 in 8c3c602
- Error if multiple default PKCs for a module.
test:GeomxTools/tests/testthat/test_readPKC.R
Line 50 in 8c3c602
- Warning when resolving multiple PKC versions.
test:GeomxTools/tests/testthat/test_readPKC.R
Line 56 in 8c3c602
- Only probes in all versions kept.
test:GeomxTools/tests/testthat/test_readPKC.R
Line 71 in 8c3c602
- Default PKC target assignments are used for probes with most recent PKC being default unless re-specified by user.
test:GeomxTools/tests/testthat/test_readPKC.R
Line 79 in 8c3c602
- NanoStringGeoMxSet@assayData$expr dimension labels shall match DCC files input.
test: - NanoStringGeoMxSet@phenoData@data column names shall match column names in input annotation file and rownames shall match input DCC file names.
test: - NanoStringGeoMxSet@protocolData@data column names shall match column names in input annotation file and rownames shall match input DCC file names.
test: - NanoStringGeoMxSet@featureData@data probes shall match probes in the input PKC file.
test: - Experiment data, testData@experimentData@other, shall contain expected headers.
test: - The probe counts in testData@assayData$exprs shall match those in the input DCC files.
test:GeomxTools/tests/testthat/test_readGeoMxSet.R
Line 101 in 062b3d9
- Data shall match corresponding data when the same experiment is loaded in DSPDA.
test: - User shall be able to pass optional parameters to read annotation file in with user-specified settings.
test:GeomxTools/tests/testthat/test_readGeoMxSet.R
Line 136 in 062b3d9
- Unidentifiable optional parameters for annotation input reading shall result in an error.
test:GeomxTools/tests/testthat/test_readGeoMxSet.R
Line 143 in 062b3d9
- PKCs are removed if they aren't in the provided config file.
test:
GeomxTools/tests/testthat/test_readGeoMxSet.R
Line 165 in 062b3d9
- Only a single analyte is read in to a GeomMxSet object.
test:
GeomxTools/tests/testthat/test_readGeoMxSet.R
Line 209 in 062b3d9
- The sData row names shall match DCC file names and column names shall match phenoData and protocolData column names.
test: - svarLabels list matches the column names of the sData data frame.
test: - dimLabels shall return a vector with two elements, TargetName and SampleID, by default.
test: - The design slot shall be accessible and NULL by default.
test: - featureType shall be accessible before and after aggregation with default value set to Probe and after aggregation set to Target.
test: - The function countsShiftedByOne shall return a boolean indicating if count shift has been performed on the object.
test: - The function analyte shall return which analyte is read into the object. test:
- dimLabels replacement method shall allow the replacement of the vector elements within dimLabels.
test: - The design replacement method shall allow the assignment of the design.
test: - The featureType replacement method shall allow the user to replace the feature type of the object.
test:
- All collapsed probe values must be equal to the geoMean of probes for each target.
test: - The geomean and geosd of negatives is correct. test:
- featureType shall default to Probe and change to Target after the aggregateCounts method is used.
test: - Aggregated GeoMxSet object shall have the same sample dimensions as the probe object and feature dimension shall match the number and names of targets in the feature data target name column. Aggregated object expression matrix dimension labels shall match the aggregated object dimension labels and counts shall by default match the geometric mean of aggregated counts by target from the probe object.
test: - An aggregation function other than geometric mean shall generate an aggregated object with dimension labels matching the default aggregated object and counts aggregated by the specified function for each target.
test: - Other aggregation functions will work. test:
- An error shall be displayed if the GeoMxSet object is target-level.
test: - Targets with only one probe shall not have aggregated counts. test:
- A warning shall be displayed if no negatives are found in the probe-level object being aggregated.
test: - A warning shall be displayed if the GeoMxSet object has no multiprobe targets.
test:
- The summarizeNegatives function shall be able to be run multiple times.
test: - For each panel, negatives shall be summarized by geometric mean and geometric standard deviation per panel. Summary results shall be saved in sample data.
test:
- Normalization factors shall be appended to sample data.
test: - Quantile normalization shall allow normalization at any quantile calculated as: AOI quantile / geometric mean of all AOI quantiles.
test: - Quantile normalization shall normalize expression counts as: count/(quantile normalization factor).
test: - Negative normalization shall calculate normalization factors as: geometric mean of AOI negatives / geometric mean of all AOIs geometric mean of each AOI. One normalization factor shall be calculated per panel for each AOI.
test: - Negative normalized values shall be calculated as: count / negative normalization factor for the corresponding target panel.
test: - Housekeeper normalization shall calculate the normalization factor as: geometric mean of housekeepers within AOI / geometric mean of all AOIs geometric mean of housekeepers within AOI.
test: - The user shall be able to do background subtraction by panel. For each panel, negative background shall be calculated as the geometric mean of negatives for each AOI. Background subtracted counts shall be calculated as counts - corresponding AOI background for the corresponding panel.
test: - The user shall be able to do background subtraction with all negatives regardless of panel. Negative background shall be calculated as the geometric mean of negatives for each AOI. Background subtracted counts shall be calculated as counts - corresponding AOI background.
test: - An error shall be displayed if no negatives are available to calculate background when performing background subtraction.
test: - An error shall be displayed if no negatives are available to calculate background when performing negative normalization.
test: - An error shall be displayed if negative normalization is attempted on a probe-level object.
test: - An error shall be displayed if background subtraction is attempted on a probe-level object.
test: - All normalization methods work on protein data.
test:
GeomxTools/tests/testthat/test_protein.R
Line 168 in 062b3d9
- The Technical signal QC shall flag samples that have raw counts below the raw read threshold parameter. The Low Reads flag shall be stored in the protocol data.
test:GeomxTools/tests/testthat/test_QC.R
Line 24 in 062b3d9
- The Technical signal QC shall flag samples that are below the percent trimmed allowed. The percent trimmed shall be calculated as: 100% * (trimmed reads/raw reads). The LowTrimmed flag shall be stored in the protocol data.
test:GeomxTools/tests/testthat/test_QC.R
Line 30 in 062b3d9
- The Technical signal QC shall flag samples that are below the percent stitched reads allowed. The percent stitched reads shall be computed as: 100 * (stitched reads / raw reads). The LowStitched flag shall be stored in the protocol data.
test:GeomxTools/tests/testthat/test_QC.R
Line 36 in 062b3d9
- The Technical signal QC shall flag samples that have percent aligned reads below the percent aligned reads threshold which is the minimum percent of raw reads aligned to target sequences allowed. The percent aligned reads shall be computed as: 100 * (aligned reads / raw reads). The LowAligned flag shall be stored in the protocol data.
test:GeomxTools/tests/testthat/test_QC.R
Line 42 in 062b3d9
- The Technical signal QC shall flag samples that are below the percent saturation allowed. The percent saturation shall be calculated as: 100% * (1 - deduplicated reads/aligned reads). The LowSaturation flag shall be stored in the protocol data.
test:GeomxTools/tests/testthat/test_QC.R
Line 48 in 062b3d9
- The Negative probe count geomean threshold establishes the level of technical noise expected and flags segments with signal below that level. The LowNegatives QC shall flag samples with geometric mean of negatives below the negative cutoff.
test:GeomxTools/tests/testthat/test_QC.R
Line 69 in 062b3d9
- The No Template Control (NTC) Count establishes the level at which counts in the NTC will be flagged. The No Template Control (NTC) is used to detect contamination in the library prep. The QC shall flag segments that have higher than the maximum NTC count cutoff.
test:GeomxTools/tests/testthat/test_QC.R
Line 82 in 062b3d9
- The minimum nuclei count threshold is the minimum recommended value for the GeoMx run and QC shall flag segments with nuclei count below that level. The LowNuclei flag shall be set for this QC on the object protocol slot.
test:GeomxTools/tests/testthat/test_QC.R
Line 95 in 062b3d9
- The minimum surface area threshold is the minimum recommended value for the GeoMx run and QC shall flag segments with area below that level. The LowArea flag shall be set for this QC on the object protocol slot.
test:GeomxTools/tests/testthat/test_QC.R
Line 101 in 062b3d9
- The LowNuclei and/or LowArea flag QC shall be bypassed if no area and/or nuclei columns are in the input annotation file.
test:GeomxTools/tests/testthat/test_QC.R
Line 109 in 062b3d9
- The LowProbeRatio QC shall flag probes with geometric mean expression to target geometric mean expression ratios below the ratio cutoff.
test:GeomxTools/tests/testthat/test_QC.R
Line 156 in 062b3d9
- The LocalGrubbsOutlier QC shall flag probes that are Grubbs outliers in each AOI when compared to probes from the same target given specified alpha setting.
test:GeomxTools/tests/testthat/test_QC.R
Line 163 in 062b3d9
- The GlobalGrubbsOutlier QC shall flag probes with percent of LocalGrubbsOutlier flags greater than the percent cutoff across all AOI.
test:GeomxTools/tests/testthat/test_QC.R
Line 196 in 062b3d9
- Targets with less than three probes shall have no Grubbs outlier flags.
test:GeomxTools/tests/testthat/test_QC.R
Line 205 in 062b3d9
- LowProbeRatio flags shall match between GeomxTools BioProbeQC and DSPDA BioProbe QC.
test: - GlobalGrubbs flags shall match between GeomxTools BioProbeQC and DSPDA BioProbe QC.
test: - Proportions of local Grubbs' outliers per target shall match proportions per target identified with local Grubbs' outlier testing in DSPDA. Exact probes selected as outliers may vary if more than one probe has the same extreme value. By the definition of the Grubbs' test only one of these values may be excluded and the choice between probes with the same value is arbitrary.
test: - The QC flags from setSegmentQCFlags shall match the QC flags from running setSeqQCFlags, setBackgroundQCFlags, and setGeoMxQCFlags on the same GeoMxSet object with the same settings.
test:GeomxTools/tests/testthat/test_QC.R
Line 130 in 062b3d9
- The QC flags from setSegmentQCFlags shall match the QC flags from running segment Quality Control in DSPDA with the same settings on the same data.
test: - The appropriate segment QC flags shall be added to a protein dataset.
test:
GeomxTools/tests/testthat/test_protein.R
Line 103 in 062b3d9
- A warning is given if protein data is run through setBioProbeQCFlags.
test:
GeomxTools/tests/testthat/test_protein.R
Line 114 in 062b3d9
- The function probe p-value shall match the probe p-value from running linear mixed model analysis outside of the function.
test:GeomxTools/tests/testthat/test_de.R
Line 65 in 062b3d9
- With a non-Windows operating system, parallelizing across multiple cores or clusters shall produce the same results. Multicore parallelization is not available for Windows.
test:GeomxTools/tests/testthat/test_de.R
Line 68 in 062b3d9
- With a non-Windows operating system, parallelizing across multiple cores or running the function sequentially shall produce the same results. Multicore parallelization is not available for Windows.
test:GeomxTools/tests/testthat/test_de.R
Line 74 in 062b3d9
- An error shall be produced if model terms are not found in sample data.
test:GeomxTools/tests/testthat/test_de.R
Line 100 in 062b3d9
- An error shall be produced if grouping variable is not located in the sample data.
test:GeomxTools/tests/testthat/test_de.R
Line 115 in 062b3d9
- The function with useDALogic param set to TRUE shall add one to all zeros in the expression matrix.
test: - The function with useDALogic param set to FALSE shall add one count to all counts in the expression matrix.
test:
- The function shall generate a DCC file for each sample from a probe-level GeoMxSet object expression matrix regardless of processing steps previously performed on the object.
test: - The function shall not generate DCC files and an error shall be displayed when attempting to write from a target-level GeoMxSet object regardless of processing steps previously performed on the object.
test: - GeoMxSet object generated from the created DCC files shall match the GeoMxSet object used to generate the DCC with the writeNanoStringGeoMxSet function with the exception of the NTC sample data column if included.
test:
- The function ngeoMean shall calculate the geometric mean of values. If values <=0 are provided to the function, values shall be shifted by a threshold value to be >0 prior to calculation. Values that are NA shall be ignored in the calculation.
test:GeomxTools/tests/testthat/test_utils.R
Line 33 in 062b3d9
- The function ngeoSD shall calculate the geometric standard deviation of values. If values <=0 are provided to the function, values shall be shifted by a threshold value to be >0 prior to calculation. Values that are NA shall be ignored in the calculation.
test:GeomxTools/tests/testthat/test_utils.R
Line 42 in 062b3d9
- The function logtBase shall calculate the log of values by base parameter. If values <=0 are provided to the function, values shall be shifted by a threshold value to be >0 prior to calculation. Values that are NA shall be ignored in the calculation.
test:GeomxTools/tests/testthat/test_utils.R
Line 52 in 062b3d9
- The coercion of a GeoMxSet object shall warn users when coercing non-normalized data but will coerce when forced.
test: - The coercion of a GeoMxSet object shall only occur on target level data.
test: - The coercion of a GeoMxSet object shall only occur when a valid norm data count matrix is provided by the user.
test: - The coercion of a GeoMxSet object shall copy the wanted data from the GeoMxSet object to the correct location in the coerced object.
test: - The coercion of a GeoMxSet object shall warn users when the coordinate column names are not valid.
test:GeomxTools/tests/testthat/test_coercions.R
Line 211 in 062b3d9
- The coercion of an older version of a GeoMxSet object to the current version is valid.
test:GeomxTools/tests/testthat/test_coercions.R
Line 245 in 8c3c602
- igg.names shall return the expected target names.
test:GeomxTools/tests/testthat/test_protein.R
Line 130 in 062b3d9
- hk.names shall return the expected target names.
test:GeomxTools/tests/testthat/test_protein.R
Line 139 in 062b3d9
- computeNormalizationFactors and normalize calculations match.
test:
GeomxTools/tests/testthat/test_protein.R
Line 191 in 062b3d9