08-29-2010
Hi
Thank you. working good . But it is throwing error when I ran 17 files ?
Quote:
awk: cmd. line:1: (FILENAME=/file14.bed FNR=250923) fatal: cannot open file `/filej0' for reading (No such file or directory)
Last edited by stateperl; 08-29-2010 at 02:31 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
My apologies if this has been posted elsewhere, I have had a look at several threads but I am still confused how to use these functions. I have two files, each with 5 columns:
File A: (tab-delimited)
PDB CHAIN Start End Fragment
1avq A 171 176 awyfan
1avq A 172 177 wyfany
1c7k A 2 7... (3 Replies)
Discussion started by: InfoSeeker
3 Replies
2. Shell Programming and Scripting
I am trying to join a few hundred files using join. Is there a way to use while read or something else to automate this. My problem is the following.
Day 1
City Temp
ABC 20
DEF 30
HIJ 15
Day 2
City Temp
ABC 22
DEF 29
KLM 5
Day 3 (3 Replies)
Discussion started by: theFinn
3 Replies
3. UNIX for Dummies Questions & Answers
Hi guys,
say I have a few files in a directory (58 text files or somthing)
each one contains mulitple strings that I wish to replace with other strings
so in these 58 files I'm looking for say the following strings:
JAM (replace with BUTTER)
BREAD (replace with CRACKER)
SCOOP (replace... (19 Replies)
Discussion started by: rich@ardz
19 Replies
4. Shell Programming and Scripting
Hi I am new to shell scripting. There is a requirement to write a shell script to meet follwing needs.Prompt reply shall be highly appreciated.
script that will compare two config files and produce 2 outputs - actual config file and a report indicating changes made.
OS :Susi linux ver 10.3.
... (4 Replies)
Discussion started by: muraliinfy04
4 Replies
5. Shell Programming and Scripting
Is it possible to join all the files with input1 based on 1st column?
input1
a
b
c
d
e
f
input2
a
b
input3
a
e
input4
c (2 Replies)
Discussion started by: quincyjones
2 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have 20 tab delimited text files that have a common column (column 1). The files are named GSM1.txt through GSM20.txt. Each file has 3 columns (2 other columns in addition to the first common column).
I want to write a script to join the files by the first common column so that in the... (5 Replies)
Discussion started by: evelibertine
5 Replies
7. Shell Programming and Scripting
Hi there,
I am trying to join 24 files (i showed example of 3 files below). They all have 2 columns. The first columns is common to all. The files are tab delimited eg
file 1
rs0001 100e-34
rs0003 2.8e-01
rs008 1.9e-90
file 2
rs0001 1.98e-22
rs0004 3.77e-10... (4 Replies)
Discussion started by: fat
4 Replies
8. Shell Programming and Scripting
Please help, I want to join multiple files based on column 1, and put the missing values as 0. Also the colname in the output should say which file the values came from.
FILE1
1 11
2 12
3 13
FILE2
2 22
3 23
4 24
FILE3
1 31
3 33
4 34
FILE1 FILE2 FILE3
1 11 0 31 (1 Reply)
Discussion started by: newbie83
1 Replies
9. Shell Programming and Scripting
I would like to join two files when two columns in each file matches with each other and then produce an output when taking multiple columns.
Like I have file A
1234,ABCD,23,JOHN,NJ,USA
2345,ABCD,24,SAM,NY,USA
5678,GHIJ,24,TOM,NY,USA
5678,WXYZ,27,MAT,NJ,USA
and file B
... (2 Replies)
Discussion started by: mady135
2 Replies
10. Shell Programming and Scripting
Hello all,
I want to join 2 tabbed files on the first 2 fields, and filling the missing values with 0. The 3rd column in each file is constant for the entire file.
file1
12658699 ST5 XX2720 0 1 0 1
53039541 ST5 XX2720 1 0 1.5 1
file2 ... (6 Replies)
Discussion started by: sheetalk
6 Replies
LEARN ABOUT DEBIAN
bio::featureio::bed
Bio::FeatureIO::bed(3pm) User Contributed Perl Documentation Bio::FeatureIO::bed(3pm)
NAME
Bio::FeatureIO::bed - read/write features from UCSC BED format
SYNOPSIS
my $in = Bio::FeatureIO(-format => 'bed', -file => 'file.bed');
for my $feat ($in->next_feature) {
# do something with $feat (a Bio::SeqFeature::Annotated object)
}
my $out = Bio::FeatureIO(-format=>'bed');
for my $feat ($seq->get_seqFeatures) {
$out->write_feature($feat);
}
DESCRIPTION
See <http://www.genome.ucsc.edu/goldenPath/help/customTrack.html#BED>.
Currently for read and write only the first 6 fields (chr, start, end, name, score, strand) are supported.
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 - Allen Day
Email allenday@ucla.edu
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 _
_initialize
Title : _initialize
Function: initializes BED for reading/writing
Args : all optional:
name description
----------------------------------------------------------
-name the name for the BED track, stored in header
name defaults to localtime()
-description the description for the BED track, stored in
header. defaults to localtime().
-use_score whether or not the score attribute of
features should be used when rendering them.
the higher the score the darker the color.
defaults to 0 (false)
use_score
Title : use_score
Usage : $obj->use_score($newval)
Function: should score be used to adjust feature color when rendering? set to true if so.
Example :
Returns : value of use_score (a scalar)
Args : on set, new value (a scalar or undef, optional)
name
Title : name
Usage : $obj->name($newval)
Function: name of BED track
Example :
Returns : value of name (a scalar)
Args : on set, new value (a scalar or undef, optional)
description
Title : description
Usage : $obj->description($newval)
Function: description of BED track
Example :
Returns : value of description (a scalar)
Args : on set, new value (a scalar or undef, optional)
perl v5.14.2 2012-03-02 Bio::FeatureIO::bed(3pm)