Skip to main content

Giraffe_View is specially designed to provide a comprehensive assessment of the accuracy of long-read sequencing datasets obtained from both the PacBio and Nanopore platforms.

Project description

Giraffe

PyPI License

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.

estimate Calculation of estimated read accuracy (Q score), length, and GC content.

observe Calculation of observed read accuracy, mismatch proportion, and homopolymer identification (e.g. AAAA).

gcbias Calculation of the relationship between GC content and sequencing depth.

modbin Calculation of the distribution of modification (e.g. 5mC or 6mA methylation) at the regional level.

Installation

Installation by Conda

# install on the current environment
conda install -c raymond_liu giraffe_view -y

# install on a new environment
conda create -n giraffe -c raymond_liu giraffe_view -y

Installation by PyPI

Before using this tool, you need to install additional dependencies for read processing, including the samtoolsminimap2, and bedtools. The following commands can help you install both the software package and its dependencies.

# Testing version
# samtools 1.17
# minimap2 2.17-r941
# bedtools 2.30.0

# install on the currently environment
conda install -c bioconda -c conda-forge samtools minimap2 bedtools -y

# install on a new environment
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

To install this tool, please use the following command.

pip install Giraffe-View

Quick usage

Giraffe can be run with a one-button command or by executing individual functions.

ONE-button pattern

# Running function of "estimate", "observe", and "gcbias" with FASTQ files
giraffe --read <read table> --ref <reference> --cpu <number of processes or threads>

# Running function of "estimate", "observe", and "gcbias" with unaligned SAM/BAM files
giraffe --read <unaligned SAM/BAM table> --ref <reference> --cpu <number of processes or threads>

# Example for input table (sample_ID data_type file_path)
sample_A ONT /home/user/data/S1.fastq
sample_B ONT /home/user/data/S2.fastq
sample_C ONT /home/user/data/S3.fastq
...

Here the data_type can be ONT DNA reads (ONT), ONT directly sequencing reads (ONT_RNA), and Pacbio DNA reads (Pacbio).

Estimate function

# For the FASTQ reads
giraffe estimate --read <read table> 

# For the unaligned SAM/BAM files
giraffe estimate --unaligned <unaligned SAM/BAM table>

Observe function

# For FASTQ reads
giraffe observe --read <read table> --ref <reference>

# For unaligned SAM/BAM files
giraffe observe --unaligned <unaligned SAM/BAM table> --ref <reference>

# For aligned SAM/BAM files
giraffe observe --aligned <aligned SAM/BAM table>

Note: If you are going to use aligned SAM/BAM files as input, please remove the secondary alignment (--secondary=no) and add the MD tag (--MD) before mapping by adding these two highlighted parameters.

GCbias function

giraffe gcbias --ref <reference> --aligned <aligned SAM/BAM table>

Modbin function

giraffe modbin --methyl <methylation table> --region <target region>

# Example for methylation file (Chrom Start End Value):
contig_A 132 133 0.92
contig_A 255 256 0.27
contig_A 954 955 0.52
...

Example

Here, we provide demo datasets for testing the Giraffe. The following commands can help to download them and run the demo.

giraffe_run_demo

The demo datasets included three E. coli datasets including a 4.2 MB reference, 79 MB R10.4.1 reads, and 121 MB R9.4.1 reads. For the methylation files, two files of zebrafish blood (23 MB)and kidney (19 KB) are included. This demo takes about 7 minutes and 20 seconds with a maximum memory of 391 MB. This running includes the one-command pattern and four individual functions testing.

Tool showcase

The one-command pattern will generate a summary in HTML format. If the scale of the X/Y-axis is not reasonable, the script of giraffe_plot can be used to replot the figure.

Documentation

For more details about the usage of Giraffe and results profiling, please refer to the document.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

giraffe_view-0.2.1.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

Giraffe_View-0.2.1-py3-none-any.whl (29.0 kB view details)

Uploaded Python 3

File details

Details for the file giraffe_view-0.2.1.tar.gz.

File metadata

  • Download URL: giraffe_view-0.2.1.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for giraffe_view-0.2.1.tar.gz
Algorithm Hash digest
SHA256 af7a3f71f947d195194075a1d8bfee2f902ffe9a0d8939887a77ea44d346bbc0
MD5 9a4e154dc512c3db168ab9aa847847ad
BLAKE2b-256 dadc203823f0f77c4510223023510119344c6c885d580c1c003fe376b0877d13

See more details on using hashes here.

File details

Details for the file Giraffe_View-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Giraffe_View-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 be1c7f491d897981de7769264c274b08177e938d8030cd9a6eba4418738988bb
MD5 6c821cc6e71d857d03ac0fa4e2b0e190
BLAKE2b-256 0527e4ad39a1544c106eed9ff1e64345ae9f1b77624e182ac68ab8190f7a1c37

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page