Skip to content

Add Tsallis metric#17

Merged
esebesty merged 23 commits into
esebesty:masterfrom
gallardoalba:Add_Tsallis_metric
Apr 28, 2026
Merged

Add Tsallis metric#17
esebesty merged 23 commits into
esebesty:masterfrom
gallardoalba:Add_Tsallis_metric

Conversation

@gallardoalba
Copy link
Copy Markdown
Contributor

@gallardoalba gallardoalba commented Jan 20, 2026

Tsallis entropy is a generalization of the classical Shannon entropy, introducing a parameter q that adjusts the sensitivity of the entropy measure to the distribution of probabilities. For q = 1 Tsallis entropy reduces to Shannon entropy. For q != 1 it allows more or less emphasis on rare or abundant events in the data.

Source: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0266618

Addition of Tsallis entropy metric:

  • The Tsallis entropy metric was implemented as a new diversity measure, allowing users to specify the parameter q.
  • Functions and documentation were updated to support Tsallis entropy, including the ability to calculate it for a range of q values.
  • The vignette and examples were expanded to demonstrate the use and interpretation of Tsallis entropy in splicing diversity analysis.

@gallardoalba gallardoalba marked this pull request as ready for review January 21, 2026 01:31
Comment thread vignettes/SplicingFactory.Rmd Outdated
regression. This approach allows you to assess whether the relationship between
entropy and $q$ differs between groups, and to test for interaction effects.

Below is an example of how to fit a linear model for each gene, modeling Tsallis
Copy link
Copy Markdown
Contributor Author

@gallardoalba gallardoalba Jan 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not really sure if the linear model test should be included as a new function, or just keep is as an usage example in the vignette.

@gallardoalba
Copy link
Copy Markdown
Contributor Author

Dear Dr. @esebesty, I think the code is ready for review. My intention is to integrate this tool in this Galaxy training https://training.galaxyproject.org/training-material/topics/transcriptomics/tutorials/differential-isoform-expression/tutorial.html

@gallardoalba
Copy link
Copy Markdown
Contributor Author

gallardoalba commented Feb 3, 2026

Dear @esebesty, finally I decided to create an independen package for integrating the Tsallis analyis (TSENAT). I used theSplicingFactory code as reference, but modified it substantially; I mentioned that in the README. I hope this is fine for you. I think it is a better approach, since I would be interested in keeping expanding the Tsallis analyisis, and it would make it much easier. Please, feel free to contribute or provide feedback, it would be very welcome. Thank you so much in any case.

@esebesty
Copy link
Copy Markdown
Owner

Hey, sorry for the delay, stuff happened, and had no time, I can merge your pull request now, if you are still planning it.

@gallardoalba
Copy link
Copy Markdown
Contributor Author

Yes, the PR can be merged if you find it adequate, but first I would like to improve the implementation.

@gallardoalba gallardoalba reopened this Feb 17, 2026
@esebesty
Copy link
Copy Markdown
Owner

OK, great, I'll wait for your improved implementation. In the meantime, I'll update the build workflow config.

@gallardoalba
Copy link
Copy Markdown
Contributor Author

Hi @esebesty, the improvements where included, sorry for the delay.

@gallardoalba
Copy link
Copy Markdown
Contributor Author

I modified the implementation because the tests (Wilcoxon/Shuffle) are not adequate for Tsallis multi-q values. Also the implementation has been enhanced for using natural logarithm base for mathematical rigor, species richness support (q=0), vectorized matrix operations for efficiency, and numerical stability (q_tol=1e-6). I made deep research on Tsallis entropy on the last months; the results are summarized in https://gallardoalba.github.io/TSENAT/articles/TSENAT.html. Regards.

@esebesty esebesty merged commit 23cd526 into esebesty:master Apr 28, 2026
@gallardoalba gallardoalba deleted the Add_Tsallis_metric branch April 28, 2026 11:44
@gallardoalba
Copy link
Copy Markdown
Contributor Author

The work on Tsallis entropy is not published (I developed this small project on it in my free time); if you are interested in working on it with me, let me know; I am very interesting in the entropy-based approach @esebesty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants