Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sybil
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
general
ccb
sybil
Commits
9a8b74c7
Commit
9a8b74c7
authored
9 years ago
by
Claus Jonathan Fritzemeier
Browse files
Options
Downloads
Patches
Plain Diff
changes on double genedeletion
parent
c180c88d
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
DESCRIPTION
+1
-1
1 addition, 1 deletion
DESCRIPTION
R/doubleGeneDel.R
+29
-31
29 additions, 31 deletions
R/doubleGeneDel.R
inst/NEWS.Rd
+8
-0
8 additions, 0 deletions
inst/NEWS.Rd
man/sybil-package.Rd
+1
-1
1 addition, 1 deletion
man/sybil-package.Rd
with
39 additions
and
33 deletions
DESCRIPTION
+
1
−
1
View file @
9a8b74c7
...
@@ -2,7 +2,7 @@ Package: sybil
...
@@ -2,7 +2,7 @@ Package: sybil
Type: Package
Type: Package
Title: Efficient Constrained Based Modelling in R
Title: Efficient Constrained Based Modelling in R
Version: 1.3.4
Version: 1.3.4
Date: 2015-
11
-1
6
Date: 2015-
04
-1
8
Authors@R: c(
Authors@R: c(
person(c("C.", "Jonathan"), "Fritzemeier", role = c("cre", "ctb"), email = "clausjonathan.fritzemeier@uni-duesseldorf.de"),
person(c("C.", "Jonathan"), "Fritzemeier", role = c("cre", "ctb"), email = "clausjonathan.fritzemeier@uni-duesseldorf.de"),
person("Gabriel", "Gelius-Dietrich", role = c("aut")),
person("Gabriel", "Gelius-Dietrich", role = c("aut")),
...
...
This diff is collapsed.
Click to expand it.
R/doubleGeneDel.R
+
29
−
31
View file @
9a8b74c7
...
@@ -195,20 +195,6 @@ doubleGeneDel <- function(model, geneList1, geneList2, lb = NULL, ub = NULL,
...
@@ -195,20 +195,6 @@ doubleGeneDel <- function(model, geneList1, geneList2, lb = NULL, ub = NULL,
# Exclude everything from tmpMAT we do not need.
# Exclude everything from tmpMAT we do not need.
#tmpMAT <- tmpMAT[geneList1, geneList2, drop = FALSE]
#tmpMAT <- tmpMAT[geneList1, geneList2, drop = FALSE]
}
else
{
tmpMAT
<-
matrix
(
FALSE
,
nrow
=
num_genes
,
ncol
=
num_genes
)
#diag(tmpMAT) <- TRUE
for
(
i
in
seq
(
along
=
geneList1
))
{
tmpMAT
[
geneList1
[
i
],
geneList2
[
i
]]
<-
TRUE
}
}
geneList11
<-
geneList1
geneList22
<-
geneList2
geneList1
<-
unique
(
geneList1
)
geneList1
<-
unique
(
geneList1
)
geneList2
<-
unique
(
geneList2
)
geneList2
<-
unique
(
geneList2
)
...
@@ -221,18 +207,30 @@ doubleGeneDel <- function(model, geneList1, geneList2, lb = NULL, ub = NULL,
...
@@ -221,18 +207,30 @@ doubleGeneDel <- function(model, geneList1, geneList2, lb = NULL, ub = NULL,
rownames
(
tmpMAT
)
<-
geneList1
rownames
(
tmpMAT
)
<-
geneList1
colnames
(
tmpMAT
)
<-
geneList2
colnames
(
tmpMAT
)
<-
geneList2
#print(tmpMAT)
#print(num_opt)
deletions
<-
which
(
tmpMAT
==
TRUE
,
arr.ind
=
TRUE
)
kogenesID
<-
cbind
(
geneList1
[
deletions
[,
"row"
]],
geneList2
[
deletions
[,
"col"
]])
}
else
{
# tmpMAT <- matrix(FALSE, nrow = num_genes, ncol = num_genes)
# #diag(tmpMAT) <- TRUE
# for (i in seq(along = geneList1)) {
# tmpMAT[geneList1[i], geneList2[i]] <- TRUE
# }
kogenesID
<-
cbind
(
geneList1
,
geneList2
)
}
#------------------------------------------------------------------------------#
#------------------------------------------------------------------------------#
# run optimization #
# run optimization #
#------------------------------------------------------------------------------#
#------------------------------------------------------------------------------#
deletions
<-
which
(
tmpMAT
==
TRUE
,
arr.ind
=
TRUE
)
kogenesID
<-
cbind
(
geneList1
[
deletions
[,
"row"
]],
geneList2
[
deletions
[,
"col"
]])
kogenes
<-
lapply
(
seq_len
(
nrow
(
kogenesID
)),
function
(
x
)
kogenesID
[
x
,
])
kogenes
<-
lapply
(
seq_len
(
nrow
(
kogenesID
)),
function
(
x
)
kogenesID
[
x
,
])
fd
<-
.generateFluxdels
(
model
,
kogenes
)
fd
<-
.generateFluxdels
(
model
,
kogenes
)
...
...
This diff is collapsed.
Click to expand it.
inst/NEWS.Rd
+
8
−
0
View file @
9a8b74c7
...
@@ -6,6 +6,14 @@
...
@@ -6,6 +6,14 @@
\newcommand{\CRANpkg}{\href{http://CRAN.R-project.org/package=#1}{\pkg{#1}}}
\newcommand{\CRANpkg}{\href{http://CRAN.R-project.org/package=#1}{\pkg{#1}}}
\section{Changes in version 1.3.4 2016-04-18}{
\itemize{
\item \code{doubleGeneDel} messed up the order of deletions when using exlicit gene lists.
\item corrected url of openCOBRA in the manual.
}
}
% ---------------------------------------------------------------------------- %
\section{Changes in version 1.3.3 2015-11-25}{
\section{Changes in version 1.3.3 2015-11-25}{
\itemize{
\itemize{
\item \code{addReact} crashed for irreversible models.
\item \code{addReact} crashed for irreversible models.
...
...
This diff is collapsed.
Click to expand it.
man/sybil-package.Rd
+
1
−
1
View file @
9a8b74c7
...
@@ -64,7 +64,7 @@ model <- readTSVmod(prefix = "Ec_core",
...
@@ -64,7 +64,7 @@ model <- readTSVmod(prefix = "Ec_core",
BiGG: a Biochemical Genetic and Genomic knowledgebase of large scale metabolic
BiGG: a Biochemical Genetic and Genomic knowledgebase of large scale metabolic
reconstructions. \emph{BMC Bioinformatics} \bold{11}, 213.
reconstructions. \emph{BMC Bioinformatics} \bold{11}, 213.
The openCOBRA project \url{http://opencobra.
sourceforge.net
/}.
The openCOBRA project \url{http
s
://opencobra.
github.io
/}.
Becker, S. A., Feist, A. M., Mo, M. L., Hannum, G., Palsson, B. Ø. and
Becker, S. A., Feist, A. M., Mo, M. L., Hannum, G., Palsson, B. Ø. and
Herrgard, M. J. (2007) Quantitative prediction of cellular metabolism with
Herrgard, M. J. (2007) Quantitative prediction of cellular metabolism with
...
...
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