No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Basically I am reformatting a list that looks like this ko10101 K01392 K09134 ko34231 K05789 ko13452 K04665 K07881 into a csv file that looks like this: ko10101\tK01392 ko10101\tK01392 ko10101\tK09134 ko34231\tK05789 ko13452\tK04665 ko13452\tK07881 [code]while (<OUT>) { my $line = $_; chomp; if ($line =~ /^$/) { next; } elsif ($line =~ … |
|
Re:
Hello, I've searched far and wide for an answer to a question that I have, but did not find anything that could help me achieve what I would like to do. I have a delimited text file (CSV) with fields that resemble these below that repeats/resemble 18 times (I only … |
|
Hi, I wrote this script to help me cleanup some data. The value in the 8th column is sometimes empty. When it is empty, I want it to print a zero as in the next part of the script it will be adding a number to whatever is in that … |
|
Hi, So I am modifying some code from discussion thread: [URL="http://www.daniweb.com/software-development/perl/threads/323871"]http://www.daniweb.com/software-development/perl/threads/323871[/URL] I am still very much a newbie, but am trying to get a better handle on hashes - so if I've messed mine up please tell me ;). I am attaching 3 files. One is an image of the … |
|
I posted a similar thread back in Nov and got some great help. I'm modifying the code to be useful to not only compare multiple columns from two separate files, but also to classify each line from @hairpin to determine if the parameters fall within any of the ESThits, outside … |
|
I need some help setting up a perl script which will provide the statistics on some data I have in an excel file. My plan was to copy the excel file into a text file (with tab delineated columns) and run the script off of that. I downloaded a simple … |
|
Hi, Currently I have two files: (I've labeled the columns to help with the explanation) mature.txt [0m] [1m] [2m] [3m] [4m] [5m] [6m] [7m] scaffold1088 121550 D 18 ppy mi 164g 88.6 scaffold1141 262270 D 18 ppy mi 896 90.2 scaffold1168 54635 D 18 peu mi 2138 87.5 scaffold1168 56190 … |
|
I received the following error, but I don't understand how to fix it. Help? "readline() on closed filehandle IN at transcribe.pl line 21." [CODE]#!/usr/bin/perl #transcribe.pl #convert DNA to RNA (T to U) use strict; use warnings; #TASK: Read DNA sequences from ‘DNAseq’ input file – #there is one sequence per … |
|
I am very very new to perl and am not even sure if awk is what I should be using instead. Hopefully someone out there can help me put together a script for this problem. Here is some sample data (it is tab delineated in my file): 20 scaffold189_125 13634 … |