Skip to content

IndexError when running diffSplice #213

Description

@ipatop

Hi!

I am using SUPPA in a preliminary experiment with 1 replica for each condition, and I am getting an error when running "diffSplice" that I have not been able to sort out. Thanks in advance for your help.

"Calculating differential analysis between conditions: SUPPA_0kcl and SUPPA_1kcl 
ERROR:__main__:Unknown error: (<class 'IndexError'>, IndexError('list index out of range'), <traceback object at 0x7fcb7ac603c0>)"

I created the tpm counts with IsoQuant, and I am using SUPPA for the psi calculations and the differential splicing. I verified that the first column in the psi have the same names along samples and they re not all nan.

This is my main pipeline, and by the end, I get the error:

#Load modules and set enviroment
module load gcc/9.2.0 python/3.8.12
source ~/IsoQuant.python.3.8.12/bin/activate #enviroment with IsoQuant and SUPPA
source ~/.profile

#SETUP
ref=Mus_musculus.GRCm39.dna_sm.chromosome.ALL.fa
gtf=Mus_musculus.GRCm39.110.chr.gtf
exp=IsoQuant/my_ont/my_ont.transcript_grouped_tpm.tsv #expression file from IsoQuant
out=SUPPApSI #outname
suppa=/scripts/SUPPA/suppa.py #suppa directory

#I separate the tpm counts from IsoQuant by sample
awk '{print $1,$3}' IsoQuant/my_ont/my_ont.transcript_grouped_tpm.tsv > SUPPA.1.tpm
awk '{print $1,$2}' IsoQuant/my_ont/my_ont.transcript_grouped_tpm.tsv > SUPPA.0.tpm

#run the generation of splicing cases
python $suppa generateEvents -i $gtf -o $out -f ioi 
oi=${out}.ioi

#quantify isoforms for both samples together
python $suppa psiPerIsoform -g $gtf -e $exp -o $out
psi=${out}_isoform.psi
#separate psi by sample
awk '{print $1,$3}' SUPPApSI.txt_isoform.psi > SUPPA.1.psi
awk '{print $1,$2}' SUPPApSI.txt_isoform.psi > SUPPA.0.psi

#diffSplice
python $suppa diffSplice -m empirical -nan 1 --input $oi --psi SUPPA_0kcl.psi SUPPA_1kcl.psi --tpm SUPPA_0kcl.tpm SUPPA_1kcl.tpm --area 1000 --lower-bound 0.05 -pa -gc -o $out

This is how the head of tpm and psi look like:

`sample1
ENSMUST00000000266 0.000000
ENSMUST00000000514 0.119406
ENSMUST00000000834 0.000000`

`sample1
ENSMUST00000000266 0.000000
ENSMUST00000000514 0.000000
ENSMUST00000000834 0.000000`

`sample1
ENSMUSG00000104478;ENSMUST00000194081 nan
ENSMUSG00000104385;ENSMUST00000194393 nan
ENSMUSG00000102135;ENSMUST00000194605 nan`

`sample1
ENSMUSG00000104478;ENSMUST00000194081 nan
ENSMUSG00000104385;ENSMUST00000194393 nan
ENSMUSG00000102135;ENSMUST00000194605 nan`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions