Skip to content
Permalink
e37ee19ff8
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
25 lines (21 sloc) 629 Bytes
package edu.uconn.tripoint.export;
import quin.network.Location;
public class NonCodingCytoscapeNode extends CytoscapeNode{
public Location _l;
public NonCodingCytoscapeNode(int id, Location l) {
super(id);
_l = l;
}
@Override
public String toJSON(){
StringBuilder sb = new StringBuilder();
sb.append("{\n");
sb.append("\"data\" : {\n");
sb.append("\"id\" : \""+getId()+"\",\n");
sb.append("\"type\" : \"NonCoding Target\",\n");
sb.append("\"name\" : \""+_l.getChr()+":"+_l.getStart()+"-"+_l.getEnd()+"\"\n");
sb.append("}\n");
sb.append("}\n");
return sb.toString();
}
}