Results for "Oneliner"

Bookmarks

Top-level pages

  • Bioinformatics OneLiner

    To remove all line ends (\n) from a Unix text file: sed ':a;N;$!ba;s/\n//g' filename.txt > newfilename_oneline.txt To get average for a column of numbers (here the...

    2214 days ago

Wire posts

  • Remove the blank space from a fasta file. perl -nlwe 'tr/ //d; print if length' fileName #Delete #Space #Fasta #Perl #Oneliner

    3618 days ago

  • zcat input_file.fastq.gz | awk 'NR%4==1{printf ">%s\n", substr($0,2)}NR%4==2{print}' > output_file.fa #fastaQ2fasta #fastaq #fasta #Oneliner

    3643 days ago

  • +16 more Wire posts

Bio-Scripts

Tags

  • Perl one-liner for beginners !

    I often use the following arguments to perl: -e Makes the line of code be executed instead of a script -n Forces your line to be called in a loop. Allows you to take lines from the diamond operator (or stdin) -p Forces your line to be called in a loop. Prints $_ at the end   This ...

    Tags: perl, oneliner, linux, handy, script, codes

    1378 days ago

Comments