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...

    2212 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

    3616 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

    3641 days ago

  • +16 more Wire posts

Bio-Scripts

Tags

  • Perl One liner basics !!

    Perl has a ton of command line switches (see perldoc perlrun), but I'm just going to cover the ones you'll commonly need to debug code. The most important switch is -e, for execute (or maybe "engage" :) ). The -e switch takes a quoted string of Perl code and executes it. For example:$ perl -e 'pr...

    Tags: Bioinformatics, Computational Biology, Education, Study, Script, Perl, Oneliner, Basic

    3264 days ago

Comments