3 ms·
I'd looked into BioJulia, but I don't really need packages for handling sequence data. I've never had to use the equivalent python packages either, since it's n
by valarauko 6y ago
I'd looked into BioJulia, but I don't really need packages for handling sequence data. I've never had to use the equivalent python packages either, since it's not really my field of bioinformatics - yet. Most of my work is ad-hoc analyses of non-genetic non-protein sequences, for which no packages currently exist in any environment. Mostly, I need a guide covering my usual use case of pandas & mostly string operations. How do I find substrings & replace them efficiently? How do you split a string with delimiters? Regular Expressions?
All the Julia guides I looked into were very heavy about in built mathematical operations, but didn't touch upon string operations. I'm sure I'll have to look up the documentation at some point anyway, but was wondering if there's a Julia guide for people like me.
- eigenspace 6y agoI'm not in bioinformatics and don't do string processing, so I can't really help too much here. I'd really urge you to come ask this on the julia Discourse Forum or Zulip and I promise you'll get high quality useful responses from people who understand your needs better than I. > How do I find substrings & replace them efficiently? How do you split a string with delimiters? Regular Expressions? This is something that the BioJulia people have put a lot of work into. Yes, you can use regular expressions, but they've managed to squeeze a lot of performance out of more specialized approaches, e.g. https://github.com/BioJulia/Automa.jl https://github.com/BioJulia/Automa.jl https://github.com/jakobnissen/ScanByte.jl https://github.com/jakobnissen/ScanByte.jl But for more straightforward usage, julia has the `findfirst` function which can search for occurrences of a substring, `replace` which can do replacements either with a literal pattern or a regex, and `split` which can split a string with delimiters.
- valarauko 6y agoThank you! Automa.jl & ScanByte.jl sound like a good fit for some of the future projects I have lined up. My current needs are fairly simple, and I can work with stuff like `findfirst` and `split`. It was more an issue that string handling wasn't covered in any of the Julia courses I did, geared as they were towards mathematics. DataFrames.jl would probably cover 80% of my other needs.