This is an easy way to install a custom perl version using perlbrew:
PS: This is optimized for my linux distro (archlinux 64bits).
Getting Bioinformatics Done
Nerd Stuff, Linux, Perl and Biology...
Monday, October 7, 2013
Wednesday, October 31, 2012
Update all Perl modules via CPAN
This is a quick tip to update all installed modules, just type:
perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'
perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'
Sunday, September 23, 2012
Creating unix command for Picard JAR files
Picard (http://picard.sourceforge.net/) is a nice Java-based toolkit to work with BAM and SAM files.
Usually I don't like to type "java -jar" when calling picard tools so I always wrap them in bash scripts with the script below:
Usually I don't like to type "java -jar" when calling picard tools so I always wrap them in bash scripts with the script below:
Thursday, November 24, 2011
Fixing Skype video aspect ratio on Linux
Linux is the main OS in my laptop and I use Skype a lot on it. Unfortunately Skype support on linux sucks! Now that Micro$oft bought $kype it should be worse! I'm gradually moving to Google talk video, but a lot of contacts (specially my family) still use Skype only.
Because is poorly developed Linux version of Skype doesn't allow resize the video window and aspect ratio. This is a pain when you have a HD Webcam because Skype always start a video call with a 640x480 ratio (HQ video call) and switch automatically to HD quality (1280x720) if your connection is higher than 30KB/s. Instead of change the aspect ratio from 4:3 to 16:9 Skype shrinks the HD video in a 4:3 frame, which make your video really weird for the other person causing a "wobbly" image effect some times.
Wednesday, November 9, 2011
Creating and maintaining Perl command-line scripts
In bioinformatics 90% of Perl scripts are command-line scripts and they should be written fast (because our bosses want results at the end of the day). Of course, Perl is perfect for this task, also called "quick and dirty" scripts and you may think will be fine create a messy script that will be used just once, right?
But a problem with "quick and dirty" scripts is that they usually live more than one run. Sometimes it becomes part of your mainstream pipeline and maintain that script is a pain.
Well, so how can we avoid unmaintainable command-line scripts?
Friday, November 4, 2011
Recursive download from ftp directory with wget without copying the entire tree structure
A simple and fast way to download recursive directories with wget. Suppose that you want to download the entire directory "igblast" from http://mirrors.vbi.vt.edu/mirrors/ftp.ncbi.nih.gov/blast/temp/igblast/.
If you execute the following command you will get the entire directory tree structure beginning from 'mirrors.vbi.vt.edu' (only the structure, not the files because of the argument --no-parent).
To get "igblast" files and directories only, execute the following command:
Where -nH remove "http://mirrors.vbi.vt.edu/" and --cut_dirs remove the others directories.
If you execute the following command you will get the entire directory tree structure beginning from 'mirrors.vbi.vt.edu' (only the structure, not the files because of the argument --no-parent).
To get "igblast" files and directories only, execute the following command:
Where -nH remove "http://mirrors.vbi.vt.edu/" and --cut_dirs remove the others directories.
Subscribe to:
Posts (Atom)