about summary refs log tree commit diff
path: root/pkgs/applications/science/biology/pal2nal/default.nix
blob: ff9e35d921644f7b3ff6a96ab88b9a4d12c6fa44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{stdenv, fetchurl, perl, paml}:

stdenv.mkDerivation {
  name = "pal2nal-12";
  src = fetchurl {
    url = http://coot.embl.de/pal2nal/distribution/pal2nal.v12.tar.gz;
    sha256 = "1qj9sq5skpa7vyccl9gxc5ls85jwiq8j6mr8wvacz4yhyg0afy04";
  };

  installPhase = ''
    ensureDir $out/bin

    cp -v pal2nal.pl $out/bin 

    ensureDir $out/doc

    cp -v README $out/doc
  '';

  meta = {
    description     = "Program for aligning nucleotide sequences based on an aminoacid alignment";
    longDescription = ''
   PAL2NAL is a program that converts a multiple sequence alignment of proteins and the corresponding DNA (or mRNA) sequences into a codon alignment. The program automatically assigns the corresponding codon sequence even if the input DNA sequence has mismatches with the input protein sequence, or contains UTRs, polyA tails. It can also deal with frame shifts in the input alignment, which is suitable for the analysis of pseudogenes. The resulting codon alignment can further be subjected to the calculation of synonymous (KS) and non-synonymous (KA) substitution rates.

If the input is a pair of sequences, PAL2NAL automatically calculates KS and KA by the codeml program in PAML.
'';
    license        = "non-commercial";
    homepage       = http://coot.embl.de/pal2nal/;
    pkgMaintainer  = "Pjotr Prins";
  };
}