954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Delete columns

Hi,
I am new to Perl and I appreciate if someone can help me.

I have a tab delimited file that contains 100 columns and 300 rows. The first row is the ID. I need first to read the file into a matrix or a table and delete the columns with a specific ID, for example columns with ID that contains the letter "k".


Thanks,

SNN
Newbie Poster
7 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

OK, what have you tried so far?

KevinADC
Posting Shark
921 posts since Mar 2006
Reputation Points: 246
Solved Threads: 67
 

You could use one of those perl CSV modules found at CPAN

chrisranjana
Junior Poster in Training
83 posts since Jul 2005
Reputation Points: 11
Solved Threads: 3
 

Hi there!
i have a very similar problem, and would ask you if found already an solution!
i would be very happy as a perl beginner if you could send me a short script doing this.
(i have 16 columns, have to do the difference col6-col10 and then delete all columns and leave only the 1. and the difference column)
many thanks,
uan

Hi, I am new to Perl and I appreciate if someone can help me.

I have a tab delimited file that contains 100 columns and 300 rows. The first row is the ID. I need first to read the file into a matrix or a table and delete the columns with a specific ID, for example columns with ID that contains the letter "k".

Thanks,

uan_Blr
Newbie Poster
12 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

Be happy to help you if you have put any effort into solving the problem. BUt I will not just write a script for you based on your requirements, this is not a script writing or do-my-homework service.

KevinADC
Posting Shark
921 posts since Mar 2006
Reputation Points: 246
Solved Threads: 67
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You