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 -i https://test.pypi.org/simple/ 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.0.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.0-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: viralscan-2.3.0.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.0.tar.gz
Algorithm Hash digest
SHA256 75eb6512a40242aea6a5bc035cdac5d1a3fac8c9f13c85d964288c80cb68d562
MD5 edfaa1f36c678a97bbd9a4f44d4e11fa
BLAKE2b-256 459b88f0a4d9c93c037c34a5c09173a3bf61e8c0c5f414e851d83540523fe784

See more details on using hashes here.

File details

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

File metadata

  • Download URL: viralscan-2.3.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40dbf66237db5417c10d51eee6e2f644429a14ce443db54e73da8b76035e8412
MD5 7554d163da43af01e17da1d3b8bb8eb1
BLAKE2b-256 5bd65b6946ba484ecf021cea77e344e9cdccbbd5ebc9d6dca7a0889e615b120c

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