3.14 build RNAStructure from lines/scratch
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)
- still not the most pretty, but works...