Gaius-Augustus / TSEBRA

TSEBRA: Transcript Selector for BRAKER
48 stars 5 forks source link

Execution issue still persists with ```get_longest_isoform.py``` #49

Open sahoo-rk opened 8 months ago

sahoo-rk commented 8 months ago

I execute the script with a single braker.gtf file and the error still persists in the updated version (I've gone through the issue mentioned at #34 ).

get_longest_isoform.py --gtf braker.gtf --out longiso.gtf

### READING GENE PREDICTION: [braker.gtf]
### BUILD OVERLAP GRAPH
### CHOOSE LONGEST ISOFORM FOR EACH GENE
Traceback (most recent call last):
  File "/home/sahoork/dumpack/TSEBRA/bin/get_longest_isoform.py", line 107, in <module>
    main()
  File "/home/sahoork/dumpack/TSEBRA/bin/get_longest_isoform.py", line 63, in main
    tx_longest = sorted([graph.__tx_from_key__(n) for \
  File "/home/sahoork/dumpack/TSEBRA/bin/get_longest_isoform.py", line 64, in <lambda>
    n in comp], key=lambda t:t.get_cds_len())[-1]
AttributeError: 'Transcript' object has no attribute 'get_cds_len'

Am I missing something here? Please suggest.

Thanks,

LarsGab commented 8 months ago

Hi,

I made an update that should fix this issue.

Best, Lars