schelhorn / virana Goto Github PK
View Code? Open in Web Editor NEWThe Virus Analysis Toolkit
The Virus Analysis Toolkit
Hello,
I came across the mention of Virana in the paper "VERSE: a novel approach to detect virus integration in host genomes through reference genome customization" (DOI 10.1186/s13073-015-0126-6) and I wanted to utilize Virana for Virus integration site detection, inspired by the paper "Sensitive Detection of Viral Transcripts in Human Tumor Transcriptomes" (https://doi.org/10.1371/journal.pcbi.1003228).
However, I am unsure about how to use Virana (https://github.com/schelhorn/virana). Could you please provide me with the manual or instructions on how to use it?
I am trying to run 'vmap rnamap' with the example that you provide in your README.md
$vsim reads -r 9626953:5 -r 13095578:5 -r 29502191:50 -r 336087897:50 --read_length=200 -o viral_reads
$vref fasta -r Homo_sapiens -r Viruses -o my_genome_db.fa
$vmap rnaindex -r my_genome_db.fa -i my_rna_index_dir
$vmap rnamap --index my_rna_index_dir --zipped \
--reads=viral_reads_1.fq.gz --reads=viral_reads_2.fq.gz \
--virana_hits=hits.bz2
This works fine, but when I run it for single end. I got the following error:
vmap rnamap --index_dir my_rna_index_dir \
> --reads=viral_reads_1.fq.gz \
> --zipped \
> --star_path='STAR' \
> --samtools_path='samtools' \
> --taxonomy=taxonomy.txt \
> --bam=mapping.bam \
> --threads=8 \
> --sensitive \
> --virana_hits=hits.bz2 \
> --virana_hit_filter=Viruses \
> --sample_id=sample_1 \
> --min_continiously_matching=25 \
> --max_relative_mismatches=0.2 \
> -d
Running mapper
Running mapper command line: STAR --runMode alignReads --genomeDir my_rna_index_dir --runThreadN 8 --readMatesLengthsIn NotEqual --outFileNamePrefix /tmp/tmpy1CLeE/out --outSAMmode Full --outSAMstrandField None --outSAMattributes Standard --outSAMunmapped Within --outStd SAM --outFilterMultimapNmax 1000 --outSAMprimaryFlag OneBestScore --limitOutSAMoneReadBytes 1000000 --limitOutSJcollapsed 2000000 --genomeLoad NoSharedMemory --outReadsUnmapped None --readFilesCommand zcat --outFilterMultimapScoreRange 10 --outFilterMismatchNmax 60 --outFilterMismatchNoverLmax 0.3 --outFilterScoreMin 0 --outFilterScoreMinOverLread 0.3 --outFilterMatchNmin 0 --outFilterMatchNminOverLread 0.66 --seedSearchStartLmax 12 --winAnchorMultimapNmax 50 --readFilesIn viral_reads_1.fq.gz
Preparing fifo
Opening fifo for writing
Opened fifo /tmp/tmpy1CLeE/namedpipe
Starting mapper process...
Executed mapper with: STAR --runMode alignReads --genomeDir my_rna_index_dir --runThreadN 8 --readMatesLengthsIn NotEqual --outFileNamePrefix /tmp/tmpy1CLeE/out --outSAMmode Full --outSAMstrandField None --outSAMattributes Standard --outSAMunmapped Within --outStd SAM --outFilterMultimapNmax 1000 --outSAMprimaryFlag OneBestScore --limitOutSAMoneReadBytes 1000000 --limitOutSJcollapsed 2000000 --genomeLoad NoSharedMemory --outReadsUnmapped None --readFilesCommand zcat --outFilterMultimapScoreRange 10 --outFilterMismatchNmax 60 --outFilterMismatchNoverLmax 0.3 --outFilterScoreMin 0 --outFilterScoreMinOverLread 0.3 --outFilterMatchNmin 0 --outFilterMatchNminOverLread 0.66 --seedSearchStartLmax 12 --winAnchorMultimapNmax 50 --readFilesIn viral_reads_1.fq.gz
Setting outputs
Opening input SAM parser and fifo
Parsing mapper output from pysam fifo /tmp/tmpy1CLeE/namedpipe
Extracting header from pysam fifo...
Finished extracting header of length 4
Outputting taxonomy to taxonomy.txt
Outputting virana hits to hits.bz2
Outputting BAM file to mapping.bam
Starting to parse with pysam...
Parsing SAM file alignments...
Processed 0 SAM alignments
Traceback (most recent call last):
File "/home/fcastro/bin/vmap", line 5, in <module>
virana.vmap.CLI.run()
File "/usr/local/lib/python2.7/dist-packages/plumbum/cli/application.py", line 352, in run
inst, retcode = subapp.run(argv, exit = False)
File "/usr/local/lib/python2.7/dist-packages/plumbum/cli/application.py", line 348, in run
retcode = inst.main(*tailargs)
File "/usr/local/lib/python2.7/dist-packages/Virana-1.1.0-py2.7.egg/virana/vmap.py", line 1347, in main
for alignment, parsed_line in parser.parse():
File "/usr/local/lib/python2.7/dist-packages/Virana-1.1.0-py2.7.egg/virana/vmap.py", line 346, in parse
mate_ref_name = getrname(alignment.rnext)
File "pysam/calignmentfile.pyx", line 570, in pysam.calignmentfile.AlignmentFile.getrname (pysam/calignmentfile.c:7987)
ValueError: reference_id -1 out of range 0<=tid<1974
I am using latest virana version, STAR 2.4.0j , samtools 1.2, pysam 0.8.2
It is an issue generated by the last updates of pysam or I am doing something wrong?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.