Skip to content
This repository was archived by the owner on Dec 3, 2019. It is now read-only.
This repository was archived by the owner on Dec 3, 2019. It is now read-only.

readDiscreteCharacterData function malfunctioning with Binary and Restriction datatypes #168

Open
@nataliacp

Description

@nataliacp

When the datatype in the nexus file is specified as Binary or Restriction, the function loads it into RevBayes as Standard. This causes character datatype mismatches later on.
I have tested this in v.11 and v.12 on a mac. I have not tested it with all datatypes.

>data <- readDiscreteCharacterData("Test.nex")
   Successfully read one character matrix from file 'Test.nex'
> data

   Standard character matrix with 1 taxa and 5 characters
   ======================================================
   Origination:                   Test.nex
   Number of taxa:                1
   Number of included taxa:       1
   Number of characters:          5
   Number of included characters: 5
   Datatype:                      Standard

The contents of Test.nex are:

#NEXUS

BEGIN DATA;
	DIMENSIONS  NTAX=1 NCHAR=5;
	FORMAT DATATYPE = Binary GAP = - MISSING = ? ;
	MATRIX
	Mawe          00001
	;
	END;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions