Advertisement
ProzacR

gating process

Apr 23rd, 2019
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.49 KB | None | 0 0
  1. gating_atf<-read.csv("19417001.atf", skip=2, sep='\t')
  2. gating_atf_short = gating_atf[seq(1, nrow(gating_atf), 10), ]
  3. names(gating_atf_short)<-c("Time (ms)", "Vj (mV)", "current (pA)")
  4. gating_atf_short$gj<--gating_atf_short$current/gating_atf_short$Vj
  5. #gating_atf_short$gj[gating_atf_short$gj > 20] = 20
  6. Vj<-append(gating_atf_short$Vj, -gating_atf_short$Vj)
  7. gj<-append(gating_atf_short$gj, gating_atf_short$gj)
  8. plot(Vj[c(500:1400,2400:3300)],gj[c(500:1400,2400:3300)], xlab="Vj, mV", ylab="gj, nS")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement