tasci_merger 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f64b8313d03c5d06c1bab7f649ba5f45fc73581
4
- data.tar.gz: 1c792759d7a686ccc2b9170f59da9d045f29021f
3
+ metadata.gz: f10594bede6524d79ed1c0c641259b552de123d7
4
+ data.tar.gz: 3e2b209ca98e63a1da4b30133d12c2f19d440ca5
5
5
  SHA512:
6
- metadata.gz: 5834a433021d04e75c0ee2e073232730104fd564a3b1cb5c5b7db0e235396a6daf3833092540b530309e60f40c1efd532b45c071202e0f1a17afef555a0ee164
7
- data.tar.gz: b379b0ad91e13bc723180962161e20dd50f35e44eaca43b59c8e7d05ee50425fdf2802788eadd0366885857c18d006623817869d0416715504818906a51bf2dc
6
+ metadata.gz: b19a2dfcadfedce47b7ee889976e89e06a57c92f7c7937eacd625d1645f9c1e9d91371e2bdec9156619e38d8011c3b5879e99affca63b45f1006dca040fa2e25
7
+ data.tar.gz: ed8f3528f7125e8031fbfb09322069cb50b1d66b8ca4767e46fd1d2cd016d6e54f2e8048e493dbaae892ad17ffaa2656c130331eaf8ddea8a4855c887e210bbc
data/bin/merge_tasci CHANGED
@@ -7,4 +7,4 @@ tm = TasciMerger.new(ARGV[0], ARGV[1], ARGV[2])
7
7
  tm.create_master_list
8
8
  tm.merge_files
9
9
 
10
- # tm = TasciMerger.new("3241gx63", "C:/Partners/Tasci/Scored", "C:/Partners/Tasci/Output")
10
+ m = TasciMerger.new("3232GX", "/T/IPM/CSR_32d_FD_20h/3232GX/PSG/Scored/TASCI", "/home/pwm4/Desktop/")
data/lib/tasci_merger.rb CHANGED
@@ -233,17 +233,17 @@ class TasciMerger
233
233
  # 5 REM
234
234
  # 9 Wake
235
235
  line_event = nil
236
- if fields[8] == "Wake"
236
+ if fields[8] == "Wake" || fields[8] == 'Awake'
237
237
  line_event = 9
238
238
  elsif fields[8] == "Undefined"
239
239
  line_event = 7
240
- elsif fields[8] == "N1"
240
+ elsif fields[8] == "N1" || fields[8] == '1'
241
241
  line_event = 1
242
- elsif fields[8] == "N2"
242
+ elsif fields[8] == "N2" || fields[8] == '2'
243
243
  line_event = 2
244
- elsif fields[8] == "N3"
244
+ elsif fields[8] == "N3" || fields[8] == '3'
245
245
  line_event = 3
246
- elsif fields[8] == "4"
246
+ elsif fields[8] == "N4" || fields[8] == '4'
247
247
  line_event = 4
248
248
  elsif fields[8] == "REM"
249
249
  line_event = 5
@@ -275,17 +275,17 @@ class TasciMerger
275
275
 
276
276
  ### SLEEP STAGE, LABTIME
277
277
  simple_line_event = nil
278
- if fields[8] == "Wake"
278
+ if fields[8] == "Wake" || fields[8] == 'Awake'
279
279
  simple_line_event = 5
280
280
  elsif fields[8] == "Undefined"
281
281
  simple_line_event = 0
282
- elsif fields[8] == "N1"
282
+ elsif fields[8] == "N1" || fields[8] == '1'
283
283
  simple_line_event = 1
284
- elsif fields[8] == "N2"
284
+ elsif fields[8] == "N2" || fields[8] == '2'
285
285
  simple_line_event = 2
286
- elsif fields[8] == "N3"
286
+ elsif fields[8] == "N3" || fields[8] == '3'
287
287
  simple_line_event = 3
288
- elsif fields[8] == "4"
288
+ elsif fields[8] == "N4" || fields[8] == '4'
289
289
  simple_line_event = 4
290
290
  elsif fields[8] == "REM"
291
291
  simple_line_event = 6
data/tasci_merger.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'tasci_merger'
3
- s.version = '0.2.0'
3
+ s.version = '0.2.1'
4
4
  s.date = '2017-03-26'
5
5
  s.summary = "Merger utility for TASCI scored sleep files."
6
6
  s.description = "Merger utility for TASCI scored sleep files, built for the Division of Sleep and Circadian Disorders at BWH."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tasci_merger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Mankowski