2138 days ago
2087 days ago
Perl script to create a consensus of nucleotide sequences !
use strict; use warnings; my @instances = qw ( AAAAA ATCGA ATAAA ); my @instances2 = qw ( AAAAA AACGA ATAAA AGAAA AGAAA); print consensus(@instances),"\n";...2044 days ago
Installing pb-assembly on Linux !
[jnarayan@hmem00 ~]$ module avail --------------------------------------------------------...5.5 R/3.2.3-goolf-1.4.10 gromacs/single/4.5.5...2046 days ago
2038 days ago
Perl script to delete the adjacent repeats !
/usr/bin/perl #Mostly the interview question for bioinfomatician ! #Write a code to delet...(.)\1/$1/gi #And finally, if you wanted to trim any number of duplicates down to a single letter...1562 days ago
Exit Bash Script When Any Command Fails
This can actually be done with a single line using the set builtin command with the -e option. #1------------------------------------------------------------------------...1532 days ago
Onliner to split the multifasta to singlefasta files !
#Split the multifasta to singlefasta # Multi fasta #Single fasta awk '$0 ~ "^>" { match($1, /^>([^:]+)/, id); filename=id[1]} {print >> filename".fa"}' sequence.fasta1412 days ago
Bash script to handle Multifasta files
#Convert all lowercase residues to uppercase in a FASTA sequence file $ awk 'BEGIN{FS=" "}{...rint $0}' input1.fasta input2.fasta #Merge all FASTA files in a directory into a single FASTA...1369 days ago
962 days ago