Sponsored Content
Full Discussion: Comparison of two files
Top Forums Shell Programming and Scripting Comparison of two files Post 302677473 by manigrover on Thursday 26th of July 2012 07:04:08 AM
Old 07-26-2012
Request to check

hi

Thanks for reply.

I have a first ile like this

Quote:
Gene Drug
ADRB2 (PA39) hydrochlorothiazide (PA449899)
WNK1 (PA33782) hydrochlorothiazide (PA449899)
ERCC1 (PA155) Platinum compounds (PA164713176)
ERCC1 (PA155) Platinum compounds (PA164713176)
NEDD4L (PA31534) hydrochlorothiazide (PA449899)
ADD1 (PA31) Antihypertensives (PA164712445)
ADD1 (PA31) Thiazides, plain (PA164713347)
CYP2C9 (PA126) simvastatin (PA45136
so gene name in one file has to match with gene name in other file but PA39 is actually not included in gene name only letter in caps are inlcuded in genen name in second file.

So it shuld match only with gene name not PA entries

if its same then before that common name there shuld be entry of scondm column of scond file and first file with no PA entries if possible
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Comparison of two files in awk

Hi, I have two files file1 and file2 delimited by semicolon, And I want to compare column 2 and column3 of file1 to column3 and column 4 in file2. file1 -------- abc;cef;155.67;143_34; def;fgh;146.55;123.3; frg;hff;134.67;; yyy;fgh;134.78;35_45; file 2 --------- abc;cef;155.09;;... (12 Replies)
Discussion started by: jerome Sukumar
12 Replies

2. UNIX for Dummies Questions & Answers

Comparison of 2 files in UNIX

Hi, There are two files in UNIX system with some lines are exactly the same, some lines are not. I want to compare these two files.The 2 files (both the files have data in Column format )should be compared row wise and any difference in data for a particular row should lead to storage of data of... (32 Replies)
Discussion started by: Dana Evans
32 Replies

3. Shell Programming and Scripting

comparison of 2 files

Kindly help on follows. I have 2 files. One file contains only one column of mobile numbers. And total records in a file 12 million. Second file contains 2 columns mobile numbers and balance. and total records 30 million. I want to find out balance of each data in file 1 corresponding to file 2.... (2 Replies)
Discussion started by: kamal_418
2 Replies

4. UNIX for Dummies Questions & Answers

Comparison between binary files

Hello, I would like to know if we can compare binary(non text) files in unix eg. exes Thanks Saurabh (3 Replies)
Discussion started by: smehra_20
3 Replies

5. Shell Programming and Scripting

Comparison of two files (sh)

Hi, I have a problem with comparison of two files file1 20100101 20090101 20080101 20071001 20121229 file2 19990112 12 456 7 20011131 19 20100101 2 567 1 987 17890709 123 555 and, sh script needs to compare of these two files and give out to me result: 20100101 2 567 1 987 it... (5 Replies)
Discussion started by: shizik
5 Replies

6. Shell Programming and Scripting

Comparison of fields in Files

Hello, I have two files with tab delimited data. The file will contain details something like below: FILENAME.A.B.C. 3 5 VALID PROCESSED I would have a bench mark file. I would be getting new files of the same format. My requirement is to compare a particular field for a... (3 Replies)
Discussion started by: Praveenkulkarni
3 Replies

7. Shell Programming and Scripting

Comparison of multiple files

Need a write script in bournce shell. Compare all the file contents and need to generate a report. Example : Having 10 trace.log files like below trace1.log, trace2.log .... trace10.log Need to compare all the 10 files contents and provide the report as below, Assume trace... (1 Reply)
Discussion started by: sureshmani
1 Replies

8. Shell Programming and Scripting

Compare two files (Many to one comparison)

Hello, I am having output shown below names will change and can show different result and i want to compare with the checklist this file will not change it is standard settings. If there is some discrepancy than the complete line of output should be shown with name. I tried to use below... (10 Replies)
Discussion started by: rajjev_saini123
10 Replies

9. Shell Programming and Scripting

Complex comparison of 3 files

Hello to all in forum, May you experts could help me with this complex comparison please. I need to search the numbers in file1 within column3 of file2 and if found, compare column4 to NF of file2 with the lines in file3. If the column4 to NF in file2 match any of the lines in file3,... (5 Replies)
Discussion started by: Ophiuchus
5 Replies

10. Shell Programming and Scripting

Comparison of files

I have the requirement I have two files cat fileA something anythg nothing everythg cat fileB everythg anythg Now i shld use fileB and compare every line at fileA and get the output as something nothing (3 Replies)
Discussion started by: Priya Amaresh
3 Replies
Bio::Tools::Geneid(3pm) 				User Contributed Perl Documentation				   Bio::Tools::Geneid(3pm)

NAME
Bio::Tools::Geneid - Results of one geneid run SYNOPSIS
use Bio::Tools::Geneid; my $gid = Bio::Tools::Geneid(-file => "geneid.out"); while (my $gene = $gid->next_prediction) { my @transcripts = $gene->transcripts; foreach my $t (@transcripts) { my @exons = $t->exons; foreach my $e (@exons) { printf("Exon %d..%d ", $e->start, $e->end); } } } DESCRIPTION
This is the parser for the output of geneid by Enrique Blanco and Roderic Guigo (IMIM-UPF). See http://www1.imim.es/software/geneid. It relies on native geneid output format internally and will work with geneid versions 1.0 and 1.1. Currently this module supports only the default mode of operation which is to predict exons and assemble an optimal gene prediction. It takes either a file handle or a file name and returns a Bio::SeqFeature::Gene::GeneStructure object. FEEDBACK
Mailing Lists User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to one of the Bioperl mailing lists. Your participation is much appreciated. bioperl-l@bioperl.org - General discussion http://bioperl.org/wiki/Mailing_lists - About the mailing lists Support Please direct usage questions or support issues to the mailing list: bioperl-l@bioperl.org rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible. Reporting Bugs Report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. Bug reports can be submitted via the web: https://redmine.open-bio.org/projects/bioperl/ AUTHOR - Keith James Email: kdj@sanger.ac.uk APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ new Title : new Usage : $obj->new(-file = "<geneid.out"); $obj->new(-fh => *GI); Function: Constructor for geneid wrapper. Takes either a file : or filehandle Returns : L<Bio::Tools::Geneid> next_prediction Title : next_prediction Usage : while($gene = $geneid->next_prediction) { # do something } Function: Returns the gene structure prediction of the geneid result file. Call this method repeatedly until FALSE is returned. Returns : A Bio::SeqFeature::Gene::GeneStructure object Args : None _add_exon Title : _add_exon Usage : $obj->_add_exon($gene, $transcript, ... exon data ...) Function: Adds a new exon to both gene and transcript from the data : supplied as args Example : Returns : Nothing _set_strand Title : _set_strand Usage : $obj->_set_strand($gene) Function: Sets the overall gene strand to the same strand as all : the exons if they are all on the same strand, or to strand 0 : if the exons are on different strands. Example : Returns : Nothing _target_id Title : _target_id Usage : $obj->_target_id Function: get/set for genomic sequence id Example : Returns : A target ID perl v5.14.2 2012-03-02 Bio::Tools::Geneid(3pm)
All times are GMT -4. The time now is 08:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy