2175 days ago
splitbam: splits a BAM by chromosomes
...ence dictionary (*.dict), it also creates some empty BAM files if no sam record wa...'mock' SAM-Records can also be added to those empty BAMs to avoid some tools (lik...ped chromosome name): default:Unmapped -e | --empty : generate EMPTY bams for chr...2665 days ago
Find certain files/documents in Linux OS
...ch as .fa or .gb, then use.# find . -type f -name "*.fa" -exec rm -f {} \;OR# find . -type f -name "*.gb" -exec rm -f {} \;19. Find all Empty FilesTo file all empty files under certain path.# fi...3723 days ago
A guide for complete R beginners :- Getting data into R
...However if the columns or of an uneven length it will tell you. If you know that the file has uneven columns mydata This causes R to fill empty spaces in a columns with &lsq...3399 days ago
Perl one-liner for bioinformatician !!!
...r all lines in a fileperl -pe '$_ = ++$a." $_" if /./' #Number only non-empty lines in a fileperl -ne 'print ++$a." $_" if /./' #Number and print only non-empty lines in a fileperl -pe '$_ =...3670 days ago
PerlOneLiner for Bioinformatician
...fileperl -pe '$_ = "$. $_"' # Number only non-empty lines in a fileperl -pe '$_ =...+$a." $_" if /./' # Number and print only non-empty lines in a file (drop empty l...'say~~grep/./,<>' # Print the number of empty lines in a fileperl -lne '$a+...2344 days ago
The Best Bioinformatics / Computational Biology Quotes
...cal world, but they won't give us the genetic code :P If at first you don't succeed; call it version 1.0 The glass is neither half-full nor half-empty: it's actually have several g...3762 days ago
Check overlapping range with Perl
...print "tests in range $ranges->[0]:\n", join(", ", @$tests), "\n"; } else { print "range $ranges->[0] is empty\n"; } } el...2669 days ago
Plot the clock using Lastz -gerenal outfile
...open (my $fh2, $fileN) or die "Could not open file $fileN $!"; my (@allKeys, @allFreq); my %pHash; while() { chomp; next if /^$/; #next if empty my @arr = split("\t", $_);...2341 days ago
2703 days ago