Get the App
SLTechnology News&Howtos  ›  Development  › 

How to extract gene sequences from a specified range of chromosome sequences by Perl

Shulou Source: shulou.com Published: 2022-06-01 13:02:38 10月02日 Update

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!

Tags: Sequences positions articles genes chromosomes ranges coloring values interests functions simultaneously characters strings more friends knowledge banding industry information information channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Linux OPPO Reno Shulou Tech Info Huawei