This repository has been archived by the owner on Nov 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathREADME
72 lines (43 loc) · 2 KB
/
README
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
Giraffe: tool for detecting popular features in DNA sequence, creating
maps of those features, and performing sequence analysis.
This software is written and copyrighted by Addgene, and released
under the MIT License. See LICENSE file.
The software is mostly divided into two parts: a Django based service that
detects features within a sequence, and a set of JavaScript widgets that
visualize the sequence, features, digests, etc.
You can use the two parts separately. I.e. you can just use the JavaScript
widget for visualizing and analyzing sequence and features. See HTML files in
the demo directory.
Requirement for Django service:
gcc - part of the feature detection algorithm is in C
python (2.7+)
django (1.2+)
BioPython (1.56) - ORF detection via BioPython
(You don't need NumPy for BioPython)
MySQL, and mysql-python module
Install Django service:
git clone [email protected]:addgene/giraffe.git
cd giraffe
cd src/django/giraffe/blat/frags; gcc -O6 -o bin/frags frags.c
mysql
> DROP DATABASE giraffe;
> CREATE DATABASE giraffe CHARACTER SET 'utf8'
cd src/django/giraffe; python manage.py syncdb --noinput
Run test server:
cd src/django/giraffe; python manage.py runserver
Then visit "/"
Click on "See an example" to see an example.
API:
You can POST a sequence to "/blat/", with the following CGI variables:
db=default&sequence=your_dna_sequence_here
Then you will be redirected to a URL that looks like
/blat/8de364690dbeb88d2ab63bd66861725539aa3204/default
The "8de3...3204" string is the hash identifier for your sequence. You can
use this hash identifier and this URL to retrieve features in the future
(JSON format).
Also, you can use the hash identifier with the JavaScript widgets. See demo
directory. You can download the HTML files from the demo directory to your
local computer, and load them in your browser. These files show how you can
incorporate Giraffe sequence map and analyzer widgets in your web app.
How to build your own features database:
To be added later.