-
Notifications
You must be signed in to change notification settings - Fork 2
/
README-tblout-add
46 lines (31 loc) · 1.29 KB
/
README-tblout-add
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
EPN, Thu Dec 26 07:08:27 2019
Usage of tblout-add.pl:
--
% perl tblout-add.pl
tblout-add.pl
Usage:
tblout-add.pl [OPTIONS]
<tblout file to add to>
<nexp, number of expected fields (last 'field' may contain whitespace)>
<add file with data to add, two fields per line>
<field number [1..nexp] in tblout file that field 1 of add file pertains to>
OPTIONS:
-t : make output tab delimited
--empty <s> : specify empty value for new field be <s> [default: '-']
--
Example usage of tblout-add.pl:
1. Add sequence length of target sequences to a cmscan --tblout file:
my.tblout: --tblout output file from cmscan
my.fa: fasta file used in cmscan command
Using esl-seqstat, create the '.seqlen' file with 2 fields
separated by a single space, first field is target sequence name,
second is length of the sequence:
% esl-seqstat -a my.fa | grep ^\= | awk '{ printf("%s %s\n", $2, $3); }' > my.seqlen
Using tblout-add.pl and the my.seqlen file you just created, add
seqlen field to my.tblout:
% perl tblout-add.pl my.tblout 18 my.seqlen 3
If the tblout file was generated by cmsearch and not cmscan
then replace the final argument '3' with '1'.
To make that output file tab-delimited use -t, like this:
% perl tblout-add.pl -t my.tblout 18 my.seqlen 1
--