Results for "Perl"

Tags

  • Print all the values between 15 to 17. perl -ne 'print if 15 .. 17' file #Perl #PerlTrick #Range

    Tags: Perl, PerlTrick, Range

    2999 days ago

  • Delete space from FASTA header: perl -pe 's/>\S+\K.+//' < file.fasta > new_file.fasta #PerlOneLiner #Trick #Perl #Space #Fasta

    Tags: PerlOneLiner, Trick, Perl, Space, Fasta

    2969 days ago

  • Print all text after a matching string perl -ne "print unless 1 .. m(String)" #Perl #OneLiner #String #Perl #Trick

    Tags: Perl, OneLiner, String, Perl, Trick

    2965 days ago

  • Perl Scripts for Science and Engineering http://www.lwebzem.com/cgi-bin/se_res/scripts.cgi #Perl #Script #Science

    Tags: Perl, Script, Science

    2906 days ago

  • Remove tab with comma in file: perl -lpe 's/\t/,/g' < flattened_line_0.fa.data > output.csv #PerlTrick #PerlO,liner #Perl #Tab #Comma

    Tags: PerlTrick, PerlO, Perl, Tab, Comma

    2822 days ago

  • Replace space with tab: perl -lpe 's/\s/\t/g' < trf_file.dat > outfile.txt #TRF #Tab #Space #Replace #Perl #PerlTrick #PerlOneliner

    Tags: TRF, Tab, Space, Replace, Perl, PerlTrick, PerlOneliner

    2820 days ago

  • Extract sequence by using Ids file (assuming one ids in a line): perl -ne 'if(/^>(\S+)/){$c=$i{$1}}$c?print:chomp;$i{$_}=1 if @ARGV' ids.file fasta.file #PerlTricks #PerlOneliner #Perl #Extract #Ids #

    Tags: PerlTricks, PerlOneliner, Perl, Extract, Ids

    2778 days ago

  • Rename the fasta name perl -ane 'if(/\>/){$a++; @foo = split /\s+/;$_ = join '_', @foo; print "$_\n"}else{print;}' your.fasta > new.fa #PerlTrick #PerlOneliner #Perl

    Tags: PerlTrick, PerlOneliner, Perl

    2779 days ago

  • Extract fasta sequence by Ids: perl -ne 'if(/^>(\S+)/){$c=grep{/^$1$/}qw(id1 id2)}print if $c' fasta.file #Perl #PerlOneliner #PerlTrick #Extract #Ids #Fasta

    Tags: Perl, PerlOneliner, PerlTrick, Extract, Ids, Fasta

    2778 days ago

  • Useful perl script http://homepages.ulb.ac.be/~dgonze/SCRIPTS/scripts.html #Perl #Script #Resource

    Tags: Perl, Script, Resource

    2760 days ago