User Profile

Collapse

Profile Sidebar

Collapse
adriaan
adriaan
Last Activity: Dec 22 '07, 10:28 PM
Joined: Dec 15 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • adriaan
    replied to a hash of arrays
    in Perl
    thanx the @{} thing was what I was looking for
    See more | Go to post

    Leave a comment:


  • adriaan
    started a topic problem with chomp
    in Perl

    problem with chomp

    I'm having this weird problem with chomp
    I want to get all the numbers out of a file that looks like this
    1,2
    4,3,2
    and have the first number point to an array of the others in a hash
    I'm almost able to do this except for the fact that a '\n'
    get ad to the last number,
    I'm trying to get rid of it but somehow chomp just won't work
    code :
    Code:
    open (DataBase,"voorwaardelijk.txt");
    ...
    See more | Go to post

  • adriaan
    started a topic a hash of arrays
    in Perl

    a hash of arrays

    Hi all,
    I'm having a problem getting the length of an array that I've put in a
    hash here's my code

    Code:
    $voorwaardehash{$key} = [@getallen];
    		
    		@lengte = $voorwaardehash{$key};
    		
    		print "--".$#lengte ."\n";
    now this looks fine to me except that ik keeps returning 0 instead of the true length of the array thats at the key
    See more | Go to post

  • adriaan
    replied to help with regular expressions
    in Perl
    I have to chop because when perl somehow adds a character after the concatenation and that screws up my searching expression when I'm trying to find what i found here in text file...
    See more | Go to post

    Leave a comment:


  • adriaan
    started a topic help with regular expressions
    in Perl

    help with regular expressions

    for a program i'm makin I need to be able to analyze lines like the following one

    1 waarschijnlijk neiging tot suikerziekte ccaggcccac ctggagactc

    and split it up in a part that containes the number
    a part that containes the text
    and as a last part the dna sequence ccaggcccac ctggagactc

    now i can do that with the following code

    Code:
    # haal de ziekte codes er uit
    		if($line
    ...
    See more | Go to post

  • adriaan
    replied to Checking for bad dna sequences
    in Perl
    thanks for the reply
    youre link to
    http://serach.cpan.org/
    doesn't seem to work so I don't know what you mean with the module thing.
    It's not really homework, it's more of an exercise I was advised to try out
    on.
    this the code i've written to get the evil sequences out of the database,
    I don't really have any usefull code yet on the analyzing section as Im still trying to figure out how to do it...
    See more | Go to post

    Leave a comment:


  • adriaan
    started a topic Checking for bad dna sequences
    in Perl

    Checking for bad dna sequences

    hi all,
    I have an assignment were I have to check multiple human dna sequences that look like this

    ORIGIN
    Code:
    1 ttgctgcaga cgctcacccc agacactcac tgcaccggag tgagcgcgac catcatgtcc
    61 atgctcgtgg tctttctctt gctgtggggt gtcacctggg gcccagtgac agaagcagcc
    121 atattttatg agacgcagcc cagcctgtgg gcagagtccg aatcactgct gaaacccttg
    181 gccaatgtga cgctgacgtg ccaggcccac ctggagactc cagacttcca gctgttcaag
    241 aatggggtgg
    ...
    See more | Go to post
    Last edited by eWish; Dec 15 '07, 10:01 PM. Reason: Added Code Tags
No activity results to display
Show More
Working...