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
d19ba5b9
Commit
d19ba5b9
authored
Apr 03, 2018
by
Romain Feron
Browse files
Formatting
parent
c889dcb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/radsex.h
View file @
d19ba5b9
...
...
@@ -24,29 +24,65 @@ class RadSex {
Parameters
parameters
;
// Define all analyses
std
::
map
<
std
::
string
,
Analysis
>
analyses
{
{
"sex_distribution"
,
Analysis
(
"sex_distribution"
,
"Compute a matrix of sequences distribution between sexes"
,
std
::
vector
<
std
::
string
>
{
"input_file_path"
,
"output_file_path"
,
"popmap_file_path"
,
"min_cov"
},
sex_distribution
)},
{
"process_reads"
,
Analysis
(
"process_reads"
,
"Compute a matrix of coverage from a set of demultiplexed reads files"
,
std
::
vector
<
std
::
string
>
{
"input_dir_path"
,
"output_file_path"
,
"n_threads"
,
"min_cov"
},
process_reads
)},
{
"subset"
,
Analysis
(
"subset"
,
"Extract a subset of the coverage matrix"
,
std
::
vector
<
std
::
string
>
{
"input_file_path"
,
"output_file_path"
,
"popmap_file_path"
,
"min_cov"
,
"min_males"
,
"min_females"
,
"max_males"
,
"max_females"
,
"min_individuals"
,
"max_individuals"
},
subset
)},
{
"frequencies"
,
Analysis
(
"frequencies"
,
"Calculate the frequency of markers in the population"
,
std
::
vector
<
std
::
string
>
{
"input_file_path"
,
"output_file_path"
,
"min_cov"
},
frequencies
)},
std
::
map
<
std
::
string
,
Analysis
>
analyses
{
{
"sex_distribution"
,
Analysis
(
"sex_distribution"
,
"Compute a matrix of sequences distribution between sexes"
,
std
::
vector
<
std
::
string
>
{
"input_file_path"
,
"output_file_path"
,
"popmap_file_path"
,
"min_cov"
,
"output_matrix"
},
sex_distribution
)},
{
"process_reads"
,
Analysis
(
"process_reads"
,
"Compute a matrix of coverage from a set of demultiplexed reads files"
,
std
::
vector
<
std
::
string
>
{
"input_dir_path"
,
"output_file_path"
,
"n_threads"
,
"min_cov"
},
process_reads
)},
{
"subset"
,
Analysis
(
"subset"
,
"Extract a subset of the coverage matrix"
,
std
::
vector
<
std
::
string
>
{
"input_file_path"
,
"output_file_path"
,
"popmap_file_path"
,
"min_cov"
,
"min_males"
,
"min_females"
,
"max_males"
,
"max_females"
,
"min_individuals"
,
"max_individuals"
},
subset
)},
{
"frequencies"
,
Analysis
(
"frequencies"
,
"Calculate the frequency of markers in the population"
,
std
::
vector
<
std
::
string
>
{
"input_file_path"
,
"output_file_path"
,
"min_cov"
},
frequencies
)},
{
"group_loci"
,
Analysis
(
"group_loci"
,
"Recreate polymorphic loci from a subset of coverage matrix"
,
std
::
vector
<
std
::
string
>
{
"input_file_path"
,
"coverage_matrix_path"
,
"output_file_path"
,
"max_distance"
,
"n_threads"
,
"min_cov"
},
group_loci
)},
{
"significant_sequences"
,
Analysis
(
"significant_sequences"
,
"Extract sequences significantly associated with sex from the coverage matrix."
,
std
::
vector
<
std
::
string
>
{
"input_file_path"
,
"output_file_path"
,
"popmap_file_path"
,
"min_cov"
},
significant_sequences
)},
// {"demultiplexing", Analysis("demultiplexing", "Demultiplexes a set of reads files",
// std::vector<std::string> {"input_file_path", "output_dir_path", "barcodes_file_path", "min_cov"},
// demultiplexing)},
{
"group_loci"
,
Analysis
(
"group_loci"
,
"Recreate polymorphic loci from a subset of coverage matrix"
,
std
::
vector
<
std
::
string
>
{
"input_file_path"
,
"coverage_matrix_path"
,
"output_file_path"
,
"max_distance"
,
"n_threads"
,
"min_cov"
},
group_loci
)},
{
"significant_sequences"
,
Analysis
(
"significant_sequences"
,
"Extract sequences significantly associated with sex from the coverage matrix."
,
std
::
vector
<
std
::
string
>
{
"input_file_path"
,
"output_file_path"
,
"popmap_file_path"
,
"min_cov"
},
significant_sequences
)},
};
// In the constructor, the type of analysis is detected and all analysis objects are initialized
...
...
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