Sponsored Content
Top Forums Shell Programming and Scripting Passing arguments to interactive program through bash script, here document Post 302909549 by biochemist on Thursday 17th of July 2014 02:26:10 PM
Old 07-17-2014
Dear Corona688,
Below the word by word execution of program from terminal: I have the executable set in the path:

Code:
[host@localhost temp]$ ma
Multalin version 5.4.1
Copyright I.N.R.A. France 1989, 1991, 1994, 1996
Published research using this software should cite
Multiple sequence alignment with hierarchical clustering
F. CORPET, 1988, Nucl. Acids Res., 16 (22), 10881-10890

Sequence file:  H_X.fas

Input format (gcg, mul, embl, genbank, auto): (def = auto)  auto

Other Input parameters (y/n) ?: (def=n) n

Symbol comparison table: (def = blosum62.tab) /home/multalign/dna.tab

Gap value ? (def = value in Symbol comparison file):   

Other Alignment parameters (y/n) ?: (def=n) n

Output format (msf, mul, doc): (def = msf) msf

Other Output parameters (y/n) ?: (def=n) y

Ouput order as (aligned, input)) ?: (def=aligned) aligned

Save cluster as a drawing or as a list (d/l) ?: (def = l) l

 Consensus levels (default = 90 and 50) ? :  100.90
Reading H_X.fas
Sequence #  26
Reading /home/multalign/dna.tab
Saving Configuration.
Clustering with fast
Action successful                                                              
Saving H_X.clu
Aligning
gnl|hbvcds|AB059659_ ..................with gnl|hbvcds|EF157291_ Position #    gnl|hbvcds|AB059659_ ...................with gnl|hbvcds|EU498228_ Position #   gnl|hbvcds|AB059659_ ....................with gnl|hbvcds|FJ356715_ Position #  gnl|hbvcds|AB059659_ .....................with gnl|hbvcds|FJ356716_ Position # gnl|hbvcds|AB059659_ ......................with gnl|hbvcds|HM066946_ Position #gnl|hbvcds|AB059659_ .......................with gnl|hbvcds|HM117850_ Position gnl|hbvcds|AB059659_ ........................with gnl|hbvcds|HM117851_ Positiongnl|hbvcds|AB179747_ ................with gnl|hbvcds|AB059660_ ..Position #    gnl|hbvcds|AB059660_ ...................with gnl|hbvcds|AB059659_ Position #   gnl|hbvcds|AB059659_ ....................with gnl|hbvcds|AB205010_ Position #  gnl|hbvcds|AB059659_ .....................with gnl|hbvcds|HM117851_ Position # gnl|hbvcds|AB059659_ ......................with gnl|hbvcds|AB064315_ Position #gnl|hbvcds|AB059659_ .......................with gnl|hbvcds|AY090454_ .PositionAction successful  2 iteration(s)                                              
Saving H_X.cl2
Saving H_X.msf
[host@localhost temp]$

Above options comes up when trying to execute the program from terminal. I am trying to run this program automatically so that I don't have to do this interactively for 1000 of sequences.

I really appreciate your time and response Corona688.
Regards
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Passing arguments to a script

I've written a script (bgrep) for a more advanced grep command (& attached a cut down version below). I'm trying allow all grep options to be used, or in any combination. The script works fine if I type say bgrep -i -files product it will return a non-case sensitive list of matches for... (3 Replies)
Discussion started by: Kevin Pryke
3 Replies

2. UNIX for Advanced & Expert Users

How to pass arguments to an interactive script

Hey guys, I have an interactive script that is quite critical to our production environmentl thus updating it to run non-interactively is not an option. The script takes a varying number of arguments, which it ques untill user confirm end of data entry e.g of user input : 1 2 y ... (3 Replies)
Discussion started by: geek.ksa
3 Replies

3. Shell Programming and Scripting

How to make bash wrapper for java/groovy program with variable length arguments lists?

The following bash script does not work because the java/groovy code always thinks there are four arguments even if there are only 1 or 2. As you can see from my hideous backslashes, I am using cygwin bash on windows. export... (1 Reply)
Discussion started by: siegfried
1 Replies

4. Shell Programming and Scripting

passing arguments to external script

Hi! I have a python script that requires arguments and these arguments are file paths. This script works fine when executed like this: /my_python_script "file_path1" "file_path2" (i added quotes as some file names may have weird characters) the issue happens when i launch my python script... (14 Replies)
Discussion started by: gigagigosu
14 Replies

5. Shell Programming and Scripting

Passing arguments from a bash shell script to a command

