Skip to content

read_gaf.R: Incorrect Correct Column Conversion #1

@cannin

Description

@cannin

read_tsv seems to produce warnings because it is converting some columns to logical:

readr::read_tsv(filepath, comment = "!", col_names = gaf.colnames))

This might be a better way:

goa <- readr::read_tsv(gaf_file, comment = "!", col_name=gaf.colnames, col_types = cols(
  DB = col_character(),
  DB_Object_ID = col_character(),
  DB_Object_Symbol = col_character(),
  Qualifier = col_character(),
  GO_ID = col_character(),
  DB_Reference = col_character(),
  Evidence_Code = col_character(),
  With_From = col_character(),
  Aspect = col_character(),
  DB_Object_Name = col_character(),
  DB_Object_Synonym = col_character(),
  DB_Object_Type = col_character(),
  Taxon = col_character(),
  Date = col_character(),
  Assigned_By = col_character(),
  Annotation_Extension = col_character(),
  Gene_Product_Form_ID = col_character()
))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions