Mercurial > repos > nilesh > rseqc
annotate test-data/output.junctionSaturation_plot.r @ 10:c63fbdcc0dbe draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rseqc commit 57f71aa633a43ab02bbf05acd0c6d7f406e01f1e"
| author | iuc |
|---|---|
| date | Thu, 28 Nov 2019 20:46:57 +0000 |
| parents | 71ed55a3515a |
| children |
| rev | line source |
|---|---|
|
3
71ed55a3515a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rseqc commit 37fb1988971807c6a072e1afd98eeea02329ee83
iuc
parents:
diff
changeset
|
1 pdf('output.junctionSaturation_plot.pdf') |
|
71ed55a3515a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rseqc commit 37fb1988971807c6a072e1afd98eeea02329ee83
iuc
parents:
diff
changeset
|
2 x=c(5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100) |
|
71ed55a3515a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rseqc commit 37fb1988971807c6a072e1afd98eeea02329ee83
iuc
parents:
diff
changeset
|
3 y=c(0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1) |
|
71ed55a3515a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rseqc commit 37fb1988971807c6a072e1afd98eeea02329ee83
iuc
parents:
diff
changeset
|
4 z=c(0,0,0,0,0,0,1,1,1,1,1,1,1,2,2,2,2,2,2,3) |
|
71ed55a3515a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rseqc commit 37fb1988971807c6a072e1afd98eeea02329ee83
iuc
parents:
diff
changeset
|
5 w=c(0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,2) |
|
71ed55a3515a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rseqc commit 37fb1988971807c6a072e1afd98eeea02329ee83
iuc
parents:
diff
changeset
|
6 m=max(0,0,0) |
|
71ed55a3515a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rseqc commit 37fb1988971807c6a072e1afd98eeea02329ee83
iuc
parents:
diff
changeset
|
7 n=min(0,0,0) |
|
71ed55a3515a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rseqc commit 37fb1988971807c6a072e1afd98eeea02329ee83
iuc
parents:
diff
changeset
|
8 plot(x,z/1000,xlab='percent of total reads',ylab='Number of splicing junctions (x1000)',type='o',col='blue',ylim=c(n,m)) |
|
71ed55a3515a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rseqc commit 37fb1988971807c6a072e1afd98eeea02329ee83
iuc
parents:
diff
changeset
|
9 points(x,y/1000,type='o',col='red') |
|
71ed55a3515a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rseqc commit 37fb1988971807c6a072e1afd98eeea02329ee83
iuc
parents:
diff
changeset
|
10 points(x,w/1000,type='o',col='green') |
|
71ed55a3515a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rseqc commit 37fb1988971807c6a072e1afd98eeea02329ee83
iuc
parents:
diff
changeset
|
11 legend(5,0, legend=c("All junctions","known junctions", "novel junctions"),col=c("blue","red","green"),lwd=1,pch=1) |
|
71ed55a3515a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rseqc commit 37fb1988971807c6a072e1afd98eeea02329ee83
iuc
parents:
diff
changeset
|
12 dev.off() |
