Statistics
\n") 172 | f.write("Figures
\n") 182 | for category, figures in summary_figures.items(): 183 | f.write(f"{category}
\n") 184 | for figure in figures: 185 | if figure == "Summary_html/1_Read_estimate_accuracy.png": 186 | figure_title = "Estimated accuracy" 187 | f.write(f"Note: If the scale of accuracy is not suitable, please use the giraffe_plot function to replot.
\n") 190 | f.write(f"giraffe_plot estimate_acc --input Estimated_information.txt --x_min 95 --x_max 100 --x_gap 1
\n") 191 | f.write(f"This is a description!
\n") 198 | f.write(f"This is a description!
\n") 205 | f.write(f"Note: If the scale of accuracy is not suitable, please use the giraffe_plot function to replot.
\n") 212 | f.write(f"giraffe_plot observe_acc --input Observed_information.txt --x_min 95 --x_max 100 --x_gap 1
\n") 213 | f.write(f"Note: If the scale of proportion is not suitable, please use the giraffe_plot function to replot.
\n") 220 | f.write(f"giraffe_plot observe_mismatch --input Observed_information.txt --y_max 5 --y_gap 1
\n") 221 | f.write(f"Note: If the scale of accuracy is not suitable, please use the giraffe_plot function to replot.
\n") 228 | f.write(f"giraffe_plot observe_homo --input Homoploymer_summary.txt --y_min 90 --y_max 100 --y_gap 2
\n") 229 | f.write(f"This is a description!
\n") 236 | f.write(f"Note: If the scale of GC content is not suitable, please use the renormalization_sequencing_bias for normalzation and giraffe_plot for plotting.
\n") 243 | f.write(f"renormalization_sequencing_bias -i S1_distribution.txt -l 30 -r 60 -o S1.txt
\n") 244 | f.write(f"giraffe_plot gcbias --input new_gcbias.txt --x_min 30 --x_max 60 --x_gap 2\n") 245 | f.write(f"
{figure_title}
\n") 253 | # # f.write(f"Description for {figure_title}.
\n") 254 | # f.write(f"If the scale of accuracy is not suitable. Plasese using the giraffe_plot to replot.
\n") 263 | # f.write(f"giraffe_plot estimate_acc --input Estimated_information.txt --x_min 50 --x_max 100 --x_gap 10
\n") 264 | # f.write(f"{category}
\n") 300 | # for figure in figures: 301 | # figure_title = os.path.splitext(os.path.basename(figure))[0].replace('_', ' ').title() 302 | # f.write(f"{figure_title}
\n") 304 | # # f.write(f"Description for {figure_title}.
\n") 305 | # f.write(f"
Giraffe
2 |  
3 |
4 | **Giraffe** is specially designed to provide a comprehensive assessment of the accuracy of long-read sequencing datasets obtained from both the Pacific Biosciences (PacBio) and Oxford Nanopore Technologies (ONT) platforms, offering four distinct functions.
5 |
6 |
7 |
8 | `estimate` Calculation of estimated read accuracy (Q score), length, and GC content.
9 |
10 | `observe` Calculation of observed read accuracy, mismatch proportion, and homopolymer identification (e.g. AAAA).
11 |
12 | `gcbias` Calculation of the relationship between GC content and sequencing depth.
13 |
14 | `modbin` Calculation of the distribution of modification (e.g. 5mC or 6mA methylation) at the regional level.
15 |
16 |
17 |
18 | # Installation
19 |
20 | ## Installation by [Conda](https://conda.io/projects/conda/en/latest/index.html)
21 |
22 | ```shell
23 | # install on the current environment
24 | conda install -c raymond_liu giraffe_view -y
25 |
26 | # install on a new environment
27 | conda create -n giraffe -c raymond_liu giraffe_view -y
28 | ```
29 |
30 |
31 |
32 | ## Installation by [PyPI](https://pypi.org/)
33 |
34 | Before using this tool, you need to install additional dependencies for read processing, including the [samtools](https://www.htslib.org/),[minimap2](https://github.com/lh3/minimap2), and [bedtools](https://github.com/arq5x/bedtools2). The following commands can help you install both the software package and its dependencies.
35 |
36 | ```shell
37 | # Testing version
38 | # samtools 1.17
39 | # minimap2 2.17-r941
40 | # bedtools 2.30.0
41 |
42 | # install on the currently environment
43 | conda install -c bioconda -c conda-forge samtools minimap2 bedtools -y
44 |
45 | # install on a new environment
46 | conda create -n giraffe -c bioconda -c conda-forge python==3.9 samtools==1.17 minimap2==2.17 bedtools==2.30.0 -y && conda activate giraffe
47 | ```
48 |
49 | To install this tool, please use the following command.
50 | ```shell
51 | pip install Giraffe-View
52 | ```
53 |
54 |
55 |
56 |
57 | # Quick usage
58 |
59 | **Giraffe** can be run with a one-button command or by executing individual functions.
60 |
61 | ## ONE-button pattern
62 |
63 | ```shell
64 | # Running function of "estimate", "observe", and "gcbias" with FASTQ files
65 | giraffe --read