Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
QTL
spell-qtl
Commits
6721d4d5
Commit
6721d4d5
authored
Feb 21, 2017
by
Damien Leroux
Browse files
Added some simulated data and a hidden output in spell-marker to double-check the results.
parent
4685f2c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bayes/cli.cc
View file @
6721d4d5
...
...
@@ -518,6 +518,17 @@ arguments = {
};
constraint_t
<
bn_settings_t
>
checks
[]
=
{
{
"No marker to work on."
,
"Specify at least one genotype data file"
,
CONSTRAINT_PREDICATE
(
bn_settings_t
)
{
return
s
->
marker_names
.
size
()
>
0
;
}
},
};
argument_parser
<
bn_settings_t
>
arg_map
(
arguments
);
...
...
@@ -540,6 +551,7 @@ bn_settings_t* bn_settings_t::from_args(int argc, const char** argv)
for
(
const
auto
&
kv
:
ret
->
observed_mark
)
{
ret
->
marker_observation_specs
[
kv
.
second
.
format_name
]
=
marker_obs_formats
::
get_format
(
ret
->
pedigree
,
kv
.
second
.
format_name
);
}
constraint_t
<
bn_settings_t
>::
check
(
ret
);
if
(
ret
->
output_mode
==
0
)
{
ret
->
output_mode
=
bn_settings_t
::
OutputPopData
;
}
...
...
src/bayes/main.cc
View file @
6721d4d5
...
...
@@ -33,7 +33,8 @@ int main(int argc, const char** argv)
msg_handler_t
::
debug_enabled
()
=
false
;
bn_settings_t
*
settings
=
NULL
;
try
{
settings
=
bn_settings_t
::
from_args
(
argc
,
argv
);
settings
=
bn_settings_t
::
from_args
(
argc
,
argv
);
msg_handler_t
::
check
(
true
);
}
catch
(
file
::
error
&
fe
)
{
MSG_ERROR
(
"An error happened while reading input files. "
<<
fe
.
what
(),
""
);
return
-
1
;
...
...
Write
Preview
Markdown
is supported
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