Skip to main content

A computational framework to detect viral counts in paired-end scRNA-seq samples.

Project description

ViralScan

Introduction

ViralScan is a computational bioinformatics framework to detect viral load in samples. It is designed for the Leiden University Medical Centre (LUMC) to enable the detection of multiple viruses.

The tool can use both kb ref and kb count to perform scalable detection of the viral load.


Installation

ViralScan can be installed using pip in a Python environment:

pip install ViralScan

A conda environment is recommended. You can create one as follows:

conda create -n bioenv -c conda-forge -c bioconda snakemake kb-python

ViralScan is command-line based. To view available commands and options, run the following command:

viralscan --help

This will display all available options regarding the software, including an example.


Input Data

Reference Index

ViralScan requires an index created with kb ref (from thhe kb-python package). There are 2 options regarding the index:

  • provide your own pre-built index, or;
  • let ViralScan create its own index for you.

Reference data to create the index can be found on Zenodo (https://zenodo.org/uploads/16792022).

Samples

ViralScan expects paired-end FASTQ files (potentially gunzipped). Both sample files (forward and backward) must be provided for the analysis. Samples which can be used for testing: SRR20710651, SRR20710645 and SRR10307460


User Guide

There are 2 ways to run ViralScan: There are 2 options regarding the index:

    1. You already have a reference index built with kb-python
    1. You don't have a reference index and want ViralScan to create one for you

Please Note: all the output from ViralScan (including the logs and plots) will be created in the output folder defined by the user. To run ViralScan with option 1, run the following:

viralscan -t transcripts.txt -i index.idx -o output/ -s1 sample_1.fastq.gz -s2 sample_2.fastq.gz

If you want ViralScan to create a reference index for you, you have to provide the GTF and FASTA file(s). Running ViralScan to create a reference index and to perform the quantification can be done as follows:

viralscan -o output/ -reference True -s1 sample_1.fastq.gz -s2 sample_2.fastq.gz -fasta fasta.fasta -gtf gtf.gtf

The index will be placed in the output directory, in a subfolder called index.

If you have multiple samples, ViralScan can analyze them with 1 command. Just split the names of the samples with a comma (without a space in-between). The same is when you have multiple GTF and FASTA files. For example:

# If you have multiple samples
viralscan -t transcripts.txt -i index.idx -o output/ -s1 sample1_1.fastq.gz,sample2_1.fastq.gz -s2 sample1_2.fastq.gz,sample2_2.fastq.gz

# If you have multiple gtfs and fasta files 
viralscan -o output/ -reference True -s1 sample_1.fastq.gz -s2 sample_2.fastq.gz -fasta fasta1.fasta,fasta2.fasta -gtf gtf1.gtf,gtf2.gtf

For information about other parameters or possibilities in ViralScan, call the help function:

viralscan --help

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

viralscan-2.3.1.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

viralscan-2.3.1-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

Details for the file viralscan-2.3.1.tar.gz.

File metadata

  • Download URL: viralscan-2.3.1.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for viralscan-2.3.1.tar.gz
Algorithm Hash digest
SHA256 b0fa75ecb1679f5488a32c7eab60066214cea69ae9ce282cc3b6c06d7aa2ed2f
MD5 82733b3abfb22f06b8f543308dee0142
BLAKE2b-256 cbb8888646083f5595e15938380ae9d4d8cd961827fb68062ec0e0933d66391f

See more details on using hashes here.

File details

Details for the file viralscan-2.3.1-py3-none-any.whl.

File metadata

  • Download URL: viralscan-2.3.1-py3-none-any.whl
  • Upload date:
  • Size: 28.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for viralscan-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9477622b2c1ff323ccfd902324f978d13c34021bd056c5515d76bfb888b27b84
MD5 037cb7bd202933d6ebe4729c477f2778
BLAKE2b-256 9986a0f56fb933252d6b25288ea885ea64ded83ffdf7d351675e506d5d761011

See more details on using hashes here.

Supported by

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