Open karen916 opened 1 year ago
Which version of samplot
are you using? There have been quite a few additions since the latest release. I would recommend installing the development version for now, using for example pip install git+https://github.com/ryanlayer/samplot.git
.
It would be good if you could rerun your samplot vcf
command with the added argument --debug
and post the output here. This will hopefully provide some more information on why no SV is being plotted.
Thank you for your assistance. I recently updated from version 1.3.0 to 1.3.1. After the update, I encountered the following error:(py37) [chenzhaojin@lfpara survivor]$ samplot vcf \
--filter "SVTYPE == 'DEL' & SU >= 5" \ --filter "SVTYPE == 'INV' & SU >= 3" \ --vcf filtered_1-30_fixed.vcf\ -d test_3/ \ -O png\ --important_regions bed2.bed\
--sample_ids 1-30 \ --debug \ -b /home/chenzhaojin/expansion/sv/mid75/1-30/delly/alignment_1_sorted.bam > samplot_commands.sh samplot_vcf - ERROR: No RG field in alignment file /home/chenzhaojin/expansion/sv/mid75/1-30/delly/alignment_1_sorted.bam samplot_vcf - ERROR: Include ordered list of sample IDs to avoid this error 'RG' I've checked the header information of my BAM file and noticed that it indeed lacks the @RG field. Here's a snippet from the header of my file: (py37) [chenzhaojin@lfpara survivor]$ samtools view -H /home/chenzhaojin/expansion/sv/mid75/1-30/delly/alignment_1_sorted.bam @HD VN:1.3 SO:coordinate @SQ SN:NC_010443.5 LN:274330532 @SQ SN:NC_010444.4 LN:151935994 @SQ SN:NC_010445.4 LN:132848913 @SQ SN:NC_010446.5 LN:130910915 @SQ SN:NC_010447.5 LN:104526007 @SQ SN:NC_010448.4 LN:170843587 @SQ SN:NC_010449.5 LN:121844099 @SQ SN:NC_010450.4 LN:138966237 @SQ SN:NC_010451.4 LN:139512083 @SQ SN:NC_010452.4 LN:69359453 @SQ SN:NC_010453.5 LN:79169978 I look forward to your response. Thank you very much for your assistance.
You need to provide a sample ID using the --sample_ids
argument. This sample id should be the same as the sample name in your VCF.
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 \
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.