Search Results

Search: Posts Made By: stateperl
3,049
Posted By stateperl
hi
but this also doen't work for multiple files ? is there any way to improve franklin script to more than 9 files?
3,049
Posted By stateperl
yes
Yes I have all the files in directory.
After manual checking I found out the script throwing error if the file number is more than 9
It start giving error 10 or more files.
3,049
Posted By stateperl
Hi
Thank you. working good . But it is throwing error when I ran 17 files ?
3,049
Posted By stateperl
simple join for multiple files and produce 3 outputs
sh script file1 filea fileb filec ................filez. >>output1 & output2 &output3

file1
z10 1873 1920 z_number1_E59
z10 2042 2090 z_number2_E59
Z22 2476 2560 ...
2,912
Posted By stateperl
Thanx guys
Codes are working great
2,912
Posted By stateperl
it didn't give all of them? :(
$ awk '{print $1}' test2.txt |xargs -n2



rs1040480_XXXXX.value 0.7408157
rs1040483_TYYYY.value 0.3410044
2,912
Posted By stateperl
merge lines
Hi guys
in input every 1st line 1st ID value [rs1040480_XXXXX.value] located in 2nd line 1st occurrence [0.7408157].
I need to print them down accordingly..

Thanx in advance

input
...
2,460
Posted By stateperl
Transpose a file
input


IndID ID1 ID2 ID3
a1 a/a b/b c/c
a2 a/a b/b c/c
a3 a/b b/b c/d
a6 a/b b/b c/e
a8 a/a b/c c/e
a9 b/b b/d c/e


output...
1,614
Posted By stateperl
any script for joining files based on simple conditions
Condition1;
If NPID and IndID of both input1 and input2 are same take all the vaues relevant to them and print together as output

Condition2;
IDNo in output: Take the highly repeated same...
4,184
Posted By stateperl
Hey Tyler could you please explain the last code...
Hey Tyler could you please explain the last code you have written. So that I could do my own modifications instead of asking you. Please. Sorry for bothering you.
3,609
Posted By stateperl
hey thanx Frank
Thanx for the nice code Franklin. but it doesn't meet my requirements. may be I didn't explain clear enough. and the output has to display full values instead of 1.1454e+08 or some thing.

input
...
4,184
Posted By stateperl
problems
------------------------------------
4,184
Posted By stateperl
ehmm!
------------------------------
4,184
Posted By stateperl
a smallbug
yep that worked well. Thank u very much.

I think there is a small bug. when ever the script finds same IDs in input 1 (ex:S1) and input2 (ex:S1) , the output is fine. But if the input1 (ex: S1)...
4,184
Posted By stateperl
so helpful
Thank you very much for follow up and suggestions.
I think I should do more perl example practice. But thank you for your valuable time.
4,184
Posted By stateperl
Here is an example
Condition::

1. if letters are same it has to be 1 or 3 [ A/A or T/T or G/G or C/C ]
2. if same ID has 2 same letters first one has to be 1 and other has to be 3 [ see the ID S1 has T/T(bold) as 1...
4,184
Posted By stateperl
smallchanges
hEY small alteration at defining hashes

# define hashes - %chartonum, %numtochar and %mainhash
my %chartonum = qw(A/A 1 A/G 2 G/G 3);
my %numtochar = qw(1 A/A 2 A/G 3 G/G);

Change like this...
1,529
Posted By stateperl
Here is my example
awk '
BEGIN {
a[1] = "\"A/A\""
a[2] = "\"A/G\""
a[3] = "\"G/G\""
OFS = "\t"
}
NR == FNR {
if (NR == 1) {
for (i = 2; i <= NF; ++i)
s[i] = $i
next
}
for (i =...
1,529
Posted By stateperl
Define multiple expression to single array?
This is fine and workinga [1] = "A/A"
How to define some thing like this ???
a [1] = "A/A" or "T/T or some thing else
4,184
Posted By stateperl
Thanx Tyler it's working great.
Thanx Tyler it's working great
4,184
Posted By stateperl
Here is an example
@Tyler: Thanx for perl script. It looking bit scary to me but as smart as awk.;)
**********************************************************************************************

It's multiple...
4,184
Posted By stateperl
@Tyler:::::Thank you for pointing it out. I...
@Tyler:::::Thank you for pointing it out. I edited the post above to explain the question better. Please take a look.
@binlib:::Amazing and clear code. Thanks alot! but a small bug in it. It's...
4,184
Posted By stateperl
Joining files in a complex way
if input1 1st row labels (S1or S2 or S3 or any (actually so many in original text file)) are similar to 1st column of input2 i.e "ID" merge them together based on input1 1st row labels.
for...
4,174
Posted By stateperl
hey
In the link you have provided I have seen it before. They are not working :(
4,174
Posted By stateperl
Calculate P Value -Awk
Is there any awk command to calculate P Value ?(Probability)

Is it possib;e to calculate P va;ue for this data for ex?


7.891284
8.148193
7.749575
7.958188
7.887702
7.714877
8.141548...
Showing results 1 to 25 of 32

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