When groupvar is not provided,
- The function outputs a GeoMx S4 class with length same as length of ROIs, sizefact, in phenoData.
test:GeoDiff/tests/testthat/test-fitPoisBG.R
Line 20 in eef13ef
- The function outputs a GeoMx S4 class with length same as length of negative probes, featfact, in featureData. The value is NA for non-negative probes.
test:GeoDiff/tests/testthat/test-fitPoisBG.R
Line 23 in eef13ef
- If size_scale="first", sizefact[1]=1
test:GeoDiff/tests/testthat/test-fitPoisBG.R
Line 30 in eef13ef
- If size_scale="sum", sum(sizefact)=1
test:GeoDiff/tests/testthat/test-fitPoisBG.R
Line 34 in eef13ef
When groupvar is provided but not found in the phenodata,
- The function returns an error saying this groupvar is not found in the S4 object.
test:GeoDiff/tests/testthat/test-fitPoisBG.R
Line 49 in eef13ef
When groupvar is provided and found in the phenodata, but the it only has one unique value,
- The function returns a warning message saying that the groupvar has only one value
test:GeoDiff/tests/testthat/test-fitPoisBG.R
Line 63 in eef13ef
When groupvar is provided and found in the phenodata with more than one unique value,
- The function outputs a GeoMx S4 class with length same as length of ROIs, sizefact_sp, in phenoData.
test:GeoDiff/tests/testthat/test-fitPoisBG.R
Line 95 in eef13ef
- The function outputs a GeoMx S4 class with length same as length of negative probes, featfact_sp, in featureData for each unique slide value. The value is NA for non-negative probes.
test:GeoDiff/tests/testthat/test-fitPoisBG.R
Line 91 in eef13ef
GeoDiff/tests/testthat/test-fitPoisBG.R
Line 99 in eef13ef
- If size_scale="first", sizefact[1]=1
test:GeoDiff/tests/testthat/test-fitPoisBG.R
Line 115 in eef13ef
- If size_scale="sum", sum(sizefact)=1
test:GeoDiff/tests/testthat/test-fitPoisBG.R
Line 119 in eef13ef
- When generate_ppplot is TRUE, a figure is generated, when FALSE, no figure is generated
test:GeoDiff/tests/testthat/test-diagPoisBG.R
Line 19 in eef13ef
- when padj=FALSE, each element of sum of lowtail_prob and uptail_prob in the assay slot named lowtail_prob and uptail_prob equals to 1
test:GeoDiff/tests/testthat/test-diagPoisBG.R
Line 22 in eef13ef
- It returns an error without running fitPoisBG.
test:GeoDiff/tests/testthat/test-diagPoisBG.R
Line 87 in eef13ef
- It returns an error if split is TRUE but no corresponding fitPoisBG is called previously.
test:GeoDiff/tests/testthat/test-diagPoisBG.R
Line 101 in eef13ef
- The function outputs a GeoMx S4 class with length same as length of sample IDs (rownames) in phenoData for each probs input. The colname is the input prob.
test:GeoDiff/tests/testthat/test-QuanRange.R
Line 43 in eef13ef
- It returns an error without running fitPoisBG.
test:GeoDiff/tests/testthat/test-QuanRange.R
Line 78 in eef13ef
- It returns an error if split is TRUE but no corresponding fitPoisBG is called previously.
test:GeoDiff/tests/testthat/test-QuanRange.R
Line 91 in eef13ef
When split is FALSE,
- The function outputs a GeoMx S4 class with p values in featureData with length same as length of probes. The p value is NA for negative targets.
test:GeoDiff/tests/testthat/test-scoretest.R
Line 41 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 87 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 132 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 177 in eef13ef
- The function outputs a GeoMx S4 class with score values in featureData with length same as length of targets. The score value is NA for negative probes.
test:GeoDiff/tests/testthat/test-scoretest.R
Line 52 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 97 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 142 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 187 in eef13ef
- All p values are between 0 and 1 (inclusive) for non-negative features.
test:GeoDiff/tests/testthat/test-scoretest.R
Line 62 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 107 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 152 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 197 in eef13ef
- The length of non-NA p values is equal to the number of non-negative probes.
test:GeoDiff/tests/testthat/test-scoretest.R
Line 67 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 112 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 157 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 202 in eef13ef
- The length of non-NA scores values is equal to the number of non-negative probes.
test:GeoDiff/tests/testthat/test-scoretest.R
Line 70 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 115 in eef13ef
- The order of pvalues is the same as scores.
test:GeoDiff/tests/testthat/test-scoretest.R
Line 73 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 118 in eef13ef
- It returns an error without running fitPoisBG.
test:GeoDiff/tests/testthat/test-scoretest.R
Line 508 in eef13ef
- It returns an error if split is TRUE but no corresponding fitPoisBG is called previously.
test:GeoDiff/tests/testthat/test-scoretest.R
Line 534 in eef13ef
When split is TRUE,
- The function outputs a GeoMx S4 class with p values in featureData with length same as length of targets for each unique slide value. The p value is NA for negative probes.
test:GeoDiff/tests/testthat/test-scoretest.R
Line 246 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 309 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 373 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 437 in eef13ef
- The function outputs a GeoMx S4 class with score values in featureData with length same as length of targets for each unique slide value. The score value is NA for negative probes.
test:GeoDiff/tests/testthat/test-scoretest.R
Line 260 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 323 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 387 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 450 in eef13ef
- All p values are between 0 and 1 (inclusive) for non-negative features.
test:GeoDiff/tests/testthat/test-scoretest.R
Line 272 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 335 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 399 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 462 in eef13ef
- The length of non-NA p values is equal to the number of non-negative probes.
test:GeoDiff/tests/testthat/test-scoretest.R
Line 278 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 341 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 405 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 468 in eef13ef
- The length of non-NA scores values is equal to the number of non-negative probes.
test:GeoDiff/tests/testthat/test-scoretest.R
Line 291 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 354 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 418 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 481 in eef13ef
- The order of pvalues is the same as scores.
test:GeoDiff/tests/testthat/test-scoretest.R
Line 297 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 360 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 424 in eef13ef
GeoDiff/tests/testthat/test-scoretest.R
Line 487 in eef13ef
- Without providing values for features_high, sizefact_BG, threshold_start, the function returns the same value
test:GeoDiff/tests/testthat/test-fitNBth.R
Line 68 in eef13ef
GeoDiff/tests/testthat/test-fitNBth.R
Line 171 in eef13ef
- The function outputs a GeoMx S4 class with para0 in the experimentData as "NA".
test:GeoDiff/tests/testthat/test-fitNBth.R
Line 74 in eef13ef
GeoDiff/tests/testthat/test-fitNBth.R
Line 178 in eef13ef
- The function outputs a GeoMx S4 class with para, a matrix of estimated parameters, in the featureData. This matrix has feature_high_fitNBth in columns(same as features_high) and parameters(signal, r) in columns.
test:GeoDiff/tests/testthat/test-fitNBth.R
Line 80 in eef13ef
GeoDiff/tests/testthat/test-fitNBth.R
Line 184 in eef13ef
- The function outputs sizefact_fitNBth in the phenoData, which is positive, same length as sizefact_BG
test:GeoDiff/tests/testthat/test-fitNBth.R
Line 92 in eef13ef
GeoDiff/tests/testthat/test-fitNBth.R
Line 196 in eef13ef
- The function outputs threshold in the experimentData. When threshold_fix=TRUE, threshold in the output is the same as threshold_start.
test:GeoDiff/tests/testthat/test-fitNBth.R
Line 98 in eef13ef
GeoDiff/tests/testthat/test-fitNBth.R
Line 202 in eef13ef
When split is FALSE,
- Without providing values for ROIs_high, features_high, features_all, sizefact_start, sizefact_BG, the function returns the same value
test:GeoDiff/tests/testthat/test-fitPoisthNorm.R
Line 128 in eef13ef
- User need to set iterations =2 for now
test: - The function outputs a GeoMx S4 class with para0, matrix of estimated parameters, in the featureData.
This matrix para0 has the following structure:
3.1) 1 row for each feature (row name). If a feature is not in features_high, all columns will be NA.
3.2) n+1 columns labeled var1, var2, ..., var, var<n+1> where n is the length of ROIs_high elements.
3.3) the n columns will have log2 expression (if feature is in features_high) or NA (otherwise).
3.4) the n+1th column contains the threshold for each feature in features_high and NA otherwise.
test:GeoDiff/tests/testthat/test-fitPoisthNorm.R
Line 134 in eef13ef
- The function outputs a GeoMx S4 class with para, matrix of estimated parameters, in the featureData. This matrix para has the following structure:
4.1) 1 row for each feature (row name) which is equal to the length of features_all
4.2) n+1 columns labeled var1, var2, ..., var, var<n+1> where n is the length of ROIs_high elements.
4.3) the n columns will have log2 expression.
4.4) the n+1th column contains the threshold for each feature in features_all.
test:GeoDiff/tests/testthat/test-fitPoisthNorm.R
Line 153 in eef13ef
- The function outputs a column called conv0 in featureData, with values in [NA, 0] and length of 0s are the same as the length of features_high.
test:GeoDiff/tests/testthat/test-fitPoisthNorm.R
Line 169 in eef13ef
- The function outputs a column called conv in featureData, length same as features_all, and has values [NA, 0, 1]. The length of NAs equals the number of negative probes.
test:GeoDiff/tests/testthat/test-fitPoisthNorm.R
Line 178 in eef13ef
- when confac=0 and prior_type="contrast", preci1_norm value in
experimentData will be single value repeated over an n-by-n matrix (where n is the length of ROI_high).
This single value is equivalent, within 10 digits, to preci1con/n^2.
test:GeoDiff/tests/testthat/test-fitPoisthNorm.R
Line 189 in eef13ef
- It returns an error without running fitPoisBG or fitNBth.
test:GeoDiff/tests/testthat/test-fitPoisthNorm.R
Line 222 in eef13ef
- It returns an error if split is TRUE but no corresponding fitPoisBG is called previously.
test:GeoDiff/tests/testthat/test-fitPoisthNorm.R
Line 267 in eef13ef
When split is TRUE,
- Without providing values for ROIs_high, features_high, features_all, sizefact_start, sizefact_BG, the function returns the same value
test:GeoDiff/tests/testthat/test-fitPoisthNorm.R
Line 385 in eef13ef
- Given a GeoMx S4 object, fitPoisthNorm_sp runs the Poisson model-based normalization and log2 transformation on each element in "groupvar" individually. As such, the results for a given grouping/facet of the data should match the fitPoisthNorm results when an object is subset down to a single slide. Specifically, the following should be true:
test:
2.1) For a given element in groupvar, the corresponding column in the "threshold0" matrix, which is within featureData, should be identical to the single-patient case's fetureData's para0[,n+1]th column.
2.2) For a given element in groupvar, the corresponding column in the "threshold" matrix, which is within featureData, should be identical to the single-patient case's fetureData's para[,n+1]th column.
2.3) For a given element in groupvar, the normalized matrix "normmat0_sp", in the assayData slot, should be identical to that element's "normmat0" matrix, also in the assayData slot, for all samples within that element. In other words, the matrix within the "single slide" results (normmat0) should be a subset of the "multiple slide" results (normmat_sp).
2.4) For a given element in groupvar, the normaized matrix "normmat_sp", in the assayData slot, should be identical to that element's "normmat" matrix, also in the assayData slot, for all samples within that element. In other words, the matrix within the "single slide" results (normmat) should be a subset of the "multiple slide" results (normmat_sp).
2.5) For a given element in groupvar, the vector of sizefact, located in phenoData's sizefact_norm column, is identical to that element's sizefact_norm vector from running fitPoisthNorm (i.e., single grouping case).
2.6) For a given element in groupvar, the vector of sizefact0, located in phenoData's sizefact_norm column, is identical to that element's sizefact_norm0 vector from running fitPoisthNorm (i.e., single grouping case).
test:GeoDiff/tests/testthat/test-fitPoisthNorm.R
Line 413 in eef13ef
- The function shall aggregate the probes depending on the argument provided.
test:GeoDiff/tests/testthat/test-aggreprobe.R
Line 21 in eef13ef
- The function returns a GeoMxSet object when given a GeoMxSet object as input.
test:GeoDiff/tests/testthat/test-aggreprobe.R
Line 33 in eef13ef
- For negative probes, the expression matrix and the target feature data available prior to collapsing shall match after collapsing except TargetName.
test:GeoDiff/tests/testthat/test-aggreprobe.R
Line 38 in eef13ef
- TargetName for negative probes shall be updated to probe IDs after collapsing.
test:GeoDiff/tests/testthat/test-aggreprobe.R
Line 48 in eef13ef
- For the non-negative probes, the subset of probes selected by the use method will be aggregated by sum into one target count.
test:GeoDiff/tests/testthat/test-aggreprobe.R
Line 53 in eef13ef
- The resulting object shall have the same size of feature names as negative probe names plus non-negative target names.
test:GeoDiff/tests/testthat/test-aggreprobe.R
Line 65 in eef13ef
- Single probe targets shall be returned without aggregation
test:
GeoDiff/tests/testthat/test-aggreprobe.R
Line 73 in eef13ef
1.The function outputs para0, a matrix of estimated parameters in iter=1. This matrix has features_high in the columns and parameters(regression coefficients, threshold, r) in the rows. Both threshold and r are positive.
test:
GeoDiff/tests/testthat/test-fitNBthDE.R
Line 75 in eef13ef
GeoDiff/tests/testthat/test-fitNBthDE.R
Line 238 in eef13ef
test:
GeoDiff/tests/testthat/test-fitNBthDE.R
Line 114 in eef13ef
GeoDiff/tests/testthat/test-fitNBthDE.R
Line 276 in eef13ef
test:
GeoDiff/tests/testthat/test-fitNBthDE.R
Line 128 in eef13ef
GeoDiff/tests/testthat/test-fitNBthDE.R
Line 290 in eef13ef
- The function outputs para, a matrix of estimated parameters. This matrix has features_all in the columns and parameters(regression coefficients, threshold, r) in the rows. Both threshold and r are positive.
test:GeoDiff/tests/testthat/test-fitNBthmDE.R
Line 89 in eef13ef
GeoDiff/tests/testthat/test-fitNBthmDE.R
Line 216 in eef13ef
- when fullpara=TRUE, the output parameters should be regression coefficients, threshold and r in a list. Both threshold and r are positive.
test:GeoDiff/tests/testthat/test-coefNBth.R
Line 22 in eef13ef
GeoDiff/tests/testthat/test-coefNBth.R
Line 57 in eef13ef
- when fullpara=FALSE, the output parameters should be regression coefficients only in a list
test:GeoDiff/tests/testthat/test-coefNBth.R
Line 30 in eef13ef
GeoDiff/tests/testthat/test-coefNBth.R
Line 65 in eef13ef
- The function takes in a DE model as an input from fitNBthDE or fitNBthmDE
test: test: - The user input test:statistical test, choose from c("two-sided", ">", "<")
test: test: - In the output list, the p values of '>' and '<' for the same variable/feature should add up to 1
test: test:
- In the output data.frame, the DE table should not have NA if NAto1=TRUE
test:GeoDiff/tests/testthat/test-DENBth.R
Line 22 in eef13ef
GeoDiff/tests/testthat/test-DENBth.R
Line 54 in eef13ef
- In the output data.frame, the DE table has a column padj when adjp=TRUE
test:GeoDiff/tests/testthat/test-DENBth.R
Line 25 in eef13ef
GeoDiff/tests/testthat/test-DENBth.R
Line 57 in eef13ef