06-28-2011
Plus, what if the missing file is the last? Is there a clue in the first of the #? What if #1 is missing? Generic solution: any is clue to #1, #1 is clue to all. Start with every prefix "find . . . | sed '. . .' | sort -u | while read prefix, do, look for ${prefix}00001, get clue, look for all the children, done".
8 More Discussions You Might Find Interesting
1. Linux
I've got a 2.2 Gig syslog file from our Cisco firewall appliance. The problem is that we've been seeing gaps in the syslog for anywhere from 10 minutes to 2 hours. Currently I've just been using 'less' and paging through the file to see if I can find any noticeable gaps. Obviously this isn't the... (3 Replies)
Discussion started by: deckard
3 Replies
2. Shell Programming and Scripting
I need to build a k shell script that will sort files in a directory where files appear like this "XXXX_2008021213.DAT. I need to sort by date in the filename and then move files by individual date to a working folder. concatenate the files in the working folder then start a process once... (2 Replies)
Discussion started by: rebel64
2 Replies
3. Shell Programming and Scripting
I'm trying to write a script that will look in an /exports folder for the oldest export file and move it to a /staging folder. "Oldest" in this case is actually determined by date information embedded in the file names themselves.
Also, the script should only move a file from /exports to... (6 Replies)
Discussion started by: nikosey
6 Replies
4. UNIX for Advanced & Expert Users
Hi List is
000|2008-07-17|556543|RTJ|35-RTGJ|EYT
465|2008-11-10|567789|GHJ|45-DGHH|ETU
533|2008-09-06|567789|GHJ|45-DGHH|ETU
How does it do it?
sort -t ':' +0 -1 -n +1 -2 +2 -3 -o list list (6 Replies)
Discussion started by: gurvinder
6 Replies
5. Shell Programming and Scripting
I am very new to shell scripting. We use C-Shell here and I know the issues that surround it. I hope a solution can be created using awk, sed, etc... instead of having to write a program.
I have an input file that is sorted by date and time in ascending order
... (2 Replies)
Discussion started by: jclanc8
2 Replies
6. Shell Programming and Scripting
Hi all,
I have a file like this
ID 3BP5L_HUMAN Reviewed; 393 AA.
AC Q7L8J4; Q96FI5; Q9BQH8; Q9C0E3;
DT 05-FEB-2008, integrated into UniProtKB/Swiss-Prot.
DT 05-JUL-2004, sequence version 1.
DT 05-SEP-2012, entry version 71.
FT COILED 59 140 ... (1 Reply)
Discussion started by: manigrover
1 Replies
7. Shell Programming and Scripting
I have the following string, and want to introduce additional spaces between the two %s. This will be done by specifying the gap between the %s. Example having gap=8 will put 8 spaces between the two %s.
frmt_k1d1_test="%s %s\n"
I am doing the script in bash.
---------- Post updated at... (4 Replies)
Discussion started by: kristinu
4 Replies
8. UNIX for Dummies Questions & Answers
I have this infile:
>GHL8OVD01BNNCA Freq 10
TAGATGTGCCCGTGGGTTTCCCGTCAACACCGGATAGT-GCAGCA-TA
>GHL8OVD01CMQVT Freq 1
TTGATGTCGTGGGTTTCCCGTCAACACCGGCAAATAGT-GCAGCA-TA
>GHL8OVD01CMQVT Freq 1
TTGATGTGCCAGTTTCCCGTCTAGCAGCACTACCAGGACCTTCGC-TA
>GHL8OVD01CMQVW Freq 1... (1 Reply)
Discussion started by: Xterra
1 Replies
LEARN ABOUT DEBIAN
hhconsensus
HHCONSENSUS(1) User Commands HHCONSENSUS(1)
NAME
hhconsensus - calculate the consensus sequence for an A3M/FASTA input file
SYNOPSIS
hhconsensus -i <file> [options]
DESCRIPTION
HHconsensus version 2.0.15 (June 2012) Calculate the consensus sequence for an A3M/FASTA input file. (C) Johannes Soeding, Michael Rem-
mert, Andreas Biegert, Andreas Hauser Remmert M, Biegert A, Hauser A, and Soding J. HHblits: Lightning-fast iterative protein sequence
searching by HMM-HMM alignment. Nat. Methods 9:173-175 (2011).
-i <file>
query alignment (A2M, A3M, or FASTA), or query HMM
Output options:
-s <file>
append consensus sequence in FASTA (default=<infile.seq>)
-o <file>
write alignment with consensus sequence in A3M
-oa3m <file>
same
-oa2m <file>
write alignment with consensus sequence in A2M
-ofas <file>
write alignment with consensus sequence in FASTA
-v <int>
verbose mode: 0:no screen output 1:only warings 2: verbose
Filter input alignment (options can be combined):
-id [0,100] maximum pairwise sequence identity (%) (def=100)
-diff [0,inf[ filter most diverse set of sequences, keeping at least this
many sequences in each block of >50 columns (def=0)
-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)
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
Other options:
-addss add predicted secondary structure information from PSIPRED
Example: hhconsensus -i stdin -s stdout
hhconsensus 2.0.15 June 2012 HHCONSENSUS(1)