Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3623288
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:21:54+00:00 2026-05-18T23:21:54+00:00

I’m trying to parse an html output file from a program called mirdeep. I

  • 0

I’m trying to parse an html output file from a program called mirdeep. I have gotten the script to the point where the data has been extracted into an array of arrays and I am trying to extract the specific information that I want from the appropriate columns. For some odd reason, I keep getting output that shouldn’t be possible.

Bascially it should be pulling the counts from the mirbase miRNAs that were detected by mirdeep AND and the undetected ones, but leave the stat table and novel section alone.

However, the counts currently being pulled for the undetected section are strangely getting stored incorrectly. (Because of the way they were output, Some of the so called “star” and “mature” data were put into separate lines instead of being in the same line, so I am trying to recombine them. I’m fairly certain that an error in the recombination is the source of the problem.

I was checking my progress with print statements and noticed that some of the data that should only have either a mature count or a star count have both, and that the second number seems to be always equal to the mature count of the row below in the html file, which doesnt make sense to me. Can somebody help me track down whats gone wrong? This is my first time using packages for object orientation extensively, so there could be any kind of error in here.

Heres the script and an example data file

Just created an account, for some reason I can’t install HTML::TableExtract;

Running make install make test had returned bad status, won’t install without force Failed during this command: GAAS/HTML-Parser-3.68.tar.gz : make_test NO MSISK/HTML-TableExtract-2.10.tar.gz : make_test NO

seems my perl installation was screwey, i was trying to use bioperl and for some reason the bums use fink, which installed its OWN copy of perl instead of providing the libraries for the main system installation of perl. Does anybody know how to make fink play nice with the main MAC perl installation (& cpan)? When I use the main perl it works, but I can’t install the module to the older fink perl, which i have to use to get access to bioperl. Wonderful isn’t it.

P.S. The thing that bothers me the most about this, is that its not happening to every data item, and the ones that it IS happening to are mostly ones that should not be getting two values in the first place. It seems somewhat pseudorandom, but deterministic in that it happens to the same items every time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T23:21:54+00:00Added an answer on May 18, 2026 at 11:21 pm

    That is hundreds of lines of code. If you are just trying to extract the table out of the HTML, use HTML::TableExtract.

    For example:

    #!/usr/bin/perl
    
    use strict; use warnings;
    use HTML::TableExtract;
    use YAML;
    
    my $te = HTML::TableExtract->new(
        headers => [
            '',
            'novel miRNAs',
            'known miRBase miRNAs',
            '',
            '',
        ],
        slice_columns => 0,
    );
    
    $te->parse_file('t.html');
    
    for my $table ( $te->tables ) {
        for my $row ( $table->rows ) {
            print Dump $row;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
Seemingly simple, but I cannot find anything relevant on the web. What is the
That's pretty much it. I'm using Nokogiri to scrape a web page what has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.