3944 days ago
Most Commonly used Awk by Bioinformatician
...> output.txt extract column 2,4,5: awk '{print $2,$4,$5}' input.txt > output.txt awk 'BEGIN{OFS="\t"}{print $2,$4,$5}' input.txt show ro...er in this case): awk '{sub(/test/, "no", $0);print}' input.txt OK now h...3915 days ago
Perl one-liner for bioinformatician !!!
...nd substituting text, deleting and printing certain lines, parsing log...n"x7' #7 space in a line.perl -ne 'print unless /^$/' #remove all blan...++$a." $_" if /regex/' #Number and print only lines that match a patte...'@odd = grep {$_ % 2 == 1} 1..100; print "@odd"'#Generates an array of...3631 days ago
3551 days ago
Source Code and Pseudo Code !!
...ples: 1. If student's grade is greater than or equal to 60 Print "passed" else Print "failed" endif 2....endif end while if consec cntr >= 3 printf (Appropriate message 1 and s...2661 days ago
Awesome perl frameworks, libraries and software - PART 1
...ngo - Pure-Perl non-blocking I/O MongoDB driver dreamwidth/dw-free - Dreamwidth's open source repository garu/Data-Printer - colored pretty-print of Perl data structures and o...2492 days ago
2491 days ago
Edit distance application in bioinformatics !
...the same length. the Jaro distance allows only transposition. use Text::Levenshtein qw(distance); print distance("foo","four"); # prints "2" my @words = qw/...2343 days ago
Run miniasm assembler on nanopore reads !
...ta -t10 -X > AONT.paf awk '{if($1==$6){print}}' AONT.paf > AONTself.paf awk '$5=="-"' AONTself.paf | awk '{print $1}'| sort|uniq > inverted...> AONT.gfa grep '^S' AONT.gfa |awk '{print ">"$2"\n"$3}' > AONT_mi...2333 days ago
2308 days ago