Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
datautils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bioinfo
datautils
Commits
3a061d0a
Commit
3a061d0a
authored
10 years ago
by
Holger Brandl
Browse files
Options
Downloads
Patches
Plain Diff
started implementation of other set intersections
parent
4aef8a83
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
R/bio/cummerutils.R
+13
-2
13 additions, 2 deletions
R/bio/cummerutils.R
with
13 additions
and
2 deletions
R/bio/cummerutils.R
+
13
−
2
View file @
3a061d0a
require
(
cummeRbund
)
#
require(cummeRbund)
getExpressedGenes
<-
function
(
cuff
,
...
){
getExpressedGenes
<-
function
(
cuff
,
...
){
...
@@ -67,9 +67,20 @@ extractHits <- function(s1, s2, s1Overexpressed=T, degData=degs){
...
@@ -67,9 +67,20 @@ extractHits <- function(s1, s2, s1Overexpressed=T, degData=degs){
}
}
## genes that are significantly higher expressed in sample1 compared to sample2
s1_gt_s2
<-
function
(
s1
,
s2
,
...
)
extractHits
(
s1
,
s2
,
s1Overexpressed
=
T
,
...
)
s1_gt_s2
<-
function
(
s1
,
s2
,
...
)
extractHits
(
s1
,
s2
,
s1Overexpressed
=
T
,
...
)
## genes that are significantly less expressed in sample1 compared to sample2
s1_lt_s2
<-
function
(
s1
,
s2
,
...
)
extractHits
(
s1
,
s2
,
s1Overexpressed
=
F
,
...
)
s1_lt_s2
<-
function
(
s1
,
s2
,
...
)
extractHits
(
s1
,
s2
,
s1Overexpressed
=
F
,
...
)
s1_ne_s2
<-
function
(
s1
,
s2
,
...
)
c
(
extractHits
(
s1
,
s2
,
s1Overexpressed
=
F
,
...
),
extractHits
(
s1
,
s2
,
s1Overexpressed
=
T
,
...
))
## undirected, just differentially expressed
s1_de_s2
<-
function
(
s1
,
s2
,
...
)
c
(
extractHits
(
s1
,
s2
,
s1Overexpressed
=
F
,
...
),
extractHits
(
s1
,
s2
,
s1Overexpressed
=
T
,
...
))
## not differentially expressed
s1_eq_s2
<-
function
(
s1
,
s2
,
gene_background
=
all_genes
,
...
){
c
(
extractHits
(
s1
,
s2
,
s1Overexpressed
=
F
,
...
),
extractHits
(
s1
,
s2
,
s1Overexpressed
=
T
,
...
))
%>%
setdiff
(
all_genes
,
.
)
}
## todo add helper to test for equality (s1 and s2 not differentially expressed)
## todo add helper to test for equality (s1 and s2 not differentially expressed)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment