Skip to content

Issues with using the samplot vcf module #187

@karen916

Description

@karen916

Dear Samplot Development Team,

I would like to express my gratitude for developing such a valuable tool like Samplot. Your efforts have significantly contributed to the research community, and I truly appreciate the hard work you've put into this software.Following that, I've encountered some issues while using the Samplot vcf module that I'd like to discuss with you. I hope you can provide some guidance or solutions to address these concerns.
When running the samplot vcf module, there were no errors, but no images were generated. Additionally, when opening the HTML file, it displays 'No data available in table'.My SVs file was generated from 2nd generation 10x resequencing data, processed through Lumpy, Manta, and Delly, and then merged using SURVIVOR. Initially, I executed the following command:
`(py37) [chenzhaojin@lfpara survivor]$ samplot vcf \

--filter "SVTYPE == ‘DEL’ & SU >= 5"
--filter "SVTYPE == 'INV' & SU >= 3"
--vcf filtered_1-30_fixed.vcf
-d test_1/
-O png
--important_regions bed2.bed
-b /home/chenzhaojin/expansion/sv/mid75/1-30/delly/alignment_1_sorted.bam
--sample_ids sample1-30 > samplot_command.sh
(py37) [chenzhaojin@lfpara survivor]$ cd test_1/
(py37) [chenzhaojin@lfpara test_1]$ ll
total 1
-rw-r--r-- 1 chenzhaojin lfpara 24507 Oct 9 11:15 index.htmlSubsequently, I reviewed the filtering criteria and attempted to modify the conditions.I discovered that there is an issue with the 'SU' in my VCF file,because my second command produced no output.(py37) [chenzhaojin@lfpara survivor]$ grep -v "^#" filtered_1-30_fixed.vcf | grep "SVTYPE=DEL" | wc -l
747
(py37) [chenzhaojin@lfpara survivor]$ grep -v "^#" filtered_1-30_fixed.vcf | grep "SVTYPE=DEL" | awk -F';' '{for(i=1;i<=NF;i++) if ($i ~ /SU=/) print $i}' | sort | uniq -c
(py37) [chenzhaojin@lfpara survivor]$ grep -v "^#" filtered_1-30_fixed.vcf | grep "SVTYPE=DEL" | head -1
NC_010443.5 5537541 MantaDEL:640:0:1:0:0:0 CTTGGATTCCGTCGTGGCAGTGTAACAATCGATAGACATGAGGTTGCGGGTTCGATCTGCCTTGCTCATGGTTAACGATCCGCATGGCGTGAGCTGTGGTAGGTGCAGACGCGGCTCGATCCGAGTTGCTGTGCTCTGGCGTAGGCAGTGCTACAGCTCCGATTCGACCCTAGCCTGGAACTCATATGCCGGAGCGCCAAAAATAGCAAAAAAAAAAAAATAAAAAAAATAACCTTCATACAGAAACTACTAAATAAAAATAGTTAAGACTACAAGTTCAGGAGTTCCCGTCGTGGCGCAGTGGTTAACGAATCCGACTAGAACATGAGGTTGCGGTTCGTCCTGCCTTGCTCAGTGGTTAAGACCGGCGTTGCGTGAGCTGTGGTGTAGGTGCAGACGCGGCTCGGATTCCGCGTTGCTGTGGCTCTGGCGAGGCGTGATACAGCTCGATTCAACCCTAGCTGGAACTCCATATGCGCGGAGCGCCAAGAAATAGCAACAATAACAACAACAGAAAGACAAAAAAAAAAAAAAA CAGAAACTACTAAATAAAAATAGTT 551 PASS SUPP=3;SUPP_VEC=111;SVLEN=-449;SVTYPE=DEL;SVMETHOD=SURVIVOR1.0.7;CHR2=NC_010443.5;END=5538075;CIPOS=-1,279;CIEND=-535,10;STRANDS=+- GT:PSV:LN:DR:ST:QV:TY:ID:RAL:AAL:CO ./.:NA:279:0,7:+-:.,.,.,.:DEL,INV,INV,DEL:28:NA:NA:NC_010443.5_5537541-NC_010443.5_5537765,NC_010443.5_5537540-NC_010443.5_5537819,NC_010443.5_5537819-NC_010443.5_5537540,NC_010443.5_5537820-NC_010443.5_5538075 1/1:NA:534:0,19:+-:551,59:DEL,DEL:MantaDEL_640_0_1_0_0_0:CTTGGATTCCGTCGTGGCAGTGTAACAATCGATAGACATGAGGTTGCGGGTTCGATCTGCCTTGCTCATGGTTAACGATCCGCATGGCGTGAGCTGTGGTAGGTGCAGACGCGGCTCGATCCGAGTTGCTGTGCTCTGGCGTAGGCAGTGCTACAGCTCCGATTCGACCCTAGCCTGGAACTCATATGCCGGAGCGCCAAAAATAGCAAAAAAAAAAAAATAAAAAAAATAACCTTCATACAGAAACTACTAAATAAAAATAGTTAAGACTACAAGTTCAGGAGTTCCCGTCGTGGCGCAGTGGTTAACGAATCCGACTAGAACATGAGGTTGCGGTTCGTCCTGCCTTGCTCAGTGGTTAAGACCGGCGTTGCGTGAGCTGTGGTGTAGGTGCAGACGCGGCTCGGATTCCGCGTTGCTGTGGCTCTGGCGAGGCGTGATACAGCTCGATTCAACCCTAGCTGGAACTCCATATGCGCGGAGCGCCAAGAAATAGCAACAATAACAACAACAGAAAGACAAAAAAAAAAAAAAA:CAGAAACTACTAAATAAAAATAGTT:NC_010443.5_5537541-NC_010443.5_5538075,NC_010443.5_5537814-NC_010443.5_5538084 1/1:NA:534:6,5:+-:360,180:DEL,DEL:DEL00000089:NA:NA:NC_010443.5_5537542-NC_010443.5_5538076,NC_010443.5_5537814-NC_010443.5_5538085I tried to lower the filtering criteria and instead of using the --filter parameter for filtering, I used the awk command for filtering with su>2. After that, I ran samplot vcf again without specifying the filtering parameter, but it still couldn't generate images or an HTML file with data.(py37) [chenzhaojin@lfpara survivor]$ awk -F'\t' '($0 ~ /^#/ || ($8 ~ /SVTYPE=DEL/ && $8 ~ /SUPP=[2-9][0-9]*|SUPP=[1-9][0-9]+/)) {print}' filtered_1-30_fixed.vcf > supp2_1-30_DEL.vcf samplot vcf
--vcf supp2_1-30_DEL.vcf
-d test_2/
-O png
--important_regions bed2.bed
-b /home/chenzhaojin/expansion/sv/mid75/1-30/delly/alignment_1_sorted.bam
--sample_ids sample1-30 > samplot_command.sh (py37) [chenzhaojin@lfpara survivor]$ cat bed2.bed
NC_010443.5 532 11200When I use the samplot plot command with my BAM file, it successfully generates images as expected.time samplot plot
-n 1-1 1-2 1-30
-b /home/chenzhaojin/expansion/sv/mid75/1-1/delly/alignment_1_sorted.bam
/home/chenzhaojin/expansion/sv/mid75/1-2/delly/alignment_1_sorted.bam
/home/chenzhaojin/expansion/sv/mid75/1-30/delly/alignment_1_sorted.bam
-o 1_105_274330532.png
-c NC_010443.5
-s 105
-e 274330532
-t DEL`

There were no error messages, so I'm at a loss on how to proceed. I would appreciate any assistance or guidance you can provide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions