Skip to content

Commit cf990e3

Browse files
committed
init
0 parents  commit cf990e3

12 files changed

+111
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Visualize Gene Fusion (VGFusion)
2+
Python package providing that can visualize different annotations of a gene fusion.

__init__.py

Whitespace-only changes.

bin/build_database.py

Whitespace-only changes.

bin/vgfusion.py

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
import argparse
2+
3+
from vgfusion import *
4+
5+
parser = argparse.ArgumentParser(description='Visualize Gene Fusion (VGFusion)')
6+
parser.add_argument(
7+
'--gene5prime',
8+
type=str,
9+
required=True,
10+
help='5\' gene partner'
11+
)
12+
parser.add_argument(
13+
'--gene3prime',
14+
type=str,
15+
required=True,
16+
help='3\' gene partner'
17+
)
18+
parser.add_argument(
19+
'--5primeLocation',
20+
type=str,
21+
required=True,
22+
help='Genomic location of predicted fuins for the 5\' gene partner'
23+
)
24+
parser.add_argument(
25+
'--3primeLocation',
26+
type=str,
27+
required=True,
28+
help='Genomic location of predicted fuins for the 3\' gene partner'
29+
)
30+
parser.add_argument(
31+
'--ref',
32+
type=str,
33+
required=True,
34+
help='Reference genome (GRCh38, GRCh37, or GRCm38)'
35+
)
36+
parser.add_argument(
37+
'--database',
38+
type=str,
39+
required=False,
40+
default=None,
41+
help='Path to database. If not specified VGFusion will make RESTful API calls to Ensembl instead'
42+
)
43+
parser.add_argument(
44+
'--type',
45+
type=str,
46+
required=False,
47+
default='png',
48+
help='Image file type (png, jpeg, pdf). Default: png'
49+
)
50+
parser.add_argument(
51+
'--scale',
52+
type=int,
53+
required=False,
54+
default=-1,
55+
help='Length in amino acids to scale the gene fusion image (default: max length of fusion product)'
56+
)
57+
parser.add_argument(
58+
'--WT',
59+
action='store_true',
60+
required=False,
61+
help='Include this to plot wild-type architechtures of the 5\' and 3\' genes'
62+
)
63+
64+
args = parser.parse_args()
65+
66+
main(args=args)

setup.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import os
2+
from setuptools import setup, find_packages
3+
4+
README = open('README.md').read()
5+
6+
setup(
7+
version = 0.1,
8+
name='vgfusion',
9+
packages = find_packages(),
10+
description = "Python package providing that can visualize different annotations of a gene fusion.",
11+
author='Charles Murphy',
12+
license='Non-commercial',
13+
long_description=README
14+
)

vgfusion/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from vgfusion import *

vgfusion/database.py

Whitespace-only changes.

vgfusion/gene.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
class Gene:
3+
"""
4+
Stores the necessary information to specify the architecture of either
5+
wild-type genes or fusion gene.
6+
"""
7+
8+
def __init__(self):
9+
self.gene_5prime=''
10+
self.gene_5prime_junction=0
11+
12+
self.gene_3prime=''
13+
self.gene_3prime_junction=0

vgfusion/plot.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""
2+
Functions to plot the gene fusions
3+
"""
4+
5+
from PIL import *

vgfusion/rest.py

Whitespace-only changes.

vgfusion/utils.py

Whitespace-only changes.

vgfusion/vgfusion.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import sys
2+
import requests
3+
4+
def main(args):
5+
6+
7+
if args.database is not None:
8+
import tinydb
9+
10+

0 commit comments

Comments
 (0)