2150 days ago
Perl script to count occurrence of a character !
#!/usr/bin/env perl # -*- coding: utf-8 -*- #!/usr/bin/perl use strict; use warnings; my %count_of; while ( ) { my @val = split "\t", $_; #my ( $wor...1951 days ago
Bash commandline to install Anaconda !
...installing: python-3.7.3-h0371630_0 ... Python 3.7.3 installing: conda-env-2.6.0-1 ... installing: blas.../conda no change /data/sata_data/workshop/wsu29/anaconda3/bin/conda-env no change /data/sata_dat...1606 days ago
Bash command to install Miniconda !
...: done Solving environment: done ## Package Plan ## environment location: /data/sata_...hange /data/sata_data/workshop/wsu29/miniconda3/bin/conda-env no change /data/sata_dat...1606 days ago
Installing docker for Bioinformatics on Ubuntu !
...t config files (default "/home/jit/.docker") -c, --context string Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set w...1564 days ago
Commands to install conda in Ubuntu !
...installing: python-3.7.3-h0371630_0 ... Python 3.7.3 installing: conda-env-2.6.0-1 ... installing: blas...ome/jit/anaconda3/bin/conda no change /home/jit/anaconda3/bin/conda-env no change /home/jit/anac...1562 days ago
Set up WGD environment using conda !
...USCLE/MAFFT/PRANK #PAML #PhyML/FastTree #i-ADHoRe #Creat the conda ENV and install its deps #Follow...pich Collecting package metadata (current_repodata.json): done Solving environment: done ==> WARNIN...1254 days ago
Command to create conda environment !
# using pip pip install -r requirements.txt # using Conda conda create --name --file requirements.txt #Using yaml conda env create -f environment.yml #Listing env conda env list #Create env with python36 conda create -n myenv python=3.61251 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
Python script to read FASTA and FASTQ file !
# !/usr/bin/env python3 # -*- coding: utf-8 -*- from pysam import FastxFile def read_fasta_q_file(fasta_q_file): """Parse FASTA/Q file using `pysam.Fast...1027 days ago