Skip to content

nboundLocalError: local variable 'name_of_virus' referenced before assignment for Insect virus #15

@shanmugavadivelps

Description

@shanmugavadivelps

Hi sir, I am using Vapid3 to annotate the insect virus following the command

"python vapid3.py /media/shanmu/shanmu_data/Sanjay_Viral_whole_genome/denovo_with_reference_alignment_27th_Nov_2021/Final_for_paper/NNG1/NNG1_Picard_VirgenA/out_NNg1/ragtag_scaffold.fasta IIPR05_template.sbt --online --r AP010907.1"

I have checked the availability of the reference virus (AP010907.1) in .nhr and .nin files/databases but it was not available.

when I run the command, it throws an error like below.

AP010907.1 was the selected reference
Traceback (most recent call last):
File "vapid3.py", line 968, in
strain2species[virus_strain_list[x]] = annotate_a_virus(virus_strain_list[x], virus_genome_list[x],
File "vapid3.py", line 634, in annotate_a_virus
name_of_virus, our_seq, ref_seq, ref_accession, need_to_rc = blast_n_stuff(strain, strain + SLASH + strain + '.fasta')
File "vapid3.py", line 210, in blast_n_stuff
print(name_of_virus + ' was the parsed name of the virus')
UnboundLocalError: local variable 'name_of_virus' referenced before assignment

what to do if the selected reference are not available in .nin and .nhr?

pls help me to solve the issue

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