Search Results

Search: Posts Made By: luoruicd
1,826
Posted By luoruicd
Merge two files with non-overlapping identities
Hi All,
I wish to merge two files:
file1: with header
rsSNP-ID Chromosome Chr-Pos
rs171 1 175261679
rs242 1 20869461
rs538 1 6160958
file2: without header
disease:AAT deficiency:M0525101...
1,831
Posted By luoruicd
Merge files with file names added
I want to merge several files with identical format:
file 1:
rs3094315 0.0006105222804 0.9528743638
rs3131972 -0.05461465109 0.3139864854
rs3115860 -0.06041530955 0.3195499498...
1,910
Posted By luoruicd
Thanks! It works pretty well! I am trying to...
Thanks! It works pretty well!
I am trying to understand this code, this line puzzles me:
s = (s ? s "/" : "") substr($i, index($i, "=") + 1

You probably uses some regular expression, right? Can...
1,910
Posted By luoruicd
Thanks a lot!! I am pretty new with unix. This is...
Thanks a lot!! I am pretty new with unix. This is very help!

Besides, Is there a way I can print out the output as:
SNP alleles alleles?
for example:
rs782 'A/G'
rs783 A/G G
If that SNP...
1,910
Posted By luoruicd
Extract specific contents from each line
Hi all,
Happy new year!
Here I have a problem with extract specific information from each line in unix:
My file is the dbSNP flat file, take two SNPs for examples:

REFSNP-DOCSUM-SET...
1,830
Posted By luoruicd
thanks! Unix code works, but not perl. I never...
thanks! Unix code works, but not perl. I never used perl, so will just go with the unix one.
1,830
Posted By luoruicd
For example: my original file looks like this: ...
For example:
my original file looks like this:
rs111 A T 0.9 0.8 ...
rs112 AT T 0.8 0.2 ...
rs113 G CT 0.9 0.1...

I want to modify column 2 and column3. In column 2, line2 it is not A or T or...
1,830
Posted By luoruicd
thanks for this! It works! One issue my file is...
thanks for this! It works! One issue my file is very huge, it's about 11G. I have two columns I need to modify, while keep the rest the same. Ran this code twice to write in new files really takes...
1,830
Posted By luoruicd
How to modify lines without certain patterns?
I have file like this:
rs111 A T 0.9 0.8 ...
rs112 AT T 0.8 0.2 ...
rs113 G CT 0.9 0.1...

I wish to replace all the NONE "A" or "T" or "G" or "C" values in column 3 and column 4 to " ", how can...
977
Posted By luoruicd
How to count the frequncey of a certain value in one column?
Hi all,
I have file like this:
FID IID MISS_PHENO N_MISS N_GENO F_MISS
AU4103 AU4103201 Y 15473 66858 0.2314
AU4142 AU4142303 Y 15464 66858 0.2313
AU4128 AU4128304 Y 15458 66858 0.2312
AU4129...
Showing results 1 to 10 of 10

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