Skip to content

Commit

Permalink
Expose -e option and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Chenxi Zhou committed Apr 25, 2022
1 parent 29f7325 commit e667d89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,15 @@ With `-a` option, you can specify a AGP format file to ask YaHS to do scaffoldin

With `-r` option, you can specify a range of resultions. It is `50000,100000,200000,500000,1000000,2000000,5000000,10000000,20000000` by default and the upper limit is automatically adjusted with the genome size.

With `-e` option, you can specify the restriction enzyme(s) used by the Hi-C experiment. For example, `GATC` for the DpnII restriction enzyme used by the Dovetail Hi-C Kit; `GATC,GANT` and `CGATC,GANTC,CTNAG,TTAA` for Arima genomics 2-enzyme and 4-enzyme protocol, respectively. Sometimes, the specification of enzymes may not change the scaffolding result very much if not make it worse, especically when the base quality of the assembly is not very good, e.g., assembies constructed from noisy long reads.

With `-l` option, you can specify the minimum contig length included for scaffolding.

With `-q` option, you can set the minimum read mapping quality (for BAM input only).

With `--no-contig-ec` option, you can skip the initial assembly error correction step. With `-a` option, this will be set automatically.

With `--no-scaffold-ec` option, YaHS will skip the scaffolding error check in each round. There will no `*_r[0-9]{2}_break.agp` AGP output files.
With `--no-scaffold-ec` option, YaHS will skip the scaffolding error check in each round. There will be no `*_r[0-9]{2}_break.agp` AGP output files.

## Generate HiC contact maps
YaHS offers some auxiliary tools to help generating HiC contact maps for visualisation. A demo is provided in the bash script `scripts/run_yahs.sh`. To generate and visualise a HiC contact map, the following tools are required.
Expand Down
2 changes: 1 addition & 1 deletion yahs.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ static void print_help(FILE *fp_help)
fprintf(fp_help, "Options:\n");
fprintf(fp_help, " -a FILE AGP file (for rescaffolding) [none]\n");
fprintf(fp_help, " -r INT[,INT,...] list of resolutions in ascending order [automate]\n");
//fprintf(fp_help, " -e STR restriction enzyme cutting sites [none]\n");
fprintf(fp_help, " -e STR restriction enzyme cutting sites [none]\n");
fprintf(fp_help, " -l INT minimum length of a contig to scaffold [0]\n");
fprintf(fp_help, " -q INT minimum mapping quality [10]\n");
fprintf(fp_help, " -o STR prefix of output files [yahs.out]\n");
Expand Down

0 comments on commit e667d89

Please sign in to comment.