Search Results

Search: Posts Made By: kayakj
1,457
Posted By kayakj
Creating a loop for multiplying columns
I have 2 files, that look like this:

ID SNP1 SNP2 SNP3 SNP4
A1 1 2 0 2
A2 2 0 1 1
A3 0 2 NA 1
A4 1 1 0 2

and this:
SNP score
SNP1 0.5
SNP2 0.7
SNP3 0.8
SNP4 0.2

Basically, all of...
27,930
Posted By kayakj
Yes, this is why I posted the question in the...
Yes, this is why I posted the question in the first place. I did my entire pipeline of analysis (including much more than just this) using excel to do editing etc, but it just kept crashing and...
27,930
Posted By kayakj
Yes, pamu, yours worked as well. I tested both on...
Yes, pamu, yours worked as well. I tested both on the 300 row file, and they gave the exact same output, and was verified by excel.

I hope to be able to understand more of the content of your...
27,930
Posted By kayakj
1. I can not post an example with 1 million lines...
1. I can not post an example with 1 million lines on here. The data is exactly the same in terms of style of content, it just goes on for another 999.997 lines.
2. I stated in the first post that...
27,930
Posted By kayakj
Ah, I should specify: When I tried running the...
Ah, I should specify:
When I tried running the script I posted in the first thread, it kept giving me the last value in the actual huge file (not the example I posted), no matter if it was the...
27,930
Posted By kayakj
Problem solved!
Thank you both,
both of the scripts work, though I understand more of the first one as a newbie. Do any of you know why it kept giving me the last line? What in the code I was using was telling awk...
27,930
Posted By kayakj
Average, min and max in file with header, using awk
Hi,
I have a file which looks like this:
FID IID MISS_PHENO N_MISS N_GENO F_MISS
12AB43131 12AB43131 N 17774 906341 0.01961
65HJ87451 65HJ87451 N...
Showing results 1 to 7 of 7

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