Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102805638
getAnnotations.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Feb 24, 08:55
Size
514 B
Mime Type
text/x-php
Expires
Wed, Feb 26, 08:55 (2 d)
Engine
blob
Format
Raw Data
Handle
24429575
Attached To
R4897 i2b2-webclient
getAnnotations.php
View Options
<?php
//echo "Connecting ... <br>";
$conn
=
pg_connect
(
"host=localhost port=5432 dbname=i2b2 user=postgres password=admin"
);
if
(!
$conn
)
{
echo
"Error while connecting to the postgres database"
;
exit
;
}
// just get the first row (which already contain all the annotations' name)
$result
=
pg_query
(
$conn
,
"SELECT variant_annotations FROM shrine_ont.genomic_annotations LIMIT 1"
);
if
(!
$result
)
{
echo
"An error occurred.
\n
"
;
exit
;
}
while
(
$row
=
pg_fetch_row
(
$result
))
{
echo
"$row[0]"
;
}
Event Timeline
Log In to Comment