I'm pretty new to bash scripting and I've found myself writing things like this (and the same with even more nesting): if $CATEGORIES; then if $LABEL_SLOTS; then $pyth "$wd/texify_grammar.py" "$input" "$texfile" "--label-slots" "--categories" "$CATEGORY_LIST" ... (9 Replies)
Discussion started by: burbly
9 Replies

6. Shell Programming and Scripting

How to pass arguments to an interactive script?

I've tried to find a solution to this, but I"m stumped. OS - RH Linux 5.9 I have a bash script <myProgram.sh> that gets executed manually and creates a small response file. I'm trying to automate the running of this script. When myProgram.sh runs, it prompts the user to enter 2 pieces of... (13 Replies)
Discussion started by: progkcp
13 Replies

7. Shell Programming and Scripting

Passing arguments to a bash script

Hi, I wanted to pass an argument to a bash script. So that the argument is used inside the awk command inside the bash script. I know the noraml way of passing argument to a bash script as below : sh myScript.sh abc Inside the bash script i can use like this myArg1=$1 wc $myArg But... (8 Replies)
Discussion started by: shree11
8 Replies

8. Shell Programming and Scripting

Using here document when passing arguments

I have a script test.sh which reads various inputs from a user. #!/bin/ksh read x read y read z echo x: $x y: $y z: $z # read few more things again read a read b echo a: $a b: $b When i run this script as test.sh << EOF 1 2 EOF (3 Replies)
Discussion started by: ariesb2b
3 Replies

9. Shell Programming and Scripting

Passing arguments while running the script

Hi, I have a requirement for creating a MQ (queue) where the inputs has to be passed as arguments. Running the script as below ./hi.sh "Servername" "QueueManagername" "QueuecreationCommand" cat hi.sh echo "Welcome to $1" runmqsc $2 < $3 But the queue creation command is... (9 Replies)
Discussion started by: Anusha M
9 Replies

10. UNIX for Beginners Questions & Answers

Beginner at bash scripting - need help with passing arguments

I at the moment, making a simple bash script, capable of setting up an workspace for me, so i don't have to do it manually.. Problem is though i can't seem to provide the bash script any argument, without running into my error checks, checking for input... Here is the code: #!/bin/bash... (7 Replies)
Discussion started by: kidi
7 Replies
HHSEARCH(1)							   User Commands						       HHSEARCH(1)

