Skip to content

Commit

Permalink
more SNPlocs needs eliminated for non-interactive tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-shannon committed Nov 26, 2018
1 parent a6922b6 commit a8b9c91
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
@@ -1,7 +1,7 @@
Package: trena
Type: Package
Title: Fit transcriptional regulatory networks using gene expression, priors, machine learning
Version: 1.5.4
Version: 1.5.5
Date: 2018-11-26
Author: Seth Ament <seth.ament@systemsbiology.org>, Paul Shannon <pshannon@systemsbioloyg.org>, Matthew Richards <mrichard@systemsbiology.org>
Maintainer: Paul Shannon <paul.thurmond.shannon@gmail.com>
Expand Down
1 change: 1 addition & 0 deletions inst/unitTests/test_FootprintFinder.R
Expand Up @@ -295,6 +295,7 @@ test_getFootprintsInRegionWithVariants <- function()
#----------------------------------------------------------------------------------------------------
explore_variantsInFootprints <- function()
{
if(!interactive()) return() # avoid need for huge SNPlocs file

# how does rs13384219 A->G
# gtcagtagtggtggaaccagcatgc[A/G]aattagacaatgtgacttcatagcc, chr2:57907323
Expand Down
5 changes: 5 additions & 0 deletions inst/unitTests/test_MotifMatcher.R
Expand Up @@ -175,6 +175,7 @@ test_getSequence <- function(indirect=FALSE)
#----------------------------------------------------------------------------------------------------
test_.parseVariantString <- function()
{
if(!interactive()) return () # remove need for huge SNPlocs package
mm <- MotifMatcher(genomeName="hg38", pfms=list()) # no actual pfms needed here

tbl.variant <- trena:::.parseVariantString(mm, "rs13384219")
Expand Down Expand Up @@ -305,6 +306,8 @@ test_.injectSnp <- function()
# chr2:57907323:A:G
test_getSequenceWithVariants <- function()
{
if(!interactive()) return()

printf("--- test_getSequenceWithVariants")

mm <- MotifMatcher(genomeName="hg38", pfms=list())
Expand Down Expand Up @@ -406,6 +409,8 @@ test_findMatchesByChromosomalRegion <- function()
#----------------------------------------------------------------------------------------------------
test_findMatchesByChromosomalRegion_contrastReferenceWithVariant <- function()
{
if(!interactive()) return()

printf("--- test_findMatchesByChromosomalRegion_contrastReferenceWithVariant")

# the vrk2 promoter snp, chr2:57907313-57907333
Expand Down
4 changes: 4 additions & 0 deletions inst/unitTests/test_Trena.R
Expand Up @@ -305,6 +305,8 @@ test_getProximalPromoterMouse <- function(){
#----------------------------------------------------------------------------------------------------
test_assessSnp <- function()
{
if(!interactive()) return()

printf("--- test_assessSnp")

trena <- Trena("hg38")
Expand Down Expand Up @@ -375,6 +377,8 @@ test_assessSnp <- function()
# match level # returns all three kinds of match: in.both. wt.only, mut.only
test_assessSnp_allTypesWithDeltas <- function()
{
if(!interactive()) return()

printf("--- test_assessSnp_allTypesWithDeltas")

trena <- Trena("hg38")
Expand Down

0 comments on commit a8b9c91

Please sign in to comment.