Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MPIBP-Hummer
BioEM
Commits
9cd5275d
Commit
9cd5275d
authored
Mar 17, 2015
by
Pilar Cossio
Browse files
Print map modifications
parent
987c9a7d
Changes
3
Hide whitespace changes
Inline
Side-by-side
bioem.cpp
View file @
9cd5275d
...
...
@@ -1013,6 +1013,13 @@ if(param.printrotmod) {
irad
=
int
(
Model
.
points
[
n
].
radius
/
param
.
pixelSize
);
rad2
=
Model
.
points
[
n
].
radius
*
Model
.
points
[
n
].
radius
;
if
(
i
<
0
||
j
<
0
||
i
>=
param
.
param_device
.
NumberPixels
||
j
>=
param
.
param_device
.
NumberPixels
)
{
if
(
DebugOutput
>=
0
)
cout
<<
"WARNING::: Model Point out of Projection map: "
<<
i
<<
", "
<<
j
<<
"
\n
"
;
continue
;
}
//Projecting over the radius
for
(
int
ii
=
i
-
irad
;
ii
<
i
+
irad
;
ii
++
)
{
...
...
@@ -1040,7 +1047,7 @@ if(param.printrotmod) {
if
(
i
<
0
||
j
<
0
||
i
>=
param
.
param_device
.
NumberPixels
||
j
>=
param
.
param_device
.
NumberPixels
)
{
if
(
DebugOutput
>=
3
)
cout
<<
"Model Point out of map: "
<<
i
<<
", "
<<
j
<<
"
\n
"
;
if
(
DebugOutput
>=
0
)
cout
<<
"
WARNING::::
Model Point out of
Projection
map: "
<<
i
<<
", "
<<
j
<<
"
\n
"
;
continue
;
}
...
...
include/param.h
View file @
9cd5275d
...
...
@@ -49,6 +49,7 @@ public:
bool
nocentermass
;
bool
printrotmod
;
bool
readquatlist
;
bool
showrotatemod
;
myfloat_t
elecwavel
;
...
...
param.cpp
View file @
9cd5275d
...
...
@@ -247,9 +247,10 @@ int bioem_param::readParameters(const char* fileinput,const char* fileangles)
else
if
(
strcmp
(
token
,
"WRITE_CROSSCOR"
)
==
0
)
//Key word if writing down full micrograph cross correlation
{
param_device
.
writeCC
=
true
;
param_device
.
CCdisplace
=
10
;
cout
<<
"Writing CrossCorrelations
\n
"
;
}
else
if
(
strcmp
(
token
,
"CROSSCOR_GRID_SPACE"
)
==
0
)
else
if
(
strcmp
(
token
,
"
#
CROSSCOR_GRID_SPACE"
)
==
0
)
{
token
=
strtok
(
NULL
,
" "
);
param_device
.
CCdisplace
=
int
(
atoi
(
token
));
...
...
@@ -370,6 +371,21 @@ int bioem_param::forprintBest(const char* fileinput)
ifstream
input
(
fileinput
);
withnoise
=
false
;
showrotatemod
=
false
;
param_device
.
flipped
=
false
;
param_device
.
debugterm
=
false
;
param_device
.
writeCC
=
false
;
param_device
.
CCwithBayes
=
true
;
writeCTF
=
false
;
elecwavel
=
220
;
ignoreCCoff
=
false
;
doquater
=
false
;
nocentermass
=
false
;
printrotmod
=
false
;
readquatlist
=
false
;
doaaradius
=
true
;
if
(
!
input
.
good
())
{
...
...
@@ -483,9 +499,13 @@ int bioem_param::forprintBest(const char* fileinput)
else
if
(
strcmp
(
token
,
"NO_PROJECT_RADIUS"
)
==
0
)
//If projecting CA with amino-acid radius
{
doaaradius
=
false
;
cout
<<
"
P
rojecting corresponding radius
\n
"
;
cout
<<
"
Not p
rojecting corresponding radius
\n
"
;
}
else
if
(
strcmp
(
token
,
"PRINT_ROTATED_MODELS"
)
==
0
)
//Number of Euler angle tripplets in non uniform Euler angle sampling
{
printrotmod
=
true
;
cout
<<
"PRINTING out rotatted models (best for debugging)
\n
"
;
}
}
...
...
@@ -498,6 +518,7 @@ int bioem_param::forprintBest(const char* fileinput)
gridCTF_phase
=
startGridCTF_phase
;
numberGridPointsEnvelop
=
1
;
gridEnvelop
=
startGridEnvelop
;
doquater
=
false
;
param_device
.
NumberFFTPixels1D
=
param_device
.
NumberPixels
/
2
+
1
;
FFTMapSize
=
param_device
.
NumberPixels
*
param_device
.
NumberFFTPixels1D
;
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment