Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90370712
MakeListOfFilesToCombine.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 1, 01:14
Size
623 B
Mime Type
text/x-python
Expires
Sun, Nov 3, 01:14 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
21900666
Attached To
rNPTOOLS Nanopore Tools
MakeListOfFilesToCombine.py
View Options
import
AnalysisParameters
as
pm
import
time
import
MiscParameters
as
pm
import
h5py
from
openpyxl
import
Workbook
from
tkinter.filedialog
import
askopenfilenames
pm
.
init
(
LoadFiles
=
0
)
filenames
=
askopenfilenames
(
filetypes
=
[(
'HDF5 files'
,
'*.hdf5'
)])
ExperimentName
=
pm
.
OutputFolder
+
'02B_10mM_1M_1kb_pH10.xlsx'
wb
=
Workbook
()
ws1
=
wb
.
active
for
(
i
,
k
)
in
enumerate
(
filenames
):
ws1
[
'A{}'
.
format
(
i
+
1
)]
=
k
f
=
h5py
.
File
(
k
,
'r'
)
ws1
[
'B{}'
.
format
(
i
+
1
)]
=
f
[
'General/TransverseRecorded'
]
.
value
ws1
[
'C{}'
.
format
(
i
+
1
)]
=
time
.
ctime
(
f
[
'General/TimeFileWritten'
]
.
value
)
wb
.
save
(
filename
=
ExperimentName
)
Event Timeline
Log In to Comment