Attached are the is original output (zipped file) and a custom file using the awk code below in which the average reads per bait are calculated (average.txt)
Is it possible to output the length of the bait, average # of reads, and the # calculated ...x coverage (3 of reads * 150/length)? Thank you .
I'm trying to have a loop print out statistics every X number of seconds. How can I add a specific number of seconds to a time variable and make a comparison? Thanks ahead of time.
For example:
startTime = `date +%H%M%S`
currentTime = $startTime
executeTime = startTime + X # X is equal... (5 Replies)
hi all,
was wondering if there is another way to do calculations in ksh scripts other than using bc ?? i am using a script to calculate average response time and my script errors out after running for a bit.
e.g code i am using :
averageTime=$(print "$totalTime / $numberOfEntries" |... (2 Replies)
I need to be able to use the current date and calculate 7 days ago to be stored in another variable to be passed to a file in my Unix shell script. I need the date in the following format:
date '+%m/%d/%Y'
or
05/16/2006
How do I calculate date minus 7 days or 1 week ago? (8 Replies)
HI
i have following problem,
i need to use split command to split files each should be cca 700 lines but i dont know how to inplement it in the scripts becasuse each time the origin file will be various size ,
any body got any idea
cheers (2 Replies)
Dear All,
I have a long list like this:
337
375
364
389
443
578
1001
20100
.
.
.
.
etc
I would like to substract each value from the first entry which in this case is 337 and report it in a separate column. So the expected output looks like
337 0 (10 Replies)
Hello,
I have to turn:
Apple Inc.:325,64:329,57
into
Apple Inc.:325,64:329,57:3,93
3,93=329,57-325,64.
My code:
cat beurs.txt | sed 's/\(*\):\(*\),*\(*\):\(*\),\(*\)/\4\.\5-\2\.\3/' beurs.txt | bc| tr '.' ',' | sed 's/^-*,/0,/' > winstmarges.txt; paste -d: beurs.txt winstmarges.txt; rm... (5 Replies)
grep Quality abc.txt | awk -F"=" '{print $2}'
o/p is given as
70/70
49/70
I want in the below format (percentage format)
100%
70%
help me!!!!:confused::confused::confused:
---------- Post updated at 09:59 AM ---------- Previous update was at 09:57 AM ----------
Cell 01 -... (3 Replies)
I'm writing a script that will read all the fields of a text file into an array(if they are numeric), while at the same time computing the minimum and maximum values from the file. After that I want to output the average of all the numbers in the array.
The first problem I'm having is that many... (10 Replies)
Hello. I'm writing an awk script that looks at a .csv file and calculates the weighted grade for each student based on the scores and categories in the file. I am able to get the script to run the only issue however is that the same score for each student is the same. I'm self-teaching myself the... (1 Reply)
Discussion started by: Eric7giants
1 Replies
LEARN ABOUT CENTOS
sdl_audiocvt
SDL_AudioCVT(3) SDL API Reference SDL_AudioCVT(3)NAME
SDL_AudioCVT - Audio Conversion Structure
STRUCTURE DEFINITION
typedef struct{
int needed;
Uint16 src_format;
Uint16 dest_format;
double rate_incr;
Uint8 *buf;
int len;
int len_cvt;
int len_mult;
double len_ratio;
void (*filters[10])(struct SDL_AudioCVT *cvt, Uint16 format);
int filter_index;
} SDL_AudioCVT;
STRUCTURE DATA
needed Set to one if the conversion is possible
src_format Audio format of the source
dest_format Audio format of the destination
rate_incr Rate conversion increment
buf Audio buffer
len Length of the original audio buffer in bytes
len_cvt Length of converted audio buffer in bytes (calculated)
len_mult buf must be len*len_mult bytes in size(calculated)
len_ratio Final audio size is len*len_ratio
filters[10](..) Pointers to functions needed for this conversion
filter_index Current conversion function
DESCRIPTION
The SDL_AudioCVT is used to convert audio data between different formats. A SDL_AudioCVT structure is created with the SDL_BuildAudioCVT
function, while the actual conversion is done by the SDL_ConvertAudio function.
Many of the fields in the SDL_AudioCVT structure should be considered private and their function will not be discussed here.
Uint8 *buf
int len
int len_mult
double len_ratio
SEE ALSO
SDL_BuildAudioCVT, SDL_ConvertAudio, SDL_AudioSpec
SDL Tue 11 Sep 2001, 22:58 SDL_AudioCVT(3)