Results for "Programming with Perl"

Wire posts

  • Multi-line fasta to single line fasta $ perl -pe '/^>/ ? print "\n" : chomp' in.fasta | tail -n +2 > out.fasta #Multiline #Singleline #Fasta

    2121 days ago

  • Rename the fasta header perl -ane 'if(/\>/){$a++;print ">LR$a\n"}else{print;}' allPacBio_clean.fa > allPacBio_clean_shortName.fa #fasta #header #rename

    2063 days ago

  • #Programming exercises for the Stanford Unsupervised Feature Learning and #Deep #Learning #Tutorial http://ufldl.stanford.edu/tutorial https://github.com/amaas/stanford_dl_ex

    2049 days ago

  • #swirl #teaches you #R programming and data science interactively, at your own pace, and right in the R console! https://swirlstats.com/ #learn

    1997 days ago

  • 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

    1962 days ago

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

    1961 days ago

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

    1852 days ago

  • Efficient R programming Colin Gillespie Robin Lovelace https://csgillespie.github.io/efficientR/ #Efficient #R #programming

    1762 days ago

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

    1752 days ago

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

    1684 days ago