You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (sample_names_in_use.size() > 1 && reference_samples.empty()) {
322
+
// We auto-detected multiple references. Warn the user that they probably don't want this.
323
+
#pragma omp critical (cerr)
324
+
{
325
+
std::cerr << "warning:[vg::get_sequence_dictionary] Using multiple target reference assemblies (";
326
+
for (auto it = sample_names_in_use.begin(); it != sample_names_in_use.end(); ++it) {
327
+
if (it != sample_names_in_use.begin()) {
328
+
std::cerr << ", ";
329
+
}
330
+
std::cerr << *it;
331
+
}
332
+
std::cerr << "). Most tools that read SAM/BAM/CRAM will not support this. Consider providing a reference path list or dictionary, or reference sample name." << std::endl;
333
+
}
334
+
}
335
+
336
+
if (sample_names_in_use.size() < reference_samples.size()) {
337
+
for (auto& name : reference_samples) {
338
+
if (!sample_names_in_use.count(name)) {
339
+
// TODO: We should learn to promote whole haplotype-sense samples on the fly. For now error out.
340
+
cerr << "error:[vg::get_sequence_dictionary] Requested reference assembly " << name << " is not a reference assembly in the graph." << endl;
341
+
exit(1);
342
+
}
343
+
}
344
+
}
308
345
309
346
if (input_names_lengths.empty()) {
310
347
// If none of those exist, try generic sense paths and their subpaths
348
+
#pragma omp critical (cerr)
311
349
cerr << "warning:[vg::get_sequence_dictionary] No reference-sense paths available in the graph; falling back to generic paths." << endl;
std::cerr << "Second shared anchor copy as " << local_id << " representing " << base_id << "; left is now " << local_left_anchor_id << " and right is " << local_right_anchor_id << std::endl;
3629
+
#endif
3624
3630
}
3625
-
} elseif (kv.second == id(left_anchor)) {
3631
+
} elseif (base_id == id(left_anchor)) {
3626
3632
if (local_left_anchor_id != 0) {
3627
3633
// We thought we already figured out the start node; there are
0 commit comments