Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R bindings for taxonkit? #41

Closed
johanneswerner opened this issue Mar 3, 2021 · 4 comments
Closed

R bindings for taxonkit? #41

johanneswerner opened this issue Mar 3, 2021 · 4 comments

Comments

@johanneswerner
Copy link

Hello,

I am quite happy with taxonkit and discovered yesterday that there are is also pytaxonkit - is there also an R package with R bindings to taxonkit?

If not, can anyone help me to start developing it? (I have developed R packages in the past, I am just not sure in how to connect the functionality of taxonkit inside R)

Thank you.

PS: I know an issue is not the best location for this request, unfortunately I did not have a better idea.

@standage
Copy link

standage commented Mar 3, 2021

I wrote Python bindings for TaxonKit recently, if you’d like to use that as a reference. I primarily used the Popen construct in Python’s subprocess library to call TaxonKit, and then loaded the output into dataframes (pandas) for handling in Python.

https://github.com/bioforensics/pytaxonkit/blob/9746225b1c0a9eff708790037e3b53e5d45ac235/pytaxonkit.py#L203-L211

It’s been a long time since I did any serious work in R, so I’m not sure what the best tools are for system calls. But I imagine R’s native dataframes would be suitable for storing most results.

I hope this helps.

@johanneswerner
Copy link
Author

Thank you very much. This is indeed helpful, I am just not quite sure on how to work with this information. :-) Thank you for the clarification in your package.

@shenwei356
Copy link
Owner

Sorry, I'm not familar with R package development :(

@johanneswerner
Copy link
Author

For me, everything is cleared up. Thank you again.

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

No branches or pull requests

3 participants