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
fdc21600
Commit
fdc21600
authored
6 years ago
by
cmaffeo2
Browse files
Options
Downloads
Patches
Plain Diff
Added dnarbd binary to repository for command line invocation
parent
53b40620
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/dnarbd
+67
-0
67 additions, 0 deletions
bin/dnarbd
setup.py
+1
-0
1 addition, 0 deletions
setup.py
with
68 additions
and
0 deletions
bin/dnarbd
0 → 100644
+
67
−
0
View file @
fdc21600
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import
argparse
import
re
from
dnarbd.simulate
import
multiresolution_simulation
as
simulate
parser
=
argparse
.
ArgumentParser
(
prog
=
"
dnarbd
"
,
description
=
"""
Easy multiresolution simulations of DNA nanotechnology objects using ARBD
"""
)
parser
.
add_argument
(
'
-o
'
,
'
--output-prefix
'
,
type
=
str
,
default
=
None
,
help
=
"
Name for your job
'
s output
"
)
parser
.
add_argument
(
'
-d
'
,
'
--directory
'
,
type
=
str
,
default
=
None
,
help
=
'
Directory for simulation; does not need to exist yet
'
)
parser
.
add_argument
(
'
-g
'
,
'
--gpu
'
,
type
=
int
,
default
=
0
,
help
=
'
GPU for simulation; check nvidia-smi for availability
'
)
parser
.
add_argument
(
'
--coarse-steps
'
,
type
=
int
,
default
=
1e7
,
help
=
'
Simulation steps for coarse model (200 fs/step)
'
)
parser
.
add_argument
(
'
--fine-steps
'
,
type
=
int
,
default
=
1e7
,
help
=
'
Simulation steps for fine model (50 fs/step)
'
)
parser
.
add_argument
(
'
--backbone-scale
'
,
type
=
float
,
default
=
1.0
,
help
=
'
Factor to scale DNA backbone in atomic model; try 0.25 to avoid clashes for atomistic simulations
'
)
parser
.
add_argument
(
'
input_file
'
,
type
=
str
,
help
=
"""
Any of the following:
(1) a cadnano JSON file;
(2) a vHelix Maya (.ma) file;
(3) an atomic PDB file
"""
)
args
=
parser
.
parse_args
()
if
__name__
==
'
__main__
'
:
infile
=
args
.
input_file
try
:
re_result
=
re
.
match
(
"
(.*)\.([^.]+)
"
,
infile
)
prefix
=
re_result
.
group
(
1
)
extension
=
re_result
.
group
(
2
).
lower
()
except
:
raise
Exception
(
"
Unrecognized input file
'
{}
'"
.
format
(
infile
))
if
extension
==
'
json
'
:
from
dnarbd.readers
import
read_cadnano
as
read_model
elif
extension
==
'
ma
'
:
from
dnarbd.readers
import
read_vhelix
as
read_model
elif
extension
==
'
pdb
'
:
from
dnarbd.readers
import
read_atomic_pdb
as
read_model
else
:
raise
Exception
(
"
Unrecognized input file
'
{}
'"
.
format
(
infile
))
model
=
read_model
(
infile
)
run_args
=
dict
(
model
=
model
,
output_name
=
args
.
output_prefix
,
job_id
=
"
job-
"
+
args
.
output_prefix
,
directory
=
args
.
directory
,
gpu
=
args
.
gpu
,
coarse_steps
=
args
.
coarse_steps
,
fine_steps
=
args
.
fine_steps
,
backbone_scale
=
args
.
backbone_scale
)
if
args
.
output_prefix
==
None
:
run_args
[
'
output_name
'
]
=
prefix
simulate
(
**
run_args
)
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
0
View file @
fdc21600
...
...
@@ -19,6 +19,7 @@ setuptools.setup(
url
=
"
https://gitlab.engr.illinois.edu/tbgl/tools/dnarbd
"
,
packages
=
setuptools
.
find_packages
(),
include_package_data
=
True
,
scripts
=
[
'
bin/dnarbd
'
],
install_requires
=
(
'
numpy>=1.14
'
,
'
scipy>=1.1
'
,
...
...
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