NAME
hhsearch - search a database of HMMs with a query alignment or query HMM SYNOPSIS
hhsearch -i query -d database [options] DESCRIPTION
HHsearch version 2.0.15 (June 2012) Search a database of HMMs with a query alignment or query HMM (C) Johannes Soeding, Michael Remmert, Andreas Biegert, Andreas Hauser Soding, J. Protein homology detection by HMM-HMM comparison. Bioinformatics 21:951-960 (2005). -i <file> input/query multiple sequence alignment (a2m, a3m, FASTA) or HMM -d <file> HMM database of concatenated HMMs in hhm, HMMER, or a3m format, OR, if file has extension pal, list of HMM file names, one per line. Multiple dbs, HMMs, or pal files with -d '<db1> <db2>...' <file> may be 'stdin' or 'stdout' throughout. Output options: -o <file> write results in standard format to file (default=<infile.hhr>) -Ofas <file> write pairwise alignments of significant matches in FASTA format Analogous for output in a3m, a2m, and psi format (e.g. -Oa3m) -oa3m <file> write MSA of significant matches in a3m format Analogous for output in a2m, psi, and hhm format (e.g. -ohhm) -e [0,1] E-value cutoff for inclusion in multiple alignment (def=0.001) -seq <int> max. number of query/template sequences displayed (def=1) Beware of overflows! All these sequences are stored in memory. -cons show consensus sequence as master sequence of query MSA -nocons don't show consensus sequence in alignments (default=show) -nopred don't show predicted 2ndary structure in alignments (default=show) -nodssp don't show DSSP 2ndary structure in alignments (default=show) -ssconf show confidences for predicted 2ndary structure in alignments -p <float> minimum probability in summary and alignment list (def=20) -E <float> maximum E-value in summary and alignment list (def=1E+06) -Z <int> maximum number of lines in summary hit list (def=500) -z <int> minimum number of lines in summary hit list (def=10) -B <int> maximum number of alignments in alignment list (def=500) -b <int> minimum number of alignments in alignment list (def=10) -aliw [40,..[ number of columns per line in alignment list (def=80) -dbstrlen max length of database string to be printed in hhr file Filter query multiple sequence alignment -id [0,100] maximum pairwise sequence identity (%) (def=90) -diff [0,inf[ filter MSA by selecting most diverse set of sequences, keeping at least this many seqs in each MSA block of length 50 (def=100) -cov [0,100] minimum coverage with query (%) (def=0) -qid [0,100] minimum sequence identity with query (%) (def=0) -qsc [0,100] minimum score per column with query (def=-20.0) -neff [1,inf] target diversity of alignment (default=off) Input alignment format: -M a2m use A2M/A3M (default): upper case = Match; lower case = Insert; '-' = Delete; '.' = gaps aligned to inserts (may be omitted) -M first use FASTA: columns with residue in 1st sequence are match states -M [0,100] use FASTA: columns with fewer than X% gaps are match states -tags do NOT neutralize His-, C-myc-, FLAG-tags, and trypsin recognition sequence to background distribution HMM-HMM alignment options: -norealign do NOT realign displayed hits with MAC algorithm (def=realign) -mact [0,1[ posterior probability threshold for MAC re-alignment (def=0.350) Parameter controls alignment greediness: 0:global >0.1:local -glob/-loc use global/local alignment mode for searching/ranking (def=local) -alt <int> show up to this many significant alternative alignments(def=2) -vit use Viterbi algorithm for searching/ranking (default) -mac use Maximum Accuracy (MAC) algorithm for searching/ranking -forward use Forward probability for searching -excl <range> exclude query positions from the alignment, e.g. '1-33,97-168' -shift [-1,1] score offset (def=-0.03) -corr [0,1] weight of term for pair correlations (def=0.10) -sc <int> amino acid score (tja: template HMM at column j) (def=1) 0 = log2 Sum(tja*qia/pa) (pa: aa background frequencies) 1 = log2 Sum(tja*qia/pqa) (pqa = 1/2*(pa+ta) ) 2 = log2 Sum(tja*qia/ta) (ta: av. aa freqs in template) 3 = log2 Sum(tja*qia/qa) (qa: av. aa freqs in query) 5 local amino acid composition correction -ssm {0,..,4} 0: no ss scoring 1,2: ss scoring after or during alignment [default=2] 3,4: ss scoring after or during alignment, predicted vs. predicted -ssw [0,1] weight of ss score compared to column score (def=0.11) -ssa [0,1] SS substitution matrix = (1-ssa)*I + ssa*full-SS-substition-matrix [def=1.00) Gap cost options: -gapb [0,inf[ Transition pseudocount admixture (def=1.00) -gapd [0,inf[ Transition pseudocount admixture for open gap (default=0.15) -gape [0,1.5] Transition pseudocount admixture for extend gap (def=1.00) -gapf ]0,inf] factor to increase/reduce the gap open penalty for deletes (def=0.60) -gapg ]0,inf] factor to increase/reduce the gap open penalty for inserts (def=0.60) -gaph ]0,inf] factor to increase/reduce the gap extend penalty for deletes(def=0.60) -gapi ]0,inf] factor to increase/reduce the gap extend penalty for inserts(def=0.60) -egq [0,inf[ penalty (bits) for end gaps aligned to query residues (def=0.00) -egt [0,inf[ penalty (bits) for end gaps aligned to template residues (def=0.00) Pseudocount (pc) options: -pcm {0,..,3} position dependence of pc admixture 'tau' (pc mode, default=2) 0: no pseudo counts: tau = 0 1: constant tau = a 2: diversity-dependent: tau = a/(1 + ((Neff[i]-1)/b)^c) (Neff[i]: number of effective seqs in local MSA around column i) 3: constant diversity pseudocounts -pca [0,1] overall pseudocount admixture (def=1.0) -pcb [1,inf[ Neff threshold value for -pcm 2 (def=1.5) -pcc [0,3] extinction exponent c for -pcm 2 (def=1.0) Context-specific pseudo-counts: -nocontxt use substitution-matrix instead of context-specific pseudocounts -contxt <file> context file for computing context-specific pseudocounts (default=/usr/lib/hhsuite/data/context_data.lib) -cslib <file> column state file for fast database prefiltering (default=/usr/lib/hhsuite/data/cs219.lib) -csw [0,inf] weight of central position in cs pseudocount mode (def=1.6) -csb [0,1] weight decay parameter for positions in cs pc mode (def=0.9) Other options: -cpu <int> number of CPUs to use (for shared memory SMPs) (default=1) -v <int> verbose mode: 0:no screen output 1:only warings 2: verbose -maxres <int> max number of HMM columns (def=15002) -maxmem [1,inf[ max available memory in GB (def=3.0) -scores <file> write scores for all pairwise comparisions to file -calm {0,..,3} empirical score calibration of 0:query 1:template 2:both default 3: neural network-based estimation of EVD params Example: hhsearch -i a.1.1.1.a3m -d scop70_1.71.hhm hhsearch 2.0.15 June 2012 HHSEARCH(1)
All times are GMT -4. The time now is 09:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy