Browse code

- compare() was renamed pcompare() in S4Vectors --> change code accordingly - use UTF-8 encoding in DESCRIPTION and Rd files so I can have my accents back

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/SplicingGraphs@119306 bc3139a8-67e5-0310-9ffc-ced21a209358

Herve Pages authored on 12/07/2016 09:05:23
Showing 1 changed files
... ...
@@ -86,7 +86,7 @@ uninformativeSSids(x)
86 86
 }
87 87
 
88 88
 \author{
89
-  H. Pages
89
+  H. Pagès
90 90
 }
91 91
 
92 92
 \seealso{
Browse code

Put \pkg{} around package names in the man pages.

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/SplicingGraphs@76137 bc3139a8-67e5-0310-9ffc-ced21a209358

Herve Pages authored on 30/04/2013 01:20:58
Showing 1 changed files
... ...
@@ -90,7 +90,7 @@ uninformativeSSids(x)
90 90
 }
91 91
 
92 92
 \seealso{
93
-  This man page is part of the SplicingGraphs package.
93
+  This man page is part of the \pkg{SplicingGraphs} package.
94 94
   Please see \code{?`\link{SplicingGraphs-package}`} for an overview of the
95 95
   package and for an index of its man pages.
96 96
 }
Browse code

Get rid of a few TODO's.

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/SplicingGraphs@76076 bc3139a8-67e5-0310-9ffc-ced21a209358

Herve Pages authored on 26/04/2013 17:59:15
Showing 1 changed files
... ...
@@ -59,16 +59,14 @@ uninformativeSSids(x)
59 59
     \code{rsgraph}, and \code{uninformativeSSids}.
60 60
   }
61 61
   \item{with.hits.mcols}{
62
-    TODO
62
+    Whether or not to include the \emph{hits metadata columns} in the
63
+    returned object. See \code{?\link{countReads}} for more information.
63 64
   }
64 65
   \item{keep.dup.edges}{
65
-    If \code{FALSE} (the default), then within each group of the returned
66
-    object, edges with the same \emph{global edge id} are merged into
67
-    a single element. Use \code{keep.dup.edges=TRUE} if this merging should
68
-    not be performed.
66
+    Not supported yet.
69 67
   }
70 68
   \item{tx_id.as.edge.label}{
71
-    TODO
69
+    Whether or not to use the transcript ids as edge labels.
72 70
   }
73 71
   \item{as.igraph}{
74 72
     TODO
... ...
@@ -76,11 +74,15 @@ uninformativeSSids(x)
76 74
 }
77 75
 
78 76
 \details{
79
-  TODO
77
+  TODO: Explain graph reduction.
80 78
 }
81 79
 
82 80
 \value{
83
-  TODO
81
+  For \code{rsgedgesByGene}: A \link[GenomicRanges]{GRangesList} object
82
+  named with the gene ids and where the reduced splicing graph edges are
83
+  grouped by gene.
84
+
85
+  TODO: Explain values returned by the other function.
84 86
 }
85 87
 
