File tree 3 files changed +14
-12
lines changed
3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -104,12 +104,17 @@ vector<Cluster> Caller::split_cluster(const Cluster &cluster) {
104
104
Cluster cluster_2 = cluster;
105
105
cluster_2.clear ();
106
106
for (const SubRead &sr : cluster.subreads ) {
107
- if (sr.htag == 0 )
107
+ if (config->useht ) {
108
+ if (sr.htag == 1 )
109
+ cluster_1.add_subread (sr);
110
+ else if (sr.htag == 2 )
111
+ cluster_2.add_subread (sr);
112
+ else
113
+ // 0 or no tag
114
+ cluster_0.add_subread (sr);
115
+ } else {
108
116
cluster_0.add_subread (sr);
109
- else if (sr.htag == 1 )
110
- cluster_1.add_subread (sr);
111
- else if (sr.htag == 2 )
112
- cluster_2.add_subread (sr);
117
+ }
113
118
}
114
119
cluster_0.cov1 = -1 ;
115
120
cluster_0.cov2 = -1 ;
@@ -118,13 +123,6 @@ vector<Cluster> Caller::split_cluster(const Cluster &cluster) {
118
123
cluster_2.cov0 = -1 ;
119
124
cluster_2.cov1 = -1 ;
120
125
121
- assert (cluster_0.size () <= cluster_0.cov0 &&
122
- cluster_1.size () <= cluster_1.cov1 &&
123
- cluster_2.size () <= cluster_2.cov2 );
124
-
125
- assert (cluster_1.size () != 0 || cluster_2.size () != 0 ||
126
- cluster_0.size () != 0 );
127
-
128
126
vector<Cluster> out_subclusters;
129
127
if (cluster_1.size () == 0 && cluster_2.size () == 0 ) {
130
128
// no alignment is tagged, use length
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ Configuration::Configuration()
44
44
(" min-cluster-weight" , " " , cxxopts::value<int >())
45
45
(" clipped" , " " , cxxopts::value<bool >()->default_value (" false" ))
46
46
(" noref" , " " , cxxopts::value<bool >()->default_value (" false" ))
47
+ (" noht" , " " , cxxopts::value<bool >()->default_value (" false" ))
47
48
(" noassemble" , " " , cxxopts::value<bool >()->default_value (" false" ))
48
49
(" noputative" , " " , cxxopts::value<bool >()->default_value (" false" ))
49
50
(" binary" , " " , cxxopts::value<bool >()->default_value (" false" ))
@@ -93,6 +94,7 @@ void Configuration::parse(int argc, char **argv) {
93
94
al_accuracy = results[" acc" ].as <float >();
94
95
binary = results[" binary" ].as <bool >();
95
96
clipped = results[" clipped" ].as <bool >();
97
+ useht = !results[" noht" ].as <bool >();
96
98
noref = results[" noref" ].as <bool >();
97
99
assemble = !(results[" noassemble" ].as <bool >());
98
100
putative = !(results[" noputative" ].as <bool >());
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ static const char CALL_USAGE_MESSAGE[] =
43
43
" --clusters <FILE> store clusters to this file (default: do not store)\n "
44
44
" --min-cluster-weight <INT> minimum number of supporting superstrings for a call to be reported (default: 2)\n "
45
45
" --min-sv-length <INT> minimum length of reported SVs (default: 25)\n "
46
+ " --noht do not use haplotagging information even if present\n "
46
47
" --noref do not report 0/0 calls\n "
47
48
" --min-mapq minimum mapping quality (default: 20)\n "
48
49
" --clipped calls SVs from clipped SFS (EXPERIMENTAL)\n "
@@ -86,6 +87,7 @@ class Configuration {
86
87
int min_indel_length = 20 ;
87
88
uint min_cluster_weight = 2 ;
88
89
float min_ratio = 0.97 ; // FIXME: change name
90
+ bool useht = true ;
89
91
bool noref = false ;
90
92
bool clipped = false ;
91
93
You can’t perform that action at this time.
0 commit comments