GithubHelp home page GithubHelp logo

Comments (3)

mmagnus avatar mmagnus commented on July 22, 2024

dear @valentin994 it's great that you found the code useful. Let me know if you need any help.

And yeah, let me see what you have so we can improve the package here.

from rna-tools.

valentin994 avatar valentin994 commented on July 22, 2024

In the end, I ended up creating a parser, it might be useful here too, or biopython so let me know what you think.

So the problem I stumbled upon when using RnaStructure().get_sequence is that I wouldn't always get the sequence expected (I can't really explain in biological terms as I'm a developer but I'll run through examples that might give you insight onto this).

For example these pdb files "2l8h", "6b14", "6las" the output from get_sequence() would be:

  • GGCAGAUCUGAGCCUGGGAGCUCUCUGCCRh
  • GACGCGACCGAAAUGGUGAAGGACGGGUCCAGUGCGAAACACGCACUGUUGAGUAGAGUGUGAGCUCCGUAACUGGUCGCGUCghhhhhhhhhhhhhhhhhhhhhhhhh
  • GUUGAUAUGGAUUUACUCCGAGGAGACGAACUACCACGAACAGGGGAAACUCUACCCGUGGCGUCUCCGUUUGACGAGUAAGUCCUAAGUCAACAggggooooghhhhhhhh
  • GGCAUUGUGCCUCGCAUUGCACUCCGCGGGGCGAUAAGUCCUGAAAAGGGAUGUCmhhhhhhhhh GGCAUUGUGCCUCGCAUUGCACUCCGCGGGGCGAUAAGUCCUGAAAAGGGAUGUChh RPNHTIYINNLNEKIKKDELKKSLHAIFSRFGQILDILVKRSLKeRGQAFVIFKEVSSATNALRSeQGFPFYDKPeRIQYAKTDSDIIAKehh TRPNHTIYINNLNEKIKKDELKKSLHAIFSRFGQILDILVKRSLKeRGQAFVIFKEVSSATNALRSeQGFPFYDKPeRIQYAKTDSDIIAKeAhhhhh RPNHTIYINNLNEKIKKDELKKSLHAIFSRFGQILDILVKRSLKeRGQAFVIFKEVSSATNALRSeQGFPFYDKPeRIQYAKTDSDIhhhh

While I would expect:

  • GGCAGAUCUGAGCCUGGGAGCUCUCUGCC
  • GACGCGACCGAAAUGGUGAAGGACGGGUCCAGUGCGAAACACGCACUGUUGAGUAGAGUGUGAGCUCCGUAACUGGUCGCGUC
  • GUUGAUAUGGAUUUACUCCGAGGAGACGAACUACCACGAACAGGGGAAACUCUACCCGUGGCGUCUCCGUUUGACGAGUAAGUCCUAAGUCAACA
  • GGCAUUGUGCCUCGCAUUGCACUCCGCGGGGCGAUAAGUCCUGAAAAGGGAUGUC

The expected sequences is what you can get if you get the fasta version of the files mentioned and you pull out the sequence with SeqIo parser. Now I'm not sure if the sequences I get from this package are the expected behaviour, or if there is any need to be able to parse them out like I do now. If you find it useful I can create a PR or show you more in depth how it would look. I hope that I managed to explain it well enough 😓

from rna-tools.

valentin994 avatar valentin994 commented on July 22, 2024

Oh, I sidetracked from the original question. But yeah initializing with bytes can also be done.

from rna-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.