Alignment sequences with MUSCLE
0
0
Entering edit mode
6.3 years ago
jr5731173 • 0

Hello, I want to do multiple sequences alingment in all files contained in a directory, all of them with .faa extension, I want to run the muscle software in a PBS script I don't know if the next command line is correct

#PBS -N muscle_core
#PBS -l nodes=1:ppn=16,mem=16gb,vmem=32gb,walltime=250:00:00
#PBS -q default
#PBS -V

cd $PBS_O_WORKDIR

module load muscle/3.8.31

for file in $*.faa; do musle -in $file -out "${file}_aln.faa; done

My data are in /LUSTRE/user/username

alignment • 1.3k views
ADD COMMENT
1
Entering edit mode

The last line would be better as:

for file in /path/to/dir/*.faa ; do muscle -in "$file" -out "${file%.*}"_aln.faa ; done

or for file in *.faa ; would be fine if you are cding in to the directory itself.

ADD REPLY
1
Entering edit mode

apart from the typo in muscle (not musle) it will do ok, though jrj.healey suggestion will make it more applicable

ADD REPLY
1
Entering edit mode

I assume this is the content of your job script? Problem with doing it this way is that for loop executes under a single PBS job (unless you do job arrays, an example here).

Otherwise you would want to use something like this to submit multiple jobs at the same time.

ADD REPLY

Login before adding your answer.

Traffic: 2135 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6