Mercurial > repos > galaxyp > psm_to_sam
annotate tool-data/.Rhistory @ 2:e1bb35f6ca28 draft
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
author | galaxyp |
---|---|
date | Thu, 14 Jan 2016 18:13:18 -0500 |
parents | |
children |
rev | line source |
---|---|
2
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
1 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
2 channel = sub("\\S+?\\.(iTRAQ\\.\\d+)", "\\1", mergedSampleName, perl=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
3 return(paste0(sample, "-", channel)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
4 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
5 coreSampleNames = list() |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
6 for(i in seq(2, length(multiplexData), 4)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
7 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
8 firstGroupNum = 0.75 * i |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
9 print(getMultiplexSampleName(sampleNames[i-1], 1, coreSampleNames)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
10 sampleNames[i-1] = sub("(\\S+?)_(\\S+?)_(\\S+?)(\\.iTRAQ.\\d+)", "\\1\\4", sampleNames[i-1], perl=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
11 sampleNames[i] = sub("(\\S+?)_(\\S+?)_(\\S+?)(\\.iTRAQ.\\d+)", "\\2\\4", sampleNames[i], perl=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
12 sampleNames[i+1] = sub("(\\S+?)_(\\S+?)_(\\S+?)(\\.iTRAQ.\\d+)", "\\3\\4", sampleNames[i+1], perl=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
13 print(sampleNames[i-1]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
14 print(sampleNames[i]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
15 print(sampleNames[i+1]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
16 #ratios[,firstGroupNum] = ZeroSafeDivide(multiplexData[,i], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
17 #ratios[,firstGroupNum+1] = ZeroSafeDivide(multiplexData[,i+1], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
18 #ratios[,firstGroupNum+2] = ZeroSafeDivide(multiplexData[,i+2], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
19 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
20 getMultiplexSampleName = function(mergedSampleName, tokenIndex, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
21 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
22 sample = sub("(\\S+?)_(\\S+?)_(\\S+?)\\.iTRAQ\\.\\d+", paste0("\\", tokenIndex), mergedSampleName, perl=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
23 if(is.null(coreSampleNames[[sample]])) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
24 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
25 coreSampleNames[[sample]] = 1 |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
26 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
27 else |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
28 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
29 sample = paste0(sample, incrementChar("A", coreSampleNames[[sample]])) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
30 coreSampleNames[[sample]] = coreSampleNames[[sample]] + 1 |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
31 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
32 channel = sub("\\S+?\\.(iTRAQ\\.\\d+)", "\\1", mergedSampleName, perl=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
33 coreSampleNames <<- coreSampleNames |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
34 return(paste0(sample, "-", channel)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
35 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
36 coreSampleNames = list() |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
37 for(i in seq(2, length(multiplexData), 4)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
38 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
39 firstGroupNum = 0.75 * i |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
40 print(getMultiplexSampleName(sampleNames[i-1], 1, coreSampleNames)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
41 sampleNames[i-1] = sub("(\\S+?)_(\\S+?)_(\\S+?)(\\.iTRAQ.\\d+)", "\\1\\4", sampleNames[i-1], perl=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
42 sampleNames[i] = sub("(\\S+?)_(\\S+?)_(\\S+?)(\\.iTRAQ.\\d+)", "\\2\\4", sampleNames[i], perl=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
43 sampleNames[i+1] = sub("(\\S+?)_(\\S+?)_(\\S+?)(\\.iTRAQ.\\d+)", "\\3\\4", sampleNames[i+1], perl=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
44 #print(sampleNames[i-1]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
45 #print(sampleNames[i]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
46 #print(sampleNames[i+1]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
47 #ratios[,firstGroupNum] = ZeroSafeDivide(multiplexData[,i], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
48 #ratios[,firstGroupNum+1] = ZeroSafeDivide(multiplexData[,i+1], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
49 #ratios[,firstGroupNum+2] = ZeroSafeDivide(multiplexData[,i+2], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
50 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
51 sampleNames = colnames(multiplexData)[-1]#[c(F, rep(c(T,T,T,F), numSamples/3))] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
52 incrementChar = function(c, step=1) { return(rawToChar(as.raw(as.integer(charToRaw(c))+step))); } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
53 getMultiplexSampleName = function(mergedSampleName, tokenIndex, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
54 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
55 sample = sub("(\\S+?)_(\\S+?)_(\\S+?)\\.iTRAQ\\.\\d+", paste0("\\", tokenIndex), mergedSampleName, perl=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
56 if(is.null(coreSampleNames[[sample]])) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
57 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
58 coreSampleNames[[sample]] = 1 |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
59 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
60 else |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
61 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
62 sample = paste0(sample, incrementChar("A", coreSampleNames[[sample]])) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
63 coreSampleNames[[sample]] = coreSampleNames[[sample]] + 1 |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
64 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
65 channel = sub("\\S+?\\.(iTRAQ\\.\\d+)", "\\1", mergedSampleName, perl=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
66 coreSampleNames <<- coreSampleNames |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
67 return(paste0(sample, "-", channel)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
68 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
69 coreSampleNames = list() |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
70 for(i in seq(2, length(multiplexData), 4)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
71 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
72 firstGroupNum = 0.75 * i |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
73 sampleNames[i-1] = getMultiplexSampleName(sampleNames[i-1], 1, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
74 sampleNames[i] = getMultiplexSampleName(sampleNames[i], 2, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
75 sampleNames[i+1] = getMultiplexSampleName(sampleNames[i+1], 3, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
76 print(sampleNames[i-1]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
77 print(sampleNames[i]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
78 print(sampleNames[i+1]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
79 #ratios[,firstGroupNum] = ZeroSafeDivide(multiplexData[,i], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
80 #ratios[,firstGroupNum+1] = ZeroSafeDivide(multiplexData[,i+1], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
81 #ratios[,firstGroupNum+2] = ZeroSafeDivide(multiplexData[,i+2], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
82 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
83 sampleNames = colnames(multiplexData)[-1]#[c(F, rep(c(T,T,T,F), numSamples/3))] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
84 incrementChar = function(c, step=1) { return(rawToChar(as.raw(as.integer(charToRaw(c))+step))); } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
85 getMultiplexSampleName = function(mergedSampleName, tokenIndex, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
86 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
87 sample = sub("(\\S+?)_(\\S+?)_(\\S+?)\\.iTRAQ\\.\\d+", paste0("\\", tokenIndex), mergedSampleName, perl=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
88 if(is.null(coreSampleNames[[sample]])) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
89 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
90 coreSampleNames[[sample]] = 1 |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
91 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
92 else |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
93 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
94 sample = paste0(sample, "-", incrementChar("A", coreSampleNames[[sample]])) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
95 coreSampleNames[[sample]] = coreSampleNames[[sample]] + 1 |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
96 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
97 channel = sub("\\S+?\\.(iTRAQ\\.\\d+)", "\\1", mergedSampleName, perl=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
98 coreSampleNames <<- coreSampleNames |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
99 return(paste0(sample, "-", channel)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
100 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
101 coreSampleNames = list() |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
102 for(i in seq(2, length(multiplexData), 4)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
103 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
104 firstGroupNum = 0.75 * i |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
105 sampleNames[i-1] = getMultiplexSampleName(sampleNames[i-1], 1, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
106 sampleNames[i] = getMultiplexSampleName(sampleNames[i], 2, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
107 sampleNames[i+1] = getMultiplexSampleName(sampleNames[i+1], 3, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
108 print(sampleNames[i-1]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
109 print(sampleNames[i]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
110 print(sampleNames[i+1]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
111 #ratios[,firstGroupNum] = ZeroSafeDivide(multiplexData[,i], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
112 #ratios[,firstGroupNum+1] = ZeroSafeDivide(multiplexData[,i+1], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
113 #ratios[,firstGroupNum+2] = ZeroSafeDivide(multiplexData[,i+2], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
114 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
115 sampleNames = colnames(multiplexData)[-1]#[c(F, rep(c(T,T,T,F), numSamples/3))] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
116 incrementChar = function(c, step=1) { return(rawToChar(as.raw(as.integer(charToRaw(c))+step))); } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
117 getMultiplexSampleName = function(mergedSampleName, tokenIndex, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
118 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
119 sample = sub("(\\S+?)_(\\S+?)_(\\S+?)\\.iTRAQ\\.\\d+", paste0("\\", tokenIndex), mergedSampleName, perl=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
120 if(is.null(coreSampleNames[[sample]])) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
121 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
122 coreSampleNames[[sample]] = 1 |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
123 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
124 else |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
125 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
126 oldCount = coreSampleNames[[sample]] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
127 sample = paste0(sample, "-", incrementChar("A", oldCount)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
128 coreSampleNames[[sample]] = oldCount + 1 |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
129 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
130 channel = sub("\\S+?\\.(iTRAQ\\.\\d+)", "\\1", mergedSampleName, perl=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
131 coreSampleNames <<- coreSampleNames |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
132 return(paste0(sample, "-", channel)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
133 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
134 coreSampleNames = list() |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
135 for(i in seq(2, length(multiplexData), 4)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
136 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
137 firstGroupNum = 0.75 * i |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
138 sampleNames[i-1] = getMultiplexSampleName(sampleNames[i-1], 1, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
139 sampleNames[i] = getMultiplexSampleName(sampleNames[i], 2, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
140 sampleNames[i+1] = getMultiplexSampleName(sampleNames[i+1], 3, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
141 print(sampleNames[i-1]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
142 print(sampleNames[i]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
143 print(sampleNames[i+1]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
144 #ratios[,firstGroupNum] = ZeroSafeDivide(multiplexData[,i], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
145 #ratios[,firstGroupNum+1] = ZeroSafeDivide(multiplexData[,i+1], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
146 #ratios[,firstGroupNum+2] = ZeroSafeDivide(multiplexData[,i+2], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
147 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
148 sort(coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
149 sort(coreSampleNames[1]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
150 coreSampleNames[1] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
151 coreSampleNames[2] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
152 coreSampleNames[1,] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
153 coreSampleNames[,1] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
154 simplify2array(coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
155 order(coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
156 order(coreSampleNames[1]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
157 sort(simplify2array(coreSampleNames)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
158 order(coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
159 as.matrix(cores) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
160 as.matrix(coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
161 order(as.matrix(coreSampleNames)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
162 names(as.matrix(coreSampleNames)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
163 names(coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
164 sort(names(coreSampleNames)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
165 sort(sampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
166 sampleNames = sampleNames[c(rep(c(T,T,T,F), numSamples/3))] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
167 sort(sampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
168 ratios = matrix(nrow=dim(multiplexData)[1], ncol=numSamples, dimnames=list(multiplexData[,1], sampleNames)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
169 View(ratios) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
170 for(i in seq(2, length(multiplexData), 4)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
171 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
172 firstGroupNum = 0.75 * i |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
173 ratios[,firstGroupNum] = ZeroSafeDivide(multiplexData[,i], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
174 ratios[,firstGroupNum+1] = ZeroSafeDivide(multiplexData[,i+1], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
175 ratios[,firstGroupNum+2] = ZeroSafeDivide(multiplexData[,i+2], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
176 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
177 View(ratios) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
178 filepath = "H:/data/CPTAC/TCGA-Broad-Breast/global-Broad.cct" |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
179 outputFilepath = sub(".cct", "-demultiplexed-ratios.cct", filepath, fixed=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
180 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
181 write.csv(format(ratios, digits=4), file=outputFilepath, quote=F) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
182 demultiplexNetGestaltITRAQ_CCT = function(filepath) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
183 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
184 outputFilepath = sub(".cct", "-demultiplexed-ratios.cct", filepath, fixed=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
185 multiplexData = read.table(filepath, sep="\t", header=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
186 numSamples = 0.75*(dim(multiplexData)[2]-1) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
187 sampleNames = colnames(multiplexData)[-1]#[c(F, rep(c(T,T,T,F), numSamples/3))] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
188 coreSampleNames = list() |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
189 for(i in seq(2, length(multiplexData), 4)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
190 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
191 firstGroupNum = 0.75 * i |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
192 sampleNames[i-1] = getMultiplexSampleName(sampleNames[i-1], 1, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
193 sampleNames[i] = getMultiplexSampleName(sampleNames[i], 2, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
194 sampleNames[i+1] = getMultiplexSampleName(sampleNames[i+1], 3, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
195 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
196 sampleNames = sampleNames[c(rep(c(T,T,T,F), numSamples/3))] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
197 ratios = matrix(nrow=dim(multiplexData)[1], ncol=numSamples, dimnames=list(multiplexData[,1], sampleNames)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
198 for(i in seq(2, length(multiplexData), 4)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
199 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
200 firstGroupNum = 0.75 * i |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
201 ratios[,firstGroupNum] = ZeroSafeDivide(multiplexData[,i], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
202 ratios[,firstGroupNum+1] = ZeroSafeDivide(multiplexData[,i+1], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
203 ratios[,firstGroupNum+2] = ZeroSafeDivide(multiplexData[,i+2], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
204 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
205 write.csv(format(ratios, digits=4), file=outputFilepath, quote=F) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
206 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
207 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
208 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
209 write.table(format(ratios, digits=4), file=outputFilepath, quote=F, row.names=T, sep="\t") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
210 write.table(format(ratios, digits=4), file=outputFilepath, quote=F, row.names=T, col.names=T, sep="\t") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
211 write.table(format(cbind(rownames(ratios), ratios), digits=4), file=outputFilepath, quote=F, row.names=F, sep="\t") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
212 write.table(format(cbind(c("GeneSymbol", rownames(ratios)), ratios), digits=4), file=outputFilepath, quote=F, row.names=F, sep="\t") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
213 c("GeneSymbol", rownames(ratios)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
214 head(c("GeneSymbol", rownames(ratios))) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
215 cbind(c("GeneSymbol", rownames(ratios)), ratios), digits=4) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
216 cbind(c("GeneSymbol", rownames(ratios)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
217 ) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
218 cbind(c("GeneSymbol", rownames(ratios)), ratios) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
219 write.table(format(cbind(c(GeneSymbol=rownames(ratios)), ratios), digits=4), file=outputFilepath, quote=F, row.names=F, sep="\t") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
220 write.table(format(cbind(c(GeneSymbol=rownames(ratios)), ratios), digits=4), file=outputFilepath, quote=F, row.names=F, sep="\t") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
221 write.table(format(cbind(GeneSymbol=rownames(ratios), ratios), digits=4), file=outputFilepath, quote=F, row.names=F, sep="\t") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
222 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
223 write.table(format(cbind(GeneSymbol=rownames(ratios), ratios), digits=4), file=outputFilepath, quote=F, row.names=F, sep="\t", options(digits=2)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
224 write.table(cbind(GeneSymbol=rownames(ratios), ratios), file=outputFilepath, quote=F, row.names=F, sep="\t", options(digits=4)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
225 options(digits=4) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
226 write.table(cbind(GeneSymbol=rownames(ratios), ratios), file=outputFilepath, quote=F, row.names=F, sep="\t") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
227 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
228 demultiplexNetGestaltITRAQ_CCT("H:/data/CPTAC/TCGA-Broad-Breast/phospho-Broad.cct") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
229 demultiplexNetGestaltITRAQ_CCT("H:/data/CPTAC/TCGA-Broad-Breast/phospho-Broad.cct") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
230 rm("*") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
231 rm("") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
232 rm |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
233 rm() |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
234 ?rm |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
235 getMultiplexSampleName = function(mergedSampleName, tokenIndex, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
236 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
237 innerSampleNames = coreSampleNames |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
238 sample = sub("(\\S+?)_(\\S+?)_(\\S+?)\\.iTRAQ\\.\\d+", paste0("\\", tokenIndex), mergedSampleName, perl=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
239 if(is.null(innerSampleNames[[sample]])) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
240 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
241 innerSampleNames[[sample]] = 1 |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
242 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
243 else |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
244 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
245 oldCount = innerSampleNames[[sample]] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
246 sample = paste0(sample, "-", incrementChar("A", oldCount)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
247 innerSampleNames[[sample]] = oldCount + 1 |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
248 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
249 channel = sub("\\S+?\\.(iTRAQ\\.\\d+)", "\\1", mergedSampleName, perl=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
250 eval.parent(substitute(coreSampleNames = innerSampleNames)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
251 return(paste0(sample, "-", channel)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
252 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
253 demultiplexNetGestaltITRAQ_CCT = function(filepath) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
254 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
255 outputFilepath = sub(".cct", "-demultiplexed-ratios.cct", filepath, fixed=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
256 multiplexData = read.table(filepath, sep="\t", header=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
257 numSamples = 0.75*(dim(multiplexData)[2]-1) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
258 sampleNames = colnames(multiplexData)[-1]#[c(F, rep(c(T,T,T,F), numSamples/3))] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
259 coreSampleNames = list() |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
260 for(i in seq(2, length(multiplexData), 4)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
261 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
262 firstGroupNum = 0.75 * i |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
263 sampleNames[i-1] = getMultiplexSampleName(sampleNames[i-1], 1, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
264 sampleNames[i] = getMultiplexSampleName(sampleNames[i], 2, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
265 sampleNames[i+1] = getMultiplexSampleName(sampleNames[i+1], 3, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
266 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
267 sampleNames = sampleNames[c(rep(c(T,T,T,F), numSamples/3))] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
268 ratios = matrix(nrow=dim(multiplexData)[1], ncol=numSamples, dimnames=list(multiplexData[,1], sampleNames)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
269 for(i in seq(2, length(multiplexData), 4)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
270 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
271 firstGroupNum = 0.75 * i |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
272 ratios[,firstGroupNum] = ZeroSafeDivide(multiplexData[,i], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
273 ratios[,firstGroupNum+1] = ZeroSafeDivide(multiplexData[,i+1], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
274 ratios[,firstGroupNum+2] = ZeroSafeDivide(multiplexData[,i+2], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
275 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
276 options(digits=4) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
277 write.table(cbind(GeneSymbol=rownames(ratios), ratios), file=outputFilepath, quote=F, row.names=F, sep="\t") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
278 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
279 demultiplexNetGestaltITRAQ_CCT("H:/data/CPTAC/TCGA-Broad-Breast/phospho-Broad.cct") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
280 ?substittue |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
281 ?substitute |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
282 getMultiplexSampleName = function(mergedSampleName, tokenIndex, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
283 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
284 innerSampleNames = coreSampleNames |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
285 sample = sub("(\\S+?)_(\\S+?)_(\\S+?)\\.iTRAQ\\.\\d+", paste0("\\", tokenIndex), mergedSampleName, perl=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
286 if(is.null(innerSampleNames[[sample]])) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
287 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
288 innerSampleNames[[sample]] = 1 |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
289 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
290 else |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
291 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
292 oldCount = innerSampleNames[[sample]] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
293 sample = paste0(sample, "-", incrementChar("A", oldCount)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
294 innerSampleNames[[sample]] = oldCount + 1 |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
295 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
296 channel = sub("\\S+?\\.(iTRAQ\\.\\d+)", "\\1", mergedSampleName, perl=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
297 eval.parent(substitute(coreSampleNames<-innerSampleNames)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
298 return(paste0(sample, "-", channel)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
299 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
300 demultiplexNetGestaltITRAQ_CCT = function(filepath) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
301 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
302 outputFilepath = sub(".cct", "-demultiplexed-ratios.cct", filepath, fixed=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
303 multiplexData = read.table(filepath, sep="\t", header=T) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
304 numSamples = 0.75*(dim(multiplexData)[2]-1) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
305 sampleNames = colnames(multiplexData)[-1]#[c(F, rep(c(T,T,T,F), numSamples/3))] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
306 coreSampleNames = list() |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
307 for(i in seq(2, length(multiplexData), 4)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
308 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
309 firstGroupNum = 0.75 * i |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
310 sampleNames[i-1] = getMultiplexSampleName(sampleNames[i-1], 1, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
311 sampleNames[i] = getMultiplexSampleName(sampleNames[i], 2, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
312 sampleNames[i+1] = getMultiplexSampleName(sampleNames[i+1], 3, coreSampleNames) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
313 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
314 sampleNames = sampleNames[c(rep(c(T,T,T,F), numSamples/3))] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
315 ratios = matrix(nrow=dim(multiplexData)[1], ncol=numSamples, dimnames=list(multiplexData[,1], sampleNames)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
316 for(i in seq(2, length(multiplexData), 4)) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
317 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
318 firstGroupNum = 0.75 * i |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
319 ratios[,firstGroupNum] = ZeroSafeDivide(multiplexData[,i], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
320 ratios[,firstGroupNum+1] = ZeroSafeDivide(multiplexData[,i+1], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
321 ratios[,firstGroupNum+2] = ZeroSafeDivide(multiplexData[,i+2], multiplexData[,i+3]) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
322 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
323 options(digits=4) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
324 write.table(cbind(GeneSymbol=rownames(ratios), ratios), file=outputFilepath, quote=F, row.names=F, sep="\t") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
325 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
326 demultiplexNetGestaltITRAQ_CCT("H:/data/CPTAC/TCGA-Broad-Breast/phospho-Broad.cct") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
327 demultiplexNetGestaltITRAQ_CCT("H:/data/CPTAC/TCGA-Broad-Breast/global-Broad.cct") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
328 demultiplexNetGestaltITRAQ_CCT("H:/data/CPTAC/TCGA-PNNL-Ovarian/phospho-PNNL.cct") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
329 demultiplexNetGestaltITRAQ_CCT("H:/data/CPTAC/TCGA-PNNL-Ovarian/global-PNNL.cct") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
330 demultiplexNetGestaltITRAQ_CCT("H:/data/CPTAC/TCGA-PNNL-Ovarian/phospho-PNNL.cct") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
331 demultiplexNetGestaltITRAQ_CCT("H:/data/CPTAC/TCGA-PNNL-Ovarian/global-PNNL.cct") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
332 ratios_ordered = ratios[,order(names(ratios))] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
333 ratios_ordered = ratios[order(names(ratios)),] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
334 names(ratios) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
335 colnames(ratios) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
336 ratios_ordered = ratios[order(colnames(ratios)),] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
337 ratios_ordered = ratios[,order(colnames(ratios))] |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
338 View(ratios_ordered) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
339 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
340 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
341 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
342 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
343 biocLite("RGalaxy") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
344 source("https://bioconductor.org/biocLite.R") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
345 biocLite("RGalaxy") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
346 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
347 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
348 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
349 galaxyHome="/galaxy-central" |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
350 galaxy("addTwoNumbers", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
351 galaxyConfig= |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
352 GalaxyConfig(galaxyHome, "mytool", "Test Section", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
353 "testSectionId") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
354 ) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
355 galaxyHome="C:\\Users\\chambem2\\.vagrant\\precise64\\bingomics-galaxy\\vagrant\\export\\src\\galaxy" |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
356 galaxy("addTwoNumbers", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
357 galaxyConfig= |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
358 GalaxyConfig(galaxyHome, "mytool", "Test Section", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
359 "testSectionId") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
360 ) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
361 galaxyHome="C:\\Users\\chambem2\\.vagrant\\precise64\\bingomics-galaxy\\vagrant\\export\\src\\galaxy" |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
362 galaxy("addTwoNumbers", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
363 galaxyConfig= |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
364 GalaxyConfig(galaxyHome, "mytool", "Test Section", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
365 "testSectionId") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
366 ) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
367 ?GalaxyConfig |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
368 galaxyHome="C:\\Users\\chambem2\\.vagrant\\precise64\\bingomics-galaxy\\vagrant\\export\\src\\galaxy" |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
369 galaxy("addTwoNumbers", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
370 galaxyConfig= |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
371 GalaxyConfig(galaxyHome, "mytool", "Test Section", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
372 "testSectionId") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
373 ) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
374 galaxyHome="C:\\Users\\chambem2\\.vagrant\\precise64\\bingomics-galaxy\\vagrant\\export\\src\\galaxy" |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
375 galaxy("addTwoNumbers", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
376 galaxyConfig= |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
377 GalaxyConfig(galaxyHome, "mytool", "Test Section", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
378 "testSectionId") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
379 ) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
380 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
381 galaxyHome="C:\\Users\\chambem2\\.vagrant\\precise64\\bingomics-galaxy\\vagrant\\export\\src\\galaxy" |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
382 galaxy("addTwoNumbers", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
383 galaxyConfig= |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
384 GalaxyConfig(galaxyHome, "mytool", "Test Section", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
385 "testSectionId") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
386 ) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
387 galaxyHome="C:\\Users\\chambem2\\.vagrant\\precise64\\bingomics-galaxy\\vagrant\\export\\src\\galaxy" |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
388 galaxy("addTwoNumbers", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
389 galaxyConfig= |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
390 GalaxyConfig(galaxyHome, "mytool", "Test Section", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
391 "testSectionId") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
392 ) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
393 galaxyHome="C:\\Users\\chambem2\\.vagrant\\precise64\\bingomics-galaxy\\vagrant\\export\\src\\galaxy" |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
394 galaxy("PrepareAnnotationGENCODE_g", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
395 galaxyConfig= |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
396 GalaxyConfig(galaxyHome, "mytool", "Test Section", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
397 "testSectionId") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
398 ) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
399 PrepareAnnotationGENCODE_g <- function() {} |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
400 galaxyHome="C:\\Users\\chambem2\\.vagrant\\precise64\\bingomics-galaxy\\vagrant\\export\\src\\galaxy" |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
401 galaxy("PrepareAnnotationGENCODE_g", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
402 galaxyConfig= |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
403 GalaxyConfig(galaxyHome, "mytool", "Test Section", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
404 "testSectionId") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
405 ) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
406 PrepareAnnotationGENCODE_g <- function(gtfFile = GalaxyInputFile(required = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
407 CDSfasta = GalaxyInputFile(required = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
408 pepfasta = GalaxyInputFile(required = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
409 annotation_path = GalaxyCharacterParam(required = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
410 dbsnp = GalaxySelectParam(c(`First Choice` = "NULL", `Second Choice` = |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
411 "snp135")), splice_matrix = GalaxyLogicalParam(checked = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
412 COSMIC = GalaxyLogicalParam(checked = TRUE), ...) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
413 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
414 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
415 PrepareAnnotationGENCODE_g <- function(gtfFile = GalaxyInputFile(required = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
416 CDSfasta = GalaxyInputFile(required = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
417 pepfasta = GalaxyInputFile(required = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
418 annotation_path = GalaxyCharacterParam(required = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
419 dbsnp = GalaxySelectParam(c(`First Choice` = "NULL", `Second Choice` = |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
420 "snp135")), splice_matrix = GalaxyLogicalParam(checked = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
421 COSMIC = GalaxyLogicalParam(checked = TRUE), ...) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
422 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
423 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
424 galaxyHome="C:\\Users\\chambem2\\.vagrant\\precise64\\bingomics-galaxy\\vagrant\\export\\src\\galaxy" |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
425 galaxy("PrepareAnnotationGENCODE_g", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
426 galaxyConfig= |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
427 GalaxyConfig(galaxyHome, "mytool", "Test Section", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
428 "testSectionId") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
429 ) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
430 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
431 PrepareAnnotationGENCODE_g <- function(gtfFile = GalaxyInputFile(required = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
432 CDSfasta = GalaxyInputFile(required = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
433 pepfasta = GalaxyInputFile(required = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
434 annotation_path = GalaxyCharacterParam(required = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
435 dbsnp = GalaxySelectParam(c(`First Choice` = "NULL", `Second Choice` = |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
436 "snp135")), splice_matrix = GalaxyLogicalParam(checked = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
437 COSMIC = GalaxyLogicalParam(checked = TRUE), ...) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
438 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
439 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
440 galaxyHome="C:\\Users\\chambem2\\.vagrant\\precise64\\bingomics-galaxy\\vagrant\\export\\src\\galaxy" |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
441 galaxy("PrepareAnnotationGENCODE_g", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
442 galaxyConfig= |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
443 GalaxyConfig(galaxyHome, "mytool", "Test Section", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
444 "testSectionId") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
445 ) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
446 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
447 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
448 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
449 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
450 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
451 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
452 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
453 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
454 ?wtf |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
455 print "why doesn't this work" |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
456 print( )"why doesn't this work") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
457 print("why doesn't this work") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
458 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
459 galaxyHome="C:\\Users\\chambem2\\.vagrant\\precise64\\bingomics-galaxy\\vagrant\\export\\src\\galaxy" |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
460 galaxy("addTwoNumbers", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
461 galaxyConfig= |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
462 GalaxyConfig(galaxyHome, "mytool", "Test Section", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
463 "testSectionId") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
464 ) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
465 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
466 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
467 PrepareAnnotationGENCODE <- function(gtfFile = GalaxyInputFile(required = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
468 CDSfasta = GalaxyInputFile(required = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
469 pepfasta = GalaxyInputFile(required = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
470 annotation_path = GalaxyCharacterParam(required = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
471 COSMIC = GalaxyLogicalParam(checked = TRUE), |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
472 output = GalaxyOutput("sum", "txt")) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
473 { |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
474 print("why doesn't this work") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
475 } |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
476 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
477 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
478 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
479 library(RGalaxy) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
480 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
481 galaxyHome="C:\\Users\\chambem2\\.vagrant\\precise64\\bingomics-galaxy\\vagrant\\export\\src\\galaxy" |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
482 galaxy("PrepareAnnotationGENCODE", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
483 galaxyConfig= |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
484 GalaxyConfig(galaxyHome, "mytool", "Test Section", |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
485 "testSectionId") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
486 ) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
487 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
488 str(addTwoNumbers) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
489 addTwoNumbers |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
490 packageName() |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
491 packageName(addTwoNumbers) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
492 packageName("addTwoNumbers") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
493 source('~/.active-rstudio-document') |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
494 source('~/.active-rstudio-document', echo=TRUE) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
495 source('~/.active-rstudio-document', echo=TRUE) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
496 str(addTwoNumbers) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
497 str(addTwoNumbers2) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
498 env(addTwoNumbers) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
499 environmentName |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
500 environmentName() |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
501 env.profile() |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
502 namespace:base |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
503 library(namespace) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
504 source('~/.active-rstudio-document', echo=TRUE) |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
505 source("https://bioconductor.org/biocLite.R") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
506 biocLite("customProDB") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
507 library("customProDB", lib.loc="C:/Users/chambem2/Google Drive/Marvin Documents/R/win-library/3.1") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
508 setwd("C:/Users/chambem2/.vagrant/precise64/bingomics-galaxy/vagrant/export/src/tools-galaxyp-chambm/tools/bumbershoot/psm_to_sam/tool-data") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
509 bamFile <- system.file("extdata/bams", "test1_sort.bam", package="customProDB") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
510 easyRun(bamFile=bamFile, annotation_path=".") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
511 easyRun(bamFile=bamFile, annotation_path=".") |
e1bb35f6ca28
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/psm_to_sam commit 141369f97aa2804d2bbfd9ed620ea2a5574994c2-dirty
galaxyp
parents:
diff
changeset
|
512 easyRun(bamFile=bamFile, annotation_path=".", outfile_path=".", outfile_name="test.fasta") |