Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gnv
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ariane Mora
gnv
Commits
e7cecc37
Commit
e7cecc37
authored
Dec 11, 2017
by
Ariane Mora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused function.
parent
27085b30
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
26 deletions
+0
-26
GNV.java
gnvweb/eneg/src/main/java/com/gnv/eneg/GNV.java
+0
-5
PairAPI.java
gnvweb/eneg/src/main/java/com/gnv/eneg/PairAPI.java
+0
-16
genome.js
gnvweb/eneg/src/main/resources/public/js/vis/genome.js
+0
-5
No files found.
gnvweb/eneg/src/main/java/com/gnv/eneg/GNV.java
View file @
e7cecc37
...
...
@@ -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
);
...
...
gnvweb/eneg/src/main/java/com/gnv/eneg/PairAPI.java
View file @
e7cecc37
...
...
@@ -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.
*
...
...
gnvweb/eneg/src/main/resources/public/js/vis/genome.js
View file @
e7cecc37
...
...
@@ -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"
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment