Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/davolilab/Proteogenomic-Analysis-of-Aneuploidy
06 September 2022, 07:29:28 UTC
  • Code
  • Branches (1)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/main
    No releases to show
  • 2a69fb3
  • /
  • Scripts
  • /
  • Figure4
  • /
  • cell cycle.R
Raw File Download Save again
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge
swh:1:cnt:2e5663c88f4d37be8490d447ebca818bc94010e1
origin badgedirectory badge
swh:1:dir:618d995563295c84c2547bbfac702a264a621815
origin badgerevision badge
swh:1:rev:9aa99245ac462b4134976293e52f56650ecb5c00
origin badgesnapshot badge
swh:1:snp:b6538a05374b43498f080a72fde216d3c2244d9f

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
Tip revision: 9aa99245ac462b4134976293e52f56650ecb5c00 authored by breezyzhao on 23 August 2022, 23:15:57 UTC
Delete license
Tip revision: 9aa9924
cell cycle.R
### this script is used to organize CPTAC cell cycle data
### organize the cell cycle scores calculated by raw RNA data
### validate by raw data

setwd("/Users/pc2644/Documents/DM_Aneuploidy/Compensation/PanAnalysis")

library(ggplot2)
library(dplyr)

rm(list=ls())

### colon2
load("/Volumes/davolt01lab/davolt01labspace/Pan/Aneuploidy/Tumor Dataset/GLM-GSEA/Organized Data_addMutation/colon2_addMutation.RData")
colon2 <- data.frame(samples=indepVar$Patient,
                     CellCycle=indepVar$CellCycle)
rm(cnv1, rna_partial_filter, rna_all_filter, protein1, indepVar)

### breast2
load("/Volumes/davolt01lab/davolt01labspace/Pan/Aneuploidy/Tumor Dataset/GLM-GSEA/Organized Data_addMutation/breast2_addMutation.RData")
breast2 <- data.frame(samples=indepVar$Patient,
                      CellCycle=indepVar$CellCycle)
rm(cnv1, rna_partial_filter, rna_all_filter, protein1, indepVar)

### ovarian2
load("/Volumes/davolt01lab/davolt01labspace/Pan/Aneuploidy/Tumor Dataset/GLM-GSEA/Organized Data/ovarian2.RData")
cc.signature <- c("CENPE","CCNA2","CCNB2","MCM6","CCNF","BUB1","CDC20","CDC6","CDK1","PLK1")
rna.cc <- rna1[cc.signature,]
rna.cc <- na.omit(rna.cc)
rna.cc <- data.frame(t(rna.cc))
rank.cc <- data.frame(apply(rna.cc, 2, rank))
ranked_colsum <- rank(apply(rank.cc, 1, sum))
rank.cc$CellCycle <- ranked_colsum
rank.cc$patient <- rownames(rank.cc)
ovarian2 <- data.frame(samples=rank.cc$patient,
                       CellCycle=rank.cc$CellCycle)
rm(cnv1, rna1, protein1, AS1, rank.cc, rna.cc)

### ccrcc
load("/Volumes/davolt01lab/davolt01labspace/Pan/Aneuploidy/Tumor Dataset/GLM-GSEA/Organized Data_addMutation/ccrcc_addMutation.RData")
ccrcc <- data.frame(samples=indepVar$Patient,
                    CellCycle=indepVar$CellCycle)
rm(cnv1, rna_partial_filter, rna_all_filter, protein1, indepVar)

### endometrial
load("/Volumes/davolt01lab/davolt01labspace/Pan/Aneuploidy/Tumor Dataset/GLM-GSEA/Organized Data_addMutation/endometrail_addMutation.RData")
endometrial <- data.frame(samples=indepVar$Patient,
                          CellCycle=indepVar$CellCycle)
rm(cnv1, rna_partial_filter, rna_all_filter, protein1, indepVar)

### hnscc
load("/Volumes/davolt01lab/davolt01labspace/Pan/Aneuploidy/Tumor Dataset/GLM-GSEA/Organized Data_addMutation/hnscc_addMutation.RData")
hnscc <- data.frame(samples=indepVar$Patient,
                    CellCycle=indepVar$CellCycle)
rm(cnv1, rna_partial_filter, rna_all_filter, protein1, indepVar)

### luad
load("/Volumes/davolt01lab/davolt01labspace/Pan/Aneuploidy/Tumor Dataset/GLM-GSEA/Organized Data_addMutation/luad_addMutation.RData")
luad <- data.frame(samples=indepVar$Patient,
                   CellCycle=indepVar$CellCycle)
rm(cnv1, rna_partial_filter, rna_all_filter, protein1, indepVar)

### put them together
CellCycle <- rbind(colon2, breast2, ovarian2, ccrcc, endometrial, hnscc, luad)

### load meta data
load("/Users/pc2644/Documents/DM_Aneuploidy/Compensation/PanAnalysis/CPTAC_purity.RData")
indep_pan3 <- merge(indep_pan2, CellCycle, by.x="patients", by.y="samples", all.x=T, sort=F)
indep_pan3$CellCycle <- as.numeric(indep_pan3$CellCycle)
save(indep_pan3, file = "CPTAC_purity_CellCycle.RData")

ggplot(indep_pan3, aes(x=cancer, y=CellCycle, color=cancer)) + geom_jitter()




back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API