Browse code

bugfix: Vignette and example now export to tempfiles

Panos Balomenos authored on 01/06/2018 22:57:41
Showing 6 changed files

... ...
@@ -1,5 +1,5 @@
1 1
 Package: DEsubs
2
-Version: 1.7.0
2
+Version: 1.7.1
3 3
 Date: 2017-07-23
4 4
 Title: DEsubs: an R package for flexible identification of
5 5
         differentially expressed subpathways using RNA-seq expression
... ...
@@ -72,6 +72,10 @@ references.
72 72
 
73 73
 load(system.file('extdata', 'data.RData', package='DEsubs'))
74 74
 
75
+outfile.topological <- tempfile(fileext='.pdf') 
76
+outfile.functional <- tempfile(fileext='.pdf') 
77
+outfile.barplot <- tempfile(fileext='.pdf') 
78
+
75 79
 res <- geneVisualization(  
76 80
             DEsubs.out=DEsubs.out, top=10,
77 81
             measures.topological=c( 'degree', 'betweenness', 'closeness',
... ...
@@ -82,6 +86,10 @@ res <- geneVisualization(
82 86
             size.topological=c(5,4),
83 87
             size.functional=c(7,4),
84 88
             size.barplot=c(5,6),
85
-            export='pdf', verbose=FALSE)
89
+            export='pdf',
90
+            outfile.topological=outfile.topological,
91
+            outfile.functional=outfile.functional,
92
+            outfile.barplot=outfile.barplot,
93
+            verbose=FALSE)
86 94
 
87 95
 }
... ...
@@ -43,10 +43,14 @@ Organism level measures
43 43
 
44 44
 load(system.file('extdata', 'data.RData', package='DEsubs'))
45 45
 
46
+outfile <- tempfile(fileext='.pdf')  
47
+
46 48
 res <- organismVisualization( 
47 49
                 DEsubs.out=DEsubs.out, references='KEGG', 
48 50
                 topSubs=10, topTerms=20,
49
-                export='pdf', width=7, height=6,
51
+                width=7, height=6,
52
+                export='pdf', 
53
+                outfile=outfile,
50 54
                 verbose=FALSE)
51 55
 
52 56
 }
... ...
@@ -34,12 +34,14 @@ Subpathway plotting as a graph.
34 34
 
35 35
 load(system.file('extdata', 'data.RData', package='DEsubs'))
36 36
 
37
+outfile <- tempfile(fileext='.pdf')  
37 38
 
38 39
 res <- subpathwayToGraph( 
39 40
                 DEsubs.out=DEsubs.out, 
40 41
                 submethod='community.walktrap', 
41 42
                 subname=paste0('sub', 6),
42 43
                 size=c(10,10),
43
-                export='pdf' )
44
+                export='pdf',
45
+                outfile=outfile )
44 46
 
45 47
 }
... ...
@@ -56,12 +56,16 @@ issues.
56 56
 
57 57
 load(system.file('extdata', 'data.RData', package='DEsubs'))
58 58
 
59
+outfile <- tempfile(fileext='.pdf') 
60
+
59 61
 res <- subpathwayVisualization( 
60 62
                 DEsubs.out=DEsubs.out,  
61 63
                 references=c('TF'), 
62 64
                 submethod='community.walktrap',
63 65
                 subname='sub1', 
64
-                scale=c(1.0), export='pdf')
66
+                scale=c(1.0), 
67
+                export='pdf',
68
+                outfile=outfile )
65 69
 
66 70
 }
67 71
 
... ...
@@ -716,7 +716,7 @@ res <- subpathwayToGraph(
716 716
                     DEsubs.out=DEsubs.out, 
717 717
                     submethod='community.walktrap', 
718 718
                     subname='sub6', verbose=FALSE,
719
-                    export=c('plot', 'gml', 'edgelist') )
719
+                    export='plot' )
720 720
 ```
721 721
 
722 722
 
... ...
@@ -735,7 +735,7 @@ res <- subpathwayToGraph(
735 735
                     submethod='community.walktrap', 
736 736
                     subname='sub6', 
737 737
                     verbose=FALSE,
738
-                    export=c('plot', 'gml', 'edgelist') )
738
+                    export='plot' )
739 739
 ```
740 740
 
741 741
 Subpathway enrichment in association with biological and pharmacological