Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

programme to get the sequence with cut ends of 250 bp on both sides and also i need to get the cut pieces please suggest the rigght way

by anisha3 (Novice)
on Mar 22, 2012 at 12:06 UTC ( [id://960989]=perlquestion: print w/replies, xml ) Need Help??

anisha3 has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on programme to get the sequence with cut ends of 250 bp on both sides and also i need to get the cut pieces please suggest the rigght way
  • Watch for: Direct replies / Any replies

Replies are listed 'Best First'.
Re: perl programme to sort out snps from human genome ....plz suggest me the right way . iam confused how to write
by marto (Cardinal) on Mar 22, 2012 at 13:33 UTC

    "this is the one which i wrote by myself if its wrong plz letme knw"

    I'm sure if you ran your script you'd see it was wrong, in the sense that it doesn't work. Here is an example which does what I think you are trying to do:

    #!/usr/bin/perl use strict; use warnings; my $word1 = 'Hcr1fa.fa'; # you missed the ; if ( $word1 eq "chr1.subst.fa" ){ # I added quotes print "$word1\n"; } elsif ( $word1 eq "Hcr1fa.fa" ) { print "$word1\n" }

    Now I'm sure you know what you're trying to achieve with your code, I don't. My code prints the value of $word1 if the value is "chr1.subst.fa" or "Hcr1fa.fa". You'll see from the code and the comments that I added quotes around chr1.subst.fa, are you expecting this string or are you trying to match something else?

    When you previewed your post, you must have seen that something was wrong with the formatting. Your closing code tag should be </code> rather than <\code>.

    Here are some links I think you should read and understand:

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://960989]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-03-19 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found