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

    2211 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

    3615 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

    3640 days ago

  • +16 more Wire posts

Bio-Scripts

Tags

  • Perl one-liner for bioinformatician !!!

    With the emergence of NGS technologies, and sequencing data most of the bioinformaticians mung and wrangle around massive amounts of genomics text. There are several "standardized" file formats (FASTQ, SAM, VCF, etc.) and some tools for manipulating them (fastx toolkit, samtools, vcftools, etc.),...

    Tags: Bioinformatics, Computational Biology, Perl, NGS, Genome, Hacking, One-liner, Oneliner

    3622 days ago

  • 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 second column $2): awk '{ sum += $2; n++ } END { if (n > 0) print sum / n; }' To get sequence length for all sequences in a...

    Tags: Bioinformatics, Oneliner

    2211 days ago

Comments