Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mrdna
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tbgl
tools
mrdna
Commits
d1e71f5f
Commit
d1e71f5f
authored
5 years ago
by
cmaffeo2
Browse files
Options
Downloads
Patches
Plain Diff
Made readers/__init__.py import readers only when used
parent
fa7887ae
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mrdna/readers/__init__.py
+8
-13
8 additions, 13 deletions
mrdna/readers/__init__.py
with
8 additions
and
13 deletions
mrdna/readers/__init__.py
+
8
−
13
View file @
d1e71f5f
from
..segmentmodel
import
SegmentModel
"""
cadnano
"""
from
.cadnano_segments
import
read_json_file
from
.cadnano_segments
import
read_model
as
model_from_cadnano_json
"""
vHelix
"""
from
.polygon_mesh
import
parse_maya_file
,
convert_maya_to_segments
from
..model.dna_sequence
import
m13
as
m13seq
"""
Atomic PDB
"""
from
.segmentmodel_from_pdb
import
SegmentModelFromPdb
## TODO: make module this package conform to a single style for input/output
def
read_cadnano
(
json_file
,
**
model_parameters
):
from
.cadnano_segments
import
read_json_file
from
.cadnano_segments
import
read_model
as
model_from_cadnano_json
data
=
read_json_file
(
json_file
)
return
model_from_cadnano_json
(
data
,
**
model_parameters
)
def
read_vhelix
(
maya_file
,
**
model_parameters
):
from
.polygon_mesh
import
parse_maya_file
,
convert_maya_to_segments
from
..model.dna_sequence
import
m13
as
m13seq
from
..segmentmodel
import
SegmentModel
data
=
parse_maya_file
(
maya_file
)
segments
,
dsSegmentDict
=
convert_maya_to_segments
(
data
)
if
'
dimensions
'
not
in
model_parameters
:
...
...
@@ -42,4 +36,5 @@ def read_list(infile,**model_parameters):
def
read_atomic_pdb
(
pdb_file
,
**
model_parameters
):
from
.segmentmodel_from_pdb
import
SegmentModelFromPdb
return
SegmentModelFromPdb
(
pdb_file
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment