Skip to content

Commit

Permalink
functions
Browse files Browse the repository at this point in the history
  • Loading branch information
yswutan committed Jun 27, 2021
1 parent 1c503be commit b6cdcbd
Show file tree
Hide file tree
Showing 20 changed files with 352 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
^.*\.Rproj$
^\.Rproj\.user$
2 changes: 2 additions & 0 deletions .Rproj.user/8CBC3624/persistent-state
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
activeClientUrl="http://144.214.26.7:8787/"
portToken="a801f04d248d"
1 change: 1 addition & 0 deletions .Rproj.user/8CBC3624/sources/s-86792e95/lock_file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
317786
Empty file.
20 changes: 20 additions & 0 deletions ClinClean.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX

AutoAppendNewline: Yes
StripTrailingWhitespace: Yes

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
13 changes: 13 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Package: ClinClean
Type: Package
Title: convert clinical follow up to overall survival and disease-free survival
Version: 0.1.0
Author: person(given = "Tan", family = "Wu", email = "[email protected]", role = c("aut", "cre"))
Maintainer: The package maintainer <[email protected]>
Description: This package could convert clinical follow up to overall survival and disease-free survival
License: GPL
Encoding: UTF-8
LazyData: true
Imports:
tcltk
RoxygenNote: 7.1.1
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exportPattern("^[[:alpha:]]+")
36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,35 @@
# ClinClean
# ClinClean

## Install
```
devtools::install_github("yswutan/ClinClean")
library(ClinClean)
```


## Step 1: read clinical raw data
sheet0: follow up;
sheet1: patient information
```
sheet0 <- read.table("20191121-1611_follow_data_sheet0.txt", header=T, sep="\t", quote="", fileEncoding="UTF-8", fill=T, stringsAsFactors=FALSE)
sheet1 <- read.table("20191121-1611_follow_data_sheet1_part.txt", header=T, sep="\t", quote="", fileEncoding="UTF-8", stringsAsFactors=FALSE)
```
## Step 2: combination
```
sheet <- SheetConvert(sheet0, sheet1)
```
## Step 3: processing
1.OS: 死亡病人:死亡时间-入院时间 (若入院时间比手术日期晚,则选手术日期);
有的病人确认死亡,但是没有死亡时间,取最后一次随访时间作为截止日期;
未死亡病人:最后一次随访时间-入院时间 (若入院时间比手术日期晚,则选手术日期)

2.DFS: 复发病人:复发/转移时间-手术日期;
无复发病人:最后一次随访时间/死亡时间-手术日期;
无复发,死亡,但是没有死亡时间:取最后一次随访时间作为截止日期,减去手术日期

3.DFS <= OS
```
ID1 <- unique(sheet1$'住院号')
OS <- OSProcess(sheet, ID1, "max", Ceiling=TRUE)
DFS <- DFSProcess(sheet, ID1, "FollowUp", Ceiling=TRUE)
```
26 changes: 26 additions & 0 deletions man/DFSCalculate.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions man/DFSProcess.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions man/FollwUpRelapse.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions man/OSCalculate.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions man/OSProcess.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions man/PreRelapseRecordDateProcess.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions man/RelapseDate.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions man/RelapseDateProcess.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions man/SheetConvert.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions man/preRelapseRecord.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions man/replication2.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions man/timerank.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b6cdcbd

Please sign in to comment.