Results for "perl"

Tags

  • 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

    2842 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

    2800 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

    2800 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

    2800 days ago

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

    Tags: Perl, Script, Resource

    2781 days ago

  • A perl script for mapping fasta formated sequences to multiple reference sequences using one of several alignment programs. http://seq.crg.es/download/software/Miro/doc/run_Mapping.html #Perl #Script

    Tags: Perl, Script

    2781 days ago

  • How to install Perl modules on Mac OS X in easy steps !!

    Today at work, I learned how to install Perl modules using CPAN. It’s a lot easier than I thought. You see, for the past couple of years, I’ve been a bit frustrated because OS X does not come with a whole lot of Perl modules pre-installed, and for all I googled, I couldn’t...

    Tags: Bioinformatics, Perl, Mac, MacOSX, Modules, Install, CPAN

    2765 days ago

  • Re-install perl in Ubuntu: sudo aptitude reinstall perl #Perl #Ubuntu #Install #Linux

    Tags: Perl, Ubuntu, Install, Linux

    2759 days ago

  • Slice on the fly with perl: my ($username, $real_name) = (split /:/, $str)[0, 4]; #Perl #PerlTrick #Split

    Tags: Perl, PerlTrick, Split

    2759 days ago

  • Perl module upgrade on Linux: $ sudo cpan then cpan[1]> upgrade #Upgrade #Perl #Modules

    Tags: Upgrade, Perl, Modules

    2736 days ago