Requires new upload, where choosing organism is mandatory. In old upload, that step can be skipped sometimes.
This pull request removes the unnecessary guess_organism check from the code. It also adds a check for a null organism and throws an error if it is null, as organism should never be null.
This fixes the issue where guess_organism was returning two organisms (rat, mouse) when probes were very similar (30% threshold), and crashing computation.
[createPGX] creating pgx object...
[guess_organism] auto-detected organism = MouseRat
Error in if (tolower(organism) != tolower(guess_organism)) { :
the condition has length > 1
Requires new upload, where choosing organism is mandatory. In old upload, that step can be skipped sometimes.
This pull request removes the unnecessary guess_organism check from the code. It also adds a check for a null organism and throws an error if it is null, as organism should never be null.
This fixes the issue where guess_organism was returning two organisms (rat, mouse) when probes were very similar (30% threshold), and crashing computation.