{"action":"created","issue":{"url":"https://api.github.com/repos/OpenElectrophy/OpenElectrophy/issues/14","labels_url":"https://api.github.com/repos/OpenElectrophy/OpenElectrophy/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/OpenElectrophy/OpenElectrophy/issues/14/comments","events_url":"https://api.github.com/repos/OpenElectrophy/OpenElectrophy/issues/14/events","html_url":"https://github.com/OpenElectrophy/OpenElectrophy/issues/14","id":113568788,"number":14,"title":"saving sorted units on one rcg \"kills\" spike trains on units on other rcgs","user":{"login":"amchagas","id":3624486,"avatar_url":"https://avatars.githubusercontent.com/u/3624486?v=3","gravatar_id":"","url":"https://api.github.com/users/amchagas","html_url":"https://github.com/amchagas","followers_url":"https://api.github.com/users/amchagas/followers","following_url":"https://api.github.com/users/amchagas/following{/other_user}","gists_url":"https://api.github.com/users/amchagas/gists{/gist_id}","starred_url":"https://api.github.com/users/amchagas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amchagas/subscriptions","organizations_url":"https://api.github.com/users/amchagas/orgs","repos_url":"https://api.github.com/users/amchagas/repos","events_url":"https://api.github.com/users/amchagas/events{/privacy}","received_events_url":"https://api.github.com/users/amchagas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-27T12:11:02Z","updated_at":"2015-11-02T13:18:22Z","closed_at":"2015-11-02T12:21:16Z","body":"I'm having a bit of a problem when using the GUI for spike sorting:\r\nI load a database (sqlite) that contains 1 block with 1 segment with 12 analogue signals coming from different electrodes. \r\nEach analog. signal is inside one recording channel (rec) and each rec inside a recording channel group (rcg).\r\n\r\nI start spike sorting by script, with thresholding and alignment of waveforms. For this I build 1 unit per rcg (with unit id in the hundreads range. Meaning rcg1 contains unit 100, rcg2 contains unit 200, so that units id numbers won't overlap), containing all spikes inside 1 spike train within this unit (spiketrain id has the same numbering scheme, so that here the id numbers will also not overlap). The next stage is to open the GUI and delete some waveforms (movement artefacts, teeth grinding). After that I run haarwavelets and one of the sorting algorithms. I finalize sorting (do some re-grouping, plot crosscorrelograms) and save the units.    \r\n\r\nOnce they are saved, something strange happens. Mainly the new units are correctly created with their spike trains. BUT some of the units from other rcgs will loose their spike trains, which makes it impossible to sort them, unless a new group is created. I tried to dig into the save database code to no luck. Any suggestions?"},"comment":{"url":"https://api.github.com/repos/OpenElectrophy/OpenElectrophy/issues/comments/153013516","html_url":"https://github.com/OpenElectrophy/OpenElectrophy/issues/14#issuecomment-153013516","issue_url":"https://api.github.com/repos/OpenElectrophy/OpenElectrophy/issues/14","id":153013516,"user":{"login":"samuelgarcia","id":815627,"avatar_url":"https://avatars.githubusercontent.com/u/815627?v=3","gravatar_id":"","url":"https://api.github.com/users/samuelgarcia","html_url":"https://github.com/samuelgarcia","followers_url":"https://api.github.com/users/samuelgarcia/followers","following_url":"https://api.github.com/users/samuelgarcia/following{/other_user}","gists_url":"https://api.github.com/users/samuelgarcia/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelgarcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelgarcia/subscriptions","organizations_url":"https://api.github.com/users/samuelgarcia/orgs","repos_url":"https://api.github.com/users/samuelgarcia/repos","events_url":"https://api.github.com/users/samuelgarcia/events{/privacy}","received_events_url":"https://api.github.com/users/samuelgarcia/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T13:18:22Z","updated_at":"2015-11-02T13:18:22Z","body":"OE versions are a total mess.\r\nYou should always install from github.\r\n pip install git+https://github.com/OpenElectrophy/OpenElectrophy.git     \r\n\r\nI promiss to release a 0.3.6 soon.\r\nSorry for this bug.\r\n\r\n"}}