<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[BOL: Owner]]></title>
	<link>https://bioinformaticsonline.com/snippets/owner/priyasingh?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/owner/priyasingh?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/27541/implementation-of-biological-random-mutation-with-perl</guid>
	<pubDate>Thu, 26 May 2016 02:38:01 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/27541/implementation-of-biological-random-mutation-with-perl</link>
	<title><![CDATA[Implementation of biological random mutation with Perl]]></title>
	<description><![CDATA[<code>#!/usr/bin/perl -w

use strict;  
use warnings;  

#sequence for a better recognition  
my $DNA=&quot;AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA \ n&quot;;  
my $I;  
my $mutant;  
srand (time | $$).  
$mutant=mutate ($DNA);  
print &quot;Mutate \ n&quot;. $DNA;  
print &quot;Here is the the original DNA: \ n&quot;;  
print &quot;$DNA \ n&quot;;  
print &quot;Here is the mutant DNA: \ n \ n&quot;;  
print &quot;$mutant \ n&quot;;  
print &quot;motorcycle 10 more successive mutations: \ n&quot;;  
for ($I=0; $i&lt;10; $I + +)  { 
    $mutant=mutate ($mutant);  
    Print &quot;$mutant \ n&quot;;  
}  

#subroutine: according to the length of the sequence is defined a random location of subroutine  
sub randomposition { 
    my ($string)=@ _;  
    return int (rand (length ($string)));  

} #subroutine: randomly selected from an element from an array  
sub randelement { 
  my (@array)=@ _;  
  return $array [rand @ array];  
}  

#subroutine: refer to the above subroutine, randomly selected from four bases ATGC a  
sub randomnucleotide { 
  my (@nucleotides)=&#039;ve/A, C/T G&#039;.  
  return randelement (@nucleotides);  
}  

#subroutine: generate mutations subroutine  
sub mutate { 
    my DNA ($)=@ _;  
    my (@nucleotides)=&#039;ve (A C T G)&#039;;  
    my ($position)=randomposition DNA ($);  
    my ($newbase)=randomnucleotide (@nucleotides);  
    DNA, substr ($$position, 1, $newbase); #substr ($string, $initial_position, $length, replacement substring)  
    return $DNA;  

}</code>]]></description>
	<dc:creator>Priya Singh</dc:creator>
</item>

</channel>
</rss>