Search Results

Search: Posts Made By: wyarosh
1,869
Posted By wyarosh
What is a code tag?
What is a code tag?
1,869
Posted By wyarosh
Thanks agama. Your code helped a lot. I should...
Thanks agama. Your code helped a lot. I should have been more specific about the details of my file. It contains multiple variableStep headers after a few hundred thousand lines of the two number...
1,869
Posted By wyarosh
awk logic and math help
Hi,

My file has 2 fields and millions of lines.
variableStep chrom=Uextra span=25
201 0.5952
226 0.330693
251 0.121004
276 0.0736858
301 0.0646982
326 0.0736858...
1,461
Posted By wyarosh
I fixed the problem with the space separated...
I fixed the problem with the space separated fields.

echo Enter the name of the file without the .wig
read NAME
echo the ratio?
read ratio
awk -v ratio=$ratio '{if($1 == "variableStep") {print...
1,461
Posted By wyarosh
@Corona688 I can't seem to get it to work. It...
@Corona688 I can't seem to get it to work. It gives me this output.

variableStep 0 span=25
201 1.0000
226 0.5556
251 0.2033
276 0.1238
301 0.1087
326 0.1238
351 ...
1,461
Posted By wyarosh
Thanks
Thanks, the code you gave me worked.

Here is the final program looking to code anything like this.
echo Enter the name of the file without the .wig
read NAME
echo the ratio?
read ratio
awk -v...
1,461
Posted By wyarosh
Trouble Assigning AWK variables
Hi,

I made an executable file in terminal and it looks like this.
echo Enter the name of the file without the .wig extension
read NAME
echo Enter the ratio
read RATIO
awk '{$2*=$RATIO;{print...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 02:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy