-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from SysBioChalmers/dev
Dev
- Loading branch information
Showing
1,411 changed files
with
11,141 additions
and
1,416,658 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,4 +48,5 @@ helpsearch*/ | |
# Non-complying tables # | ||
######################## | ||
*.xls | ||
*.tab | ||
*.tab | ||
.Rproj.user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# Compare the original s288c reactions from different sources: RAVEN, kegg | ||
# Revised by Hongzhong 2020-7-27 | ||
# load library | ||
library(readxl) | ||
library(stringr) | ||
library(tidyverse) | ||
#--------------------------------------------------- | ||
## Small task- to check whether the specific reactions existing in all yeast species | ||
# RAVEN kegg | ||
gene_all <- vector() | ||
rxn_all <- vector() | ||
exist_R01867 <- vector() | ||
ec <- c('ec:1.3.98.1','ec:1.3.5.2')#,'ec:1.3.1.14') | ||
ec_all <- vector() | ||
strain <- list.files('strain_specific_model_from_RAVEN_kegg') | ||
ec_rxn <- read.table('data/EC_rxn_mapping_kegg.txt', stringsAsFactors = FALSE) # ec rxn mapping from kegg | ||
ec_rxn$V2 <- str_replace_all(ec_rxn$V2, "rn:", "") | ||
View(ec_rxn) | ||
for (i in strain) { | ||
print(i) | ||
#i <- "biocyc_panYeast2_45_100" | ||
inputfile <- paste('strain_specific_model_from_RAVEN_kegg/',i, '/excelGenes.txt', sep = "") | ||
inputfile2 <- paste('strain_specific_model_from_RAVEN_kegg/',i, '/excelRxns.txt', sep = "") | ||
gene_biocyc <- read.table(inputfile, header =FALSE, sep = "\t", stringsAsFactors = FALSE) | ||
gene <- length(unique(gene_biocyc$V2)) | ||
rxn_biocyc <- read_table2(inputfile2) | ||
rxn <- length(unique(rxn_biocyc$`#`)) | ||
rxn_detail <- data_frame(rxn=rxn_biocyc$`#`) | ||
rxn_detail <- merge(rxn_detail, ec_rxn, by.x = 'rxn', by.y = 'V2', all.x = TRUE) | ||
existence <- length(which(rxn_detail$rxn %in% 'R01867')) | ||
ec_existence <- length(which(rxn_detail$V1 %in% ec)) | ||
#save the result | ||
exist_R01867 <- c(exist_R01867, existence) | ||
ec_all <- c(ec_all, ec_existence) | ||
gene_all <- c(gene_all, gene) | ||
rxn_all <- c(rxn_all, rxn) | ||
} | ||
inputfile <- paste('strain_specific_model_from_RAVEN_kegg/',i, '/excelGenes.txt', sep = "") | ||
inputfile2 <- paste('strain_specific_model_from_RAVEN_kegg/',i, '/excelRxns.txt', sep = "") | ||
gene_biocyc <- read.table(inputfile, header =FALSE, sep = "\t", stringsAsFactors = FALSE) | ||
gene <- length(unique(gene_biocyc$V2)) | ||
rxn_biocyc <- read_table2(inputfile2) | ||
rxn <- length(unique(rxn_biocyc$`#`)) | ||
View(rxn_detail) | ||
existence <- length(which(rxn_detail$rxn %in% 'R01867')) | ||
length(which(rxn_detail$V1 %in% ec)) | ||
gene_all | ||
# Compare the original s288c reactions from different sources: RAVEN, kegg | ||
# Revised by Hongzhong 2020-7-27 | ||
# load library | ||
library(readxl) | ||
library(stringr) | ||
library(tidyverse) | ||
#--------------------------------------------------- | ||
## Small task- to check whether the specific reactions existing in all yeast species | ||
# RAVEN kegg | ||
gene_all <- vector() | ||
rxn_all <- vector() | ||
exist_R01867 <- vector() | ||
ec <- c('ec:1.3.98.1','ec:1.3.5.2')#,'ec:1.3.1.14') | ||
ec_all <- vector() | ||
strain <- list.files('strain_specific_model_from_RAVEN_kegg') | ||
ec_rxn <- read.table('data/EC_rxn_mapping_kegg.txt', stringsAsFactors = FALSE) # ec rxn mapping from kegg | ||
ec_rxn$V2 <- str_replace_all(ec_rxn$V2, "rn:", "") | ||
for (i in strain) { | ||
print(i) | ||
#i <- "biocyc_panYeast2_45_100" | ||
inputfile <- paste('strain_specific_model_from_RAVEN_kegg/',i, '/excelGenes.txt', sep = "") | ||
inputfile2 <- paste('strain_specific_model_from_RAVEN_kegg/',i, '/excelRxns.txt', sep = "") | ||
gene_one_species <- read.table(inputfile, header =FALSE, sep = "\t", stringsAsFactors = FALSE) | ||
gene <- length(unique(gene_one_species$V2)) | ||
rxn_one_species <- read_table2(inputfile2) | ||
rxn <- length(unique(rxn_one_species$`#`)) | ||
rxn_detail <- data_frame(rxn=rxn_one_species$`#`) | ||
rxn_detail <- merge(rxn_detail, ec_rxn, by.x = 'rxn', by.y = 'V2', all.x = TRUE) | ||
existence <- length(which(rxn_detail$rxn %in% 'R01867')) | ||
ec_existence <- length(which(rxn_detail$V1 %in% ec)) | ||
#save the result | ||
exist_R01867 <- c(exist_R01867, existence) | ||
ec_all <- c(ec_all, ec_existence) | ||
gene_all <- c(gene_all, gene) | ||
rxn_all <- c(rxn_all, rxn) | ||
} |
8 changes: 1 addition & 7 deletions
8
draft_GEM_all_yeast_species/.idea/draft_GEM_all_yeast_species.iml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
draft_GEM_all_yeast_species/.idea/inspectionProfiles/profiles_settings.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
draft_GEM_all_yeast_species/.idea/libraries/R_User_Library.xml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.