2146 days ago
Python script to download covid genome !
#!/usr/bin/env python3 # these are the publicly available "complete" sequences #...eqs = yaml.load(requests.get("https://www.ncbi.nlm.nih.gov/core/assets/genbank/files/ncov-sequences.yaml").text)...1138 days ago
Install BLAST in Ubuntu/Linux and Window !
#On ubuntu sudo apt-get install ncbi-blast+ #Ubuntu Conda installation conda in...#Run this installer using the defaults, it should put BLAST under C:\Program Files\NCBI\blast-2.7.1+1149 days ago
2918 days ago
Find and replace ambiguous characters in fasta file with Perl and Bioperl
#!/usr/bin/perl -w my $usage="\nUsage: $0 [-h] [-m char] [fastaFileName1 ....-m '?' will place ? to the ambigous characters.\n" . "If multiple files are given, sequences in all files are marged. If no \n"....2916 days ago
Converting from Windows-style to UNIX-style line endings with dos2unix
Lenovo-ideapad-320-15ISK:~/Downloads/abc/bin$ sudo apt install dos2unix [sudo] passw...electing previously unselected package dos2unix. (Reading database ... 177704 files and directories currently ins...1179 days ago
Perl subroutine to read and write files
# Input output (InOut) the file # usage: # @array = InOut('read',$file) # $string = InOut('read',$file) # InOut('write',$file,\$string) # InOut('write',$file,\@a...2867 days ago
Install ATOM editor on Elemantory OS / Ubuntu
#Download ATOM deb file from https://atom.io/ https://atom.io/download/deb (base)...ing previously unselected package gconf2-common. (Reading database ... 194272 files and directories currently ins...1178 days ago
Extract fasta sequence from a multifasta file with coordinates
#!/usr/bin/perl use Bio::DB::Fasta; #USAGE...Create database from a directory of Fasta files my $db = Bio::DB::Fasta->new('/path/to/fasta/files/'); my @ids = $db->ge...h = Bio::DB::Fasta->newFh('/path/to/fasta/files/'); while (my $seq = ) {...2534 days ago
Download the genome from NCBI using bash script/command
#!/bin/bash # Download the genome from NCBI using command # Create a Dire...fna.gz|' > genomic_file_viral #Read the url from file and download FILES=$(pwd)/* for f in $FILES do echo "Processing $f fi...2534 days ago