Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/1298 testing #1300

Merged
merged 124 commits into from
Mar 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
b4f99d4
#1166 Download contents feature , still needs styling to be applied.
jrmartin Jul 31, 2021
99d6208
#1166 eslint fix
jrmartin Jul 31, 2021
6843948
#1173 Downloader instances list
jrmartin Aug 11, 2021
90144d4
Merge remote-tracking branch 'origin/development' into feature/1173
jrmartin Aug 11, 2021
c9ea8fd
Merge remote-tracking branch 'origin/development' into feature/1173
jrmartin Aug 23, 2021
048a54e
#1172 Uploader nblast server functionality
jrmartin Sep 23, 2021
c074b23
#1181 Save styling work in progress
jrmartin Sep 24, 2021
71a8060
#1181 Download component styling. Missing progress bar and error message
jrmartin Sep 24, 2021
8e6e8de
Update term-context-tests-js-vfb-term-context-component-tests-add-med…
Robbie1977 Sep 28, 2021
a5db1b4
Revert "Update term-context-tests-js-vfb-term-context-component-tests…
Robbie1977 Sep 28, 2021
4fef6a9
Cleaning up edge to see if that fixes diff
Robbie1977 Sep 28, 2021
9312711
Merge pull request #1193 from VirtualFlyBrain/alpha
Robbie1977 Oct 3, 2021
040c61d
#1181 Download contents styling
jrmartin Oct 8, 2021
5f475e7
Merge remote-tracking branch 'origin/development' into feature/1181
jrmartin Oct 8, 2021
59c423c
#1181 Merge development. Add script to update snapshots, update snapshot
jrmartin Oct 8, 2021
b627bc8
#1181 Download styling fixes. Adds text to configuration file.
jrmartin Oct 9, 2021
37b752b
#1181 Null checks
jrmartin Oct 10, 2021
94bead0
#1181 update term context tests snapshots
jrmartin Oct 10, 2021
60f4d0c
#1181 snaphot updates for the term context tests
jrmartin Oct 11, 2021
fdb225c
#1181 --updatesnapshots during tests
jrmartin Oct 11, 2021
f72dbc4
#1181 Test with new snapshots
jrmartin Oct 11, 2021
8e0bee1
#1190 id and url generation
ddelpiano Oct 11, 2021
dd997bc
Merge pull request #1194 from VirtualFlyBrain/feature/1181
ddelpiano Oct 11, 2021
5cbfcf6
Merge pull request #1195 from VirtualFlyBrain/feature/1190
jrmartin Oct 11, 2021
3bc9997
Merge remote-tracking branch 'origin/development' into feature/1172
jrmartin Oct 11, 2021
92a3c44
#1172 style vfb uploader and tests for download contents.
jrmartin Oct 22, 2021
d0579af
#1192 update tests
jrmartin Oct 28, 2021
7e8b00d
Merge pull request #1183 from VirtualFlyBrain/feature/1172
ddelpiano Nov 2, 2021
d3204b8
#1238 and #1239 , adds badges to query results and listens to filter
jrmartin Nov 6, 2021
ce282e1
latest snapshot from master
Robbie1977 Nov 8, 2021
8136bab
Merge pull request #1242 from VirtualFlyBrain/development-sync-244a
Robbie1977 Nov 8, 2021
61e1f12
updated snapshot from development
Robbie1977 Nov 8, 2021
a6a05d9
updating client
Robbie1977 Nov 8, 2021
6ca8f61
Merge remote-tracking branch 'origin/development' into feature/1238
jrmartin Nov 17, 2021
969c7d6
#1238 Allow labels to be customized via configuration file
jrmartin Nov 17, 2021
f51149d
#1257 - Tooltip for downloadable types
jrmartin Nov 18, 2021
8282fe0
#1257 fix eslint
jrmartin Nov 19, 2021
463b104
#1259 - FIlters work in progress
jrmartin Nov 19, 2021
ac3235e
#1259 circuit browser filter labels
jrmartin Nov 19, 2021
ea740db
Merge pull request #1252 from VirtualFlyBrain/development-sync-6ec1
Robbie1977 Nov 22, 2021
5ce1d4b
Revert "Revert "Revert "Revert "update snapshot""""
Robbie1977 Nov 22, 2021
0c3aef1
Revert "Revert "Revert "Revert "collecting snapshot""""
Robbie1977 Nov 22, 2021
4aacb37
Revert "Revert "Revert "Revert "Revert "collecting snapshot"""""
Robbie1977 Nov 22, 2021
c7d07f3
Revert "Revert "Revert "Revert "Revert "update snapshot"""""
Robbie1977 Nov 22, 2021
5839ed6
New Snapshots (with upload icon)
Robbie1977 Nov 22, 2021
2059db3
Expanding to all Anatomy
Robbie1977 Nov 23, 2021
4e0cbf8
limiting log as per manual reporting
Robbie1977 Nov 23, 2021
d2f4faf
Merge branch 'development' of https://github.com/VirtualFlyBrain/gepp…
Robbie1977 Nov 23, 2021
442cebd
ranking up expression in search
Robbie1977 Nov 23, 2021
db06ad6
upranking VFBexp in results
Robbie1977 Nov 23, 2021
d34e44a
typo fix
Robbie1977 Nov 23, 2021
3d20af5
Merge pull request #1241 from VirtualFlyBrain/feature/1238
ddelpiano Nov 25, 2021
5a51ed7
Merge pull request #1258 from VirtualFlyBrain/feature/1257
ddelpiano Nov 25, 2021
4876fb2
Merge pull request #1261 from VirtualFlyBrain/feature/1259
ddelpiano Nov 25, 2021
49eb7dd
#1262 Add filter labels for priority list
jrmartin Dec 1, 2021
a77d39c
#1265 revert manipulation of search configuration, now done inside the
jrmartin Dec 1, 2021
fc38b92
#1265 Update material-ui/icons to 4.11.2
jrmartin Dec 2, 2021
1376eb1
#1265 use material-ui/icons 4.0.0
jrmartin Dec 2, 2021
7c0151e
#1265 Updated version of material-ui/icons
jrmartin Dec 2, 2021
118dbdc
#1265 update react-tabs dependency
jrmartin Dec 2, 2021
58a2e27
#1265 update react tabs
jrmartin Dec 2, 2021
cf65506
Fix for labels in the search results
Robbie1977 Dec 3, 2021
80d51bf
fix for labels in search
Robbie1977 Dec 3, 2021
a26c593
Merge pull request #1266 from VirtualFlyBrain/feature/1265
Robbie1977 Dec 3, 2021
6e82b52
Merge pull request #1267 from VirtualFlyBrain/development
Robbie1977 Dec 3, 2021
78e3fb0
Revert "Revert "Revert "Revert "Revert "Revert "update snapshot""""""
Robbie1977 Dec 4, 2021
2e13a28
Revert "Revert "Revert "Revert "Revert "Revert "collecting snapshot""…
Robbie1977 Dec 4, 2021
98da8f7
data & layout fix
Robbie1977 Dec 4, 2021
8207c1f
Revert "Revert "Revert "Revert "Revert "Revert "Revert "collecting sn…
Robbie1977 Dec 4, 2021
0cf6fc8
Revert "Revert "Revert "Revert "Revert "Revert "Revert "update snapsh…
Robbie1977 Dec 4, 2021
f8baf7c
#1263 Circuit browser nodes layout changes
jrmartin Dec 4, 2021
3494609
Merge remote-tracking branch 'origin/development' into feature/1263
jrmartin Dec 4, 2021
f81640c
#1263 eslint fixes
jrmartin Dec 4, 2021
8bc58f1
Merge pull request #1264 from VirtualFlyBrain/feature/1262
ddelpiano Dec 6, 2021
b78cb64
adding classification ref for neurons
Robbie1977 Dec 6, 2021
c5ce7c4
removing any potential log4j issues
Robbie1977 Dec 13, 2021
1627cdd
#1268 Clear filters when neurons are reversed or cleared using the
jrmartin Dec 15, 2021
5df25e1
#316 and #317 undefined, null and function checks
jrmartin Dec 17, 2021
5899287
#316-317 eslint fix
jrmartin Dec 17, 2021
7307ce9
lint fix
Robbie1977 Dec 20, 2021
165b212
#1268 Revert controls.js class, debug setupCamera issue by reverting to
jrmartin Dec 22, 2021
732e319
#1268 revert previous commit
jrmartin Dec 22, 2021
99b5c6f
Test docker container with branch 'VFBv2.2.0.7' for geppetto-client
jrmartin Dec 22, 2021
5215673
#1268 Revert test
jrmartin Dec 22, 2021
703d053
removing indexing enhancements
Robbie1977 Jan 10, 2022
f056b38
removing for fix
Robbie1977 Jan 10, 2022
9c65cc4
Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "colle…
Robbie1977 Jan 10, 2022
d15519f
Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "updat…
Robbie1977 Jan 10, 2022
cebd1f2
new snapshot for pdb-dev
Robbie1977 Jan 10, 2022
192d2c4
Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Rever…
Robbie1977 Jan 10, 2022
a458450
Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Rever…
Robbie1977 Jan 10, 2022
f865d17
waiting for medulla to load
Robbie1977 Jan 10, 2022
317a5b2
adding more delay
Robbie1977 Jan 10, 2022
4aeaaa6
#314 extending tree to work with more than a single relationship
ddelpiano Jan 10, 2022
e7f6fa2
Merge pull request #1271 from VirtualFlyBrain/feature/316-317
ddelpiano Jan 10, 2022
1df4870
cleaning up client branch - no change
Robbie1977 Jan 11, 2022
53947da
Merge pull request #1288 from VirtualFlyBrain/development
Robbie1977 Jan 13, 2022
555fbb8
#1289 Set font of controls only for circuit browser instead of changing
jrmartin Jan 14, 2022
d1eb30c
Merge pull request #1286 from VirtualFlyBrain/feature/314_vfb2
ddelpiano Jan 14, 2022
4e0af0c
Merge pull request #1290 from VirtualFlyBrain/feature/1289
ddelpiano Jan 17, 2022
7f6e407
allowing domains inside aligned images
Robbie1977 Jan 18, 2022
299bebb
Merge remote-tracking branch 'origin/development' into feature/1268
jrmartin Jan 18, 2022
8693197
testing if 20% will cover layout variations
Robbie1977 Jan 19, 2022
0370c25
Merge remote-tracking branch 'origin/development' into feature/1263
jrmartin Jan 24, 2022
1662f89
#1263 circuit browser layout changes
jrmartin Jan 28, 2022
a989f9b
#1268 Font fixes
jrmartin Jan 28, 2022
c000ff8
#1268 Set same font to weight field
jrmartin Jan 28, 2022
f8100c9
#1263 Divide text inside node to take all rows
jrmartin Jan 30, 2022
6545bbf
removing double space
Robbie1977 Jan 31, 2022
e5ef3ba
allowing for minor graph layout changes
Robbie1977 Jan 31, 2022
1936fe5
#1263 Text spread across lines and auto font size
jrmartin Feb 2, 2022
62b0b82
Merge branch 'feature/1263' of https://github.com/VirtualFlyBrain/gep…
jrmartin Feb 2, 2022
683d860
Reloading with https if secure websocket is required
Robbie1977 Feb 3, 2022
42f62eb
Merge pull request #1270 from VirtualFlyBrain/feature/1268
ddelpiano Feb 8, 2022
8dc7b5a
Merge remote-tracking branch 'origin/development' into feature/1263
jrmartin Feb 9, 2022
58bb454
#320 Check for undefined objects
jrmartin Feb 10, 2022
055d6ef
Merge pull request #1291 from VirtualFlyBrain/feature/1263
ddelpiano Feb 11, 2022
9d945c3
Merge pull request #1292 from VirtualFlyBrain/feature/320
ddelpiano Feb 11, 2022
54affd9
updating menu links to hugo documentation site
Robbie1977 Feb 22, 2022
15390dc
reducing facet labels
Robbie1977 Feb 25, 2022
2d7b78b
manually adding in uniqueFacets
Robbie1977 Mar 2, 2022
af541d7
typo fix
Robbie1977 Mar 2, 2022
959b066
#1298 Use uniqueFacets in circuit browser to assign color to legend/bar
jrmartin Mar 9, 2022
1e1c91d
adding all uniqueFacets with colour blind test colours
Robbie1977 Mar 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ARG geppettoSimulationRelease=vfb_20200604_a
ARG geppettoDatasourceRelease=vfb_20200604_a
ARG geppettoModelSwcRelease=v1.0.1
ARG geppettoFrontendRelease=development
ARG geppettoClientRelease=VFBv2.2.0.7
ARG geppettoClientRelease=VFBv2.2.2
ARG ukAcVfbGeppettoRelease=download

