Weeks-UNC/RNAvigate

Request for wrapper function

Opened this issue · 0 comments

Not an issue, but a request.

A wrapper that combines the following two functions to return the nucleotide sequence and DBN for a desired region of a secondary structure would be very nice. I think people would use this widely if it were included in the documentation section "Secondary Structure Drawings" since it greatly speeds up the process of creating these in StructureEditor, VARNA, and other programs requiring similar input types.

Sample.get_data("ss").get_dotbracket()[100:150] #returns nt sequence for region 100-150 of Sample
Sample.get_data("ss").sequence[100:150] #returns DBN for matching region 100-150 of Sample

I think the wrapper would just need two arguments: sample and region.