Codebase list mash / 048eba4
triangle: -E output order change Brian Ondov 4 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
3434 useOption("help");
3535 addOption("list", Option(Option::Boolean, "l", "Input", "List input. Lines in each <query> specify paths to sequence files, one per line. The reference file is not affected.", ""));
3636 addOption("comment", Option(Option::Boolean, "C", "Output", "Use comment fields for sequence names instead of IDs.", ""));
37 addOption("edge", Option(Option::Boolean, "E", "Output", "Output edge list with fields [seq1, seq2, dist, p-val, shared-hashes].", ""));
37 addOption("edge", Option(Option::Boolean, "E", "Output", "Output edge list instead of Phylip matrix, with fields [seq1, seq2, dist, p-val, shared-hashes].", ""));
3838 //addOption("log", Option(Option::Boolean, "L", "Output", "Log scale distances and divide by k-mer size to provide a better analog to phylogenetic distance. The special case of zero shared min-hashes will result in a distance of 1.", ""));
3939 useSketchOptions();
4040 }
163163 if ( edge )
164164 {
165165 const Sketch::Reference & qry = sketch.getReference(i);
166 cout << (comment ? qry.comment : qry.name) << '\t'<< (comment ? ref.comment : ref.name) << '\t' << pair->distance << endl;// << '\t' << pair->pValue << '\t' << pair->numer << '/' << pair->denom << endl;
166 cout << (comment ? ref.comment : ref.name) << '\t'<< (comment ? qry.comment : qry.name) << '\t' << pair->distance << endl;// << '\t' << pair->pValue << '\t' << pair->numer << '/' << pair->denom << endl;
167167 }
168168 else
169169 {