Sorry bout posting this in another post, but replying didn't work. I fixed the first problem, but now I don't know how to access the hashes within hashes. How could I get a list for each amino acid that goes like...
and this is for research, but not the programing part
Thanks for any help...
Hello all,
I'm creating a program that takes a DNA sequence, goes through it codon by codon, counting the number of codons for each amino acid.
Here's the code (It's long, but simple and I'd really appreciate any help I can get) [the output is after it, essentially it isn't counting]...
I want to parse a FASTA-like file into a hash (without using bioperl). The file I'm working with is similar to...
>TTHERM_01213980
ATGGAGTAGATTTAATAAGACTAATAAGGATTGATTTCATGGTACTGTTATAATGCATAA
>TTHERM_00697570
ATGAATAAATATACTCTAATTACTTTAGGAGTTTGTATGCTTATAGTTAATGGGTTTTTG...
I am trying to count the occurences of a given base in a sequence. The problem I'm running into is with this code:
$count = ($Sequence =~ tr/$base//);
where the $base variable is the given base to count. The code works perfectly if I manually replace $base with a given base, but otherwise...
I'm looking for a way for perl to read in all the files (these would contain DNA sequence data) in a folder that the user inputs. Essentially my question is, how can the user pinpoint a folder for perl to examine that is in just some odd location?
I was wondering about how one could use the get command on an array of URLs via LWP::Simple. I'm just filtering the code so it doesn't matter if all the source from all of the URLS is dumped into one scalar variable.
essentially, how can I make this work...
@array =...
I'm trying to create a search by constructing the resulting url(s). In order to do so I have a base url string
$url = blah.com/sassafras%
this would be the first page, and the subsequent search pages would be...
blah.com/sassafras%&ct=11
blah.com/sassafras%&ct=21
blah.com/sassafras%&ct=31...
I'm wondering how the people of this community will save their hash variables for permanent use. I've saved my arrays to text files pretty well, but I don't know how I would go about printing a hash to a text file, closing the programs, and later extracting the saved hash text back into a hash...
I'm taking in search values to make up a file system. When I take the $search in I want to add that to an array. The problem is when I want to only add it if it is not already present. Right now it just keeps on adding it to the array rather than only if it is new. Any help is appreciated...
I'm trying perl for the first time and I just can't seem to get loops to work, I've copied a loop from O'Reilly's "Learning Perl" that doesn't work for me. I'm running active perl on a windows xp system...
#!usr/bin/perl
#right out of O'Reilly's "Learning Perl"
my $some_other = "I dream of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.