Skip to content

Commit ee9b934

Browse files
committed
update version and usage of iGDA
1 parent de714a8 commit ee9b934

2 files changed

Lines changed: 19 additions & 33 deletions

File tree

Binary file not shown.

src/main.cpp

Lines changed: 19 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -38,45 +38,31 @@ using namespace TCLAP;
3838

3939
void print_usage()
4040
{
41-
cout << "Version 0.9.3" << endl << endl;
42-
cout << "To detect low-frequency SNVs, use:" << endl;
43-
cout << "(PacBio data) igda_pipe_detect_pb infile(bam or sam file) reffile contextmodel outdir" << endl;
44-
cout << "(Nanopore data) igda_pipe_detect_ont infile(bam or sam file) reffile contextmodel outdir" << endl << endl;
41+
cout << "Version 1.0.1" << endl << endl;
42+
cout << "To detect minor SNVs, use:" << endl;
43+
cout << "(PacBio data) igda_pipe_detect -m pb bamfile reffile contextmodel outdir" << endl;
44+
cout << "(Nanopore data) igda_pipe_detect -m ont bamfile reffile contextmodel outdir" << endl << endl;
4545

46-
cout << "to detect combination of low-frequency SNVs, use:" << endl;
47-
cout << "(PacBio data) igda_pipe_phase_pb indir(output of igda_pipe_detect_pb) reffile outdir" << endl;
48-
cout << "(Nanopore data) igda_pipe_phase_ont indir(output of igda_pipe_detect_ont) reffile outdir" << endl << endl;
46+
cout << "To phase minor SNVs, use:" << endl;
47+
cout << "(PacBio data) igda_pipe_phase -m pb indir(outdir of igda_pipe_detect) reffile outdir" << endl;
48+
cout << "(Nanopore data) igda_pipe_phase -m ont indir(outdir of igda_pipe_detect) reffile outdir" << endl << endl;
4949

50-
cout << "Please note that reffile is the reference fasta file. Current version assumes there is only one contig in samfile and reffile." << endl << endl;
51-
cout << "contextmodel is the context effect model trained on independent data. They can be download in https://github.com/zhixingfeng/igda_contextmodel" << endl;
50+
cout << "bamfile is the aligned bam file (indexed)." << endl;
51+
cout << "reffile is the reference fasta file." << endl;
52+
cout << "contextmodel is the context effect model trained on independent data. They can be download in https://github.com/zhixingfeng/igda_contextmodel" << endl << endl;;
5253

53-
cout << "Output format:" << endl;
54-
cout << "For detecting low-frequency SNVs, realign.var in outdir is the final result." << endl;
55-
cout << "Column 1 is the locus of detected SNVs." << endl;
56-
cout << "Column 2 is the alternative base of detected SNVs." << endl;
57-
cout << "The other columns are reserved for internal use" << endl << endl;
54+
cout << "Output:" << endl << endl;
55+
cout << "For detecting minor SNVs, realign.vcf in outdir is the final result." << endl << endl;
5856

59-
cout << "For detecting combinations of low-frequency SNVs, realign.ann.tested.ft.count.ft.assembled.count.nc.ft in outdir is the final result." << endl;
60-
cout << "Each row is a contig" << endl;
61-
cout << "Column 1 is the SNVs of the contigs. It is encoded, for each integer x, floor(x/4) = 0-based locus, and x modulo 4 = base" << endl;
62-
cout << "Column 2 is start locus (0-based)" << endl;
63-
cout << "Column 3 is end locus (0-based)" << endl;
64-
cout << "Column 4 is number of reads aligned to the contig" << endl;
65-
cout << "Column 5 is coverage of the contig" << endl;
57+
cout << "For phasing minor SNVs, contigs.sam, contigs.fa, and contigs.ann are the final results." << endl;
58+
cout << "In the contigs.ann file, each row is a contig." << endl;
59+
cout << "Column 1 is chromosome name." << endl;
60+
cout << "Column 2 is the SNVs of the contig. It is encoded, for each integer x, floor(x/4) = 0-based locus, and x modulo 4 = base (0=A, 1=C, 2=G, 3=T)" << endl;
61+
cout << "Column 3 is start locus (0-based)" << endl;
62+
cout << "Column 4 is end locus (0-based)" << endl;
6663
cout << "The other columns are reserved for internal use" << endl << endl;
6764

68-
cout << "For any questions, inquiry of source code or example data, contact zhixing.feng@mssm.edu" << endl;
69-
/*cout << "igda [command]" << endl;
70-
cout << "command = encode : binary coding SNVs of each aligned read." << endl;
71-
cout << " cmpreads : pairwise comparison of encoded reads."<< endl;
72-
cout << " dforest : detecting SNVs by dforest algorithm (unable to detect SNVs if no reads cover multiple real SNVs)." << endl;
73-
cout << " contexteffect : pileup reads and get context effect." << endl;
74-
cout << " detectsingle : detecting SNVs locus by locus (lower sensitivity compared to dforest but able to detect SNVs if no reads cover multiple real SNVs)." << endl;
75-
cout << " rdim : removing undetected SNVs from encoded reads." << endl;
76-
cout << " ann : clustering reads by adaptive nearest neighbor clustering." << endl;*/
77-
78-
//cout << "command = samtofa, bamtofa, m5tofa, encode, cmpreads, bin2txt, txt2bin, dforest, sort, filter, contexteffect, merge, mergeall, dist, pileup_var, pileup_reads, samtom5" << endl;
79-
65+
cout << "For any questions, contact zhixing.feng@mssm.edu or zxfeng.thu@gmail.com" << endl;
8066
}
8167

8268
int main(int argc, const char * argv[])

0 commit comments

Comments
 (0)