943,675 Members | Top Members by Rank

Ad:
  • Perl Discussion Thread
  • Unsolved
  • Views: 3144
  • Perl RSS
Dec 13th, 2007
0

Delete columns

Expand Post »
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,
Similar Threads
SNN
Reputation Points: 10
Solved Threads: 0
Newbie Poster
SNN is offline Offline
7 posts
since Nov 2007
Dec 14th, 2007
0

Re: Delete columns

OK, what have you tried so far?
Reputation Points: 246
Solved Threads: 67
Practically a Posting Shark
KevinADC is offline Offline
898 posts
since Mar 2006
Jan 8th, 2008
0

Re: Delete columns

You could use one of those perl CSV modules found at CPAN
Reputation Points: 11
Solved Threads: 3
Junior Poster in Training
chrisranjana is offline Offline
82 posts
since Jul 2005
Sep 3rd, 2008
0

Re: Delete columns

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

Click to Expand / Collapse  Quote originally posted by SNN ...
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,
Reputation Points: 10
Solved Threads: 0
Newbie Poster
uan_Blr is offline Offline
12 posts
since Sep 2008
Sep 3rd, 2008
0

Re: Delete columns

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.
Reputation Points: 246
Solved Threads: 67
Practically a Posting Shark
KevinADC is offline Offline
898 posts
since Mar 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Perl Forum Timeline: GUI question
Next Thread in Perl Forum Timeline: hash/data file.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC