Hello
Trying to create a vcf file with a reference genome in Discosnp results in the below stdout with an empty vcf file, only headers. The sam file is OK. VCF creation using run_VCF_creator.sh
without reference genome is OK as well.
[M::main_mem] read 135392 sequences (10000014 bp)...
[M::main_mem] read 136230 sequences (10000131 bp)...
[M::main_mem] read 137222 sequences (10000111 bp)...
[M::main_mem] read 141176 sequences (10000018 bp)...
[M::main_mem] read 87706 sequences (5565243 bp)...
[main] Version: 0.7.5a-r405
[main] CMD: /usr/bin/bwa mem /storage/nr/db/nucleotide/v2_pseudomolecules.fasta dd26_k_31_c_auto_D_100_P_1_b_1_coherentbis.fasta
[main] Real time: 1276.659 sec; CPU: 1226.005 sec
Traceback (most recent call last):
File "/storage/hanan/DiscoSNP++-2.2.4-Source/tools/VCF_creator.py", line 132, in <module>
variant_object, vcf_field_object=InitVariant(line1,line2) #Fills the object with the line of the samfile
File "/storage/hanan/DiscoSNP++-2.2.4-Source/tools/functionObjectVCF_creator.py", line 25, in InitVariant
variant_object=SNP(line1,line2)
File "/storage/hanan/DiscoSNP++-2.2.4-Source/tools/ClassVCF_creator.py", line 649, in __init__
VARIANT.__init__(self,line1,line2)
File "/storage/hanan/DiscoSNP++-2.2.4-Source/tools/ClassVCF_creator.py", line 68, in __init__
self.upper_path=PATH(line1)#line in the file corresponding to the upper path
File "/storage/hanan/DiscoSNP++-2.2.4-Source/tools/ClassVCF_creator.py", line 376, in __init__
self.GetDicoMappingPosition()
File "/storage/hanan/DiscoSNP++-2.2.4-Source/tools/ClassVCF_creator.py", line 417, in GetDicoMappingPosition
posMut,nbMismatch=self.GetTag()
File "/storage/hanan/DiscoSNP++-2.2.4-Source/tools/ClassVCF_creator.py", line 583, in GetTag
return (posMut,nbMismatch)
UnboundLocalError: local variable 'posMut' referenced before assignment
... Creation of the vcf file : done ...==> dd26_k_31_c_auto_D_100_P_1_b_1_coherent.vcf
... Creation of the vcf file for IGV: done ...==> dd26_k_31_c_auto_D_100_P_1_b_1_coherent_for_IGV.vcf
Vcf creation time in seconds: 1286
###############################################################
#################### DISCOSNP++ FINISHED ######################
###############################################################
DiscoSnp++ total time in seconds: 32706
################################################################################################################
fasta of predicted variant is "dd26_k_31_c_auto_D_100_P_1_b_1_coherent.fa"
VCF file (1-based) is "dd26_k_31_c_auto_D_100_P_1_b_1_coherent.vcf"
An IGV ready VCF file (sorted by position, only mapped variants, 0-based) is "dd26_k_31_c_auto_D_100_P_1_b_1_coherent_for_IGV.vcf"
Thanks for using discoSnp++ - http://colibread.inria.fr/discoSnp/ - Forum: http://www.biostars.org/t/discoSnp/
################################################################################################################
Thank you
Hanan
Hi Hanan,
Sorry for this issue. Could you indicate the discoSnp version generating this issue?
I have tried 2.2.0, 2.2.1 and 2.2.4 Hanan
Right, thanks.
We maybe identified this problem that may be due to an exception in the sam output. Would you mind sending me the .sam file that had been generated during your process?
Best regards,
Pierre
No problem, how do I send it?