-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenomepage.php
133 lines (93 loc) · 3.27 KB
/
genomepage.php
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
<!DOCTYPE html>
<html>
<head>
<title>Result Page for Genome</title>
<script type="text/javascript" src="https://www.ncbi.nlm.nih.gov/projects/sviewer/js/sviewer.js" id ="autoload"></script><!--si je mets id ="autoload" y'a aucun effet apparent-->
</head>
<style>
body {
background-color: lavender ;
}
h2{
text-align: center;
}
.topnav a:hover {
background-color: #ddd;
color: black;
}
/* Onglet actif*/
.topnav a.active {
background-color: slateblue;
text-decoration: underline;
color: white;
}
button:hover {
opacity: 0.8;
}
.LogOut{
float: right
}
.topnav {
background-color: darkslateblue;
overflow: hidden;
}
.topnav a {
float: left;
color: #f2f2f2; /*couleur texte du menu*/
text-align: center;
padding: 14px 16px;
text-decoration: none; /*pas de surlignement*/
font-size: 17px;
}
.Download-Button {
background-color: cornflowerblue;
color: white;
}
</style>
<body>
<div class="topnav">
<a href="#Home">Home</a>
<a href="Add_genome.html"> Add genome</a>
<a class="active" href="User gestion"> User database</a> <!--Page active-->
<a href="#Annotation"> Annotation database</a>
<a href="#Annotation"> Annotation to affect</a>
<button type="button" class="LogOut"> <span class="glyphicon glyphicon-log-out"></span> Log out</button>
</div>
<div class ="genome information">
<h2 class = "heading">Genome Information</h2>
<p class="titre"><b>Genome ID</b></p>
<p class="p1">
Organism name: XXXXXX<br><br>
Strain : XXXXXXX<br><br>
Link to NCBI : XXXXX<br><br>
Type of DNA: XXXXXXX<br><br>
Sequence Length : XXXXXX <br><br>
</p>
<svg alt="download" class="dlbtn-icon" x="0px" y="0px" width="15px" height="15px" viewBox="0 0 60 60" enable-background="new 0 0 60 60" xml:space="preserve">
<g>
<polygon points="48.75,36.25 48.75,48.75 11.25,48.75 11.25,36.25 5,36.25 5,55 55,55 55,36.25 "></polygon>
<polygon points="42.5,23.75 36.25,23.75 36.25,5 23.75,5 23.75,23.75 17.5,23.75 30,42.5 "></polygon>
</g>
</svg>
<button class = "Download-Button" type = "submit">Download Fasta Sequence</button><br>
<p class = "Visu"><b>Visualisation via Sequence Viewer (NCBI)</b></p><br><br>
</div>
<div id="sv1" class="SeqViewerApp">
<?php
require('simple_html_dom.php');
$link = "embedded=true&id=";
$html =file_get_html("https://www.ncbi.nlm.nih.gov/assembly/?term=ASM744v1");
foreach($html->find(".refseq") as $element) {
$id=strip_tags($element);
}
#$id= "AE014075.1";
?>
<a href="<?php echo $link.$id?>"></a> <!--si je met AE014075.1 (genbank) ça marche -->
</div>
<script>
SeqViewOnReady(function() {
var app = SeqView.App.findAppByDivId('sv1');
});
</script>
</body>
</html>