README.md

surTNBC

The goal of surTNBC is to do survival analysis from a deg database

Installation

You can install the released version of surTNBC from github or gitee with:

devtools::install_github("xiayh17/surTNBC")
devtools::install_git("https://gitee.com/xiayh17/surTNBC")

download data

click to download iso_tpm.txt clinical.txt

data prepare

create this directory below your working directory

inst/app/data/

save clinical.txt and portal-database-output.sqlite into it

library(DBI)
library(dplyr)
library(dbplyr)
iso_tpm2 <- data.table::fread("iso_tpm.txt")
iso_tpm2 <- iso_tpm2 %>% dplyr::rename(names = V1)
con <- DBI::dbConnect(RSQLite::SQLite(), "inst/app/data/portal-database-output.sqlite")
dplyr::copy_to(con, iso_tpm2, "iso_tpm2",
               overwrite = TRUE,
               temporary = FALSE, 
               indexes = list(
                 c("names")
               )
)
# call dbDisconnect() when finished working with a connection 
DBI::dbDisconnect(con)

run

surTNBC::run_app()



xiayh17/surTNBC documentation built on Dec. 23, 2021, 6:19 p.m.