add example of #[pyclass] usage#38
Conversation
|
Hi, thanks this is greatly helpful |
|
@davidhewitt following up.... see changes in: branch
PyRecord:
SequenceCollection - is a HashMap<String, Py>, created by PyRecord .sequences() or directly conversion functions gbk_to_faa etc. , returns as a PyResult FeatureCollection - is a HashMap<String, Py>, created by PyRecord pymethod .features() RecordCollection - HashMap<String, Py>, top-level return of parse_gbk/parse_embl, returns as a PyResult PyFeatureInfo - contains per single gene info: key: locus_tag, gene, product, start, stop, strand, codon_start, extras (extras is a store for optional tags that can crop up like old_locus_tag etc) PySequenceInfo - contains per single gene info: key: locus_tag, sequence_faa (protein), sequence_ffn (gene sequence), extras LocusTagIterator - key iterator returned by iter on any collection. Future - moving away from a separate gbk, embl (stored in InternalRecord) towards a more generic record on the Rust side so built with that in mind for ease of later change. I am getting: (mac osx benchmarks) Big improvement on python integration!
|
|
Closing this with thanks, as integrated into microbiorust-py with pyclasses and pymethods |
Hello! Just pushing this example following our chat right now.
Feel free to ping me to ask further, hope this proves useful to play with 🚀