Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Klinische Genetica
prinia
Commits
ea30d85e
Commit
ea30d85e
authored
Aug 07, 2017
by
Sander Bollen
Browse files
cleanup imports
parent
7b59581d
Changes
2
Hide whitespace changes
Inline
Side-by-side
prinia/design.py
View file @
ea30d85e
...
@@ -3,23 +3,15 @@ from builtins import (ascii, bytes, chr, dict, filter, hex, input,
...
@@ -3,23 +3,15 @@ from builtins import (ascii, bytes, chr, dict, filter, hex, input,
str
,
super
,
zip
)
str
,
super
,
zip
)
__author__
=
'ahbbollen'
__author__
=
'ahbbollen'
from
tempfile
import
TemporaryFile
,
NamedTemporaryFile
from
tempfile
import
NamedTemporaryFile
from
subprocess
import
check_call
from
subprocess
import
check_call
import
os
import
os
import
re
import
warnings
import
warnings
from
time
import
sleep
from
Bio
import
SeqIO
from
Bio.Seq
import
Seq
from
Bio.SeqRecord
import
SeqRecord
from
Bio.Alphabet
import
generic_dna
from
fastools.fastools
import
get_reference
from
pyfaidx
import
Fasta
from
pyfaidx
import
Fasta
from
pysam
import
AlignmentFile
from
pysam
import
AlignmentFile
from
.models
import
Primer
,
Region
,
BlatLine
from
.models
import
Primer
,
Region
from
.utils
import
NoPrimersException
,
calc_gc
,
NEW_VCF
,
generate_fastq_from_primers
from
.utils
import
NoPrimersException
,
calc_gc
,
NEW_VCF
,
generate_fastq_from_primers
PRIMER3_SCRIPT
=
os
.
path
.
join
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
)
,
"static"
),
'getprimers.sh'
)
PRIMER3_SCRIPT
=
os
.
path
.
join
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
)
,
"static"
),
'getprimers.sh'
)
...
@@ -416,4 +408,3 @@ def create_left_prim(primer, reference):
...
@@ -416,4 +408,3 @@ def create_left_prim(primer, reference):
next_left
.
position
=
primer_r_pos
next_left
.
position
=
primer_r_pos
return
next_left
return
next_left
prinia/models.py
View file @
ea30d85e
...
@@ -4,35 +4,8 @@ from builtins import (ascii, bytes, chr, dict, filter, hex, input,
...
@@ -4,35 +4,8 @@ from builtins import (ascii, bytes, chr, dict, filter, hex, input,
__author__
=
'ahbbollen'
__author__
=
'ahbbollen'
from
collections
import
namedtuple
from
datetime
import
datetime
from
datetime
import
datetime
BLAT_FIELDS
=
[
"match"
,
"mismatch"
,
"repmatch"
,
"N"
,
"Q_gap_count"
,
"Q_gap_bases"
,
"T_gap_count"
,
"T_gap_bases"
,
"strand"
,
"Q_name"
,
"Q_size"
,
"Q_start"
,
"Q_end"
,
"T_name"
,
"T_size"
,
"T_start"
,
"T_end"
,
"block_count"
,
"block_sizes"
,
"q_starts"
,
"t_starts"
]
BlatLine
=
namedtuple
(
"BlatLine"
,
BLAT_FIELDS
)
class
Variant
(
object
):
class
Variant
(
object
):
"""
"""
...
@@ -245,7 +218,3 @@ class Region(object):
...
@@ -245,7 +218,3 @@ class Region(object):
other
=
region
.
other_information
)
other
=
region
.
other_information
)
return
cut
,
remainder
return
cut
,
remainder
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment