Perl one-liner for bioinformatician !!!
...F, etc.) and some tools for manipulating them (fastx toolkit, samtools, vcftools, etc.), there are still times where knowing a little bit of Perl onliner is extremely helpful. Perl o...3626 days ago
Find and replace in multifasta or fasta header with perl onliner
You have a fasta file and you want to replace: "|" You are told to replace that by "_" perl -i -p -e "s/\|/_/g" genome.fasta -i = inplace editing -p = loop over lines and print each line (after processing) -e = command line script1613 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.fasta1398 days ago
Comment on "Perl one-liner for bioinformatician !!!"
Nice collection of Perl oneliner. Thank you for the useful list. You can also track other perl onliner posted on wire at http://bioinformaticsonline.com/thewire/tag/Oneliner3626 days ago
Comment on "Most Commonly used Awk by Bioinformatician"
Some of the useful Unix onliner http://genomics-array.blogspot.in/2010/11/some-unixperl-oneliners-for.html3660 days ago