Sponsored Content
Top Forums Shell Programming and Scripting Perl, open multiple files with wildcards Post 302429028 by japaneseguitars on Friday 11th of June 2010 04:51:13 PM
Old 06-11-2010
Quote:
Originally Posted by drewk
What is it you want to do with the 19 files?
i have a file that contains information about genes and I need to obtain the sequences upstream and downstream these genes and do analysis on that. These 19 files are the chromosome sequences. I have sorted the gene file based on chromosome location so I can essentially use 1 chromosome file at a time since I just tried to open all of them and perl ran out of memory =/
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

using wildcards in this perl command

Hi there, is it possible to use wild cards in this statement ssh $remote_server 'perl -pi -e "s,EXP_SERIAL_19b8be67=\"\",EXP_SERIAL_`hostid`=\"UNKNOWN\"," /var/myfile' This command works fine but the bit in bold (the 8 character hostid) will not always be 19b8be67 so I was hoping I could... (2 Replies)
Discussion started by: hcclnoodles
2 Replies

2. Shell Programming and Scripting

Grepping using multiple wildcards

Is there anyway you can grep using multiple wildcards? When I run the below line the results return fine; grep 12345 /usr/local/production/soccermatchplus/distributor/clients/*/out/fixtures.xml | awk -F/ '{print $8}' However ideally, I need it to grep for; grep 12345... (3 Replies)
Discussion started by: JayC89
3 Replies

3. Shell Programming and Scripting

Perl script to search and extract using wildcards.

Good evening All, I have a perl script to pull out all occurrences of a files beginning with xx and ending in .p. I will then loop through all 1K files in a directory. I can grep for xx*.p files but it gives me the entire line. I wish to output to a single colum with only the hits found. ... (3 Replies)
Discussion started by: CammyD
3 Replies

4. Shell Programming and Scripting

perl script on multiple files

I have a script that runs on one file (at a time). like this: $> perl myscript.pl filename > output How can I run it on >6000 files and have the output sent out into slightly modified file name $> perl myscript 6000files> output6000files.new extension Thanks in anticipation (4 Replies)
Discussion started by: aritakum
4 Replies

5. Shell Programming and Scripting

rename multiple files with wildcards

Hi All I am having hundred over file in the below pattern. AA050101.INI BB090101.INI . . ZX980101.INI Need to rename these files with an extension .bak AA050101.INI.bak BB090101.INI.bak . . ZX980101.INI.bak (5 Replies)
Discussion started by: karthikn7974
5 Replies

6. Programming

Control multiple program instances - open multiple files problem

Hello. This shouldn't be an unusual problem, but I cannot find anything about it at google or at other search machine. So, I've made an application using C++ and QtCreator. I 've made a new mime type for application's project files. My system (ubuntu 10.10), when I right click a file and I... (3 Replies)
Discussion started by: hakermania
3 Replies

7. Shell Programming and Scripting

Perl - grep issue in filenames with wildcards

Hi I have 2 directories t1 and t2 with some files in it. I have to see whether the files present in t1 is also there in t2 or not. Currently, both the directories contain the same files as shown below: $ABC.TXT def.txt Now, when I run the below script, it tells def.txt is found,... (5 Replies)
Discussion started by: guruprasadpr
5 Replies

8. Shell Programming and Scripting

Perl - work with open files or write to @lists first?

I am dealing will many thousand fairy small files. I need to search them for various matches and depending on what I find, may need to search some files again for additional matches. Generally speaking, is it better to write a txt file to an @array/@list and then work with it (multiple... (1 Reply)
Discussion started by: OldGaf
1 Replies

9. Shell Programming and Scripting

open files with multiple indexes

Hi, I want to work with multiple files which all contain 2 numbers. I tried to make a nested for loop but for some reason it doesn't recognize the $j as a number. The output is cannot open file `175-T-pvalue.xls'. How do I make sure that it takes the numbers from the inner loop as $j? ... (4 Replies)
Discussion started by: linseyr
4 Replies

10. Shell Programming and Scripting

Grep multiple patterns that contain wildcards

job_count=`grep -e "The job called .* has finished | The job called .* is running" logfile.txt | wc -l` Any idea how to count those 2 patterns so i have a total count of the finished and running jobs from the log file? If i do either of the patterns its works okay but adding them together... (8 Replies)
Discussion started by: finn
8 Replies
Bio::Map::CytoPosition(3pm)				User Contributed Perl Documentation			       Bio::Map::CytoPosition(3pm)

NAME
Bio::Map::CytoPosition - Marker class with cytogenetic band storing attributes SYNOPSIS
$m1 = Bio::Map::CytoPosition->new ( '-id' => 'A1', '-value' => '2q1-3' ); $m2 = Bio::Map::CytoPosition->new ( '-id' => 'A2', '-value' => '2q2' ); if ($m1->cytorange->overlaps($m2->cytorange)) { print "Makers overlap "; } DESCRIPTION
CytoPosition is marker (Bio::Map::MarkerI compliant) with a location in a cytogenetic map. See Bio::Map::MarkerI for more information. Cytogenetic locations are names of bands visible in stained mitotic eucaryotic chromosomes. The naming follows strict rules which are consistant at least in higher vertebates, e.g. mammals. The chromosome name preceds the band names. The shorter arm of the chromosome is called 'p' ('petit') and usually drawn pointing up. The lower arm is called 'q' ('queue'). The bands are named from the region separting these, a centromere (cen), towards the tips or telomeric regions (ter) counting from 1 upwards. Depending of the resolution used the bands are identified with one or more digit. The first digit determines the major band and subsequent digits sub bands: p1 band can be divided into subbands p11, p12 and 13 and p11 can furter be divided into subbands p11.1 and p11.2. The dot after second digit makes it easier to read the values. A region between ands is given from the centromere outwards towards the telomere (e.g. 2p2-5 or 3p21-35) or from a band in the p arm to a band in the q arm. 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 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 - Heikki Lehvaslaiho Email: heikki-at-bioperl-dot-org CONTRIBUTORS
Sendu Bala bix@sendu.me.uk APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ cytorange Title : cytorange Usage : my $range = $obj->cytorange(); Function: Converts cytogenetic location set by value method into an integer range. The chromosome number determines the "millions" in the values. Human X and Y chromosome symbols are represented by values 100 and 101. The localization within chromosomes are converted into values between the range of 0 and 200,000: pter cen qter |------------------------|-------------------------| 0 100,000 200,000 The values between -100,000 through 0 for centromere to 100,000 would have reflected the band numbering better but use of positive integers was chosen since the transformation is very easy. These values are not metric. Each band defines a range in a chromosome. A band string is converted into a range by padding it with lower and and higher end digits (for q arm: '0' and '9') to the length of five. The arm and chromosome values are added to these: e.g. 21000 & 21999 (band 21) + 100,000 (q arm) + 2,000,000 (chromosome 2) => 2q21 : 2,121,000 .. 2,121,999. Note that this notation breaks down if there is a band or a subband using digit 9 in its name! This is not the case in human karyotype. The full algorithm used for bands: if arm is 'q' then pad char for start is '0', for end '9' range is chromosome + 100,000 + padded range start or end elsif arm is 'p' then pad char for start is '9', for end '0' range is chromosome + 100,000 - padded range start or end Returns : Bio::Range object or undef Args : none range2value Title : range2value Usage : my $value = $obj->range2value($range); Function: Sets and returns the value string based on start and end values of the Bio::Range object passes as an argument. Returns : string or false Args : Bio::Range object value Title : value Usage : my $pos = $position->value; Function: Get/Set the value for this postion Returns : scalar, value Args : none to get, OR scalar to set numeric Title : numeric Usage : my $num = $position->numeric; Function: Read-only method that is guarantied to return a numeric representation of the start of this position. Returns : int (the start of the range) Args : optional Bio::RangeI object chr Title : chr Usage : my $mychr = $position->chr(); Function: Get/Set method for the chromosome string of the location. Returns : chromosome value Args : none to get, OR scalar to set perl v5.14.2 2012-03-02 Bio::Map::CytoPosition(3pm)
All times are GMT -4. The time now is 09:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy