griffithlab / pVACtools

http://www.pvactools.org
BSD 3-Clause Clear License
137 stars 59 forks source link

Error occurs if there are no transcripts in set #1037

Closed evelyn-schmidt closed 7 months ago

evelyn-schmidt commented 10 months ago

https://github.com/griffithlab/pVACtools/blob/b74da8797dc23929c6bc4e09912f1c402f47b6b9/pvactools/tools/pvacview/server.R#L717

I noticed that if there are no transcripts in the set/there was no passing peptides, pvacview displays the error: An error has occurred. Check your logs or contact the app author for clarification.. When running it locally the error is: 'names' attribute [6] must be the same length as the vector [5]..

So I made the change to L171 to be: GB_transcripts <- data.frame("Transcript" = character(), "Expression" = character(), "TSL" = character(), "Biotype" = character(), "Transcript Length (#AA)"= character(), "Length" = character())

This seems to fix the issue. I believe the problem was just that the vector was missing "Transcript Length (#AA)"= character().

What the error looked liked:

Screenshot 2023-11-10 at 5 50 13 PM
susannasiebert commented 7 months ago

You fix was deployed in version 4.0.7. Closing this issue.