@Controller @RequestMapping(value="/plugin/genenetwork") public class GeneNetworkController extends MolgenisPluginController
| Modifier and Type | Field and Description |
|---|---|
static int |
BATCH_SIZE |
static String |
GN_APP |
static String |
URI |
PLUGIN_URI_PREFIX| Constructor and Description |
|---|
GeneNetworkController(DataService dataService,
GeneNetworkScoreFactory geneNetworkScoreFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,String> |
createEnsembleHugoMap(String geneMappingFilePath) |
protected void |
createEntities(List<String> hpoTerms,
Map<String,String> geneMap,
Scanner rowScanner,
String gene,
int i,
List<Entity> entities) |
protected List<String> |
createHpoTermList(Scanner hpoScanner) |
void |
importScores(String geneNetworkFile,
String geneMappingFile) |
String |
init(org.springframework.ui.Model model) |
protected List<Entity> |
processSingleInputLine(Scanner scanner,
List<String> hpoTerms,
Map<String,String> geneMap) |
getId, getPluginSettings, getUripublic static final String GN_APP
public static final String URI
public static final int BATCH_SIZE
@Autowired public GeneNetworkController(DataService dataService, GeneNetworkScoreFactory geneNetworkScoreFactory)
@RequestMapping(method=GET) public String init(org.springframework.ui.Model model)
@RequestMapping(value="/import",
method=POST)
@ResponseStatus(value=OK)
public void importScores(@RequestParam(value="genenetworkfile")
String geneNetworkFile,
@RequestParam(value="genemappingfile")
String geneMappingFile)
throws IOException
IOExceptionprotected List<Entity> processSingleInputLine(Scanner scanner, List<String> hpoTerms, Map<String,String> geneMap)
protected void createEntities(List<String> hpoTerms, Map<String,String> geneMap, Scanner rowScanner, String gene, int i, List<Entity> entities)
protected Map<String,String> createEnsembleHugoMap(String geneMappingFilePath) throws FileNotFoundException
FileNotFoundExceptionCopyright © 2016. All Rights Reserved.