Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F63116697
PlotAllChimeraFiles.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, May 17, 21:26
Size
1 KB
Mime Type
text/x-python
Expires
Sun, May 19, 21:26 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17733897
Attached To
rNPTOOLS Nanopore Tools
PlotAllChimeraFiles.py
View Options
from
ObsoleteFunctions
import
UsefulFunctions
as
uf
import
matplotlib.pyplot
as
plt
import
numpy
as
np
import
os
from
matplotlib.font_manager
import
FontProperties
from
tkinter
import
Tk
from
tkinter.filedialog
import
askopenfilenames
fontP
=
FontProperties
()
fontP
.
set_size
(
'small'
)
props
=
dict
(
boxstyle
=
'round'
,
facecolor
=
'wheat'
,
alpha
=
0.5
)
Tk
()
.
withdraw
()
os
.
system
(
'''/usr/bin/osascript -e 'tell app "Finder" to set frontmost of process "python" to true' '''
)
#filenames = ['/Volumes/backup/2017/Michael/Axopatch/20170512/10mMKClInFlowCellORingPore1mm.dat']
#filenames = ['/Volumes/backup/2017/Michael/Axopatch/20170824/30B_10mMKClCis100mMTrans_PosElecToCis_IV.dat']
expname
=
'All'
filenames
=
askopenfilenames
(
filetypes
=
((
"chimera files"
,
"*.log"
),
(
"all files"
,
"*.*"
)))
for
filename
in
filenames
:
print
(
filename
)
out
=
uf
.
ImportChimeraRaw
(
filename
,
200
*
1e3
)
coefficients
=
{
'a'
:
0.999
,
'E'
:
0
,
'S'
:
5
,
'eventlengthLimit'
:
10e-3
*
out
[
'samplerate'
]}
fig1
,
ax
=
plt
.
subplots
(
1
)
ax
.
plot
(
np
.
arange
(
0
,
len
(
out
[
'i1'
]))
/
out
[
'sampleratelp'
],
out
[
'i1'
]
*
1e9
,
'r'
)
ax
.
set_xlabel
(
'Time [s]'
)
ax
.
set_ylabel
(
'Current [nA]'
)
fig1
.
savefig
(
filename
[:
-
4
]
+
'.png'
,
dpi
=
150
)
fig1
.
clear
()
plt
.
close
()
Event Timeline
Log In to Comment