forked from theislab/single-cell-transformer-papers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
transformer-evaluation.html
152 lines (131 loc) · 4.13 KB
/
transformer-evaluation.html
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html>
<head>
<title>Transformer Evaluation</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
line-height: 1.5;
margin: 0;
padding: 20px;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.filter-btn {
padding: 8px 16px;
background: #f6f8fa;
border: 1px solid #d1d5da;
border-radius: 6px;
cursor: pointer;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
th, td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #dfe2e5;
}
th {
background: #f6f8fa;
font-weight: 600;
}
tr:hover {
background: #f6f8fa;
}
.paper-link {
color: #0366d6;
text-decoration: none;
}
.code-link {
color: #0366d6;
text-decoration: none;
}
.peer-reviewed::before {
content: "📄";
margin-right: 5px;
}
.preprint::before {
content: "📝";
margin-right: 5px;
}
.reproducible::before {
content: "🛠️";
margin-right: 5px;
}
.evaluation-only::before {
content: "🔍";
margin-right: 5px;
}
</style>
</head>
<body>
<div class="header">
<h1>Transformer Evaluation</h1>
<button class="filter-btn">Filter</button>
</div>
<table id="evaluation-table">
<thead>
<tr>
<th>Paper</th>
<th>Code</th>
<th>Omic Modalities</th>
<th>Evaluated Transformers</th>
<th>Tasks</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
<!-- Data will be inserted here -->
</tbody>
</table>
<script>
async function loadData() {
try {
const response = await fetch('_data/transformer-evaluation.yml');
const yamlText = await response.text();
const data = jsyaml.load(yamlText);
const tbody = document.querySelector('#evaluation-table tbody');
data.forEach(entry => {
const row = document.createElement('tr');
// Paper column
const paperCell = `
<td>
<a href="${entry.paper.url}" class="paper-link ${entry.paper.type}">
${entry.paper.text}
</a>
</td>
`;
// Code column
const codeCell = `
<td>
<a href="${entry.code.url}" class="code-link ${entry.code.type}">
${entry.code.text}
</a>
</td>
`;
row.innerHTML = `
${paperCell}
${codeCell}
<td>${entry.omic_modalities}</td>
<td>${entry.evaluated_transformers}</td>
<td>${entry.tasks}</td>
<td>${entry.notes || ''}</td>
`;
tbody.appendChild(row);
});
} catch (error) {
console.error('Error loading data:', error);
}
}
document.addEventListener('DOMContentLoaded', loadData);
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-yaml/4.1.0/js-yaml.min.js"></script>
</body>
</html>