1. Print unique values of column1 as column of the matrix, which will be
2. Print unique values of column2 as row of the matrix, which will be
3. Now print column3 values in the matrix, which will be my final output
My special condition is nothing but, if there is no value for a combination, print that value to be 0. My input file has more than 50K records. Please let me know if you have any questions. Thanks in advance.
The spacing is messed up while posting this thread. But, my output columns are separated by a tab.
Hi I have an input file and I want to transpose it but I need to take care that if any field is missing for a record it should be popoulated with space for that field - using a shell script
INFILE
----------
emp=1
sal=2
loc=abc
emp=2
sal=21
sal=22
loc=xyz
emp=5
loc=abc
OUTFILE... (10 Replies)
Hi,
I did read a few posts on the subjects, tried out a few solutions, but did not solve my problem.
https://www.unix.com/302121568-post11.html
https://www.unix.com/shell-programming-scripting/137953-large-file-columns-into-rows-etc-4.html
Please help. Problem very similar to the second link... (15 Replies)
I'm aware there are a lot of resources dedicated to the question of transposing rows and columns, but I'm a total newbie at this and the task appears to be beyond me.
I have 40 text files with content that looks like this:
Dokument 1 von 146
Orange County Register (California)
June 26, 2010... (2 Replies)
I have a data
A 1
B 2
C 3
D 4
E 5
i would like to change the data
A B C D E
1 2 3 4 5
Pls suggest how we can do it in UNIX.
Start using code tags, thanks. Also start reading your PM's you get from Mods as well read the Forum Rules. That might not do any harm. (24 Replies)
Any tips on how I can awk the input data to display the desired output per below? Thanking you in advance.
input test data:
2
2010-02-16 10:00:00
111111111111 bytes
99999999999 bytes
90%
4
2010-02-16 12:00:00
333333333333 bytes
77777777777 bytes
88%
5
2010-02-16 11:00:00... (4 Replies)
Hello. very new to shell scripting and would like to know if anyone could help me.
I have data thats being pulled into a txt file and currently have to manually transpose the data which is taking a long time to do.
here is what the data looks like.
Server1 -- Date -- Other -- value... (7 Replies)
Hello,
I have a bilingual database with the following structure
a,b,c=d,e,f
The right half is in a Left to right script and the second is in a Right to left script as the examples below show
What I need is to separate out the database such that the first word on the left hand matches the first... (4 Replies)
Hello,
I have the following data and I want to use awk to transpose each value to a certain column , so in case the value is not available the column should be empty.
Example:
Box Name: BoxA
Weight: 1
Length :2
Depth :3
Color: red
Box Name: BoxB
Weight: 3
Length :4
Color: Yellow... (5 Replies)
Discussion started by: rahman.ahmed
5 Replies
LEARN ABOUT DEBIAN
bio::map::prediction
Bio::Map::Prediction(3pm) User Contributed Perl Documentation Bio::Map::Prediction(3pm)NAME
Bio::Map::Prediction - An object representing the predictions of something that can have multiple locations in several maps.
SYNOPSIS
use Bio::Map::Prediction;
use Bio::Map::Position;
# normally you would get predictions from a run wrapper like
# Bio::Tools::Run::Meme, but here we create some manually:
my $pred1 = Bio::Map::Prediction->new(-source => 'meme');
Bio::Map::Position->new(-element => $prediction1,
-map => Bio::Map::GeneMap->get(-gene => 'gene1',
-species => 'species1'),
-start => 950,
-end => 960);
Bio::Map::Position->new(-element => $prediction1,
-map => Bio::Map::GeneMap->get(-gene => 'gene1',
-species => 'species2'),
-start => 1950,
-end => 1960);
Bio::Map::Position->new(-element => $prediction1,
-map => Bio::Map::GeneMap->get(-gene => 'gene2',
-species => 'species1'),
-start => 955,
-end => 965);
Bio::Map::Position->new(-element => $prediction1,
-map => Bio::Map::GeneMap->get(-gene => 'gene2',
-species => 'species2'),
-start => 1955,
-end => 1965);
my $pred2 = Bio::Map::Prediction->new(-source => 'gerp');
Bio::Map::Position->new(-element => $prediction2,
-map => Bio::Map::GeneMap->get(-gene => 'gene1',
-species => 'species1'),
-start => 950,
-end => 960);
# etc.
# find the places where predictions agree
use Bio::Map::GeneRelative;
my $rel = Bio::Map::GeneRelative->new(-gene => 0);
my $di = Bio::Map::Mappable->disconnected_intersections([$pred1, $pred2],
-min_mappables_percent => 100,
-min_map_percent => 100,
-relative => $rel);
my @positions = $di->get_positions;
DESCRIPTION
For example, used to model transcription factor binding site predictions, which can have multiple locations in several maps.
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 the
Bioperl mailing list. 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 of the bugs and their resolution. Bug reports can be submitted via the
web:
https://redmine.open-bio.org/projects/bioperl/
AUTHOR - Sendu Bala
Email bix@sendu.me.uk
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
new
Title : new
Usage : my $prediction = Bio::Map::Prediction->new();
Function: Builds a new Bio::Map::Prediction object
Returns : Bio::Map::Prediction
Args : -name => string : name of the mappable element
-id => string : id of the mappable element
-source => string : name of the prediction program
source
Title : name
Usage : $mappable->name($new_name);
my $name = $mappable->name();
Function: Get/Set the name for this Mappable
Returns : A scalar representing the current name of this Mappable
Args : none to get
string to set
perl v5.14.2 2012-03-02 Bio::Map::Prediction(3pm)