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

  • Home
  • SEARCH
  • 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 6958333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:07:33+00:00 2026-05-27T15:07:33+00:00

I wanted to build a matrix representation parsimony with R. I found this phylogenetic

  • 0

I wanted to build a matrix representation parsimony with R. I found this phylogenetic package and I’ve decided to give it a try, although I’m a newbie in R.

subset of the trees can be found here

When I use the example I’m able to generate a test tree perfectly. However when I use my file, I’m getting this error:

Error in XX[rownames(X[[i]]), c(j:((j - 1) + ncol(X[[i]])))] <- X[[i]]
    [1:nrow(X[[i]]),  :   subscript out of bounds

Another thing that I’m imaging is not working like it should is species. Because if I print species I will get an empty “” and two NA.

(...)
if(i==1) species<-phy[[i]]$tip.label

EDIT
I’ve tried with others newick files and have the same and different errors. Although the function says:

This function reads a file which contains one or several trees in
 parenthetic format known as the Newick or New Hampshire format.

It doesn’t seem to be able to read these files. Any idea?

Is anybody willing to help to understand what should I do to avoid this error?

Thank you!

  • 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-27T15:07:33+00:00Added an answer on May 27, 2026 at 3:07 pm

    How did I solve the problem?

    I’ve tried with different newick files and all of them gave me an error.

    Since it worked with the example provided by the author, after one suggestion I’ve decided to write those test trees into a file, realized that the trees didn’t have any distances, after removing the distances from the file, the code provided by Liam worked!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First I wanted to build the DBD::mysql package. That kept failing because whatever make
I am newbie at PHP. I wanted to build a small project of room
I have this class that I wanted to build using TDD, but I failed.
I'm pretty new to coding and wanted to try and build a twitter app
I wanted to build an extension but realized a plugin would give me more
Just installed Jenkins in Ubuntu 12.04 and I wanted to create a simple build
I wanted to build a front end web page so that I can start
hello i wanted to build I get $date and $date1 from form xxx. I
Lets say I wanted to build an app that will pull url links from
I've always wanted a minimal windows NT build . Sounds like one's already there

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.