ARG mvnOpt="-Dhttps.protocols=TLSv1.2 -DskipTests --quiet -Pmaster"
Expand All @@ -38,6 +38,7 @@ ENV VFB_OWL_SERVER=${VFB_OWL_SERVER_ARG}
ENV VFB_R_SERVER=${VFB_R_SERVER_ARG}
ENV SOLR_SERVER=${SOLR_SERVER_ARG}
ENV googleAnalyticsSiteCode=${googleAnalyticsSiteCode_ARG}
ENV LOG4J_FORMAT_MSG_NO_LOOKUPS=true

RUN /bin/echo -e "\e[1;35mORIGIN BRANCH ------------ $originBranch\e[0m" &&\
/bin/echo -e "\e[1;35mTARGET BRANCH ------------ $targetBranch\e[0m" &&\
Expand Down
79 changes: 20 additions & 59 deletions components/VFBMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import VFBTermInfoWidget from './interface/VFBTermInfo/VFBTermInfo';
import Logo from '@geppettoengine/geppetto-client/components/interface/logo/Logo';
import Canvas from '@geppettoengine/geppetto-client/components/interface/3dCanvas/Canvas';
import QueryBuilder from '@geppettoengine/geppetto-client/components/interface/query/queryBuilder';
import VFBDownloadContents from './interface/VFBDownloadContents/VFBDownloadContents';
import VFBUploader from './interface/VFBUploader/VFBUploader';
import HTMLViewer from '@geppettoengine/geppetto-ui/html-viewer/HTMLViewer';
import VFBListViewer from './interface/VFBListViewer/VFBListViewer';
Expand Down Expand Up @@ -52,6 +53,7 @@ class VFBMain extends React.Component {
quickHelpVisible: undefined,
UIUpdated: true,
wireframeVisible: false,
downloadContentsVisible : true,
uploaderContentsVisible : true
};

