Giter Club home page Giter Club logo

snippets's Introduction

snippets

Python2

  1. create conda env with python2.7
    conda create -y -n py27 python=2.7
  2. install biopython on a python2.7 conda env
    python -m pip install biopython==1.76

DSSP

Dssp installation via conda (conda install -c salilab dssp) leads to a lot of issues and the Notebook is apparently not working anymore. Install dssp via old approach from here locally (a python env is not necessary).
mkdssp --version #mkdssp version 3.1.4

GIT from local to github

  1. Go inside the folder you want to git (after you have a repo on github)
  2. Initialize the folder as a git repo: 'git init'
  3. From repo to local : git pull [email protected]:Ch-rode/Chiara-LabBook.git
  4. From local to repo:
git add .
git status
git commit -m '14/06/2023'
git remote add origin [email protected]:Ch-rode/Chiara-LabBook.git
git push -u origin master

Before doing this you should create an ssh key on your local laptop (see following links for instructions) and add it on your personal page on github: https://github.com/settings/keys

Create a new repository on the command line

echo "# SS_AA_tokenizer" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/ibmm-unibe-ch/SS_AA_tokenizer.git
git push -u origin main

Push an existing repository from the command line

git remote add origin https://github.com/ibmm-unibe-ch/SS_AA_tokenizer.git
git branch -M main
git push -u origin main

from a3m to fasta

.a3m is an advanced fasta format that allows for inserts, but prody does not like that, the simplest fix is to reformat a3m to fasta with reformat.pl, which is really fast.
i.e. ./reformat.pl uniref90_hits.a3m test.fasta

pymol commands

1hl9 pdb
spectrum b, blue_red
bg white
cartoon putty
select prot, name CA
ray 4500, 4500
png /.png
ray [width,height [,renderer [,angle [,shift ]]]
set_color orangef=[255,165,0]
set_color greenf=[74,103,65 ]

print spectrumbar from pytmol

https://pymolwiki.org/index.php/Spectrumbar

merge folders with also common files

rsync -av --ignore-existing source-folder/* destination-folder/

Copy from UBELIX

scp -r [email protected]://storage/homefs/ciao ./

Install BLAST locally + set the path

https://www.ncbi.nlm.nih.gov/books/NBK52640/

Create a grid of images by terminal using svg_stack (python2)

python svg_grid.py --rows 1 --cols 2  \
./img/30_clusters_size.svg \
./img/30barplot_avgsimilarities.svg \
> hamming_distance_clusters.png

snippets's People

Contributors

ch-rode avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.