TWiki> LabioComp Web>DocuMentacoes (revision 6)EditAttach

1) Configurações do Ldap nos nós do Cluster

# apt-get install libnss-ldap libpam-ldap nscd

LDAP server URI: ldap://
Distinguished name of the search base: dc=republica,dc=star,dc=wars
LDAP version to use: 3
LDAP account for root: cn=admin,dc=republica,dc=star,dc=wars

LDAP root account password: <vocês sabem qual né? Não vou colocar aqui>
Allow LDAP admin account to behave like local root? No
Does the LDAP database require login?: No

No arquivo /etc/ldap/ldap.conf adicione as seguintes linhas:

BASE dc=republica,dc=star,dc=wars
URI ldap://

No arquivo /etc/nsswitch.conf modifique conforme as linhas abaixo:

passwd: compat ldap
group: compat ldap
shadow: compat ldap

# /etc/init.d/nscd restart

Teste a conf:

# id testeldap

Deve retornar o seguinte:

uid=2000(testeldap) gid=100(users) grupos=100(users)

Rafael Gomes
Consultor em TI

(71) 8318-0284
2) Configurações do SSH sem senha, proxy, NFS e torque:
Vitor Vilas Boas
to r2d2_ufba
Galera, já está ok para meu usuário o SSH sem senha no cluster02 a partir do darthvader.

O que ainda falta fazer:

- Colocar o darthvader em todos os arquivos hosts.
- Cada usuário criar sua chave no ssh do darthvader e criar o arquivo authorized_keys.
- Modificar o fstab de todos os nós para que utilize o /home do darthvader e não do clustermaster como está setado.

Vou fazer isso hoje, até o final da tarde concluo.

Para os usuários fazerem a chave SSH, vou colocar aqui como fazer, e se alguém puder colocar na wiki (Gomex se puder...)

1 - Logar no darthvader com o próprio usuário;

2 - Gerar a chave com o comando --> ssh-keygen -t rsa

3 - Dar enter até terminar o processo, não colocando frase alguma, deixando a frase em branco.

4 - Entrar no diretório que estão localizadas as chaves ---> cd ~/.ssh

5 - Gerar o authorized_keys --> cat >> authorized_keys

6 - Fazer o teste logando no cluster02 --> ssh cluster02 (Caso precise, aceitar o certificado com yes) e refazer o teste.


add no /etc/profile das estações (internet)
export http_proxy=

add no /etc/fstab (monta home NFS) /home nfs rw,hard,intr 0 0

Torque nas estações:
/var/spool/torque/server_name > uma única linha com o nome do servidor "darthvader"
/var/spool/torque/mom_priv/config > adicionar nome do servidor "darthvader"

Solução para qualquer máquina que possa ter sido desligada incorretamente:

rm -rf /var/run/network$ rm -rf /var/run/network/mountnfs


3) Arquivo de configuração do DHCP

/etc/dhcp/dhcpd.conf (Aqui estão as configurações que ligam os IPs com seus respstivos MACs)

/etc/init.d/isc-dhcp-server restart (Comando para reiniciar o serviço sem a necessidade de reiniciar o sistema todo)


4) Clustal-mpi




CLUSTALW-MPI: ClustalW? Analysis Using Grid and Parallel Computing

based on ClustalW? , the multiple sequence alignment program
(version 1.82, Feb 2001)


This README contains the help with INSTALLATION

ClustalW? is a popular tool for multiple sequence alignment. The
alignment is achieved via three steps: pairwise alignment,
guide-tree generation and progressive alignment. ClustalW? -MPI is an
MPI implementation of ClustalW? . Based on
version 1.82 of the original ClustalW? , both the pairwise
and progressive alignments are parallelized with MPI, a
popular message passing programming standard.

ClustalW? -MPI is freely available to the user community.

The software is available at

The original ClustalW? /ClustalX can be found at

Please send bug reports, comments etc. to "".

INSTALLATION (for Unix/Linux)

This is an extremely quick installation guide.

1. Make sure you have MPICH or LAM installed on your system.

2. Unpack the package in any working directory:

tar xvfp clustalw-mpi-0.1.tar.gz

3. Take a look at the Makefile and make the modifications that you might desire,
in particular:

CC = mpicc
CFLAGS = -c -g


CFLAGS = -c -O3

4. Build the whole thing simply by typing "make".

5. If you wanted to use serial codes to compute the neighbor-joining tree,
you would have to define the macro "SERIAL_NJTREE" when compiling trees.c:


This macro is defined in the default Makefile. That is, to use
MPI codes in neighbor-joining tree, you have to "undefine" the
macro "SERIAL_NJTREE" in your Makefile.

SAMPLE USAGE (for Unix/Linux)

1. To make a full multiple sequence alignment:
(using one master node and 4 computing nodes)

%mpirun -np 5 ./clustalw-mpi -infile=dele.input
%mpirun -np 5 ./clustalw-mpi -infile=CFTR.input

2. To make a guide tree only:

%mpirun -np 5 ./clustalw-mpi -infile=dele.input -newtree=dele.mytree
%mpirun -np 5 ./clustalw-mpi -infile=CFTR.input -newtree=CFTR.mytree

