Hello masters, this is difficult to explain and maybe complicated to implement...looks beyond what I taught myself (from this forum), some help is greatly appreciated.
I have a base file
I have a non-base file
I want to impute into the base file, values from the non-base file absent in the base. Imputed values must be scaled.
So when imputed into the base file , its value is scaled according to its range of flanking values.
the rule is
So the scaled imputed output looks like
Note that I have made up the names of the variables for ease of understanding, they do not follow pattern like b23.
Could you please try following too and let me know if this helps.
Output will be as follows.
I haven't tried with many senarios this code, please let me know if this helps.
EDIT: Adding non one liner form for same. EDIT: Tried with following senario and it seems to be working fine.
Running the code we will get as follows. NOTE: Where basic_non_basic1.ksh is the above pasted script.
Thanks,
R. Singh
Last edited by RavinderSingh13; 01-23-2015 at 05:26 AM..
Reason: Added a non one liner form for solution
This User Gave Thanks to RavinderSingh13 For This Post:
Hey folks
I have a big tab delimited file with 3 columns looks like this:
chr2L 552 0.85
chr2R 135 1.06
chr3L 820 2.89
chr3R 581 3.93
chr4 585 0.94
chrX 605 1.93
All I want to do is re-scaling the third column to be between 0-1. Which means that the highest valu in 3rd column will... (5 Replies)