StringBuffer seq=new StringBuffer(rnaTrim.getSeq());
StringBuffer struc=new StringBuffer(rnaTrim.getStructDBN());
for(int i=0;i<rnaTrim.getSeq().length();i++){
+ //TODO: Jalview utility for gap detection java.utils.isGap()
+ //TODO: Switch to jalview rna datamodel
if(seq.substring(i, i+1).compareTo("-")==0 || seq.substring(i, i+1).compareTo(".")==0){
if(!rnaTrim.findPair(i).isEmpty()){
- System.out.println(rnaTrim.findPair(i));
int m=rnaTrim.findPair(i).get(1);
int l=rnaTrim.findPair(i).get(0);
public void actionPerformed(ActionEvent e) {
FullBackup sel = (FullBackup) _sideList.getSelectedValue();
sel.rna.setSequence("A");
- /*try {
- RNA nRNA = new RNA(generateDefaultName());
- nRNA.setRNA(_seq.getText(), _str.getText());
- nRNA.drawRNARadiate(vp.getConfig());
- _rnaList.add(new VARNAConfig(),nRNA,true);
- } catch (ExceptionUnmatchedClosingParentheses e1) {
- JOptionPane.showMessageDialog(vp, e1.getMessage(),"Error", JOptionPane.ERROR_MESSAGE);
- } catch (ExceptionFileFormatOrSyntax e1) {
- JOptionPane.showMessageDialog(vp, e1.getMessage(),"Error", JOptionPane.ERROR_MESSAGE);
- }*/
- }
+ }
});
//_seqPanel.setLayout(new BorderLayout());