Search this site
Embedded Files
Nini lab Journal
  • Home
  • 期刊圖表中文資源
  • Archive
  • Plots Archive
    • Barplots
      • Another barplot
      • 3in1 barplot
      • Bar plot with significant*
      • Bar and Pie plots
    • Brain plots
      • Brainplot_p_global
      • UKB2factor genomicSEM Brainmap
      • Before and after brainmaps (UKB and ABCD gclust inversion)
      • ggsegRIO(from Hao)
    • Heatmaps/correlation matrix
      • figure5A
      • Heatmap with 2 side bars (fig4a)
      • Heatmap with star
      • Correlation Matrix for Annotations
      • pheno_geno_corr
      • Correlation matrix (combine 2 heatmaps using transparent method)
    • Miami plots
    • Manhattan
      • Manhattan plots
      • genomicsSEM_manhattan
    • Other plots
      • 12 Traits line graphs
      • 16 Dot plots
      • combined plot
      • path diagram (using igraph)
      • fig3A
      • 20 Lines linegraph
      • fig3
      • AD hallmark
    • cytoscape archive projects
  • Data Management
    • 8.reorder_cor_mat.R
    • UKBio Data extraction and PRSice
    • Breakdown gclust440
    • Merge 2 files by first column
    • Merge_SNPmarker
    • Correlation between 2 files
    • Searching LD SNPs
    • plink to raw
    • data matching percentage check
    • gene_symbol_conversion
    • gene symbol converstion
  • Network analysis notebooks
    • AD localization
  • Tools
    • R
      • Plot making
      • mini project examples
        • correlation matrix plot
        • Adding suffix and prefix
        • Missing values / dealing with NAs
      • ggseg
    • Terminal
      • ssh
    • Python/ python related
      • Python basics
      • Pandas
      • python base projects
        • AD networktool kit
        • Netcoloc notebook
      • Jupyter notebook
      • Anaonoda
    • Cytoscape
    • Docker
    • gt
  • Matlab
  • CH Lab Resoruces
  • journal club
  • note taking
Nini lab Journal
Cheat Sheet : https://docs.conda.io/projects/conda/en/4.6.0/_downloads/52a95608c49671267e40c689e0bc00ca/conda-cheatsheet.pdf
install
updating
creating a new environment with anaconda

Cheat Sheet : https://docs.conda.io/projects/conda/en/4.6.0/_downloads/52a95608c49671267e40c689e0bc00ca/conda-cheatsheet.pdf

install

Go to: https://www.anaconda.com/products/individual/download-success

Download the graphics installation for your computer

to check if you have it installed

conda

updating

conda update -n base -c defaults conda

creating a new environment with anaconda

Video tutorial: https://www.youtube.com/watch?v=EGaw6VXV3GI&t=254s


example code:

to create new virtual environment :

conda create -n py3.8 python=3.8

py37 is the name of this environment, please specify python version


Activate and deactivate

# To activate this environment, use

#

# $ conda activate py3.8

#

# To deactivate an active environment, use

#

# $ conda deactivate

For me I have created py38 for python 3.8 and py2.7 for python2.7

note: make sure you deactivate the environment you are in before entering the new env. If you directly try to enter a new environment when you are already in one your python version will not change.

More codes:

  • conda info --envs

  • conda list --explicit

  • conda deactivate

  • conda remove --name py27 --all

  • show you what conda environments you have made

  • listing all the packages you installed

  • to deactivate the current environment and return to root environment

  • if you want to remove an environment named "py2.7"

*note common mistake: when you are in (base) and you try to activate a different conda environment, the python version will not change because you need to exit out of (base). Do conda deactivate one more time to exit out of (base)

Report abuse
Page details
Page updated
Report abuse