10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file: file.txt, which contains the following data in it.
This is a file, my name is Karl, what is this process, karl is karl junior, file is a test file, file's name is file.txt
My name is not Karl, my name is Karl Joey
What is your name?
Do you know your name and... (3 Replies)
Discussion started by: anuragpgtgerman
3 Replies
2. Shell Programming and Scripting
Hi All,
Hope you guys had a wonderful weekend
I have a scenario where in which I have to read a file line by line
and check for few words before redirecting to a file
I have searched the forum but,either those answers dint work (perhaps because of my wrong under standing of how IFS... (6 Replies)
Discussion started by: Kingcobra
6 Replies
3. Shell Programming and Scripting
Hi,
I would like to read a file line by line and then store the whole line word by word in array so that I can do specific manipulation on each word.
$ cat test.txt
hello how are you
i am good
I would like to have an array created dynamically so that first time , the... (4 Replies)
Discussion started by: ashwin3086
4 Replies
4. Shell Programming and Scripting
Folks,
I am working on a file which has entries as follows. I am using while read line to generate desired output as follows.
filename1:
Name : sdt2156157_ID
NOS : 4567
NOS : 2348
Name : sdt2156158_ID
NOS : 4987
NOS : 2332
while read line... (3 Replies)
Discussion started by: dynamax
3 Replies
5. Shell Programming and Scripting
Hi, I need a script to read last word of the line and out put in some temp file.
i
it can contain any word like:
My name is Harry.
or
My zip code is 24490
or it can be
My secret code is 024H
I just need last word of the line (Harry, or 2440 or 024H)
Thanks for the posts below.... (10 Replies)
Discussion started by: HarryReid
10 Replies
6. Shell Programming and Scripting
Hi people;
i want to read the last word of the 14th line of my file1.txt. Here is the EXACT 14th line of the file.
250 SectorPortnum=3,AuxPortInUngo=2,PortDeviceGroup=1,PortDeviceSet=1,PorDevice=1 20 >>> Set.
i have to get the word Set. how can i call it and also how... (3 Replies)
Discussion started by: gc_sw
3 Replies
7. Shell Programming and Scripting
I am using the while-loop to read a file.
The file has lines with null-terminated strings (words, actually.)
What I have by that reading - just a first word up to '\0'!
I need to have whole string up to 'new line' - (LF, 10#10, 16#A)
What I am doing wrong?
#make file 'grb' with... (6 Replies)
Discussion started by: alex_5161
6 Replies
8. Shell Programming and Scripting
Hey all,
Could any one help me ...
I want to search the word and want the line above it.
eg. mytxt.log
My name is Jeevan.
240 is my address.
My name is Jhon.
390 is my address.
--------
i want to search "240" and want output as
My name is Jeevan.
240 is my address.
... (7 Replies)
Discussion started by: Jeevan Salunke
7 Replies
9. Shell Programming and Scripting
i have this line
my,name,is,john
stored in a file d.sh and i wish to print the line as string..but im getting word by word...have tried this.........
for in $(cat $d.sh);
do
echo $i
done
but this is giving me
my
name
is
john (6 Replies)
Discussion started by: vadharah
6 Replies
10. UNIX for Dummies Questions & Answers
Hi Everyone.
I want to get all the lines above the word error. Note some records dont have error.
ex
Input Rec # 2384 Client: BGA Rx No: 0735845
Error: (W)Submit Date before Fill Date(SUBMIT-DATE)
I want to have the line which starts with... (16 Replies)
Discussion started by: sachin.gangadha
16 Replies
Bio::PopGen::Individual(3pm) User Contributed Perl Documentation Bio::PopGen::Individual(3pm)
NAME
Bio::PopGen::Individual - An implementation of an Individual who has Genotype or Sequence Results
SYNOPSIS
use Bio::PopGen::Individual;
my $ind = Bio::PopGen::Individual->new(-unique_id => $id,
-genotypes => @genotypes);
DESCRIPTION
This object is a container for genotypes.
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 - Jason Stajich
Email jason-at-bioperl.org
CONTRIBUTORS
Matthew Hahn, matthew.hahn-at-duke.edu
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
new
Title : new
Usage : my $obj = Bio::PopGen::Individual->new();
Function: Builds a new Bio::PopGen::Individual object
Returns : an instance of Bio::PopGen::Individual
Args : -unique_id => $id,
-genotypes => @genotypes
unique_id
Title : unique_id
Usage : my $id = $individual->unique_id
Function: Unique Identifier
Returns : string representing unique identifier
Args : string
num_of_results
Title : num_of_results
Usage : my $count = $person->num_results;
Function: returns the count of the number of Results for a person
Returns : integer
Args : none
annotation
Title : annotation
Usage : my $annotation_collection = $ind->annotation;
Function: Get/set a Bio::AnnotationCollectionI for this individual
Returns : Bio::AnnotationCollectionI object
Args : [optional set] Bio::AnnotationCollectionI object
add_Genotype
Title : add_Genotype
Usage : $individual->add_Genotype
Function: add a genotype value
Returns : count of the number of genotypes associated with this individual
Args : @genotypes - L<Bio::PopGen::GenotypeI> object(s) containing
alleles plus a marker name
reset_Genotypes
Title : reset_Genotypes
Usage : $individual->reset_Genotypes;
Function: Reset the genotypes stored for this individual
Returns : none
Args : none
remove_Genotype
Title : remove_Genotype
Usage : $individual->remove_Genotype(@names)
Function: Removes the genotypes for the requested markers
Returns : none
Args : Names of markers
get_Genotypes
Title : get_Genotypes
Usage : my @genotypes = $ind->get_Genotypes(-marker => $markername);
Function: Get the genotypes for an individual, based on a criteria
Returns : Array of genotypes
Args : either none (return all genotypes) or
-marker => name of marker to return (exact match, case matters)
has_Marker
Title : has_Marker
Usage : if( $ind->has_Marker($name) ) {}
Function: Boolean test to see if an Individual has a genotype
for a specific marker
Returns : Boolean (true or false)
Args : String representing a marker name
get_marker_names
Title : get_marker_names
Usage : my @names = $individual->get_marker_names;
Function: Returns the list of known marker names
Returns : List of strings
Args : none
perl v5.14.2 2012-03-02 Bio::PopGen::Individual(3pm)