How to extract gene sequences from a specified range of chromosome sequences by Perl
This article mainly introduces Perl how to extract the gene sequence of the specified range of chromosome sequence, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to understand it.
Perl extracts the gene sequence at the specified location and uses the substr function, usage:
$gene = substr ($fasta,$start-1, $end-$start+1)
Where $fasta is the total sequence; $start is the start of the extraction sequence, and since the Perl string is counted from 0, minus one is the end of the extraction sequence; and $gene is the sequence at the specified location of the extraction.
Thank you for reading this article carefully. I hope the article "how to extract Perl from a specified range of chromosome sequences" shared by the editor will be helpful to you. At the same time, I also hope that you will support and follow the industry information channel. More related knowledge is waiting for you to learn!