Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • firozsiwan
    Junior Member
    • Oct 2012
    • 3

    Extract mRNA sequence from mysql database using Bio::DB::SeqFeature::Store

    I have uploaded genomic fasta sequence and GFF3 file into local mysql database using "bp_seqfeature_load.pl". Now, I want to extract sequence from position 8966215-8966961 on "+" strand of Chromosome I, and print only the mRNA transcript segment between 8966215-8966961. If there are many isoforms found between these position, print each isoform sequences with name and position as fasta format. Could you please tell me what is the best approach to do it for it. My code does not work well. Thanks



    #!/user/bin/perl
    use strict;
    use warnings;
    use Bio::Seq;
    use Bio::SeqIO;
    use Bio::SeqFeatureI;
    use Bio:B::SeqFeature::Store;
    use Bio:B::SeqFeature::Segment;

    my @features;
    my $db = Bio:B::SeqFeature::Store->
    new(-adaptor=> 'DBI::mysql',
    -dsn=> '..',
    -user=> '..',
    -pass=> '..',
    );


    my @foo = $db->features(-seq_id =>'I',-start=>'8966215',-end=>'8966961', -strand =>'+1',
    -type => 'mRNA',
    );

    for my $f(@foo){

    print ">",$->name,"_",$f->start,"_",$f->end,"\n";
    print $f->dna,"\n";

    }

    exit;

Latest Articles

Collapse

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 06-09-2026, 11:58 AM
0 responses
30 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 06-05-2026, 10:09 AM
0 responses
38 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 06-04-2026, 08:59 AM
0 responses
42 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 06-02-2026, 12:03 PM
0 responses
64 views
0 reactions
Last Post SEQadmin2  
Working...