-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export variants to VCF format #17
Comments
@svarona wrote a simple Python script to do this for the nf-core/viralrecon pipeline if its useful @gkarthik. |
Hi, for deletions ivar is outputting, for a reference having ACGT and a read having a deletion of CGT: REF ALT And general VCF format is: REF ALT So in your python script you should do something like:
Paul |
Thanks @paulstretenowich Ill fix that 👍 |
Having looked at this properly now @paulstretenowich it appears that there was a bug in the way insertions were being reported too as fixed here |
You are right @drpatelh I did just a naive fix on a specific case I was facing but I suspected other cases. Thanks 👍 |
SummaryI ran a few of iVar's franken-VCF files (from the Cecret workflow) through the vcfR package, but not all of the expected graphs showed up when I generated a chromR object and plotted it. On the iVar end, it would be nice to have the ReproducingI have included the following instructions for retracing my steps (some of this is aimed more towards the people coming from the vcfR repo): Steps to reproduce:System Requirements:
Step 1 (downloading the initial FASTQ files):
Here, I chose SRR11953924 as an example, as it seemed to be the most interesting. Step 2 (generating the VCF file):
Step 3 (using vcfR to generate the plots):
library(vcfR)
dna <- ape::read_dna("{cecret_directory}/configs/MN908947.3.fasta", format = "fasta")
gff <- ape::read_gff("{cecret_directory}/configs/MN908947.3.gff")
vcf <- read.vcfR("{path_to_your_cecret_output}/ivar_variants/SRR11953924.ivar_variants.vcf", verbose = TRUE)
chrom <- create.chromR(name = "SRR11953924", vcf = vcf, seq = dna, ann = gff)
chrom <- masker(chrom)
chrom <- proc.chromR(chrom, win.size = 500, verbose = TRUE)
plot(chrom)
chromoqc(chrom) Here's the chromR plot (window size 500, notice that 3 out of the 4 plots are missing, compared to the first plot found on this page): Here's the chromoqc plot (window size 500, the low number of variants per site is normal for this sample; however, the top three plots are missing, compared to the last plot found on this page): |
Filter variants across replicates with iVar But always encountering the error message below. I have double checked the header format of those file which do not have any change. Even though, I have changed tsv to txt file. What could be the problem and solution to resolve this issue. |
Hi @Moslemecoh! Thanks for bringing this up - I think the better place for this conversation is #178. If you could redirect there, and possibly share the files from the command I can take a look. |
ivar variants
outputs results only in custom.tsv
format so unusable with other tools.Allow option to export variants in VCF v4.3 format.
The text was updated successfully, but these errors were encountered: