Fancy Oneliner for Bioinformatics !!
This webpage lists some of the one-liners that we frequently use in metagenomic analyses. You can click on the following links to browse through different topics. You ca...2856 days ago
2215 days ago
Bash oneliner to extract all ids from a multifasta file
#List of ids - one per line in allIds.txt $ awk 'BEGIN{while((getline0)l[">"$1]=1}/^>/{f=!l[$1]}f' seq.fa # You can play with this f=!l[$1 ] if wanted to extract or not extract the ids1535 days ago
Reformat the multifasta for sequence length !
#awk oneliner to reformat the multifasta sequences awk '!/^>/ {printf "%s", $0; n = "\n"} /^>/ {print n $0; n = ""}' file.fasta | fold -w 1001389 days ago
2687 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/Oneliner3625 days ago