File: SequenceAbundances-to-html.xsl

package info (click to toggle)
ray 2.3.1-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,008 kB
  • sloc: cpp: 49,973; sh: 339; makefile: 281; python: 168
file content (108 lines) | stat: -rw-r--r-- 1,858 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
  <html>
<head>

<style>

body{
font-family: Arial;
}

.taxon{
border-style:solid; 
background: #FFFF33;

margin-top:50px;
margin-bottom:50px;
margin-right:50px;
margin-left:50px;

padding-top:30px;
padding-bottom:30px;
padding-right:30px;
padding-left:30px;
}

.name{
font-size: 24px;
}

.observations{

padding-top:10px;
padding-bottom:10px;
padding-right:10px;
padding-left:10px;
}

.proportion{
color: white;
background: black;
border-color: white;
font-size: 48px;

border-style:solid; 

padding-top:5px;
padding-bottom:5px;
padding-right:5px;
padding-left:5px;
}

</style>

<title>
Sample: <xsl:value-of select="root/sample"/>
</title>



</head>
  <body>
    <h1>Sample: <xsl:value-of select="root/sample"/></h1>
    <h2>Demultiplexed biological abundances from BiologicalAbundances/<xsl:value-of select="root/searchDirectory"/>/BiologicalAbundances.xml</h2>
	<h2>Produced by Ray technologies</h2>
<div>
Total assembled k-mer observations:
   <xsl:value-of select="root/totalAssembledKmerObservations"/>
</div>

      <xsl:for-each select="root/entry">


<xsl:if test="demultiplexedKmerObservations/text() != '0'">

<div class="taxon">
          <div>
		<span class="name">
<xsl:value-of select="file"/><br />
<xsl:value-of select="name"/>

</span>

		<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>

          	<span class="proportion"><xsl:value-of select="100* proportion"/>%</span>
	</div>

<div class="observations">
Demultiplexed k-mer observations:
          <xsl:value-of select="demultiplexedKmerObservations"/> / <xsl:value-of select="/root/totalAssembledKmerObservations"/>
</div>

</div>

</xsl:if>

      </xsl:for-each>

  </body>
  </html>
</xsl:template>

</xsl:stylesheet>