Giter VIP home page Giter VIP logo

bms038_analysis's People

Contributors

riazn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bms038_analysis's Issues

Possible Incorrect rownames in TableS6.A.R

I'm trying to recreate this table and I think there is an error when intersecting the input matrix with the reference database.

Here is the section in question (lines 87-109):

# Read in matrix and Sample annotation
mat <- read.delim("data/CountData.BMS038.txt")
SampleTableCorrected <- read.csv("data/SampleTableCorrected.9.19.16.csv", row.names=1)

# Only samples with response
SampleTableCorrected <- SampleTableCorrected[!(is.na(SampleTableCorrected$Response)), ]

# Find the overlapping samples
inter <- intersect(colnames(mat),rownames(SampleTableCorrected))
SampleTableCorrected <- SampleTableCorrected[inter,]
mat <- mat[,match(rownames(SampleTableCorrected),colnames(mat))]

# Create the DESeq2 object
txdb <- TxDb.Hsapiens.UCSC.hg19.knownGene
ebg <- exonsBy(txdb, by="gene")
intersection <- intersect(rownames(mat),ebg@partitioning@NAMES)
ebg2 <- ebg[ebg@partitioning@NAMES %in% intersection]

# sort by ID
ebg2 <- ebg2[order(names(ebg2))]

# Sort by gene model order
mat <- mat[match(names(ebg2), rownames(mat)),]

mat is initially read in as a data.frame with 22,333 rows (genes) and 120 columns (samples).

mat gets intersected with the samples in SampleTableCorrected to remove 15 samples, resulting in 22,333 rows and 103 columns (both the "ID" column and the "HUGO" column are also removed here).

ebg is created from txdb, which contains 23,459 elements.

The entrez IDs of ebg (ebg@partitioning@NAMES) are intersected with the rownames of mat, but the rownames of mat are just 1:nrow(mat):

intersection1 <- intersect(rownames(mat), ebg@partitioning@NAMES)
intersection2 <- intersect(as.character(1:nrow(mat)), ebg@partitioning@NAMES)
length(which(intersection1 != intersection2))
0

This intersection results in a mat with 7,866 rows and 103 columns. If the rownames of mat are instead changed to the original entrez IDs, we get a larger intersection:

# Read in matrix and Sample annotation
mat <- read.delim("data/CountData.BMS038.txt")
ids <- mat$ID
SampleTableCorrected <- read.csv("data/SampleTableCorrected.9.19.16.csv", row.names=1)

# Only samples with response
SampleTableCorrected <- SampleTableCorrected[!(is.na(SampleTableCorrected$Response)), ]

# Find the overlapping samples
inter <- intersect(colnames(mat),rownames(SampleTableCorrected))
SampleTableCorrected <- SampleTableCorrected[inter,]
mat <- mat[,match(rownames(SampleTableCorrected),colnames(mat))]
rownames(mat) <- ids

# Create the DESeq2 object
txdb <- TxDb.Hsapiens.UCSC.hg19.knownGene
ebg <- exonsBy(txdb, by="gene")
intersection <- intersect(rownames(mat),ebg@partitioning@NAMES)
ebg2 <- ebg[ebg@partitioning@NAMES %in% intersection]

# sort by ID
ebg2 <- ebg2[order(names(ebg2))]

# Sort by gene model order
mat <- mat[match(names(ebg2), rownames(mat)),]

This results in a matrix with 22,333 genes and 103 samples. Although neither method above created the same results as were found in TableS6.A downloaded from the manuscript page.

In order to get an output table, I had to change: Response.ihw.PRCR <- ResFiltered(results(dds.pre,name="ResponsePRCR",filterFun = ihw)) to Response.ihw.PRCR <- ResFiltered(results(dds.pre,name="Response_PRCR_vs_PD",filterFun = ihw)), which may be the result of a different version of DESeq2 (I'm using 1.20.0).

Can't reproduce Table S6C

Hi,

Thanks for making the code available and so user friendly. Great study.

For some reason, when I run TableS6.C.R I don't get the same results as those provided in Table S6C of the paper. The output I get is attached here.

Would be very helpful to get your feedback.

Thanks!
TableS6.xlsx

PD-L1 IHC score?

I was expecting to find the PD-L1 score by IHC in bms038_clinical_data.csv or a similar file with clinical data (e.g., Table S2. Clinical Characteristics, Related to Figure 1 (mmc2.csv); SampleTableCorrected_9_19_16.csv) from the code but have been unable to do so. Where can I find the PD-L1 score by PD-L1 for each patient? Thanks.

Web site is insecure

Thanks for making data and code available.

I try to use the website but Vivaldi is preventing me from accessing to an insecure site.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.