xavierdidelot / BactDating

Bayesian inference of ancestral dates on bacterial phylogenetic trees
https://xavierdidelot.github.io/BactDating
MIT License
80 stars 15 forks source link

Please Host BactDating on the Anaconda R Channel #37

Closed dnanto closed 3 years ago

dnanto commented 3 years ago

I've included BactDating in a Snakemake workflow and it works great. For reproducibility, I would like to list it as a dependency in a conda YAML file. This would require building and hosting this package on Anaconda. I saw a possible solution on StackOverflow.

If you are too busy, I could look into doing it myself if you don't have an issue with me doing so. Never tried it myself, but it seems doable. Anyway, thank you for this package, looking forward to citing it in my dissertation. Either way, I came up with a hack that works for now.

xavierdidelot commented 3 years ago

Yes I think it is relatively easy to turn a R package into a conda package. For example I know someone did it for my other package TransPhylo, cf https://anaconda.org/bioconda/r-transphylo

I don't really know it is done though, so if you or anybody else could volunteer this would be great!

dnanto commented 3 years ago

Cool, I'll give it a shot, I'll post the steps I took here.

dnanto commented 3 years ago

Ran this:

conda skeleton cran https://github.com/xavierdidelot/BactDating
conda build r-bactdating

Then, created a pull request on the conda-forge channel.