Skip to content

TypeError in annotateTSS.py when using GTF #37

@cardonaaaa

Description

@cardonaaaa

Hi, I'm trying to run TEPIC v2.2 with the following command:

./TEPIC.sh -g $ref/Ntab-BX_AWOK-SS.fa -b $outdir/14-5_out2_macs2_call_peak_peaks.narrowPeak -o $outdir/14-5_TEPIC_AWOK -p $psem_dir/Nicotiana_IDs_PSCM_JASPAR_2018.PSEM -a $ref/with_desc_Ntab-BX_AWOK-SS_Basma_rnaseq.gtf -c 60 -t

And getting this error:

Preprocessing region file: Removing chr prefix, sorting regions and removing duplicats
Runnig bedtools
Converting invalid characters
Starting TRAP
Traceback (most recent call last):
File "/mnt/lustre/scratch/nlsas/home/csic/bds/jjf/TEPIC-2.2/Code/annotateTSS.py", line 1051, in <module> main()
File "/mnt/lustre/scratch/nlsas/home/csic/bds/jjf/TEPIC-2.2/Code/annotateTSS.py", line 886, in main
tss,identifier=readGTF(args.gtf[0],transcriptAnnotation)   
File "/mnt/lustre/scratch/nlsas/home/csic/bds/jjf/TEPIC-2.2/Code/annotateTSS.py", line 44, in readGTF
if (int(s[4]) > tss[s[idIndex]][1]):
TypeError: '>' not supported between instances of 'int' and 'tuple'

I tried using two different GTFs (since I'm carrying out my analysis with two different reference genomes) and I'm getting the same error message with both of them. I'd like to know if it's an issue with my GTFs not being "gencode format" or something about the script. None of my files contain the "chr" prefix.

1st GTF: https://drive.google.com/file/d/1hDwjUDY33nUkN_Zpp6YiKaAhmLsjn9p_/view?usp=share_link
2nd GTF (the one used in the shown command): https://drive.google.com/file/d/1pAwSjREFfQ_r7CftXOhrIJcpAZrXh0-J/view?usp=share_link

Python version: 3.7.8
R version: 4.0.4

Thanks in advance!

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