Skip to content

Commit

Permalink
fix: quotes from write.csv removed
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinaGomoryova committed Apr 15, 2024
1 parent b3661be commit e88b7fb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions database/updateGeneNames.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ updateCurrentMap <- function() {
# Update gene names
updateGeneNames <- function() {
# Get the input datasets in the database directory:
filenames <- list.files(path=getwd(), pattern = ".csv", full.names = TRUE)
tmp.path <- "C:/Users/kika2/Documents/shinyapp_20240411/MS_shiny_bryjalab/database"
# filenames <- list.files(path=getwd(), pattern = ".csv", full.names = TRUE)
filenames <- list.files(path=tmp.path, pattern = ".csv", full.names = TRUE)

# Get the newest genename
updateCurrentMap()
Expand All @@ -38,9 +40,10 @@ updateGeneNames <- function() {
map = genenames_newest,
unmapped.as.na = FALSE)
tmp$GeneID <- tmp.update$Suggested.Symbol
write.csv(tmp, file=filenames[i], quote=FALSE, row.names=FALSE)
write.csv(tmp, file=filenames[i], row.names=FALSE)
}
}

# Run the function
updateGeneNames()

0 comments on commit e88b7fb

Please sign in to comment.