srf_list(1) Staden io_lib srf_list(1)NAME
srf_list - Lists and/or counts the contents of an SRF file
SYNOPSIS
srf_list [options] srf_archive ...
DESCRIPTION
srf_list lists the filenames held within one or more SRF container. To simply count the contents rather than list them specify the -c
option. Note that when in count-only mode if an index is present it will be used to determine the number of entries in the index and hence
sequences in the SRF file. The index cannot be used when listing the filenames however as the index itself does not contain the full file-
names.
Note that it is not possible to count sequences matching certain patterns or with specific flags set. srf_info is a more general purpose
tool that may cover this.
OPTIONS -c Counts sequences instead of listing them. Note that this may be substantially faster than listing if an index exists.
-v Verbose mode. This gives summary count information per file rather than just the total at the end.
-l Long format. When listing sequence names this also provides information on the position in the archive and the size of the sequence
specific data block and the size of the shared data block header.
EXAMPLES
To count the total number of sequences in several SRF files:
srf_list -c *.srf
To produce a "fofn" (file of filenames) for an SRF file:
srf_list foo.srf > foo.fofn
AUTHOR
James Bonfield, Wellcome Trust Sanger Institute
September 29 srf_list(1)
Check Out this Related Man Page
MTBL_INFO(1)MTBL_INFO(1)NAME
mtbl_info - display information about an MTBL file
SYNOPSIS
mtbl_info FILE [FILE]...
DESCRIPTION mtbl_info(1) displays the following information about the MTBL files specified on the command line.
file name -- the name of the MTBL file.
file size -- the total size of the MTBL file, in bytes.
index bytes -- the total number of bytes and proportion of the total file size consumed by the index.
data block bytes -- the total number of bytes and proportion of the total file size consumed by data blocks.
data block size -- the maximum size of an uncompressed data block.
data block count -- the total number of data blocks.
entry count -- the total number of key-value entries.
key bytes -- the total number of bytes that all keys in the file would occupy if stored end-to-end in a byte array with no delimiters.
value bytes -- the total number of bytes that all values in the file would occupy if stored end-to-end in a byte array with no delimiters.
compression algorithm -- the algorithm used to compress data blocks. Possible values are "none", "snappy" and "zlib".
compactness -- a rough metric comparing the total number of bytes in the key-value entries with the total size of the MTBL file. It is
calculated as (file size) / (key bytes + value bytes), and thus takes into account the gains of data block compression and prefix key
compression against the overhead of the index, trailer, and data block offset arrays.
05/29/2012 MTBL_INFO(1)
Found this piece of code written in ksh. I have no ideas what do the stuff like ${SRF##*\.} do.
SUFFIX=${SRF##*\.}
if ; then
SUFFIX=""
fi
I have encountered similar expressions in other programs also. Any pointers on where to learn more about these... (1 Reply)
I am doing ls -ltrR to get long listing of files and directories, recursively. In place of files, I want to see the file names with complete path
The way it looks now is
ls -ltrR .
.:
total 866
-rwxrwxr-x 1 user ofr 945 Nov 30 2004 findwordinfiles
drwxrwxr-x 3 user ... (1 Reply)
Hi ..
I am having file say at 53rd position it will be as 0's or 1's .. How can i count the total number of 1's and 0's in the files at the 53 rd location.
Thanks,
Arun (5 Replies)
Guys I am having a problem with being able to do a count of entries in a file. What I am trying to get a count of the total number of members that are listed in the files. So I need to pull the number of the lines after members. I tried using sed but it only seems to count the first... (7 Replies)
Hello everyone,
I am investigating if there is a straight forward way to ask with a single line command a listing of particular files based on a mask and at the same time have a line after the listing is completed that says how many matches were found.
Something of the sort:
ls -ltr Done* ... (2 Replies)
I have a file that contains a number of fasta sequences, each one starts with '>'. I would like to count the number of sequences I have in the file. When I use the code below I get:
$ grep -c '>' total_Protein.txt
1
even though the file contains hundreds
If I use:
$ grep -c {>}... (3 Replies)
Hi All,
When i give ls -ltr i get 'total 10' like this along with files long listing. is there any option in ls command to remove this line or do we need use head -1 command only.
$ls -ltr
total 45
-rw-r--r-- 1 abc g1 0 Jul 17 07:20 0
-rw-r--r-- 1 abc g1 744 May 9 12:10 a
-rw-r--r--... (1 Reply)
Hi Experts,
I have this script to count the number of files based on prefix and suffix values.
#!/bin/ksh
file_date=$1
prefix=$2
suffix=$3
file_count=$(ls -l /db/day_file/{$prefix}*${file_date}*{$suffix})
The files in the directory /db/day_file are as below.
20170501
20170501... (7 Replies)