Commit e7cecc37 authored by Ariane Mora's avatar Ariane Mora

Removed unused function.

parent 27085b30
......@@ -92,11 +92,6 @@ public class GNV {
bedPairFilePath = directory + file.getOriginalFilename();
pairAPI = new PairAPI(bedPairFilePath);
// Write the JSON to a file that will be read by the application.
// It is too large to add as a model attribute.
pairAPI.writeJSONArrToLocalFile(pairAPI.getNetworksInUploadedBedFile(), "networksInBedFile.JSON");
// Set the results flag to be true to show the results page.
redirectAttributes.addFlashAttribute("results", true);
......
......@@ -47,22 +47,6 @@ public class PairAPI {
}
/**
* Writes the JSON object to a local file.
*
* Returns the path of the file.
*/
public static String writeJSONArrToLocalFile(JSONArray jsonArr, String fileName) {
try {
BufferedWriter write = new BufferedWriter(new FileWriter(dataPath + fileName));
write.write(jsonArr.toString());
write.close();
} catch (IOException ex) {
System.out.println("Issue with the file.");
}
return dataPath + fileName;
}
/**
* Gets the networks within a users uploaded bed file.
*
......
......@@ -8,11 +8,6 @@ var genome_attr = {
data: {
genome_data: [],
network_data: [],
path: "/home/ariane/Documents/bodenlab/binfkit/data/json_genome_files/",
file_end: "-human-genome-ucsc-23_11_2017.JSON",
chrom_start_end: "01ChromStartEnds-human-genome-ucsc-23_11_2017.JSON",
chrom_info: "02ChromInfoByName-human-genome-ucsc-23_11_2017.JSON",
exStartEnds: "03ExStartEnds-human-genome-ucsc-23_11_2017.JSON",
genes: "output_ucsc_refseq_genome_ucsc_GRCh37-hg19.tsv",
networks: "networksInBedFile.JSON"
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment