Skip to content

Latest commit

 

History

History
105 lines (91 loc) · 2.28 KB

README.md

File metadata and controls

105 lines (91 loc) · 2.28 KB

LineAndArrow

HomePAGE

Input Format

geneName    complement(3668847..3668981)	#FF0000
geneName    3668847..3668981	#00FF00

Note that we pre-define some Color. We can use the word listed follow to access.

  1. red
  2. blue
  3. green
  4. black
  5. white
  6. purple
  7. brown
  8. skyblue
  9. pink
geneName    complement(3668847..3668981)	purple
geneName    3668847..3668981	pink

Usage

Docker Images

docker build -t georgezhao/landa:1.0 .
docker run -d -p 1080:1080 georgezhao/landa:1.0

Build the Project

mkdir build
cd build
cmake -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 ..
make -j

LineAndArrow

usage: LineAndArrow --input=string --output=string [options] ...
options:
  -i, --input       Path to Input File (string)
  -o, --output      Name of Output. (string)
  -s, --stdout      Print SVG in STDOUT.
      --datapath    Work Path (string [=./])
      --tmppath     Tmp Path (string [=./])
  -?, --help        print this message
# Output to ./o_file.svg
./LineAndArrow --input input_file.data --output o_file

Server

Lazy Mode

usage: server.py [-h] [-e E] [--port PORT]

optional arguments:
  -h, --help   show this help message and exit
  -e E         Path to LineAndArrow.
  --port PORT  Port(Default: 8080)
python3.8 -W ignore -u server.py --port 8080 -e ./LineAndArrow.exe

And Then visit: http://YourAddr:YourPort/LineAndArrow?D=1&Data=YourBase64CodeData

Wsgi Mode

Add File named lineandarrow.wsgi:

import sys
import os
sys.path.insert(0, 'Path_to_the_folder_of_server/src')
os.chdir('/home/georgezhao/Source/Project/LineAndArrow')
from server import path_to_exe

path_to_exe = '/Path_to_LineAndArrow/LineAndArrow.exe'
from server import app as application

Add Config to Your site_config. (e.g. /etc/apache2/sites-enabled/*.conf)

WSGIScriptAlias / /Path_to_the_folder_of_wsgi_file/lineandarrow.wsgi

<Directory /Path_to_the_folder_of_wsgi_file>
    AllowOverride None
    Require all granted
</Directory>
<Directory /Path_to_the_folder_of_server>
    AllowOverride None
    Require all granted
</Directory>

Restart Your Apache2 server

sudo service apache2 restart

And Then visit: http://YourAddr:YourPort/LineAndArrow?D=1&Data=YourBase64CodeData