{"id":18893524,"url":"https://github.com/shgopher/tcga-roc","last_synced_at":"2025-10-18T10:16:35.281Z","repository":{"id":223869397,"uuid":"761768637","full_name":"shgopher/tcga-roc","owner":"shgopher","description":"使用tcga 肿瘤数据去获得 roc 曲线的代码","archived":false,"fork":false,"pushed_at":"2024-02-22T13:10:33.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-31T07:16:15.870Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shgopher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-22T13:07:08.000Z","updated_at":"2024-02-22T13:16:44.000Z","dependencies_parsed_at":"2024-02-22T14:39:05.355Z","dependency_job_id":null,"html_url":"https://github.com/shgopher/tcga-roc","commit_stats":null,"previous_names":["shgopher/tcga-roc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgopher%2Ftcga-roc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgopher%2Ftcga-roc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgopher%2Ftcga-roc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgopher%2Ftcga-roc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shgopher","download_url":"https://codeload.github.com/shgopher/tcga-roc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239869221,"owners_count":19710485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T08:14:08.965Z","updated_at":"2025-10-18T10:16:30.218Z","avatar_url":"https://github.com/shgopher.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n * @Author: shgopher shgopher@gmail.com\n * @Date: 2024-02-21 14:29:58\n * @LastEditors: shgopher shgopher@gmail.com\n * @LastEditTime: 2024-02-22 20:46:48\n * @FilePath: /r1/README.md\n * @Description: \n * \n * Copyright (c) 2024 by shgopher, All Rights Reserved. \n--\u003e\n# 算法分析\n获取患者信息\n- 还活着的病人计算其 days_to_last_follow_up 的日期，如果＞365 就是一年生存期 \u003e 365*3 就是三年生存期,大于365*5 就是五年生存期\n- 对于死去的病人，计算其 days_to_death\n\n总而言之，现获取病人的生存状态，判断其生死，然后再计算其生存期\n\n然后获取病人信息id，并且将其id寻找其携带基因为 tele1 的基因，因为我们只研究这个基因\n\n得到了下面数据\n\n|id|基因表达程度|生存期|\n|:---:|:---:|:---:|\n|1|0.3|3|\n\n# 具体算法设计\n1. 读取病例的信息， 返回三个字段：病人 case id，生存状态，days_to_last_follow_up,days_to_death\n\n2. 读取基因表达信息，输入两个字段，病人case id，探索基因的类型，返回其基因的表达程度：fpkm_uq_unstranded + 病人id\n\n3.生存期的计算，if 活着，算 last follow，else死了，算 to death，else 报错，再加入一个switch ，\u003e 365 就是一年生存期，大于365*3 就是三年生存期，大于365*5 就是五年生存期，先从5年开始判断，如果不到5年再判断3年，然后再判断一年，所以不能用switch，用if else \n\n4.生成一组数据，病人id 基因表达程度 生存期\n\n\nmetadate.cart 有 caseid和gdc对应的数据\n\n\n\n## 必有内容\n\n- main.go\n- go.mod\n- go.sum\n- index.R\n- roc.pdf(后生成的)\n- gen（cart）\n- a.json （metadata.json）\n- b.csv (cinitial.csv)\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshgopher%2Ftcga-roc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshgopher%2Ftcga-roc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshgopher%2Ftcga-roc/lists"}