|
@@ -94,6 +94,9 @@
|
|
|
<button style="padding: 3px;" onclick="motifs2()">Motifs 2</button>
|
|
|
|
|
|
|
|
|
+ <button style="padding: 3px;" onclick="motifsAlphaFold()">Motifs AF</button>
|
|
|
+
|
|
|
+
|
|
|
<button style="padding: 3px" onclick="propset()">Propset</button>
|
|
|
</div>
|
|
|
<script>
|
|
@@ -499,6 +502,25 @@
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ function motifsAlphaFold() {
|
|
|
+ viewer.clear()
|
|
|
+ .then(function() {
|
|
|
+ const url = 'https://alphafold.ebi.ac.uk/files/AF-F1Q6S1-F1-model_v1.cif';
|
|
|
+ const label = 'AF-F1Q6S1-F1';
|
|
|
+ const targets = [
|
|
|
+ { label_asym_id: "A", struct_oper_id: '1', label_seq_id: 260 },
|
|
|
+ { label_asym_id: "A", struct_oper_id: '1', label_seq_id: 265 },
|
|
|
+ { label_asym_id: "A", struct_oper_id: '1', label_seq_id: 283 },
|
|
|
+ { label_asym_id: "A", struct_oper_id: '1', label_seq_id: 342 },
|
|
|
+ { label_asym_id: "A", struct_oper_id: '1', label_seq_id: 344 }];
|
|
|
+ const mat = [-0.471, 0.856, 0.215, 0, 0.405, -0.007, 0.914, 0, 0.784, 0.518, -0.343, 0, 54.981, 65.575, 12.287, 1];
|
|
|
+ return viewer.loadStructureFromUrl(url, 'mmcif', false, { assemblyId: '1', kind: 'motif', label, targets, unsafe: true }, mat);
|
|
|
+ })
|
|
|
+ .then(function() {
|
|
|
+ viewer.resetCamera(0)
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
function propset() {
|
|
|
viewer.clear()
|
|
|
.then(function () {
|