Skip to content

3.14 build RNAStructure from lines/scratch

Compare
Choose a tag to compare
@mmagnus mmagnus released this 11 Oct 00:41
· 99 commits to master since this release

Build an RNAStructure object from parsing a text input.

rna = RNAStructure()

l = rna.get_empty_line()
                
l = rna.set_res_code(l, <res>)
l = rna.set_atom_code(l, <atomname>)
l = rna.set_res_index(l, <resid>)
l = rna.set_atom_coords(l, <x, y, z>)
                
rna.add_line(l)
       
rna.write(args.output)

sc_2023-10-10_at_20_19_24

  • still not the most pretty, but works...