Results for "Terminal"

Bio-Scripts

  • Parse a genbank file using regular expressions

    ...f ($trans) { # translation still going on if (!/"/) { # no terminal quote; translation continues $protein .= $_; } elsif (/(.*)(")/) { # terminal quote; end of translation...

    2968 days ago

  • Installing docker for Bioinformatics on Ubuntu !

    ...fsSL "https://download.docker.com/linux/ubuntu/gpg" | apt-key add -qq - >/dev/null Warning: apt-key output should not be parsed (stdout is not a terminal) + sudo -E sh -c echo "deb [...

    1564 days ago

  • Check os version in Linux !

    The procedure to find os name and version on Linux: #Open the terminal application (bash shell) #For remote server login using the ssh: ssh user@server-name #Type any one of the f...

    1558 days ago

  • Print in terminal with python !

    #!/usr/bin/env python import time import curses def pbar(window): height, width = window.getmaxyx() for i in range(10): window.addstr(height -1, 0, "[" + ("=" * i) + ">" + (" " * (10 - i )) + "]") window.refresh() time.sleep(0.5) curses.wrapper(pbar)

    1029 days ago

  • Install Packages in Python

    #Create a conda environment. #Install a Python package in the terminal using conda. $ conda create -n myenv $ conda create -n myenv Python=3.7 $ conda env create -f environme...

    1012 days ago

  • Command line to print disk usage on Linux terminal !

    #Print disk usage - perl du -h |perl -e'%h=map{/.\s/;99**(ord$&&7)-$`,$_}`du -h`;die@h{sort%h}' #Bash du -k * | sort -nr | cut -f2 | xargs -d '\n' du -sh #Base du -scBM | sort -n #More du -s * | sort -rn | cut -f2- | xargs -d "\n" du -sh

    865 days ago