Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
khalid
radsex
Commits
8aac2719
Commit
8aac2719
authored
Apr 25, 2020
by
RomainFeron
Browse files
Cleaned up comment lines in output files for consistency
parent
3b1d81ea
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/distrib.cpp
View file @
8aac2719
...
...
@@ -55,6 +55,10 @@ void Distrib::generate_output() {
// Generate the output file
std
::
ofstream
output_file
=
open_output
(
this
->
parameters
.
output_file_path
);
output_file
<<
"#source:distrib;min_depth:"
<<
parameters
.
min_depth
<<
";signif_threshold:"
<<
parameters
.
signif_threshold
<<
";bonferroni:"
<<
std
::
boolalpha
<<
(
not
parameters
.
disable_correction
)
<<
";n_markers:"
<<
this
->
results
.
n_markers
<<
"
\n
"
;
output_file
<<
this
->
parameters
.
group1
<<
"
\t
"
<<
this
->
parameters
.
group2
<<
"
\t
"
<<
"Markers"
<<
"
\t
"
<<
"P"
<<
"
\t
"
<<
"CorrectedP"
<<
"
\t
"
<<
"Signif"
<<
"
\t
"
<<
"Bias"
<<
"
\n
"
;
...
...
src/freq.cpp
View file @
8aac2719
...
...
@@ -47,6 +47,7 @@ void Freq::process_marker(Marker& marker) {
void
Freq
::
generate_output
()
{
std
::
ofstream
output_file
=
open_output
(
parameters
.
output_file_path
);
output_file
<<
"#source:radsex-freq;min_depth:"
<<
parameters
.
min_depth
<<
"
\n
"
;
output_file
<<
"Frequency"
<<
"
\t
"
<<
"Count"
<<
"
\n
"
;
for
(
uint
i
=
1
;
i
<=
this
->
markers_table
.
header
.
n_individuals
;
++
i
)
output_file
<<
i
<<
"
\t
"
<<
this
->
results
[
i
]
<<
"
\n
"
;
// Iterate over the map
...
...
src/signif.cpp
View file @
8aac2719
...
...
@@ -49,7 +49,7 @@ void Signif::generate_output() {
if
(
not
this
->
parameters
.
output_fasta
)
{
output_file
<<
"#source:signif;min_depth:"
<<
parameters
.
min_depth
<<
";signif_threshold:"
<<
parameters
.
signif_threshold
<<
output_file
<<
"#source:
radsex-
signif;min_depth:"
<<
parameters
.
min_depth
<<
";signif_threshold:"
<<
parameters
.
signif_threshold
<<
";bonferroni:"
<<
std
::
boolalpha
<<
(
not
parameters
.
disable_correction
)
<<
"
\n
"
;
output_file
<<
print_list
(
this
->
markers_table
.
header
.
header
,
"
\t
"
)
<<
"
\n
"
;
...
...
src/subset.cpp
View file @
8aac2719
...
...
@@ -51,10 +51,10 @@ void Subset::generate_output() {
if
(
not
this
->
parameters
.
output_fasta
)
{
this
->
output_file
<<
"#source:subset;min_depth:"
<<
parameters
.
min_depth
<<
";filters:
[
"
<<
parameters
.
subset_min_group1
<<
","
<<
parameters
.
subset_max_group1
<<
","
<<
parameters
.
subset_min_group2
<<
","
<<
parameters
.
subset_max_group2
<<
","
<<
parameters
.
subset_min_individuals
<<
","
<<
parameters
.
subset_max_individuals
<<
this
->
output_file
<<
"#source:
radsex-
subset;min_depth:"
<<
parameters
.
min_depth
<<
";filters:"
<<
parameters
.
group1
<<
"=["
<<
parameters
.
subset_min_group1
<<
","
<<
parameters
.
subset_max_group1
<<
"
]
,"
<<
parameters
.
group2
<<
"=["
<<
parameters
.
subset_min_group2
<<
","
<<
parameters
.
subset_max_group2
<<
"
]
,"
<<
"individuals=["
<<
parameters
.
subset_min_individuals
<<
","
<<
parameters
.
subset_max_individuals
<<
"];signif_threshold:"
<<
parameters
.
signif_threshold
<<
";bonferroni:"
<<
std
::
boolalpha
<<
(
not
parameters
.
disable_correction
)
<<
"
\n
"
;
...
...
Write
Preview
Supports
Markdown
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