HI all,
could please help me in this code. I have 560 files containing the same columns but different rows. i want to concatenate all these files in one big file. i want to keep the header of the first file then add the dat from other files horizontally.
the name of my files contains 2 variables : chunk number and chromosome number. this an example
code:
IMP_chunk11-chr6_file
i have tried this code but it works only for one variable and 22 files. anu suggestion to adapt it to my case
code :
thank you veru much
Moderator's Comments:
edit by bakunin: Please reread the rules, CODE-tags are not optional when posting code. Thank you.
Hi, I'm totally new to Unix. I'm an MVS mainframer but ran into a situation where a Unix server I have available will help me. I want to be able to remotely connect to another server using FTP, login and MGET all files from it's root or home directory, logout, then login as a different user and do... (1 Reply)
need a shell which perform following function
file 1 ( every time new data comes)
1212
2323
3434
4545
5656
.
.
.
.
file 2 (fixed line)
update bc_tbl set aix=data , bix=back where cix=U and serial=;
now when i execute shell it will concatinate file 1, file 2 & make file 3 as... (3 Replies)
I have directory structure sales_only under which i have multiple directories for each dealer
example:
../../../Sales_Only/xxx_Dealer
../../../Sales_Only/yyy_Dealer
../../../Sales_Only/zzz_Dealer
Every day i have one file produce under each directory when the process runs.
The requirement... (3 Replies)
Hi, I want to create a batch(bash) file to combine 23 files together. These files have the same extension. I want the final file is save to a given folder. Once it is done it will delete the 23 files.
Thanks for help. Need script. (6 Replies)
I have a file named "file1" which has the following data
10000
20000
30000
And I have a file named "file2" which has the following data
ABC
DEF
XYZ
My output should be
10000ABC
20000DEF (3 Replies)
Hey!
I wanted to find a text version of the Bible for purposes of grepping. The only files I could find, (in the translation I wanted), were Old Testament.txt and New Testament.txt. I thought, "fine, I'll just concatenate those two, no problemo." But when I unpacked them, turns out they had each... (22 Replies)
Hi All,
Need your help.
I will need to concatenate around 100 files but each end of the file I will need to insert my name DIRT1228 on each of the file and before the next file is added and arrived with just one file for all the 100files.
Appreciate your time.
Dirt (6 Replies)
Hi
I am trying to learn linux step by step an i am wondering
can i use cat command for concatenate files but i want to place context of file1 to a specific position in file2 place of file 2 and not at the end as it dose on default?
Thank you. (3 Replies)
- Concatenate files and delete source files. Also have to add a comment.
- I need to concatenate 3 files which have the same characters in the beginning and have to remove those files and add a comment and the end.
Example:
cat REJ_FILE_ABC.txt REJ_FILE_XYZ.txt REJ_FILE_PQR.txt >... (0 Replies)
Discussion started by: eskay
0 Replies
LEARN ABOUT DEBIAN
bio::popgen::popstats
Bio::PopGen::PopStats(3pm) User Contributed Perl Documentation Bio::PopGen::PopStats(3pm)NAME
Bio::PopGen::PopStats - A collection of methods for calculating statistics about a population or sets of populations
SYNOPSIS
use Bio::PopGen::PopStats;
my $stats = Bio::PopGen::PopStats->new(); # add -haploid => 1
# to process haploid data
DESCRIPTION
Calculate various population structure statistics, most notably Wright's Fst.
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::PopStats->new();
Function: Builds a new Bio::PopGen::PopStats object
Returns : an instance of Bio::PopGen::PopStats
Args : -haploid => 1 (if want to use haploid calculations)
haploid_status
Title : haploid_status
Usage : $obj->haploid_status($newval)
Function: Boolean value for whether or not to do haploid
or diploid calculations, where appropriate
Returns : Boolean
Args : on set, new boolean value optional)
Fst
Title : Fst
Usage : my $fst = $stats->Fst(@populations,@markernames)
Function: Calculate Wright's Fst based on a set of sub-populations
and specific markers
Returns : Fst value (a value between 0 and 1)
Args : Arrayref of populations to process
Arrayref of marker names to process
Note : Based on diploid method in Weir BS, Genetics Data Analysis II, 1996
page 178.
perl v5.14.2 2012-03-02 Bio::PopGen::PopStats(3pm)