Expand Down Expand Up @@ -488,6 +490,12 @@ class VFBMain extends React.Component {
[buttonState]: !this.state[buttonState]
});
break;
case 'downloadContentsVisible':
this.refs.downloadContentsRef?.openDialog();
break;
case 'uploaderContentsVisible':
this.refs.uploaderContentsRef?.openDialog();
break;
case 'quickHelpVisible':
if (this.state[buttonState] === undefined) {
this.setState({
Expand Down Expand Up @@ -527,6 +535,9 @@ class VFBMain extends React.Component {
case 'triggerSetTermInfo':
this.handlerInstanceUpdate(click.value[0]);
break;
case 'downloadContentsVisible':
this.refs.downloadContentsRef?.openDialog();
break;
case 'uploaderContentsVisible':
this.refs.uploaderContentsRef?.openDialog();
break;
Expand Down Expand Up @@ -1286,63 +1297,6 @@ class VFBMain extends React.Component {
idsList += ",";
}
idsList += this.idFromURL;
// populate page meta for this term for indexing
try {
window.ga('vfb.send', 'pageview', window.location.href );
if ( window.XMLHttpRequest ) {
var xhr = new XMLHttpRequest();
xhr.onload = function () {
try {
if (this.responseXML.title.indexOf("404 Not Found") < 0) {
document.title = 'Virtual Fly Brain (' + this.responseXML.title + ')';
document.body.style.font = "x-large";
document.querySelector('meta[property="og:title"]').setAttribute("content",this.responseXML.title);
document.querySelector('meta[name="description"]').setAttribute("content",this.responseXML.getElementById('json').innerText.substring(0, 4900));
document.querySelector('meta[property="og:description"]').setAttribute("content",this.responseXML.getElementById('json').innerText.substring(0, 4900));
if (document.getElementById('metaDesc') != null) {
if (this.responseXML.head != undefined && this.responseXML.head.getElementsByTagName('script') != undefined && this.responseXML.head.getElementsByTagName('script') != null && this.responseXML.head.getElementsByTagName('script')[1] != undefined) {
document.getElementById('metaDesc').innerHTML = this.responseXML.head.getElementsByTagName('script')[1].innerHTML;
}
} else {
if (this.responseXML.head != undefined && this.responseXML.head.getElementsByTagName('script') != undefined && this.responseXML.head.getElementsByTagName('script') != null && this.responseXML.head.getElementsByTagName('script')[1] != undefined) {
var script = document.createElement('script');
script.type = 'application/ld+json';
script.id = 'metaDesc';
script.innerHTML = this.responseXML.head.getElementsByTagName('script')[1].innerHTML;
document.getElementsByTagName('head')[0].appendChild(script);
}
}
var viewport = !!document.querySelector("meta[name='viewport']");
viewport = viewport ? document.querySelector("meta[name='viewport']") : document.createElement('meta');
viewport.setAttribute('name', 'viewport');
viewport.setAttribute('content', 'width=device-width, initial-scale=1');
document.head.appendChild(viewport);
}
} catch (err) {
console.log(err);
}
}
xhr.open( 'GET', 'https://virtualflybrain.org/data/VFB/json/' + this.idFromURL + '.html')
xhr.responseType = 'document';
xhr.send();
}
} catch (err) {
console.error(err);
}
try {
var link = !!document.querySelector("link[rel='amphtml']");
link = link ? document.querySelector("link[rel='amphtml']") : document.createElement('link');
link.setAttribute('rel', 'amphtml');
link.setAttribute('href', 'https://virtualflybrain.org/data/VFB/json/' + this.idFromURL + '.html');
document.head.appendChild(link);
var conlink = !!document.querySelector("link[rel='canonical']");
conlink = conlink ? document.querySelector("link[rel='canonical']") : document.createElement('link');
conlink.setAttribute('rel', 'canonical');
conlink.setAttribute('href', 'https://virtualflybrain.org/reports/' + this.idFromURL);
document.head.appendChild(conlink);
} catch (err) {
console.error(err);
}
} else if (idList[list].indexOf("i=") > -1) {
if (idsList.length > 0) {
idsList = "," + idsList;
Expand All @@ -1351,7 +1305,7 @@ class VFBMain extends React.Component {
} else if (idList[list].indexOf("q=") > -1) {
const multipleQueries = idList[list].replace("q=","").replace("%20", " ").split(";");
let that = this;
multipleQueries?.forEach( query => {
multipleQueries?.forEach( query => {
const querySplit = query.split(",");
that.urlQueryLoader.push({ id : querySplit[0].trim(), selection : querySplit[1].trim() });
});
Expand Down Expand Up @@ -1392,7 +1346,7 @@ class VFBMain extends React.Component {
GEPPETTO.on(GEPPETTO.Events.Instance_added, function (instance) {
that.props.instanceAdded(instance);
});

GEPPETTO.on(GEPPETTO.Events.Instances_created, function (instances) {
// Set template Instance to be not clickable in 3D viewer
if ( instances[0]?.id?.includes(window.templateID) ) {
Expand Down Expand Up @@ -1529,6 +1483,10 @@ class VFBMain extends React.Component {

GEPPETTO.on(GEPPETTO.Events.Websocket_disconnected, function () {
window.ga('vfb.send', 'event', 'disconnected', 'websocket-disconnect', (window.location.pathname + window.location.search));
if (GEPPETTO.MessageSocket.protocol == 'wss://' && location.protocol !== 'https:') {
console.log("%c Unsecure connection used reloading with HTTPS connection... ", 'background: #444; color: #bada55');
location.replace(`https:${location.href.substring(location.protocol.length)}`);
}
if (GEPPETTO.MessageSocket.socketStatus == GEPPETTO.Resources.SocketStatus.CLOSE) {
if (GEPPETTO.MessageSocket.attempts < 10) {
window.ga('vfb.send', 'event', 'reconnect-attempt:' + GEPPETTO.MessageSocket.attempts, 'websocket-disconnect', (window.location.pathname + window.location.search));
Expand Down Expand Up @@ -1752,7 +1710,10 @@ class VFBMain extends React.Component {
searchConfiguration={this.searchConfiguration}
datasourceConfiguration={this.datasourceConfiguration} />

<VFBDownloadContents ref="downloadContentsRef" open={false} />

<VFBUploader ref="uploaderContentsRef" open={false} />

{this.htmlToolbarRender}
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,20 @@ var locationCypherQuery = ( instances, paths, weight ) => ({
+ " WITH * ORDER BY index DESC"
+ " UNWIND relationships(path) as sr"
+ " OPTIONAL MATCH cp=(x:Neuron:has_neuron_connectivity)-[:synapsed_to]-(y:Neuron:has_neuron_connectivity) WHERE x=apoc.rel.startNode(sr) AND y=apoc.rel.endNode(sr) OPTIONAL MATCH fp=(x)-[r:synapsed_to]->(y) WHERE r.weight[0] >= " + weight?.toString()
+ " RETURN distinct a as root, collect(distinct fp) as pp, collect(distinct cp) as p, collect(distinct id(r)) as fr, sourceNode as source, targetNode as target, max(length(path)) as maxHops, collect(distinct toString(id(r))+':'+toString(index)) as relationshipY ",
+ " OPTIONAL MATCH (x)-[xio:INSTANCEOF]->(xpc:Class) OPTIONAL MATCH (y)-[yio:INSTANCEOF]->(ypc:Class) WITH *,'\"'+ x.short_form+'\":{\"'+xpc.short_form+'\":\"' + xpc.label + '\"},\"'+ y.short_form+'\":{\"'+ypc.short_form+'\":\"' + ypc.label + '\"}' as Class"
+ " RETURN distinct a as root, collect(distinct fp) as pp, collect(distinct cp) as p, collect(distinct id(r)) as fr, sourceNode as source, targetNode as target, max(length(path)) as maxHops, collect(distinct toString(id(r))+':'+toString(index)) as relationshipY, "
+ " apoc.convert.fromJsonMap('{' + apoc.text.join(collect(Class),',') + '}') as class ",
"resultDataContents": ["row", "graph"]
}
]
});

var Neo4jLabels = {
FAFB : "FAFB",
L1EM : "L1EM",
FlyEM_HB : "FlyEM_HB"
}

// See query explanation on https://github.com/VirtualFlyBrain/graph_queries/blob/main/weighted_path.md

var configuration = {
Expand Down Expand Up @@ -63,46 +72,43 @@ var styling = {
// Color apply to target and source nodes when hovering over a link or a node.
defaultNeighborNodesHoverColor : "orange",
// Font used for text in nodes
defaultNodeFont : "5px sans-serif",
defaultNodeFont : "8px sans-serif",
// Color of font in node's text
defaultNodeFontColor : "black",
// Node border color
defaultBorderColor : "black",
// When hovering over a node, the node's border color changes to create a halo effect
defaultNodeHoverBoderColor : "red",
// Title bar (in node) background color
defaultNodeTitleBackgroundColor : "#11bffe",
defaultNodeTitleBackgroundColor : "grey",
// Description area (in node) background color
defaultNodeDescriptionBackgroundColor : "white",
nodeColorsByLabel : {
"Template" : "#ff6cc8",
"GABAergic" : "#9551ff",
"Dopaminergic" : "#3551ff",
"Cholinergic" : "#95515f",
"Glutamatergic" : "#95f1ff",
"Octopaminergic" : "#f3511f",
"Serotonergic" : "#9501f0",
"Motor_neuron" : "#fffa30",
"Sensory_neuron" : "#ff3a3a",
"Peptidergic_neuron" : "#5f6a3a",
"Glial_cell" : "#ff3a6a",
"Clone" : "#d6007d",
"Synaptic_neuropil" : "#00a2aa",
"License" : "#0164d8",
"Person" : "#023f00",
"Neuron" : "#7f2100",
"Neuron_projection_bundle" : "#d6327d",
"Resource" : "#005f1d",
"Site" : "#005f1d",
"Expression_pattern" : "#534700",
"Split" : "#e012e3",
"DataSet" : "#b700b5",
"Ganglion" : "#d6007d",
"Neuromere" : "#d6507d",
"Cell" : "#ff6a3a",
"Property" : "#005f1d",
"Anatomy" : "#00a2aa",
"_Class" : "#0164d8"
"GABAergic" : "#377eb8",
"Neuron_projection_bundle" : "#ff7f00",
"Nervous_system" : "#4daf4a",
"Dopaminergic" : "#f781bf",
"Motor_neuron" : "#a65628",
"Cholinergic" : "#984ea3",
"Neuromere" : "#999999",
"Expression_pattern_fragment" : "#e41a1c",
"Peptidergic_neuron" : "#dede00",
"Ganglion" : "#377eb8",
"Muscle" : "#ff7f00",
"Glutamatergic" : "#4daf4a",
"Cluster" : "#f781bf",
"Clone" : "#a65628",
"Octopaminergic" : "#984ea3",
"Anatomy" : "#999999",
"Adult" : "#e41a1c",
"Synaptic_neuropil_subdomain" : "#dede00",
"Expression_pattern" : "#377eb8",
"Synaptic_neuropil_block" : "#ff7f00",
"Synaptic_neuropil_domain" : "#4daf4a",
"Serotonergic" : "#f781bf",
"Larva" : "#a65628",
"Neuron" : "#984ea3",
"Sensory_neuron" : "#999999"
},
controlIcons : {
home : "fa fa-home",
Expand All @@ -120,5 +126,6 @@ module.exports = {
configuration,
styling,
restPostConfig,
locationCypherQuery
locationCypherQuery,
Neo4jLabels
};
34 changes: 34 additions & 0 deletions components/configuration/VFBDownloadContents/configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"postURL":"https://zip.virtualflybrain.org/download",
"contentType": "application/json",
"zipName" : "VFB Files.zip",
"options" :{
"obj": {
"label" : "OBJ",
"tooltip" : "Download OBJ"
},
"swc": {
"label" : "SWC",
"tooltip" : "Download SWC"
},
"nrrd": {
"label" : "NRRD",
"tooltip" : "Download NRRD"
},
"reference": {
"label" : "References",
"tooltip" : "Download References"
}
},
"text" : {
"title" : "Download Data",
"typesSubtitle" : "Please select the desired types",
"variablesSubtitle" : "Please select Variables:",
"noVariablesSubtitle" : "No loaded variables",
"errorMessage" : "Something went wrong... We were not able to download the data. Please try again.",
"noEntriesFound" : "No entries found for the types and variables selected.",
"cancelButton" : "Cancel",
"downloadButton" : "Download",
"tryAgainButton" : "Try Again"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added components/configuration/VFBDownloadContents/obj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 21 additions & 5 deletions components/configuration/VFBMain/searchConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var searchStyle = {
singleResult: {
"color": "white",
"fontSize": "18px",

"whiteSpace" : "normal",
":hover": {
"color": "#11bffe",
"background-color": "#252323",
Expand Down Expand Up @@ -91,25 +91,29 @@ var datasourceConfiguration = {
"defType": "edismax",
"qf": "label^100 synonym^100 label_autosuggest_ws label_autosuggest_e label_autosuggest synonym_autosuggest_ws synonym_autosuggest shortform_autosuggest",
"indent": "true",
"fl": "short_form,label,synonym,id,facets_annotation",
"fl": "short_form,label,synonym,id,facets_annotation,unique_facets",
"start": "0",
"pf":"true",
"fq": [
"shortform_autosuggest:VFB* OR shortform_autosuggest:FB* OR facets_annotation:DataSet OR facets_annotation:pub"
],
"rows": "100",
"wt": "json",
"bq": "shortform_autosuggest:VFB*^110.0 shortform_autosuggest:FBbt*^100.0 label_s:\"\"^2 synonym_s:\"\" short_form:FBbt_00003982^2 facets_annotation:Deprecated^0.001"
"bq": "shortform_autosuggest:VFBexp*^10.0 shortform_autosuggest:VFB*^100.0 shortform_autosuggest:FBbt*^100.0 label_s:\"\"^2 synonym_s:\"\" short_form:FBbt_00003982^2 facets_annotation:Deprecated^0.001"
}
};

var searchConfiguration = {
"resultsMapping":
{
"name": "label",
"id": "short_form"
"id": "short_form",
"labels" : "unique_facets"
},
"label_manipulation" : label => label,
"filters_expanded": true,
"filter_positive" : "^100",
"filter_negative" : "^0.001",
"filters": [
{
"key": "facets_annotation",
Expand Down Expand Up @@ -305,6 +309,13 @@ var searchConfiguration = {
if (b.label.toLowerCase().indexOf(InputString.toLowerCase()) > -1 && b.label.toLowerCase().indexOf(InputString.toLowerCase()) < a.label.toLowerCase().indexOf(InputString.toLowerCase())) {
return 1;
}
// move up expression (VFBexp) terms
if (a.id.indexOf("VFBexp") > -1 && b.id.indexOf("VFBexp") < 0) {
return -1;
}
if (b.id.indexOf("VFBexp") > -1 && a.id.indexOf("VFBexp") < 0) {
return 1;
}
// if the match in the id is closer to start then move up
if (a.id.toLowerCase().indexOf(InputString.toLowerCase()) > -1 && a.id.toLowerCase().indexOf(InputString.toLowerCase()) < b.id.toLowerCase().indexOf(InputString.toLowerCase())) {
return -1;
Expand All @@ -323,11 +334,16 @@ var searchConfiguration = {
},
"clickHandler": function (id) {
window.addVfbId(id);
},
"Neo4jLabels" : {
"FAFB" : "FAFB",
"L1EM" : "L1EM",
"FlyEM_HB" : "FlyEM_HB"
}
};

module.exports = {
searchStyle,
searchConfiguration,
datasourceConfiguration,
datasourceConfiguration
};
Loading