86 88
 \author{
Browse code

- Change the order of the edge-level metadata cols in the GRangesList object returned by sgedgesByTranscript() and sgedgesByGene(): the "sgedge_id" col (global splicing graph edge id) now is in 3rd position (instead of 1st), after the "from" and "to" cols.

- By default, the output of sgedges() now also includes the "sgedge_id" col,
so it has the same cols as the edge-level metadata cols returned by default
by sgedgesByTranscript() and sgedgesByGene().

- Change the order of the edge-level metadata cols in the GRangesList object
returned by rsgedgesByGene(): the "rsgedge_id" col (global reduced splicing
graph edge id) now is also in 3rd position (instead of 1st), after the
"from" and "to" cols.

- By default, the output of rsgedges() now also includes the "rsgedge_id" col,
so it has the same cols as the edge-level metadata cols returned by default
by rsgedgesByGene().

- The "tx_id" col in the output of all the above functions now is a
CharacterList instead of a broken IntegerList that was holding a factor in
its unlistData slot.


git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/SplicingGraphs@75803 bc3139a8-67e5-0310-9ffc-ced21a209358

Herve Pages authored on 19/04/2013 10:13:26
Showing 1 changed files
... ...
@@ -119,6 +119,8 @@ edges_by_gene[["geneA"]]
119 119
 ## "geneA:2,4" (intron), and "geneA:4,5" (exon), during the graph
120 120
 ## reduction.
121 121
 
122
+stopifnot(identical(edges_by_gene["geneB"], rsgedgesByGene(sg["geneB"])))
123
+
122 124
 ## ---------------------------------------------------------------------
123 125
 ## 3. sgedgesByTranscript()
124 126
 ## ---------------------------------------------------------------------
Browse code

Add man page for rsgedgesByGene() and family.

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/SplicingGraphs@75782 bc3139a8-67e5-0310-9ffc-ced21a209358

Herve Pages authored on 18/04/2013 19:50:29
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,142 @@
1
+\name{rsgedgesByGene-methods}
2
+
3
+\alias{rsgedgesByGene-methods}
4
+
5
+\alias{uninformativeSSids}
6
+\alias{uninformativeSSids,ANY-method}
7
+\alias{uninformativeSSids,DataFrame-method}
8
+
9
+\alias{rsgedgesByTranscript}
10
+\alias{rsgedgesByTranscript,SplicingGraphs-method}
11
+
12
+\alias{rsgedgesByGene}
13
+\alias{rsgedgesByGene,SplicingGraphs-method}
14
+
15
+\alias{rsgedges}
16
+\alias{sgedges2}
17
+
18
+\alias{rsgraph}
19
+\alias{sgraph2}
20
+
21
+
22
+\title{
23
+  Extract the reduced edges and their ranges from a SplicingGraphs object
24
+}
25
+
26
+\description{
27
+  \code{rsgedgesByGene} and \code{rsgedgesByTranscript} are analog to
28
+  \code{\link{sgedgesByGene}} and \code{\link{sgedgesByTranscript}},
29
+  but operate on the \emph{reduced} splicing graphs, that is, the
30
+  graphs in \link{SplicingGraphs} object \code{x} are reduced before
31
+  the edges and their ranges are extracted. The reduced graphs are
32
+  obtained by removing the uninformative nodes from it. See Details
33
+  section below.
34
+
35
+  \code{rsgedges} extracts the edges of the reduced splicing graph of
36
+  a given gene from a \link{SplicingGraphs} object.
37
+
38
+  \code{rsgraph} extracts the reduced splicing graph for a given gene
39
+  from a \link{SplicingGraphs} object, and returns it as a plottable
40
+  graph-like object.
41
+}
42
+
43
+\usage{
44
+rsgedgesByGene(x, with.hits.mcols=FALSE, keep.dup.edges=FALSE)
45
+
46
+rsgedgesByTranscript(x, with.hits.mcols=FALSE)
47
+
48
+rsgedges(x)
49
+
50
+rsgraph(x, tx_id.as.edge.label=FALSE, as.igraph=FALSE)
51
+
52
+## Related utility:
53
+uninformativeSSids(x)
54
+}
55
+
56
+\arguments{
57
+  \item{x}{
58
+    A \link{SplicingGraphs} object. Must be of length 1 for \code{rsgedges},
59
+    \code{rsgraph}, and \code{uninformativeSSids}.
60
+  }
61
+  \item{with.hits.mcols}{
62
+    TODO
63
+  }
64
+  \item{keep.dup.edges}{
65
+    If \code{FALSE} (the default), then within each group of the returned
66
+    object, edges with the same \emph{global edge id} are merged into
67
+    a single element. Use \code{keep.dup.edges=TRUE} if this merging should
68
+    not be performed.
69
+  }
70
+  \item{tx_id.as.edge.label}{
71
+    TODO
72
+  }
73
+  \item{as.igraph}{
74
+    TODO
75
+  }
76
+}
77
+
78
+\details{
79
+  TODO
80
+}
81
+
82
+\value{
83
+  TODO
84
+}
85
+
86
+\author{
87
+  H. Pages
88
+}
89
+
90
+\seealso{
91
+  This man page is part of the SplicingGraphs package.
92
+  Please see \code{?`\link{SplicingGraphs-package}`} for an overview of the
93
+  package and for an index of its man pages.
94
+}
95
+
96
+\examples{
97
+## ---------------------------------------------------------------------
98
+## 1. Make SplicingGraphs object 'sg' from toy gene model (see
99
+##    '?SplicingGraphs')
100
+## ---------------------------------------------------------------------
101
+example(SplicingGraphs)
102
+sg
103
+
104
+## 'sg' has 1 element per gene and 'names(sg)' gives the gene ids.
105
+names(sg)
106
+
107
+## ---------------------------------------------------------------------
108
+## 2. rsgedgesByGene()
109
+## ---------------------------------------------------------------------
110
+edges_by_gene <- rsgedgesByGene(sg)
111
+edges_by_gene
112
+## 'edges_by_gene' has the length and names of 'sg', that is, the names
113
+## on it are the gene ids and are guaranteed to be unique.
114
+
115
+## Extract the reduced edges and their ranges for a given gene:
116
+edges_by_gene[["geneA"]]
117
+## Note that edge with global reduced edge id "geneA:1,2,4,5" is a mixed
118
+## edge obtained by combining together edges "geneA:1,2" (exon),
119
+## "geneA:2,4" (intron), and "geneA:4,5" (exon), during the graph
120
+## reduction.
121
+
122
+## ---------------------------------------------------------------------
123
+## 3. sgedgesByTranscript()
124
+## ---------------------------------------------------------------------
125
+#edges_by_tx <- rsgedgesByTranscript(sg)  # not ready yet!
126
+#edges_by_tx
127
+
128
+## ---------------------------------------------------------------------
129
+## 4. rsgedges(), rsgraph(), uninformativeSSids()
130
+## ---------------------------------------------------------------------
131
+plot(sgraph(sg["geneB"]))
132
+uninformativeSSids(sg["geneB"])
133
+
134
+plot(rsgraph(sg["geneB"]))
135
+rsgedges(sg["geneB"])
136
+
137
+## ---------------------------------------------------------------------
138
+## 5. Sanity checks
139
+## ---------------------------------------------------------------------
140
+## TODO: Do the same kind of sanity checks that are done for sgedges()
141
+## vs sgedgesByGene() vs sgedgesByTranscript() (in man page for sgedges).
142
+}