Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91652358
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
Wed, Nov 13, 02:51
Size
623 B
Mime Type
text/x-python
Expires
Fri, Nov 15, 02:51 (2 d)
Engine
blob
Format
Raw Data
Handle
22194012
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