3. To make a multiple sequence alignment out of an existing

%mpirun -np 5 ./clustalw-mpi -infile=dele.input -usetree=dele.mytree
%mpirun -np 5 ./clustalw-mpi -infile=CFTR.input -usetree=CFTR.mytree

4. The environment variable, CLUSTALG_PARALLEL_PDIFF, could be used to
run the progressive alignment based on the parallelized pdiff().

By default the variable CLUSTALG_PARALLEL_PDIFF is not set, and
the progressive alignment will be parallelized accroding the structure
of the neighbor-joining tree. However, parallelized pdiff() will still
be used in the later stage when prfalign() tries to align more distant
sequences to the profiles. If you don't understand this,
simply leave the variable unset.

1. On Intel IA32 platforms, slightly different neighbor-joining trees
might be obtained with and without enabling the compiler's optimization flags.

This is due to the fact that Intel processors use 80-bit FPU registers
to cache "double" variables, which are supposed to be 64-bit long. With '-O1'
or above optimizer flag, the compiler would not always immediately save the
variables involved in a double operation back to memory. Instead, intermediate
results will be saved in registers, having 80-bit of precision. This would
cause problem for nj_tree() because it is sensitive to the precision of floating
point numbers.


(1) Other platforms, including Intel's IA64, don't seem to have this problem.


(2) Building "trees.c" with optios like the below: (potentially
with high performance overhead)

%gcc -c -O3 -ffloat-store trees.c // GNU gcc

%icc -c -O3 -mp trees.c // Intel C compiler


(3) Decalring relevant variables as "volatile" in nj_tree():

volatile double diq, djq, dij, d2r, dr, dio, djo, da;
volatile double *rdiq;

rdiq = (volatile double *)malloc(((last_seq-first_seq+1)+1)*
sizeof(volatile double));

4b) Manual de usdo extraído de:

OBS: o clustalw-mpi já está instalado em todo o cluster.

1. Introduction of ClustalW? -MPI

ClustalW? is a general-purpose multiple sequence alignment program for DNA or proteins.

The alignment is achieved via three steps:

  • pairwise alignment;
  • guide-tree generation; and
  • progressive alignment.
ClustalW? -MPI is an MPI and GRID-aware implementation of ClustalW? . Based on version 1.82 of the original ClustalW? , both the pairwise and progressive alignments are parallelized with MPI, a popular message passing programming standard.

2. Input Sequences

p All sequences input must be in 1 file, one after another. 7 formats are automatically recognised: NBRF/PIR, EMBL/SWISSPROT, Pearson (Fasta), Clustal ( .aln), GCG/MSF (Pileup), GCG9/RSF and GDE flat file. All non-alphabetic characters (spaces, digits, punctuation marks) are ignored except "-" which is used to indicate a GAP ("." in GCG/MSF).

p If the input file is in GenBank? (
.gb) or other formats which is not supported by the Clustal W and can't be converted by Clustal X, you can used EMBOSS-3.0($ seqret -osformat fasta) and convert the file to Fasta ( .fasta) format beforehand.

*3. Job Submission and Monitoring

Sample PBS Script for a 4-node job - "clustalw.pbs"
You can use the following script to build a full multiple sequence alignment job using 4 computing nodes (8 CPUs): To edit the script, you may run pico, e.g. % pico clustalw.pbs

#PBS -q q4n16g
#PBS -N cpu8
#PBS -lnodes=4:ppn=2
#PBS -m bea
export PATH=/usr/pbs/bin:$PATH;
cd clustalw-mpi-0.13
source /usr/local/etc/
time pbs_mpirun clustalw-mpi -infile=test.fasta >& test8.out

Job Submission
Then, you can run the job by submitting the script to PBS as follows:
% qsub clustalw.pbs

For other PBS commands, please refer to the section "Starter Guide for PBS"

Job Monitoring

List the current jobs on the cluster

List the currently running jobs on the cluster
%qstat –a

Lists nodes allocated to running jobs
%qstat –r

Show detailed information on a specific job
% qstat –n

Show detailed information for all queues
%qstat -f <jobid>

Advance PBS command:

Advanced users can type % man q_command to see the details of the following command.




Alter a job's attributes.


Delete a job.


Place a hold on a job to keep it from being scheduled for running.


Move a job to a different queue or server


Append a message to the output of an executing job.


Terminate an executing job and return it to a queue.


Remove a hold from a job.


Obtain a list of jobs that met certain criteria.


Send a signal to an executing job.


4) Instalar Mega no Debian squeeze

4.1) Adicionar #deb natty main universe no sources.list

4.2) Instalar o wine1.2: aptitude install wine 1.2

4.3) Baixar wine1.2-gecko do mirror:

4.4) Instalar o wine1.2-gecko usando Gdebi

4.5) Adicionar o repositório do mega "deb mega main" no sources.list

4.6) Instalar o mega: aptitude install mega



-- RodrigoZucoloto - 02 Nov 2011
Edit | Attach | Print version | History: r14 | r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r6 - 24 Feb 2012 - 10:10:54 - RodrigoZucoloto
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback