Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • noobie
    started a topic BioPerl Issues

    BioPerl Issues

    I am having issues with a BioPerl script. I have a blastxml file from a blastx blast and the original multifasta file containing the original nucleotides sequences.

    I want to take the blast result (ie. the blast description) and annotated my multifasta file.

    I have written 2 while loops that extract the blast descriptions as well as the nucleotide sequence from the multifasta file.

    My problem is that I cannot incorporate one of the while loops into the other without loosing the loop property of one of the loops.

    See script below:


    use warnings;
    use strict;
    use Bio::SearchIO;
    use Bio::SeqIO;


    my $search_in = Bio::SearchIO->new(-format => 'blastxml', -file => "$ARGV[0]");
    while (my $result = $search_in->next_result) {
    while (my $hit = $result->next_hit) {
    while (my $hsp = $hit->next_hsp) {
    my $qd = $hit->description;
    print $qd, "\n";
    }
    }
    }

    my $seqio = Bio::SeqIO->new(-format => 'fasta', -file => "$ARGV[1]");
    while (my $seqobj = $seqio->next_seq) {
    my $nuc = $seqobj->seq();
    print $nuc, "\n";
    }

Latest Articles

Collapse

  • seqadmin
    Exploring the Dynamics of the Tumor Microenvironment
    by seqadmin




    The complexity of cancer is clearly demonstrated in the diverse ecosystem of the tumor microenvironment (TME). The TME is made up of numerous cell types and its development begins with the changes that happen during oncogenesis. “Genomic mutations, copy number changes, epigenetic alterations, and alternative gene expression occur to varying degrees within the affected tumor cells,” explained Andrea O’Hara, Ph.D., Strategic Technical Specialist at Azenta. “As...
    07-08-2024, 03:19 PM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, Yesterday, 06:46 AM
0 responses
9 views
0 likes
Last Post seqadmin  
Started by seqadmin, 07-24-2024, 11:09 AM
0 responses
24 views
0 likes
Last Post seqadmin  
Started by seqadmin, 07-19-2024, 07:20 AM
0 responses
159 views
0 likes
Last Post seqadmin  
Started by seqadmin, 07-16-2024, 05:49 AM
0 responses
127 views
0 likes
Last Post seqadmin  
Working...
X