Changes for page Co-Simulation The Virtual Brain Multiscale
Last modified by ldomide on 2024/04/08 12:55
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (1 modified, 2 added, 3 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - Co-SimulationThe Virtual Brain Multiscale1 +The Virtual Brain Multiscale - Content
-
... ... @@ -2,12 +2,9 @@ 2 2 ((( 3 3 (% class="container" %) 4 4 ((( 5 -= (% style="color:inherit" %)TVB Co-Simulation {{html}}<iframewidth="302"height="170" src="https://www.youtube.com/embed/6hEuvxD7IDk?list=PLVtblERyzDeLcVv4BbW3BvmO8D-qVZxKf" frameborder="0" allow="accelerometer;autoplay;encrypted-media; gyroscope;picture-in-picture"allowfullscreen></iframe>{{/html}}(%%) =5 += (% style="color:inherit" %)TVB Co-Simulation [[image:https://github.com/the-virtual-brain/tvb-multiscale/blob/master/docs/documented_example_notebook/ConceptGraph.png?raw=true||alt="ConceptGraph.png" height="197" width="255"]](%%) = 6 6 7 - 8 -(% style="color:inherit" %)Multiscale: TVB, NEST, (%%)ANNarchy, NetPyNE , Elephant, PySpike 9 - 10 -(% style="color:inherit" %)Authors: (%%)D. Perdikis, A. Blickensdörfer, V. Bragin, L. Domide, J. Mersmann, M. Schirner, P. Ritter(% style="color:inherit" %) 7 +(% style="color:inherit" %)Multiscale: TVB - NEST 11 11 ))) 12 12 ))) 13 13 ... ... @@ -15,49 +15,50 @@ 15 15 ((( 16 16 (% class="col-xs-12 col-sm-8" %) 17 17 ((( 18 - FormoredetailsonTVBsee:15 +Main TVB wiki: [[https:~~/~~/wiki.ebrains.eu/bin/view/Collabs/the-virtual-brain/>>url:https://wiki.ebrains.eu/bin/view/Collabs/the-virtual-brain/]] 19 19 20 -* TVB Dedicated Wiki [[https:~~/~~/wiki.ebrains.eu/bin/view/Collabs/the-virtual-brain/>>url:https://wiki.ebrains.eu/bin/view/Collabs/the-virtual-brain/]] 21 -* TVB in HBP User Story [[https:~~/~~/wiki.ebrains.eu/bin/view/Collabs/user-story-tvb/>>url:https://wiki.ebrains.eu/bin/view/Collabs/user-story-tvb/]] 17 +=== Who has access? === 22 22 23 -== == 19 +* TVB-multiscale co-simulator is open source, GPLv3 licensed: [[https:~~/~~/github.com/the-virtual-brain/tvb-multiscale>>url:https://github.com/the-virtual-brain/tvb-multiscale]] so you can use it locally freely 20 +* Within HBP infrastructure you will only need an HBP account to access TVB 24 24 25 -== Running TVB-MULTISCALE atEBRAINS JupyterLab==22 +=== Contributors === 26 26 27 - TVB-multiscaleismade availableat [[EBRAINSJupyterLab>>https://lab.ebrains.eu/]].24 +Dionysios Perdikis, Lia Domide, Jochen Mersmann, Michael Schirner, Petra Ritter 28 28 29 - Allthe userhas todo is log in with theirEBRAINS credentials, and start a Python console or aJupyternotebookusing thekernel "EBRAINS-23.09" (or a more recentversion), where TVB-multiscale can be imported(e.g., via "import tvb_multiscale"). Allnecessary TVB-multiscale dependencies(NEST, ANNarchy, NetPyNE (NEURON), Elephant, Pyspike) are also installed and available.26 +== Use our Jupyter Hub setup online == 30 30 31 - ThiscollabcontainsvariousexamplesofusingTVB-Multiscale withallthreesupportedspikingsimulators. Wesuggest copying thecontentsof this collabtoyour Library or to anycollab ownedby you,andrunningthemthere(note that theuser'sdriveoffersersistentstorage, i.e.users will find their filesafter logging outnd in again), asfollows:28 +We have setup a Jupyter Hub service with tvb-nest as backed already prepared. You will only need an HBP account for accessing this: [[https:~~/~~/tvb-nest.apps.hbp.eu/>>url:https://tvb-nest.apps.hbp.eu/]] 32 32 33 - ~1. Select`Drive`on theleft ofthe currentpage(or use[[thislink>>https://wiki.ebrains.eu/bin/view/Collabs/the-virtual-brain-multiscale/Drive||rel="noopenernoreferrer"target="_blank"]]).30 +This JupyterHub installation works smoothly with HBP Collab user credentials (login only once at HBP and get access here too). We use a custom Docker Hub tvb-nest image as a backend, and thus a ready to use environment is available immediately, without the need of any local installation or download. This should be the ideal env for demos, presentations or even workshops with tvb-nest. 34 34 35 - 2. Check the `tvb-multiscale-collab` folderheckbox, and copy itour `MyLibrary` ("copy" icon will appear above thefiles/folderslist).32 +**[[image:https://lh6.googleusercontent.com/ytx9eYpMcL3cCScX2_Sxm4CeBW0xbKW3xKsfO2zSId10bW0gw1kiN2_SkexyYBCsF-sKsu0MaJC4cZvGVfQPjMoPBLiePbkvXOZd8BgY3Q0kFzSkRCqQ183lgDQv_6PYoqS3s7uJ||height="149" width="614"]]** 36 36 37 - 3. Select`Lab` (ontheleft),andnavigatetothedestinationwhere you justcopiedhefolder.34 +Currently, the users can access 2 folders: //TVB-NEST-Examples// and //Contributed-Notebooks//. 38 38 39 - 4.Enterthe`tvb-multiscale-collab`folder, and openeitherofexample notebooks.Ensureyou select the appropriate ipykernel(EBRAINS-23.09ormoreecentone)36 +The notebooks under **TVB-NEST-Examples** are public, shared by everyone accessing the instance. Periodically, we will clean all changes under TVB-NEST-Examples folder (by redeploying the pod image), and show the original example notebooks submitted on our Github repo. If users intend to contribute here, they are encouraged to submit changes through Pull Requests ([[https:~~/~~/github.com/the-virtual-brain/tvb-multiscale>>url:https://github.com/the-virtual-brain/tvb-multiscale]]) 40 40 38 +**[[image:https://lh6.googleusercontent.com/nnsM0mhXQinmQsJwZwwwe5Sx7f-tZc8t4ELnCh9DwksyVEPUE-jixJTkhoP4l25VKwlDGoXACWtnuxQM9NMOCYbQOzDesgMDlT3sntow___vsEqRVd4OwqMY4BPyBiLJ32BnUbmM||height="267" width="614"]]** 41 41 42 - ==RunningTVB-MULTISCALElocally==40 +Folder **Contributed-Notebooks** is not shared. Here, users can experiment with their own private examples. This folder is persisted on restarts in the user HBP Collab personal space. Thus, users will be able to access their work even after a redeploy. (e.g. during a workshop every participant could have in here his own exercise solution). 43 43 44 - Seemore on Github [[https:~~/~~/github.com/the-virtual-brain/tvb-multiscale>>url:https://github.com/the-virtual-brain/tvb-multiscale]] .42 +== Running TVB-NEST locally == 45 45 46 - Documentednotebooks and otherxampleswill beok to downloadandtry yourself locally, after youhave also prepared and launchedlocally a Docker env:[[https:~~/~~/hub.docker.com/r/thevirtualbrain/tvb-multiscale>>https://hub.docker.com/r/thevirtualbrain/tvb-multiscale]]44 +See more on Github [[https:~~/~~/github.com/the-virtual-brain/tvb-multiscale>>url:https://github.com/the-virtual-brain/tvb-multiscale]] and check this notebook example: [[https:~~/~~/drive.ebrains.eu/f/b3ea5740fcc34f12af7a/?dl=1>>url:https://drive.ebrains.eu/f/b3ea5740fcc34f12af7a/?dl=1]] 47 47 48 -This isthepath recommendedforpeopleworkingcloselywith tvb-multiscale.They are able todownloadit intheirlocalwork envandcodefreelyand fastwith.46 +This notebook will be ok to download and try yourself locally, after you have also prepared and launched locally a Docker env: [[https:~~/~~/hub.docker.com/r/thevirtualbrain/tvb-nest>>url:https://hub.docker.com/r/thevirtualbrain/tvb-nest]] 49 49 50 - ====48 +This is the path recommended for people working closely with tvb-nest. They are able to download it in their local work env and code freely and fast with it. 51 51 52 -== Running TVB- MULTISCALE jobs onHPC infrastructure from HBP collab ==50 +== Running TVB-NEST jobs on CSCS infrastructure from HBP collab == 53 53 54 -tvb- multiscale can run with an HPC backend. This will be efficient when the simulation jobs are very large. From our experience, with small jobs, the stage-in/out time is considerable, and then the user might be better with just a local run. Also,suchadeployment requires that **the user have an activeHPC personal accountand allocation project active**. More details on how to use this deployment can be found in this movie: [[https:~~/~~/drive.google.com/open?id=1osF263FK_NjhZcBJfpSy-F7qkbYs3Q-E>>url:https://drive.google.com/open?id=1osF263FK_NjhZcBJfpSy-F7qkbYs3Q-E]]52 +The CSCS and HBP Collab deployment of tvb-nest is a good example to show how tvb-nest can run with an HPC backend. This will be efficient when the simulation jobs are very large. From our experience, with small jobs, the stage-in/out time is considerable, and then the user might be better with just a local run. Also, this deployment requires that **the user have an active CSCS personal account**. More details on how to use this deployment can be found in this movie: [[https:~~/~~/drive.google.com/open?id=1osF263FK_NjhZcBJfpSy-F7qkbYs3Q-E>>url:https://drive.google.com/open?id=1osF263FK_NjhZcBJfpSy-F7qkbYs3Q-E]] 55 55 56 56 * Create a collab space of your own 57 57 * Clone and run in your HBP Collab Hub ([[https:~~/~~/lab.ebrains.eu/>>url:https://lab.ebrains.eu/]]) the notebooks from here: [[https:~~/~~/drive.ebrains.eu/d/245e6c13082f45bcacfa/>>url:https://drive.ebrains.eu/d/245e6c13082f45bcacfa/]] 58 -** test_tvb-nest_installation.ipynb Run the cosimulate_tvb_nest.sh script on the HPC supercomputerwhere you have an account active. In this example, basically we are running the //installation_test.py// file which is in the docker folder.59 -** run_custom_cosimulation.ipynb For this example we are using the //cosimulate_with_staging.sh// script in order to pull the tvb- multiscale docker image and we are using a custom simulation script (from Github page) which will be uploaded in the staging in phase60 -** run_custom_cosimulation_from_notebook.ipynb This example is running the same simulation as the example above but instead of using an external file with the simulation code we will build a simulation file from a few notebook cells and we will pass this file to the HPC.56 +** test_tvb-nest_installation.ipynb Run the cosimulate_tvb_nest.sh script on the CSCS Daint supercomputer. In this example, basically we are running the //installation_test.py// file which is in the docker folder. 57 +** run_custom_cosimulation.ipynb For this example we are using the //cosimulate_with_staging.sh// script in order to pull the tvb-nest docker image and we are using a custom simulation script (from Github page) which will be uploaded in the staging in phase 58 +** run_custom_cosimulation_from_notebook.ipynb This example is running the same simulation as the example above but instead of using an external file with the simulation code we will build a simulation file from a few notebook cells and we will pass this file to the CSCS server. 61 61 62 62 Few technical details about what we do in these notebooks: 63 63 ... ... @@ -71,10 +71,10 @@ 71 71 72 72 >tr = unicore_client.Transport(oauth.get_token()) 73 73 >r = unicore_client.Registry(tr, unicore_client._HBP_REGISTRY_URL) 74 -># weused"DAINT-CSCS",butyou shouldchange ittoanother supercomputerwhereyou havea projectactive72 +># use "DAINT-CSCS" change if another supercomputer is prepared for usage 75 75 >client = r.site('DAINT-CSCS') 76 76 77 - 2. Prepare job submission75 +1. Prepare job submission 78 78 79 79 In this step we have to prepare a JSON object which will be used in the job submission process. 80 80 ... ... @@ -91,7 +91,7 @@ 91 91 >my_job['Resources'] = { 92 92 > "CPUs": "1"} 93 93 94 - 3. Actual job submission92 +1. Actual job submission 95 95 96 96 In order to submit a job we have to use the JSON built in the previous step and also if we have some local files, we have to give their paths as a list of strings (inputs argument) so the UNICORE library will upload them in the job's working directory in the staging in phase, before launching the job. 97 97 ... ... @@ -98,7 +98,7 @@ 98 98 >job = site_client.new_job(job_description=my_job, inputs=['/path1', '/path2']) 99 99 >job.properties 100 100 101 - 4. Wait until job is completed and check the results99 +1. Wait until job is completed and check the results 102 102 103 103 Wait until the job is completed using the following command 104 104
- Collaboratory.Apps.Collab.Code.CollabClass[0]
-
- Description
-
... ... @@ -1,2 +1,1 @@ 1 -Multiscale Co-Simulation with The Virtual Brain (TVB) and NEST. 2 -This space contains tutorials for configuring and running in HBP Collab simulations with TVB simulator in combination with the NEST simulator, and do co-simulations. 1 +Co-Simulation The Virtual Brain-multiscale. This space contains tutorials for configuring and running in HBP Collab simulations with TVB simulator in combination with the NEST simulator, and do a co-simulation. Full Brain Modeling. Human. Animal. EEG, MEG, SEEG, iEEG, BOLD. Large Scale Connectivity. Surface Simulations. TVB-multiscale co-simulation - owner
-
... ... @@ -1,1 +1,0 @@ 1 -ldomide
- XWiki.XWikiComments[0]
-
- Date
-
... ... @@ -1,1 +1,0 @@ 1 -2020-07-27 21:56:05.0 - Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ldomide - Comment
-
... ... @@ -1,1 +1,0 @@ 1 -Check this movie on tvb-multiscale https://www.youtube.com/watch?v=6hEuvxD7IDk&feature=youtu.be
- XWiki.XWikiRights[7]
-
- Allow/Deny
-
... ... @@ -1,1 +1,0 @@ 1 -Allow - Levels
-
... ... @@ -1,1 +1,0 @@ 1 -view - Users
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.XWikiGuest
- XWiki.XWikiRights[8]
-
- Allow/Deny
-
... ... @@ -1,1 +1,0 @@ 1 -Allow - Groups
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.XWikiAllGroup - Levels
-
... ... @@ -1,1 +1,0 @@ 1 -view
- XWiki.XWikiRights[3]
-
- Allow/Deny
-
... ... @@ -1,0 +1,1 @@ 1 +Allow - Levels
-
... ... @@ -1,0 +1,1 @@ 1 +view - Users
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest
- XWiki.XWikiRights[4]
-
- Allow/Deny
-
... ... @@ -1,0 +1,1 @@ 1 +Allow - Groups
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiAllGroup - Levels
-
... ... @@ -1,0 +1,1 @@ 1 +view