Results for "Perl"

Wire posts

  • One liner to remove the description information from a fasta file and just keep the identifier $ perl -p -i -e 's/>(.+?) .+/>$1/g' sample1.fa #clean #header #fasta

    1918 days ago

  • Extract fasta with pattern $ perl -n -e '$on=(/^>(A)/) if (/^>/); print $_ if ($on);' pilonCor_round1.fasta > A_set.fa #Pattern #Extract #Fasta

    1918 days ago

  • The Jaro distance is a measure of similarity between two strings. https://rosettacode.org/wiki/Jaro_distance#Perl #Jaro #Distance

    1808 days ago

  • Perl special variable https://perldoc.perl.org/perlvar.html #Perl #variable

    1709 days ago

  • #Rename the #fasta #header and #keep first $ perl -ne 'if (/^(>\S+)/){print "$1\n";}else{print $_;}' realTestDATA.fa > realTestDATA_headerCorrected.fa #Perl

    1641 days ago

  • This works and I dont know how :) perl -pe '}{$_=$.' filename #Perl #Magic #PerlMagic

    1635 days ago

  • Perl onliner to add string to each of the fasta header. $ perl -p -e 's/^(>.*)$/$1-origin/g' in.fasta > out.fasta #String #Header #Fasta

    1627 days ago

  • Perl script to run in parallel https://perlmaven.com/speed-up-calculation-by-running-in-parallel #Perl #Parallel #Script #Core #Thread

    1624 days ago

  • Perl References https://gist.github.com/afair/2402068 #Perl #Reference #Array #Hash

    1545 days ago

  • Keep perl in container https://www.ecliptik.com/Containerizing-a-Perl-Script/ #Docker #Container #Perl #Dependencies

    1522 days ago