Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CATM
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Rosen Lab 🔬
CATM
Commits
6859c838
Commit
6859c838
authored
4 months ago
by
Huabin Zhou
Browse files
Options
Downloads
Patches
Plain Diff
Add 'rlnTomoName' in the written starfile for the support of relion5
parent
99d9b416
Branches
master
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/clash_resolver.py
+2
-0
2 additions, 0 deletions
src/clash_resolver.py
src/config.py
+1
-1
1 addition, 1 deletion
src/config.py
with
3 additions
and
1 deletion
src/clash_resolver.py
+
2
−
0
View file @
6859c838
...
@@ -162,6 +162,7 @@ class ClashResolver:
...
@@ -162,6 +162,7 @@ class ClashResolver:
def
save_results
(
self
,
vol_array
):
def
save_results
(
self
,
vol_array
):
prefix
=
config
.
prefix
prefix
=
config
.
prefix
tomoID
=
config
.
tomoID
# save xml file
# save xml file
results_xml
=
save_xml_one_loop
(
results_xml
=
save_xml_one_loop
(
self
.
ccc_save
,
self
.
rot_save
,
self
.
coord_save
,
self
.
model_save
self
.
ccc_save
,
self
.
rot_save
,
self
.
coord_save
,
self
.
model_save
...
@@ -181,6 +182,7 @@ class ClashResolver:
...
@@ -181,6 +182,7 @@ class ClashResolver:
df
.
to_csv
(
self
.
output_path
+
prefix
+
"
.csv
"
,
index
=
False
)
df
.
to_csv
(
self
.
output_path
+
prefix
+
"
.csv
"
,
index
=
False
)
# save star file
# save star file
star
=
coord_to_relion
(
self
.
coord_save
,
self
.
rot_save
,
self
.
ccc_save
)
star
=
coord_to_relion
(
self
.
coord_save
,
self
.
rot_save
,
self
.
ccc_save
)
star
[
'
rlnTomoName
'
]
=
tomoID
starfile
.
write
(
star
,
self
.
output_path
+
prefix
+
"
.star
"
,
overwrite
=
True
)
starfile
.
write
(
star
,
self
.
output_path
+
prefix
+
"
.star
"
,
overwrite
=
True
)
# plot the annotation over the tomogram
# plot the annotation over the tomogram
df2
=
coord_to_relion
(
self
.
coord_save
,
self
.
rot_save
)
df2
=
coord_to_relion
(
self
.
coord_save
,
self
.
rot_save
)
...
...
This diff is collapsed.
Click to expand it.
src/config.py
+
1
−
1
View file @
6859c838
...
@@ -19,7 +19,7 @@ tomoID = split_path[-2]
...
@@ -19,7 +19,7 @@ tomoID = split_path[-2]
prefix
=
tomoID
+
"
.test1
"
prefix
=
tomoID
+
"
.test1
"
input_folder
=
"
inputs/
"
input_folder
=
"
inputs/
"
tomogram
=
input_folder
+
tomoID
+
"
.test1.lps25.mrc
"
tomogram
=
input_folder
+
tomoID
+
"
.test1.lps25.mrc
"
black_on_white
=
1
# The con
s
trast of tomogram, 0 if the particle has white contrast (positive values)
black_on_white
=
1
# The contrast of tomogram, 0 if the particle has white contrast (positive values)
templates
=
[
input_folder
+
"
mono-8Apx-lps30-box30-rot12-core.mrc
"
]
templates
=
[
input_folder
+
"
mono-8Apx-lps30-box30-rot12-core.mrc
"
]
contour_level
=
[
0.2
]
contour_level
=
[
0.2
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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