Skip to content

Commit

Permalink
Merge up and down
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Barrero Rodríguez committed Apr 9, 2024
1 parent 2ad5226 commit ff4afb1
Show file tree
Hide file tree
Showing 22 changed files with 313,307 additions and 8 deletions.
4,240 changes: 4,240 additions & 0 deletions 2_ReportLimma_wo_GUI_oneSample/B0/Z_p2qf/input.tsv

Large diffs are not rendered by default.

34,669 changes: 34,669 additions & 0 deletions 2_ReportLimma_wo_GUI_oneSample/B0/Z_pdm2pgm/input.tsv

Large diffs are not rendered by default.

22,802 changes: 22,802 additions & 0 deletions 2_ReportLimma_wo_GUI_oneSample/B0/Z_pgm2p/input.tsv

Large diffs are not rendered by default.

16,025 changes: 16,025 additions & 0 deletions 2_ReportLimma_wo_GUI_oneSample/B0/Z_pgm2p_dNM/input.tsv

Large diffs are not rendered by default.

4,708 changes: 4,708 additions & 0 deletions 2_ReportLimma_wo_GUI_oneSample/B0/Z_q2all/input.tsv

Large diffs are not rendered by default.

21,769 changes: 21,769 additions & 0 deletions 2_ReportLimma_wo_GUI_oneSample/B0/Z_qf2q/input.tsv

Large diffs are not rendered by default.

4,240 changes: 4,240 additions & 0 deletions 2_ReportLimma_wo_GUI_oneSample/F/Z_p2qf/input.tsv

Large diffs are not rendered by default.

34,669 changes: 34,669 additions & 0 deletions 2_ReportLimma_wo_GUI_oneSample/F/Z_pdm2pgm/input.tsv

Large diffs are not rendered by default.

22,802 changes: 22,802 additions & 0 deletions 2_ReportLimma_wo_GUI_oneSample/F/Z_pgm2p/input.tsv

Large diffs are not rendered by default.

16,025 changes: 16,025 additions & 0 deletions 2_ReportLimma_wo_GUI_oneSample/F/Z_pgm2p_dNM/input.tsv

Large diffs are not rendered by default.

4,708 changes: 4,708 additions & 0 deletions 2_ReportLimma_wo_GUI_oneSample/F/Z_q2all/input.tsv

Large diffs are not rendered by default.

21,769 changes: 21,769 additions & 0 deletions 2_ReportLimma_wo_GUI_oneSample/F/Z_qf2q/input.tsv

Large diffs are not rendered by default.

4,240 changes: 4,240 additions & 0 deletions 2_ReportLimma_wo_GUI_oneSample/I/Z_p2qf/input.tsv

Large diffs are not rendered by default.

34,669 changes: 34,669 additions & 0 deletions 2_ReportLimma_wo_GUI_oneSample/I/Z_pdm2pgm/input.tsv

Large diffs are not rendered by default.

22,802 changes: 22,802 additions & 0 deletions 2_ReportLimma_wo_GUI_oneSample/I/Z_pgm2p/input.tsv

Large diffs are not rendered by default.

16,025 changes: 16,025 additions & 0 deletions 2_ReportLimma_wo_GUI_oneSample/I/Z_pgm2p_dNM/input.tsv

Large diffs are not rendered by default.

4,708 changes: 4,708 additions & 0 deletions 2_ReportLimma_wo_GUI_oneSample/I/Z_q2all/input.tsv

Large diffs are not rendered by default.

21,769 changes: 21,769 additions & 0 deletions 2_ReportLimma_wo_GUI_oneSample/I/Z_qf2q/input.tsv

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions 2_ReportLimma_wo_GUI_oneSample/oneSampleLimma.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
library(limma)

'
https://bioconductor.org/packages/devel/bioc/vignettes/limma/inst/doc/usersguide.pdf
16.1 Swirl Zebrafish: A Single-Group Experiment
pg. 76
'

setwd("S:\\U_Proteomica\\LABS\\LAB_DF\\Comet_PTM\\FA_Biopsias\\2_ReportLimma_wo_GUI_oneSample")

groups <- c('B0', 'F', 'I')
integrations <- c('Z_pdm2pgm', 'Z_pgm2p', 'Z_pgm2p_dNM', 'Z_p2qf', 'Z_qf2q', 'Z_q2all')

intgr <- integrations[1]

for (g in groups) {


for (intgr in integrations) {

df <- read.csv(paste0(g, "\\", intgr, "\\", "input.tsv"), header=T, sep="\t")
rownames(df) <- df$LEVEL
df$LEVEL <- NULL

samples <- colnames(df)
design <- matrix(rep(1, length(samples)))
rownames(design) <- samples
colnames(design) <- g

fit <- lmFit(df,design)
fit <- eBayes(fit)

pvalue <- as.data.frame(fit$p.value)
meanRow <- as.data.frame(fit$Amean)

output <- merge(meanRow, pvalue, 'row.names', all=T)
colnames(output) <- c('LEVEL', 'Mean', 'pvalue')

write.table(output, paste0(g, "\\", intgr, "\\", "output.tsv"), sep="\t", row.names=F, col.names=T)

}
}
Loading

0 comments on commit ff4afb1

Please sign in to comment.