일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- scRNAseq
- single cell rnaseq
- js
- python matplotlib
- EdgeR
- julia
- javascript
- CUTandRUN
- Batch effect
- 싱글셀 분석
- MACS2
- scRNAseq analysis
- PYTHON
- 비타민 C
- CUT&RUN
- Git
- HTML
- CSS
- drug development
- DataFrame
- single cell
- drug muggers
- Bioinformatics
- matplotlib
- cellranger
- ngs
- ChIPseq
- single cell analysis
- github
- pandas
- Today
- Total
목록array (2)
바이오 대표
np.array_equal(A,B) Array A와 B의 형태(shape)과 요소들(elements)이 동일하다면 True 아니면 False 를 반환한다 (A == B).all( ) 해당 function을 이용할 수 도 있지만, 몇가지 특정 상황에서 두서없이 True 를 반환한다. 주의 사항: A 나 B 중 하나가 empty array 이고 다른 하나가 1개의 element 를 갖을 때 True 를 반환한다 A == B 는 empty array를 반환한다 A 와 B의 형태(shape)이 같지 않을때, error를 띄운다 # 다른 비교 방법 np.array_equal(A,B) # test if same shape, same elements values np.array_equiv(A,B) # test if ..
to .csv (ASCII) to .npy (binary) to .npz (compressed) Numpy arrary 를 csv 형태로 저장할 수 있는 방법에는 두가지가 있다. [1] pandas 이용해서 dataframe으로 변경 후 df.to_csv( ) [2] np.savetxt( ) [1] pandas 이용해서 dataframe으로 변경 후 df.to_csv( ) import pandas as pd # numpy array arr # numpy array to pandas dataframe df = pd.DataFrame(arr) df.to_csv("myArray.csv", index=Fase) [2] np.savetxt( ) import numpy as np np.savetxt("myArray..