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 +4 -4
- data/bin/merge_tasci +1 -1
- data/lib/tasci_merger.rb +10 -10
- data/tasci_merger.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f10594bede6524d79ed1c0c641259b552de123d7
|
4
|
+
data.tar.gz: 3e2b209ca98e63a1da4b30133d12c2f19d440ca5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
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."
|