Sponsored Content
Top Forums Shell Programming and Scripting Vlookup multiple file and awk Post 303027220 by baris35 on Tuesday 11th of December 2018 10:46:10 AM
Old 12-11-2018
Thanks Vgersh99,
Gives expected output.


Kind regards
Boris
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Awk match multiple columns in multiple lines in single file

Hi, Input 7488 7389 chr1.fa chr1.fa 3546 9887 chr5.fa chr9.fa 7387 7898 chrX.fa chr3.fa 7488 7389 chr21.fa chr3.fa 7488 7389 chr1.fa chr1.fa 3546 9887 chr9.fa chr5.fa 7898 7387 chrX.fa chr3.fa Desired Output 7488 7389 chr1.fa chr1.fa 2 3546 9887 chr5.fa chr9.fa 2... (2 Replies)
Discussion started by: jacobs.smith
2 Replies

2. Shell Programming and Scripting

Vlookup using awk

Hello, I am trying to use vlookup (Excel function) using awk but there is some problem :( --file1-- ABC123 101F X1 A $P=Z X2 A $P=X X3 B $P=F X4 C $P=G MNK180 END --file2-- X1 A_t $P=Z X2 A_t $P=X X3 B_u $P=F X4 C_o $P=G (2 Replies)
Discussion started by: young
2 Replies

3. Shell Programming and Scripting

awk script to perform an action similar to vlookup between two csv files in UNIX

Hi, I am new to awk/unix and am trying to put together an awk script to perform an action similar to vlookup between the two csv files. Here are the contents of the two files: File 1: Date,ParentID,Number,Area,Volume,Dimensions 2014-01-01,ABC,247,83430.33,857.84,8110.76... (9 Replies)
Discussion started by: Prit Siv
9 Replies

4. Shell Programming and Scripting

awk cmd for vlookup in Mysql

Hi, Is there possible to do vlookup in Mysql one table from another table based on one column values and placed the data in same table? if it is possible in mysql itself pls share links for reference. Here is the ex: i need to vlookup the cus.id in table to and place the cus.name in 4th... (3 Replies)
Discussion started by: Shenbaga.d
3 Replies

5. Shell Programming and Scripting

Vlookup using awk

Hi folks, awk 'NR==FNR {m=$0; next} $1 in m{$0=m} {print}' file2 file1 Works a charm for a vlookup type query, sourced from https://www.unix.com/shell-programming-and-scripting/215998-vlookup-using-awk.html However my column content has white spaces and numbers. Example file1 The Man... (6 Replies)
Discussion started by: pshields1984
6 Replies

6. Shell Programming and Scripting

Excel vlookup function like value mapping with awk

I have two files File1 175552 st_497858.1 rs86052.1 rs92185.1 st_001022416.1 174841 175552_174841 179912 st_001122967.2 rs90435.1 rs89122.1 st_001022583.1 175545 179912_175545 179912 st_001122967.2 rs90435.1 rs89122.1 st_001022584.1 175545 179912_175545 179967 st_001256606.1 rs93516.2... (1 Reply)
Discussion started by: sammy777888
1 Replies

7. Shell Programming and Scripting

Vlookup using awk without exact match for two colum input

Source file 1 335 R1-snapfound 0098F RDFType:R1 R2-Dev R2-snapfound ,010C0 RemoteSymmetrixID:345 335 R1-snapfound 00990 RDFType:R1 R2-Dev R2-snapfound ,010C1 RemoteSymmetrixID:345 335 R1-snapfound 009C0 RDFType:R1 R2-Dev R2-snapfound ,009C1 RemoteSymmetrixID:345 335 R1-snapfound 009C1... (5 Replies)
Discussion started by: ranjancom2000
5 Replies

8. Shell Programming and Scripting

Vlookup using awk without exact match

Code used to find the server from cloum 3 and update needtotakesnap Output came from above command awk 'NR==FNR{A;next}$3 in A{$3 = "needtotakesnap " $3}1' /home/Others/active-server.txt /home/Others/all-server |grep server1 879 dummy server1_217_silver dummy 00870 TDEV 2071575 831 Tier1... (3 Replies)
Discussion started by: ranjancom2000
3 Replies

9. Shell Programming and Scripting

Vlookup using awk non similar files

I need to vlookup and check the server not found. Source file 1 server1 server2 server3 server4 server5_root server6_silver server7 server7-test server7-temp Source file 2 server1_bronze (6 Replies)
Discussion started by: ranjancom2000
6 Replies

10. UNIX for Beginners Questions & Answers

Vlookup not using awk

Hi I just want again to ask for help on what command to use to vlookup f1 group name in "/etc/group" matching f3 of it to "/etc/passwd" f4. I do need to display group name in the output of /etc/passwd without using awk or NR==FNR command. thank you while IFS=: read -r f1 f2 f3 f4 f5 f6 f7... (4 Replies)
Discussion started by: joonisio
4 Replies
TFBS::Matrix::Alignment(3pm)				User Contributed Perl Documentation			      TFBS::Matrix::Alignment(3pm)

NAME
TFBS::Matrix::Alignment - class for alignment of PFM objects SYNOPSIS
o Making an alignment: (See documentation of individual TFBS::DB::* modules to learn how to connect to different types of pattern databases and retrieve TFBS::Matrix::* objects from them.) my $db_obj = TFBS::DB::JASPAR2->new (-connect => ["dbi:mysql:JASPAR2:myhost", "myusername", "mypassword"]); my $pfm1 = $db_obj->get_Matrix_by_ID("M0001", "PFM"); my $pfm2 = $db_obj->get_Matrix_by_ID("M0002", "PFM"); my $alignment= new TFBS::Matrix::Alignment( -pfm1=>$pfm1, -pfm2=>$pfm2, -binary=>"/TFBS/Ext/matrix_aligner", ); DESCRIPTION
TFBS::Matrix::Alignment is a class for representing and performing pairwise alignments of profiles (in the form of TFBS::PFM objects) Alignments are preformed using a semi-global variant of the Needleman-Wunsch algorithm that only permits the opening of one internal gap. Fore reference, the algorithm is described in Sandelin et al Funct Integr Genomics. 2003 Jun 25 FEEDBACK
Please send bug reports and other comments to the author. AUTHOR - Boris Lenhard Boris Lenhard <Boris.Lenhard@cgb.ki.se> APPENDIX
The rest of the documentation details each of the object methods. Internal methods are preceded with an underscore. new Title : new Usage : my $alignment = TFBS::Matrix::Alignment->new(%args) Function: constructor for the TFBS::Matrix::Alignment object Returns : a new TFBS::Matrix::Alignment object Args : # you must specify: -pfm1, # a TFBS::Matrix::PFM object -pfm2, # another TFBS::Matrix::PFM object -binary, # a valid path to the comparison algorithm (matrixalign) ####### -ext_penalty #OPTIONAL gap extension penalty in Needleman-Wunsch algorithmstring. Default 0.01 -open_penalty, #OPTIONAL gap opening penalty in Needleman-Wunsch algorithmstring. Default 3.0 score Title : score Usage : my $score = $alignmentobject->score(); Function: access an alignment score (where each aligned position can contribute max 2) Returns : a floating point number Args : none score Title : gaps Usage : my $nr_of_gaps = $alignmentobject->gaps(); Function: access the number of gaps in an alignment Returns : an integer Args : none length Title : length Usage : my $length = $alignmentobject->length(); Function: access the length of an alignment (ie thenumber of aligned positions) Returns : an integer Args : none strand Title : strand Usage : my $strand = $alignmentobject->strand(); Function: access the oriantation of the aligned patterns: ++= oriented as input +-= second pattern is reverse-complemented Returns : a string Args : none alignment Title : alignment Usage : my $alignment_string = $alignmentobject->alignment(); Function: access a string describing the alignment Returns : an string, where each number refers to a position in repective PFM. Position numbering is according to orientation: ie if the second profile is reversed, position 1 corresponds to the last position in the input profile. Gaps are denoted as - . RXR-VDR - 1 2 3 - 4 5 - PPARgamma-RXRal 1 2 3 4 5 6 7 8 Args : none POD ERRORS
Hey! The above document had some coding errors, which are explained below: Around line 39: You forgot a '=back' before '=head1' perl v5.14.2 2008-01-24 TFBS::Matrix::Alignment(3pm)
All times are GMT -4. The time now is 09:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy