python nuclear translocation analysis - from imagej
Image j nuclear translocation measurement 96well plate 이용, B02~G11 까지 분석 각 well 당 fld1~9 red analysis - nucleus and cytosol //알파벳 B에서 G까지 반복 (b,c,d,e,f,g = 66,67,68,69,70,71) for (charCode = 66; charCode arumyworld.tistory.com data name B - 02-1 ~ G - 11-9 .csv subgroup B - 02 ~ B - 11 G - 02 ~ G - 11 red 의 nuclear translocation 확인하기 (nuclear, cytosol) green 은 그 단백질이 발현되는 세포만 labeling !rm *.xlsx..
2023. 10. 28.
python 소그룹으로 묶기 (subgroup 만들기) str.split
예를 들어 'b-01-01', 'b-01-02', 'c-01-01', 'c-01-02' 라는 이름을 가진 series 가 있을 때 앞의 b-01, c-01 끼리 subgroup을 만드려고 한다면! import pandas as pd # 시리즈 생성 index_data = ['b-01-01', 'b-01-02', 'c-01-01', 'c-01-02'] values = [10, 20, 30, 40] series = pd.Series(values, index=index_data) # 특정 패턴을 가진 인덱스를 선택 selected_indices = series[series.index.str.startswith('b-01') | series.index.str.startswith('c-01')] # 선택된 인덱스..
2023. 10. 28.
python 딕셔너리, 데이터프레임 알파벳 순서로 재정렬하기
#딕셔너리 key 이름 순서대로 나열 (알파벳, 숫자) sorted 함수 사용 my_dict = {'b': [1, 2, 3], 'a': [4, 5, 6], 'c': [7, 8, 9]} sorted_items = sorted(my_dict.items()) sorted_dict = {key: value for key, value in sorted_items} print(sorted_dict) #데이터프레임 열(column) 이름을 순서대로 재정렬 (알파벳, 숫자) sort_index 사용 열 이름을 정렬하려면 axis 매개변수 사용 import pandas as pd # 샘플 데이터프레임 생성 data = {'b': [1, 2, 3], 'a': [4, 5, 6], 'c': [7, 8, 9]} df = pd...
2023. 10. 28.
파이썬으로 signal processing (scipy.signal)
python 으로 signal processing 하는 방법을 알아보다가 찾은 scipy.signal Signal processing (scipy.signal) — SciPy v1.4.1 Reference Guide ellip(N, rp, rs, Wn[, btype, analog, output, fs]) Elliptic (Cauer) digital and analog filter design. docs.scipy.org convolution, filtering, peak finding, spectral analysis 등이 가능하다. from scipy.signal import #butter, freqz, filtfilt, find_peaks 오늘은 내가 궁금한 거 3가지만 정리 Butter - low ..
2020. 4. 16.