1219 days ago
Set up WGD environment using conda !
...e/urbe/anaconda3/envs/wgd/lib/python3.7/site-packages (from wgd==1...0.1 MB 29 kB/s Collecting biopython>=1.75 Using cached biopyth...e-any.whl (67 kB) Collecting python-dateutil>=2.1 Using cached..., threadpoolctl, scipy, pytz, python-dateutil, pyparsing, pillow,...1220 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.61216 days ago
Install grabseqs using conda !
vik@vik-Lenovo-ideapad-320-15ISK:~/Downloads/setu/setu$ conda install grabseqs -c louiejtaylor -c bioconda -c conda-forge Collecting package metadata (current_repodata.json): done Solving environment: done ==> WARNING: A newer version of conda exists.1070 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)994 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.FastxFil...992 days ago
977 days ago
Installing Covid19 Environment !
...################################## | 100% gitpython-3.1.24 | 122 KB | ####...##################################### | 100% python_abi-3.7 | 4 KB | #...##################################### | 100% python-dateutil-2.8. | 240 KB | #...940 days ago
841 days ago
Python script to convert Multi-line Fasta to Single-line Fasta
def multi_to_single_line_fasta(input_filename, output_filename): try: with open(input_filename, 'r') as input_file: with open(output_filename...111 days ago