Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
datautils
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bioinfo
datautils
Commits
8c3cb2a1
Commit
8c3cb2a1
authored
Sep 19, 2017
by
Holger Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed cp util duplicates
parent
cb22ab37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
53 deletions
+0
-53
R/bio/diffex_commons.R
R/bio/diffex_commons.R
+0
-53
No files found.
R/bio/diffex_commons.R
View file @
8c3cb2a1
...
@@ -69,24 +69,6 @@ get_ensembl_build <- function(){
...
@@ -69,24 +69,6 @@ get_ensembl_build <- function(){
biomaRt
::
listMarts
()
%>%
as.data.frame
()
%>%
filter
(
biomart
==
"ensembl"
)
%>%
with
(
str_match
(
version
,
" ([0-9]*) "
))
%>%
subset
(
select
=
2
)
biomaRt
::
listMarts
()
%>%
as.data.frame
()
%>%
filter
(
biomart
==
"ensembl"
)
%>%
with
(
str_match
(
version
,
" ([0-9]*) "
))
%>%
subset
(
select
=
2
)
}
}
guess_pathview_species
<-
function
(
gene_id
){
an_id
<-
gene_id
[
1
]
## see http://www.genome.jp/kegg-bin/find_org_www?mode=abbr&obj=mode.map
if
(
str_detect
(
an_id
,
"ENSMUSG"
)){
return
(
"mmu"
)
}
else
if
(
str_detect
(
an_id
,
"ENSDARG"
)){
return
(
"dre"
)
}
else
if
(
str_detect
(
an_id
,
"ENSG"
)){
return
(
"hsa"
)
}
else
if
(
str_detect
(
an_id
,
"FBgn"
)){
return
(
"dme"
)
}
else
{
stop
(
paste
(
"could not guess mart from "
,
an_id
))
}
}
#guess_mart("ENSCAFG00000000043")
getGeneInfo
<-
function
(
gene_ids
){
getGeneInfo
<-
function
(
gene_ids
){
martName
<-
guess_mart
(
gene_ids
[
1
])
martName
<-
guess_mart
(
gene_ids
[
1
])
...
@@ -264,39 +246,4 @@ davidAnnotationChart <- function( someGenes, ontologies=DEF_DAVID_ONTOLOGIES ){
...
@@ -264,39 +246,4 @@ davidAnnotationChart <- function( someGenes, ontologies=DEF_DAVID_ONTOLOGIES ){
# if(nrow(annoChart) >0) annoChart <- annoChart %>% dplyr::select(select=-Genes)
# if(nrow(annoChart) >0) annoChart <- annoChart %>% dplyr::select(select=-Genes)
return
(
annoChart
)
return
(
annoChart
)
}
## todo move to diffex commons
guess_cp_species
<-
function
(
ensIds
){
an_id
<-
ensIds
[
1
]
if
(
str_detect
(
an_id
,
"ENSG"
)){
return
(
"human"
)
}
else
if
(
str_detect
(
an_id
,
"ENSMUSG"
)){
return
(
"mouse"
)
}
else
if
(
str_detect
(
an_id
,
"ENSDARG"
)){
return
(
"zebrafish"
)
}
else
if
(
str_detect
(
an_id
,
"FBgn"
)){
return
(
"fly"
)
}
else
{
stop
(
paste
(
"could not clusterProfiler species name from "
,
an_id
))
}
}
guess_anno_db
<-
function
(
ensIds
){
an_id
<-
ensIds
[
1
]
if
(
str_detect
(
an_id
,
"ENSG"
)){
return
(
"org.Hs.eg.db"
)
}
else
if
(
str_detect
(
an_id
,
"ENSMUSG"
)){
return
(
"org.Mm.eg.db"
)
}
else
if
(
str_detect
(
an_id
,
"ENSDARG"
)){
return
(
"org.Dr.eg.db"
)
}
else
if
(
str_detect
(
an_id
,
"FBgn"
)){
return
(
"org.Dm.eg.db"
)
}
else
{
stop
(
paste
(
"could not anno db mart from "
,
an_id
))
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment