List index out of range
0
1
Entering edit mode
3.5 years ago
Samiah ▴ 10

I ran cnvtogenes to annotate my varscan2 output. cnvtogenes is running fine on its test data but giving error on my sample data. The command I ran is:

sudo docker run -v ${PWD}:/data jeltje/cnvtogenes --cnvdir samples  -g hg38_annotation.bed > samples_annotation

where "samples" is directory containing varscan2 output files.

The Errorr I am getting is:

> final_m14 Traceback (most recent call last):   File
> "/usr/local/bin/cnvToGenes.py", line 136, in <module>
>     myseg = segment(inline.strip(), args.round)   File "/usr/local/bin/cnvToGenes.py", line 65, in __init__
>     self.chrom = cfields[1] IndexError: list index out of range

Below is the chunk of my sample file (final_m14.cnv) and cnvtogenes's test data (sample_1):

final_m14.cnv:

final_m14.cnv

sample_1.cnv:

sample_1.cnv

cnvtogenes was developed in 2016. I would be grateful if anyone could suggest me other latest and better tool for annotation of varscan2 output.

Thanks in advance.

python varscan cnvtogenes • 1.2k views
ADD COMMENT
3
Entering edit mode

Two quick things to check

  • Header mismatch? What if u use ID in first column.
  • Just check whether the columns are separated by same delimiter. It may happen that sample one is tab separated and urs is space separated. Just double check.

Let us know if u still see same error.

ADD REPLY
0
Entering edit mode

Hey thank you pbpanigrahi, your answer solved my problem. The issue was header mismatch.

ADD REPLY
0
Entering edit mode

Glad to hear it solved.

Please mark the above answer as resolved and also in this forum you should upvote when you find any suggestion helpful :)

ADD REPLY
0
Entering edit mode

Have you tried ANNOVAR? It is updated until this year.

ADD REPLY
0
Entering edit mode

Thank you Arsenal, I will try it.

ADD REPLY

Login before adding your answer.

Traffic: 1352 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6