Posts

Showing posts from August, 2008

Maping big sequences

For my work I get some slices of 100 kb from real chromosomes, but I forget to insert in the fasta comment the name and coordinates for each sequences, now I need to know this information for each one, so I tried to map using blast, but in the server a weird error marks "Segmentation fault" (I format the full genome ~3 Gb). I think in the Perl solution and this is the code: #!/usr/bin/perl -w use strict; =head1 NAME mapSeq2Chr.pl =head1 DESCRIPTION Perl script to find and get the position of each sequence in a multifasta file into a big sequence (a chromosome). The comparation is direct, so it only works with sequences in same direction (typical 5' -> 3'). Output is a simple text file with the name of the sequence, the name of the big sequence and the positions where match. Note we match every line with a fasta comment (defined with ">") but the last sequence is omitted, I add a ">" as last line with: echo ">" >> fast...

MS Virus in space

If you missing the BSOD at the Olympic Games , today is another Windows bad point takes the press, a computer virus is found in some laptops in the ISS , specifically the virus known as Gammima .AG. Apparently the source was a memory flash from a digital camera, infected the laptop and try to infect other computers, obviously NASA filter every transmission with the ISS and the virus is aisled , but the laptop doesn't have an antivirus. The laptops are used to register nutritional data for the astronauts and as personal computer to send email to Earth, nothing special. NASA is very paranoic in the materials which send to space, no dust or particles are allowed, but they need to start checking the computers and other informatic devices too. Or maybe is that a revenge from the Aliens from " Indepence Day "? You know, Jeff Goldblum infected them using a custom virus from his Mac. Source: http://news.bbc.co.uk/2/hi/technology/7583805.stm PD: Today Linux isn't secure al...

Motivational posters

Image
From : http://www.besttechie.net/forums/Linux-Humor-t14545.html
From Ceyusa's blog : "A Pythagorean triplet is a set of three natural numbers, a , for which, a 2 + b 2 = c 2 For example, 3 2 + 4 2 = 9 + 16 = 25 = 5 2 . There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product abc ." My Perl solution (ok it isn't a functional programming but works): #!/usr/bin/perl -w use strict; my @n = ( 1 .. 1000 ); foreach my $a ( @n ) { my $a2 = $a * $a; foreach my $b ( @n ) { my $b2 = $b * $b; my $c = sqrt ( $a2 + $b2 ); next unless ( ($a + $b + $c) == 1000 ); next unless ( ($c / int $c ) == 1 ); print "Solution: a = $a b = $b c = $c\n"; exit; } }

New paradigms in supercomputing

Image
A first law in building large systems to High Performance Computing is more processors are better, for many years the development of processors was dominated by the x86 family, beating including the PowerPC (more in cost than in performance in my opinion) and new families emerge like the x86_64 and the multicore chips. Beside the CPU technology advances, other part of the computer had acquired a new task, the graphic card, in early stages of computer evolution, its function was only connect and control the visual output for the system and the monitor. Later computer games demand more intensive usage for the GPU, principally by 3D environments, and new technologies were created to satisfy the demand. Actually a high performance graphic card is like a small but very efficient version of a complete system, including one or more special GPUs, own memory and can share information with the host system or other graphics card very fast (SLI). How do include this computing power? Because apa...

The Perfect Linux

Ok , last time I judged the Ubuntu distribution so hard, later I started to think if there are a perfect Linux. First thing I believe is the Linux versatility, with the freedom of evolve or changing (forking) you can expect everything, so you can choice what to use as desktop, shell, editor, package system, ... Many distributions are open to change the default installation, or simply to allow to try any program in the repositories or just the code. The options are infinite. I remember when you need to decide the parts of your system, in the beginning of many distributions the installation system ask you the packages to include, some times you obtain an unstable systems, but many times you have a personal system. Many problems could be resolved reading manual or asking in the LUGs , but some times you needed to wait until the next release and a programmer or hacker fix it. Later the popularity of LiveCDs allows to install a full system which works fine, because many debuggers tested t...

LHC Rap

I don't use Ubuntu

Many of my linux -friends well know I don't like Ubuntu , yes the " so popular and friendly linux ", this week I had some buddy-support for this bad distro , but these people are fascinating using it! Basic problems include (in order of appearance ): Compile a C code. Why Ubuntu doesn't configure well the dependent libraries for static? I try the code in other Un *x environment and works well, but in Ubuntu I had to delete the static flag and edit the headers in source code. Execute a CGI script under Apache (I'm not 100% sure of Ubuntu systems but I guess). If the system install a httpd . conf file with basic rules to work, you expect this work, if it doesn't, I don't like to read the manual to fix something when many other distros like Mandriva do perfectly fine the first time. Install updates and reboot. Sorry for the similitudes, but this is a Windows feature, why do you need to reboot after the installation of updates? I like to update if I ...

Linux sizes

Image
Ok , lets get some conclusions about the image: Time is 9 years, Linux had almost 9 years old in 1999. I don't now the numerical values of the samples. In 1999, the average is in medium size (M), in 2008 is extra large (XL). I think one explanation, many linux users started as very active-skinny young people and later they gain some weight. But really few people, like me, use Linux in 1999, and after the Ubuntu boom in 2005 many new users are converted every year. Are they bigger in size? The anti-MS commentary: If Windows crash every 5 minutes, the BSOD makes you move with your frustration , Linux stability makes you be more static in front the screen. BTW, I'm L since 1995.

Large Hadron Collider

Image
From Boston.com : "The Large Hadron Collider (LHC), a 27 kilometers (17 miles) long particle accelerator straddling the border of Switzerland and France, is nearly set to begin its first particle beam tests. The European Organization for Nuclear Research (CERN) is preparing for its first small tests in early August, leading to a planned full-track test in September - and the first planned particle collisions before the end of the year. The final step before starting is the chilling of the entire collider to -271.25 C (-456.25 F)." Here a few amazing pictures, more in the website: