mehrdadbakhtiari / adVNTR

A tool for genotyping Variable Number Tandem Repeats (VNTR) from sequence data
http://advntr.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
39 stars 15 forks source link

Genotype Error #42

Closed BrendaLee1 closed 3 months ago

BrendaLee1 commented 3 years ago

Hi! The following error always occur when I run genotype command on pacbio bam file: Traceback (most recent call last): File "/soft/Anaconda/anaconda3/bin/advntr", line 11, in sys.exit(main()) File "/soft/Anaconda/anaconda3/lib/python3.6/site-packages/advntr/main.py", line 134, in main genotype(args, genotype_parser) File "/soft/Anaconda/anaconda3/lib/python3.6/site-packages/advntr/advntr_commands.py", line 114, in genotype genome_analyzier.find_repeat_counts_from_pacbio_alignment_file(input_file) File "/soft/Anaconda/anaconda3/lib/python3.6/site-packages/advntr/genome_analyzer.py", line 214, in find_repeat_counts_from_pacbio_alignment_file self.print_genotype(vid, copy_numbers) File "/soft/Anaconda/anaconda3/lib/python3.6/site-packages/advntr/genome_analyzer.py", line 31, in print_genotype self.print_genotype_in_vcf(vntr_id, genotype_result) File "/soft/Anaconda/anaconda3/lib/python3.6/site-packages/advntr/genome_analyzer.py", line 101, in print_genotype_in_vcf if genotype_result.copy_numbers is None: AttributeError: 'tuple' object has no attribute 'copy_numbers'

command: advntr genotype --alignment_file NA12878.bam --models hg19_selected_VNTRs_Pacbio.db --working_directory new_log --outfile advntr_new --outfmt vcf --pacbio

Jong-hun-Park commented 3 years ago

Hi,

Thank you for reporting the issue. VCF output was only available for short sequencing datasets as it hasn't fully tested on PacBio datasets. I've fixed the issue, and they are now available by updating the code through Github. I will soon release a new version including the updates, but if you need to use it before then, please update adVNTR using this instruction

BrendaLee1 commented 3 years ago

Hi! Firstly Thank you for your reply, I tyied your new version, but still cannot work on Pacbio sequence data. Information as blow: I tested advntr by one chromosome's Pacbio sequence data, the error information below: if genotype_result.copy_numbers is None: AttributeError: 'NoneType' object has no attribute 'copy_numbers'

Then I use just the vntr ID to test advntr, error information as follows: self.print_genotype_in_bed_format(vntr_id, genotype_result.copy_numbers) AttributeError: 'tuple' object has no attribute 'copy_numbers'

So I tried old version 1.3.3, it works successfully.

Jong-hun-Park commented 3 years ago

Hi, Sorry for the late reply. Can you please let me know how you installed the new version? It's currently only available through github (not conda).

Xiaodiao1111 commented 11 months ago

你好! 首先感谢您的回复,我绑定了您的新版本,但仍然无法处理Pacbio序列数据。信息如下: 我用一条染色体的Pacbio序列数据测试了advntr,错误信息如下: if genotype_result.copy_numbers is None: AttributeError: 'NoneType' object has no attribute 'copy_numbers'

然后我只使用vntr ID来测试advntr,错误信息如下: self.print_genotype_in_bed_format(vntr_id, genotype_result.copy_numbers) AttributeError: 'tuple' object has no attribute 'copy_numbers'

所以我尝试了旧版本1.3.3,它运行成功。

Hello, may I ask how your problem was solved? I had a similar problem.

Xiaodiao1111 commented 11 months ago

你好,

感谢您报告该问题。 VCF 输出仅适用于短测序数据集,因为它尚未在 PacBio 数据集上进行全面测试。 我已经解决了这个问题,现在可以通过 Github 更新代码来使用它们。 我很快就会发布包含更新的新版本,但如果您需要在此之前使用它,请使用此说明更新 adVNTR

Hello, have you solved this problem? I have the same problem.